git-version-gen: init shell var to avoid env var influence
[gnulib.git] / ChangeLog
blob4ad700df5d0a435ba6d9f5b474a5d468934a7871
1 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3         git-version-gen: init shell var to avoid env var influence
4         * build-aux/git-version-gen (v): Init shell var to empty.
6 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
8         priv-set: Don't assume that priv.h exists merely because getppriv does.
9         See Jan Andersen's bug report about AIX 5L in
10         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13         * lib/priv-set.h: Likewise.
14         * tests/test-priv-set.c: Likewise.
16 2010-06-13  Bruno Haible  <bruno@clisp.org>
18         relocatable: Make it easier to test whether to install wrappers.
19         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20         RELOCATABLE_VIA_WRAPPER.
22 2010-06-13  Bruno Haible  <bruno@clisp.org>
24         gnulib-tool: Display specified modules and dependencies differently.
25         * gnulib-tool (func_show_module_list): New function.
26         (func_import, func_create_testdir): Invoke it.
27         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29 2010-06-13  Bruno Haible  <bruno@clisp.org>
31         gnulib-tool: Align code of func_import and func_create_testdir.
32         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33         specified_modules.
35 2010-06-12  Jim Meyering  <meyering@redhat.com>
37         test-inttostr: avoid spurious failure on Solaris 9
38         * tests/test-inttostr.c (main): Skip the test when snprintf fails
39         to accept "%ju".  Reported by Bruno Haible.
41 2010-06-11  Jim Meyering  <meyering@redhat.com>
43         test-sys_socket: mark variables as used more readably
44         * tests/test-sys_socket.c (main): Mark otherwise unused variables
45         as "used" explicitly via (void) statement casts.  This is more
46         readable than using them in an artificial return expression.
47         Suggestion from Bruno Haible.
49 2010-06-11  Bruno Haible  <bruno@clisp.org>
51         Avoid some more warnings from "gcc -Wwrite-strings".
52         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
53         to 'const char *'.
54         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
55         * tests/test-c-strcasestr.c (main): Likewise.
56         * tests/test-mbscasestr1.c (main): Likewise.
57         * tests/test-mbscasestr2.c (main): Likewise.
58         * tests/test-memmem.c (main): Likewise.
59         * tests/test-strstr.c (main): Likewise.
60         * tests/test-strcasestr.c (main): Likewise.
62 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64         init.sh: change framework_failure_ to fail with status 99, not 1
65         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66         automake's parallel-tests rule that this is an unexpected failure,
67         even if the test is listed in XFAIL_TESTS.
69 2010-06-11  Jim Meyering  <meyering@redhat.com>
71         test-inttostr: avoid warnings about 4-6KB literal strings
72         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
73         Include "macros.h", for its definition of ASSERT.
74         (CK): s/assert/ASSERT/
75         * modules/inttostr-tests (Files): Add macros.h.
77         init.sh: don't use $ME_ or skip_ before they are defined
78         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
79         their first uses.  Also hoist their companions: warn_, fail_,
80         framework_failure_, $stderr_fileno.  Prompted by a patch from
81         Stefano Lattarini.
83         test-sys_socket: avoid set-but-not-used warnings from gcc
84         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
85         avoid warning about set-but-not-used variables.
87         test-xvasprintf: avoid 'const' discard warnings
88         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
89         "const" when assigning from literal strings.
90         (test_xasprintf): Add "void" in function argument list to placate
91         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
93         tests: avoid compilation warnings in argmatch and exclude tests...
94         in packages that define ARGMATCH_DIE_DECL, like coreutils.
95         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
96         Since it always exits, declare with the "noreturn" attribute.
97         * tests/test-argmatch.c: Likewise.
99         tests: avoid 'const' discard warnings in mbsstr tests
100         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
101         * tests/test-mbsstr2.c (main): Likewise.
103         test-verify: avoid warning from gcc's -Wmissing-declarations
104         * tests/test-verify.c (function): Declare to be static.
106         test-inttostr.c: include <string.h> for use of strcmp
107         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
109         test-linkat: avoid failed assertion on "other" architectures
110         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
111         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
112         sparc: https://bugs.launchpad.net/bugs/591968
114 2010-06-11  Jim Meyering  <meyering@redhat.com>
116         printf.m4: avoid autoconf's "Expanded Before Required" warning
117         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
118         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
119         autoconf warning.
121 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
123         Replacement header templates are now named with ".in", not "_".
124         * doc/gnulib-intro.texi: Correct.
126 2010-06-10  Jim Meyering  <meyering@redhat.com>
128         inttostr-tests: depend on snprintf, not snprintf-posix
129         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
130         snprintf-posix, to avoid this aclocal failure:
131           missing file gnulib-tests/vasnprintf.c
132           configure.ac:45: error: expected source file, required through \
133           AC_LIBSOURCES, not found
135 2010-06-10  Jim Meyering  <meyering@redhat.com>
137         inttostr: add a new function, inttostr, and tests
138         The namesake function was not available.  The existence of the
139         template file, inttostr.c makes its addition nontrivial.
140         * lib/anytostr.c: Rename from inttostr.c.
141         (anytostr): Rename from inttostr.
142         * lib/inttostr.c: New file.
143         * modules/inttostr (Files): Add anytostr.c.
144         (Makefile.am): Set lib_SOURCES instead of ...
145         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
146         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
147         * lib/offtostr.c: Likewise.
148         * lib/uinttostr.c: Likewise.
149         * lib/umaxtostr.c: Likewise.
150         * modules/inttostr-tests: New file.
151         * tests/test-inttostr.c: New file.  Test these functions.
153 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
154             Bruno Haible  <bruno@clisp.org>
156         Add "Extending Gnulib" chapter to manual.
157         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
158         chapter.
159         (Extending Gnulib): New chapter.
160         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
161         chapter.
163 2010-06-09  Bruno Haible  <bruno@clisp.org>
165         Avoid relocwrapper link errors due to gnulib replacement functions.
166         * lib/areadlink.c: Use the system's malloc, realloc functions.
167         (areadlink): Set errno to ENOMEM explicitly.
168         * modules/areadlink (Depends-on): Remove malloc-posix.
169         Reported by Ben Pfaff <blp@cs.stanford.edu>.
171 2010-06-09  Bruno Haible  <bruno@clisp.org>
173         Avoid relocwrapper link errors due to gnulib replacement functions.
174         * lib/canonicalize-lgpl.c: Use the system's malloc function.
175         * lib/malloca.c: Likewise.
176         * lib/relocatable.c: Likewise.
177         * lib/progreloc.c: Use the system's malloc, sprintf functions.
178         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
179         * lib/setenv.c: Use the system's malloc, realloc functions.
180         * lib/strerror.c: Use the system's sprintf function.
181         Reported by Ben Pfaff <blp@cs.stanford.edu>.
183 2010-06-04  Bruno Haible  <bruno@clisp.org>
185         Prefer documented low-level autoconf macro names.
186         * m4/lib-link.m4: Use m4_translit instead of translit.
187         * m4/environ.m4: Likewise.
188         * m4/mathfunc.m4: Likewise.
189         * m4/onceonly.m4: Likewise.
190         * m4/stdint.m4: Likewise.
191         Suggested by Eric Blake.
193 2010-06-04  Martin Lambers  <marlam@marlam.de>
194             Bruno Haible  <bruno@clisp.org>
196         havelib: Allow library names with '+' characters.
197         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
198         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
200 2010-06-09  Bruno Haible  <bruno@clisp.org>
202         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
203         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
204         realloc failed.
206 2010-06-08  Peter Simons  <simons@cryp.to>
208         maint.mk: make the news-check rule more configurable
209         * top/maint.mk (news-check-lines-spec) New variable.
210         (news-check): Use "sed -n 1,10p" in place of "head".
212 2010-06-07  Jim Meyering  <meyering@redhat.com>
214         do-release-commit-and-tag: fix typo in --help
215         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
217         regex: avoid new dead-code warning with gcc-4.6.0
218         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
219         if-block containing a while-loop.  It's been unused for at least
220         5 years.
222 2010-06-05  Bruno Haible  <bruno@clisp.org>
224         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
225         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
227 2010-06-04  Bruno Haible  <bruno@clisp.org>
229         Update to GNU gettext 0.18.1.
230         * modules/gettext (configure.ac): Require gettext infrastructure from
231         version 0.18.1.
233 2010-06-03  Bruno Haible  <bruno@clisp.org>
235         Don't use AC_LIBOBJ with file names in subdirectories.
236         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
237         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
238         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
239         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
240         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
241         gl_LIBUNISTRING_LIBSOURCE.
242         (Makefile.am): Augment lib_SOURCES here, conditionally.
243         * NEWS: Drop requirement for Automake option 'subdir-objects'.
245 2010-06-03  Bruno Haible  <bruno@clisp.org>
247         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
248         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
249         expansion does not end with a newline.
250         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
251         unnecessary newline.
253 2010-06-03  Bruno Haible  <bruno@clisp.org>
255         Reduce dependencies.
256         * tests/test-quotearg.h: New file, extracted from
257         tests/test-quotearg.c.
258         * tests/test-quotearg-simple.c: New file, extracted from
259         tests/test-quotearg.c.
260         * tests/test-quotearg.c: Don't include <ctype.h>.
261         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
262         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
263         use_quote_double_quotes, use_quotearg_colon): Moved to
264         tests/test-quotearg.h.
265         (results_g, flag_results, custom_quotes, custom_results): Moved
266         to tests/test-quotearg-simple.c.
267         (main): Moved the part that does not depend on gettext to
268         tests/test-quotearg-simple.c. Return 77 if the test cannot be
269         performed.
270         * modules/quotearg-simple: New file.
271         * modules/quotearg-simple-tests: New file.
272         * modules/quotearg (Depends-on): Add quotearg-simple.
273         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
274         (Files): Add tests/test-quotearg.h.
275         Reported by Paolo Bonzini.
277 2010-06-03  Bruno Haible  <bruno@clisp.org>
279         Reduce dependencies.
280         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
282 2010-06-03  Bruno Haible  <bruno@clisp.org>
284         time: Undefine more broken macros.
285         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
286         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
287         Reported by Eric Blake.
289 2010-06-03  Bruno Haible  <bruno@clisp.org>
291         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
292         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
293         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
294         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
295         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
296         Reported by Ludovic Courtès <ludo@gnu.org>.
298 2010-06-02  Eric Blake  <eblake@redhat.com>
300         time: work with mingw + pthreads-win32 library
301         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
302         if timespec is defined only in pthread.h.
303         * modules/time (Makefile.am): Substitute it.
304         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
305         <pthread.h>, when needed.
306         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
307         from the library.
309 2010-05-31  Bruno Haible  <bruno@clisp.org>
311         Avoid expanding two macros in the wrong order.
312         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
313         gl_LIBUNISTRING if it is defined.
314         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
315         autoconf >= 2.64.
316         Reported by Ludovic Courtès <ludo@gnu.org>.
318 2010-05-27  Jim Meyering  <meyering@redhat.com>
320         maint.mk: also prohibit "#undef" of always-defined symbols
321         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
322         Allow more than one space before the symbol name.
323         (sc_prohibit_always-defined_macros): Use grep's -E, now that
324         the regexp uses alternation.
326 2010-05-26  Eric Blake  <eblake@redhat.com>
328         maint.mk: avoid echo -e
329         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
330         Convert all uses of echo -* to printf.
331         Reported by Matthias Bolte.
333 2010-05-25  Bruno Haible  <bruno@clisp.org>
335         Update to GNU gettext 0.18, part 2.
336         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
337         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
339 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
341         Add missing include in test-pwrite.c.
342         * tests/test-pwrite.c: Include string.h, for strcmp.
344 2010-05-24  Bruno Haible  <bruno@clisp.org>
346         * NEWS: Mention requirement for Automake option 'subdir-objects'.
348 2010-05-24  Bruno Haible  <bruno@clisp.org>
350         Don't use conversion with transliteration in u{8,16,32}_strcoll.
351         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
352         iconveh_error argument.
353         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
354         U_STRCONV_TO_LOCALE.
355         * lib/unistr/u16-strcoll.c: Likewise.
356         * lib/unistr/u32-strcoll.c: Likewise.
357         * modules/unistr/u8-strcoll (Depends-on): Add
358         uniconv/u8-strconv-to-enc, localcharset. Remove
359         uniconv/u8-strconv-to-locale.
360         (configure.ac): Bump version number.
361         * modules/unistr/u16-strcoll (Depends-on): Add
362         uniconv/u16-strconv-to-enc, localcharset. Remove
363         uniconv/u16-strconv-to-locale.
364         (configure.ac): Bump version number.
365         * modules/unistr/u32-strcoll (Depends-on): Add
366         uniconv/u32-strconv-to-enc, localcharset. Remove
367         uniconv/u32-strconv-to-locale.
368         (configure.ac): Bump version number.
370 2010-05-24  Bruno Haible  <bruno@clisp.org>
372         Avoid a test failure on NetBSD 5.0.
373         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
374         an iconv() bug.
376 2010-05-24  Bruno Haible  <bruno@clisp.org>
378         Adjust #include directive style.
379         * modules/regex (Includes): Recommend to write <regex.h>.
381 2010-05-24  Bruno Haible  <bruno@clisp.org>
383         regex: Don't require alloca.
384         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
385         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
386         only inside if (0).
388 2010-05-23  Jim Meyering  <meyering@redhat.com>
390         test-renameat.c: include <sys/stat.h>
391         * tests/test-renameat.c: Include <sys/stat.h>; required for
392         definition of S_IS* macros.
394 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
396         Update maintainer documentation for 'relocatable-prog' module.
397         * doc/relocatable-maint.texi: Update.
398         Comments by Bruno Haible.
400 2010-05-23  Bruno Haible  <bruno@clisp.org>
402         git-merge-changelog: Enable --split-merged-entry by default.
403         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
404         (usage): Don't mention this option any more.
405         Reported by Ralf Wildenhues.
407 2010-05-23  Jim Meyering  <meyering@redhat.com>
409         test-pwrite: do not leave behind a test file named "out"
410         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
411         The trivial-looking use of init.sh is really necessary.
412         It ensures that the temporary file, "out", is created in
413         a temporary directory, and removed upon termination.
414         * tests/test-pwrite.sh: Re-add file.
415         * modules/pwrite-tests: Reference it.
417 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
419         Fix output redirection buglet in init.sh.
420         * tests/init.sh: Fix redirection of stderr.
422 2010-05-20  Simon Josefsson  <simon@josefsson.org>
424         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
426 2010-05-17  Simon Josefsson  <simon@josefsson.org>
428         * modules/valgrind-tests: New file.
429         * m4/valgrind-tests.m4: New file.
430         * doc/valgrind-tests.texi: New file.
431         * doc/gnulib.texi (Running self-tests under valgrind): New
432         section.
434 2010-05-19  Bruno Haible  <bruno@clisp.org>
436         Clean up dead code in recent commit.
437         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
438         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
439         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
440         Suggested by Paolo Bonzini.
442 2010-05-19  Bruno Haible  <bruno@clisp.org>
444         Avoid valgrind error reports from libunistring.
445         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
446         * modules/libunistring (Files): Add it.
447         * modules/libunistring-optional (Files): Likewise.
449 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
450             Bruno Haible  <bruno@clisp.org>
452         New module 'libunistring-optional'.
453         * modules/libunistring-optional: New file.
454         * m4/libunistring-base.m4: New file.
455         * m4/libunistring-optional.m4: New file.
456         * lib/unicase.in.h: Renamed from lib/unicase.h.
457         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
458         * lib/unictype.in.h: Renamed from lib/unictype.h.
459         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
460         * lib/uniname.in.h: Renamed from lib/uniname.h.
461         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
462         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
463         * lib/unistr.in.h: Renamed from lib/unistr.h.
464         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
465         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
466         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
467         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
468         gl_LIBUNISTRING. If the library was found, determine the installed
469         version and set LIBUNISTRING_VERSION.
470         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
471         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
472         handle a configuration option --with-included-libunistring.
473         * modules/libunistring (Files): Add m4/absolute-header.m4.
474         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
475         Add m4/libunistring-base.m4.
476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
477         (Makefile.am): Build unicase.h from unicase.in.h.
478         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
479         Add m4/libunistring-base.m4.
480         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
481         (Makefile.am): Build uniconv.h from uniconv.in.h.
482         * modules/unictype/base (Files): Use unictype.in.h instead of
483         unictype.h. Add m4/libunistring-base.m4.
484         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
485         (Makefile.am): Build unictype.h from unictype.in.h.
486         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
487         Add m4/libunistring-base.m4.
488         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
489         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
490         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
491         Add m4/libunistring-base.m4.
492         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
493         (Makefile.am): Build uniname.h from uniname.in.h.
494         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
495         Add m4/libunistring-base.m4.
496         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
497         (Makefile.am): Build uninorm.h from uninorm.in.h.
498         * modules/unistdio/base (Files): Use unistdio.in.h instead of
499         unistdio.h. Add m4/libunistring-base.m4.
500         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
501         (Makefile.am): Build unistdio.h from unistdio.in.h.
502         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
503         Add m4/libunistring-base.m4.
504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
505         (Makefile.am): Build unistr.h from unistr.in.h.
506         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
507         Add m4/libunistring-base.m4.
508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
509         (Makefile.am): Build unitypes.h from unitypes.in.h.
510         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
511         Add m4/libunistring-base.m4.
512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
513         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
514         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
515         uniwidth.h. Add m4/libunistring-base.m4.
516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
517         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
518         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
519         instead of augmenting lib_SOURCES.
520         * modules/unicase/empty-suffix-context: Likewise.
521         * modules/unicase/locale-language: Likewise.
522         * modules/unicase/tolower: Likewise.
523         * modules/unicase/totitle: Likewise.
524         * modules/unicase/toupper: Likewise.
525         * modules/unicase/u8-casecmp: Likewise.
526         * modules/unicase/u8-casecoll: Likewise.
527         * modules/unicase/u8-casefold: Likewise.
528         * modules/unicase/u8-casexfrm: Likewise.
529         * modules/unicase/u8-ct-casefold: Likewise.
530         * modules/unicase/u8-ct-tolower: Likewise.
531         * modules/unicase/u8-ct-totitle: Likewise.
532         * modules/unicase/u8-ct-toupper: Likewise.
533         * modules/unicase/u8-is-cased: Likewise.
534         * modules/unicase/u8-is-casefolded: Likewise.
535         * modules/unicase/u8-is-lowercase: Likewise.
536         * modules/unicase/u8-is-titlecase: Likewise.
537         * modules/unicase/u8-is-uppercase: Likewise.
538         * modules/unicase/u8-prefix-context: Likewise.
539         * modules/unicase/u8-suffix-context: Likewise.
540         * modules/unicase/u8-tolower: Likewise.
541         * modules/unicase/u8-totitle: Likewise.
542         * modules/unicase/u8-toupper: Likewise.
543         * modules/unicase/u16-casecmp: Likewise.
544         * modules/unicase/u16-casecoll: Likewise.
545         * modules/unicase/u16-casefold: Likewise.
546         * modules/unicase/u16-casexfrm: Likewise.
547         * modules/unicase/u16-ct-casefold: Likewise.
548         * modules/unicase/u16-ct-tolower: Likewise.
549         * modules/unicase/u16-ct-totitle: Likewise.
550         * modules/unicase/u16-ct-toupper: Likewise.
551         * modules/unicase/u16-is-cased: Likewise.
552         * modules/unicase/u16-is-casefolded: Likewise.
553         * modules/unicase/u16-is-lowercase: Likewise.
554         * modules/unicase/u16-is-titlecase: Likewise.
555         * modules/unicase/u16-is-uppercase: Likewise.
556         * modules/unicase/u16-prefix-context: Likewise.
557         * modules/unicase/u16-suffix-context: Likewise.
558         * modules/unicase/u16-tolower: Likewise.
559         * modules/unicase/u16-totitle: Likewise.
560         * modules/unicase/u16-toupper: Likewise.
561         * modules/unicase/u32-casecmp: Likewise.
562         * modules/unicase/u32-casecoll: Likewise.
563         * modules/unicase/u32-casefold: Likewise.
564         * modules/unicase/u32-casexfrm: Likewise.
565         * modules/unicase/u32-ct-casefold: Likewise.
566         * modules/unicase/u32-ct-tolower: Likewise.
567         * modules/unicase/u32-ct-totitle: Likewise.
568         * modules/unicase/u32-ct-toupper: Likewise.
569         * modules/unicase/u32-is-cased: Likewise.
570         * modules/unicase/u32-is-casefolded: Likewise.
571         * modules/unicase/u32-is-lowercase: Likewise.
572         * modules/unicase/u32-is-titlecase: Likewise.
573         * modules/unicase/u32-is-uppercase: Likewise.
574         * modules/unicase/u32-prefix-context: Likewise.
575         * modules/unicase/u32-suffix-context: Likewise.
576         * modules/unicase/u32-tolower: Likewise.
577         * modules/unicase/u32-totitle: Likewise.
578         * modules/unicase/u32-toupper: Likewise.
579         * modules/unicase/ulc-casecmp: Likewise.
580         * modules/unicase/ulc-casecoll: Likewise.
581         * modules/unicase/ulc-casexfrm: Likewise.
582         * modules/uniconv/u8-conv-from-enc: Likewise.
583         * modules/uniconv/u8-conv-to-enc: Likewise.
584         * modules/uniconv/u8-strconv-from-enc: Likewise.
585         * modules/uniconv/u8-strconv-from-locale: Likewise.
586         * modules/uniconv/u8-strconv-to-enc: Likewise.
587         * modules/uniconv/u8-strconv-to-locale: Likewise.
588         * modules/uniconv/u16-conv-from-enc: Likewise.
589         * modules/uniconv/u16-conv-to-enc: Likewise.
590         * modules/uniconv/u16-strconv-from-enc: Likewise.
591         * modules/uniconv/u16-strconv-from-locale: Likewise.
592         * modules/uniconv/u16-strconv-to-enc: Likewise.
593         * modules/uniconv/u16-strconv-to-locale: Likewise.
594         * modules/uniconv/u32-conv-from-enc: Likewise.
595         * modules/uniconv/u32-conv-to-enc: Likewise.
596         * modules/uniconv/u32-strconv-from-enc: Likewise.
597         * modules/uniconv/u32-strconv-from-locale: Likewise.
598         * modules/uniconv/u32-strconv-to-enc: Likewise.
599         * modules/uniconv/u32-strconv-to-locale: Likewise.
600         * modules/unictype/bidicategory-byname: Likewise.
601         * modules/unictype/bidicategory-name: Likewise.
602         * modules/unictype/bidicategory-of: Likewise.
603         * modules/unictype/bidicategory-test: Likewise.
604         * modules/unictype/block-list: Likewise.
605         * modules/unictype/block-test: Likewise.
606         * modules/unictype/category-C: Likewise.
607         * modules/unictype/category-Cc: Likewise.
608         * modules/unictype/category-Cf: Likewise.
609         * modules/unictype/category-Cn: Likewise.
610         * modules/unictype/category-Co: Likewise.
611         * modules/unictype/category-Cs: Likewise.
612         * modules/unictype/category-L: Likewise.
613         * modules/unictype/category-Ll: Likewise.
614         * modules/unictype/category-Lm: Likewise.
615         * modules/unictype/category-Lo: Likewise.
616         * modules/unictype/category-Lt: Likewise.
617         * modules/unictype/category-Lu: Likewise.
618         * modules/unictype/category-M: Likewise.
619         * modules/unictype/category-Mc: Likewise.
620         * modules/unictype/category-Me: Likewise.
621         * modules/unictype/category-Mn: Likewise.
622         * modules/unictype/category-N: Likewise.
623         * modules/unictype/category-Nd: Likewise.
624         * modules/unictype/category-Nl: Likewise.
625         * modules/unictype/category-No: Likewise.
626         * modules/unictype/category-P: Likewise.
627         * modules/unictype/category-Pc: Likewise.
628         * modules/unictype/category-Pd: Likewise.
629         * modules/unictype/category-Pe: Likewise.
630         * modules/unictype/category-Pf: Likewise.
631         * modules/unictype/category-Pi: Likewise.
632         * modules/unictype/category-Po: Likewise.
633         * modules/unictype/category-Ps: Likewise.
634         * modules/unictype/category-S: Likewise.
635         * modules/unictype/category-Sc: Likewise.
636         * modules/unictype/category-Sk: Likewise.
637         * modules/unictype/category-Sm: Likewise.
638         * modules/unictype/category-So: Likewise.
639         * modules/unictype/category-Z: Likewise.
640         * modules/unictype/category-Zl: Likewise.
641         * modules/unictype/category-Zp: Likewise.
642         * modules/unictype/category-Zs: Likewise.
643         * modules/unictype/category-and: Likewise.
644         * modules/unictype/category-and-not: Likewise.
645         * modules/unictype/category-byname: Likewise.
646         * modules/unictype/category-name: Likewise.
647         * modules/unictype/category-none: Likewise.
648         * modules/unictype/category-of: Likewise.
649         * modules/unictype/category-or: Likewise.
650         * modules/unictype/category-test: Likewise.
651         * modules/unictype/combining-class: Likewise.
652         * modules/unictype/ctype-alnum: Likewise.
653         * modules/unictype/ctype-alpha: Likewise.
654         * modules/unictype/ctype-blank: Likewise.
655         * modules/unictype/ctype-cntrl: Likewise.
656         * modules/unictype/ctype-digit: Likewise.
657         * modules/unictype/ctype-graph: Likewise.
658         * modules/unictype/ctype-lower: Likewise.
659         * modules/unictype/ctype-print: Likewise.
660         * modules/unictype/ctype-punct: Likewise.
661         * modules/unictype/ctype-space: Likewise.
662         * modules/unictype/ctype-upper: Likewise.
663         * modules/unictype/ctype-xdigit: Likewise.
664         * modules/unictype/decimal-digit: Likewise.
665         * modules/unictype/digit: Likewise.
666         * modules/unictype/mirror: Likewise.
667         * modules/unictype/numeric: Likewise.
668         * modules/unictype/property-alphabetic: Likewise.
669         * modules/unictype/property-ascii-hex-digit: Likewise.
670         * modules/unictype/property-bidi-arabic-digit: Likewise.
671         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
672         * modules/unictype/property-bidi-block-separator: Likewise.
673         * modules/unictype/property-bidi-boundary-neutral: Likewise.
674         * modules/unictype/property-bidi-common-separator: Likewise.
675         * modules/unictype/property-bidi-control: Likewise.
676         * modules/unictype/property-bidi-embedding-or-override: Likewise.
677         * modules/unictype/property-bidi-eur-num-separator: Likewise.
678         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
679         * modules/unictype/property-bidi-european-digit: Likewise.
680         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
681         * modules/unictype/property-bidi-left-to-right: Likewise.
682         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
683         * modules/unictype/property-bidi-other-neutral: Likewise.
684         * modules/unictype/property-bidi-pdf: Likewise.
685         * modules/unictype/property-bidi-segment-separator: Likewise.
686         * modules/unictype/property-bidi-whitespace: Likewise.
687         * modules/unictype/property-byname: Likewise.
688         * modules/unictype/property-combining: Likewise.
689         * modules/unictype/property-composite: Likewise.
690         * modules/unictype/property-currency-symbol: Likewise.
691         * modules/unictype/property-dash: Likewise.
692         * modules/unictype/property-decimal-digit: Likewise.
693         * modules/unictype/property-default-ignorable-code-point: Likewise.
694         * modules/unictype/property-deprecated: Likewise.
695         * modules/unictype/property-diacritic: Likewise.
696         * modules/unictype/property-extender: Likewise.
697         * modules/unictype/property-format-control: Likewise.
698         * modules/unictype/property-grapheme-base: Likewise.
699         * modules/unictype/property-grapheme-extend: Likewise.
700         * modules/unictype/property-grapheme-link: Likewise.
701         * modules/unictype/property-hex-digit: Likewise.
702         * modules/unictype/property-hyphen: Likewise.
703         * modules/unictype/property-id-continue: Likewise.
704         * modules/unictype/property-id-start: Likewise.
705         * modules/unictype/property-ideographic: Likewise.
706         * modules/unictype/property-ids-binary-operator: Likewise.
707         * modules/unictype/property-ids-trinary-operator: Likewise.
708         * modules/unictype/property-ignorable-control: Likewise.
709         * modules/unictype/property-iso-control: Likewise.
710         * modules/unictype/property-join-control: Likewise.
711         * modules/unictype/property-left-of-pair: Likewise.
712         * modules/unictype/property-line-separator: Likewise.
713         * modules/unictype/property-logical-order-exception: Likewise.
714         * modules/unictype/property-lowercase: Likewise.
715         * modules/unictype/property-math: Likewise.
716         * modules/unictype/property-non-break: Likewise.
717         * modules/unictype/property-not-a-character: Likewise.
718         * modules/unictype/property-numeric: Likewise.
719         * modules/unictype/property-other-alphabetic: Likewise.
720         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
721         * modules/unictype/property-other-grapheme-extend: Likewise.
722         * modules/unictype/property-other-id-continue: Likewise.
723         * modules/unictype/property-other-id-start: Likewise.
724         * modules/unictype/property-other-lowercase: Likewise.
725         * modules/unictype/property-other-math: Likewise.
726         * modules/unictype/property-other-uppercase: Likewise.
727         * modules/unictype/property-paired-punctuation: Likewise.
728         * modules/unictype/property-paragraph-separator: Likewise.
729         * modules/unictype/property-pattern-syntax: Likewise.
730         * modules/unictype/property-pattern-white-space: Likewise.
731         * modules/unictype/property-private-use: Likewise.
732         * modules/unictype/property-punctuation: Likewise.
733         * modules/unictype/property-quotation-mark: Likewise.
734         * modules/unictype/property-radical: Likewise.
735         * modules/unictype/property-sentence-terminal: Likewise.
736         * modules/unictype/property-soft-dotted: Likewise.
737         * modules/unictype/property-space: Likewise.
738         * modules/unictype/property-terminal-punctuation: Likewise.
739         * modules/unictype/property-test: Likewise.
740         * modules/unictype/property-titlecase: Likewise.
741         * modules/unictype/property-unassigned-code-value: Likewise.
742         * modules/unictype/property-unified-ideograph: Likewise.
743         * modules/unictype/property-uppercase: Likewise.
744         * modules/unictype/property-variation-selector: Likewise.
745         * modules/unictype/property-white-space: Likewise.
746         * modules/unictype/property-xid-continue: Likewise.
747         * modules/unictype/property-xid-start: Likewise.
748         * modules/unictype/property-zero-width: Likewise.
749         * modules/unictype/scripts: Likewise.
750         * modules/unictype/syntax-c-ident: Likewise.
751         * modules/unictype/syntax-c-whitespace: Likewise.
752         * modules/unictype/syntax-java-ident: Likewise.
753         * modules/unictype/syntax-java-whitespace: Likewise.
754         * modules/unilbrk/u8-possible-linebreaks: Likewise.
755         * modules/unilbrk/u8-width-linebreaks: Likewise.
756         * modules/unilbrk/u16-possible-linebreaks: Likewise.
757         * modules/unilbrk/u16-width-linebreaks: Likewise.
758         * modules/unilbrk/u32-possible-linebreaks: Likewise.
759         * modules/unilbrk/u32-width-linebreaks: Likewise.
760         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
761         * modules/unilbrk/ulc-width-linebreaks: Likewise.
762         * modules/uniname/uniname: Likewise.
763         * modules/uninorm/canonical-decomposition: Likewise.
764         * modules/uninorm/composition: Likewise.
765         * modules/uninorm/decomposing-form: Likewise.
766         * modules/uninorm/decomposition: Likewise.
767         * modules/uninorm/filter: Likewise.
768         * modules/uninorm/nfc: Likewise.
769         * modules/uninorm/nfd: Likewise.
770         * modules/uninorm/nfkc: Likewise.
771         * modules/uninorm/nfkd: Likewise.
772         * modules/uninorm/u8-normalize: Likewise.
773         * modules/uninorm/u8-normcmp: Likewise.
774         * modules/uninorm/u8-normcoll: Likewise.
775         * modules/uninorm/u8-normxfrm: Likewise.
776         * modules/uninorm/u16-normalize: Likewise.
777         * modules/uninorm/u16-normcmp: Likewise.
778         * modules/uninorm/u16-normcoll: Likewise.
779         * modules/uninorm/u16-normxfrm: Likewise.
780         * modules/uninorm/u32-normalize: Likewise.
781         * modules/uninorm/u32-normcmp: Likewise.
782         * modules/uninorm/u32-normcoll: Likewise.
783         * modules/uninorm/u32-normxfrm: Likewise.
784         * modules/unistdio/u8-asnprintf: Likewise.
785         * modules/unistdio/u8-asprintf: Likewise.
786         * modules/unistdio/u8-snprintf: Likewise.
787         * modules/unistdio/u8-sprintf: Likewise.
788         * modules/unistdio/u8-u8-asnprintf: Likewise.
789         * modules/unistdio/u8-u8-asprintf: Likewise.
790         * modules/unistdio/u8-u8-snprintf: Likewise.
791         * modules/unistdio/u8-u8-sprintf: Likewise.
792         * modules/unistdio/u8-u8-vasnprintf: Likewise.
793         * modules/unistdio/u8-u8-vasprintf: Likewise.
794         * modules/unistdio/u8-u8-vsnprintf: Likewise.
795         * modules/unistdio/u8-u8-vsprintf: Likewise.
796         * modules/unistdio/u8-vasnprintf: Likewise.
797         * modules/unistdio/u8-vasprintf: Likewise.
798         * modules/unistdio/u8-vsnprintf: Likewise.
799         * modules/unistdio/u8-vsprintf: Likewise.
800         * modules/unistdio/u16-asnprintf: Likewise.
801         * modules/unistdio/u16-asprintf: Likewise.
802         * modules/unistdio/u16-snprintf: Likewise.
803         * modules/unistdio/u16-sprintf: Likewise.
804         * modules/unistdio/u16-u16-asnprintf: Likewise.
805         * modules/unistdio/u16-u16-asprintf: Likewise.
806         * modules/unistdio/u16-u16-snprintf: Likewise.
807         * modules/unistdio/u16-u16-sprintf: Likewise.
808         * modules/unistdio/u16-u16-vasnprintf: Likewise.
809         * modules/unistdio/u16-u16-vasprintf: Likewise.
810         * modules/unistdio/u16-u16-vsnprintf: Likewise.
811         * modules/unistdio/u16-u16-vsprintf: Likewise.
812         * modules/unistdio/u16-vasnprintf: Likewise.
813         * modules/unistdio/u16-vasprintf: Likewise.
814         * modules/unistdio/u16-vsnprintf: Likewise.
815         * modules/unistdio/u16-vsprintf: Likewise.
816         * modules/unistdio/u32-asnprintf: Likewise.
817         * modules/unistdio/u32-asprintf: Likewise.
818         * modules/unistdio/u32-snprintf: Likewise.
819         * modules/unistdio/u32-sprintf: Likewise.
820         * modules/unistdio/u32-u32-asnprintf: Likewise.
821         * modules/unistdio/u32-u32-asprintf: Likewise.
822         * modules/unistdio/u32-u32-snprintf: Likewise.
823         * modules/unistdio/u32-u32-sprintf: Likewise.
824         * modules/unistdio/u32-u32-vasnprintf: Likewise.
825         * modules/unistdio/u32-u32-vasprintf: Likewise.
826         * modules/unistdio/u32-u32-vsnprintf: Likewise.
827         * modules/unistdio/u32-u32-vsprintf: Likewise.
828         * modules/unistdio/u32-vasnprintf: Likewise.
829         * modules/unistdio/u32-vasprintf: Likewise.
830         * modules/unistdio/u32-vsnprintf: Likewise.
831         * modules/unistdio/u32-vsprintf: Likewise.
832         * modules/unistdio/ulc-asnprintf: Likewise.
833         * modules/unistdio/ulc-asprintf: Likewise.
834         * modules/unistdio/ulc-fprintf: Likewise.
835         * modules/unistdio/ulc-snprintf: Likewise.
836         * modules/unistdio/ulc-sprintf: Likewise.
837         * modules/unistdio/ulc-vasnprintf: Likewise.
838         * modules/unistdio/ulc-vasprintf: Likewise.
839         * modules/unistdio/ulc-vfprintf: Likewise.
840         * modules/unistdio/ulc-vsnprintf: Likewise.
841         * modules/unistdio/ulc-vsprintf: Likewise.
842         * modules/unistr/u8-check: Likewise.
843         * modules/unistr/u8-chr: Likewise.
844         * modules/unistr/u8-cmp: Likewise.
845         * modules/unistr/u8-cmp2: Likewise.
846         * modules/unistr/u8-cpy: Likewise.
847         * modules/unistr/u8-cpy-alloc: Likewise.
848         * modules/unistr/u8-endswith: Likewise.
849         * modules/unistr/u8-mblen: Likewise.
850         * modules/unistr/u8-mbsnlen: Likewise.
851         * modules/unistr/u8-mbtouc: Likewise.
852         * modules/unistr/u8-mbtouc-unsafe: Likewise.
853         * modules/unistr/u8-mbtoucr: Likewise.
854         * modules/unistr/u8-move: Likewise.
855         * modules/unistr/u8-next: Likewise.
856         * modules/unistr/u8-prev: Likewise.
857         * modules/unistr/u8-set: Likewise.
858         * modules/unistr/u8-startswith: Likewise.
859         * modules/unistr/u8-stpcpy: Likewise.
860         * modules/unistr/u8-stpncpy: Likewise.
861         * modules/unistr/u8-strcat: Likewise.
862         * modules/unistr/u8-strchr: Likewise.
863         * modules/unistr/u8-strcmp: Likewise.
864         * modules/unistr/u8-strcoll: Likewise.
865         * modules/unistr/u8-strcpy: Likewise.
866         * modules/unistr/u8-strcspn: Likewise.
867         * modules/unistr/u8-strdup: Likewise.
868         * modules/unistr/u8-strlen: Likewise.
869         * modules/unistr/u8-strmblen: Likewise.
870         * modules/unistr/u8-strmbtouc: Likewise.
871         * modules/unistr/u8-strncat: Likewise.
872         * modules/unistr/u8-strncmp: Likewise.
873         * modules/unistr/u8-strncpy: Likewise.
874         * modules/unistr/u8-strnlen: Likewise.
875         * modules/unistr/u8-strpbrk: Likewise.
876         * modules/unistr/u8-strrchr: Likewise.
877         * modules/unistr/u8-strspn: Likewise.
878         * modules/unistr/u8-strstr: Likewise.
879         * modules/unistr/u8-strtok: Likewise.
880         * modules/unistr/u8-to-u16: Likewise.
881         * modules/unistr/u8-to-u32: Likewise.
882         * modules/unistr/u8-uctomb: Likewise.
883         * modules/unistr/u16-check: Likewise.
884         * modules/unistr/u16-chr: Likewise.
885         * modules/unistr/u16-cmp: Likewise.
886         * modules/unistr/u16-cmp2: Likewise.
887         * modules/unistr/u16-cpy: Likewise.
888         * modules/unistr/u16-cpy-alloc: Likewise.
889         * modules/unistr/u16-endswith: Likewise.
890         * modules/unistr/u16-mblen: Likewise.
891         * modules/unistr/u16-mbsnlen: Likewise.
892         * modules/unistr/u16-mbtouc: Likewise.
893         * modules/unistr/u16-mbtouc-unsafe: Likewise.
894         * modules/unistr/u16-mbtoucr: Likewise.
895         * modules/unistr/u16-move: Likewise.
896         * modules/unistr/u16-next: Likewise.
897         * modules/unistr/u16-prev: Likewise.
898         * modules/unistr/u16-set: Likewise.
899         * modules/unistr/u16-startswith: Likewise.
900         * modules/unistr/u16-stpcpy: Likewise.
901         * modules/unistr/u16-stpncpy: Likewise.
902         * modules/unistr/u16-strcat: Likewise.
903         * modules/unistr/u16-strchr: Likewise.
904         * modules/unistr/u16-strcmp: Likewise.
905         * modules/unistr/u16-strcoll: Likewise.
906         * modules/unistr/u16-strcpy: Likewise.
907         * modules/unistr/u16-strcspn: Likewise.
908         * modules/unistr/u16-strdup: Likewise.
909         * modules/unistr/u16-strlen: Likewise.
910         * modules/unistr/u16-strmblen: Likewise.
911         * modules/unistr/u16-strmbtouc: Likewise.
912         * modules/unistr/u16-strncat: Likewise.
913         * modules/unistr/u16-strncmp: Likewise.
914         * modules/unistr/u16-strncpy: Likewise.
915         * modules/unistr/u16-strnlen: Likewise.
916         * modules/unistr/u16-strpbrk: Likewise.
917         * modules/unistr/u16-strrchr: Likewise.
918         * modules/unistr/u16-strspn: Likewise.
919         * modules/unistr/u16-strstr: Likewise.
920         * modules/unistr/u16-strtok: Likewise.
921         * modules/unistr/u16-to-u32: Likewise.
922         * modules/unistr/u16-to-u8: Likewise.
923         * modules/unistr/u16-uctomb: Likewise.
924         * modules/unistr/u32-check: Likewise.
925         * modules/unistr/u32-chr: Likewise.
926         * modules/unistr/u32-cmp: Likewise.
927         * modules/unistr/u32-cmp2: Likewise.
928         * modules/unistr/u32-cpy: Likewise.
929         * modules/unistr/u32-cpy-alloc: Likewise.
930         * modules/unistr/u32-endswith: Likewise.
931         * modules/unistr/u32-mblen: Likewise.
932         * modules/unistr/u32-mbsnlen: Likewise.
933         * modules/unistr/u32-mbtouc: Likewise.
934         * modules/unistr/u32-mbtouc-unsafe: Likewise.
935         * modules/unistr/u32-mbtoucr: Likewise.
936         * modules/unistr/u32-move: Likewise.
937         * modules/unistr/u32-next: Likewise.
938         * modules/unistr/u32-prev: Likewise.
939         * modules/unistr/u32-set: Likewise.
940         * modules/unistr/u32-startswith: Likewise.
941         * modules/unistr/u32-stpcpy: Likewise.
942         * modules/unistr/u32-stpncpy: Likewise.
943         * modules/unistr/u32-strcat: Likewise.
944         * modules/unistr/u32-strchr: Likewise.
945         * modules/unistr/u32-strcmp: Likewise.
946         * modules/unistr/u32-strcoll: Likewise.
947         * modules/unistr/u32-strcpy: Likewise.
948         * modules/unistr/u32-strcspn: Likewise.
949         * modules/unistr/u32-strdup: Likewise.
950         * modules/unistr/u32-strlen: Likewise.
951         * modules/unistr/u32-strmblen: Likewise.
952         * modules/unistr/u32-strmbtouc: Likewise.
953         * modules/unistr/u32-strncat: Likewise.
954         * modules/unistr/u32-strncmp: Likewise.
955         * modules/unistr/u32-strncpy: Likewise.
956         * modules/unistr/u32-strnlen: Likewise.
957         * modules/unistr/u32-strpbrk: Likewise.
958         * modules/unistr/u32-strrchr: Likewise.
959         * modules/unistr/u32-strspn: Likewise.
960         * modules/unistr/u32-strstr: Likewise.
961         * modules/unistr/u32-strtok: Likewise.
962         * modules/unistr/u32-to-u16: Likewise.
963         * modules/unistr/u32-to-u8: Likewise.
964         * modules/unistr/u32-uctomb: Likewise.
965         * modules/uniwbrk/u8-wordbreaks: Likewise.
966         * modules/uniwbrk/u16-wordbreaks: Likewise.
967         * modules/uniwbrk/u32-wordbreaks: Likewise.
968         * modules/uniwbrk/ulc-wordbreaks: Likewise.
969         * modules/uniwbrk/wordbreak-property: Likewise.
970         * modules/uniwidth/u8-strwidth: Likewise.
971         * modules/uniwidth/u8-width: Likewise.
972         * modules/uniwidth/u16-strwidth: Likewise.
973         * modules/uniwidth/u16-width: Likewise.
974         * modules/uniwidth/u32-strwidth: Likewise.
975         * modules/uniwidth/u32-width: Likewise.
976         * modules/uniwidth/width: Likewise.
977         * modules/unicase/cased-tests (Makefile.am): Link all test programs
978         with $(LIBUNISTRING).
979         * modules/unicase/ignorable-tests: Likewise.
980         * modules/unicase/locale-language-tests: Likewise.
981         * modules/unicase/tolower-tests: Likewise.
982         * modules/unicase/totitle-tests: Likewise.
983         * modules/unicase/toupper-tests: Likewise.
984         * modules/unicase/u8-casecmp-tests: Likewise.
985         * modules/unicase/u8-casecoll-tests: Likewise.
986         * modules/unicase/u8-casefold-tests: Likewise.
987         * modules/unicase/u8-is-cased-tests: Likewise.
988         * modules/unicase/u8-is-casefolded-tests: Likewise.
989         * modules/unicase/u8-is-lowercase-tests: Likewise.
990         * modules/unicase/u8-is-titlecase-tests: Likewise.
991         * modules/unicase/u8-is-uppercase-tests: Likewise.
992         * modules/unicase/u8-tolower-tests: Likewise.
993         * modules/unicase/u8-totitle-tests: Likewise.
994         * modules/unicase/u8-toupper-tests: Likewise.
995         * modules/unicase/u16-casecmp-tests: Likewise.
996         * modules/unicase/u16-casecoll-tests: Likewise.
997         * modules/unicase/u16-casefold-tests: Likewise.
998         * modules/unicase/u16-is-cased-tests: Likewise.
999         * modules/unicase/u16-is-casefolded-tests: Likewise.
1000         * modules/unicase/u16-is-lowercase-tests: Likewise.
1001         * modules/unicase/u16-is-titlecase-tests: Likewise.
1002         * modules/unicase/u16-is-uppercase-tests: Likewise.
1003         * modules/unicase/u16-tolower-tests: Likewise.
1004         * modules/unicase/u16-totitle-tests: Likewise.
1005         * modules/unicase/u16-toupper-tests: Likewise.
1006         * modules/unicase/u32-casecmp-tests: Likewise.
1007         * modules/unicase/u32-casecoll-tests: Likewise.
1008         * modules/unicase/u32-casefold-tests: Likewise.
1009         * modules/unicase/u32-is-cased-tests: Likewise.
1010         * modules/unicase/u32-is-casefolded-tests: Likewise.
1011         * modules/unicase/u32-is-lowercase-tests: Likewise.
1012         * modules/unicase/u32-is-titlecase-tests: Likewise.
1013         * modules/unicase/u32-is-uppercase-tests: Likewise.
1014         * modules/unicase/u32-tolower-tests: Likewise.
1015         * modules/unicase/u32-totitle-tests: Likewise.
1016         * modules/unicase/u32-toupper-tests: Likewise.
1017         * modules/unicase/ulc-casecmp-tests: Likewise.
1018         * modules/unicase/ulc-casecoll-tests: Likewise.
1019         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1020         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1021         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1022         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1023         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1024         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1025         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1026         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1027         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1028         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1029         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1030         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1031         * modules/unictype/bidicategory-byname-tests: Likewise.
1032         * modules/unictype/bidicategory-name-tests: Likewise.
1033         * modules/unictype/bidicategory-of-tests: Likewise.
1034         * modules/unictype/bidicategory-test-tests: Likewise.
1035         * modules/unictype/block-list-tests: Likewise.
1036         * modules/unictype/block-of-tests: Likewise.
1037         * modules/unictype/block-test-tests: Likewise.
1038         * modules/unictype/category-C-tests: Likewise.
1039         * modules/unictype/category-Cc-tests: Likewise.
1040         * modules/unictype/category-Cf-tests: Likewise.
1041         * modules/unictype/category-Cn-tests: Likewise.
1042         * modules/unictype/category-Co-tests: Likewise.
1043         * modules/unictype/category-Cs-tests: Likewise.
1044         * modules/unictype/category-L-tests: Likewise.
1045         * modules/unictype/category-Ll-tests: Likewise.
1046         * modules/unictype/category-Lm-tests: Likewise.
1047         * modules/unictype/category-Lo-tests: Likewise.
1048         * modules/unictype/category-Lt-tests: Likewise.
1049         * modules/unictype/category-Lu-tests: Likewise.
1050         * modules/unictype/category-M-tests: Likewise.
1051         * modules/unictype/category-Mc-tests: Likewise.
1052         * modules/unictype/category-Me-tests: Likewise.
1053         * modules/unictype/category-Mn-tests: Likewise.
1054         * modules/unictype/category-N-tests: Likewise.
1055         * modules/unictype/category-Nd-tests: Likewise.
1056         * modules/unictype/category-Nl-tests: Likewise.
1057         * modules/unictype/category-No-tests: Likewise.
1058         * modules/unictype/category-P-tests: Likewise.
1059         * modules/unictype/category-Pc-tests: Likewise.
1060         * modules/unictype/category-Pd-tests: Likewise.
1061         * modules/unictype/category-Pe-tests: Likewise.
1062         * modules/unictype/category-Pf-tests: Likewise.
1063         * modules/unictype/category-Pi-tests: Likewise.
1064         * modules/unictype/category-Po-tests: Likewise.
1065         * modules/unictype/category-Ps-tests: Likewise.
1066         * modules/unictype/category-S-tests: Likewise.
1067         * modules/unictype/category-Sc-tests: Likewise.
1068         * modules/unictype/category-Sk-tests: Likewise.
1069         * modules/unictype/category-Sm-tests: Likewise.
1070         * modules/unictype/category-So-tests: Likewise.
1071         * modules/unictype/category-Z-tests: Likewise.
1072         * modules/unictype/category-Zl-tests: Likewise.
1073         * modules/unictype/category-Zp-tests: Likewise.
1074         * modules/unictype/category-Zs-tests: Likewise.
1075         * modules/unictype/category-and-not-tests: Likewise.
1076         * modules/unictype/category-and-tests: Likewise.
1077         * modules/unictype/category-byname-tests: Likewise.
1078         * modules/unictype/category-name-tests: Likewise.
1079         * modules/unictype/category-none-tests: Likewise.
1080         * modules/unictype/category-of-tests: Likewise.
1081         * modules/unictype/category-or-tests: Likewise.
1082         * modules/unictype/category-test-withtable-tests: Likewise.
1083         * modules/unictype/combining-class-tests: Likewise.
1084         * modules/unictype/ctype-alnum-tests: Likewise.
1085         * modules/unictype/ctype-alpha-tests: Likewise.
1086         * modules/unictype/ctype-blank-tests: Likewise.
1087         * modules/unictype/ctype-cntrl-tests: Likewise.
1088         * modules/unictype/ctype-digit-tests: Likewise.
1089         * modules/unictype/ctype-graph-tests: Likewise.
1090         * modules/unictype/ctype-lower-tests: Likewise.
1091         * modules/unictype/ctype-print-tests: Likewise.
1092         * modules/unictype/ctype-punct-tests: Likewise.
1093         * modules/unictype/ctype-space-tests: Likewise.
1094         * modules/unictype/ctype-upper-tests: Likewise.
1095         * modules/unictype/ctype-xdigit-tests: Likewise.
1096         * modules/unictype/decimal-digit-tests: Likewise.
1097         * modules/unictype/digit-tests: Likewise.
1098         * modules/unictype/mirror-tests: Likewise.
1099         * modules/unictype/numeric-tests: Likewise.
1100         * modules/unictype/property-alphabetic-tests: Likewise.
1101         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1102         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1103         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1104         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1105         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1106         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1107         * modules/unictype/property-bidi-control-tests: Likewise.
1108         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1109         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1110         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1111         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1112         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1113         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1114         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1115         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1116         * modules/unictype/property-bidi-pdf-tests: Likewise.
1117         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1118         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1119         * modules/unictype/property-byname-tests: Likewise.
1120         * modules/unictype/property-combining-tests: Likewise.
1121         * modules/unictype/property-composite-tests: Likewise.
1122         * modules/unictype/property-currency-symbol-tests: Likewise.
1123         * modules/unictype/property-dash-tests: Likewise.
1124         * modules/unictype/property-decimal-digit-tests: Likewise.
1125         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1126         * modules/unictype/property-deprecated-tests: Likewise.
1127         * modules/unictype/property-diacritic-tests: Likewise.
1128         * modules/unictype/property-extender-tests: Likewise.
1129         * modules/unictype/property-format-control-tests: Likewise.
1130         * modules/unictype/property-grapheme-base-tests: Likewise.
1131         * modules/unictype/property-grapheme-extend-tests: Likewise.
1132         * modules/unictype/property-grapheme-link-tests: Likewise.
1133         * modules/unictype/property-hex-digit-tests: Likewise.
1134         * modules/unictype/property-hyphen-tests: Likewise.
1135         * modules/unictype/property-id-continue-tests: Likewise.
1136         * modules/unictype/property-id-start-tests: Likewise.
1137         * modules/unictype/property-ideographic-tests: Likewise.
1138         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1139         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1140         * modules/unictype/property-ignorable-control-tests: Likewise.
1141         * modules/unictype/property-iso-control-tests: Likewise.
1142         * modules/unictype/property-join-control-tests: Likewise.
1143         * modules/unictype/property-left-of-pair-tests: Likewise.
1144         * modules/unictype/property-line-separator-tests: Likewise.
1145         * modules/unictype/property-logical-order-exception-tests: Likewise.
1146         * modules/unictype/property-lowercase-tests: Likewise.
1147         * modules/unictype/property-math-tests: Likewise.
1148         * modules/unictype/property-non-break-tests: Likewise.
1149         * modules/unictype/property-not-a-character-tests: Likewise.
1150         * modules/unictype/property-numeric-tests: Likewise.
1151         * modules/unictype/property-other-alphabetic-tests: Likewise.
1152         * modules/unictype/property-other-default-ignorable-code-point-tests:
1153         Likewise.
1154         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1155         * modules/unictype/property-other-id-continue-tests: Likewise.
1156         * modules/unictype/property-other-id-start-tests: Likewise.
1157         * modules/unictype/property-other-lowercase-tests: Likewise.
1158         * modules/unictype/property-other-math-tests: Likewise.
1159         * modules/unictype/property-other-uppercase-tests: Likewise.
1160         * modules/unictype/property-paired-punctuation-tests: Likewise.
1161         * modules/unictype/property-paragraph-separator-tests: Likewise.
1162         * modules/unictype/property-pattern-syntax-tests: Likewise.
1163         * modules/unictype/property-pattern-white-space-tests: Likewise.
1164         * modules/unictype/property-private-use-tests: Likewise.
1165         * modules/unictype/property-punctuation-tests: Likewise.
1166         * modules/unictype/property-quotation-mark-tests: Likewise.
1167         * modules/unictype/property-radical-tests: Likewise.
1168         * modules/unictype/property-sentence-terminal-tests: Likewise.
1169         * modules/unictype/property-soft-dotted-tests: Likewise.
1170         * modules/unictype/property-space-tests: Likewise.
1171         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1172         * modules/unictype/property-test-tests: Likewise.
1173         * modules/unictype/property-titlecase-tests: Likewise.
1174         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1175         * modules/unictype/property-unified-ideograph-tests: Likewise.
1176         * modules/unictype/property-uppercase-tests: Likewise.
1177         * modules/unictype/property-variation-selector-tests: Likewise.
1178         * modules/unictype/property-white-space-tests: Likewise.
1179         * modules/unictype/property-xid-continue-tests: Likewise.
1180         * modules/unictype/property-xid-start-tests: Likewise.
1181         * modules/unictype/property-zero-width-tests: Likewise.
1182         * modules/unictype/scripts-tests: Likewise.
1183         * modules/unictype/syntax-c-ident-tests: Likewise.
1184         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1185         * modules/unictype/syntax-java-ident-tests: Likewise.
1186         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1187         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1188         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1189         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1190         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1191         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1192         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1193         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1194         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1195         * modules/uniname/uniname-tests: Likewise.
1196         * modules/uninorm/canonical-decomposition-tests: Likewise.
1197         * modules/uninorm/compat-decomposition-tests: Likewise.
1198         * modules/uninorm/composition-tests: Likewise.
1199         * modules/uninorm/decomposing-form-tests: Likewise.
1200         * modules/uninorm/decomposition-tests: Likewise.
1201         * modules/uninorm/filter-tests: Likewise.
1202         * modules/uninorm/nfc-tests: Likewise.
1203         * modules/uninorm/nfd-tests: Likewise.
1204         * modules/uninorm/nfkc-tests: Likewise.
1205         * modules/uninorm/nfkd-tests: Likewise.
1206         * modules/uninorm/u8-normcmp-tests: Likewise.
1207         * modules/uninorm/u8-normcoll-tests: Likewise.
1208         * modules/uninorm/u16-normcmp-tests: Likewise.
1209         * modules/uninorm/u16-normcoll-tests: Likewise.
1210         * modules/uninorm/u32-normcmp-tests: Likewise.
1211         * modules/uninorm/u32-normcoll-tests: Likewise.
1212         * modules/unistdio/u8-asnprintf-tests: Likewise.
1213         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1214         * modules/unistdio/u8-vasprintf-tests: Likewise.
1215         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1216         * modules/unistdio/u8-vsprintf-tests: Likewise.
1217         * modules/unistdio/u16-asnprintf-tests: Likewise.
1218         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1219         * modules/unistdio/u16-vasprintf-tests: Likewise.
1220         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1221         * modules/unistdio/u16-vsprintf-tests: Likewise.
1222         * modules/unistdio/u32-asnprintf-tests: Likewise.
1223         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1224         * modules/unistdio/u32-vasprintf-tests: Likewise.
1225         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1226         * modules/unistdio/u32-vsprintf-tests: Likewise.
1227         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1228         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1229         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1230         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1231         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1232         * modules/unistr/u8-check-tests: Likewise.
1233         * modules/unistr/u8-chr-tests: Likewise.
1234         * modules/unistr/u8-cmp-tests: Likewise.
1235         * modules/unistr/u8-cmp2-tests: Likewise.
1236         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1237         * modules/unistr/u8-cpy-tests: Likewise.
1238         * modules/unistr/u8-mblen-tests: Likewise.
1239         * modules/unistr/u8-mbsnlen-tests: Likewise.
1240         * modules/unistr/u8-mbtouc-tests: Likewise.
1241         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1242         * modules/unistr/u8-mbtoucr-tests: Likewise.
1243         * modules/unistr/u8-move-tests: Likewise.
1244         * modules/unistr/u8-next-tests: Likewise.
1245         * modules/unistr/u8-prev-tests: Likewise.
1246         * modules/unistr/u8-set-tests: Likewise.
1247         * modules/unistr/u8-stpcpy-tests: Likewise.
1248         * modules/unistr/u8-stpncpy-tests: Likewise.
1249         * modules/unistr/u8-strcat-tests: Likewise.
1250         * modules/unistr/u8-strcmp-tests: Likewise.
1251         * modules/unistr/u8-strcoll-tests: Likewise.
1252         * modules/unistr/u8-strcpy-tests: Likewise.
1253         * modules/unistr/u8-strdup-tests: Likewise.
1254         * modules/unistr/u8-strlen-tests: Likewise.
1255         * modules/unistr/u8-strmblen-tests: Likewise.
1256         * modules/unistr/u8-strmbtouc-tests: Likewise.
1257         * modules/unistr/u8-strncat-tests: Likewise.
1258         * modules/unistr/u8-strncmp-tests: Likewise.
1259         * modules/unistr/u8-strncpy-tests: Likewise.
1260         * modules/unistr/u8-strnlen-tests: Likewise.
1261         * modules/unistr/u8-to-u16-tests: Likewise.
1262         * modules/unistr/u8-to-u32-tests: Likewise.
1263         * modules/unistr/u8-uctomb-tests: Likewise.
1264         * modules/unistr/u16-check-tests: Likewise.
1265         * modules/unistr/u16-chr-tests: Likewise.
1266         * modules/unistr/u16-cmp-tests: Likewise.
1267         * modules/unistr/u16-cmp2-tests: Likewise.
1268         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1269         * modules/unistr/u16-cpy-tests: Likewise.
1270         * modules/unistr/u16-mblen-tests: Likewise.
1271         * modules/unistr/u16-mbsnlen-tests: Likewise.
1272         * modules/unistr/u16-mbtouc-tests: Likewise.
1273         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1274         * modules/unistr/u16-mbtoucr-tests: Likewise.
1275         * modules/unistr/u16-move-tests: Likewise.
1276         * modules/unistr/u16-next-tests: Likewise.
1277         * modules/unistr/u16-prev-tests: Likewise.
1278         * modules/unistr/u16-set-tests: Likewise.
1279         * modules/unistr/u16-stpcpy-tests: Likewise.
1280         * modules/unistr/u16-stpncpy-tests: Likewise.
1281         * modules/unistr/u16-strcat-tests: Likewise.
1282         * modules/unistr/u16-strcmp-tests: Likewise.
1283         * modules/unistr/u16-strcoll-tests: Likewise.
1284         * modules/unistr/u16-strcpy-tests: Likewise.
1285         * modules/unistr/u16-strdup-tests: Likewise.
1286         * modules/unistr/u16-strlen-tests: Likewise.
1287         * modules/unistr/u16-strmblen-tests: Likewise.
1288         * modules/unistr/u16-strmbtouc-tests: Likewise.
1289         * modules/unistr/u16-strncat-tests: Likewise.
1290         * modules/unistr/u16-strncmp-tests: Likewise.
1291         * modules/unistr/u16-strncpy-tests: Likewise.
1292         * modules/unistr/u16-strnlen-tests: Likewise.
1293         * modules/unistr/u16-to-u32-tests: Likewise.
1294         * modules/unistr/u16-to-u8-tests: Likewise.
1295         * modules/unistr/u16-uctomb-tests: Likewise.
1296         * modules/unistr/u32-check-tests: Likewise.
1297         * modules/unistr/u32-chr-tests: Likewise.
1298         * modules/unistr/u32-cmp-tests: Likewise.
1299         * modules/unistr/u32-cmp2-tests: Likewise.
1300         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1301         * modules/unistr/u32-cpy-tests: Likewise.
1302         * modules/unistr/u32-mblen-tests: Likewise.
1303         * modules/unistr/u32-mbsnlen-tests: Likewise.
1304         * modules/unistr/u32-mbtouc-tests: Likewise.
1305         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
1306         * modules/unistr/u32-mbtoucr-tests: Likewise.
1307         * modules/unistr/u32-move-tests: Likewise.
1308         * modules/unistr/u32-next-tests: Likewise.
1309         * modules/unistr/u32-prev-tests: Likewise.
1310         * modules/unistr/u32-set-tests: Likewise.
1311         * modules/unistr/u32-stpcpy-tests: Likewise.
1312         * modules/unistr/u32-stpncpy-tests: Likewise.
1313         * modules/unistr/u32-strcat-tests: Likewise.
1314         * modules/unistr/u32-strcmp-tests: Likewise.
1315         * modules/unistr/u32-strcoll-tests: Likewise.
1316         * modules/unistr/u32-strcpy-tests: Likewise.
1317         * modules/unistr/u32-strdup-tests: Likewise.
1318         * modules/unistr/u32-strlen-tests: Likewise.
1319         * modules/unistr/u32-strmblen-tests: Likewise.
1320         * modules/unistr/u32-strmbtouc-tests: Likewise.
1321         * modules/unistr/u32-strncat-tests: Likewise.
1322         * modules/unistr/u32-strncmp-tests: Likewise.
1323         * modules/unistr/u32-strncpy-tests: Likewise.
1324         * modules/unistr/u32-strnlen-tests: Likewise.
1325         * modules/unistr/u32-to-u16-tests: Likewise.
1326         * modules/unistr/u32-to-u8-tests: Likewise.
1327         * modules/unistr/u32-uctomb-tests: Likewise.
1328         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
1329         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
1330         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
1331         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
1332         * modules/uniwidth/u8-strwidth-tests: Likewise.
1333         * modules/uniwidth/u8-width-tests: Likewise.
1334         * modules/uniwidth/u16-strwidth-tests: Likewise.
1335         * modules/uniwidth/u16-width-tests: Likewise.
1336         * modules/uniwidth/u32-strwidth-tests: Likewise.
1337         * modules/uniwidth/u32-width-tests: Likewise.
1338         * modules/uniwidth/width-tests: Likewise.
1340 2010-05-18  Richard Jones  <rjones@redhat.com>
1342         doc: users.txt: list hivex
1343         * users.txt: Add hivex.
1345 2010-05-18  Richard Jones  <rjones@redhat.com>
1347         doc: users.txt: list febootstrap
1348         * users.txt: Add febootstrap.
1350 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
1352         bootstrap: fix an error when gnulib is not used as a git submodule
1353         * build-aux/bootstrap (gnulib_path): If its length is zero then
1354         assign "gnulib" to it.
1355         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
1357 2010-05-16  Bruno Haible  <bruno@clisp.org>
1359         Avoid autoconf warnings about AM_ICONV.
1360         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
1361         2.64.
1363 2010-05-16  Bruno Haible  <bruno@clisp.org>
1365         absolute-header: Make the macro usable in more situations.
1366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
1367         from gl_ABSOLUTE_HEADER.
1368         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
1370 2010-05-16  James Youngman  <jay@gnu.org>
1372         doc: update users.txt
1373         * users.txt: Add CSSC.
1375 2010-05-16  Jim Meyering  <meyering@redhat.com>
1377         init.sh: fix an error in the previous change; add more comments
1378         * tests/init.sh: Compare exit code in loop against 9, not 2.
1379         Patch by Bruno Haible.
1380         Make the two tests more similar by adding an empty "then" clause.
1381         Add comments.
1383         init.sh: avoid unnecessary shell re-exec
1384         * tests/init.sh: Improve the re-exec-required check to first test the
1385         current shell.  If it passes the test, do not search for a shell that
1386         does pass, and do not re-exec.  This test is particularly contorted to
1387         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
1388         of $(...) evokes a syntax error and causes immediate shell exit with
1389         status 2.  Bruno Haible reported that the re-exec made it impossible
1390         to single-step through any init.sh-using script.
1392 2010-05-16  Bruno Haible  <bruno@clisp.org>
1394         Fix collision between gnulib's and libintl's printf replacements.
1395         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
1396         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
1397         (printf): When using GNU C, map the __printf__ function to rpl_printf
1398         via __asm__. When not using GNU C, define rpl_printf instead of
1399         __printf__.
1400         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
1401         commit.
1402         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
1403         commit.
1404         * m4/asm-underscore.m4: New file.
1405         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
1406         * modules/stdio (Files): Add m4/asm-underscore.m4.
1407         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
1408         Reported by Ben Pfaff.
1410 2010-05-16  Bruno Haible  <bruno@clisp.org>
1412         verify: Avoid skipping the test on openSUSE 11.0.
1413         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
1415 2010-05-13  Bruno Haible  <bruno@clisp.org>
1417         Avoid useless warnings from G++.
1418         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
1419         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
1420         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1422 2010-05-11  Jim Meyering  <meyering@redhat.com>
1424         maint.mk: tweak preceding change
1425         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
1426         regexps tighter by anchoring at EOL, and make the new group "shy"
1427         for slightly decreased overhead.
1429 2010-05-11  Eric Blake  <eblake@redhat.com>
1431         maint.mk: gnulib doesn't guarantee NSIG
1432         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
1434 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1436         test-pwrite.c: Remove unused variable declaration.
1437         * tests/test-pwrite.c (main): Remove read_buf declaration.
1439         Remove useless test-pwrite.sh file.
1440         * tests/test-pwrite.sh: Delete file.
1441         * modules/pwrite-tests: Remove references.
1442         Reported by Bruno Haible.
1444 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1446         init.sh: fix a typo
1447         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
1449 2010-05-10  Jim Meyering  <meyering@redhat.com>
1451         maint.mk: avoid using a temporary file in the always-defined-macros check
1452         * top/maint.mk (.re-defmac): Remove rule.
1453         (gl_trap_): Remove definition.
1454         (sc_prohibit_always-defined_macros): Rewrite not to create and
1455         depend on a temporary file.  Instead, depend on GNU grep's ability
1456         to read a list of regular expressions from stdin when given "-f -".
1458 2010-05-09  Bruno Haible  <bruno@clisp.org>
1460         Update to GNU gettext 0.18, part 1.
1461         * m4/gettext.m4: Update to GNU gettext 0.18.
1462         * m4/intl.m4: Likewise.
1463         * m4/po.m4: Likewise.
1464         * modules/gettext (Files): Add m4/fcntl-o.m4.
1465         (configure.ac): Require gettext infrastructure from version 0.18.
1467 2010-05-09  Jim Meyering  <meyering@redhat.com>
1469         init.sh: enable MALLOC_PERTURB_
1470         * tests/init.sh: Enable glibc's malloc-perturbing option.
1472         maint.mk: improve sc_cross_check_PATH_usage_in_tests
1473         With my recent change in init.sh from the two-line form:
1474             -#   : ${srcdir=.}
1475             -#   . "$srcdir/init.sh"; path_prepend_ .
1476             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
1477         I noticed that using the one-line form would cause this test
1478         to fail with a false-positive, or to stop working altogether,
1479         depending on whether help-version changed or all the tests did.
1480         * top/maint.mk (_hv_regex): Remove this definition.
1481         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
1482         (_hv_regex_strong): Use a stronger regex to check for conformance.
1483         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
1484         Give a separate diagnostic for lack of conforming use.
1486         maint.mk: prohibit definition of symbols defined by gnulib
1487         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
1488         definition of symbols defined by gnulib.
1490 2010-05-09  Bruno Haible  <bruno@clisp.org>
1492         acl: Avoid test failure on Cygwin-hosted mingw.
1493         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
1495 2010-05-09  Bruno Haible  <bruno@clisp.org>
1497         error: Use system's fcntl function.
1498         * lib/error.c (fcntl): Undefine.
1500 2010-05-09  Jim Meyering  <meyering@redhat.com>
1502         verify: adjust formatting to be more consistent
1503         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
1504         argument-list '('s, and after one comma.
1506 2010-05-09  Bruno Haible  <bruno@clisp.org>
1508         error: More reliable output on mingw.
1509         * lib/error.c: Include <windows.h>.
1510         (is_open): New function.
1511         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
1512         defined.
1514 2010-05-09  Bruno Haible  <bruno@clisp.org>
1516         vasnprintf: Fix syntax errors in libintl build on mingw.
1517         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
1518         pad_ourselves and prec_ourselves after use.
1520 2010-05-08  Bruno Haible  <bruno@clisp.org>
1522         * lib/config.charset: Update comments for Cygwin 1.7.
1523         * lib/localcharset.c: Likewise.
1525 2010-05-07  Jim Meyering  <meyering@redhat.com>
1527         init.sh: improve comments
1528         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
1529         . "${srcdir=.}/init.sh"; path_prepend_ .
1530         Add a note about path_prepend_ and the alternative of using
1531         TESTS_ENVIRONMENT.
1533 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
1535         exclude: Unescape hashed patterns in wildcard mode.
1536         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
1537         to the hash list.
1538         * tests/test-exclude8.sh: New test case.
1539         * modules/exclude-tests: Add new test.
1541 2010-05-05  Eric Blake  <eblake@redhat.com>
1543         verify: automate tests
1544         * modules/verify-tests: New module.
1545         * tests/test-verify.sh: New file.
1546         * tests/test-verify.c: Guard each negative test with a unique id.
1547         Also avoid warning about unused left hand of comma expressions.
1549 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1551         Further improvements to verify.h, suggested by Eric Blake.
1552         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
1553         the GL_* versions, to avoid collision with OpenGL.
1554         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
1555         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
1556         than testing merely whether it's defined.
1558         Modify verify.h to pacify gcc -Wredundant_decls.
1559         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
1560         These use the prefix "GL_" since they're likely to be useful elsewhere.
1561         We may need to break them out into a different .h file.
1562         (__COUNTER__): Define to 0 if the compiler doesn't support it.
1563         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
1564         of verify_function__.
1566 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1568         Tests for module pwrite.
1569         * modules/pwrite-tests: New file.
1570         * tests/test-pwrite.sh: New file.
1571         * tests/test-pwrite.c: New file.
1573         New module pwrite.
1574         * lib/unistd.in.h (pwrite): New declaration.
1575         * lib/pwrite.c: New file, from glibc with modifications.
1576         * m4/pwrite.m4: New file.
1577         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
1578         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
1579         REPLACE_PWRITE.
1580         * modules/pwrite: New file.
1581         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
1582         REPLACE_PWRITE.
1583         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
1584         * doc/posix-functions/pwrite.texi: Mention the new module.
1586 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1588         pread: Update documentation.
1589         * doc/posix-functions/pread.texi: Mention the 'pread' module.
1591 2010-05-04  Eric Blake  <eblake@redhat.com>
1593         docs: update cygwin progress
1594         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
1595         this bug.
1596         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
1597         Added in cygwin 1.7.2.
1598         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
1599         Likewise.
1600         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
1601         Likewise.
1602         * doc/glibc-functions/dup3.texi (dup3): Likewise.
1603         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1604         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1605         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
1606         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
1607         Mention nproc module.
1608         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
1609         bug in cygwin 1.7.5 addition.
1610         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
1611         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
1612         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
1613         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
1614         1.7.5.
1615         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
1616         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
1617         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
1618         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
1619         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
1620         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
1621         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
1622         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
1623         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
1624         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
1625         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
1626         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
1627         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
1628         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
1629         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
1630         Likewise.
1631         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
1632         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
1633         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
1634         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
1635         Likewise.
1636         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
1637         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
1638         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
1639         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
1640         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
1641         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
1642         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
1643         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
1644         Likewise.
1645         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
1646         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
1647         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
1648         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
1649         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
1650         Likewise.
1651         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
1652         Likewise.
1653         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
1654         Likewise.
1655         * doc/glibc-functions/xdrrec_endofrecord.texi
1656         (xdrrec_endofrecord): Likewise.
1657         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
1658         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
1659         Likewise.
1660         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
1661         Likewise.
1663 2010-05-04  Jim Meyering  <meyering@redhat.com>
1665         gendocs.sh: make its "-s FILE" option more useful
1666         * build-aux/gendocs.sh: When honoring the -s FILE option, update
1667         $PACKAGE to reflect the probably-different basename of "FILE".
1669 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
1671         bootstrap: don't ignore download_po_files failure
1672         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
1673         failure.
1675 2010-05-03  Jim Meyering  <meyering@redhat.com>
1677         maint.mk: allow to pass options to gendocs.sh
1678         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
1679         (gendocs_options_): New overridable variable.
1681         gnu-web-doc-update: don't ignore configure or build failure
1682         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
1684         announce-gen: backslash-escape '@'s in --help output
1685         * build-aux/announce-gen: Fix syntax errors.
1687         maint.mk, announce-gen: allow project-specific announcement mail headers
1688         * top/maint.mk (translation_project_): Define default.
1689         (announcement_Cc_, announcement_mail_headers_): Likewise.
1690         (announcement): Invoke announce-gen with new --mail-headers option.
1691         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
1693         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
1694         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
1695         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
1696         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
1697         line in the "err2" output file when running "make check" in verbose
1698         mode (i.e., with set -x enabled).
1700 2010-05-03  Bruno Haible  <bruno@clisp.org>
1702         wctob: Fix for weird platforms.
1703         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
1704         argument value.
1706 2010-05-03  Jim Meyering  <meyering@redhat.com>
1708         maint.mk: prohibit unwarranted use of <strings.h>
1709         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
1710         strings.h in a file that does not also use strcasecmp, strncasecmp,
1711         ffs or ffsll.
1713         maint.mk: remove obsolete comments
1714         * top/maint.mk: Remove stale, commented-out rules.
1716 2010-05-02  Bruno Haible  <bruno@clisp.org>
1718         wcwidth: Declare also when it's aliased.
1719         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
1720         macro.
1722 2010-05-02  Bruno Haible  <bruno@clisp.org>
1724         Fix regression from 2010-04-25.
1725         * gnulib-tool (func_modules_transitive_closure): Check the status of
1726         all modules, not only of the tests that are of the form foo-tests where
1727         foo is a module.
1729 2010-05-02  Bruno Haible  <bruno@clisp.org>
1731         wctob: Work around nasty Cygwin 1.7.2 bug.
1732         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
1733         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
1735 2010-05-01  Bruno Haible  <bruno@clisp.org>
1737         fpurge: Sharper test.
1738         * tests/test-fpurge.c (main): Add one more ftell check.
1739         * modules/fpurge-tests (Depends-on): Add ftell.
1740         Suggested by Eric Blake.
1742 2010-05-01  Bruno Haible  <bruno@clisp.org>
1744         ftello: Another test.
1745         * tests/test-ftello3.c: New file.
1746         * modules/ftello-tests (Files): Add it.
1747         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
1748         MOSTLYCLEANFILES.
1750         ftell: Another test.
1751         * tests/test-ftell3.c: New file.
1752         * modules/ftell-tests (Files): Add it.
1753         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
1754         MOSTLYCLEANFILES.
1756 2010-05-01  Bruno Haible  <bruno@clisp.org>
1758         ftell, ftello: Work around Solaris bug.
1759         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
1760         * lib/ftello.c: Include stdio-impl.h.
1761         (ftello): On Solaris, when _IOWRT is set, compute the result without
1762         looking at _IOREAD.
1763         * modules/ftello (Files): Add lib/stdio-impl.h.
1764         * doc/posix-functions/ftell.texi: Mention Solaris bug.
1765         * doc/posix-functions/ftello.texi: Likewise.
1766         Reported by Eric Blake.
1768 2010-05-01  Bruno Haible  <bruno@clisp.org>
1770         freading: Adapt to special meaning of _IOREAD flag on Solaris.
1771         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
1772         the _IOWRT flag is also set.
1774 2010-05-01  Bruno Haible  <bruno@clisp.org>
1776         Fix doc about a HP-UX stdio bug.
1777         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
1778         * doc/posix-functions/ftello.texi: Likewise.
1780 2010-05-01  Bruno Haible  <bruno@clisp.org>
1782         lseek test: Fix failure on Solaris.
1783         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
1784         output.
1786 2010-04-30  Jim Meyering  <meyering@redhat.com>
1788         bootstrap: don't ignore failure to generate po*/Makevars
1789         * build-aux/bootstrap (with_gettext): Don't ignore failure
1790         to create po/Makevars or runtime-po/Makevars.
1792 2010-04-29  Eric Blake  <eblake@redhat.com>
1794         headers: relax license to LGPLv2+
1795         * modules/fcntl-h (License): Relax license.
1796         * modules/getopt-posix (License): Likewise.
1797         * modules/locale (License): Likewise.
1798         * modules/math (License): Likewise.
1799         * modules/pty (License): Likewise.
1800         * modules/sched (License): Likewise.
1801         * modules/search (License): Likewise.
1802         * modules/spawn (License): Likewise.
1803         * modules/stdarg (License): Likewise.
1804         * modules/sysexits (License): Likewise.
1806 2010-04-29  Jim Meyering  <meyering@redhat.com>
1808         inttypes: relax license to LGPLv2+
1809         * modules/inttypes (License): Relax license.
1811 2010-04-29  Simon Josefsson  <simon@josefsson.org>
1813         * top/maint.mk (indent): Run twice to produce idempotent results.
1815 2010-04-28  Bruno Haible  <bruno@clisp.org>
1817         getdate: Generate getdate.c in the source directory.
1818         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
1819         MOSTLYCLEANFILES.
1820         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
1822 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
1824         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
1825         is not declared as a const *; avoid warnings in that case.
1827 2010-04-28  Eric Blake  <eblake@redhat.com>
1829         canonicalize-lgpl: avoid compiler warning
1830         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
1831         declaration' / 'extraneous semicolon' warning with some compilers.
1832         Reported by Andreas Gruenbacher.
1834 2010-04-28  Jim Meyering  <meyering@redhat.com>
1836         init.sh: ensure a more reliable exit status when exiting via trap
1837         * tests/init.sh (setup_): Don't rely on $? in signal handler.
1838         Inspired by patches from Dmitry V. Levin.
1839         Also trap on signal 3 (SIGQUIT).
1841 2010-04-27  Bruno Haible  <bruno@clisp.org>
1843         Update doc about utimes().
1844         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
1845         'utimens' module.
1846         Reported by Andreas Gruenbacher <agruen@suse.de>.
1848 2010-04-27  Eric Blake  <eblake@redhat.com>
1850         full-read, full-write: relax license
1851         * modules/full-read (License): Drop to LGPLv2+.
1852         * modules/full-write (License): Likewise.
1853         * modules/safe-read (License): Likewise.
1854         * modules/safe-write (License): Likewise.
1856         pthread: mention library for linking
1857         * modules/pthread (Link): Mention $(LIB_PTHREAD).
1859 2010-04-27  Jim Meyering  <meyering@redhat.com>
1861         maint.mk: fix a bug introduced in last change
1862         * top/maint.mk (gl_assured_headers_): Now that all names are on
1863         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
1864         is not anchored to end of word, it should be adequate.
1866         maint.mk: avoid side-effect in latest syntax-check
1867         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
1868         to run commands via $(shell...), and hence to incur cost only when
1869         the new rule is actually run.
1871         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
1872         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
1873         and use that to create a regexp used to detect all #if HAVE_..._H uses.
1874         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
1875         (gl_assured_headers_, az_, AZ_): Define.
1876         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
1878 2010-04-26  Jim Meyering  <jim@meyering.net>
1879             Bruno Haible  <bruno@clisp.org>
1881         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
1882         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
1883         Prompted by an exchange with Gilles Espinasse.
1885 2010-04-26  Jim Meyering  <meyering@redhat.com>
1887         git-version-gen: aesthetic tweak
1888         * build-aux/git-version-gen: Use "$nl" rather than a literal,
1889         so that the command remains on a single line.
1891 2010-04-26  Eric Blake  <eblake@redhat.com>
1893         git-version-gen: allow use on EBCDIC hosts
1894         * build-aux/git-version-gen (dirty): Use literal rather than tying
1895         ourselves to ascii.
1896         Reported by Steve Goetze.
1898 2010-04-25  Bruno Haible  <bruno@clisp.org>
1900         netdb: Add support for GNULIB_POSIXCHECK.
1901         * lib/netdb.in.h: Include warn-on-use.h.
1902         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
1903         functions are used when GNULIB_POSIXCHECK is defined and the
1904         getaddrinfo module is not in use.
1905         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
1906         freeaddrinfo, gai_strerror, getnameinfo are declared.
1907         * modules/netdb (Depends-on): Add warn-on-use.
1908         (Makefile.am): Include warn-on-use.h in netdb.h.
1910 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
1912         build: avoid "make check" failure without .git/ directory
1913         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
1914         there is no .git/ directory.
1916 2010-04-25  Bruno Haible  <bruno@clisp.org>
1918         ptsname: Fix misuse of ttyname_r.
1919         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
1920         of errno.
1922 2010-04-25  Bruno Haible  <bruno@clisp.org>
1924         ttyname_r: Make it work on Solaris 10.
1925         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
1926         if the system function has the POSIX declaration. Test whether the
1927         function fails if the buffer is less than 128 bytes large.
1928         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
1929         system's ttyname_r function. Provide a reasonably large buffer.
1930         * modules/ttyname_r (Depends-on): Add extensions.
1931         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
1933 2010-04-25  Bruno Haible  <bruno@clisp.org>
1935         Use the 'extensions' module for some more functions on Solaris.
1936         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
1937         module.
1938         * doc/posix-functions/ctime_r.texi: Likewise.
1939         * doc/posix-functions/getgrgid_r.texi: Likewise.
1940         * doc/posix-functions/getgrnam_r.texi: Likewise.
1941         * doc/posix-functions/getpwnam_r.texi: Likewise.
1942         * doc/posix-functions/getpwuid_r.texi: Likewise.
1943         * doc/posix-functions/readdir_r.texi: Likewise.
1944         * doc/posix-functions/sigwait.texi: Likewise.
1945         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
1946         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
1948 2010-04-25  Bruno Haible  <bruno@clisp.org>
1950         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
1951         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
1952         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
1953         * lib/ttyname_r.c: Include <limits.h>.
1954         (ttyname_r): Define using the system's ttyname_r function, if it exists
1955         and not on Solaris.
1956         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
1957         set.
1958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
1959         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
1960         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
1961         Reported by Simon Josefsson.
1963 2010-04-25  Bruno Haible  <bruno@clisp.org>
1965         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
1966         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
1967         * doc/posix-functions/ctime_r.texi: Likewise.
1968         * doc/posix-functions/getgrgid_r.texi: Likewise.
1969         * doc/posix-functions/getgrnam_r.texi: Likewise.
1970         * doc/posix-functions/getlogin_r.texi: Likewise.
1971         * doc/posix-functions/getpwnam_r.texi: Likewise.
1972         * doc/posix-functions/getpwuid_r.texi: Likewise.
1973         * doc/posix-functions/readdir_r.texi: Likewise.
1974         * doc/posix-functions/sigwait.texi: Likewise.
1975         * doc/posix-functions/ttyname_r.texi: Likewise.
1976         Reported by Simon Josefsson.
1978 2010-04-25  Bruno Haible  <bruno@clisp.org>
1980         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
1981         * gnulib-tool (func_usage): Document that --with-*-tests options apply
1982         also to --create-testdir.
1983         (func_acceptable): Don't consider the status of *-tests modules here.
1984         (func_modules_transitive_closure): Consider it here, before including a
1985         test module.
1986         (func_import, func_create_testdir): Set inc_all_direct_tests,
1987         inc_all_indirect_tests.
1988         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
1989         --create-testdir and --create-megatestdir.
1991 2010-04-25  Bruno Haible  <bruno@clisp.org>
1993         gnulib-tool: Add --without-*-tests options.
1994         * gnulib-tool (func_usage): Document the --without-*-tests options.
1995         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
1996         excl_unportable_tests): New variables.
1997         Fail if they are specified with --import or --update.
1998         (func_acceptable): Respect the excl_*_tests variables.
1999         (func_import): Set the excl_*_tests variables to empty.
2001 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2002             Bruno Haible  <bruno@clisp.org>
2004         Work around a MacOS X 10.4 bug with openpty.
2005         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2006         * tests/test-openpty.c (main): Close the master side explicitly.
2008 2010-04-25  Bruno Haible  <bruno@clisp.org>
2010         strnlen: Fix a C++ test error on MacOS X and Solaris.
2011         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2012         the function is not declared.
2013         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2014         Simon Josefsson.
2016 2010-04-24  Bruno Haible  <bruno@clisp.org>
2018         Avoid a gcc warning.
2019         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2020         of correct type for %08lx directive.
2021         Reported by Eric Blake.
2023 2010-04-24  Bruno Haible  <bruno@clisp.org>
2025         vasnprintf: Correct errno value in case of out-of-memory.
2026         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2027         or sprintf. Use the errno value from SNPRINTF or sprintf.
2028         Reported by Ian Beckwith <ianb@erislabs.net>.
2030 2010-04-24  Bruno Haible  <bruno@clisp.org>
2032         ansi-c++-opt: Find correct compiler when cross-compiling.
2033         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2034         AC_CHECK_PROGS.
2035         Reported by Simon Josefsson.
2037 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2039         vc-list-files: Add support for subversion
2040         * build-aux/vc-list-files: Use "svn list" to generate the list of
2041         files controlled by subversion.
2043 2010-04-23  Jim Meyering  <meyering@redhat.com>
2045         vc-list-files tests: convert to use init.sh
2046         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2047         path_prepend_.
2048         Use Exit, not exit.
2049         Use skip_ rather than open coding it.
2050         Remove trap set-up and compare definitions.
2051         * tests/test-vc-list-files-git.sh: Likewise.
2052         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2054 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2056         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2057         backup files.
2059 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2061         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2063 2010-04-20  Eric Blake  <eblake@redhat.com>
2065         tests: be robust to ignored SIGPIPE
2066         * tests/test-select-in.sh: Consume all output.
2067         * tests/test-lseek.sh: Check correct exit status, while avoiding
2068         EPIPE.
2070 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2071             Bruno Haible  <bruno@clisp.org>
2073         visibility: Don't use -fvisibility if it leads to a warning.
2074         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2075         yes, don't pretend that visibility works if it leads to a warning.
2076         Reported by Mike Gran <spk121@yahoo.com>.
2078 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2080         * build-aux/bootstrap: Use "git -h" for testing for supported options
2081         instead of "git --help".  The short-form option only shows a summary,
2082         and doesn't layout the full man page.  Grep for the full option name
2083         in the summary, too.
2085 2010-04-19  Bruno Haible  <bruno@clisp.org>
2087         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2088         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2089         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2090         mention of RELOCATABLE_STRIP.
2091         Reported by Sylvain Beucler <beuc@beuc.net>.
2093 2010-04-19  Bruno Haible  <bruno@clisp.org>
2095         * lib/diffseq.h: Fix typo in comment.
2096         Reported by Eric Blake.
2098 2010-04-19  Bruno Haible  <bruno@clisp.org>
2100         ioctl: Move autoconf macro to a .m4 file.
2101         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2102         * modules/ioctl (Files): Add it.
2103         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2104         Reported by Ian Beckwith <ianb@erislabs.net>.
2106 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2107             Bruno Haible  <bruno@clisp.org>
2109         diffseq: Accommodate use-case with abstract arrays.
2110         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2111         is not defined.
2112         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2113         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2115 2010-04-18  Bruno Haible  <bruno@clisp.org>
2117         * doc/posix-headers/stdbool.texi: More precise wording.
2119 2010-04-17  Jim Meyering  <meyering@redhat.com>
2121         maint.mk: use gnu-style indentation in an embedded perl script
2122         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2123         Rename variable: s/two/last_two_bytes/
2125 2010-04-16  Eric Blake  <eblake@redhat.com>
2127         test-stdbool: skip test that fails with Solaris CC
2128         * tests/test-stdbool.c (f): Skip test that causes compilation
2129         error under buggy C++ compiler.
2130         * lib/stdbool.in.h: Document the limitation.
2131         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2133         setenv: allow compilation with C++
2134         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2135         register keyword.
2137         stdint: allow test to pass with C++
2138         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2140         getopt: allow compilation with C++
2141         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2142         struct.
2143         * lib/getopt.c (_getopt_internal_r): Use correct type.
2144         Reported by Dagobert Michelson, via Joel E. Denny.
2146 2010-04-16  Bruno Haible  <bruno@clisp.org>
2148         Override netdb.h always.
2149         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2150         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2151         Reported by Ludovic Courtès <ludo@gnu.org>.
2153 2010-04-15  Bruno Haible  <bruno@clisp.org>
2155         openpty: Fix mistake from 2010-03-21.
2156         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2157         Reported by Simon Josefsson.
2159 2010-04-15  Eric Blake  <eblake@redhat.com>
2161         test-forkpty: fix expected signature
2162         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2163         Reported by Simon Josefsson.
2165 2010-04-15  Jim Meyering  <meyering@redhat.com>
2167         maint.mk: texinfo_suffix_re_: correct the default regexp
2168         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2170         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2171         make it configurable via texinfo_suffix_re_.
2173 2010-04-14  Eric Blake  <eblake@redhat.com>
2175         strtok_r: relax license to LGPLv2+
2176         * modules/strtok_r (License): Relax license.
2177         Reported by Matthias Bolte.
2179 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2181         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2182         version 1.4.4 by default instead of requiring the libgcrypt
2183         version used during build.  This makes it possible to use the
2184         application with older but still binary compatible libgcrypt
2185         versions.
2187 2010-04-13  Eric Blake  <eblake@redhat.com>
2189         getopt-gnu: match recent glibc fixes and posix ruling
2190         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2191         '+' handling, when requesting extensions.
2192         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2193         'W;' handling.
2194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2195         * doc/posix-functions/getopt.texi (getopt): Document this.
2196         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2198         Likewise.
2200         getopt: merge bug fixes from glibc
2201         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2202         diagnostics.  Honor '+:' correctly.  Reject ';'.
2204         getopt-posix: detect MacOS bug
2205         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2206         optind when missing a required argument.
2207         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2208         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2209         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2210         Likewise.
2212         getopt-posix: avoid spurious failure on Solaris
2213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2214         an indicator that setting optind=1 is sufficient for reset.
2216         getopt-posix: avoid spurious failure on FreeBSD
2217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2218         in POSIX mode, since the m4 test uses it.
2220         gnulib-tool: silence warning on BSD sh
2221         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2223 2010-04-13  Jim Meyering  <meyering@redhat.com>
2225         doc: users.txt: GNU patch now uses gnulib
2226         * users.txt: Add patch.
2228 2010-04-12  Jim Meyering  <meyering@redhat.com>
2230         maint.mk: generate more concise timing data for syntax-check rules
2231         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2232         " done" from each line that reports a syntax-check test duration.
2234 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2236         git-version-gen: use "git update-index..." rather than "git status"
2237         * build-aux/git-version-gen: Use git update-index --refresh, not
2238         "git status".  With some versions of git, "git status" would fail
2239         to update the index and result in an unwarranted "-dirty" suffix.
2241 2010-04-11  Jim Meyering  <meyering@redhat.com>
2243         openat: correct formatting (no semantic change)
2244         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2245         Suggested by Bruno Haible.
2247 2010-04-11  Bruno Haible  <bruno@clisp.org>
2249         Stricter declaration checking in testdirs.
2250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2251         If for_tests is true, augment AM_CPPFLAGS to define
2252         GNULIB_STRICT_CHECKING.
2253         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2254         GNULIB_STRICT_CHECKING is defined, verify that the function is
2255         declared.
2257 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2258             Bruno Haible  <bruno@clisp.org>
2260         libunistring: Improve configure output.
2261         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2262         Don't say "consider installing GNU libunistring" when checking again
2263         with libiconv.
2265 2010-04-11  Bruno Haible  <bruno@clisp.org>
2267         libunistring: Correct value of $LTLIBUNISTRING.
2268         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2269         correct the value of $LTLIBUNISTRING.
2271 2010-04-11  Bruno Haible  <bruno@clisp.org>
2273         havelib: Add static libraries to LIBS in the right order.
2274         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2275         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2277 2010-04-11  Bruno Haible  <bruno@clisp.org>
2279         libunistring: Detect libunistring also when it depends on libiconv.
2280         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2281         the second AC_LIB_HAVE_LINKFLAGS invocation.
2283 2010-04-11  James Youngman  <jay@gnu.org>
2285         close-stream: declare local scalars to be "const"
2286         * lib/close-stream.c (close_stream): Make boolean variables const
2287         to document the fact that we set but do not change them.
2289 2010-04-11  Bruno Haible  <bruno@clisp.org>
2291         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2293 2010-04-11  Jim Meyering  <meyering@redhat.com>
2295         maint.mk: don't include dist-check.mk
2296         * top/maint.mk: Remove bogus include directive.
2298         maint.mk: improve empty-line-at-EOF check
2299         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2300         solution, rather than tail+Perl-based one.  The latter would read
2301         a few kilobytes from the end of each file, and did not handle empty
2302         files properly.
2304         maint.mk: print the elapsed time for each syntax-check rule
2305         * top/maint.mk (sc_m_rules_): Save start time in a file.
2306         (sc_z_rules_): New rules: remove temp file and print elapsed time.
2307         (local-check): Interpose the .z rules
2309 2010-04-11  Jim Meyering  <meyering@redhat.com>
2311         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
2312         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
2313         empty file with one that ends in an empty line.
2315 2010-04-10  Bruno Haible  <bruno@clisp.org>
2317         mkdir: Make it work on mingw64.
2318         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
2319         * lib/mkdir.c: Update comment.
2320         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
2322 2010-04-10  Bruno Haible  <bruno@clisp.org>
2324         Don't override improved macro from newer autoconf.
2325         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
2326         autoconf >= 2.62.
2327         Reported by Joel E. Denny <jdenny@clemson.edu>.
2329 2010-04-10  Jim Meyering  <meyering@redhat.com>
2331         maint.mk: new syntax-check rule: prohibit empty lines at end of file
2332         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
2334         maint.mk: correct a diagnostic
2335         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
2336         in diagnostic; now use $prohibit.
2338 2010-04-10  Bruno Haible  <address@hidden>
2340         fchownat: Fix a C++ test error on Solaris 8.
2341         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
2342         the function does not exist.
2344 2010-04-10  Bruno Haible  <bruno@clisp.org>
2346         vasnprintf: Add more tests.
2347         * tests/test-vasnprintf-posix.c: Include <errno.h>.
2348         (test_function): Test converting an invalid wide string.
2350         vasnprintf: Correct handling of unconvertible wide string arguments.
2351         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
2352         VASNPRINTF.
2353         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
2354         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
2355         smaller than the expected maximum need for the directive. Set errno to
2356         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
2357         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
2358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
2359         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
2360         * modules/vasnprintf (Files): Add m4/printf.m4.
2361         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2363 2010-04-10  Bruno Haible  <bruno@clisp.org>
2365         vasnprintf: Fix crash in %ls directive.
2366         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
2367         string is passed as argument to %ls, with no precision and no width.
2368         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2370 2010-04-10  Bruno Haible  <bruno@clisp.org>
2372         vasnprintf: Fix multiple test failures on mingw.
2373         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
2374         _snprintf, or snwprintf, not _snwprintf.
2376 2010-04-10  Bruno Haible  <bruno@clisp.org>
2378         write: Fix a C++ test error on mingw.
2379         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
2381 2010-04-10  Bruno Haible  <bruno@clisp.org>
2383         vasnprintf test: Reduce code duplication.
2384         * tests/test-vasnprintf.c (test_function): New function, extracted from
2385         test_vasnprintf.
2386         (test_vasnprintf, test_asnprintf): Invoke it.
2388 2010-04-10  Bruno Haible  <bruno@clisp.org>
2390         strnlen: Fix warning in C++ mode on MacOS X.
2391         * lib/string.in.h (strnlen): Use the modern idiom.
2392         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
2393         defining strnlen as a macro already in <config.h>.
2394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2395         REPLACE_STRNLEN.
2396         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
2397         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2399 2010-04-08  James Youngman  <jay@gnu.org>
2401         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
2402         the example.
2404 2010-04-09  Jim Meyering  <meyering@redhat.com>
2406         maint.mk: print better diagnostic when there is no $(_hv_file)
2407         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
2408         announce that when $(_hv_file) (aka help-version) does not exist.
2410         init.sh: run tr in the "C" locale to avoid multibyte interpretation
2411         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
2412         not try to interpret its random input bytes.  Jarno Rajahalme reported
2413         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
2414         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
2415         (mktempd_): Likewise, just in case.
2417         ftruncate: add two years to projected module removal date: 2012
2418         * m4/ftruncate.m4: Adjust comments.
2420         ftruncate: mark module as obsolete; even MinGW provides it, now
2421         * modules/ftruncate (Status): Obsolete.
2422         (Notice): Say that.
2423         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
2424         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
2426 2010-04-08  Bruno Haible  <bruno@clisp.org>
2428         Fix side effects from tests-related modules.
2429         * modules/dprintf-posix (Comment): New section.
2430         * modules/fprintf-posix (Comment): Likewise.
2431         * modules/obstack-printf-posix (Comment): Likewise.
2432         * modules/printf-posix (Comment): Likewise.
2433         * modules/snprintf-posix (Comment): Likewise.
2434         * modules/sprintf-posix (Comment): Likewise.
2435         * modules/vasnprintf-posix (Comment): Likewise.
2436         * modules/vasprintf-posix (Comment): Likewise.
2437         * modules/vdprintf-posix (Comment): Likewise.
2438         * modules/vfprintf-posix (Comment): Likewise.
2439         * modules/vprintf-posix (Comment): Likewise.
2440         * modules/vsnprintf-posix (Comment): Likewise.
2441         * modules/vsprintf-posix (Comment): Likewise.
2442         * modules/xprintf-posix (Comment): Likewise.
2443         * modules/xvasprintf-posix (Comment): Likewise.
2444         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
2445         * modules/floorf-tests (Depends-on): Likewise.
2446         * modules/round-tests (Depends-on): Likewise.
2447         * modules/roundf-tests (Depends-on): Likewise.
2448         * modules/trunc-tests (Depends-on): Likewise.
2449         * modules/truncf-tests (Depends-on): Likewise.
2450         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
2451         'fprintf-posix' module is not present.
2452         * tests/test-floorf2.c (check): Likewise.
2453         * tests/test-trunc2.c (check): Likewise.
2454         * tests/test-truncf2.c (check): Likewise.
2455         * tests/test-round2.c (equal): Likewise.
2456         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2458 2010-04-07  Karl Berry  <karl@gnu.org>
2460         * config/srclist.txt,
2461         * config/srclistvars.sh,
2462         * config/srclist-update: doc fixes.
2464 2010-04-07  Jim Meyering  <meyering@redhat.com>
2466         maint.mk: add a PATH crosschecking syntax-check rule
2467         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
2468         Useful if you use a test like the one in help-version (coreutils,
2469         diffutils, grep, gzip) that ensures $(VERSION) matches what is
2470         printed by prog --version.
2472 2010-04-06  Bruno Haible  <bruno@clisp.org>
2474         Fix link error on mingw.
2475         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
2476         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
2478 2010-04-06  Bruno Haible  <bruno@clisp.org>
2480         Assume rmdir exists.
2481         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
2483 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
2485         doc: update users.txt
2486         * users.txt: Add gcal.
2488 2010-04-06  Jim Meyering  <meyering@redhat.com>
2490         init.sh: simply unset TMPDIR rather than risking env -i
2491         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
2492         although it probably works fine on all Unix-based systems, some
2493         systems (Cygwin?) cannot tolerate a totally cleared environment.
2494         Suggestion from Eric Blake.
2496 2010-04-06  Jim Meyering  <meyering@redhat.com>
2498         init.sh: portability fix: use env's POSIX-specified -i option not -u
2499         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
2500         than unportable env -u.  Solaris 5.11's env lacks support for -u.
2502 2010-04-05  Bruno Haible  <bruno@clisp.org>
2504         btowc: Work around Cygwin 1.7.2 bug.
2505         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
2506         does not map NUL to 0.
2507         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
2509 2010-04-05  Bruno Haible  <bruno@clisp.org>
2511         Make the multithread modules work on Cygwin 1.7.2.
2512         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
2513         imported symbols can be declared weak, so that it returns "no" on
2514         Cygwin 1.7.2.
2516 2010-04-05  Bruno Haible  <bruno@clisp.org>
2518         Use the module 'strncat'.
2519         * modules/unistr/u8-strncat (Depends-on): Add strncat.
2521         Tests for module 'strncat'.
2522         * modules/strncat-tests: New file.
2523         * tests/test-strncat.c: New file.
2525         New module 'strncat'.
2526         * lib/string.in.h (strncat): New declaration.
2527         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
2528         * m4/strncat.m4: New file, based on m4/memchr.m4.
2529         * modules/strncat: New file.
2530         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
2531         is declared.
2532         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
2533         REPLACE_STRNCAT.
2534         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
2535         REPLACE_STRNCAT.
2536         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
2537         module.
2538         * tests/test-string-c++.cc: Check signature of strncat.
2540 2010-04-05  Jim Meyering  <meyering@redhat.com>
2542         xstrtoumax-tests: convert to use init.sh
2543         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
2544         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2545         Use Exit, not exit.
2546         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2548         xstrtoimax-tests: convert to use init.sh
2549         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
2550         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2551         Use Exit, not exit.
2552         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2554 2010-04-05  Bruno Haible  <bruno@clisp.org>
2556         sys_socket: Avoid #define replacements in C++ mode.
2557         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
2558         warning to the function if possible, rather than #defining the symbol
2559         to a dysfunctional alias.
2561 2010-04-05  Bruno Haible  <bruno@clisp.org>
2563         fseeko: Fix C++ test error on mingw.
2564         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
2565         gl_FUNC_FSEEKO.
2566         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
2567         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
2568         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
2569         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
2571 2010-04-05  Bruno Haible  <bruno@clisp.org>
2573         duplocale: Improve test output.
2574         * tests/test-duplocale.c (main): Print reason for skipped test.
2576 2010-04-05  Bruno Haible  <bruno@clisp.org>
2578         Assume rmdir exists.
2579         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
2580         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
2582 2010-04-05  Bruno Haible  <bruno@clisp.org>
2584         Fix link error on Solaris 8 with cc.
2585         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
2587 2010-04-05  Bruno Haible  <bruno@clisp.org>
2589         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2590         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
2592 2010-04-05  Bruno Haible  <bruno@clisp.org>
2594         vasprintf: Update documentation.
2595         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
2597 2010-04-05  Bruno Haible  <bruno@clisp.org>
2599         ptsname: Improve test.
2600         * tests/test-ptsname.c (main): Also try the various master names of BSD
2601         systems.
2603 2010-04-05  Bruno Haible  <bruno@clisp.org>
2605         memchr: Avoid a possible C++ test error.
2606         * lib/string.in.h (memchr): Provide declaration if function is missing.
2607         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
2608         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
2609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
2610         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
2612 2010-04-05  Bruno Haible  <bruno@clisp.org>
2614         strtok_r: Improve idiom.
2615         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
2616         AC_LIBOBJ is used.
2618 2010-04-05  Bruno Haible  <bruno@clisp.org>
2620         strdup: Improve idiom.
2621         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
2622         AC_LIBOBJ is used.
2623         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
2624         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
2625         when AC_LIBOBJ is used.
2627 2010-04-05  Bruno Haible  <bruno@clisp.org>
2629         mbsinit, mbrtowc, wcrtomb: Improve idioms.
2630         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
2631         don't set REPLACE_MBSINIT to 1.
2632         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
2633         don't set REPLACE_MBRTOWC to 1.
2634         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
2635         exist, don't set REPLACE_MBSRTOWCS to 1.
2636         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
2637         exist, don't set REPLACE_MBSNRTOWCS to 1.
2638         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
2639         don't set REPLACE_WCRTOMB to 1.
2640         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
2641         exist, don't set REPLACE_WCSRTOMBS to 1.
2642         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
2643         exist, don't set REPLACE_WCSNRTOMBS to 1.
2645 2010-04-05  Bruno Haible  <bruno@clisp.org>
2647         ldexpl: Improve idiom.
2648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
2649         make sure to set HAVE_DECL_LDEXPL to 0.
2651 2010-04-05  Jim Meyering  <meyering@redhat.com>
2653         xstrtol-tests: convert to use init.sh
2654         * modules/xstrtol-tests (Files): Add tests/init.sh.
2655         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2656         Use Exit, not exit.
2657         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2659         atexit-tests: convert to use init.sh
2660         * modules/atexit-tests (Files): Add tests/init.sh.
2661         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2662         Use Exit, not exit.
2663         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2665         init.sh: fix typo
2666         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
2668         init.sh: make it easier for a test script to write to the tty, ...
2669         when using automake's parallel-tests mode.
2670         * tests/init.sh (stderr_fileno_): Define overridable variable.
2671         (warn_): New function, to use it.
2672         (fail_, skip_, framework_failure_): Use warn_.
2674 2010-04-04  Bruno Haible  <bruno@clisp.org>
2676         btowc: Avoid warning.
2677         * lib/btowc.c: Include <stdlib.h>.
2678         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
2680 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
2681             Bruno Haible  <bruno@clisp.org>
2683         wchar: Port to NetBSD 1.5.
2684         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
2685         * lib/wctype.in.h (WEOF): Likewise.
2687 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
2688             Bruno Haible  <bruno@clisp.org>
2690         Port extended stdio to NetBSD 1.5.
2691         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
2692         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
2693         older.
2695 2010-04-04  Bruno Haible  <bruno@clisp.org>
2697         string: Remove unused substitution.
2698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2699         HAVE_DECL_STRERROR.
2700         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
2702 2010-04-04  Bruno Haible  <bruno@clisp.org>
2704         strtod: Avoid a possible C++ test error.
2705         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
2706         set REPLACE_STRTOD.
2708 2010-04-04  Bruno Haible  <bruno@clisp.org>
2710         strerror: Update documentation.
2711         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
2713 2010-04-04  Bruno Haible  <bruno@clisp.org>
2715         stdio: Fix some C++ test errors on Solaris 8 with GCC.
2716         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
2717         _GL_CXXALIAS_SYS_CAST.
2719 2010-04-04  Bruno Haible  <bruno@clisp.org>
2721         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2722         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
2723         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
2724         REPLACE_FREXPL to 1.
2725         * doc/posix-functions/frexpl.texi: Update documentation.
2727 2010-04-04  Bruno Haible  <bruno@clisp.org>
2729         math: Fix some C++ test errors on Solaris 8 and Cygwin.
2730         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
2732 2010-04-04  Bruno Haible  <bruno@clisp.org>
2734         Implement nanosleep for native Windows.
2735         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
2737 2010-04-04  Bruno Haible  <bruno@clisp.org>
2739         math: Fix some C++ test errors on Solaris 8.
2740         * lib/math.in.h (truncf, trunc): Use simpler idiom.
2742 2010-04-04  Bruno Haible  <bruno@clisp.org>
2744         math: Fix some C++ test errors on Cygwin.
2745         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
2746         truncl): Provide declaration if the system does not have it.
2747         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
2748         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
2749         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
2750         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
2751         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
2752         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
2753         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
2754         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
2755         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
2756         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
2757         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
2758         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
2759         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
2760         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
2761         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
2762         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
2763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
2764         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
2765         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
2766         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
2767         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
2768         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
2770 2010-04-04  Bruno Haible  <bruno@clisp.org>
2772         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
2773         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2774         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2775         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2776         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2777         * m4/isinf.m4 (gl_ISINF): Likewise.
2778         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2780 2010-04-04  Bruno Haible  <bruno@clisp.org>
2782         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
2783         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2785 2010-04-04  Bruno Haible  <bruno@clisp.org>
2787         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
2788         * modules/tmpfile (configure.ac): Update.
2790         tmpfile: Fix C++ test error on mingw.
2791         * lib/stdio.in.h (tmpfile): New declaration.
2792         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
2793         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
2794         * modules/tmpfile (Depends-on): Add stdio.
2795         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
2796         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
2797         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
2798         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
2799         REPLACE_TMPFILE.
2800         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
2802 2010-04-04  Bruno Haible  <bruno@clisp.org>
2804         ioctl: Fix C++ test error on mingw.
2805         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
2806         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
2807         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
2809 2010-04-03  Bruno Haible  <bruno@clisp.org>
2811         wcwidth: Fix C++ test error on mingw.
2812         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
2813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
2814         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
2816 2010-04-03  Bruno Haible  <bruno@clisp.org>
2818         nanosleep: Fix C++ test error on mingw.
2819         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
2820         * lib/time.in.h (nanosleep): Use modern idiom.
2821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
2822         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
2823         REPLACE_NANOSLEEP to 1.
2824         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
2825         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
2827 2010-04-03  Bruno Haible  <bruno@clisp.org>
2829         strptime: Fix C++ test error on mingw.
2830         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
2831         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
2832         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
2833         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
2834         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
2835         not REPLACE_STRPTIME.
2836         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
2837         REPLACE_STRPTIME.
2839 2010-04-03  Bruno Haible  <bruno@clisp.org>
2841         timegm: Fix C++ test error on mingw.
2842         * lib/time.in.h (timegm): Use modern idiom.
2843         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
2844         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
2845         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
2846         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
2848 2010-04-03  Bruno Haible  <bruno@clisp.org>
2850         timegm: Assume declaration if function exists.
2851         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
2852         if it exists. Don't clobber ac_cv_func_timegm.
2854 2010-04-03  Bruno Haible  <bruno@clisp.org>
2856         time_r: Fix C++ test error on mingw.
2857         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
2858         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
2859         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
2860         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
2861         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
2863 2010-04-03  Bruno Haible  <bruno@clisp.org>
2865         time_r: Minor updates.
2866         * modules/time_r (Description): Mention the provided functions.
2867         * lib/time_r.c: Don't include <string.h>.
2868         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
2869         * doc/posix-functions/localtime_r.texi: Likewise.
2871 2010-04-03  Bruno Haible  <bruno@clisp.org>
2873         time: Fix regression introduced on 2010-03-08.
2874         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
2875         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
2877 2010-04-03  Jim Meyering  <meyering@redhat.com>
2879         maint.mk: don't silently disable project-specific syntax-check rules
2880         * top/maint.mk (_prohibit_regexp): Define, to help people realize
2881         that they need to convert their project-specific syntax-check rules
2882         to use the new _sc_search_regexp.
2884 2010-04-03  Bruno Haible  <bruno@clisp.org>
2886         fchdir: Fix regression introduced on 2010-03-08.
2887         * lib/unistd.in.h (fchdir): Fix declaration.
2888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
2889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
2890         REPLACE_FCHDIR.
2891         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
2892         REPLACE_FCHDIR.
2894 2010-04-03  Bruno Haible  <bruno@clisp.org>
2896         getpagesize: Fix C++ test error on mingw.
2897         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
2898         system does not declare the function.
2899         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
2900         declared.
2901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2902         HAVE_DECL_GETPAGESIZE.
2903         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
2905 2010-04-03  Bruno Haible  <bruno@clisp.org>
2907         stdio: Make C++ tests work on mingw.
2908         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
2909         does not declare the function.
2911 2010-04-03  Bruno Haible  <bruno@clisp.org>
2913         ftello: Fix C++ test error on mingw.
2914         * lib/stdio.in.h (ftello): Use modern idiom.
2915         * lib/ftello.c (ftello): Renamed from rpl_ftello.
2916         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
2917         is missing and that it needs to be replaced.
2918         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
2919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
2920         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
2922 2010-04-03  Bruno Haible  <bruno@clisp.org>
2924         fseeko: Fix C++ test error on mingw.
2925         * lib/stdio.in.h (fseeko): Use modern idiom.
2926         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
2927         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
2928         is missing and that it needs to be replaced.
2929         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
2930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
2931         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
2933 2010-04-03  Bruno Haible  <bruno@clisp.org>
2935         mkstemp: Fix C++ test error on mingw.
2936         * lib/stdlib.in.h (mkstemp): Use modern idiom.
2937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
2938         function is missing and that it needs to be replaced.
2939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
2940         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
2942 2010-04-03  Bruno Haible  <bruno@clisp.org>
2944         stpncpy: Fix C++ test error on mingw.
2945         * lib/string.in.h (stpncpy): Use modern idiom.
2946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
2947         function is missing and that it needs to be replaced.
2948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2949         REPLACE_STPNCPY.
2950         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
2952 2010-04-03  Bruno Haible  <bruno@clisp.org>
2954         sys_stat: Fix C++ test error on mingw.
2955         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
2956         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
2958 2010-04-03  Bruno Haible  <bruno@clisp.org>
2960         pty: Update doc.
2961         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
2963 2010-04-03  Bruno Haible  <bruno@clisp.org>
2965         unistd: Fix C++ test error on mingw.
2966         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
2968 2010-04-03  Bruno Haible  <bruno@clisp.org>
2970         Update doc regarding mingw.
2971         * doc/glibc-functions/openpty.texi: Update regarding mingw.
2972         * doc/glibc-functions/login_tty.texi: Likewise.
2973         * doc/glibc-functions/forkpty.texi: Likewise.
2975 2010-04-03  Bruno Haible  <bruno@clisp.org>
2977         stdlib: Avoid compilation failure of c-strtold on mingw.
2978         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
2980 2010-04-03  Bruno Haible  <bruno@clisp.org>
2982         locale: Make C++ tests work on Cygwin and mingw.
2983         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
2984         cannot provide the function.
2985         Reported by Simon Josefsson.
2987 2010-04-03  Bruno Haible  <bruno@clisp.org>
2989         localename: Port to MacOS X 10.6.
2990         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
2991         memory layout of the locales in MacOS X 10.6 as well.
2992         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
2994 2010-04-02  Bruno Haible  <bruno@clisp.org>
2996         gnulib-tool: Ensure that long-running tests are executed last.
2997         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
2998         running tests after the one for the other tests.
3000 2010-04-02  Bruno Haible  <bruno@clisp.org>
3002         gnulib-tool: Ensure the tests in the main directory are executed first.
3003         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3004         start with the current directory.
3006 2010-04-02  Bruno Haible  <bruno@clisp.org>
3008         Tests for module 'havelib', moved here from GNU gettext.
3009         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3010         modifications.
3011         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3012         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3013         with modifications.
3014         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3015         modifications.
3016         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3017         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3018         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3019         with modifications.
3020         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3021         with modifications.
3022         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3023         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3024         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3025         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3026         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3027         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3028         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3029         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3030         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3031         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3032         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3033         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3034         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3035         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3036         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3037         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3038         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3039         with modifications.
3040         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3041         with modifications.
3042         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3043         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3044         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3045         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3046         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3047         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3048         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3049         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3050         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3051         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3052         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3053         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3054         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3055         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3056         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3057         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3058         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3059         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3060         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3061         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3062         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3063         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3064         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3065         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3066         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3067         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3068         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3069         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3070         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3071         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3072         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3073         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3074         * tests/havelib/rpathx/rpathx.c: New file, from
3075         gettext/autoconf-lib-link.
3076         * tests/havelib/rpathx/Makefile.am: New file, from
3077         gettext/autoconf-lib-link.
3078         * tests/havelib/rpathx/configure.ac: New file, from
3079         gettext/autoconf-lib-link with modifications.
3080         * tests/havelib/rpathy/rpathy.c: New file, from
3081         gettext/autoconf-lib-link.
3082         * tests/havelib/rpathy/Makefile.am: New file, from
3083         gettext/autoconf-lib-link.
3084         * tests/havelib/rpathy/configure.ac: New file, from
3085         gettext/autoconf-lib-link with modifications.
3086         * tests/havelib/rpathz/rpathz.c: New file, from
3087         gettext/autoconf-lib-link.
3088         * tests/havelib/rpathz/Makefile.am: New file, from
3089         gettext/autoconf-lib-link.
3090         * tests/havelib/rpathz/configure.ac: New file, from
3091         gettext/autoconf-lib-link with modifications.
3092         * tests/havelib/rpathlx/usex.c: New file, from
3093         gettext/autoconf-lib-link.
3094         * tests/havelib/rpathlx/Makefile.am: New file, from
3095         gettext/autoconf-lib-link.
3096         * tests/havelib/rpathlx/configure.ac: New file, from
3097         gettext/autoconf-lib-link with modifications.
3098         * tests/havelib/rpathly/usey.c: New file, from
3099         gettext/autoconf-lib-link.
3100         * tests/havelib/rpathly/Makefile.am: New file, from
3101         gettext/autoconf-lib-link.
3102         * tests/havelib/rpathly/configure.ac: New file, from
3103         gettext/autoconf-lib-link with modifications.
3104         * tests/havelib/rpathlz/usez.c: New file, from
3105         gettext/autoconf-lib-link.
3106         * tests/havelib/rpathlz/Makefile.am: New file, from
3107         gettext/autoconf-lib-link.
3108         * tests/havelib/rpathlz/configure.ac: New file, from
3109         gettext/autoconf-lib-link with modifications.
3110         * tests/havelib/rpathlyx/usey.c: New file, from
3111         gettext/autoconf-lib-link.
3112         * tests/havelib/rpathlyx/Makefile.am: New file, from
3113         gettext/autoconf-lib-link.
3114         * tests/havelib/rpathlyx/configure.ac: New file, from
3115         gettext/autoconf-lib-link with modifications.
3116         * tests/havelib/rpathlzyx/usez.c: New file, from
3117         gettext/autoconf-lib-link.
3118         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3119         gettext/autoconf-lib-link.
3120         * tests/havelib/rpathlzyx/configure.ac: New file, from
3121         gettext/autoconf-lib-link with modifications.
3122         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3123         with modifications.
3125 2010-04-02  Bruno Haible  <bruno@clisp.org>
3127         gnulib-tool: Create distributed built sources also for the tests.
3128         * gnulib-tool (func_create_testdir): Also generate distributed built
3129         sources in the tests directory.
3131 2010-04-02  Bruno Haible  <bruno@clisp.org>
3133         gnulib-tool: Obey user's environment variables.
3134         * gnulib-tool (func_create_testdir): When creating built sources,
3135         respect the environment variables for autoconf, automake, etc. given by
3136         the user.
3138 2010-04-02  Bruno Haible  <bruno@clisp.org>
3140         gnulib-tool: Provide the value of --m4-base to modules.
3141         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3142         of gl_m4_base.
3144 2010-04-02  Eric Blake  <eblake@redhat.com>
3146         maint.mk: fix some fallout
3147         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3148         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3150 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3152         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3153         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3154         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3155         (sc_cast_of_x_alloc_return_value): Likewise.
3156         (sc_cast_of_alloca_return_value): Likewise.
3157         (sc_space_tab): Likewise.
3158         (sc_prohibit_atoi_atof): Likewise.
3159         (sc_prohibit_magic_number_exit): Likewise.
3160         (sc_error_exit_success): Likewise.
3161         (sc_file_system): Likewise.
3162         (sc_prohibit_have_config_h): Likewise.
3163         (sc_require_config_h): Likewise.
3164         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3165         (sc_obsolete_symbols): Likewise.
3166         (sc_changelog): Likewise.
3167         (sc_program_name): Likewise.
3168         (sc_the_the): Likewise.
3169         (sc_trailing_blank): Likewise.
3170         (sc_two_space_separator_in_usage): Likewise.
3171         (sc_useless_cpp_parens): Likewise.
3172         (sc_GPL_version): Likewise.
3173         (sc_GFDL_version): Likewise.
3174         (sc_texinfo_acronym): Likewise.
3175         (sc_prohibit_cvs_keyword): Likewise.
3176         (sc_prohibit_stat_st_blocks): Likewise.
3177         (sc_prohibit_S_IS_definition): Likewise.
3178         (sc_redundant_const): Likewise.
3179         (sc_makefile_TAB_only_indentation): Likewise.
3180         (sc_m4_quote_check): Likewise.
3181         (sc_makefile_path_separator_check): Likewise.
3182         (sc_copyright_check): Likewise.
3183         (sc_Wundef_boolean): Likewise.
3184         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3186         maint.mk: match 0 or more whitespace-before-function-call '('
3187         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3188         that have zero or two-and-more spaces between the function name
3189         and the open parenthesis.
3190         (sc_error_message_warn_fatal): Likewise.
3191         (sc_error_message_uppercase): Likewise.
3192         (sc_error_message_period): Likewise.
3194 2010-03-31  Eric Blake  <eblake@redhat.com>
3196         maint.mk: check for [ as well as test
3197         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3198         Based on a libvirt report by Matthias Bolte.
3200         gnumakefile: don't squelch _version output
3201         * top/GNUmakefile (_version): Create one-shot dependency rather
3202         than using $(shell) when version must be regenerated.
3203         (_autoreconf): Run verbosely, by default.
3205         sys_time: avoid compiler warnings
3206         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3207         unconditional, fixing regression from 2010-03-29.
3208         Reported by Simon Josefsson.
3210 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3212         maint.mk: s/_header_without_use/_sc_header_without_use/
3213         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3214         (sc_prohibit_assert_without_use): Use the new name.
3215         (sc_prohibit_close_stream_without_use): Likewise.
3216         (sc_prohibit_getopt_without_use): Likewise.
3217         (sc_prohibit_quotearg_without_use): Likewise.
3218         (sc_prohibit_quote_without_use): Likewise.
3219         (sc_prohibit_long_options_without_use): Likewise.
3220         (sc_prohibit_inttostr_without_use): Likewise.
3221         (sc_prohibit_ignore_value_without_use): Likewise.
3222         (sc_prohibit_error_without_use): Likewise.
3223         (sc_prohibit_xalloc_without_use): Likewise.
3224         (sc_prohibit_hash_without_use): Likewise.
3225         (sc_prohibit_hash_pjw_without_use): Likewise.
3226         (sc_prohibit_safe_read_without_use): Likewise.
3227         (sc_prohibit_argmatch_without_use): Likewise.
3228         (sc_prohibit_canonicalize_without_use): Likewise.
3229         (sc_prohibit_root_dev_ino_without_use): Likewise.
3230         (sc_prohibit_openat_without_use): Likewise.
3231         (sc_prohibit_c_ctype_without_use): Likewise.
3232         (sc_prohibit_signal_without_use): Likewise.
3233         (sc_prohibit_intprops_without_use): Likewise.
3235 2010-03-30  Eric Blake  <eblake@redhat.com>
3237         maint: improve module indicators
3238         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3239         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3240         columns, and avoid extra macro expansion.
3242         fdopendir: work around FreeBSD bug
3243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3244         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3245         * modules/dirent (Makefile.am): Substitute it.
3246         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3247         declaration.
3248         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3249         fix.
3250         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3252 2010-03-29  Bruno Haible  <bruno@clisp.org>
3254         Emit #pragma system_header after the inclusion guard, not before.
3255         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3256         guard that spans the entire file, not before. This enables an
3257         optimization in GCC's preprocessor.
3258         * lib/ctype.in.h: Likewise.
3259         * lib/dirent.in.h: Likewise.
3260         * lib/errno.in.h: Likewise.
3261         * lib/float.in.h: Likewise.
3262         * lib/getopt.in.h: Likewise.
3263         * lib/iconv.in.h: Likewise.
3264         * lib/langinfo.in.h: Likewise.
3265         * lib/locale.in.h: Likewise.
3266         * lib/math.in.h: Likewise.
3267         * lib/netdb.in.h: Likewise.
3268         * lib/netinet_in.in.h: Likewise.
3269         * lib/pty.in.h: Likewise.
3270         * lib/sched.in.h: Likewise.
3271         * lib/se-selinux.in.h: Likewise.
3272         * lib/search.in.h: Likewise.
3273         * lib/spawn.in.h: Likewise.
3274         * lib/stdarg.in.h: Likewise.
3275         * lib/stdint.in.h: Likewise.
3276         * lib/string.in.h: Likewise.
3277         * lib/strings.in.h: Likewise.
3278         * lib/sys_file.in.h: Likewise.
3279         * lib/sys_ioctl.in.h: Likewise.
3280         * lib/sys_time.in.h: Likewise.
3281         * lib/sys_times.in.h: Likewise.
3282         * lib/sys_utsname.in.h: Likewise.
3283         * lib/sys_wait.in.h: Likewise.
3284         * lib/sysexits.in.h: Likewise.
3285         * lib/wctype.in.h: Likewise.
3287 2010-03-28  James Youngman  <jay@gnu.org>
3289         save-cwd: don't leak a file descriptor when the caller execs.
3290         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3291         saved file descriptor.
3292         * modules/save-cwd (Depends-on): Depend on cloexec.
3294 2010-03-29  Bruno Haible  <bruno@clisp.org>
3296         Remove vestiges of fts-lgpl module.
3297         * lib/fts_.h: Assume GNULIB_FTS is 1.
3298         * lib/fts.c: Likewise.
3299         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3301 2010-03-28  Bruno Haible  <bruno@clisp.org>
3303         Fix definition of tests witness macro.
3304         * gnulib-tool (func_import): Fix definition of witness macro.
3306 2010-03-28  Bruno Haible  <bruno@clisp.org>
3308         Fix ioctl's protoype on glibc systems.
3309         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
3310         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
3311         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
3312         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
3313         signature. If not, arrange to replace the ioctl function.
3314         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3315         REPLACE_IOCTL.
3316         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
3317         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
3318         Reported by Ludovic Courtès <ludo@gnu.org>.
3320 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
3322         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
3323         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
3324         made it so grep -r --include=GLOB* ... did not work.
3326 2010-03-26  Jim Meyering  <meyering@redhat.com>
3327             Eric Blake  <eblake@redhat.com>
3329         maint.mk: prohibit use of test's -o and -a operators
3330         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
3332 2010-03-28  Bruno Haible  <bruno@clisp.org>
3334         Remove unused GNULIB_XYZ macro definitions.
3335         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
3336         invocation.
3338 2010-03-28  Bruno Haible  <bruno@clisp.org>
3340         Mark privileged tests modules.
3341         * modules/idpriv-drop-tests (Status): New section.
3342         * modules/idpriv-droptemp-tests (Status): New section.
3344 2010-03-28  Bruno Haible  <bruno@clisp.org>
3346         Split C++ tests into separate tests modules.
3347         * modules/dirent-c++-tests: New file, extracted from
3348         modules/dirent-tests.
3349         * modules/dirent-tests: Depend on it.
3350         * modules/fcntl-h-c++-tests: New file, extracted from
3351         modules/fcntl-h-tests.
3352         * modules/fcntl-h-tests: Depend on it.
3353         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
3354         * modules/glob-tests: Depend on it.
3355         * modules/iconv-h-c++-tests: New file, extracted from
3356         modules/iconv-h-tests.
3357         * modules/iconv-h-tests: Depend on it.
3358         * modules/langinfo-c++-tests: New file, extracted from
3359         modules/langinfo-tests.
3360         * modules/langinfo-tests: Depend on it.
3361         * modules/locale-c++-tests: New file, extracted from
3362         modules/locale-tests.
3363         * modules/locale-tests: Depend on it.
3364         * modules/math-c++-tests: New file, extracted from modules/math-tests.
3365         * modules/math-tests: Depend on it.
3366         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
3367         * modules/pty-tests: Depend on it.
3368         * modules/search-c++-tests: New file, extracted from
3369         modules/search-tests.
3370         * modules/search-tests: Depend on it.
3371         * modules/signal-c++-tests: New file, extracted from
3372         modules/signal-tests.
3373         * modules/signal-tests: Depend on it.
3374         * modules/spawn-c++-tests: New file, extracted from
3375         modules/spawn-tests.
3376         * modules/spawn-tests: Depend on it.
3377         * modules/stdio-c++-tests: New file, extracted from
3378         modules/stdio-tests.
3379         * modules/stdio-tests: Depend on it.
3380         * modules/stdlib-c++-tests: New file, extracted from
3381         modules/stdlib-tests.
3382         * modules/stdlib-tests: Depend on it.
3383         * modules/string-c++-tests: New file, extracted from
3384         modules/string-tests.
3385         * modules/string-tests: Depend on it.
3386         * modules/sys_ioctl-c++-tests: New file, extracted from
3387         modules/sys_ioctl-tests.
3388         * modules/sys_ioctl-tests: Depend on it.
3389         * modules/sys_select-c++-tests: New file, extracted from
3390         modules/sys_select-tests.
3391         * modules/sys_select-tests: Depend on it.
3392         * modules/sys_socket-c++-tests: New file, extracted from
3393         modules/sys_socket-tests.
3394         * modules/sys_socket-tests: Depend on it.
3395         * modules/sys_stat-c++-tests: New file, extracted from
3396         modules/sys_stat-tests.
3397         * modules/sys_stat-tests: Depend on it.
3398         * modules/sys_time-c++-tests: New file, extracted from
3399         modules/sys_time-tests.
3400         * modules/sys_time-tests: Depend on it.
3401         * modules/time-c++-tests: New file, extracted from modules/time-tests.
3402         * modules/time-tests: Depend on it.
3403         * modules/unistd-c++-tests: New file, extracted from
3404         modules/unistd-tests.
3405         * modules/unistd-tests: Depend on it.
3406         * modules/wchar-c++-tests: New file, extracted from
3407         modules/wchar-tests.
3408         * modules/wchar-tests: Depend on it.
3409         * modules/wctype-c++-tests: New file, extracted from
3410         modules/wctype-tests.
3411         * modules/wctype-tests: Depend on it.
3412         Reported by Simon Josefsson.
3414 2010-03-28  Bruno Haible  <bruno@clisp.org>
3416         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
3417         * gnulib-tool (func_exists_module): New function, extracted from
3418         func_verify_module.
3419         (func_verify_module): Use it.
3420         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
3421         'foo' only if 'foo' exists.
3422         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
3423         module.
3425 2010-03-28  Bruno Haible  <bruno@clisp.org>
3427         gnulib-tool: Add support for special categories of tests.
3428         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
3429         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
3430         (func_usage): Document them.
3431         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
3432         inc_unportable_tests, inc_all_tests): New variables.
3433         (func_acceptable): Consider these variables.
3434         (func_modules_transitive_closure): Make it work when the 'Status' field
3435         consists of multiple words.
3436         (func_import): Store and restore the values of inc_cxx_tests,
3437         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
3438         inc_all_tests in gnulib-comp.m4.
3439         (func_create_testdir): Set inc_all_tests to true.
3440         * doc/gnulib.texi (Extra tests modules): New section.
3441         Suggested by Jim Meyering.
3443 2010-03-28  Bruno Haible  <bruno@clisp.org>
3445         ansi-c++-opt: Allow turning off the C++ build by default.
3446         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
3447         gl_CXX_CHOICE_DEFAULT_NO is defined.
3448         Requested by Eric Blake.
3450 2010-03-28  Bruno Haible  <bruno@clisp.org>
3452         unistd: Avoid #define replacements in C++ mode.
3453         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3454         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3455         setsockopt, shutdown, select): In C++, attach a warning to the function
3456         if possible, rather than #defining the symbol to a dysfunctional alias.
3457         Reported by John W. Eaton <jwe@gnu.org>.
3459 2010-03-28  Bruno Haible  <bruno@clisp.org>
3461         Fix link errors on mingw.
3462         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
3463         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
3464         $(LIBSOCKET).
3465         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
3466         $(LIBSOCKET).
3468 2010-03-28  Bruno Haible  <bruno@clisp.org>
3469             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3471         lib-ignore: Determine different options for different compilers.
3472         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
3473         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
3474         Add comments.
3475         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
3476         * NEWS: Mention the change.
3478 2010-03-27  Bruno Haible  <bruno@clisp.org>
3480         Remove unused GNULIB_XYZ macro definitions.
3481         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3482         * modules/fseek (configure.ac): Likewise.
3483         * modules/ioctl (configure.ac): Likewise.
3484         * modules/open (configure.ac): Likewise.
3485         * modules/stdlib-safer (configure.ac): Likewise.
3487 2010-03-27  Bruno Haible  <bruno@clisp.org>
3489         Add a remark about certain modules.
3490         * modules/malloc (Comment): New section.
3491         * modules/realloc (Comment): Likewise.
3492         * modules/sigpipe (Comment): Likewise.
3494 2010-03-27  Bruno Haible  <bruno@clisp.org>
3496         Resolve conflict between the two kinds of module indicators.
3497         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
3498         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
3499         * modules/canonicalize (configure.ac): Invoke
3500         gl_MODULE_INDICATOR_FOR_TESTS.
3501         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
3502         GNULIB_XYZ.
3503         * tests/test-dirent-c++.cc: Likewise.
3504         * tests/test-dirent-safer.c: Likewise.
3505         * tests/test-dup2.c: Likewise.
3506         * tests/test-fchdir.c: Likewise.
3507         * tests/test-fcntl-h-c++.cc: Likewise.
3508         * tests/test-getopt.c: Likewise.
3509         * tests/test-getopt.h: Likewise.
3510         * tests/test-langinfo-c++.cc: Likewise.
3511         * tests/test-locale-c++.cc: Likewise.
3512         * tests/test-math-c++.cc: Likewise.
3513         * tests/test-pty-c++.cc: Likewise.
3514         * tests/test-search-c++.cc: Likewise.
3515         * tests/test-signal-c++.cc: Likewise.
3516         * tests/test-spawn-c++.cc: Likewise.
3517         * tests/test-stdio-c++.cc: Likewise.
3518         * tests/test-stdlib-c++.cc: Likewise.
3519         * tests/test-string-c++.cc: Likewise.
3520         * tests/test-sys_ioctl-c++.cc: Likewise.
3521         * tests/test-sys_select-c++.cc: Likewise.
3522         * tests/test-sys_socket-c++.cc: Likewise.
3523         * tests/test-sys_stat-c++.cc: Likewise.
3524         * tests/test-sys_time-c++.cc: Likewise.
3525         * tests/test-time-c++.cc: Likewise.
3526         * tests/test-unistd-c++.cc: Likewise.
3527         * tests/test-wchar-c++.cc: Likewise.
3528         * tests/uninorm/test-u8-nfc.c: Likewise.
3529         * tests/uninorm/test-u8-nfd.c: Likewise.
3530         * tests/uninorm/test-u8-nfkc.c: Likewise.
3531         * tests/uninorm/test-u8-nfkd.c: Likewise.
3532         * tests/uninorm/test-u16-nfc.c: Likewise.
3533         * tests/uninorm/test-u16-nfd.c: Likewise.
3534         * tests/uninorm/test-u16-nfkc.c: Likewise.
3535         * tests/uninorm/test-u16-nfkd.c: Likewise.
3536         * tests/uninorm/test-u32-nfc.c: Likewise.
3537         * tests/uninorm/test-u32-nfc-big.c: Likewise.
3538         * tests/uninorm/test-u32-nfd.c: Likewise.
3539         * tests/uninorm/test-u32-nfd-big.c: Likewise.
3540         * tests/uninorm/test-u32-nfkc.c: Likewise.
3541         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
3542         * tests/uninorm/test-u32-nfkd.c: Likewise.
3543         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
3544         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3546 2010-03-27  Bruno Haible  <bruno@clisp.org>
3548         Distinguish two kinds of module indicators.
3549         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
3550         gl_MODULE_INDICATOR.
3551         (gl_MODULE_INDICATOR): New macro.
3552         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
3553         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
3554         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3555         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3556         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3557         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3558         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3559         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3560         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3561         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3562         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3563         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3565         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3566         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3567         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3568         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3569         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3570         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3571         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3572         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3573         * modules/cloexec (configure.ac): Likewise.
3574         * modules/getopt-gnu (configure.ac): Likewise.
3575         * modules/uninorm/u8-normalize (configure.ac): Likewise.
3576         * modules/uninorm/u16-normalize (configure.ac): Likewise.
3577         * modules/uninorm/u32-normalize (configure.ac): Likewise.
3578         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
3580 2010-03-27  Bruno Haible  <bruno@clisp.org>
3582         New module description field 'Comment'.
3583         * gnulib-tool: New option --extract-comment.
3584         (func_usage): Document it.
3585         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
3586         (func_get_comment): New function.
3587         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
3589 2010-03-27  Bruno Haible  <bruno@clisp.org>
3591         Addendum to 2010-02-07 commit.
3592         * gnulib-tool (func_usage): Document --extract-applicability option.
3594 2010-03-27  Bruno Haible  <bruno@clisp.org>
3596         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
3597         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
3598         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
3599         rather than link errors.
3601 2010-03-27  Bruno Haible  <bruno@clisp.org>
3603         Avoid side effects from tests-related modules on the compilation of lib.
3604         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
3605         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
3606         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
3607         parameter. Emit into AM_CPPFLAGS a definition of the designated C
3608         macro.
3609         (func_import): Define a witness macro. Assign it a value that depends
3610         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
3611         tests-related modules.
3612         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
3613         Reported by Jim Meyering.
3615 2010-03-27  Bruno Haible  <bruno@clisp.org>
3617         Factorize common .m4 code.
3618         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
3619         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
3620         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
3621         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
3622         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3623         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
3624         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
3625         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3626         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3627         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3628         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
3629         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3630         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3631         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3632         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3633         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
3634         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3635         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3637         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
3638         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
3639         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3640         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3642         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3643         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3644         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
3645         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
3646         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
3647         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3648         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3649         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3651 2010-03-27  Bruno Haible  <bruno@clisp.org>
3653         Fix a compilation error on Cygwin with g++ >= 4.3.
3654         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
3655         if it is undefined or if we alias it to chmod.
3656         (lstat): Don't warn about the use of this function if it is undefined
3657         or if we alias it to stat.
3658         Reported by Simon Josefsson.
3660 2010-03-27  Bruno Haible  <bruno@clisp.org>
3662         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
3663         * modules/getlogin (configure.ac): Update.
3665         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
3666         * modules/getlogin_r (configure.ac): Update.
3668         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
3669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
3670         * modules/inet_ntop (configure.ac): Update.
3672         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
3673         * modules/inet_pton (configure.ac): Update.
3675         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
3676         * modules/mbslen (configure.ac): Update.
3678         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
3679         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
3680         * modules/forkpty (configure.ac): Update.
3681         * modules/openpty (configure.ac): Update.
3683 2010-03-26  Simon Josefsson  <simon@josefsson.org>
3685         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
3686         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
3688 2010-03-25  Eric Blake  <eblake@redhat.com>
3690         maint: use pragma consistently across replacement headers
3691         * lib/ctype.in.h (system_header): Hoist for consistent placement.
3692         * lib/dirent.in.h (system_header): Likewise.
3693         * lib/errno.in.h (system_header): Likewise.
3694         * lib/float.in.h (system_header): Likewise.
3695         * lib/getopt.in.h (system_header): Likewise.
3696         * lib/iconv.in.h (system_header): Likewise.
3697         * lib/inttypes.in.h (system_header): Likewise.
3698         * lib/langinfo.in.h (system_header): Likewise.
3699         * lib/locale.in.h (system_header): Likewise.
3700         * lib/math.in.h (system_header): Likewise.
3701         * lib/netdb.in.h (system_header): Likewise.
3702         * lib/netinet_in.in.h (system_header): Likewise.
3703         * lib/pty.in.h (system_header): Likewise.
3704         * lib/sched.in.h (system_header): Likewise.
3705         * lib/se-selinux.in.h (system_header): Likewise.
3706         * lib/search.in.h (system_header): Likewise.
3707         * lib/spawn.in.h (system_header): Likewise.
3708         * lib/stdarg.in.h (system_header): Likewise.
3709         * lib/stdint.in.h (system_header): Likewise.
3710         * lib/string.in.h (system_header): Likewise.
3711         * lib/strings.in.h (system_header): Likewise.
3712         * lib/sys_file.in.h (system_header): Likewise.
3713         * lib/sys_ioctl.in.h (system_header): Likewise.
3714         * lib/sys_socket.in.h (system_header): Likewise.
3715         * lib/sys_times.in.h (system_header): Likewise.
3716         * lib/sys_utsname.in.h (system_header): Likewise.
3717         * lib/sys_wait.in.h (system_header): Likewise.
3718         * lib/sysexits.in.h (system_header): Likewise.
3719         * lib/unistd.in.h (system_header): Likewise.
3720         * lib/wctype.in.h (system_header): Likewise.
3722         arpa/inet: fix mingw compilation warning
3723         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
3724         Reported by Matthew Bolte.
3726 2010-03-25  Bruno Haible  <bruno@clisp.org>
3728         Avoid collision between gnulib wrapper and libintl wrapper.
3729         * lib/printf.c (printf): Don't define if a printf wrapper is already
3730         defined in intl/printf.c.
3731         Reported by Michel Boaventura <michel@michelboaventura.com>.
3733 2010-03-25  Bruno Haible  <bruno@clisp.org>
3735         Use ANSI C.
3736         * lib/readutmp.h (getutent): Provide ANSI C prototype.
3738 2010-03-25  Bruno Haible  <bruno@clisp.org>
3740         Minor formatting changes.
3741         * lib/acosl.c: Insert space before function argument list.
3742         * lib/argz.c: Likewise.
3743         * lib/asinl.c: Likewise.
3744         * lib/expl.c: Likewise.
3745         * lib/gen-uni-tables.c: Likewise.
3746         * lib/gettext.h: Likewise.
3747         * lib/glthread/lock.h: Likewise.
3748         * lib/tanl.c: Likewise.
3749         * lib/uniname/uniname.c: Likewise.
3750         * tests/test-idpriv-drop.c: Likewise.
3751         * tests/test-idpriv-droptemp.c: Likewise.
3752         * tests/test-lock.c: Likewise.
3753         * tests/test-tls.c: Likewise.
3754         * lib/argp-help.c: Insert space before function-like macro argument
3755         list.
3756         * lib/memcmp.c: Likewise.
3757         * tests/test-base64.c: Likewise.
3758         * lib/localename.c: Insert space before sizeof's argument list.
3759         * lib/safe-alloc.h: Likewise.
3760         * lib/file-set.h: Insert space before macro argument list.
3761         * tests/test-argp.c: Likewise.
3762         * lib/argp-namefrob.h: Insert space before function parameter list.
3763         * lib/getaddrinfo.c: Likewise.
3764         * lib/netdb.in.h: Likewise.
3765         * lib/parse-duration.h: Likewise.
3766         * lib/parse-duration.c: Likewise.
3767         * lib/poll.c: Likewise.
3768         * lib/select.c: Likewise.
3769         * lib/trim.h: Likewise.
3770         * tests/test-usleep.c: Likewise.
3771         * lib/ldexpl.c: Insert space before function parameter list and before
3772         function argument list.
3773         * lib/logl.c: Likewise.
3774         * lib/sqrtl.c: Likewise.
3775         * lib/trim.c: Likewise.
3776         * lib/cosl.c: Use GNU style indentation. Insert space before function
3777         argument list.
3778         * lib/sinl.c: Likewise.
3779         * lib/tsearch.c: Insert space after 'for'.
3780         Reported by Jim Meyering.
3782 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
3784         * maint.mk (sc_Wundef_boolean): Check for the presence of the
3785         config header before grepping, as it's not present before
3786         autoreconf/configure are run.  Reported by Simon Josefsson.
3788 2010-03-23  Bruno Haible  <bruno@clisp.org>
3790         pt_chown: Make it work with automake < 1.11.
3791         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
3792         Reported by Simon Josefsson.
3794 2010-03-23  Bruno Haible  <bruno@clisp.org>
3796         pt_chown: Don't depend on GPLed modules.
3797         * lib/pt_chown.c: Don't include idpriv.h.
3798         (main): Don't drop privileges.
3799         * modules/pt_chown (Depends-on): Remove idpriv-drop.
3800         Reported by Simon Josefsson.
3802 2010-03-24  Simon Josefsson  <simon@josefsson.org>
3804         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
3805         suggestions from karl@freefriends.org (Karl Berry).
3807 2010-03-22  Eric Blake  <eblake@redhat.com>
3809         gethostname: further tweaks
3810         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
3811         are overriding gethostname.
3812         Suggested by Bruno Haible.
3814 2010-03-21  Bruno Haible  <bruno@clisp.org>
3816         Fix comments.
3817         * lib/forkpty.c (rpl_forkpty): Fix comment.
3818         * lib/openpty.c (rpl_openpty): Likewise.
3819         Reported by Eric Blake.
3821 2010-03-22  Eric Blake  <eblake@redhat.com>
3823         gethostname: fix build on mingw
3824         * lib/unistd.in.h (includes): Work around fact that mingw
3825         <winsock2.h> re-includes <unistd.h>, by avoiding any
3826         redeclarations if we are being included by <winsock2.h>.
3827         Reported by Matthias Bolte.
3829 2010-03-21  Bruno Haible  <bruno@clisp.org>
3831         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
3832         * lib/forkpty.c (forkpty): New replacement function, from glibc with
3833         modifications.
3834         * lib/pty.in.h (forkpty): Update declaration. Add comments.
3835         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
3836         provide the replacement.
3837         * modules/forkpty (Depends-on): Add openpty, login_tty.
3838         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
3839         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
3840         * doc/glibc-functions/forkpty.texi: More supported platforms.
3841         * config/srclist.txt: Add forkpty.c (commented).
3843 2010-03-21  Bruno Haible  <bruno@clisp.org>
3845         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
3846         (Makefile.am): Verify that PTY_LIB is defined.
3848         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
3850 2010-03-21  Bruno Haible  <bruno@clisp.org>
3852         Tests for module 'login_tty'.
3853         * modules/login_tty-tests: New file.
3854         * tests/test-login_tty.c: New file.
3856         New module 'login_tty'.
3857         * lib/login_tty.c: New file.
3858         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
3859         * modules/login_tty: New file.
3860         * doc/glibc-functions/login_tty.texi: Mention the new module.
3862 2010-03-21  Bruno Haible  <bruno@clisp.org>
3864         login_tty: Documentation.
3865         * doc/glibc-functions/login_tty.texi: New file.
3866         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
3868 2010-03-21  Bruno Haible  <bruno@clisp.org>
3870         pty: Consistent macro naming.
3871         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
3872         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
3873         * modules/pty (configure.ac): Update.
3875 2010-03-21  Bruno Haible  <bruno@clisp.org>
3877         Tests for openpty: Make stricter.
3878         * tests/test-openpty.c (main): Add test of canonical processing and
3879         erase.
3880         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
3882         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
3883         * lib/openpty.c (openpty): New replacement function.
3884         * lib/pty.in.h: Include <termios.h>.
3885         (openpty): Update declaration. Add comments.
3886         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
3887         is not declared, arrange to provide the replacement. Check for _getpty
3888         and posix_openpt.
3889         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
3890         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
3891         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
3892         * modules/pty-tests (test_pty_c___LDADD): New variable.
3893         * doc/glibc-functions/openpty.texi: More supported platforms.
3895 2010-03-21  Bruno Haible  <bruno@clisp.org>
3897         setenv: Tweaks.
3898         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
3899         the test program.
3900         * doc/posix-functions/setenv.texi: Update platforms list.
3902 2010-03-21  Bruno Haible  <bruno@clisp.org>
3904         New module 'unlockpt'.
3905         * lib/unlockpt.c: New file, from glibc with modifications.
3906         * m4/unlockpt.m4: New file.
3907         * modules/unlockpt: New file.
3908         * lib/stdlib.in.h (unlockpt): New declaration.
3909         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
3910         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
3911         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
3912         HAVE_UNLOCKPT.
3913         * doc/posix-functions/unlockpt.texi: Mention the new module.
3914         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
3915         * config/srclist.txt: Add unlockpt.c (commented).
3917 2010-03-21  Jim Meyering  <meyering@redhat.com>
3919         maint.mk: prohibit inclusion of "intprops.h" without use
3920         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
3922 2010-03-21  Bruno Haible  <bruno@clisp.org>
3924         New module 'grantpt'.
3925         * lib/grantpt.c: New file, from glibc with modifications.
3926         * m4/grantpt.m4: New file.
3927         * modules/grantpt: New file.
3928         * lib/stdlib.in.h (grantpt): New declaration.
3929         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
3930         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
3931         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
3932         HAVE_GRANTPT.
3933         * doc/posix-functions/grantpt.texi: Mention the new module.
3934         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
3935         * config/srclist.txt: Add grantpt.c (commented).
3937 2010-03-21  Bruno Haible  <bruno@clisp.org>
3939         New module 'pt_chown'.
3940         * lib/pt_chown.c: New file, from glibc with modifications.
3941         * lib/pty-private.h: New file, from glibc with modifications.
3942         * modules/pt_chown: New file.
3943         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
3945 2010-03-21  Bruno Haible  <bruno@clisp.org>
3947         Tests for module 'ptsname'.
3948         * modules/ptsname-tests: New file.
3949         * tests/test-ptsname.c: New file.
3951         New module 'ptsname'.
3952         * lib/ptsname.c: New file, from glibc with modifications.
3953         * m4/ptsname.m4: New file.
3954         * modules/ptsname: New file.
3955         * lib/stdlib.in.h (ptsname): New declaration.
3956         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
3957         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
3958         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
3959         HAVE_PTSNAME.
3960         * doc/posix-functions/ptsname.texi: Mention the new module.
3961         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
3962         * config/srclist.txt: Add ptsname.c (commented).
3964 2010-03-21  Bruno Haible  <bruno@clisp.org>
3966         Tests for module 'ttyname_r'.
3967         * modules/ttyname_r-tests: New file.
3968         * tests/test-ttyname_r.c: New file.
3970         New module 'ttyname_r'.
3971         * lib/ttyname_r.c: New file.
3972         * m4/ttyname_r.m4: New file.
3973         * modules/ttyname_r: New file.
3974         * lib/unistd.in.h (ttyname_r): New declaration.
3975         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
3976         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
3977         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
3978         HAVE_TTYNAME_R.
3979         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
3980         * doc/posix-functions/ttyname_r.texi: Mention the new module.
3982 2010-03-20  Bruno Haible  <bruno@clisp.org>
3984         signal: Undefine macro definitions in C++ mode.
3985         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
3986         sigfillset): Undefine macro definitions from the system header in C++
3987         mode.
3988         Reported by John W. Eaton <jwe@gnu.org>.
3990 2010-03-20  Bruno Haible  <bruno@clisp.org>
3992         Ensure no #include statements inside extern "C" { ... }.
3993         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
3994         contain #include statements.
3995         * lib/time.in.h: Likewise.
3997 2010-03-20  Bruno Haible  <bruno@clisp.org>
3999         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4000         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4001         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4002         Reported by John W. Eaton <jwe@gnu.org>.
4004 2010-03-20  Bruno Haible  <bruno@clisp.org>
4006         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4007         Reported by Jim Meyering.
4009 2010-03-20  Bruno Haible  <bruno@clisp.org>
4011         pipe: Set errno upon failure.
4012         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4013         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4014         errno value in error message.
4016 2010-03-20  Bruno Haible  <bruno@clisp.org>
4017             Jim Meyering  <meyering@redhat.com>
4019         lchown: Avoid "unused variable" warning.
4020         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4022 2010-03-20  Bruno Haible  <bruno@clisp.org>
4024         Work around unlink() bug on MacOS X 10.5.6.
4025         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4026         attempting to unlink a parent directory.
4027         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4028         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4029         activate for the replacement function.
4030         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4032 2010-03-20  Bruno Haible  <bruno@clisp.org>
4034         Fix link errors on Solaris 8.
4035         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4036         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4038 2010-03-19  Jim Meyering  <meyering@redhat.com>
4040         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4041         The _LIBC implementation of build_range_exp correctly honors the
4042         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4043         However, the non-_LIBC implementation would ignore that syntax-bit
4044         flag and return REG_ERANGE unconditionally.
4045         This change makes it honor that flag.
4046         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4047         Make two pointer parameters "const".
4048         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4049         (parse_bracket_exp): Update caller.
4051         regex.m4: correct the reversed range endpoint ([b-a]) test
4052         * m4/regex.m4: When requiring that [b-a] evoke failure,
4053         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4054         test pass once again for x86-based systems.
4056 2010-03-19  Bruno Haible  <bruno@clisp.org>
4058         scandir: Fix link error on Solaris 8.
4059         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4060         macros.
4062 2010-03-19  Bruno Haible  <bruno@clisp.org>
4064         getusershell: Fix documentation.
4065         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4066         module.
4067         * doc/glibc-functions/setusershell.texi: Likewise.
4069         getusershell: Provide declaration, missing on Solaris 9.
4070         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4071         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4072         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4073         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4075         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4076         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4077         HAVE_GETUSERSHELL.
4078         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4080 2010-03-19  Bruno Haible  <bruno@clisp.org>
4082         wctype: Provide iswblank function.
4083         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4084         exists and is fine.
4085         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4086         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4087         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4088         * doc/posix-functions/iswblank.texi: Update.
4090 2010-03-19  Bruno Haible  <bruno@clisp.org>
4092         Tests of module 'pty' in C++ mode.
4093         * modules/pty-tests: New file.
4094         * tests/test-pty-c++.cc: New file.
4095         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4097 2010-03-19  Eric Blake  <eblake@redhat.com>
4099         logb: fix documentation
4100         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4101         1.5 declaration bug.
4103         forkpty, openpty: prefer glibc's const-safe prototype
4104         * lib/forkpty.c (rpl_forkpty): New file.
4105         * lib/openpty.c (rpl_openpty): Likewise.
4106         * modules/forkpty (Files): Distribute it.
4107         * modules/openpty (Files): Likewise.
4108         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4109         check...
4110         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4111         replacement for for non-const BSD signature.
4112         * modules/pty (Makefile.am): Substitute witnesses.
4113         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4114         * tests/test-forkpty.c: Update signature check.
4115         * tests/test-openpty.c: Likewise.
4116         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4117         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4119         forkpty, openpty: split functions into new modules
4120         * modules/pty (Makefile.am): Substitute new witnesses.
4121         (Libraries): Move library detection...
4122         * modules/forkpty: ...into new module.
4123         * modules/openpty: Another new module.
4124         * modules/pty-tests: Rename and split...
4125         * modules/forkpty-tests: ...to this...
4126         * modules/openpty-tests: ...and this.
4127         * tests/test-pty.c: Rename and split...
4128         * tests/test-forkpty.c: ...to this...
4129         * tests/test-openpty.c: ...and this.
4130         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4131         (gl_PTY): Split library searching...
4132         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4133         (gl_FORKPTY, gl_OPENPTY): New macros.
4134         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4135         * NEWS: Mention the split.
4136         * MODULES.html.sh (Misc): Document the modules.
4137         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4138         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4140         pty: improve replacement header
4141         * lib/pty.in.h: New file.
4142         * modules/pty (Files): Ship it.
4143         (Makefile.am): Always build replacement.
4144         * m4/pty.m4: Rename...
4145         * m4/pty_h.m4: ...to this.
4146         (gl_PTY): Modernize setting of witness macros; update check of
4147         forkpty to take proper advantage of cache.
4148         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4150         getopt: avoid compiler warning
4151         * lib/getopt.c (attribute_hidden): Remove unused macro.
4153 2010-03-18  Bruno Haible  <bruno@clisp.org>
4155         Fix link errors on Solaris 8.
4156         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4157         * modules/search-tests (test_search_c___LDADD): Likewise.
4158         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4159         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4160         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4161         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4162         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4163         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4164         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4166 2010-03-18  Bruno Haible  <bruno@clisp.org>
4168         Fix bug introduced on 2010-03-14.
4169         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4170         (gl_SPAWN_H): Require it.
4171         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4172         Reported by Simon Josefsson.
4174 2010-03-18  Bruno Haible  <bruno@clisp.org>
4176         Fix typo introduced on 2009-12-31.
4177         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4178         posix_spawn_file_actions_adddup2.
4180 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4181         and Eric Blake  <eblake@redhat.com>
4183         test-vc-list-files-git: make more robust
4184         * tests/test-vc-list-files-git.sh: Unset problematic environment
4185         variables.  Chain commands together.
4187 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4189         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4190         `AC_CHECK_DECL' invocation.
4192 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4194         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4195         appears before executable statements. Suggested by Petr Sumbera
4196         <Petr.Sumbera@Sun.COM>.
4198 2010-03-14  Bruno Haible  <bruno@clisp.org>
4200         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4201         portability problems. Instead use a simpler test.
4202         (main): Check that invalid arguments are rejected only on Linux.
4204 2010-03-14  Bruno Haible  <bruno@clisp.org>
4206         Fix bug introduced on 2009-12-31.
4207         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4208         gl_PREREQ_SYS_H_WINSOCK2 always.
4209         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4210         SYS_SOCKET_H variable.
4211         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4212         Update comments.
4213         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4214         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4215         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4216         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4217         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4219 2010-03-14  Bruno Haible  <bruno@clisp.org>
4221         Fix values returned by sinl, cosl.
4222         * lib/trigl.h: Add specification comments.
4223         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4224         that combines the values from the precomputed table with the values of
4225         the Chebyshev polynomials.
4227 2010-03-14  Bruno Haible  <bruno@clisp.org>
4229         Fix compilation error when modules 'posix_spawn[p]' are not used.
4230         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4231         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4233 2010-03-14  Bruno Haible  <bruno@clisp.org>
4235         Fix compilation error on mingw when module 'time_r' is not used.
4236         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4237         is 1.
4238         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4239         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4240         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4241         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4243 2010-03-14  Bruno Haible  <bruno@clisp.org>
4245         Fix compilation error with Sun C.
4246         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4247         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4248         instead of GCC specific ULONG_LONG_MAX.
4249         * lib/xstrtoll.c: Likewise.
4250         * lib/xstrtoull.c: Likewise.
4252 2010-03-13  Bruno Haible  <bruno@clisp.org>
4254         Allow the user to disable C++ code and tests.
4255         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4256         (gl_PROG_ANSI_CXX): Require it.
4258 2010-03-13  Bruno Haible  <bruno@clisp.org>
4260         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4261         cases.
4263 2010-03-13  Bruno Haible  <bruno@clisp.org>
4265         Test that gnulib does not break the standard C++ headers.
4266         * tests/test-locale-c++2.cc: New file.
4267         * modules/locale-tests (Files): Add it.
4268         (Makefile.am): Compile it for test-locale-c++.
4269         * tests/test-math-c++2.cc: New file.
4270         * modules/math-tests (Files): Add it.
4271         (Makefile.am): Compile it for test-math-c++.
4272         * tests/test-signal-c++2.cc: New file.
4273         * modules/signal-tests (Files): Add it.
4274         (Makefile.am): Compile it for test-signal-c++.
4275         * tests/test-stdio-c++2.cc: New file.
4276         * modules/stdio-tests (Files): Add it.
4277         (Makefile.am): Compile it for test-stdio-c++.
4278         * tests/test-stdlib-c++2.cc: New file.
4279         * modules/stdlib-tests (Files): Add it.
4280         (Makefile.am): Compile it for test-stdlib-c++.
4281         * tests/test-string-c++2.cc: New file.
4282         * modules/string-tests (Files): Add it.
4283         (Makefile.am): Compile it for test-string-c++.
4284         * tests/test-time-c++2.cc: New file.
4285         * modules/time-tests (Files): Add it.
4286         (Makefile.am): Compile it for test-time-c++.
4287         Reported by John W. Eaton <jwe@gnu.org>.
4289 2010-03-13  Bruno Haible  <bruno@clisp.org>
4291         * gnulib-tool (func_usage): Clarify which options are available for
4292         --create-testdir and --create-megatestdir.
4294 2010-03-13  Bruno Haible  <bruno@clisp.org>
4296         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4297         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4298         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4299         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4300         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4301         when appropriate.
4302         Reported by Jim Meyering.
4304 2010-03-12  Simon Josefsson  <simon@josefsson.org>
4306         * gnulib-tool (func_import): Explain origin of code.
4308 2010-03-12  Bruno Haible  <bruno@clisp.org>
4310         Fix problem with automake's definition of CXXLINK.
4311         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
4312         Reported by Simon Josefsson and Ludovic Courtès.
4314 2010-03-12  Bruno Haible  <bruno@clisp.org>
4316         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
4317         stable releases.
4319 2010-03-11  Bruno Haible  <bruno@clisp.org>
4321         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
4322         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
4323         whether the system provides one variant or multiple variants of the
4324         function.
4325         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
4326         C++ compilers.
4327         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
4328         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
4329         Reported by Jim Meyering.
4331 2010-03-09  Simon Josefsson  <simon@josefsson.org>
4333         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
4335 2010-03-08  Bruno Haible  <bruno@clisp.org>
4337         gnulib-tool: Add support for --libtool in --create-testdir.
4338         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
4339         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
4341 2010-03-08  Eric Blake  <eblake@redhat.com>
4343         gnulib-tool.texi: mention possibility of git submodule
4344         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
4345         submodules.
4346         * doc/.gitignore: Ignore another generated file.
4348 2010-03-08  Karl Berry  <karl@gnu.org>
4350         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4351         of committing gnulib files while skipping others.
4353 2010-03-07  Bruno Haible  <bruno@clisp.org>
4355         Tests of module 'wctype' in C++ mode.
4356         * tests/test-wctype-c++.cc: New file.
4357         * modules/wctype-tests (Files): Add it and tests/signature.h.
4358         (Depends-on): Add ansi-c++-opt.
4359         (Makefile.am): Arrange to compile and run test-wctype-c++.
4361         Tests of module 'wchar' in C++ mode.
4362         * tests/test-wchar-c++.cc: New file.
4363         * modules/wchar-tests (Files): Add it and tests/signature.h.
4364         (Depends-on): Add ansi-c++-opt.
4365         (Makefile.am): Arrange to compile and run test-wchar-c++.
4366         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
4367         gl_MODULE_INDICATOR.
4369         Tests of module 'unistd' in C++ mode.
4370         * tests/test-unistd-c++.cc: New file.
4371         * modules/unistd-tests (Files): Add it and tests/signature.h.
4372         (Depends-on): Add ansi-c++-opt.
4373         (Makefile.am): Arrange to compile and run test-unistd-c++.
4374         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
4375         gl_MODULE_INDICATOR.
4377         Tests of module 'time' in C++ mode.
4378         * tests/test-time-c++.cc: New file.
4379         * modules/time-tests (Files): Add it and tests/signature.h.
4380         (Depends-on): Add ansi-c++-opt.
4381         (Makefile.am): Arrange to compile and run test-time-c++.
4382         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4384         Tests of module 'sys_time' in C++ mode.
4385         * tests/test-sys_time-c++.cc: New file.
4386         * modules/sys_time-tests (Files): Add it and tests/signature.h.
4387         (Depends-on): Add ansi-c++-opt.
4388         (Makefile.am): Arrange to compile and run test-sys_time-c++.
4389         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
4390         gl_MODULE_INDICATOR.
4392         Tests of module 'sys_stat' in C++ mode.
4393         * tests/test-sys_stat-c++.cc: New file.
4394         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
4395         (Depends-on): Add ansi-c++-opt.
4396         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
4397         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
4398         gl_MODULE_INDICATOR.
4400         Tests of module 'sys_socket' in C++ mode.
4401         * tests/test-sys_socket-c++.cc: New file.
4402         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
4403         (Depends-on): Add ansi-c++-opt.
4404         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
4405         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
4406         gl_MODULE_INDICATOR.
4408         Tests of module 'sys_select' in C++ mode.
4409         * tests/test-sys_select-c++.cc: New file.
4410         * modules/sys_select-tests (Files): Add it and tests/signature.h.
4411         (Depends-on): Add ansi-c++-opt.
4412         (Makefile.am): Arrange to compile and run test-sys_select-c++.
4413         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
4414         gl_MODULE_INDICATOR.
4416         Tests of module 'sys_ioctl' in C++ mode.
4417         * tests/test-sys_ioctl-c++.cc: New file.
4418         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
4419         (Depends-on): Add ansi-c++-opt.
4420         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
4421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
4422         gl_MODULE_INDICATOR.
4424         Tests of module 'string' in C++ mode.
4425         * tests/test-string-c++.cc: New file.
4426         * modules/string-tests (Files): Add it and tests/signature.h.
4427         (Depends-on): Add ansi-c++-opt.
4428         (Makefile.am): Arrange to compile and run test-string-c++.
4429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
4430         gl_MODULE_INDICATOR.
4432         Tests of module 'stdlib' in C++ mode.
4433         * tests/test-stdlib-c++.cc: New file.
4434         * modules/stdlib-tests (Files): Add it and tests/signature.h.
4435         (Depends-on): Add ansi-c++-opt.
4436         (Makefile.am): Arrange to compile and run test-stdlib-c++.
4437         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
4438         gl_MODULE_INDICATOR.
4440         Tests of module 'stdio' in C++ mode.
4441         * tests/test-stdio-c++.cc: New file.
4442         * modules/stdio-tests (Files): Add it and tests/signature.h.
4443         (Depends-on): Add ansi-c++-opt.
4444         (Makefile.am): Arrange to compile and run test-stdio-c++.
4445         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
4446         gl_MODULE_INDICATOR.
4448         Tests of module 'spawn' in C++ mode.
4449         * tests/test-spawn-c++.cc: New file.
4450         * modules/spawn-tests (Files): Add it and tests/signature.h.
4451         (Depends-on): Add ansi-c++-opt.
4452         (Makefile.am): Arrange to compile and run test-spawn-c++.
4453         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
4454         gl_MODULE_INDICATOR.
4456         Tests of module 'signal' in C++ mode.
4457         * tests/test-signal-c++.cc: New file.
4458         * modules/signal-tests (Files): Add it and tests/signature.h.
4459         (Depends-on): Add ansi-c++-opt.
4460         (Makefile.am): Arrange to compile and run test-signal-c++.
4461         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
4462         gl_MODULE_INDICATOR.
4464         Tests of module 'search' in C++ mode.
4465         * tests/test-search-c++.cc: New file.
4466         * modules/search-tests (Files): Add it and tests/signature.h.
4467         (Depends-on): Add ansi-c++-opt.
4468         (Makefile.am): Arrange to compile and run test-search-c++.
4469         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
4470         gl_MODULE_INDICATOR.
4472         Tests of module 'math' in C++ mode.
4473         * tests/test-math-c++.cc: New file.
4474         * modules/math-tests (Files): Add it and tests/signature.h.
4475         (Depends-on): Add ansi-c++-opt.
4476         (Makefile.am): Arrange to compile and run test-math-c++.
4477         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4479         Tests of module 'locale' in C++ mode.
4480         * tests/test-locale-c++.cc: New file.
4481         * modules/locale-tests (Files): Add it and tests/signature.h.
4482         (Depends-on): Add ansi-c++-opt.
4483         (Makefile.am): Arrange to compile and run test-locale-c++.
4484         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
4485         gl_MODULE_INDICATOR.
4487         Tests of module 'langinfo' in C++ mode.
4488         * tests/test-langinfo-c++.cc: New file.
4489         * modules/langinfo-tests (Files): Add it and tests/signature.h.
4490         (Depends-on): Add ansi-c++-opt.
4491         (Makefile.am): Arrange to compile and run test-langinfo-c++.
4492         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
4493         gl_MODULE_INDICATOR.
4495         Tests of module 'iconv-h' in C++ mode.
4496         * tests/test-iconv-h-c++.cc: New file.
4497         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
4498         (Depends-on): Add ansi-c++-opt.
4499         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
4501         Tests of module 'glob' in C++ mode.
4502         * tests/test-glob-c++.cc: New file.
4503         * modules/glob-tests (Files): Add it.
4504         (Depends-on): Add ansi-c++-opt.
4505         (Makefile.am): Arrange to compile and run test-glob-c++.
4507         Tests of module 'fcntl-h' in C++ mode.
4508         * tests/test-fcntl-h-c++.cc: New file.
4509         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
4510         (Depends-on): Add ansi-c++-opt.
4511         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
4512         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
4513         gl_MODULE_INDICATOR.
4515         Tests of module 'dirent' in C++ mode.
4516         * tests/test-dirent-c++.cc: New file.
4517         * modules/dirent-tests (Files): Add it and tests/signature.h.
4518         (Depends-on): Add ansi-c++-opt.
4519         (Makefile.am): Arrange to compile and run test-dirent-c++.
4520         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4521         gl_MODULE_INDICATOR.
4523         New module 'ansi-c++-opt'.
4524         * modules/ansi-c++-opt: New file.
4525         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
4527         Document C++ namespace mode.
4528         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
4530         wctype: Avoid #define replacements in C++ mode.
4531         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
4532         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
4533         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
4534         In C++, define a namespaced alias symbol.
4535         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
4536         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
4537         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
4538         rule.
4540         wchar: Avoid #define replacements in C++ mode.
4541         * lib/wchar.in.h: Include c++defs.h.
4542         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
4543         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
4544         symbol.
4545         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
4546         * modules/wchar (Depends-on): Add c++defs.
4547         (Makefile.am): Update wchar.h rule.
4549         unistd: Avoid #define replacements in C++ mode.
4550         * lib/unistd.in.h: Include c++defs.h.
4551         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
4552         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
4553         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
4554         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
4555         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
4556         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
4557         symbol.
4558         (environ): Update.
4559         * modules/unistd (Depends-on): Add c++defs.
4560         (Makefile.am): Update unistd.h rule.
4562         time: Avoid #define replacements in C++ mode.
4563         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
4564         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
4565         define a namespaced alias symbol.
4566         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
4567         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
4568         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
4569         * modules/time (Depends-on): Add c++defs, warn-on-use.
4570         (Makefile.am): Update time.h rule.
4571         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4572         * modules/nanosleep (configure.ac): Likewise.
4573         * modules/strptime (configure.ac): Likewise.
4574         * modules/timegm (configure.ac): Likewise.
4576         sys_time: Avoid #define replacements in C++ mode.
4577         * lib/sys_time.in.h: Include c++defs.h.
4578         (gettimeofday): In C++, define a namespaced alias symbol.
4579         * modules/sys_time (Depends-on): Add c++defs.
4580         (Makefile.am): Update sys/time.h rule.
4582         sys_stat: Avoid #define replacements in C++ mode.
4583         * lib/sys_stat.in.h: Include c++defs.h.
4584         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
4585         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
4586         namespaced alias symbol.
4587         In C++, define a namespaced alias symbol.
4588         * modules/sys_stat (Depends-on): Add c++defs.
4589         (Makefile.am): Update sys/stat.h rule.
4591         sys_socket: Avoid #define replacements in C++ mode.
4592         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
4593         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
4594         definitions also when the system has a <sys/socket.h>.
4595         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4596         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
4597         In C++, define a namespaced alias symbol.
4598         * modules/sys_socket (Depends-on): Add c++defs.
4599         (Makefile.am): Update sys/socket.h rule.
4601         sys_select: Avoid #define replacements in C++ mode.
4602         * lib/sys_select.in.h: Include c++defs.h. Enable the function
4603         definitions also when the system has a <sys/select.h>.
4604         (select): In C++, define a namespaced alias symbol.
4605         * modules/sys_select (Depends-on): Add c++defs.
4606         (Makefile.am): Update sys/select.h rule.
4608         sys_ioctl: Avoid #define replacements in C++ mode.
4609         * lib/sys_ioctl.in.h: Include c++defs.h.
4610         (ioctl): In C++, define a namespaced alias symbol.
4611         * modules/sys_ioctl (Depends-on): Add c++defs.
4612         (Makefile.am): Update sys/ioctl.h rule.
4614         string: Avoid #define replacements in C++ mode.
4615         * lib/string.in.h: Include c++defs.h.
4616         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
4617         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4618         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4619         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
4620         strsignal, strverscmp): In C++, define a namespaced alias symbol.
4621         * modules/string (Depends-on): Add c++defs.
4622         (Makefile.am): Update string.h rule.
4624         stdlib: Avoid #define replacements in C++ mode.
4625         * lib/stdlib.in.h: Include c++defs.h.
4626         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
4627         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
4628         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
4629         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
4630         symbol.
4631         * modules/stdlib (Depends-on): Add c++defs.
4632         (Makefile.am): Update stdlib.h rule.
4634         stdio: Avoid #define replacements in C++ mode.
4635         * lib/stdio.in.h: Include c++defs.h.
4636         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
4637         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
4638         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
4639         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
4640         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
4641         namespaced alias symbol.
4642         * modules/stdio (Depends-on): Add c++defs.
4643         (Makefile.am): Update stdio.h rule.
4645         spawn: Avoid #define replacements in C++ mode.
4646         * lib/spawn.in.h: Include c++defs.h.
4647         (posix_spawn, posix_spawnp, posix_spawnattr_init,
4648         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4649         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4650         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4651         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4652         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4653         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4654         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4655         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4656         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4657         In C++, define a namespaced alias symbol.
4658         * modules/spawn (Depends-on): Add c++defs.
4659         (Makefile.am): Update spawn.h rule.
4661         signal: Avoid #define replacements in C++ mode.
4662         * lib/signal.in.h: Include c++defs.h.
4663         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
4664         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
4665         namespaced alias symbol.
4666         * modules/signal (Depends-on): Add c++defs.
4667         (Makefile.am): Update signal.h rule.
4669         search: Avoid #define replacements in C++ mode.
4670         * lib/search.in.h: Include c++defs.h.
4671         (_gl_search_compar_fn, _gl_search_action_fn): New types.
4672         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
4673         symbol.
4674         * modules/search (Depends-on): Add c++defs.
4675         (Makefile.am): Update search.h rule.
4677         math: Avoid #define replacements in C++ mode.
4678         * lib/math.in.h: Include c++defs.h.
4679         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
4680         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
4681         trunc, truncl): In C++, define a namespaced alias symbol.
4682         * modules/math (Depends-on): Add c++defs.
4683         (Makefile.am): Update math.h rule.
4685         locale: Avoid #define replacements in C++ mode.
4686         * lib/locale.in.h: Include c++defs.h.
4687         (duplocale): In C++, define a namespaced alias symbol.
4688         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
4689         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
4690         * modules/locale (Depends-on): Add c++defs.
4691         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
4693         langinfo: Avoid #define replacements in C++ mode.
4694         * lib/langinfo.in.h: Include c++defs.h.
4695         (nl_langinfo): In C++, define a namespaced alias symbol.
4696         * modules/langinfo (Depends-on): Add c++defs.
4697         (Makefile.am): Update langinfo.h rule.
4699         iconv-h: Avoid #define replacements in C++ mode.
4700         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
4701         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
4702         symbol.
4703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
4704         whenever iconv is present.
4705         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
4706         (Makefile.am): Update iconv.h rule.
4708         glob: Avoid #define replacements in C++ mode.
4709         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
4710         (_gl_glob_errfunc_fn): New type.
4711         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
4712         symbol.
4713         * modules/glob (Depends-on): Add c++defs, warn-on-use.
4714         (Makefile.am): Update glob.h rule.
4716         fcntl-h: Avoid #define replacements in C++ mode.
4717         * lib/fcntl.in.h: Include c++defs.h.
4718         (fcntl, open, openat): In C++, define a namespaced alias symbol.
4719         * modules/fcntl-h (Depends-on): Add c++defs.
4720         (Makefile.am): Update fcntl.h rule.
4722         dirent: Avoid #define replacements in C++ mode.
4723         * lib/dirent.in.h: Include c++defs.h.
4724         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
4725         namespaced alias symbol.
4726         (dirfd): Update declaration.
4727         * modules/dirent (Depends-on): Add c++defs.
4728         (Makefile.am): Update dirent.h rule.
4730         ctype: Make it usable in C++ code.
4731         * lib/ctype.in.h: Include c++defs.h.
4732         (isblank): Declare as extern "C".
4733         * modules/ctype (Depends-on): Add c++defs.
4734         (Makefile.am): Update ctype.h rule.
4736         New module 'c++defs'.
4737         * modules/c++defs: New file.
4738         * build-aux/c++defs.h: New file.
4739         Reported by John W. Eaton <jwe@gnu.org>.
4741 2010-03-07  Bruno Haible  <bruno@clisp.org>
4743         logb: Provide missing declaration for Cygwin.
4744         * lib/math.in.h (logb): New declaration.
4745         * m4/logb.m4: New file.
4746         * modules/logb (Files): Add m4/logb.m4.
4747         (Depends-on): Add math.
4748         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
4749         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
4750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
4751         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
4752         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
4754 2010-03-07  Bruno Haible  <bruno@clisp.org>
4756         Fix test-cond link error.
4757         * tests/test-cond.c: Include <stdio.h>.
4759 2010-03-07  Bruno Haible  <bruno@clisp.org>
4761         Fix test-dirent-safer link error.
4762         * modules/dirent-safer-tests (Makefile.am): Define
4763         test_dirent_safer_LDADD.
4765 2010-03-07  Bruno Haible  <bruno@clisp.org>
4767         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
4768         among default module list.
4770 2010-03-07  Bruno Haible  <bruno@clisp.org>
4772         Fix link error on platforms with GNU libiconv.
4773         * modules/unistr/u8-strcoll-tests (Makefile): Define
4774         test_u8_strcoll_LDADD.
4775         * modules/unistr/u16-strcoll-tests (Makefile): Define
4776         test_u16_strcoll_LDADD.
4777         * modules/unistr/u32-strcoll-tests (Makefile): Define
4778         test_u32_strcoll_LDADD.
4780 2010-03-07  Bruno Haible  <bruno@clisp.org>
4782         Use POSIX declarations for socket functions.
4783         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
4784         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
4785         rpl_sendto): Change declaration to match POSIX.
4786         * lib/connect.c (rpl_connect): Likewise.
4787         * lib/accept.c (rpl_accept): Likewise.
4788         * lib/bind.c (rpl_bind): Likewise.
4789         * lib/getpeername.c (rpl_getpeername): Likewise.
4790         * lib/getsockname.c (rpl_getsockname): Likewise.
4791         * lib/recv.c (rpl_recv): Likewise.
4792         * lib/send.c (rpl_send): Likewise.
4793         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4794         * lib/sendto.c (rpl_sendto): Likewise.
4796 2010-03-06  Bruno Haible  <bruno@clisp.org>
4798         Clarify access, euidaccess, faccessat.
4799         * doc/posix-functions/faccessat.texi: Mention security problem under
4800         "Other problems", not "Portability problems".
4801         * doc/posix-functions/access.texi: Likewise. Mention a related security
4802         problem.
4803         * doc/glibc-functions/euidaccess.texi: Mention security problems.
4804         * lib/euidaccess.c: Add comments about platforms.
4805         * lib/unistd.in.h (access, euidaccess): Add warnings.
4807 2010-03-07  Bruno Haible  <bruno@clisp.org>
4809         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
4810         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
4811         (POSIX_SPAWN_SETSCHEDULER): Likewise.
4812         (POSIX_SPAWN_USEVFORK): Define in a way that works when
4813         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
4814         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
4815         declare when POSIX_SPAWN_SETSCHEDULER is zero.
4816         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
4817         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
4818         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
4819         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
4820         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
4821         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
4822         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
4823         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
4824         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
4825         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
4826         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
4827         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
4828         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
4829         Likewise.
4830         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
4831         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
4832         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
4833         Likewise.
4834         * tests/test-spawn.c (main): Make it work when
4835         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
4837 2010-03-07  Bruno Haible  <bruno@clisp.org>
4839         Fix incorrect Makefile.am generation in German locale.
4840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4841         Execute sed command with character range in C locale.
4843 2010-03-06  Bruno Haible  <bruno@clisp.org>
4845         Tests for module 'iconv-h'.
4846         * modules/iconv-h-tests: New file.
4847         * tests/test-iconv-h.c: New file.
4849         New module 'iconv-h'.
4850         * modules/iconv-h: New file.
4851         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
4852         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
4853         (configure.ac): Remove gl_ICONV_H.
4854         (Makefile.am): Remove rule for iconv.h.
4856 2010-03-06  Bruno Haible  <bruno@clisp.org>
4858         More consistent naming of *.m4 files.
4859         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
4860         * modules/wctype (Files): Update.
4862         More consistent naming of *.m4 files.
4863         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
4864         * modules/wchar (Files): Update.
4866 2010-03-06  Jim Meyering  <meyering@redhat.com>
4868         euidaccess: relax license to LGPLv2+
4869         * modules/euidaccess (License): Relax to LGPLv2+.
4871 2010-03-06  Bruno Haible  <bruno@clisp.org>
4873         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
4874         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
4875         (Makefile.am): Augment lib_SOURCES instead.
4877 2010-03-04  Jim Meyering  <meyering@redhat.com>
4879         utime: remove obsolete module
4880         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
4881         unnecessary for years, and has been marked as obsolete for 10 months.
4882         * modules/utime: Remove file.
4883         * lib/utime.c: Remove file.
4884         * m4/utime.m4: Remove file.
4885         * m4/utimes-null.m4: Remove file.
4886         * doc/posix-functions/utime.texi (utime): Remove reference to
4887         the module.  Move the sole "fixed by gnulib" item into the
4888         "problems not fixed by Gnulib" list.
4889         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
4891 2010-03-05  Simon Josefsson  <simon@josefsson.org>
4893         * modules/exit (License): Relax license to LGPLv2+.
4894         (Status): Mark as obsolete.
4895         * NEWS: Mention deprecated 'exit' module.
4896         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
4897         of now obsolete 'exit'.
4899 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4901         fts-lgpl: remove unused module
4902         * modules/fts-lgpl: Remove.
4903         * MODULES.html.sh (func_all_modules): Adjust.
4904         * check-module (find_included_lib_files): Adjust.
4905         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
4907 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
4909         copy-acl: enhance Solaris ACL error handling
4910         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
4911         * lib/set-mode-acl.c (qset_acl): Likewise.
4913 2010-03-02  Bruno Haible  <bruno@clisp.org>
4915         spawn: Don't override the system defined values on FreeBSD 8.
4916         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
4917         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
4918         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
4919         if HAVE_POSIX_SPAWN is 1.
4920         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
4922 2010-03-01  Bruno Haible  <bruno@clisp.org>
4924         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
4925         regarding Automake.
4927 2010-02-25  Bruno Haible  <bruno@clisp.org>
4929         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
4930         * gnulib-tool: Define 'echo' as a function only before the ksh alias
4931         setting, not afterwards.
4932         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4934 2010-02-24  Eric Blake  <eblake@redhat.com>
4936         bootstrap, git-version-gen: use timestamp
4937         * build-aux/git-version-gen (scriptversion): Force UTC.
4938         * build-aux/bootstrap (scriptversion): New variable.
4940         bootstrap: allow older git
4941         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
4942         older than 1.6.4.  Requested by the libvirt project.
4944 2010-02-23  Eric Blake  <eblake@redhat.com>
4946         warn-on-use: work with old autoconf
4947         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
4948         AS_VAR semantics of autoconf 2.60.
4949         Reported by Bruno Haible.
4951         bootstrap: improve some comments
4952         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
4953         clarification comments.
4955         gettimeofday: provide correct function
4956         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
4957         when replacement is declared, otherwise provide gettimeofday.
4958         Reported by Michael Goffioul.
4960 2010-02-23  Jim Meyering  <meyering@redhat.com>
4962         lib-ignore: relax license to "unlimited", not LGPLv2+
4963         * modules/lib-ignore (License): Relax to "unlimited".
4965 2010-02-23  Jim Meyering  <meyering@redhat.com>
4967         lib-ignore: relax license to LGPLv2+
4968         * modules/lib-ignore (License): Relax to LGPLv2+.
4970 2010-02-22  Eric Blake  <eblake@redhat.com>
4972         lseek: avoid bash 3.2 broken pipe bug
4973         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
4974         warning from bash 3.2.
4975         Reported by Ben Pfaff, with analysis from Bruno Haible.
4977         bootstrap: support non-FSF copyright holder
4978         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
4979         bootstrap.conf override of COPYRIGHT_HOLDER.
4980         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
4982         bootstrap: interoperate with gettext 0.14.1
4983         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
4985         bootstrap: allow for alternate submodule location
4986         * build-aux/bootstrap (gnulib_path): New variable; use instead of
4987         hardcoding submodule location.
4988         (gnulib_mk): Allow direct use of Makefile.am.
4990         bootstrap: use GNULIB_SRCDIR to reduce disk usage
4991         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
4992         rather than reconfiguring where the submodule points.
4994         gettimeofday: restore support for platforms that lack function
4995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
4996         replacement if function is missing.
4997         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
4998         * modules/sys_time (Makefile.am): Substitute it.
4999         * lib/sys_time.in.h (gettimeofday): Check it.
5000         Reported by Michael Goffioul.
5002 2010-02-21  Bruno Haible  <bruno@clisp.org>
5004         * lib/stdio.in.h (obstack_printf): Fix typo.
5006 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5008         vc-list-files: use bzr ls's -R option
5009         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5010         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5012 2010-02-21  Jim Meyering  <meyering@redhat.com>
5014         init.sh: fix EXEEXT shims to work also for names like test-prog
5015         * tests/init.sh: Re-exec a better shell, when needed.
5016         If the current shell lacks support for posix $(...), an init.sh-using
5017         test will now try to find a shell that supports that.  If EXEEXT is
5018         nonempty, we also require support for hyphen-in-alias-name and shell
5019         substitutions like ${var#glob}.  Failure to find such a shell results
5020         in a skipped test.
5022 2010-02-21  Bruno Haible  <bruno@clisp.org>
5024         Really work around around "broken pipe" error message from bash 3.2.
5025         * gnulib-tool (func_reset_sigpipe): Remove function.
5026         (echo): In bash 3.2, define to a function that uses printf.
5027         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5029 2010-02-20  Bruno Haible  <bruno@clisp.org>
5031         Restore support for automake 1.9.6 with autoconf 2.61.
5032         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5033         Reported by James Youngman <jay@gnu.org>.
5035 2010-02-20  Bruno Haible  <bruno@clisp.org>
5037         Improve *printf warning condition.
5038         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5039         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5040         and the function is overridden due to SIGPIPE emulation.
5042 2010-02-20  Bruno Haible  <bruno@clisp.org>
5044         * lib/stdio.in.h: Tweak comments.
5046 2010-02-19  Bruno Haible  <bruno@clisp.org>
5048         Make it easier to find modules. New gnulib-tool option '--find'.
5049         * gnulib-tool: New option --find.
5050         (func_usage): Document it.
5051         (func_sanitize_modulelist): New function, extracted from
5052         func_all_modules.
5053         (func_all_modules): Invoke it.
5054         * doc/gnulib-tool.texi (Which modules?): New node.
5056 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5058         * lib/sys_select.in.h: Provide select replacement even if
5059         sys/select.h exists on a system, for Interix.
5061 2010-02-18  Jim Meyering  <meyering@redhat.com>
5063         init.sh: don't use $(...) just yet
5064         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5065         to accommodate e.g., Solaris' /bin/sh.
5067 2010-02-17  Bruno Haible  <bruno@clisp.org>
5069         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5070         Reported by Ludovic Courtès <ludo@gnu.org>.
5072 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5074         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5075         linking with -lintl.
5077 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5079         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5080         if not provided by the system's netdb.h.  Reported by
5081         ludo@gnu.org (Ludovic Courtès).
5083 2010-02-15  Jim Meyering  <meyering@redhat.com>
5085         init.sh: improve portability and efficiency
5086         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5087         "dummy" in a for loop.
5088         Use '!', not '^' to select the complement of a character set used
5089         in a "case" statement.
5090         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5091         Suggestions from Eric Blake.
5093         init.sh: automatically accommodate programs with the .exe suffix
5094         Automatically arrange for an invocation of "prog" to execute the
5095         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5096         may use the simpler "prog", yet still work when built on a system
5097         that requires specifying the added suffix.
5098         Do this by constructing a function named "prog" that invokes
5099         "prog.exe" for each .exe file in selected directories.
5100         * tests/init.sh (find_exe_basenames_): New function.
5101         (create_exe_shim_functions_): New function.
5102         (path_prepend_): Use it.
5104         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5105         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5106         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5108 2010-02-14  Jim Meyering  <meyering@redhat.com>
5110         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5111         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5112         (sc_prohibit_hash_pjw_without_use): New rule.
5114         maint.mk: allow the default upload destination dir to be overridden
5115         * top/maint.mk (upload_dest_dir_): Define with a default that
5116         preserves the status quo.
5117         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5118         Reported by Peter Simons.
5120         maint.mk: prohibit inclusion of "hash.h" without_use
5121         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5123 2010-02-10  Jim Meyering  <meyering@redhat.com>
5125         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5126         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5128 2010-02-09  Eric Blake  <ebb9@byu.net>
5129         and Bruno Haible  <bruno@clisp.org>
5131         obstack-printf-posix: ensure declaration
5132         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5133         extracted from gl_FUNC_OBSTACK_PRINTF.
5134         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5135         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5136         Likewise.
5137         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5138         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5139         0.
5141 2010-02-08  Bruno Haible  <bruno@clisp.org>
5143         gnulib-tool: Fix typo in 2010-02-07 commit.
5144         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5145         Reported by Eric Blake.
5147 2010-02-07  Bruno Haible  <bruno@clisp.org>
5149         gnulib-tool: Fix up caching patches.
5150         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5151         option --no-cache. Use associative arrays when supported by the shell.
5152         (sed_comments): New variable.
5153         (modcache): Renamed from do_cache.
5154         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5155         abbreviate unnecessarily.
5156         (have_associative): New variable.
5157         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5158         way also for ksh and zsh.
5159         (func_init_sed_convert_to_cache_statements): New function, extracted
5160         from func_cache_lookup_module. Add support for associative arrays.
5161         Don't set the c_MODULE_cached variable here. Ignore all lines before
5162         the first field header. Remove only the final newline, not all trailing
5163         newlines. Support empty fields correctly. Limit the use of 'eval' to
5164         assignments.
5165         (func_get_description, func_get_status, func_get_notice,
5166         func_get_applicability, func_get_filelist, func_get_dependencies,
5167         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5168         func_get_automake_snippet, func_get_include_directive,
5169         func_get_link_directive, func_get_license, func_get_maintainer):
5170         Update documentation. List the unoptimized code first. Add support for
5171         associative arrays. Limit the use of 'eval' to assignments.
5172         (func_get_applicability): Undo stylistic pessimisations.
5173         (func_get_automake_snippet, func_get_include_directive): Reduce code
5174         duplication.
5175         (func_modules_transitive_closure, func_modules_add_dummy,
5176         func_modules_notice, func_modules_to_filelist, func_add_file,
5177         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5178         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5179         func_create_testdir, func_create_megatestdir): Update documentation.
5181 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5183         * gnulib-tool (func_cache_lookup_module): Store the module name
5184         belonging to the cache variable; error out if two different
5185         module names map to the same cache variable name.
5187 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5189         gnulib-tool: Make caching optional.
5190         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5191         Update matching short versions of --no-changelog.
5192         (func_usage): Update.
5193         (sed_extract_cache_prog): Renamed from ...
5194         (sed_extract_prog): ... this; revert to old extraction script.
5195         (func_get_description, func_get_status)
5196         (func_get_notice, func_get_applicability, func_get_filelist)
5197         (func_get_dependencies, func_get_autoconf_early_snippet)
5198         (func_get_autoconf_snippet, func_get_automake_snippet)
5199         (func_get_include_directive, func_get_link_directive)
5200         (func_get_license, func_get_maintainer): If $do_cache is false,
5201         use old, non-caching extraction scripts.
5202         Suggestion by Bruno Haible.
5204 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5206         gnulib-tool: cache module metainformation.
5207         * gnulib-tool (sed_extract_prog): Match newline before each
5208         header, and rewrite header to a shell variable suffix.
5209         (func_cache_var, func_cache_lookup_module): New functions,
5210         to turn a module name into a cache variable prefix, and to
5211         look up and cache module metainformation.
5212         (func_get_description, func_get_status)
5213         (func_get_notice, func_get_applicability, func_get_filelist)
5214         (func_get_dependencies, func_get_autoconf_early_snippet)
5215         (func_get_autoconf_snippet, func_get_automake_snippet)
5216         (func_get_include_directive, func_get_link_directive)
5217         (func_get_license, func_get_maintainer): Use
5218         func_cache_lookup_module.
5220 2010-02-07  Bruno Haible  <bruno@clisp.org>
5222         fnctl: Fix missing dependency.
5223         * modules/fcntl (Depends-on): Add getdtablesize.
5224         Reported by John W. Eaton <jwe@gnu.org>.
5226 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5228         Argp: fix recognition of short alias options.
5230         * lib/argp-parse.c (convert_options): Fix improper use of
5231         `|' between character values.
5232         * tests/test-argp.c (group1_option): New alias option
5233         --read (-r).
5234         (group1_parser): Special handling for 'r'.
5235         (test15): New test case.
5236         (test_fun): Add test15.
5237         * tests/test-argp-2.sh: Update expected --help and --usage
5238         outputs.
5240 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5242         * tests/test-argp.c: Fix indentation.
5244 2010-02-04  Eric Blake  <ebb9@byu.net>
5246         gettimeofday: expose type of second argument
5247         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5248         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5249         * tests/test-gettimeofday.c: Use it to silence warning.
5250         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5251         the issue.
5253 2010-02-03  Jim Meyering  <meyering@redhat.com>
5255         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5256         * lib/regcomp.c (TYPE_SIGNED): Define.
5257         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5259         regcomp.c: avoid a new -Wshadow warning
5260         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5262 2010-02-01  Jim Meyering  <meyering@redhat.com>
5264         removing useless parentheses in cpp #define directives
5265         For motivation, see commit c0221df4, "define STREQ(a,b)
5266         consistently, removing useless parentheses"
5267         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5268         * lib/mountlist.c (MNT_IGNORE): Likewise.
5269         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5271 2010-02-01  Eric Blake  <ebb9@byu.net>
5273         sys_time: use link-warning
5274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5275         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5276         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5277         * modules/sys_time (Depends-on): Add warn-on-use.
5278         (Makefile.am): Always build replacement.
5279         (configure.ac): Update substitutions.
5280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5281         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5282         bother with SYS_TIME_H.
5283         * modules/gettimeofday (configure.ac): Declare indicator.
5284         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5285         in use.
5287         closein-tests: silence compiler warning
5288         * tests/test-closein.c (main): Ignore fread result.
5289         * modules/closein-tests (Depends-on): Add ignore-value.
5291         tests: silence warning about system return
5292         * tests/test-areadlink-with-size.c (main): Ignore system result.
5293         * tests/test-areadlink.c (main): Likewise.
5294         * tests/test-areadlinkat-with-size.c (main): Likewise.
5295         * tests/test-areadlinkat.c (main): Likewise.
5296         * tests/test-canonicalize-lgpl.c (main): Likewise.
5297         * tests/test-canonicalize.c (main): Likewise.
5298         * tests/test-chown.c (main): Likewise.
5299         * tests/test-fchownat.c (main): Likewise.
5300         * tests/test-fdutimensat.c (main): Likewise.
5301         * tests/test-fstatat.c (main): Likewise.
5302         * tests/test-futimens.c (main): Likewise.
5303         * tests/test-lchown.c (main): Likewise.
5304         * tests/test-link.c (main): Likewise.
5305         * tests/test-linkat.c (main): Likewise.
5306         * tests/test-lstat.c (main): Likewise.
5307         * tests/test-mkdir.c (main): Likewise.
5308         * tests/test-mkdirat.c (main): Likewise.
5309         * tests/test-mkfifo.c (main): Likewise.
5310         * tests/test-mkfifoat.c (main): Likewise.
5311         * tests/test-mknod.c (main): Likewise.
5312         * tests/test-readlink.c (main): Likewise.
5313         * tests/test-remove.c (main): Likewise.
5314         * tests/test-rename.c (main): Likewise.
5315         * tests/test-renameat.c (main): Likewise.
5316         * tests/test-rmdir.c (main): Likewise.
5317         * tests/test-symlink.c (main): Likewise.
5318         * tests/test-symlinkat.c (main): Likewise.
5319         * tests/test-unlink.c (main): Likewise.
5320         * tests/test-unlinkat.c (main): Likewise.
5321         * tests/test-utimens.c (main): Likewise.
5322         * tests/test-utimensat.c (main): Likewise.
5323         * modules/areadlink-tests (Depends-on): Add ignore-value.
5324         * modules/areadlink-with-size-tests (Depends-on): Likewise.
5325         * modules/areadlinkat-tests (Depends-on): Likewise.
5326         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
5327         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5328         * modules/canonicalize-tests (Depends-on): Likewise.
5329         * modules/chown-tests (Depends-on): Likewise.
5330         * modules/fdutimensat-tests (Depends-on): Likewise.
5331         * modules/futimens-tests (Depends-on): Likewise.
5332         * modules/lchown-tests (Depends-on): Likewise.
5333         * modules/link-tests (Depends-on): Likewise.
5334         * modules/linkat-tests (Depends-on): Likewise.
5335         * modules/lstat-tests (Depends-on): Likewise.
5336         * modules/mkdir-tests (Depends-on): Likewise.
5337         * modules/mkfifo-tests (Depends-on): Likewise.
5338         * modules/mkfifoat-tests (Depends-on): Likewise.
5339         * modules/mknod-tests (Depends-on): Likewise.
5340         * modules/openat-tests (Depends-on): Likewise.
5341         * modules/readlink-tests (Depends-on): Likewise.
5342         * modules/remove-tests (Depends-on): Likewise.
5343         * modules/rename-tests (Depends-on): Likewise.
5344         * modules/renameat-tests (Depends-on): Likewise.
5345         * modules/rmdir-tests (Depends-on): Likewise.
5346         * modules/symlink-tests (Depends-on): Likewise.
5347         * modules/symlinkat-tests (Depends-on): Likewise.
5348         * modules/unlink-tests (Depends-on): Likewise.
5349         * modules/utimens-tests (Depends-on): Likewise.
5350         * modules/utimensat-tests (Depends-on): Likewise.
5352 2010-01-31  Bruno Haible  <bruno@clisp.org>
5354         Perform the same test for many <math.h> functions.
5355         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
5356         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
5357         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
5358         of gl_MATHFUNC.
5359         * modules/acos (configure.ac): Likewise.
5360         * modules/asin (configure.ac): Likewise.
5361         * modules/atan (configure.ac): Likewise.
5362         * modules/atan2 (configure.ac): Likewise.
5363         * modules/cbrt (configure.ac): Likewise.
5364         * modules/copysign (configure.ac): Likewise.
5365         * modules/cos (configure.ac): Likewise.
5366         * modules/cosh (configure.ac): Likewise.
5367         * modules/erf (configure.ac): Likewise.
5368         * modules/erfc (configure.ac): Likewise.
5369         * modules/exp (configure.ac): Likewise.
5370         * modules/fmod (configure.ac): Likewise.
5371         * modules/hypot (configure.ac): Likewise.
5372         * modules/j0 (configure.ac): Likewise.
5373         * modules/j1 (configure.ac): Likewise.
5374         * modules/jn (configure.ac): Likewise.
5375         * modules/lgamma (configure.ac): Likewise.
5376         * modules/log (configure.ac): Likewise.
5377         * modules/log10 (configure.ac): Likewise.
5378         * modules/log1p (configure.ac): Likewise.
5379         * modules/pow (configure.ac): Likewise.
5380         * modules/remainder (configure.ac): Likewise.
5381         * modules/sin (configure.ac): Likewise.
5382         * modules/sinh (configure.ac): Likewise.
5383         * modules/tan (configure.ac): Likewise.
5384         * modules/tanh (configure.ac): Likewise.
5385         * modules/y0 (configure.ac): Likewise.
5386         * modules/y1 (configure.ac): Likewise.
5387         * modules/yn (configure.ac): Likewise.
5388         Suggested by Paolo Bonzini.
5390 2010-01-31  Bruno Haible  <bruno@clisp.org>
5392         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
5394 2010-01-31  Bruno Haible  <bruno@clisp.org>
5396         Work around getdelim() bug on FreeBSD 8.0.
5397         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
5398         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
5399         not work.
5400         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
5401         is 1.
5402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
5403         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
5404         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
5405         a non-zero size.
5406         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
5408 2010-01-31  Bruno Haible  <bruno@clisp.org>
5410         Work around getline() bug on FreeBSD 8.0.
5411         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
5412         and a non-zero size.
5413         * tests/test-getline.c (main): Likewise.
5414         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
5415         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
5417 2010-01-28  Eric Blake  <ebb9@byu.net>
5419         regex: fix build failure
5420         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
5421         platforms.
5423 2010-01-28  Jim Meyering  <meyering@redhat.com>
5425         regex: do not ignore memory allocation failure
5426         * lib/regex_internal.c (create_cd_newstate): Detect
5427         re_node_set_init_copy failure.   Extracted from glibc commit
5428         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5430         regex: sync more white-space changes from libc
5431         * lib/regex_internal.c: White-space only changes.
5432         * lib/regexec.c: Likewise.
5434         regex: add many uses of __attribute_warn_unused_result__
5435         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
5436         * lib/regexec.c: Likewise.
5437         Extracted from a messy glibc commit.
5439         regcomp.c: spelling and merge-artifact from glibc
5440         * lib/regcomp.c: Merge remainder of glibc's
5441         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5443         regcomp.c: sync white-space changes from glibc
5444         * lib/regcomp.c: Merge to accommodate white space
5445         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5447         regcomp.c: do not ignore internal return values
5448         * lib/regcomp.c: Do not ignore internal return values.
5449         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
5450         but without its white-space changes and spelling fixes.
5452         regex_internal.h: define __attribute_warn_unused_result__
5453         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
5455         maint: add a syntax-check rule to check for vulnerable Makefile.in
5456         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
5458 2010-01-27  Jim Meyering  <meyering@redhat.com>
5460         ncftpput-ftp: clean up spaces
5461         * build-aux/ncftpput-ftp: Make Copyright line consistent.
5462         Remove trailing blanks.
5464 2010-01-27  Simon Josefsson  <simon@josefsson.org>
5466         * build-aux/git-version-gen: Fix copyright statement.
5467         * build-aux/gnupload: Likewise.
5468         * tests/test-arcfour.c: Likewise.
5469         * tests/test-arctwo.c: Likewise.
5470         * tests/test-count-one-bits.c: Likewise.
5471         * tests/test-crc.c: Likewise.
5472         * tests/test-des.c: Likewise.
5473         * tests/test-gc-arcfour.c: Likewise.
5474         * tests/test-gc-arctwo.c: Likewise.
5475         * tests/test-gc-des.c: Likewise.
5476         * tests/test-gc-hmac-md5.c: Likewise.
5477         * tests/test-gc-hmac-sha1.c: Likewise.
5478         * tests/test-gc-md2.c: Likewise.
5479         * tests/test-gc-md4.c: Likewise.
5480         * tests/test-gc-md5.c: Likewise.
5481         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5482         * tests/test-gc-rijndael.c: Likewise.
5483         * tests/test-gc-sha1.c: Likewise.
5484         * tests/test-gc.c: Likewise.
5485         * tests/test-gethostname.c: Likewise.
5486         * tests/test-gettimeofday.c: Likewise.
5487         * tests/test-hash.c: Likewise.
5488         * tests/test-hmac-md5.c: Likewise.
5489         * tests/test-hmac-sha1.c: Likewise.
5490         * tests/test-md2.c: Likewise.
5491         * tests/test-md4.c: Likewise.
5492         * tests/test-md5.c: Likewise.
5493         * tests/test-memchr.c: Likewise.
5494         * tests/test-memchr2.c: Likewise.
5495         * tests/test-memcmp.c: Likewise.
5496         * tests/test-memmem.c: Likewise.
5497         * tests/test-memrchr.c: Likewise.
5498         * tests/test-rawmemchr.c: Likewise.
5499         * tests/test-read-file.c: Likewise.
5500         * tests/test-rijndael.c: Likewise.
5501         * tests/test-sockets.c: Likewise.
5502         * tests/test-strchrnul.c: Likewise.
5503         * tests/test-strstr.c: Likewise.
5504         * tests/test-strtod.c: Likewise.
5505         * build-aux/ncftpput-ftp: Likewise.
5507 2010-01-26  Eric Blake  <ebb9@byu.net>
5509         ignore-value: update recommended header name
5510         * modules/ignore-value (Include): Only use <> for headers that
5511         exist in glibc.
5513 2010-01-26  Jim Meyering  <meyering@redhat.com>
5515         test-userspec.c: avoid compiler warnings
5516         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
5517         and "initialization discards qualifiers..." warnings.
5518         Put the first "uid" in its own scope, and make char* members "const".
5520 2010-01-25  Bruno Haible  <bruno@clisp.org>
5522         gnulib-tool: Make warning diagnostics consistent.
5523         * gnulib-tool (func_warning): New function.
5524         Use it everywhere where gnulib-tool produces output to stderr and it is
5525         not a fatal error.
5527 2010-01-25  Bruno Haible  <bruno@clisp.org>
5529         Fix test dependencies.
5530         * modules/xstrtol-tests (Depends-on): Add inttypes.
5531         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
5533 2010-01-25 Pádraig Brady <P@draigBrady.com>
5535         syntax-check: detect incorrect boolean macro values in config.h
5536         * modules/maintainer-makefile (configure.ac): Parameterize the location
5537         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
5538         The logic is from Eric Blake and the location indicated by Jim Meyering.
5539         Note the more natural CONFIG_HEADER name is prohibited by automake
5540         for backwards compatibility reasons.
5541         * top/maint.mk (sc_Wundef_boolean): New rule.
5543 2010-01-25  Jim Meyering  <meyering@redhat.com>
5545         bootstrap: detect MacOS 10.6's shasum, too
5546         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
5547         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
5549 2010-01-23  Jim Meyering  <meyering@redhat.com>
5551         xstrtoll: new module
5552         * modules/xstrtoll: New file.
5553         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
5554         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
5555         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
5556         ./configure fails if you use this module and lack "long long".
5557         * modules/xstrtoll-tests: New module.
5558         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
5559         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
5560         new init.sh-based test framework.
5562 2010-01-24  Bruno Haible  <bruno@clisp.org>
5564         Tests for module 'yn'.
5565         * modules/yn-tests: New file.
5566         * tests/test-yn.c: New file.
5568         Tests for module 'y1'.
5569         * modules/y1-tests: New file.
5570         * tests/test-y1.c: New file.
5572         Tests for module 'y0'.
5573         * modules/y0-tests: New file.
5574         * tests/test-y0.c: New file.
5576         Tests for module 'tanh'.
5577         * modules/tanh-tests: New file.
5578         * tests/test-tanh.c: New file.
5580         Tests for module 'tan'.
5581         * modules/tan-tests: New file.
5582         * tests/test-tan.c: New file.
5584         Tests for module 'sqrt'.
5585         * modules/sqrt-tests: New file.
5586         * tests/test-sqrt.c: New file.
5588         Tests for module 'sinh'.
5589         * modules/sinh-tests: New file.
5590         * tests/test-sinh.c: New file.
5592         Tests for module 'sin'.
5593         * modules/sin-tests: New file.
5594         * tests/test-sin.c: New file.
5596         Tests for module 'rint'.
5597         * modules/rint-tests: New file.
5598         * tests/test-rint.c: New file.
5600         Tests for module 'remainder'.
5601         * modules/remainder-tests: New file.
5602         * tests/test-remainder.c: New file.
5604         Tests for module 'pow'.
5605         * modules/pow-tests: New file.
5606         * tests/test-pow.c: New file.
5608         Tests for module 'nextafter'.
5609         * modules/nextafter-tests: New file.
5610         * tests/test-nextafter.c: New file.
5612         Tests for module 'modf'.
5613         * modules/modf-tests: New file.
5614         * tests/test-modf.c: New file.
5616         Tests for module 'logb'.
5617         * modules/logb-tests: New file.
5618         * tests/test-logb.c: New file.
5620         Tests for module 'log1p'.
5621         * modules/log1p-tests: New file.
5622         * tests/test-log1p.c: New file.
5624         Tests for module 'log10'.
5625         * modules/log10-tests: New file.
5626         * tests/test-log10.c: New file.
5628         Tests for module 'log'.
5629         * modules/log-tests: New file.
5630         * tests/test-log.c: New file.
5632         Tests for module 'lgamma'.
5633         * modules/lgamma-tests: New file.
5634         * tests/test-lgamma.c: New file.
5636         Tests for module 'ldexp'.
5637         * modules/ldexp-tests: New file.
5638         * tests/test-ldexp.c: New file.
5640         Tests for module 'jn'.
5641         * modules/jn-tests: New file.
5642         * tests/test-jn.c: New file.
5644         Tests for module 'j1'.
5645         * modules/j1-tests: New file.
5646         * tests/test-j1.c: New file.
5648         Tests for module 'j0'.
5649         * modules/j0-tests: New file.
5650         * tests/test-j0.c: New file.
5652         Tests for module 'hypot'.
5653         * modules/hypot-tests: New file.
5654         * tests/test-hypot.c: New file.
5656         Tests for module 'fmod'.
5657         * modules/fmod-tests: New file.
5658         * tests/test-fmod.c: New file.
5660         Tests for module 'fabs'.
5661         * modules/fabs-tests: New file.
5662         * tests/test-fabs.c: New file.
5664         Tests for module 'exp'.
5665         * modules/exp-tests: New file.
5666         * tests/test-exp.c: New file.
5668         Tests for module 'erfc'.
5669         * modules/erfc-tests: New file.
5670         * tests/test-erfc.c: New file.
5672         Tests for module 'erf'.
5673         * modules/erf-tests: New file.
5674         * tests/test-erf.c: New file.
5676         Tests for module 'cosh'.
5677         * modules/cosh-tests: New file.
5678         * tests/test-cosh.c: New file.
5680         Tests for module 'cos'.
5681         * modules/cos-tests: New file.
5682         * tests/test-cos.c: New file.
5684         Tests for module 'copysign'.
5685         * modules/copysign-tests: New file.
5686         * tests/test-copysign.c: New file.
5688         Tests for module 'cbrt'.
5689         * modules/cbrt-tests: New file.
5690         * tests/test-cbrt.c: New file.
5692         Tests for module 'atan2'.
5693         * modules/atan2-tests: New file.
5694         * tests/test-atan2.c: New file.
5696         Tests for module 'atan'.
5697         * modules/atan-tests: New file.
5698         * tests/test-atan.c: New file.
5700         Tests for module 'asin'.
5701         * modules/asin-tests: New file.
5702         * tests/test-asin.c: New file.
5704         Tests for module 'acos'.
5705         * modules/acos-tests: New file.
5706         * tests/test-acos.c: New file.
5708 2010-01-24  Bruno Haible  <bruno@clisp.org>
5710         Fix tests for common <math.h> functions.
5711         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
5712         code snippet that references the function pointer, rather than merely
5713         calling the function. Substitute the FUNC_LIBM variable.
5714         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
5715         * modules/acos (configure.ac): Likewise.
5716         * modules/asin (configure.ac): Likewise.
5717         * modules/atan (configure.ac): Likewise.
5718         * modules/atan2 (configure.ac): Likewise.
5719         * modules/cbrt (configure.ac): Likewise.
5720         * modules/copysign (configure.ac): Likewise.
5721         * modules/cos (configure.ac): Likewise.
5722         * modules/cosh (configure.ac): Likewise.
5723         * modules/erf (configure.ac): Likewise.
5724         * modules/erfc (configure.ac): Likewise.
5725         * modules/exp (configure.ac): Likewise.
5726         * modules/fabs (configure.ac): Likewise.
5727         * modules/fmod (configure.ac): Likewise.
5728         * modules/hypot (configure.ac): Likewise.
5729         * modules/j0 (configure.ac): Likewise.
5730         * modules/j1 (configure.ac): Likewise.
5731         * modules/jn (configure.ac): Likewise.
5732         * modules/ldexp (configure.ac): Likewise.
5733         * modules/lgamma (configure.ac): Likewise.
5734         * modules/log (configure.ac): Likewise.
5735         * modules/log10 (configure.ac): Likewise.
5736         * modules/log1p (configure.ac): Likewise.
5737         * modules/logb (configure.ac): Likewise.
5738         * modules/modf (configure.ac): Likewise.
5739         * modules/nextafter (configure.ac): Likewise.
5740         * modules/pow (configure.ac): Likewise.
5741         * modules/remainder (configure.ac): Likewise.
5742         * modules/rint (configure.ac): Likewise.
5743         * modules/sin (configure.ac): Likewise.
5744         * modules/sinh (configure.ac): Likewise.
5745         * modules/tan (configure.ac): Likewise.
5746         * modules/tanh (configure.ac): Likewise.
5747         * modules/y0 (configure.ac): Likewise.
5748         * modules/y1 (configure.ac): Likewise.
5749         * modules/yn (configure.ac): Likewise.
5751 2010-01-24  Bruno Haible  <bruno@clisp.org>
5753         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
5754         * tests/test-acosl.c (x): New variable.
5755         (main): Store argument in x and fetch it from x.
5756         * tests/test-asinl.c (x): New variable.
5757         (main): Store argument in x and fetch it from x.
5758         * tests/test-atanl.c (x): New variable.
5759         (main): Store argument in x and fetch it from x.
5760         * tests/test-cosl.c (x): New variable.
5761         (main): Store argument in x and fetch it from x.
5762         * tests/test-expl.c (x): New variable.
5763         (main): Store argument in x and fetch it from x.
5764         * tests/test-logl.c (x): New variable.
5765         (main): Store argument in x and fetch it from x.
5766         * tests/test-sinl.c (x): New variable.
5767         (main): Store argument in x and fetch it from x.
5768         * tests/test-sqrtl.c (x): New variable.
5769         (main): Store argument in x and fetch it from x.
5770         * tests/test-tanl.c (x): New variable.
5771         (main): Store argument in x and fetch it from x.
5773 2010-01-24  Bruno Haible  <bruno@clisp.org>
5775         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
5776         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
5777         assignments to the initial TESTS_ENVIRONMENT.
5778         * doc/gnulib.texi (Unit test modules): Document it.
5779         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
5780         TESTS_ENVIRONMENT.
5781         * modules/btowc-tests (Makefile.am): Likewise.
5782         * modules/c-stack-tests (Makefile.am): Likewise.
5783         * modules/c-strcase-tests (Makefile.am): Likewise.
5784         * modules/copy-file-tests (Makefile.am): Likewise.
5785         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5786         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5787         * modules/mbrtowc-tests (Makefile.am): Likewise.
5788         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5789         * modules/mbscasestr-tests (Makefile.am): Likewise.
5790         * modules/mbschr-tests (Makefile.am): Likewise.
5791         * modules/mbscspn-tests (Makefile.am): Likewise.
5792         * modules/mbsinit-tests (Makefile.am): Likewise.
5793         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5794         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5795         * modules/mbspbrk-tests (Makefile.am): Likewise.
5796         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5797         * modules/mbsrchr-tests (Makefile.am): Likewise.
5798         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5799         * modules/mbsspn-tests (Makefile.am): Likewise.
5800         * modules/mbsstr-tests (Makefile.am): Likewise.
5801         * modules/nl_langinfo-tests (Makefile.am): Likewise.
5802         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
5803         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
5804         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
5805         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
5806         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5807         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
5808         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
5809         * modules/wcrtomb-tests (Makefile.am): Likewise.
5810         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
5811         * modules/wcsrtombs-tests (Makefile.am): Likewise.
5812         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
5813         assignments from TESTS_ENVIRONMENT.
5814         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
5815         augmentation.
5816         * modules/argp-version-etc-tests (Makefile.am): Likewise.
5817         * modules/atexit-tests (Makefile.am): Likewise.
5818         * modules/binary-io-tests (Makefile.am): Likewise.
5819         * modules/closein-tests (Makefile.am): Likewise.
5820         * modules/dprintf-posix-tests (Makefile.am): Likewise.
5821         * modules/exclude-tests (Makefile.am): Likewise.
5822         * modules/fflush-tests (Makefile.am): Likewise.
5823         * modules/fpending-tests (Makefile.am): Likewise.
5824         * modules/fprintf-posix-tests (Makefile.am): Likewise.
5825         * modules/freadahead-tests (Makefile.am): Likewise.
5826         * modules/freadptr-tests (Makefile.am): Likewise.
5827         * modules/freadseek-tests (Makefile.am): Likewise.
5828         * modules/fseek-tests (Makefile.am): Likewise.
5829         * modules/fseeko-tests (Makefile.am): Likewise.
5830         * modules/ftell-tests (Makefile.am): Likewise.
5831         * modules/ftello-tests (Makefile.am): Likewise.
5832         * modules/idpriv-drop-tests (Makefile.am): Likewise.
5833         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
5834         * modules/lseek-tests (Makefile.am): Likewise.
5835         * modules/parse-duration-tests (Makefile.am): Likewise.
5836         * modules/perror-tests (Makefile.am): Likewise.
5837         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
5838         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
5839         * modules/pipe-tests (Makefile.am): Likewise.
5840         * modules/pread-tests (Makefile.am): Likewise.
5841         * modules/printf-posix-tests (Makefile.am): Likewise.
5842         * modules/select-tests (Makefile.am): Likewise.
5843         * modules/sigpipe-tests (Makefile.am): Likewise.
5844         * modules/tsearch-tests (Makefile.am): Likewise.
5845         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
5846         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
5847         * modules/uniname/uniname-tests (Makefile.am): Likewise.
5848         * modules/uniwidth/width-tests (Makefile.am): Likewise.
5849         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
5850         * modules/version-etc-tests (Makefile.am): Likewise.
5851         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
5852         * modules/vprintf-posix-tests (Makefile.am): Likewise.
5853         * modules/xalloc-die-tests (Makefile.am): Likewise.
5854         * modules/xprintf-posix-tests (Makefile.am): Likewise.
5855         * modules/xstrtoimax-tests (Makefile.am): Likewise.
5856         * modules/xstrtol-tests (Makefile.am): Likewise.
5857         * modules/xstrtoumax-tests (Makefile.am): Likewise.
5858         * modules/yesno-tests (Makefile.am): Likewise.
5859         Suggested by Jim Meyering.
5861 2010-01-24  Bruno Haible  <bruno@clisp.org>
5863         More documentation.
5864         * doc/gnulib.texi (Writing modules): New chapter.
5865         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
5866         the new chapter.
5868 2010-01-24  Jim Meyering  <meyering@redhat.com>
5870         maint.mk: do not prepend "./" after filtering
5871         * top/maint.mk (_prepend_srcdir_prefix): New variable
5872         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
5873         "./" when $(srcdir) is ".".
5875         define STREQ(a,b) consistently, removing useless parentheses
5876         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
5877         since the only risk is that "a" or "b" contains an unparenthesized
5878         comma, but if either did that, STREQ would have 3 or more arguments.
5879         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
5880         * lib/fts.c (STREQ): Remove unnecessary parentheses.
5881         * lib/hash-triple.c (STREQ): Likewise.
5882         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
5883         * lib/getugroups.c (STREQ): Likewise.
5885 2010-01-23  Jim Meyering  <meyering@redhat.com>
5887         maint.mk: fix syntax-check in a non-srcdir build directory
5888         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
5889         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
5891 2010-01-22  Jim Meyering  <meyering@redhat.com>
5893         userspec: add unit tests
5894         * tests/test-userspec.c: New file.
5895         * modules/userspec-tests: Likewise.
5897 2010-01-21  Jim Meyering  <meyering@redhat.com>
5899         maint.mk: handle source file names containing "." robustly
5900         * top/maint.mk (_dot_escaped_srcdir): Define.
5901         (VC_LIST): Use it in LHS of sed substitution.
5903 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
5905         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
5906         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
5907         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
5908         from a non-srcdir build.
5910 2010-01-20  Eric Blake  <ebb9@byu.net>
5912         warn-on-use: use instead of link-warning
5913         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
5914         * modules/unistd (Depends-on, Makefile.am): Likewise.
5915         * modules/arpa_inet (Depends-on): Replace link-warning with
5916         warn-on-use.
5917         (Makefile.am): Update rules accordingly.
5918         * modules/ctype (Depends-on, Makefile.am): Likewise.
5919         * modules/dirent (Depends-on, Makefile.am): Likewise.
5920         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
5921         * modules/inttypes (Depends-on, Makefile.am): Likewise.
5922         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5923         * modules/locale (Depends-on, Makefile.am): Likewise.
5924         * modules/math (Depends-on, Makefile.am): Likewise.
5925         * modules/search (Depends-on, Makefile.am): Likewise.
5926         * modules/signal (Depends-on, Makefile.am): Likewise.
5927         * modules/spawn (Depends-on, Makefile.am): Likewise.
5928         * modules/stdlib (Depends-on, Makefile.am): Likewise.
5929         * modules/string (Depends-on, Makefile.am): Likewise.
5930         * modules/strings (Depends-on, Makefile.am): Likewise.
5931         * modules/sys_file (Depends-on, Makefile.am): Likewise.
5932         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
5933         * modules/sys_select (Depends-on, Makefile.am): Likewise.
5934         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
5935         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
5936         * modules/sys_times (Depends-on, Makefile.am): Likewise.
5937         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5938         * modules/wchar (Depends-on, Makefile.am): Likewise.
5939         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
5940         should be poisoned.
5941         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
5942         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
5943         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
5944         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5945         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5946         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5947         * m4/math_h.m4 (gl_MATH_H): Likewise.
5948         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5949         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5950         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5951         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5952         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5953         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
5954         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5955         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
5956         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5957         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5960         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5961         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5962         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5963         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5964         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
5965         GL_LINK_WARNING.
5966         * lib/ctype.in.h: Likewise.
5967         * lib/dirent.in.h: Likewise.
5968         * lib/fcntl.in.h: Likewise.
5969         * lib/inttypes.in.h: Likewise.
5970         * lib/langinfo.in.h: Likewise.
5971         * lib/locale.in.h: Likewise.
5972         * lib/math.in.h: Likewise.
5973         * lib/search.in.h: Likewise.
5974         * lib/signal.in.h: Likewise.
5975         * lib/spawn.in.h: Likewise.
5976         * lib/stdio.in.h: Likewise.
5977         * lib/stdlib.in.h: Likewise.
5978         * lib/string.in.h: Likewise.
5979         * lib/strings.in.h: Likewise.
5980         * lib/sys_file.in.h: Likewise.
5981         * lib/sys_ioctl.in.h: Likewise.
5982         * lib/sys_select.in.h: Likewise.
5983         * lib/sys_socket.in.h: Likewise.
5984         * lib/sys_stat.in.h: Likewise.
5985         * lib/sys_times.in.h: Likewise.
5986         * lib/sys_utsname.in.h: Likewise.
5987         * lib/unistd.in.h: Likewise.
5988         * lib/wchar.in.h: Likewise.
5990 2010-01-20  Bruno Haible  <bruno@clisp.org>
5992         Avoid duplicate -lm.
5993         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
5994         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
5995         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
5996         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
5997         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
5998         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
5999         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6000         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6001         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6002         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6003         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6004         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6005         Reported by Paolo Bonzini.
6007 2010-01-19  Bruno Haible  <bruno@clisp.org>
6009         langinfo, nl_langinfo: Relicense under LGPLv2+.
6010         * modules/langinfo (License): Change to LGPLv2+.
6011         * modules/nl_langinfo (License): Likewise.
6012         Patch by David Lutterkort <lutter@redhat.com>.
6014 2010-01-19  Bruno Haible  <bruno@clisp.org>
6016         Avoid compilation error with cc on OSF/1 5.1.
6017         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6018         statement, not before.
6019         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6021 2010-01-18  Bruno Haible  <bruno@clisp.org>
6023         Avoid a link error due to the __printf__ symbol.
6024         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6025         and 2.6.x.
6026         (__format__, __printf__): Remove definitions.
6027         * lib/argp-fmtstream.h: Likewise.
6028         * lib/argp.h: Likewise.
6029         * lib/error.h: Likewise.
6030         * lib/vasnprintf.h: Likewise.
6031         * lib/xprintf.h: Likewise.
6032         * lib/xvasprintf.h: Likewise.
6033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6035 2010-01-18  Bruno Haible  <bruno@clisp.org>
6037         Tests for module 'tanl'.
6038         * modules/tanl-tests: New file.
6039         * tests/test-tanl.c: New file.
6041         Tests for module 'sqrtl'.
6042         * modules/sqrtl-tests: New file.
6043         * tests/test-sqrtl.c: New file.
6045         Tests for module 'sinl'.
6046         * modules/sinl-tests: New file.
6047         * tests/test-sinl.c: New file.
6049         Tests for module 'logl'.
6050         * modules/logl-tests: New file.
6051         * tests/test-logl.c: New file.
6053         Tests for module 'expl'.
6054         * modules/expl-tests: New file.
6055         * tests/test-expl.c: New file.
6057         Tests for module 'cosl'.
6058         * modules/cosl-tests: New file.
6059         * tests/test-cosl.c: New file.
6061         Tests for module 'atanl'.
6062         * modules/atanl-tests: New file.
6063         * tests/test-atanl.c: New file.
6065         Tests for module 'asinl'.
6066         * modules/asinl-tests: New file.
6067         * tests/test-asinl.c: New file.
6069         Tests for module 'acosl'.
6070         * modules/acosl-tests: New file.
6071         * tests/test-acosl.c: New file.
6073         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6074         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6075         tanl): Use the standard gnulib idiom.
6076         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6077         * lib/sinl.c: Likewise.
6078         * lib/tanl.c: Don't include trigl.c.
6079         (kernel_tanl): Make static.
6080         * lib/sincosl.c: Include trigl.h first.
6081         * lib/trigl.c: Likewise.
6082         * m4/acosl.m4: New file.
6083         * m4/asinl.m4: New file.
6084         * m4/atanl.m4: New file.
6085         * m4/cosl.m4: New file.
6086         * m4/expl.m4: New file.
6087         * m4/logl.m4: New file.
6088         * m4/sinl.m4: New file.
6089         * m4/sqrtl.m4: New file.
6090         * m4/tanl.m4: New file.
6091         * m4/mathl.m4: Remove file.
6092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6093         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6094         Don't initialize GNULIB_MATHL.
6095         * modules/acosl: New file.
6096         * modules/asinl: New file.
6097         * modules/atanl: New file.
6098         * modules/cosl: New file.
6099         * modules/expl: New file.
6100         * modules/logl: New file.
6101         * modules/sinl: New file.
6102         * modules/sqrtl: New file.
6103         * modules/tanl: New file.
6104         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6105         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6106         substitute GNULIB_MATHL.
6107         * modules/mathl: Rewritten.
6108         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6109         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6110         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6111         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6112         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6113         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6114         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6115         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6116         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6118 2010-01-18  Bruno Haible  <bruno@clisp.org>
6120         sqrt: Make gl_FUNC_SQRT requirable.
6121         * m4/sqrt.m4: New file.
6122         * modules/sqrt (Files): Add it.
6123         (configure.ac): Invoke gl_FUNC_SQRT.
6125 2010-01-18  Bruno Haible  <bruno@clisp.org>
6127         New modules for common <math.h> functions.
6128         * m4/mathfunc.m4: New file.
6129         * modules/acos: New file.
6130         * modules/asin: New file.
6131         * modules/atan: New file.
6132         * modules/atan2: New file.
6133         * modules/cbrt: New file.
6134         * modules/copysign: New file.
6135         * modules/cos: New file.
6136         * modules/cosh: New file.
6137         * modules/erf: New file.
6138         * modules/erfc: New file.
6139         * modules/exp: New file.
6140         * modules/fabs: New file.
6141         * modules/fmod: New file.
6142         * modules/hypot: New file.
6143         * modules/j0: New file.
6144         * modules/j1: New file.
6145         * modules/jn: New file.
6146         * modules/ldexp: New file.
6147         * modules/lgamma: New file.
6148         * modules/log: New file.
6149         * modules/log10: New file.
6150         * modules/log1p: New file.
6151         * modules/logb: New file.
6152         * modules/modf: New file.
6153         * modules/nextafter: New file.
6154         * modules/pow: New file.
6155         * modules/remainder: New file.
6156         * modules/rint: New file.
6157         * modules/sin: New file.
6158         * modules/sinh: New file.
6159         * modules/sqrt: New file.
6160         * modules/tan: New file.
6161         * modules/tanh: New file.
6162         * modules/y0: New file.
6163         * modules/y1: New file.
6164         * modules/yn: New file.
6165         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6166         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6167         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6168         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6169         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6170         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6171         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6172         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6173         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6174         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6175         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6176         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6177         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6178         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6179         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6180         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6181         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6182         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6183         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6184         * doc/posix-functions/log.texi: Mention the 'log' module.
6185         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6186         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6187         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6188         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6189         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6190         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6191         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6192         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6193         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6194         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6195         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6196         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6197         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6198         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6199         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6200         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6202 2010-01-18  Jim Meyering  <meyering@redhat.com>
6204         ignore-value: relax license to LGPLv2+
6205         * modules/ignore-value (License): Relax to LGPLv2+.
6207         getdate: don't leak when TZ contains two or more '"'s
6208         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6209         double quote in TZ after the first one.
6211         readtokens: do not leak internal token_lengths buffer
6212         * lib/readtokens.c (readtokens): Free the local, lengths,
6213         when the supplied "token_lengths" parameter is NULL.
6215 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6217         Fix a couple of missing LIBTHREAD link failures on AIX.
6218         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6219         $(LIBTHREAD).
6220         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6222         Link test-poll against INET_PTON_LIB.
6223         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6224         for inet_pton on Solaris 10.
6226 2010-01-17  Bruno Haible  <bruno@clisp.org>
6228         unistdio/*-sprintf: Fix typo in module description.
6229         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6230         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6231         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6232         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6233         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6234         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6235         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6238 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6240         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6241         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6242         variables in shell case patterns, for AIX and HP-UX ksh.
6244         Split large sed scripts, for HP-UX sed.
6245         * modules/stdio: Split sed scripts around 50 sed commands,
6246         to avoid HP-UX limit of 99 commands, in the near future.
6247         * modules/string: Likewise.
6248         * modules/unistd: Likewise.
6250         gnulib-tool: avoid writing in the current directory.
6251         * gnulib-tool (func_emit_lib_Makefile_am)
6252         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6253         not in the current directory, so concurrent gnulib-tool
6254         instances do not interfere.
6256 2010-01-16  Jim Meyering  <meyering@redhat.com>
6258         doc: update users.txt
6259         * users.txt: Add grep.
6260         (diffutils, gzip): Update URLs.
6262 2010-01-12  Bruno Haible  <bruno@clisp.org>
6264         posix_spawn: Avoid test failure on Cygwin.
6265         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6266         characters.
6267         Reported by Simon Josefsson.
6269 2010-01-12  Bruno Haible  <bruno@clisp.org>
6271         * tests/test-cond.c (main): When skipping the test, show the reason.
6273 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6275         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6277 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6279         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6280         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6282 2010-01-12  Eric Blake  <ebb9@byu.net>
6284         build: guarantee AS_VAR_IF
6285         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6286         (gl_AS_VAR_IF): Move...
6287         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6288         Reported by Simon Josefsson.
6290 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6292         * lib/stdio.in.h: Fix typo.
6294 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6296         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6297         libgpg-error.
6299 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6301         * tests/test-xalloc-die.sh: Use $EXEEXT.
6303 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6304             Bruno Haible  <bruno@clisp.org>
6306         getlogin, getlogin_r: Avoid test failure.
6307         * tests/test-getlogin.c: Include <stdio.h>.
6308         (main): Skip the test when the function fails because stdin is not a
6309         tty.
6310         * tests/test-getlogin_r.c: Include <stdio.h>.
6311         (main): Skip the test when the function fails because stdin is not a
6312         tty.
6314 2010-01-11  Eric Blake  <ebb9@byu.net>
6316         tests: avoid more large file warnings
6317         * tests/test-fflush.c: Avoid warning about ftell use.
6318         * tests/test-fseek.c: Avoid warning about fseek use.
6320 2010-01-10  Bruno Haible  <bruno@clisp.org>
6322         nproc: Work better on Linux when /proc and /sys are not mounted.
6323         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
6324         as lower bound when, on glibc/Linux systems,
6325         sysconf (_SC_NPROCESSORS_CONF) returns 1.
6326         Suggested by Pádraig Brady <P@draigbrady.com>.
6327         Reported by Dmitry V. Levin <ldv@altlinux.org>.
6329         nproc: Refactor.
6330         * lib/nproc.c (num_processors_via_affinity_mask): New function,
6331         extracted from num_processors.
6332         (num_processors): Call it.
6334 2010-01-11  Jim Meyering  <meyering@redhat.com>
6336         utimecmp: avoid new warning from upcoming gcc-4.5.0
6337         * lib/utimecmp.c (BILLION): Define using #define rather than an
6338         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
6340 2010-01-11  Eric Blake  <ebb9@byu.net>
6342         math: add portability warnings for classification macros
6343         * modules/math (Depends-on): Add warn-on-use.
6344         (Makefile.am): Provide new substitutions.
6345         * m4/math_h.m4 (gl_MATH_H): Require inline.
6346         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
6347         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
6348         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
6349         implement warnings.
6351         unistd: warn on use of environ without module
6352         * modules/unistd (Depends-on): Add warn-on-use.
6353         (Makefile.am): Provide new substitutions.
6354         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
6355         * lib/unistd.in.h (environ): Wrap with a warning helper function.
6357         stdio: warn on suspicious uses
6358         * modules/stdio (Depends-on): Add warn-on-use.
6359         (Makefile.am): Provide new substitutions.
6360         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
6361         fseeko.
6362         * lib/stdio.in.h (gets): Always warn on use.
6363         (fseek, ftell): Adjust when warnings are issued, and honor
6364         _GL_NO_LARGE_FILES as a way to silence the warning.
6365         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
6366         any warning about large file offsets.
6367         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
6368         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
6369         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
6370         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
6371         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
6372         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
6373         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
6374         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
6376         warn-on-use: new module
6377         * modules/warn-on-use: New file.
6378         * build-aux/warn-on-use.h: Likewise.
6379         * m4/warn-on-use.m4: Likewise.
6380         * MODULES.html.sh (Support for building): Mention it.
6382 2010-01-10  Bruno Haible  <bruno@clisp.org>
6384         Tests for module 'unistr/u32-strdup'.
6385         * modules/unistr/u32-strdup-tests: New file.
6386         * tests/unistr/test-u32-strdup.c: New file.
6388         Tests for module 'unistr/u16-strdup'.
6389         * modules/unistr/u16-strdup-tests: New file.
6390         * tests/unistr/test-u16-strdup.c: New file.
6392         Tests for module 'unistr/u8-strdup'.
6393         * modules/unistr/u8-strdup-tests: New file.
6394         * tests/unistr/test-u8-strdup.c: New file.
6395         * tests/unistr/test-strdup.h: New file.
6397         Tests for module 'unistr/u32-strncmp'.
6398         * modules/unistr/u32-strncmp-tests: New file.
6399         * tests/unistr/test-u32-strncmp.c: New file.
6401         Tests for module 'unistr/u16-strncmp'.
6402         * modules/unistr/u16-strncmp-tests: New file.
6403         * tests/unistr/test-u16-strncmp.c: New file.
6405         Tests for module 'unistr/u8-strncmp'.
6406         * modules/unistr/u8-strncmp-tests: New file.
6407         * tests/unistr/test-u8-strncmp.c: New file.
6408         * tests/unistr/test-strncmp.h: New file.
6410         Tests for module 'unistr/u32-strcoll'.
6411         * modules/unistr/u32-strcoll-tests: New file.
6412         * tests/unistr/test-u32-strcoll.c: New file.
6414         Tests for module 'unistr/u16-strcoll'.
6415         * modules/unistr/u16-strcoll-tests: New file.
6416         * tests/unistr/test-u16-strcoll.c: New file.
6418         Tests for module 'unistr/u8-strcoll'.
6419         * modules/unistr/u8-strcoll-tests: New file.
6420         * tests/unistr/test-u8-strcoll.c: New file.
6422         Tests for module 'unistr/u32-strcmp'.
6423         * modules/unistr/u32-strcmp-tests: New file.
6424         * tests/unistr/test-u32-strcmp.c: New file.
6425         * tests/unistr/test-u32-strcmp.h: New file.
6427         Tests for module 'unistr/u16-strcmp'.
6428         * modules/unistr/u16-strcmp-tests: New file.
6429         * tests/unistr/test-u16-strcmp.c: New file.
6430         * tests/unistr/test-u16-strcmp.h: New file.
6432         Tests for module 'unistr/u8-strcmp'.
6433         * modules/unistr/u8-strcmp-tests: New file.
6434         * tests/unistr/test-u8-strcmp.c: New file.
6435         * tests/unistr/test-u8-strcmp.h: New file.
6436         * tests/unistr/test-strcmp.h: New file.
6438         Tests for module 'unistr/u32-strncat'.
6439         * modules/unistr/u32-strncat-tests: New file.
6440         * tests/unistr/test-u32-strncat.c: New file.
6442         Tests for module 'unistr/u16-strncat'.
6443         * modules/unistr/u16-strncat-tests: New file.
6444         * tests/unistr/test-u16-strncat.c: New file.
6446         Tests for module 'unistr/u8-strncat'.
6447         * modules/unistr/u8-strncat-tests: New file.
6448         * tests/unistr/test-u8-strncat.c: New file.
6449         * tests/unistr/test-strncat.h: New file.
6451         Tests for module 'unistr/u32-strcat'.
6452         * modules/unistr/u32-strcat-tests: New file.
6453         * tests/unistr/test-u32-strcat.c: New file.
6455         Tests for module 'unistr/u16-strcat'.
6456         * modules/unistr/u16-strcat-tests: New file.
6457         * tests/unistr/test-u16-strcat.c: New file.
6459         Tests for module 'unistr/u8-strcat'.
6460         * modules/unistr/u8-strcat-tests: New file.
6461         * tests/unistr/test-u8-strcat.c: New file.
6462         * tests/unistr/test-strcat.h: New file.
6464         Tests for module 'unistr/u32-stpncpy'.
6465         * modules/unistr/u32-stpncpy-tests: New file.
6466         * tests/unistr/test-u32-stpncpy.c: New file.
6468         Tests for module 'unistr/u16-stpncpy'.
6469         * modules/unistr/u16-stpncpy-tests: New file.
6470         * tests/unistr/test-u16-stpncpy.c: New file.
6472         Tests for module 'unistr/u8-stpncpy'.
6473         * modules/unistr/u8-stpncpy-tests: New file.
6474         * tests/unistr/test-u8-stpncpy.c: New file.
6475         * tests/unistr/test-stpncpy.h: New file.
6477         Tests for module 'unistr/u32-strncpy'.
6478         * modules/unistr/u32-strncpy-tests: New file.
6479         * tests/unistr/test-u32-strncpy.c: New file.
6481         Tests for module 'unistr/u16-strncpy'.
6482         * modules/unistr/u16-strncpy-tests: New file.
6483         * tests/unistr/test-u16-strncpy.c: New file.
6485         Tests for module 'unistr/u8-strncpy'.
6486         * modules/unistr/u8-strncpy-tests: New file.
6487         * tests/unistr/test-u8-strncpy.c: New file.
6488         * tests/unistr/test-strncpy.h: New file.
6490         Tests for module 'unistr/u32-stpcpy'.
6491         * modules/unistr/u32-stpcpy-tests: New file.
6492         * tests/unistr/test-u32-stpcpy.c: New file.
6494         Tests for module 'unistr/u16-stpcpy'.
6495         * modules/unistr/u16-stpcpy-tests: New file.
6496         * tests/unistr/test-u16-stpcpy.c: New file.
6498         Tests for module 'unistr/u8-stpcpy'.
6499         * modules/unistr/u8-stpcpy-tests: New file.
6500         * tests/unistr/test-u8-stpcpy.c: New file.
6501         * tests/unistr/test-stpcpy.h: New file.
6503         Tests for module 'unistr/u32-strcpy'.
6504         * modules/unistr/u32-strcpy-tests: New file.
6505         * tests/unistr/test-u32-strcpy.c: New file.
6507         Tests for module 'unistr/u16-strcpy'.
6508         * modules/unistr/u16-strcpy-tests: New file.
6509         * tests/unistr/test-u16-strcpy.c: New file.
6511         Tests for module 'unistr/u8-strcpy'.
6512         * modules/unistr/u8-strcpy-tests: New file.
6513         * tests/unistr/test-u8-strcpy.c: New file.
6514         * tests/unistr/test-strcpy.h: New file.
6516         Tests for module 'unistr/u32-strnlen'.
6517         * modules/unistr/u32-strnlen-tests: New file.
6518         * tests/unistr/test-u32-strnlen.c: New file.
6520         Tests for module 'unistr/u16-strnlen'.
6521         * modules/unistr/u16-strnlen-tests: New file.
6522         * tests/unistr/test-u16-strnlen.c: New file.
6524         Tests for module 'unistr/u8-strnlen'.
6525         * modules/unistr/u8-strnlen-tests: New file.
6526         * tests/unistr/test-u8-strnlen.c: New file.
6527         * tests/unistr/test-strnlen.h: New file.
6529         Tests for module 'unistr/u32-strlen'.
6530         * modules/unistr/u32-strlen-tests: New file.
6531         * tests/unistr/test-u32-strlen.c: New file.
6533         Tests for module 'unistr/u16-strlen'.
6534         * modules/unistr/u16-strlen-tests: New file.
6535         * tests/unistr/test-u16-strlen.c: New file.
6537         Tests for module 'unistr/u8-strlen'.
6538         * modules/unistr/u8-strlen-tests: New file.
6539         * tests/unistr/test-u8-strlen.c: New file.
6541         Tests for module 'unistr/u32-prev'.
6542         * modules/unistr/u32-prev-tests: New file.
6543         * tests/unistr/test-u32-prev.c: New file.
6545         Tests for module 'unistr/u16-prev'.
6546         * modules/unistr/u16-prev-tests: New file.
6547         * tests/unistr/test-u16-prev.c: New file.
6549         Tests for module 'unistr/u8-prev'.
6550         * modules/unistr/u8-prev-tests: New file.
6551         * tests/unistr/test-u8-prev.c: New file.
6553         Tests for module 'unistr/u32-next'.
6554         * modules/unistr/u32-next-tests: New file.
6555         * tests/unistr/test-u32-next.c: New file.
6557         Tests for module 'unistr/u16-next'.
6558         * modules/unistr/u16-next-tests: New file.
6559         * tests/unistr/test-u16-next.c: New file.
6561         Tests for module 'unistr/u8-next'.
6562         * modules/unistr/u8-next-tests: New file.
6563         * tests/unistr/test-u8-next.c: New file.
6565         Tests for module 'unistr/u32-strmbtouc'.
6566         * modules/unistr/u32-strmbtouc-tests: New file.
6567         * tests/unistr/test-u32-strmbtouc.c: New file.
6569         Tests for module 'unistr/u16-strmbtouc'.
6570         * modules/unistr/u16-strmbtouc-tests: New file.
6571         * tests/unistr/test-u16-strmbtouc.c: New file.
6573         Tests for module 'unistr/u8-strmbtouc'.
6574         * modules/unistr/u8-strmbtouc-tests: New file.
6575         * tests/unistr/test-u8-strmbtouc.c: New file.
6577         Tests for module 'unistr/u32-strmblen'.
6578         * modules/unistr/u32-strmblen-tests: New file.
6579         * tests/unistr/test-u32-strmblen.c: New file.
6581         Tests for module 'unistr/u16-strmblen'.
6582         * modules/unistr/u16-strmblen-tests: New file.
6583         * tests/unistr/test-u16-strmblen.c: New file.
6585         Tests for module 'unistr/u8-strmblen'.
6586         * modules/unistr/u8-strmblen-tests: New file.
6587         * tests/unistr/test-u8-strmblen.c: New file.
6589         Tests for module 'unistr/u32-cpy-alloc'.
6590         * modules/unistr/u32-cpy-alloc-tests: New file.
6591         * tests/unistr/test-u32-cpy-alloc.c: New file.
6593         Tests for module 'unistr/u16-cpy-alloc'.
6594         * modules/unistr/u16-cpy-alloc-tests: New file.
6595         * tests/unistr/test-u16-cpy-alloc.c: New file.
6597         Tests for module 'unistr/u8-cpy-alloc'.
6598         * modules/unistr/u8-cpy-alloc-tests: New file.
6599         * tests/unistr/test-u8-cpy-alloc.c: New file.
6600         * tests/unistr/test-cpy-alloc.h: New file.
6602         Tests for module 'unistr/u32-mbsnlen'.
6603         * modules/unistr/u32-mbsnlen-tests: New file.
6604         * tests/unistr/test-u32-mbsnlen.c: New file.
6606         Tests for module 'unistr/u16-mbsnlen'.
6607         * modules/unistr/u16-mbsnlen-tests: New file.
6608         * tests/unistr/test-u16-mbsnlen.c: New file.
6610         Tests for module 'unistr/u8-mbsnlen'.
6611         * modules/unistr/u8-mbsnlen-tests: New file.
6612         * tests/unistr/test-u8-mbsnlen.c: New file.
6614         Tests for module 'unistr/u32-chr'.
6615         * modules/unistr/u32-chr-tests: New file.
6616         * tests/unistr/test-u32-chr.c: New file.
6618         Tests for module 'unistr/u16-chr'.
6619         * modules/unistr/u16-chr-tests: New file.
6620         * tests/unistr/test-u16-chr.c: New file.
6622         Tests for module 'unistr/u8-chr'.
6623         * modules/unistr/u8-chr-tests: New file.
6624         * tests/unistr/test-u8-chr.c: New file.
6625         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
6627         Tests for module 'unistr/u32-cmp2'.
6628         * modules/unistr/u32-cmp2-tests: New file.
6629         * tests/unistr/test-u32-cmp2.c: New file.
6631         Tests for module 'unistr/u16-cmp2'.
6632         * modules/unistr/u16-cmp2-tests: New file.
6633         * tests/unistr/test-u16-cmp2.c: New file.
6635         Tests for module 'unistr/u8-cmp2'.
6636         * modules/unistr/u8-cmp2-tests: New file.
6637         * tests/unistr/test-u8-cmp2.c: New file.
6638         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
6640         Tests for module 'unistr/u32-cmp'.
6641         * modules/unistr/u32-cmp-tests: New file.
6642         * tests/unistr/test-u32-cmp.c: New file.
6644         Tests for module 'unistr/u16-cmp'.
6645         * modules/unistr/u16-cmp-tests: New file.
6646         * tests/unistr/test-u16-cmp.c: New file.
6648         Tests for module 'unistr/u8-cmp'.
6649         * modules/unistr/u8-cmp-tests: New file.
6650         * tests/unistr/test-u8-cmp.c: New file.
6651         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
6653         Tests for module 'unistr/u32-set'.
6654         * modules/unistr/u32-set-tests: New file.
6655         * tests/unistr/test-u32-set.c: New file.
6657         Tests for module 'unistr/u16-set'.
6658         * modules/unistr/u16-set-tests: New file.
6659         * tests/unistr/test-u16-set.c: New file.
6661         Tests for module 'unistr/u8-set'.
6662         * modules/unistr/u8-set-tests: New file.
6663         * tests/unistr/test-u8-set.c: New file.
6664         * tests/unistr/test-set.h: New file.
6666         Tests for module 'unistr/u32-move'.
6667         * modules/unistr/u32-move-tests: New file.
6668         * tests/unistr/test-u32-move.c: New file.
6670         Tests for module 'unistr/u16-move'.
6671         * modules/unistr/u16-move-tests: New file.
6672         * tests/unistr/test-u16-move.c: New file.
6674         Tests for module 'unistr/u8-move'.
6675         * modules/unistr/u8-move-tests: New file.
6676         * tests/unistr/test-u8-move.c: New file.
6677         * tests/unistr/test-move.h: New file.
6679         Tests for module 'unistr/u32-cpy'.
6680         * modules/unistr/u32-cpy-tests: New file.
6681         * tests/unistr/test-u32-cpy.c: New file.
6683         Tests for module 'unistr/u16-cpy'.
6684         * modules/unistr/u16-cpy-tests: New file.
6685         * tests/unistr/test-u16-cpy.c: New file.
6687         Tests for module 'unistr/u8-cpy'.
6688         * modules/unistr/u8-cpy-tests: New file.
6689         * tests/unistr/test-u8-cpy.c: New file.
6690         * tests/unistr/test-cpy.h: New file.
6692 2010-01-09  Bruno Haible  <bruno@clisp.org>
6694         Tests for module 'unistr/u32-uctomb'.
6695         * modules/unistr/u32-uctomb-tests: New file.
6696         * tests/unistr/test-u32-uctomb.c: New file.
6698         Tests for module 'unistr/u16-uctomb'.
6699         * modules/unistr/u16-uctomb-tests: New file.
6700         * tests/unistr/test-u16-uctomb.c: New file.
6702         Tests for module 'unistr/u8-uctomb'.
6703         * modules/unistr/u8-uctomb-tests: New file.
6704         * tests/unistr/test-u8-uctomb.c: New file.
6706         Tests for module 'unistr/u32-mbtoucr'.
6707         * modules/unistr/u32-mbtoucr-tests: New file.
6708         * tests/unistr/test-u32-mbtoucr.c: New file.
6710         Tests for module 'unistr/u16-mbtoucr'.
6711         * modules/unistr/u16-mbtoucr-tests: New file.
6712         * tests/unistr/test-u16-mbtoucr.c: New file.
6714         Tests for module 'unistr/u8-mbtoucr'.
6715         * modules/unistr/u8-mbtoucr-tests: New file.
6716         * tests/unistr/test-u8-mbtoucr.c: New file.
6718         Tests for module 'unistr/u32-mbtouc'.
6719         * modules/unistr/u32-mbtouc-tests: New file.
6720         * tests/unistr/test-u32-mbtouc.c: New file.
6722         Tests for module 'unistr/u16-mbtouc'.
6723         * modules/unistr/u16-mbtouc-tests: New file.
6724         * tests/unistr/test-u16-mbtouc.c: New file.
6726         Tests for module 'unistr/u8-mbtouc'.
6727         * modules/unistr/u8-mbtouc-tests: New file.
6728         * tests/unistr/test-u8-mbtouc.c: New file.
6730         Tests for module 'unistr/u32-mbtouc-unsafe'.
6731         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
6732         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
6733         * tests/unistr/test-u32-mbtouc.h: New file.
6735         Tests for module 'unistr/u16-mbtouc-unsafe'.
6736         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
6737         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
6738         * tests/unistr/test-u16-mbtouc.h: New file.
6740         Tests for module 'unistr/u8-mbtouc-unsafe'.
6741         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
6742         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
6743         * tests/unistr/test-u8-mbtouc.h: New file.
6745         Tests for module 'unistr/u32-mblen'.
6746         * modules/unistr/u32-mblen-tests: New file.
6747         * tests/unistr/test-u32-mblen.c: New file.
6749         Tests for module 'unistr/u16-mblen'.
6750         * modules/unistr/u16-mblen-tests: New file.
6751         * tests/unistr/test-u16-mblen.c: New file.
6753         Tests for module 'unistr/u8-mblen'.
6754         * modules/unistr/u8-mblen-tests: New file.
6755         * tests/unistr/test-u8-mblen.c: New file.
6757         Tests for module 'unistr/u32-to-u16'.
6758         * modules/unistr/u32-to-u16-tests: New file.
6759         * tests/unistr/test-u32-to-u16.c: New file.
6761         Tests for module 'unistr/u32-to-u8'.
6762         * modules/unistr/u32-to-u8-tests: New file.
6763         * tests/unistr/test-u32-to-u8.c: New file.
6765         Tests for module 'unistr/u16-to-u32'.
6766         * modules/unistr/u16-to-u32-tests: New file.
6767         * tests/unistr/test-u16-to-u32.c: New file.
6769         Tests for module 'unistr/u16-to-u8'.
6770         * modules/unistr/u16-to-u8-tests: New file.
6771         * tests/unistr/test-u16-to-u8.c: New file.
6773         Tests for module 'unistr/u8-to-u32'.
6774         * modules/unistr/u8-to-u32-tests: New file.
6775         * tests/unistr/test-u8-to-u32.c: New file.
6777         Tests for module 'unistr/u8-to-u16'.
6778         * modules/unistr/u8-to-u16-tests: New file.
6779         * tests/unistr/test-u8-to-u16.c: New file.
6781         Tests for module 'unistr/u32-check'.
6782         * modules/unistr/u32-check-tests: New file.
6783         * tests/unistr/test-u32-check.c: New file.
6785         Tests for module 'unistr/u16-check'.
6786         * modules/unistr/u16-check-tests: New file.
6787         * tests/unistr/test-u16-check.c: New file.
6789         Tests for module 'unistr/u8-check'.
6790         * modules/unistr/u8-check-tests: New file.
6791         * tests/unistr/test-u8-check.c: New file.
6793         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
6794         (category_equals): New function.
6795         (main): Add more tests.
6796         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
6798         * tests/unictype/test-bidi_byname.c (main): Add more tests.
6800 2010-01-10  Bruno Haible  <bruno@clisp.org>
6802         unistr/u*-strcoll: Try harder to distinguish different strings.
6803         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
6804         compare s1 and s2 to see if they are different.
6806 2010-01-10  Bruno Haible  <bruno@clisp.org>
6808         unistr/u*-stpncpy: Fix the return value.
6809         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
6810         description of the return value consistent with stpncpy in glibc.
6811         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
6812         written non-NUL unit.
6814 2010-01-10  Bruno Haible  <bruno@clisp.org>
6816         unistr/u*-next: Add missing dependencies.
6817         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
6818         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
6819         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
6821 2010-01-10  Bruno Haible  <bruno@clisp.org>
6823         unistr/u8-mbsnlen: Fix return value for incomplete character.
6824         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
6825         u8_mblen.
6826         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
6827         Remove unistr/u8-mblen.
6828         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
6829         u16_mblen.
6830         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
6831         Remove unistr/u16-mblen.
6833 2010-01-10  Bruno Haible  <bruno@clisp.org>
6835         wchar: Fix compilation error when <wchar.h> is used from coreutils.
6836         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
6837         Reported by Brian Gough <bjg@gnu.org> and
6838         Chris Clayton <chris2553@googlemail.com> via
6839         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
6841 2010-01-09  Bruno Haible  <bruno@clisp.org>
6843         unistr/u16-to-u32: Reject invalid input.
6844         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
6845         u16_mbtouc.
6846         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
6847         Remove unistr/u16-mbtouc.
6849         unistr/u16-to-u8: Reject invalid input.
6850         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
6851         u16_mbtouc.
6852         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
6853         Remove unistr/u16-mbtouc.
6855         unistr/u8-to-u32: Reject invalid input.
6856         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
6857         u8_mbtouc.
6858         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
6859         Remove unistr/u8-mbtouc.
6861         unistr/u8-to-u16: Reject invalid input.
6862         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
6863         u8_mbtouc.
6864         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
6865         Remove unistr/u8-mbtouc.
6867 2010-01-09  Bruno Haible  <bruno@clisp.org>
6869         Tests for module 'getlogin'.
6870         * modules/getlogin-tests: New file.
6871         * tests/test-getlogin.c: New file.
6873         New module 'getlogin'.
6874         * lib/unistd.in.h (getlogin): New declaration.
6875         * lib/getlogin.c: New file.
6876         * m4/getlogin.m4: New file.
6877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
6878         HAVE_GETLOGIN.
6879         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
6880         HAVE_GETLOGIN.
6881         * modules/getlogin: New file.
6882         * doc/posix-functions/getlogin.texi: Mention the new module.
6883         Reported by John W. Eaton <jwe@gnu.org>.
6885 2010-01-09  Bruno Haible  <bruno@clisp.org>
6887         getlogin_r: Support for native Windows.
6888         * lib/getlogin_r.c: Include <windows.h>
6889         (getlogin_r): Implement for native Windows.
6890         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
6891         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
6892         via John W. Eaton <jwe@gnu.org>.
6894 2010-01-09  Bruno Haible  <bruno@clisp.org>
6896         getlogin_r: Small fixes.
6897         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
6898         succeeds.
6899         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
6900         before testing whether getlogin_r is declared. No need to set
6901         HAVE_DECL_GETLOGIN_R to 1.
6902         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
6904 2010-01-09  Bruno Haible  <bruno@clisp.org>
6906         * lib/unistd.in.h (getlogin_r): Add comment.
6908 2010-01-09  Bruno Haible  <bruno@clisp.org>
6910         Tests for module 'getlogin_r'.
6911         * modules/getlogin_r-tests: New file.
6912         * tests/test-getlogin_r.c: New file.
6914 2010-01-09  Jim Meyering  <meyering@redhat.com>
6916         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
6917         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
6918         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
6920 2010-01-08  Simon Josefsson  <simon@josefsson.org>
6922         * lib/dup2.c (rpl_dup2): Improve comment.
6924 2010-01-08  Eric Blake  <ebb9@byu.net>
6926         maint.mk: allow packages to add makefile @@ exceptions
6927         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
6928         (sc_makefile_check): Rename...
6929         (sc_makefile_at_at_check): ...to this, and use hook.
6931         dup2: work around mingw bug
6932         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
6933         Reported by Simon Josefsson.
6935 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
6937         glob: Fix C++ compilation.
6938         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
6939         C++.
6941 2010-01-07  Bruno Haible  <bruno@clisp.org>
6943         Fix indentation of wctype.in.h, broken since 2007-01-06.
6944         * lib/wctype.in.h: Fix indentation of preprocessor directives.
6946 2010-01-07  Bruno Haible  <bruno@clisp.org>
6948         mbslen: Avoid collision with system function.
6949         * lib/string.in.h [MirBSD]: Include <wchar.h>.
6950         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
6951         * m4/mbslen.m4: New file.
6952         * modules/mbslen (Files): Add it.
6953         (configure.ac): Invoke gl_MBSLEN.
6954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
6955         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
6956         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
6957         via Ian Beckwith <ianb@erislabs.net>.
6959 2010-01-07  Bruno Haible  <bruno@clisp.org>
6961         dirent: Document the last fix.
6962         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
6964 2010-01-07  Bruno Haible  <bruno@clisp.org>
6966         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
6967         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
6968         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
6969         va_list are defined.
6970         * doc/posix-headers/stdio.texi: Document the bug of missing types.
6971         Reported by Eric Blake.
6973 2010-01-07  Bruno Haible  <bruno@clisp.org>
6975         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
6976         * modules/xlist (Depends-on): Add 'list',
6977         * modules/xoset (Depends-on): Add 'oset'.
6978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6980 2010-01-07  Bruno Haible  <bruno@clisp.org>
6982         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
6983         * doc/posix-functions/strncasecmp.texi: Likewise.
6985 2010-01-07  Bruno Haible  <bruno@clisp.org>
6987         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
6989 2010-01-07  John W. Eaton  <jwe@octave.org>
6991         wctype: allow C++ use
6992         * lib/wctype.in.h: Add extern "C" block for C++.
6994 2010-01-06  Eric Blake  <ebb9@byu.net>
6996         maint.mk: detect incorrect GFDL usage
6997         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
6999 2010-01-06  Jim Meyering  <meyering@redhat.com>
7000         and Eric Blake  <ebb9@byu.net>
7002         maint.mk: ignore multi-line copyright in NEWS
7003         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7005 2010-01-06  Eric Blake  <ebb9@byu.net>
7007         select: add missing dependency
7008         * modules/select-tests (Depends-on): Move sockets dependency...
7009         * modules/select (Depends-on): ...here.
7010         Reported by Ian Beckwith.
7012         doc: regenerate INSTALL
7013         * doc/INSTALL: Reflect recent autoconf update.
7014         * doc/INSTALL.ISO: Likewise.
7015         * doc/INSTALL.UTF-8: Likewise.
7017         pread: fix compilation on glibc
7018         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7019         Reported by Ralf Wildenhues.
7021         dirent: fix test failure
7022         * lib/dirent.in.h (includes): Guarantee ino_t.
7023         Reported by Ralf Wildenhues.
7025 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7027         linkat, renameat: avoid bad free
7028         * lib/at-func2.c (at_func2): Fix typo.
7029         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7031 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7033         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7034         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7035         to avoid failure of symlink test later.
7037 2010-01-06  Eric Blake  <ebb9@byu.net>
7039         stdio, unistd: guarantee ssize_t
7040         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7041         2008 are exposed when needed.
7042         * lib/stdio.in.h (includes): Likewise.
7043         Reported by Ralf Wildenhues.
7045 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7047         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7048         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7049         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7051 2010-01-06  Jim Meyering  <meyering@redhat.com>
7053         readtokens: this module *does* require xalloc.h
7054         It uses only functions that were omitted by the old syntax-check rule.
7055         * lib/readtokens.c: Include "xalloc.h" once again.
7056         * modules/readtokens (Depends-on): Add xalloc.
7057         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7059 2010-01-05  Eric Blake  <ebb9@byu.net>
7061         maint: support 'make announcement' from a VPATH build
7062         * top/maint.mk (announcement): Look for correct NEWS file.
7064 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7066         utimens (fdutimens): ignore a negative FD, per contract
7067         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7068         when we have a valid file descriptor.  Otherwise, using a brand
7069         new glibc (with just-patched futimens that now fails with EBADF)
7070         would cause this function to fail with ENOSYS.
7071         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7072         See also http://bugzilla.redhat.com/552320.
7074 2010-01-05  Eric Blake  <ebb9@byu.net>
7076         strcase: document what it provides
7077         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7078         gnulib module.
7079         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7080         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7082 2010-01-05  Jim Meyering  <meyering@redhat.com>
7084         maint: remove useless inclusions of "xalloc.h"
7085         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7086         * lib/readtokens.c: Likewise.
7087         * lib/same.c: Likewise.
7088         * modules/getloadavg (Depends-on): Remove xalloc.
7089         * modules/readtokens: Likewise.
7090         * modules/same: Likewise.
7092         maint.mk: include 4 more function names in alloca.h-checking regexp
7093         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7094         regexp.  Before, we would give a false-positive (saying alloca.h
7095         is included unnecessarily) when the only uses involved omitted symbols.
7097         xalloc.h: use consistent formatting
7098         * lib/xalloc.h: Move declarations to start in the first column.
7100 2010-01-05  Eric Blake  <ebb9@byu.net>
7102         mkdir: avoid xalloc
7103         * lib/mkdir.c (includes): Drop unused header.
7104         Reported by John W. Eaton.
7106 2010-01-04  Jim Meyering  <meyering@redhat.com>
7108         nl_langinfo: avoid configure-time syntax error
7109         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7110         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7111         the empty string.  Don't let that provoke a shell syntax error.
7113         regcomp, regexec, fnmatch: avoid array bounds read error
7114         * lib/regcomp.c (build_equiv_class): From glibc:
7115         Use only the low 24 bits of a findidx return value as an index
7116         into the weights array.  Patch by Ulrich Drepper:
7117         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7118         * lib/regexec.c (check_node_accept_bytes): Likewise.
7119         * lib/fnmatch_loop.c (FCT): Likewise.
7121         regcomp: skip collseq lookup when there are no rules
7122         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7123         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7125         regcomp: recognize ill-formed { } expressions
7126         * lib/regcomp.c (parse_dup_op): From glibc:
7127         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7129         regcomp: fix typo in comment
7130         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7131         s/satisfy/satisfies/.
7133         regcomp: sync from glibc: remove dead store
7134         * lib/regcomp.c (duplicate_node_closure): Remove useless
7135         search_duplicated_node call and dead store.
7137         regcomp: sync from glibc; always use nl_langinfo
7138         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7139         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7140         * modules/regex (Depends-on): Add nl_langinfo.
7142 2010-01-04  Eric Blake  <ebb9@byu.net>
7144         fdopendir: fix configure test
7145         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7147 2010-01-01  Bruno Haible  <bruno@clisp.org>
7149         wchar: Remove unused configure check.
7150         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7152 2010-01-01  Eric Blake  <ebb9@byu.net>
7154         headers: make check of system header explicit
7155         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7156         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7157         ourselves.
7158         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7160         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7161         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7162         internals.
7163         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7164         missing.
7165         Suggested by Bruno Haible.
7167 2010-01-01  Jim Meyering  <meyering@redhat.com>
7169         ChangeLog: tweak to eliminate unnecessary copyright line
7170         * ChangeLog: Remove a copyright line that was mistakenly updated
7171         by today's update-copyright run.  Reported by Eric Blake.
7173         test-update-copyright: don't let envvar setting cause test failure
7174         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7176 2010-01-01  Bruno Haible  <bruno@clisp.org>
7178         localename: Avoid gcc warning.
7179         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7180         function if it is not used.
7182 2010-01-01  Jim Meyering  <meyering@redhat.com>
7184         update nearly all FSF copyright year lists to include 2010
7185         Use the same procedure as for 2009, outlined in
7186         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7188         version-etc: set COPYRIGHT_YEAR to 2010
7189         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7191 2009-12-31  Eric Blake  <ebb9@byu.net>
7193         doc: correct availability of cygwin 1.5.x getopt
7194         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7195         variables.
7196         * doc/posix-functions/opterr.texi (opterr): Likewise.
7197         * doc/posix-functions/optind.texi (optind): Likewise.
7198         * doc/posix-functions/optopt.texi (optopt): Likewise.
7199         * doc/posix-functions/tzname.texi (tzname): Likewise.
7201         openat: update maintainer
7202         * modules/openat (Maintainer): Add myself.
7204         utimens: avoid shadowing warning
7205         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7206         buffers into one, to avoid shadowing, as well as avoiding a
7207         redundant stat.
7208         Reported by Jim Meyering.
7210         test-dup2: avoid compiler warning
7211         * tests/test-dup2.c (is_inheritable): Only define if used.
7213 2010-01-01  Bruno Haible  <bruno@clisp.org>
7215         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7216         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7217         defined, use wctomb instead of wcrtomb.
7219 2010-01-01  Bruno Haible  <bruno@clisp.org>
7221         iconv: Reject native Solaris iconv.
7222         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7223         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7225 2009-12-31  Bruno Haible  <bruno@clisp.org>
7227         * tests/test-signal.c (main): Remove test of 'SIG'.
7229 2009-12-31  Bruno Haible  <bruno@clisp.org>
7231         spawn: Fix incomplete fix.
7232         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7233         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7234         warnings for GNULIB_POSIXCHECK again.
7235         Reported by Eric Blake.
7237 2009-12-31  Bruno Haible  <bruno@clisp.org>
7239         Avoid namespace pollution on glibc systems.
7240         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7241         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7242         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7243         glibc systems.
7245 2009-12-31  Bruno Haible  <bruno@clisp.org>
7247         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7248         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7249         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7250         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7251         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7252         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7253         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7255 2009-12-31  Bruno Haible  <bruno@clisp.org>
7257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7258         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7259         afterwards.
7261 2009-12-31  Bruno Haible  <bruno@clisp.org>
7263         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7264         SYS_UTSNAME_H.
7266 2009-12-31  Bruno Haible  <bruno@clisp.org>
7268         spawn: Fix misapplied patch.
7269         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7270         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7271         warnings for GNULIB_POSIXCHECK.
7273 2009-12-31  Bruno Haible  <bruno@clisp.org>
7275         times: Update after sys_times changed.
7276         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7277         * modules/times (Files): Add it.
7278         (configure.ac): Invoke gl_FUNC_TIMES.
7280 2009-12-31  Bruno Haible  <bruno@clisp.org>
7282         Use AC_C_INLINE where necessary.
7283         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7284         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7285         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7286         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7287         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7288         * m4/mbiter.m4 (gl_MBITER): Likewise.
7289         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7290         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7291         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7292         * modules/u64 (configure.ac): Likewise.
7294 2009-12-31  Bruno Haible  <bruno@clisp.org>
7296         Use AC_C_INLINE instead of module 'inline' where possible.
7297         * modules/inline (Description): Clarify purpose.
7298         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7299         * modules/count-one-bits (Depends-on): Remove inline.
7300         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7301         * modules/openat (Depends-on): Remove inline.
7302         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7303         instead of depending on module 'inline'.
7304         * modules/filevercmp (Depends-on, configure.ac): Likewise.
7305         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
7306         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
7307         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
7308         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
7309         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
7310         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
7311         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
7312         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
7313         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
7314         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
7315         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
7316         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
7317         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
7318         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
7319         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
7320         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
7321         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
7322         Likewise.
7323         * modules/unictype/property-ascii-hex-digit (Depends-on,
7324         configure.ac): Likewise.
7325         * modules/unictype/property-bidi-arabic-digit (Depends-on,
7326         configure.ac): Likewise.
7327         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
7328         configure.ac): Likewise.
7329         * modules/unictype/property-bidi-block-separator (Depends-on,
7330         configure.ac): Likewise.
7331         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
7332         configure.ac): Likewise.
7333         * modules/unictype/property-bidi-common-separator (Depends-on,
7334         configure.ac): Likewise.
7335         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
7336         Likewise.
7337         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
7338         configure.ac): Likewise.
7339         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
7340         configure.ac): Likewise.
7341         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
7342         configure.ac): Likewise.
7343         * modules/unictype/property-bidi-european-digit (Depends-on,
7344         configure.ac): Likewise.
7345         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
7346         configure.ac): Likewise.
7347         * modules/unictype/property-bidi-left-to-right (Depends-on,
7348         configure.ac): Likewise.
7349         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
7350         configure.ac): Likewise.
7351         * modules/unictype/property-bidi-other-neutral (Depends-on,
7352         configure.ac): Likewise.
7353         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
7354         Likewise.
7355         * modules/unictype/property-bidi-segment-separator (Depends-on,
7356         configure.ac): Likewise.
7357         * modules/unictype/property-bidi-whitespace (Depends-on,
7358         configure.ac): Likewise.
7359         * modules/unictype/property-combining (Depends-on, configure.ac):
7360         Likewise.
7361         * modules/unictype/property-composite (Depends-on, configure.ac):
7362         Likewise.
7363         * modules/unictype/property-currency-symbol (Depends-on,
7364         configure.ac): Likewise.
7365         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
7366         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
7367         Likewise.
7368         * modules/unictype/property-default-ignorable-code-point (Depends-on,
7369         configure.ac): Likewise.
7370         * modules/unictype/property-deprecated (Depends-on, configure.ac):
7371         Likewise.
7372         * modules/unictype/property-diacritic (Depends-on, configure.ac):
7373         Likewise.
7374         * modules/unictype/property-extender (Depends-on, configure.ac):
7375         Likewise.
7376         * modules/unictype/property-format-control (Depends-on, configure.ac):
7377         Likewise.
7378         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
7379         Likewise.
7380         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
7381         Likewise.
7382         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
7383         Likewise.
7384         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
7385         Likewise.
7386         * modules/unictype/property-hyphen (Depends-on, configure.ac):
7387         Likewise.
7388         * modules/unictype/property-id-continue (Depends-on, configure.ac):
7389         Likewise.
7390         * modules/unictype/property-id-start (Depends-on, configure.ac):
7391         Likewise.
7392         * modules/unictype/property-ideographic (Depends-on, configure.ac):
7393         Likewise.
7394         * modules/unictype/property-ids-binary-operator (Depends-on,
7395         configure.ac): Likewise.
7396         * modules/unictype/property-ids-trinary-operator (Depends-on,
7397         configure.ac): Likewise.
7398         * modules/unictype/property-ignorable-control (Depends-on,
7399         configure.ac): Likewise.
7400         * modules/unictype/property-iso-control (Depends-on, configure.ac):
7401         Likewise.
7402         * modules/unictype/property-join-control (Depends-on, configure.ac):
7403         Likewise.
7404         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
7405         Likewise.
7406         * modules/unictype/property-line-separator (Depends-on, configure.ac):
7407         Likewise.
7408         * modules/unictype/property-logical-order-exception (Depends-on,
7409         configure.ac): Likewise.
7410         * modules/unictype/property-lowercase (Depends-on, configure.ac):
7411         Likewise.
7412         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
7413         * modules/unictype/property-non-break (Depends-on, configure.ac):
7414         Likewise.
7415         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
7416         Likewise.
7417         * modules/unictype/property-numeric (Depends-on, configure.ac):
7418         Likewise.
7419         * modules/unictype/property-other-alphabetic (Depends-on,
7420         configure.ac): Likewise.
7421         * modules/unictype/property-other-default-ignorable-code-point
7422         (Depends-on, configure.ac): Likewise.
7423         * modules/unictype/property-other-grapheme-extend (Depends-on,
7424         configure.ac): Likewise.
7425         * modules/unictype/property-other-id-continue (Depends-on,
7426         configure.ac): Likewise.
7427         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
7428         Likewise.
7429         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
7430         Likewise.
7431         * modules/unictype/property-other-math (Depends-on, configure.ac):
7432         Likewise.
7433         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
7434         Likewise.
7435         * modules/unictype/property-paired-punctuation (Depends-on,
7436         configure.ac): Likewise.
7437         * modules/unictype/property-paragraph-separator (Depends-on,
7438         configure.ac): Likewise.
7439         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
7440         Likewise.
7441         * modules/unictype/property-pattern-white-space (Depends-on,
7442         configure.ac): Likewise.
7443         * modules/unictype/property-private-use (Depends-on, configure.ac):
7444         Likewise.
7445         * modules/unictype/property-punctuation (Depends-on, configure.ac):
7446         Likewise.
7447         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
7448         Likewise.
7449         * modules/unictype/property-radical (Depends-on, configure.ac):
7450         Likewise.
7451         * modules/unictype/property-sentence-terminal (Depends-on,
7452         configure.ac): Likewise.
7453         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
7454         Likewise.
7455         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
7456         * modules/unictype/property-terminal-punctuation (Depends-on,
7457         configure.ac): Likewise.
7458         * modules/unictype/property-titlecase (Depends-on, configure.ac):
7459         Likewise.
7460         * modules/unictype/property-unassigned-code-value (Depends-on,
7461         configure.ac): Likewise.
7462         * modules/unictype/property-unified-ideograph (Depends-on,
7463         configure.ac): Likewise.
7464         * modules/unictype/property-uppercase (Depends-on, configure.ac):
7465         Likewise.
7466         * modules/unictype/property-variation-selector (Depends-on,
7467         configure.ac): Likewise.
7468         * modules/unictype/property-white-space (Depends-on, configure.ac):
7469         Likewise.
7470         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
7471         Likewise.
7472         * modules/unictype/property-xid-start (Depends-on, configure.ac):
7473         Likewise.
7474         * modules/unictype/property-zero-width (Depends-on, configure.ac):
7475         Likewise.
7476         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
7477         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
7478         Likewise.
7480 2009-12-31  Bruno Haible  <bruno@clisp.org>
7482         Remove unnecessary AC_C_INLINE invocation.
7483         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
7484         since 2009-08-21.
7486 2009-12-31  Jim Meyering  <meyering@redhat.com>
7488         maint.mk: don't require explicit gpg_key_ID in cfg.mk
7489         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
7490         With this change, we can all remove the gpg_key_ID = ... definition
7491         from our respective cfg.mk files.
7493         maint.mk: create announcement template in ~/, not in /tmp
7494         * top/maint.mk (emit_upload_commands): Adjust.
7495         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
7496         Remove temporary file, .ci-msg.
7498 2009-12-31  Eric Blake  <ebb9@byu.net>
7500         link-warning: always build headers with link warnings
7501         * modules/arpa_inet (Makefile.am): Always build replacement
7502         header.
7503         * modules/ctype (Makefile.am): Likewise.
7504         * modules/dirent (Makefile.am): Likewise.
7505         * modules/inttypes (Makefile.am): Likewise.
7506         * modules/langinfo (Makefile.am): Likewise.
7507         * modules/locale (Makefile.am): Likewise.
7508         * modules/spawn (Makefile.am): Likewise.
7509         * modules/sys_file (Makefile.am): Likewise.
7510         * modules/sys_ioctl (Makefile.am): Likewise.
7511         * modules/sys_select (Makefile.am): Likewise.
7512         * modules/sys_socket (Makefile.am): Likewise.
7513         * modules/sys_times (Makefile.am): Likewise.
7514         * modules/sys_utsname (Makefile.am): Likewise.
7515         * modules/sys_wait (Makefile.am): Likewise.
7516         * modules/wchar (Makefile.am): Likewise.
7517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
7518         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
7519         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
7520         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
7521         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
7522         Likewise.
7523         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7524         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7525         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
7526         Likewise.
7527         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
7528         Likewise.
7529         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7530         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
7531         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
7532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7533         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7535         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7536         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
7537         (gl_WCHAR_H_DEFAULTS): Likewise.
7539 2009-12-31  Eric Blake  <ebb9@byu.net>
7541         signal, spawn: use link warnings
7542         * lib/signal.in.h (sigset_t): Make unconditional.
7543         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
7544         (sigpending, sigprocmask, sigaction): Add link warnings.
7545         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
7546         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
7547         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
7548         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
7549         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
7550         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
7551         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
7552         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
7553         (posix_spawn_file_actions_destroy)
7554         (posix_spawn_file_actions_addopen)
7555         (posix_spawn_file_actions_addclose)
7556         (posix_spawn_file_actions_adddup2): Likewise.
7557         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
7558         * tests/test-signal.c (main): Enhance test.
7560         spawn: improve wrapper support
7561         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
7562         (gl_SPAWN_H_DEFAULTS): New defaults.
7563         * modules/spawn (Makefile.am): Substitute them.
7564         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
7565         Only declare if missing or broken.
7567         sys_times, sys_utsname: use include_next
7568         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
7569         header.
7570         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
7571         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7572         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7573         * modules/sys_times (Depends-on): Add include_next.
7574         (Makefile.am): Substitute additional values.
7575         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7576         * lib/sys_times.in.h (includes): Include native header, if
7577         available.
7578         * lib/sys_utsname.in.h (includes): Likewise.
7579         * tests/test-sys_times.c (main): Enhance test.
7581         fdutimensat: revert prior patch
7582         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
7583         utimens.h.
7584         Reported by Bruno Haible.
7586 2009-12-30  Eric Blake  <ebb9@byu.net>
7588         sys_wait: drop link-warning dependency
7589         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
7590         link-warning efforts.
7591         * lib/sys_wait.in.h: Likewise.
7593         fdutimensat: remove bogus dependency
7594         * modules/fdutimensat (Depends-on): Drop inline.
7596         unistd: fix typo
7597         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
7599 2009-12-30  Bruno Haible  <bruno@clisp.org>
7601         Fix compilation error with Solaris cc.
7602         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
7603         * lib/unicase/u16-is-invariant.c: Likewise.
7604         * lib/unicase/u32-is-invariant.c: Likewise.
7605         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7607 2009-12-30  Bruno Haible  <bruno@clisp.org>
7609         Fix test crash.
7610         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
7611         locales.
7612         Reported by Simon Josefsson <simon@josefsson.org>.
7614 2009-12-30  Bruno Haible  <bruno@clisp.org>
7616         Fix compilation error on most platforms.
7617         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
7618         Reported by Simon Josefsson <simon@josefsson.org>
7619         and Nelson H. F. Beebe <beebe@math.utah.edu>.
7621 2009-12-30  Eric Blake  <ebb9@byu.net>
7623         futimens, utimensat: work around ntfs-3g bug
7624         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
7625         a ctime bug is present, and expand workaround to cover ntfs-3g.
7626         * lib/utimens.c (fdutimens, lutimens): Likewise.
7627         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
7628         (validate_timespec): Adjust return value.
7629         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
7630         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7631         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
7633 2009-12-29  Eric Blake  <ebb9@byu.net>
7635         link-warning: make usage consistent
7636         * modules/ctype (Depends-on): Add link-warning.
7637         (Makefile.am): Update rules accordingly.
7638         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7639         * modules/locale (Depends-on, Makefile.am): Likewise.
7640         * modules/sys_file (Makefile.am): Likewise.
7641         * modules/getopt-posix (Makefile.am): Delete unused link warning
7642         efforts.
7643         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
7644         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
7645         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
7646         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
7648         stdio: remove unused variables
7649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
7650         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
7651         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7653         tests: test more substitute headers
7654         * modules/ctype-tests: New file.
7655         * modules/dirent-tests: Likewise.
7656         * modules/spawn-tests: Likewise.
7657         * modules/sys_file-tests: Likewise.
7658         * modules/sys_ioctl-tests: Likewise.
7659         * modules/sys_wait-tests: Likewise.
7660         * tests/test-ctype.c: Likewise.
7661         * tests/test-dirent.c: Likewise.
7662         * tests/test-spawn.c: Likewise.
7663         * tests/test-sys_file.c: Likewise.
7664         * tests/test-sys_ioctl.c: Likewise.
7665         * tests/test-sys_wait.c: Likewise.
7666         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
7667         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
7668         whether or not flock is in use.
7670         tests: remove License section from module
7671         * modules/arpa_inet-tests: Remove unneeded section.
7672         * modules/byteswap-tests: Likewise.
7673         * modules/ceilf-tests: Likewise.
7674         * modules/ceill-tests: Likewise.
7675         * modules/crypto/des-tests: Likewise.
7676         * modules/crypto/gc-arcfour-tests: Likewise.
7677         * modules/crypto/gc-arctwo-tests: Likewise.
7678         * modules/crypto/gc-des-tests: Likewise.
7679         * modules/crypto/gc-hmac-md5-tests: Likewise.
7680         * modules/crypto/gc-hmac-sha1-tests: Likewise.
7681         * modules/crypto/gc-md2-tests: Likewise.
7682         * modules/crypto/gc-md4-tests: Likewise.
7683         * modules/crypto/gc-md5-tests: Likewise.
7684         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
7685         * modules/crypto/gc-rijndael-tests: Likewise.
7686         * modules/crypto/gc-sha1-tests: Likewise.
7687         * modules/crypto/gc-tests: Likewise.
7688         * modules/crypto/md2-tests: Likewise.
7689         * modules/crypto/md4-tests: Likewise.
7690         * modules/fcntl-h-tests: Likewise.
7691         * modules/floorf-tests: Likewise.
7692         * modules/floorl-tests: Likewise.
7693         * modules/frexp-nolibm-tests: Likewise.
7694         * modules/frexp-tests: Likewise.
7695         * modules/frexpl-nolibm-tests: Likewise.
7696         * modules/frexpl-tests: Likewise.
7697         * modules/getaddrinfo-tests: Likewise.
7698         * modules/inttypes-tests: Likewise.
7699         * modules/isfinite-tests: Likewise.
7700         * modules/isinf-tests: Likewise.
7701         * modules/ldexpl-tests: Likewise.
7702         * modules/locale-tests: Likewise.
7703         * modules/math-tests: Likewise.
7704         * modules/netdb-tests: Likewise.
7705         * modules/netinet_in-tests: Likewise.
7706         * modules/printf-frexp-tests: Likewise.
7707         * modules/printf-frexpl-tests: Likewise.
7708         * modules/priv-set-tests: Likewise.
7709         * modules/random_r-tests: Likewise.
7710         * modules/round-tests: Likewise.
7711         * modules/roundf-tests: Likewise.
7712         * modules/roundl-tests: Likewise.
7713         * modules/search-tests: Likewise.
7714         * modules/select-tests: Likewise.
7715         * modules/signal-tests: Likewise.
7716         * modules/stdbool-tests: Likewise.
7717         * modules/stddef-tests: Likewise.
7718         * modules/stdint-tests: Likewise.
7719         * modules/stdio-tests: Likewise.
7720         * modules/stdlib-tests: Likewise.
7721         * modules/string-tests: Likewise.
7722         * modules/strings-tests: Likewise.
7723         * modules/sys_select-tests: Likewise.
7724         * modules/sys_socket-tests: Likewise.
7725         * modules/sys_stat-tests: Likewise.
7726         * modules/sys_time-tests: Likewise.
7727         * modules/sys_utsname-tests: Likewise.
7728         * modules/sysexits-tests: Likewise.
7729         * modules/time-tests: Likewise.
7730         * modules/trunc-tests: Likewise.
7731         * modules/truncf-tests: Likewise.
7732         * modules/truncl-tests: Likewise.
7733         * modules/tsearch-tests: Likewise.
7734         * modules/unistd-tests: Likewise.
7735         * modules/wchar-tests: Likewise.
7736         * modules/wctype-tests: Likewise.
7738         tests: fix license on several tests
7739         * tests/test-des.c: Update to GPLv3+.
7740         * tests/test-flock.c: Likewise.
7741         * tests/test-fsync.c: Likewise.
7742         * tests/test-futimens.h: Likewise.
7743         * tests/test-gc-arcfour.c: Likewise.
7744         * tests/test-gc-arctwo.c: Likewise.
7745         * tests/test-gc-des.c: Likewise.
7746         * tests/test-gc-hmac-md5.c: Likewise.
7747         * tests/test-gc-hmac-sha1.c: Likewise.
7748         * tests/test-gc-md2.c: Likewise.
7749         * tests/test-gc-md4.c: Likewise.
7750         * tests/test-gc-md5.c: Likewise.
7751         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7752         * tests/test-gc-rijndael.c: Likewise.
7753         * tests/test-gc-sha1.c: Likewise.
7754         * tests/test-gc.c: Likewise.
7755         * tests/test-getcwd.c: Likewise.
7756         * tests/test-link.c: Likewise.
7757         * tests/test-link.h: Likewise.
7758         * tests/test-lutimens.h: Likewise.
7759         * tests/test-md2.c: Likewise.
7760         * tests/test-md4.c: Likewise.
7761         * tests/test-mkdir.h: Likewise.
7762         * tests/test-rename.c: Likewise.
7763         * tests/test-rename.h: Likewise.
7764         * tests/test-safe-alloc.c: Likewise.
7765         * tests/test-utimens-common.h: Likewise.
7766         * tests/test-utimens.h: Likewise.
7768         maint: sync license texts
7769         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
7770         * doc/gpl-3.0.texi: Revert copyright year update.
7771         * doc/lgpl-3.0.texi: Likewise.
7773 2009-12-29  Jim Meyering  <meyering@redhat.com>
7775         update nearly all FSF copyright year lists to include 2009
7776         The files named by the following are exempted:
7777             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
7778               test -f "$dst" && { echo "$dst"; continue; }
7779               test -d "$dst" || continue
7780               echo "$dst"/$(basename "$src")
7781             done > exempt
7782             git ls-files tests/unictype >> exempt
7783         In the remaining files, convert to all-interval notation if
7784         - there is already at least one year interval like 2000-2003
7785         - the file is maintained by me
7786         - the file is in lib/uni*/, where that style already prevails
7787         Otherwise, use update-copyright's default.
7789 2009-12-29  Simon Josefsson  <simon@josefsson.org>
7790         and Eric Blake  <ebb9@byu.net>
7792         tests: don't require debug system() to pass
7793         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
7794         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7795         * tests/test-unlink.h (test_unlink_func): Likewise.
7796         * tests/test-fstatat.c (main): ...into callers.
7797         * tests/test-lstat.c (main): Likewise.
7798         * tests/test-rmdir.c (main): Likewise.
7799         * tests/test-unlink.c (main): Likewise.
7800         * tests/test-unlinkat.c (main): Likewise.
7801         * tests/test-areadlink-with-size.c (main): Don't require a
7802         debug-only system call to pass, aiding cross-testing to mingw.
7803         * tests/test-areadlink.c (main): Likewise.
7804         * tests/test-areadlinkat-with-size.c (main): Likewise.
7805         * tests/test-areadlinkat.c (main): Likewise.
7806         * tests/test-canonicalize-lgpl.c (main): Likewise.
7807         * tests/test-canonicalize.c (main): Likewise.
7808         * tests/test-chown.c (main): Likewise.
7809         * tests/test-fchownat.c (main): Likewise.
7810         * tests/test-lchown.c (main): Likewise.
7811         * tests/test-fdutimensat.c (main): Likewise.
7812         * tests/test-futimens.c (main): Likewise.
7813         * tests/test-link.c (main): Likewise.
7814         * tests/test-linkat.c (main): Likewise.
7815         * tests/test-mkdir.c (main): Likewise.
7816         * tests/test-mkdirat.c (main): Likewise.
7817         * tests/test-mkfifo.c (main): Likewise.
7818         * tests/test-mkfifoat.c (main): Likewise.
7819         * tests/test-mknod.c (main): Likewise.
7820         * tests/test-readlink.c (main): Likewise.
7821         * tests/test-remove.c (main): Likewise.
7822         * tests/test-rename.c (main): Likewise.
7823         * tests/test-renameat.c (main): Likewise.
7824         * tests/test-symlink.c (main): Likewise.
7825         * tests/test-symlinkat.c (main): Likewise.
7826         * tests/test-utimens.c (main): Likewise.
7827         * tests/test-utimensat.c (main): Likewise.
7829 2009-12-29  Simon Josefsson  <simon@josefsson.org>
7831         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
7832         on $(UNUSED_PARAMETER_H) to avoid build failure.
7834 2009-12-28  Jim Meyering  <meyering@redhat.com>
7836         update-copyright: you may specify a max. line length other than 72
7837         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7839         maint: use consistent FSF copyright line syntax
7840         * lib/posixtm.c: Add missing comma in FSF copyright line.
7841         * lib/posixtm.h: Likewise.
7842         * lib/getugroups.c: Add missing ", Inc.".
7844         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
7845         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
7846         FSF copyright line.  Remove trailing blanks.
7848 2009-12-28  Eric Blake  <ebb9@byu.net>
7850         test-dup2: reduce dependencies
7851         * modules/cloexec (Configure.ac): Set witness.
7852         * modules/dup2-tests (Depends-on): Drop cloexec.
7853         * tests/test-dup2.c (main): Skip portion of test if cloexec module
7854         not present.
7855         Suggested by Bruno Haible.
7857 2009-12-26  Bruno Haible  <bruno@clisp.org>
7859         Remove an unneeded dependency.
7860         * modules/fseterr (Depends-on): Remove dup2.
7862 2009-12-26  Eric Blake  <ebb9@byu.net>
7864         tests: use macros.h in more places
7865         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
7866         (ASSERT_STREAM): Provide default of stderr.
7867         * tests/test-dirent-safer.c: Include macros.h, using alternate
7868         stream for assertions.
7869         * tests/test-dup-safer.c: Likewise.
7870         * tests/test-freopen-safer.c: Likewise.
7871         * tests/test-getopt.c: Likewise.
7872         * tests/test-openat-safer.c: Likewise.
7873         * tests/test-pipe.c: Likewise.
7874         * tests/test-popen-safer.c: Likewise.
7875         * modules/dirent-safer-tests (Files): Include macros.h.
7876         * modules/unistd-safer-tests (Files): Likewise.
7877         * modules/freopen-safer-tests (Files): Likewise.
7878         * modules/getopt-posix-tests (Files): Likewise.
7879         * modules/openat-safer-tests (Files): Likewise.
7880         * modules/pipe-tests (Files): Likewise.
7882 2009-12-26  Bruno Haible  <bruno@clisp.org>
7884         javacomp: Portability fix.
7885         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
7886         that it also works on Solaris.
7888 2009-12-26  Bruno Haible  <bruno@clisp.org>
7890         localename: Fix storage allocation of gl_locale_name_thread's result.
7891         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
7892         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
7893         all platforms that have 'uselocale'.
7894         (gl_locale_name_thread_unsafe): New function, extracted from
7895         gl_locale_name_thread.
7896         (gl_locale_name_thread): Call struniq on all platforms that have
7897         'uselocale'.
7898         * tests/test-localename.c (test_locale_name_thread): Check that the
7899         resulting strings are permanently allocated.
7900         * modules/localename-tests (Depends-on): Add strdup.
7902 2009-12-26  Bruno Haible  <bruno@clisp.org>
7904         * tests/test-localename.c (categories): Fill in the strings.
7906 2009-12-26  Jim Meyering  <meyering@redhat.com>
7908         isdir: complete the removal of m4/isdir.m4
7909         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
7911         isdir: clean up, since at least grep still uses it
7912         * lib/isdir.c: Include "isdir.h".
7913         (S_ISDIR): Remove now-unneeded definition.
7914         * modules/isdir (Files): Add lib/isdir.h.
7915         * lib/isdir.h: New file, with declaration.
7916         * m4/isdir.m4: Remove file -- unneeded.
7918 2009-12-25  Bruno Haible  <bruno@clisp.org>
7920         selinux-h: Make generated .h files standalone.
7921         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
7922         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
7923         * lib/se-selinux.in.h: Likewise.
7924         * modules/selinux-h (Depends-on): Add unused-parameter.
7925         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
7926         selinux/selinux.h and selinux/context.h.
7927         Suggested by Eric Blake.
7929 2009-12-25  Bruno Haible  <bruno@clisp.org>
7931         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
7932         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
7933         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
7934         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
7935         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
7937 2009-12-24  Bruno Haible  <bruno@clisp.org>
7939         openat: Fix warning.
7940         * lib/openat-proc.c: Include <unistd.h>.
7942 2009-12-24  Bruno Haible  <bruno@clisp.org>
7944         New module 'unused-parameter'.
7945         * build-aux/unused-parameter.h: New file, extracted from earlier
7946         gnulib-common.m4.
7947         * modules/unused-parameter: New file.
7948         * lib/unistr.h: Include unused-parameter.h.
7949         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
7950         _GL_UNUSED.
7951         * modules/unistr/base (Depends-on): Add unused-parameter.
7953 2009-12-24  Bruno Haible  <bruno@clisp.org>
7955         Add missing dependencies to 'extensions' module.
7956         * m4/extensions.m4: Add comment.
7957         * modules/accept4 (Depends-on): Add extensions.
7958         * modules/dup3 (Depends-on): Likewise.
7959         * modules/fcntl (Depends-on): Likewise.
7960         * modules/futimens (Depends-on): Likewise.
7961         * modules/mknod (Depends-on): Likewise.
7962         * modules/pipe2 (Depends-on): Likewise.
7963         * modules/stat-time (Depends-on): Likewise.
7964         * modules/strcasestr-simple (Depends-on): Likewise.
7965         * modules/strsignal (Depends-on): Likewise.
7966         * modules/utimensat (Depends-on): Likewise.
7967         * modules/localcharset (Depends-on): Likewise. Needed because of
7968         gl_FCNTL_O_FLAGS.
7969         * modules/wcrtomb (Depends-on): Likewise. Needed because of
7970         AC_TYPE_MBSTATE_T.
7971         * modules/wcsnrtombs (Depends-on): Likewise.
7972         * modules/wcsrtombs (Depends-on): Likewise.
7974 2009-12-24  Bruno Haible  <bruno@clisp.org>
7976         binary-io: Avoid gcc warning due to SET_BINARY.
7977         * lib/binary-io.h (SET_BINARY): Cast the result to void.
7978         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
7980 2009-12-24  Bruno Haible  <bruno@clisp.org>
7982         Avoid future namespace pollution on glibc systems.
7983         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
7984         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
7985         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
7986         glibc systems.
7988 2009-12-24  Bruno Haible  <bruno@clisp.org>
7990         Refactor common macros used in tests.
7991         * tests/macros.h: New file.
7992         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
7993         and/or <stdlib.h>, if appropriate.
7994         (ASSERT, SIZEOF): Remove macros.
7995         * tests/test-areadlink-with-size.c: Likewise.
7996         * tests/test-areadlinkat.c: Likewise.
7997         * tests/test-areadlinkat-with-size.c: Likewise.
7998         * tests/test-argmatch.c: Likewise.
7999         * tests/test-argv-iter.c: Likewise.
8000         * tests/test-array-mergesort.c: Likewise.
8001         * tests/test-array_list.c: Likewise.
8002         * tests/test-array_oset.c: Likewise.
8003         * tests/test-avltree_list.c: Likewise.
8004         * tests/test-avltree_oset.c: Likewise.
8005         * tests/test-avltreehash_list.c: Likewise.
8006         * tests/test-base64.c: Likewise.
8007         * tests/test-binary-io.c: Likewise.
8008         * tests/test-bitrotate.c: Likewise.
8009         * tests/test-btowc.c: Likewise.
8010         * tests/test-byteswap.c: Likewise.
8011         * tests/test-c-ctype.c: Likewise.
8012         * tests/test-c-stack.c: Likewise.
8013         * tests/test-c-strcasecmp.c: Likewise.
8014         * tests/test-c-strcasestr.c: Likewise.
8015         * tests/test-c-strncasecmp.c: Likewise.
8016         * tests/test-c-strstr.c: Likewise.
8017         * tests/test-canonicalize-lgpl.c: Likewise.
8018         * tests/test-canonicalize.c: Likewise.
8019         * tests/test-carray_list.c: Likewise.
8020         * tests/test-ceilf1.c: Likewise.
8021         * tests/test-ceilf2.c: Likewise.
8022         * tests/test-ceill.c: Likewise.
8023         * tests/test-chown.c: Likewise.
8024         * tests/test-cloexec.c: Likewise.
8025         * tests/test-copy-acl.c: Likewise.
8026         * tests/test-copy-file.c: Likewise.
8027         * tests/test-count-one-bits.c: Likewise.
8028         * tests/test-dprintf-posix.c: Likewise.
8029         * tests/test-dup2.c: Likewise.
8030         * tests/test-dup3.c: Likewise.
8031         * tests/test-duplocale.c: Likewise.
8032         * tests/test-fbufmode.c: Likewise.
8033         * tests/test-fchdir.c: Likewise.
8034         * tests/test-fchownat.c: Likewise.
8035         * tests/test-fcntl-safer.c: Likewise.
8036         * tests/test-fcntl.c: Likewise.
8037         * tests/test-fdopendir.c: Likewise.
8038         * tests/test-fdutimensat.c: Likewise.
8039         * tests/test-fflush2.c: Likewise.
8040         * tests/test-file-has-acl.c: Likewise.
8041         * tests/test-filevercmp.c: Likewise.
8042         * tests/test-flock.c: Likewise.
8043         * tests/test-floorf1.c: Likewise.
8044         * tests/test-floorf2.c: Likewise.
8045         * tests/test-floorl.c: Likewise.
8046         * tests/test-fnmatch.c: Likewise.
8047         * tests/test-fopen.h: Likewise.
8048         * tests/test-fpending.c: Likewise.
8049         * tests/test-fprintf-posix.c: Likewise.
8050         * tests/test-fpurge.c: Likewise.
8051         * tests/test-freadable.c: Likewise.
8052         * tests/test-freadahead.c: Likewise.
8053         * tests/test-freading.c: Likewise.
8054         * tests/test-freadptr.c: Likewise.
8055         * tests/test-freadptr2.c: Likewise.
8056         * tests/test-freadseek.c: Likewise.
8057         * tests/test-freopen.c: Likewise.
8058         * tests/test-frexp.c: Likewise.
8059         * tests/test-frexpl.c: Likewise.
8060         * tests/test-fseek.c: Likewise.
8061         * tests/test-fseeko.c: Likewise.
8062         * tests/test-fstatat.c: Likewise.
8063         * tests/test-fstrcmp.c: Likewise.
8064         * tests/test-fsync.c: Likewise.
8065         * tests/test-ftell.c: Likewise.
8066         * tests/test-ftello.c: Likewise.
8067         * tests/test-func.c: Likewise.
8068         * tests/test-futimens.c: Likewise.
8069         * tests/test-fwritable.c: Likewise.
8070         * tests/test-fwriting.c: Likewise.
8071         * tests/test-getcwd.c: Likewise.
8072         * tests/test-getdate.c: Likewise.
8073         * tests/test-getdelim.c: Likewise.
8074         * tests/test-getdtablesize.c: Likewise.
8075         * tests/test-getgroups.c: Likewise.
8076         * tests/test-getline.c: Likewise.
8077         * tests/test-getndelim2.c: Likewise.
8078         * tests/test-glob.c: Likewise.
8079         * tests/test-hash.c: Likewise.
8080         * tests/test-i-ring.c: Likewise.
8081         * tests/test-iconv-utf.c: Likewise.
8082         * tests/test-iconv.c: Likewise.
8083         * tests/test-idpriv-drop.c: Likewise.
8084         * tests/test-idpriv-droptemp.c: Likewise.
8085         * tests/test-inet_ntop.c: Likewise.
8086         * tests/test-inet_pton.c: Likewise.
8087         * tests/test-isblank.c: Likewise.
8088         * tests/test-isfinite.c: Likewise.
8089         * tests/test-isinf.c: Likewise.
8090         * tests/test-isnan.c: Likewise.
8091         * tests/test-isnand.h: Likewise.
8092         * tests/test-isnanf.h: Likewise.
8093         * tests/test-isnanl.h: Likewise.
8094         * tests/test-lchown.c: Likewise.
8095         * tests/test-ldexpl.c: Likewise.
8096         * tests/test-link.c: Likewise.
8097         * tests/test-linkat.c: Likewise.
8098         * tests/test-linked_list.c: Likewise.
8099         * tests/test-linkedhash_list.c: Likewise.
8100         * tests/test-localename.c: Likewise.
8101         * tests/test-lseek.c: Likewise.
8102         * tests/test-lstat.c: Likewise.
8103         * tests/test-mbmemcasecmp.c: Likewise.
8104         * tests/test-mbmemcasecoll.c: Likewise.
8105         * tests/test-mbrtowc.c: Likewise.
8106         * tests/test-mbscasecmp.c: Likewise.
8107         * tests/test-mbscasestr1.c: Likewise.
8108         * tests/test-mbscasestr2.c: Likewise.
8109         * tests/test-mbscasestr3.c: Likewise.
8110         * tests/test-mbscasestr4.c: Likewise.
8111         * tests/test-mbschr.c: Likewise.
8112         * tests/test-mbscspn.c: Likewise.
8113         * tests/test-mbsinit.c: Likewise.
8114         * tests/test-mbsncasecmp.c: Likewise.
8115         * tests/test-mbsnrtowcs.c: Likewise.
8116         * tests/test-mbspbrk.c: Likewise.
8117         * tests/test-mbspcasecmp.c: Likewise.
8118         * tests/test-mbsrchr.c: Likewise.
8119         * tests/test-mbsrtowcs.c: Likewise.
8120         * tests/test-mbsspn.c: Likewise.
8121         * tests/test-mbsstr1.c: Likewise.
8122         * tests/test-mbsstr2.c: Likewise.
8123         * tests/test-mbsstr3.c: Likewise.
8124         * tests/test-memchr.c: Likewise.
8125         * tests/test-memchr2.c: Likewise.
8126         * tests/test-memcmp.c: Likewise.
8127         * tests/test-memmem.c: Likewise.
8128         * tests/test-memrchr.c: Likewise.
8129         * tests/test-mkdir.c: Likewise.
8130         * tests/test-mkdirat.c: Likewise.
8131         * tests/test-mkfifo.c: Likewise.
8132         * tests/test-mkfifoat.c: Likewise.
8133         * tests/test-mknod.c: Likewise.
8134         * tests/test-nanosleep.c: Likewise.
8135         * tests/test-nl_langinfo.c: Likewise.
8136         * tests/test-obstack-printf.c: Likewise.
8137         * tests/test-open.c: Likewise.
8138         * tests/test-openat.c: Likewise.
8139         * tests/test-pipe-filter-gi1.c: Likewise.
8140         * tests/test-pipe-filter-gi2-main.c: Likewise.
8141         * tests/test-pipe-filter-ii1.c: Likewise.
8142         * tests/test-pipe-filter-ii2-main.c: Likewise.
8143         * tests/test-pipe2.c: Likewise.
8144         * tests/test-popen.h: Likewise.
8145         * tests/test-posixtm.c: Likewise.
8146         * tests/test-pread.c: Likewise.
8147         * tests/test-printf-frexp.c: Likewise.
8148         * tests/test-printf-frexpl.c: Likewise.
8149         * tests/test-printf-posix.c: Likewise.
8150         * tests/test-priv-set.c: Likewise.
8151         * tests/test-quotearg.c: Likewise.
8152         * tests/test-random_r.c: Likewise.
8153         * tests/test-rawmemchr.c: Likewise.
8154         * tests/test-rbtree_list.c: Likewise.
8155         * tests/test-rbtree_oset.c: Likewise.
8156         * tests/test-rbtreehash_list.c: Likewise.
8157         * tests/test-readlink.c: Likewise.
8158         * tests/test-remove.c: Likewise.
8159         * tests/test-rename.c: Likewise.
8160         * tests/test-renameat.c: Likewise.
8161         * tests/test-rmdir.c: Likewise.
8162         * tests/test-round1.c: Likewise.
8163         * tests/test-roundf1.c: Likewise.
8164         * tests/test-roundl.c: Likewise.
8165         * tests/test-safe-alloc.c: Likewise.
8166         * tests/test-sameacls.c: Likewise.
8167         * tests/test-set-mode-acl.c: Likewise.
8168         * tests/test-setenv.c: Likewise.
8169         * tests/test-sigaction.c: Likewise.
8170         * tests/test-signbit.c: Likewise.
8171         * tests/test-sleep.c: Likewise.
8172         * tests/test-snprintf-posix.c: Likewise.
8173         * tests/test-snprintf.c: Likewise.
8174         * tests/test-sprintf-posix.c: Likewise.
8175         * tests/test-stat-time.c: Likewise.
8176         * tests/test-stat.c: Likewise.
8177         * tests/test-strcasestr.c: Likewise.
8178         * tests/test-strchrnul.c: Likewise.
8179         * tests/test-strerror.c: Likewise.
8180         * tests/test-striconv.c: Likewise.
8181         * tests/test-striconveh.c: Likewise.
8182         * tests/test-striconveha.c: Likewise.
8183         * tests/test-strsignal.c: Likewise.
8184         * tests/test-strstr.c: Likewise.
8185         * tests/test-strtod.c: Likewise.
8186         * tests/test-strverscmp.c: Likewise.
8187         * tests/test-symlink.c: Likewise.
8188         * tests/test-symlinkat.c: Likewise.
8189         * tests/test-trunc1.c: Likewise.
8190         * tests/test-trunc2.c: Likewise.
8191         * tests/test-truncf1.c: Likewise.
8192         * tests/test-truncf2.c: Likewise.
8193         * tests/test-truncl.c: Likewise.
8194         * tests/test-uname.c: Likewise.
8195         * tests/test-unlink.c: Likewise.
8196         * tests/test-unlinkat.c: Likewise.
8197         * tests/test-unsetenv.c: Likewise.
8198         * tests/test-usleep.c: Likewise.
8199         * tests/test-utimens.c: Likewise.
8200         * tests/test-utimensat.c: Likewise.
8201         * tests/test-vasnprintf-posix.c: Likewise.
8202         * tests/test-vasnprintf-posix2.c: Likewise.
8203         * tests/test-vasnprintf.c: Likewise.
8204         * tests/test-vasprintf-posix.c: Likewise.
8205         * tests/test-vasprintf.c: Likewise.
8206         * tests/test-vdprintf-posix.c: Likewise.
8207         * tests/test-vfprintf-posix.c: Likewise.
8208         * tests/test-vprintf-posix.c: Likewise.
8209         * tests/test-vsnprintf-posix.c: Likewise.
8210         * tests/test-vsnprintf.c: Likewise.
8211         * tests/test-vsprintf-posix.c: Likewise.
8212         * tests/test-wcrtomb.c: Likewise.
8213         * tests/test-wcsnrtombs.c: Likewise.
8214         * tests/test-wcsrtombs.c: Likewise.
8215         * tests/test-wctype.c: Likewise.
8216         * tests/test-wcwidth.c: Likewise.
8217         * tests/test-xfprintf-posix.c: Likewise.
8218         * tests/test-xmemdup0.c: Likewise.
8219         * tests/test-xprintf-posix.c: Likewise.
8220         * tests/test-xvasprintf.c: Likewise.
8221         * tests/unicase/test-locale-language.c: Likewise.
8222         * tests/unicase/test-mapping-part1.h: Likewise.
8223         * tests/unicase/test-predicate-part1.h: Likewise.
8224         * tests/unicase/test-u8-casecmp.c: Likewise.
8225         * tests/unicase/test-u8-casecoll.c: Likewise.
8226         * tests/unicase/test-u8-casefold.c: Likewise.
8227         * tests/unicase/test-u8-is-cased.c: Likewise.
8228         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8229         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8230         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8231         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8232         * tests/unicase/test-u8-tolower.c: Likewise.
8233         * tests/unicase/test-u8-totitle.c: Likewise.
8234         * tests/unicase/test-u8-toupper.c: Likewise.
8235         * tests/unicase/test-u16-casecmp.c: Likewise.
8236         * tests/unicase/test-u16-casecoll.c: Likewise.
8237         * tests/unicase/test-u16-casefold.c: Likewise.
8238         * tests/unicase/test-u16-is-cased.c: Likewise.
8239         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8240         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8241         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8242         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8243         * tests/unicase/test-u16-tolower.c: Likewise.
8244         * tests/unicase/test-u16-totitle.c: Likewise.
8245         * tests/unicase/test-u16-toupper.c: Likewise.
8246         * tests/unicase/test-u32-casecmp.c: Likewise.
8247         * tests/unicase/test-u32-casecoll.c: Likewise.
8248         * tests/unicase/test-u32-casefold.c: Likewise.
8249         * tests/unicase/test-u32-is-cased.c: Likewise.
8250         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8251         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8252         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8253         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8254         * tests/unicase/test-u32-tolower.c: Likewise.
8255         * tests/unicase/test-u32-totitle.c: Likewise.
8256         * tests/unicase/test-u32-toupper.c: Likewise.
8257         * tests/unicase/test-ulc-casecmp.c: Likewise.
8258         * tests/unicase/test-ulc-casecoll.c: Likewise.
8259         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8260         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8261         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8262         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8263         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8264         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8265         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8266         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8267         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8268         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8269         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8270         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8271         * tests/unictype/test-bidi_byname.c: Likewise.
8272         * tests/unictype/test-bidi_name.c: Likewise.
8273         * tests/unictype/test-bidi_of.c: Likewise.
8274         * tests/unictype/test-bidi_test.c: Likewise.
8275         * tests/unictype/test-block_list.c: Likewise.
8276         * tests/unictype/test-block_of.c: Likewise.
8277         * tests/unictype/test-block_test.c: Likewise.
8278         * tests/unictype/test-categ_and.c: Likewise.
8279         * tests/unictype/test-categ_and_not.c: Likewise.
8280         * tests/unictype/test-categ_byname.c: Likewise.
8281         * tests/unictype/test-categ_name.c: Likewise.
8282         * tests/unictype/test-categ_none.c: Likewise.
8283         * tests/unictype/test-categ_of.c: Likewise.
8284         * tests/unictype/test-categ_or.c: Likewise.
8285         * tests/unictype/test-categ_test_withtable.c: Likewise.
8286         * tests/unictype/test-combining.c: Likewise.
8287         * tests/unictype/test-decdigit.c: Likewise.
8288         * tests/unictype/test-digit.c: Likewise.
8289         * tests/unictype/test-mirror.c: Likewise.
8290         * tests/unictype/test-numeric.c: Likewise.
8291         * tests/unictype/test-pr_byname.c: Likewise.
8292         * tests/unictype/test-pr_test.c: Likewise.
8293         * tests/unictype/test-predicate-part1.h: Likewise.
8294         * tests/unictype/test-scripts.c: Likewise.
8295         * tests/unictype/test-sy_c_ident.c: Likewise.
8296         * tests/unictype/test-sy_java_ident.c: Likewise.
8297         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8298         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8299         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8300         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8301         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8302         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8303         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8304         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
8305         * tests/uninorm/test-canonical-decomposition.c: Likewise.
8306         * tests/uninorm/test-compat-decomposition.c: Likewise.
8307         * tests/uninorm/test-composition.c: Likewise.
8308         * tests/uninorm/test-decomposing-form.c: Likewise.
8309         * tests/uninorm/test-decomposition.c: Likewise.
8310         * tests/uninorm/test-u8-nfc.c: Likewise.
8311         * tests/uninorm/test-u8-nfd.c: Likewise.
8312         * tests/uninorm/test-u8-nfkc.c: Likewise.
8313         * tests/uninorm/test-u8-nfkd.c: Likewise.
8314         * tests/uninorm/test-u8-normcmp.c: Likewise.
8315         * tests/uninorm/test-u8-normcoll.c: Likewise.
8316         * tests/uninorm/test-u16-nfc.c: Likewise.
8317         * tests/uninorm/test-u16-nfd.c: Likewise.
8318         * tests/uninorm/test-u16-nfkc.c: Likewise.
8319         * tests/uninorm/test-u16-nfkd.c: Likewise.
8320         * tests/uninorm/test-u16-normcmp.c: Likewise.
8321         * tests/uninorm/test-u16-normcoll.c: Likewise.
8322         * tests/uninorm/test-u32-nfc.c: Likewise.
8323         * tests/uninorm/test-u32-nfd.c: Likewise.
8324         * tests/uninorm/test-u32-nfkc.c: Likewise.
8325         * tests/uninorm/test-u32-nfkd.c: Likewise.
8326         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8327         * tests/uninorm/test-u32-normcmp.c: Likewise.
8328         * tests/uninorm/test-u32-normcoll.c: Likewise.
8329         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
8330         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8331         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8332         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8333         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8334         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8335         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8336         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8337         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8338         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8339         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8340         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8341         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8342         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8343         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8344         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8345         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8346         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8347         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8348         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8349         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8350         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8351         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8352         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8353         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8354         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8355         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8356         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8357         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8358         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
8359         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
8360         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
8361         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
8362         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8363         * tests/uniwidth/test-u8-width.c: Likewise.
8364         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8365         * tests/uniwidth/test-u16-width.c: Likewise.
8366         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8367         * tests/uniwidth/test-u32-width.c: Likewise.
8368         * tests/uniwidth/test-uc_width.c: Likewise.
8369         * tests/uniwidth/test-uc_width2.c: Likewise.
8370         * modules/acl-tests (Files): Add tests/macros.h.
8371         * modules/areadlink-tests (Files): Likewise.
8372         * modules/areadlink-with-size-tests (Files): Likewise.
8373         * modules/areadlinkat-tests (Files): Likewise.
8374         * modules/areadlinkat-with-size-tests (Files): Likewise.
8375         * modules/argmatch-tests (Files): Likewise.
8376         * modules/argv-iter-tests (Files): Likewise.
8377         * modules/array-list-tests (Files): Likewise.
8378         * modules/array-mergesort-tests (Files): Likewise.
8379         * modules/array-oset-tests (Files): Likewise.
8380         * modules/avltree-list-tests (Files): Likewise.
8381         * modules/avltree-oset-tests (Files): Likewise.
8382         * modules/avltreehash-list-tests (Files): Likewise.
8383         * modules/base64-tests (Files): Likewise.
8384         * modules/binary-io-tests (Files): Likewise.
8385         * modules/bitrotate-tests (Files): Likewise.
8386         * modules/btowc-tests (Files): Likewise.
8387         * modules/byteswap-tests (Files): Likewise.
8388         * modules/c-ctype-tests (Files): Likewise.
8389         * modules/c-stack-tests (Files): Likewise.
8390         * modules/c-strcase-tests (Files): Likewise.
8391         * modules/c-strcasestr-tests (Files): Likewise.
8392         * modules/c-strstr-tests (Files): Likewise.
8393         * modules/canonicalize-lgpl-tests (Files): Likewise.
8394         * modules/canonicalize-tests (Files): Likewise.
8395         * modules/carray-list-tests (Files): Likewise.
8396         * modules/ceilf-tests (Files): Likewise.
8397         * modules/ceill-tests (Files): Likewise.
8398         * modules/chown-tests (Files): Likewise.
8399         * modules/cloexec-tests (Files): Likewise.
8400         * modules/copy-file-tests (Files): Likewise.
8401         * modules/count-one-bits-tests (Files): Likewise.
8402         * modules/dprintf-posix-tests (Files): Likewise.
8403         * modules/dup2-tests (Files): Likewise.
8404         * modules/dup3-tests (Files): Likewise.
8405         * modules/duplocale-tests (Files): Likewise.
8406         * modules/fbufmode-tests (Files): Likewise.
8407         * modules/fchdir-tests (Files): Likewise.
8408         * modules/fcntl-safer-tests (Files): Likewise.
8409         * modules/fcntl-tests (Files): Likewise.
8410         * modules/fdopendir-tests (Files): Likewise.
8411         * modules/fdutimensat-tests (Files): Likewise.
8412         * modules/fflush-tests (Files): Likewise.
8413         * modules/filevercmp-tests (Files): Likewise.
8414         * modules/flock-tests (Files): Likewise.
8415         * modules/floorf-tests (Files): Likewise.
8416         * modules/floorl-tests (Files): Likewise.
8417         * modules/fnmatch-tests (Files): Likewise.
8418         * modules/fopen-safer-tests (Files): Likewise.
8419         * modules/fopen-tests (Files): Likewise.
8420         * modules/fpending-tests (Files): Likewise.
8421         * modules/fprintf-posix-tests (Files): Likewise.
8422         * modules/fpurge-tests (Files): Likewise.
8423         * modules/freadable-tests (Files): Likewise.
8424         * modules/freadahead-tests (Files): Likewise.
8425         * modules/freading-tests (Files): Likewise.
8426         * modules/freadptr-tests (Files): Likewise.
8427         * modules/freadseek-tests (Files): Likewise.
8428         * modules/freopen-tests (Files): Likewise.
8429         * modules/frexp-nolibm-tests (Files): Likewise.
8430         * modules/frexp-tests (Files): Likewise.
8431         * modules/frexpl-nolibm-tests (Files): Likewise.
8432         * modules/frexpl-tests (Files): Likewise.
8433         * modules/fseek-tests (Files): Likewise.
8434         * modules/fseeko-tests (Files): Likewise.
8435         * modules/fstrcmp-tests (Files): Likewise.
8436         * modules/fsync-tests (Files): Likewise.
8437         * modules/ftell-tests (Files): Likewise.
8438         * modules/ftello-tests (Files): Likewise.
8439         * modules/func-tests (Files): Likewise.
8440         * modules/futimens-tests (Files): Likewise.
8441         * modules/fwritable-tests (Files): Likewise.
8442         * modules/fwriting-tests (Files): Likewise.
8443         * modules/getcwd-tests (Files): Likewise.
8444         * modules/getdate-tests (Files): Likewise.
8445         * modules/getdelim-tests (Files): Likewise.
8446         * modules/getdtablesize-tests (Files): Likewise.
8447         * modules/getgroups-tests (Files): Likewise.
8448         * modules/getline-tests (Files): Likewise.
8449         * modules/getndelim2-tests (Files): Likewise.
8450         * modules/glob-tests (Files): Likewise.
8451         * modules/hash-tests (Files): Likewise.
8452         * modules/i-ring-tests (Files): Likewise.
8453         * modules/iconv-tests (Files): Likewise.
8454         * modules/iconv_open-utf-tests (Files): Likewise.
8455         * modules/idpriv-drop-tests (Files): Likewise.
8456         * modules/idpriv-droptemp-tests (Files): Likewise.
8457         * modules/inet_ntop-tests (Files): Likewise.
8458         * modules/inet_pton-tests (Files): Likewise.
8459         * modules/isblank-tests (Files): Likewise.
8460         * modules/isfinite-tests (Files): Likewise.
8461         * modules/isinf-tests (Files): Likewise.
8462         * modules/isnan-tests (Files): Likewise.
8463         * modules/isnand-nolibm-tests (Files): Likewise.
8464         * modules/isnand-tests (Files): Likewise.
8465         * modules/isnanf-nolibm-tests (Files): Likewise.
8466         * modules/isnanf-tests (Files): Likewise.
8467         * modules/isnanl-nolibm-tests (Files): Likewise.
8468         * modules/isnanl-tests (Files): Likewise.
8469         * modules/lchown-tests (Files): Likewise.
8470         * modules/ldexpl-tests (Files): Likewise.
8471         * modules/link-tests (Files): Likewise.
8472         * modules/linkat-tests (Files): Likewise.
8473         * modules/linked-list-tests (Files): Likewise.
8474         * modules/linkedhash-list-tests (Files): Likewise.
8475         * modules/localename-tests (Files): Likewise.
8476         * modules/lseek-tests (Files): Likewise.
8477         * modules/lstat-tests (Files): Likewise.
8478         * modules/mbmemcasecmp-tests (Files): Likewise.
8479         * modules/mbmemcasecoll-tests (Files): Likewise.
8480         * modules/mbrtowc-tests (Files): Likewise.
8481         * modules/mbscasecmp-tests (Files): Likewise.
8482         * modules/mbscasestr-tests (Files): Likewise.
8483         * modules/mbschr-tests (Files): Likewise.
8484         * modules/mbscspn-tests (Files): Likewise.
8485         * modules/mbsinit-tests (Files): Likewise.
8486         * modules/mbsncasecmp-tests (Files): Likewise.
8487         * modules/mbsnrtowcs-tests (Files): Likewise.
8488         * modules/mbspbrk-tests (Files): Likewise.
8489         * modules/mbspcasecmp-tests (Files): Likewise.
8490         * modules/mbsrchr-tests (Files): Likewise.
8491         * modules/mbsrtowcs-tests (Files): Likewise.
8492         * modules/mbsspn-tests (Files): Likewise.
8493         * modules/mbsstr-tests (Files): Likewise.
8494         * modules/memchr-tests (Files): Likewise.
8495         * modules/memchr2-tests (Files): Likewise.
8496         * modules/memcmp-tests (Files): Likewise.
8497         * modules/memmem-tests (Files): Likewise.
8498         * modules/memrchr-tests (Files): Likewise.
8499         * modules/mkdir-tests (Files): Likewise.
8500         * modules/mkfifo-tests (Files): Likewise.
8501         * modules/mkfifoat-tests (Files): Likewise.
8502         * modules/mknod-tests (Files): Likewise.
8503         * modules/nanosleep-tests (Files): Likewise.
8504         * modules/nl_langinfo-tests (Files): Likewise.
8505         * modules/obstack-printf-tests (Files): Likewise.
8506         * modules/open-tests (Files): Likewise.
8507         * modules/openat-tests (Files): Likewise.
8508         * modules/pipe-filter-gi-tests (Files): Likewise.
8509         * modules/pipe-filter-ii-tests (Files): Likewise.
8510         * modules/pipe2-tests (Files): Likewise.
8511         * modules/popen-safer-tests (Files): Likewise.
8512         * modules/popen-tests (Files): Likewise.
8513         * modules/posixtm-tests (Files): Likewise.
8514         * modules/pread-tests (Files): Likewise.
8515         * modules/printf-frexp-tests (Files): Likewise.
8516         * modules/printf-frexpl-tests (Files): Likewise.
8517         * modules/printf-posix-tests (Files): Likewise.
8518         * modules/priv-set-tests (Files): Likewise.
8519         * modules/quotearg-tests (Files): Likewise.
8520         * modules/random_r-tests (Files): Likewise.
8521         * modules/rawmemchr-tests (Files): Likewise.
8522         * modules/rbtree-list-tests (Files): Likewise.
8523         * modules/rbtree-oset-tests (Files): Likewise.
8524         * modules/rbtreehash-list-tests (Files): Likewise.
8525         * modules/readlink-tests (Files): Likewise.
8526         * modules/remove-tests (Files): Likewise.
8527         * modules/rename-tests (Files): Likewise.
8528         * modules/renameat-tests (Files): Likewise.
8529         * modules/rmdir-tests (Files): Likewise.
8530         * modules/round-tests (Files): Likewise.
8531         * modules/roundf-tests (Files): Likewise.
8532         * modules/roundl-tests (Files): Likewise.
8533         * modules/safe-alloc-tests (Files): Likewise.
8534         * modules/setenv-tests (Files): Likewise.
8535         * modules/sigaction-tests (Files): Likewise.
8536         * modules/signbit-tests (Files): Likewise.
8537         * modules/sleep-tests (Files): Likewise.
8538         * modules/snprintf-posix-tests (Files): Likewise.
8539         * modules/snprintf-tests (Files): Likewise.
8540         * modules/sprintf-posix-tests (Files): Likewise.
8541         * modules/stat-tests (Files): Likewise.
8542         * modules/stat-time-tests (Files): Likewise.
8543         * modules/strcasestr-tests (Files): Likewise.
8544         * modules/strchrnul-tests (Files): Likewise.
8545         * modules/strerror-tests (Files): Likewise.
8546         * modules/striconv-tests (Files): Likewise.
8547         * modules/striconveh-tests (Files): Likewise.
8548         * modules/striconveha-tests (Files): Likewise.
8549         * modules/strsignal-tests (Files): Likewise.
8550         * modules/strstr-tests (Files): Likewise.
8551         * modules/strtod-tests (Files): Likewise.
8552         * modules/strverscmp-tests (Files): Likewise.
8553         * modules/symlink-tests (Files): Likewise.
8554         * modules/symlinkat-tests (Files): Likewise.
8555         * modules/trunc-tests (Files): Likewise.
8556         * modules/truncf-tests (Files): Likewise.
8557         * modules/truncl-tests (Files): Likewise.
8558         * modules/uname-tests (Files): Likewise.
8559         * modules/unicase/cased-tests (Files): Likewise.
8560         * modules/unicase/ignorable-tests (Files): Likewise.
8561         * modules/unicase/locale-language-tests (Files): Likewise.
8562         * modules/unicase/tolower-tests (Files): Likewise.
8563         * modules/unicase/totitle-tests (Files): Likewise.
8564         * modules/unicase/toupper-tests (Files): Likewise.
8565         * modules/unicase/u8-casecmp-tests (Files): Likewise.
8566         * modules/unicase/u8-casecoll-tests (Files): Likewise.
8567         * modules/unicase/u8-casefold-tests (Files): Likewise.
8568         * modules/unicase/u8-is-cased-tests (Files): Likewise.
8569         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
8570         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
8571         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
8572         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
8573         * modules/unicase/u8-tolower-tests (Files): Likewise.
8574         * modules/unicase/u8-totitle-tests (Files): Likewise.
8575         * modules/unicase/u8-toupper-tests (Files): Likewise.
8576         * modules/unicase/u16-casecmp-tests (Files): Likewise.
8577         * modules/unicase/u16-casecoll-tests (Files): Likewise.
8578         * modules/unicase/u16-casefold-tests (Files): Likewise.
8579         * modules/unicase/u16-is-cased-tests (Files): Likewise.
8580         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
8581         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
8582         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
8583         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
8584         * modules/unicase/u16-tolower-tests (Files): Likewise.
8585         * modules/unicase/u16-totitle-tests (Files): Likewise.
8586         * modules/unicase/u16-toupper-tests (Files): Likewise.
8587         * modules/unicase/u32-casecmp-tests (Files): Likewise.
8588         * modules/unicase/u32-casecoll-tests (Files): Likewise.
8589         * modules/unicase/u32-casefold-tests (Files): Likewise.
8590         * modules/unicase/u32-is-cased-tests (Files): Likewise.
8591         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
8592         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
8593         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
8594         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
8595         * modules/unicase/u32-tolower-tests (Files): Likewise.
8596         * modules/unicase/u32-totitle-tests (Files): Likewise.
8597         * modules/unicase/u32-toupper-tests (Files): Likewise.
8598         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
8599         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
8600         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
8601         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
8602         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
8603         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
8604         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
8605         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
8606         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
8607         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
8608         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
8609         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
8610         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
8611         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
8612         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
8613         * modules/unictype/bidicategory-name-tests (Files): Likewise.
8614         * modules/unictype/bidicategory-of-tests (Files): Likewise.
8615         * modules/unictype/bidicategory-test-tests (Files): Likewise.
8616         * modules/unictype/block-list-tests (Files): Likewise.
8617         * modules/unictype/block-of-tests (Files): Likewise.
8618         * modules/unictype/block-test-tests (Files): Likewise.
8619         * modules/unictype/category-C-tests (Files): Likewise.
8620         * modules/unictype/category-Cc-tests (Files): Likewise.
8621         * modules/unictype/category-Cf-tests (Files): Likewise.
8622         * modules/unictype/category-Cn-tests (Files): Likewise.
8623         * modules/unictype/category-Co-tests (Files): Likewise.
8624         * modules/unictype/category-Cs-tests (Files): Likewise.
8625         * modules/unictype/category-L-tests (Files): Likewise.
8626         * modules/unictype/category-Ll-tests (Files): Likewise.
8627         * modules/unictype/category-Lm-tests (Files): Likewise.
8628         * modules/unictype/category-Lo-tests (Files): Likewise.
8629         * modules/unictype/category-Lt-tests (Files): Likewise.
8630         * modules/unictype/category-Lu-tests (Files): Likewise.
8631         * modules/unictype/category-M-tests (Files): Likewise.
8632         * modules/unictype/category-Mc-tests (Files): Likewise.
8633         * modules/unictype/category-Me-tests (Files): Likewise.
8634         * modules/unictype/category-Mn-tests (Files): Likewise.
8635         * modules/unictype/category-N-tests (Files): Likewise.
8636         * modules/unictype/category-Nd-tests (Files): Likewise.
8637         * modules/unictype/category-Nl-tests (Files): Likewise.
8638         * modules/unictype/category-No-tests (Files): Likewise.
8639         * modules/unictype/category-P-tests (Files): Likewise.
8640         * modules/unictype/category-Pc-tests (Files): Likewise.
8641         * modules/unictype/category-Pd-tests (Files): Likewise.
8642         * modules/unictype/category-Pe-tests (Files): Likewise.
8643         * modules/unictype/category-Pf-tests (Files): Likewise.
8644         * modules/unictype/category-Pi-tests (Files): Likewise.
8645         * modules/unictype/category-Po-tests (Files): Likewise.
8646         * modules/unictype/category-Ps-tests (Files): Likewise.
8647         * modules/unictype/category-S-tests (Files): Likewise.
8648         * modules/unictype/category-Sc-tests (Files): Likewise.
8649         * modules/unictype/category-Sk-tests (Files): Likewise.
8650         * modules/unictype/category-Sm-tests (Files): Likewise.
8651         * modules/unictype/category-So-tests (Files): Likewise.
8652         * modules/unictype/category-Z-tests (Files): Likewise.
8653         * modules/unictype/category-Zl-tests (Files): Likewise.
8654         * modules/unictype/category-Zp-tests (Files): Likewise.
8655         * modules/unictype/category-Zs-tests (Files): Likewise.
8656         * modules/unictype/category-and-not-tests (Files): Likewise.
8657         * modules/unictype/category-and-tests (Files): Likewise.
8658         * modules/unictype/category-byname-tests (Files): Likewise.
8659         * modules/unictype/category-name-tests (Files): Likewise.
8660         * modules/unictype/category-none-tests (Files): Likewise.
8661         * modules/unictype/category-of-tests (Files): Likewise.
8662         * modules/unictype/category-or-tests (Files): Likewise.
8663         * modules/unictype/category-test-withtable-tests (Files): Likewise.
8664         * modules/unictype/combining-class-tests (Files): Likewise.
8665         * modules/unictype/ctype-alnum-tests (Files): Likewise.
8666         * modules/unictype/ctype-alpha-tests (Files): Likewise.
8667         * modules/unictype/ctype-blank-tests (Files): Likewise.
8668         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
8669         * modules/unictype/ctype-digit-tests (Files): Likewise.
8670         * modules/unictype/ctype-graph-tests (Files): Likewise.
8671         * modules/unictype/ctype-lower-tests (Files): Likewise.
8672         * modules/unictype/ctype-print-tests (Files): Likewise.
8673         * modules/unictype/ctype-punct-tests (Files): Likewise.
8674         * modules/unictype/ctype-space-tests (Files): Likewise.
8675         * modules/unictype/ctype-upper-tests (Files): Likewise.
8676         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
8677         * modules/unictype/decimal-digit-tests (Files): Likewise.
8678         * modules/unictype/digit-tests (Files): Likewise.
8679         * modules/unictype/mirror-tests (Files): Likewise.
8680         * modules/unictype/numeric-tests (Files): Likewise.
8681         * modules/unictype/property-alphabetic-tests (Files): Likewise.
8682         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
8683         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
8684         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
8685         Likewise.
8686         * modules/unictype/property-bidi-block-separator-tests (Files):
8687         Likewise.
8688         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
8689         Likewise.
8690         * modules/unictype/property-bidi-common-separator-tests (Files):
8691         Likewise.
8692         * modules/unictype/property-bidi-control-tests (Files): Likewise.
8693         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
8694         Likewise.
8695         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
8696         Likewise.
8697         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
8698         Likewise.
8699         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
8700         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
8701         Likewise.
8702         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
8703         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
8704         Likewise.
8705         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
8706         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
8707         * modules/unictype/property-bidi-segment-separator-tests (Files):
8708         Likewise.
8709         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
8710         * modules/unictype/property-byname-tests (Files): Likewise.
8711         * modules/unictype/property-combining-tests (Files): Likewise.
8712         * modules/unictype/property-composite-tests (Files): Likewise.
8713         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
8714         * modules/unictype/property-dash-tests (Files): Likewise.
8715         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
8716         * modules/unictype/property-default-ignorable-code-point-tests (Files):
8717         Likewise.
8718         * modules/unictype/property-deprecated-tests (Files): Likewise.
8719         * modules/unictype/property-diacritic-tests (Files): Likewise.
8720         * modules/unictype/property-extender-tests (Files): Likewise.
8721         * modules/unictype/property-format-control-tests (Files): Likewise.
8722         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
8723         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
8724         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
8725         * modules/unictype/property-hex-digit-tests (Files): Likewise.
8726         * modules/unictype/property-hyphen-tests (Files): Likewise.
8727         * modules/unictype/property-id-continue-tests (Files): Likewise.
8728         * modules/unictype/property-id-start-tests (Files): Likewise.
8729         * modules/unictype/property-ideographic-tests (Files): Likewise.
8730         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
8731         * modules/unictype/property-ids-trinary-operator-tests (Files):
8732         Likewise.
8733         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
8734         * modules/unictype/property-iso-control-tests (Files): Likewise.
8735         * modules/unictype/property-join-control-tests (Files): Likewise.
8736         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
8737         * modules/unictype/property-line-separator-tests (Files): Likewise.
8738         * modules/unictype/property-logical-order-exception-tests (Files):
8739         Likewise.
8740         * modules/unictype/property-lowercase-tests (Files): Likewise.
8741         * modules/unictype/property-math-tests (Files): Likewise.
8742         * modules/unictype/property-non-break-tests (Files): Likewise.
8743         * modules/unictype/property-not-a-character-tests (Files): Likewise.
8744         * modules/unictype/property-numeric-tests (Files): Likewise.
8745         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
8746         * modules/unictype/property-other-default-ignorable-code-point-tests
8747         (Files): Likewise.
8748         * modules/unictype/property-other-grapheme-extend-tests (Files):
8749         Likewise.
8750         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
8751         * modules/unictype/property-other-id-start-tests (Files): Likewise.
8752         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
8753         * modules/unictype/property-other-math-tests (Files): Likewise.
8754         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
8755         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
8756         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
8757         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
8758         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
8759         * modules/unictype/property-private-use-tests (Files): Likewise.
8760         * modules/unictype/property-punctuation-tests (Files): Likewise.
8761         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
8762         * modules/unictype/property-radical-tests (Files): Likewise.
8763         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
8764         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
8765         * modules/unictype/property-space-tests (Files): Likewise.
8766         * modules/unictype/property-terminal-punctuation-tests (Files):
8767         Likewise.
8768         * modules/unictype/property-test-tests (Files): Likewise.
8769         * modules/unictype/property-titlecase-tests (Files): Likewise.
8770         * modules/unictype/property-unassigned-code-value-tests (Files):
8771         Likewise.
8772         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
8773         * modules/unictype/property-uppercase-tests (Files): Likewise.
8774         * modules/unictype/property-variation-selector-tests (Files): Likewise.
8775         * modules/unictype/property-white-space-tests (Files): Likewise.
8776         * modules/unictype/property-xid-continue-tests (Files): Likewise.
8777         * modules/unictype/property-xid-start-tests (Files): Likewise.
8778         * modules/unictype/property-zero-width-tests (Files): Likewise.
8779         * modules/unictype/scripts-tests (Files): Likewise.
8780         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
8781         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
8782         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
8783         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
8784         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
8785         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
8786         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
8787         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
8788         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
8789         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
8790         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
8791         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
8792         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
8793         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
8794         * modules/uninorm/composition-tests (Files): Likewise.
8795         * modules/uninorm/decomposing-form-tests (Files): Likewise.
8796         * modules/uninorm/decomposition-tests (Files): Likewise.
8797         * modules/uninorm/filter-tests (Files): Likewise.
8798         * modules/uninorm/nfc-tests (Files): Likewise.
8799         * modules/uninorm/nfd-tests (Files): Likewise.
8800         * modules/uninorm/nfkc-tests (Files): Likewise.
8801         * modules/uninorm/nfkd-tests (Files): Likewise.
8802         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
8803         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
8804         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
8805         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
8806         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
8807         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
8808         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
8809         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
8810         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
8811         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
8812         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
8813         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
8814         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
8815         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
8816         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
8817         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
8818         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
8819         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
8820         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
8821         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
8822         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
8823         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
8824         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
8825         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
8826         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
8827         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
8828         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
8829         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
8830         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
8831         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
8832         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
8833         * modules/uniwidth/u8-width-tests (Files): Likewise.
8834         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
8835         * modules/uniwidth/u16-width-tests (Files): Likewise.
8836         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
8837         * modules/uniwidth/u32-width-tests (Files): Likewise.
8838         * modules/uniwidth/width-tests (Files): Likewise.
8839         * modules/unlink-tests (Files): Likewise.
8840         * modules/unsetenv-tests (Files): Likewise.
8841         * modules/usleep-tests (Files): Likewise.
8842         * modules/utimens-tests (Files): Likewise.
8843         * modules/utimensat-tests (Files): Likewise.
8844         * modules/vasnprintf-posix-tests (Files): Likewise.
8845         * modules/vasnprintf-tests (Files): Likewise.
8846         * modules/vasprintf-posix-tests (Files): Likewise.
8847         * modules/vasprintf-tests (Files): Likewise.
8848         * modules/vdprintf-posix-tests (Files): Likewise.
8849         * modules/vfprintf-posix-tests (Files): Likewise.
8850         * modules/vprintf-posix-tests (Files): Likewise.
8851         * modules/vsnprintf-posix-tests (Files): Likewise.
8852         * modules/vsnprintf-tests (Files): Likewise.
8853         * modules/vsprintf-posix-tests (Files): Likewise.
8854         * modules/wcrtomb-tests (Files): Likewise.
8855         * modules/wcsnrtombs-tests (Files): Likewise.
8856         * modules/wcsrtombs-tests (Files): Likewise.
8857         * modules/wctype-tests (Files): Likewise.
8858         * modules/wcwidth-tests (Files): Likewise.
8859         * modules/xmemdup0-tests (Files): Likewise.
8860         * modules/xprintf-posix-tests (Files): Likewise.
8861         * modules/xvasprintf-tests (Files): Likewise.
8863 2009-12-24  Eric Blake  <ebb9@byu.net>
8865         test-nanosleep: fix typo
8866         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
8867         patch.
8868         Reported by Bruno Haible.
8870 2009-12-24  Bruno Haible  <bruno@clisp.org>
8872         Reduce namespace pollution on glibc systems.
8873         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
8874         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
8875         systems.
8876         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
8877         <getopt.h> on glibc systems.
8878         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
8879         systems.
8880         * lib/fcntl.c: Include <unistd.h> here instead.
8882 2009-12-24  Bruno Haible  <bruno@clisp.org>
8884         * lib/stdlib.in.h (includes): Fix typo in today's commit.
8886 2009-12-24  Eric Blake  <ebb9@byu.net>
8888         tests: add signature checks
8889         * tests/signature.h (SIGNATURE_CHECK): New file.
8890         * modules/atexit-tests (Files): Use it.
8891         * modules/btowc-tests (Files): Likewise.
8892         * modules/canonicalize-lgpl-tests (Files): Likewise.
8893         * modules/ceilf-tests (Files): Likewise.
8894         * modules/ceill-tests (Files): Likewise.
8895         * modules/chown-tests (Files): Likewise.
8896         * modules/dprintf-posix-tests (Files): Likewise.
8897         * modules/dup2-tests (Files): Likewise.
8898         * modules/dup3-tests (Files): Likewise.
8899         * modules/duplocale-tests (Files): Likewise.
8900         * modules/fchdir-tests (Files): Likewise.
8901         * modules/fcntl-tests (Files): Likewise.
8902         * modules/fdopendir-tests (Files): Likewise.
8903         * modules/fflush-tests (Files): Likewise.
8904         * modules/flock-tests (Files): Likewise.
8905         * modules/floorf-tests (Files): Likewise.
8906         * modules/floorl-tests (Files): Likewise.
8907         * modules/fnmatch-tests (Files): Likewise.
8908         * modules/fopen-tests (Files): Likewise.
8909         * modules/fprintf-posix-tests (Files): Likewise.
8910         * modules/freopen-tests (Files): Likewise.
8911         * modules/frexp-nolibm-tests (Files): Likewise.
8912         * modules/frexp-tests (Files): Likewise.
8913         * modules/frexpl-nolibm-tests (Files): Likewise.
8914         * modules/frexpl-tests (Files): Likewise.
8915         * modules/fseek-tests (Files): Likewise.
8916         * modules/fseeko-tests (Files): Likewise.
8917         * modules/fsync-tests (Files): Likewise.
8918         * modules/ftell-tests (Files): Likewise.
8919         * modules/ftello-tests (Files): Likewise.
8920         * modules/futimens-tests (Files): Likewise.
8921         * modules/getaddrinfo-tests (Files): Likewise.
8922         * modules/getcwd-tests (Files): Likewise.
8923         * modules/getdelim-tests (Files): Likewise.
8924         * modules/getdtablesize-tests (Files): Likewise.
8925         * modules/getgroups-tests (Files): Likewise.
8926         * modules/gethostname-tests (Files): Likewise.
8927         * modules/getline-tests (Files): Likewise.
8928         * modules/getopt-posix-tests (Files): Likewise.
8929         * modules/gettimeofday-tests (Files): Likewise.
8930         * modules/glob-tests (Files): Likewise.
8931         * modules/iconv-tests (Files): Likewise.
8932         * modules/inet_ntop-tests (Files): Likewise.
8933         * modules/inet_pton-tests (Files): Likewise.
8934         * modules/isblank-tests (Files): Likewise.
8935         * modules/lchown-tests (Files): Likewise.
8936         * modules/ldexpl-tests (Files): Likewise.
8937         * modules/link-tests (Files): Likewise.
8938         * modules/linkat-tests (Files): Likewise.
8939         * modules/lseek-tests (Files): Likewise.
8940         * modules/lstat-tests (Files): Likewise.
8941         * modules/mbrtowc-tests (Files): Likewise.
8942         * modules/mbsinit-tests (Files): Likewise.
8943         * modules/mbsnrtowcs-tests (Files): Likewise.
8944         * modules/mbsrtowcs-tests (Files): Likewise.
8945         * modules/memchr-tests (Files): Likewise.
8946         * modules/memcmp-tests (Files): Likewise.
8947         * modules/memmem-tests (Files): Likewise.
8948         * modules/memrchr-tests (Files): Likewise.
8949         * modules/mkdir-tests (Files): Likewise.
8950         * modules/mkfifo-tests (Files): Likewise.
8951         * modules/mkfifoat-tests (Files): Likewise.
8952         * modules/mknod-tests (Files): Likewise.
8953         * modules/nanosleep-tests (Files): Likewise.
8954         * modules/nl_langinfo-tests (Files): Likewise.
8955         * modules/obstack-printf-tests (Files): Likewise.
8956         * modules/open-tests (Files): Likewise.
8957         * modules/openat-tests (Files): Likewise.
8958         * modules/perror-tests (Files): Likewise.
8959         * modules/pipe2-tests (Files): Likewise.
8960         * modules/poll-tests (Files): Likewise.
8961         * modules/popen-tests (Files): Likewise.
8962         * modules/posix_spawn-tests (Files): Likewise.
8963         * modules/posix_spawnp-tests (Files): Likewise.
8964         * modules/pread-tests (Files): Likewise.
8965         * modules/printf-posix-tests (Files): Likewise.
8966         * modules/pty-tests (Files): Likewise.
8967         * modules/random_r-tests (Files): Likewise.
8968         * modules/rawmemchr-tests (Files): Likewise.
8969         * modules/readlink-tests (Files): Likewise.
8970         * modules/remove-tests (Files): Likewise.
8971         * modules/rename-tests (Files): Likewise.
8972         * modules/renameat-tests (Files): Likewise.
8973         * modules/rmdir-tests (Files): Likewise.
8974         * modules/round-tests (Files): Likewise.
8975         * modules/roundf-tests (Files): Likewise.
8976         * modules/roundl-tests (Files): Likewise.
8977         * modules/select-tests (Files): Likewise.
8978         * modules/setenv-tests (Files): Likewise.
8979         * modules/sigaction-tests (Files): Likewise.
8980         * modules/sleep-tests (Files): Likewise.
8981         * modules/snprintf-posix-tests (Files): Likewise.
8982         * modules/snprintf-tests (Files): Likewise.
8983         * modules/sprintf-posix-tests (Files): Likewise.
8984         * modules/stat-tests (Files): Likewise.
8985         * modules/strcasestr-tests (Files): Likewise.
8986         * modules/strchrnul-tests (Files): Likewise.
8987         * modules/strerror-tests (Files): Likewise.
8988         * modules/strsignal-tests (Files): Likewise.
8989         * modules/strstr-tests (Files): Likewise.
8990         * modules/strtod-tests (Files): Likewise.
8991         * modules/strverscmp-tests (Files): Likewise.
8992         * modules/symlink-tests (Files): Likewise.
8993         * modules/symlinkat-tests (Files): Likewise.
8994         * modules/times-tests (Files): Likewise.
8995         * modules/trunc-tests (Files): Likewise.
8996         * modules/truncf-tests (Files): Likewise.
8997         * modules/truncl-tests (Files): Likewise.
8998         * modules/tsearch-tests (Files): Likewise.
8999         * modules/uname-tests (Files): Likewise.
9000         * modules/unlink-tests (Files): Likewise.
9001         * modules/unsetenv-tests (Files): Likewise.
9002         * modules/usleep-tests (Files): Likewise.
9003         * modules/utimensat-tests (Files): Likewise.
9004         * modules/vasprintf-tests (Files): Likewise.
9005         * modules/vdprintf-posix-tests (Files): Likewise.
9006         * modules/vfprintf-posix-tests (Files): Likewise.
9007         * modules/vprintf-posix-tests (Files): Likewise.
9008         * modules/vsnprintf-posix-tests (Files): Likewise.
9009         * modules/vsnprintf-tests (Files): Likewise.
9010         * modules/vsprintf-posix-tests (Files): Likewise.
9011         * modules/wcrtomb-tests (Files): Likewise.
9012         * modules/wcsnrtombs-tests (Files): Likewise.
9013         * modules/wcsrtombs-tests (Files): Likewise.
9014         * modules/wcwidth-tests (Files): Likewise.
9015         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9016         * tests/test-isinf.c (isinf): Likewise.
9017         * tests/test-isnan.c (isnan): Likewise.
9018         * tests/test-signbit.c (signbit): Likewise.
9019         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9020         declaration, either as macro or with correct signature.
9021         (select): Ensure function under test is declared with correct
9022         signature in correct header.
9023         * tests/test-atexit.c (atexit): Likewise.
9024         * tests/test-btowc.c (btowc): Likewise.
9025         * tests/test-canonicalize-lgpl.c (realpath)
9026         (canonicalize_file_name): Likewise.
9027         * tests/test-ceilf1.c (ceilf): Likewise.
9028         * tests/test-ceill.c (ceill): Likewise.
9029         * tests/test-chown.c (chown): Likewise.
9030         * tests/test-dprintf-posix.c (dprintf): Likewise.
9031         * tests/test-dup2.c (dup2): Likewise.
9032         * tests/test-dup3.c (dup3): Likewise.
9033         * tests/test-duplocale.c (duplocale): Likewise.
9034         * tests/test-fchdir.c (fchdir): Likewise.
9035         * tests/test-fchownat.c (fchownat): Likewise.
9036         * tests/test-fcntl.c (fcntl): Likewise.
9037         * tests/test-fdopendir.c (fdopendir): Likewise.
9038         * tests/test-fflush.c (fflush): Likewise.
9039         * tests/test-flock.c (flock): Likewise.
9040         * tests/test-floorf1.c (floorf): Likewise.
9041         * tests/test-floorl.c (floorl): Likewise.
9042         * tests/test-fnmatch.c (fnmatch): Likewise.
9043         * tests/test-fopen.c (fopen): Likewise.
9044         * tests/test-fprintf-posix.c (fprintf): Likewise.
9045         * tests/test-freopen.c (freopen): Likewise.
9046         * tests/test-frexp.c (frexp): Likewise.
9047         * tests/test-frexpl.c (frexpl): Likewise.
9048         * tests/test-fseek.c (fseek): Likewise.
9049         * tests/test-fseeko.c (fseeko): Likewise.
9050         * tests/test-fstatat.c (fstatat): Likewise.
9051         * tests/test-fsync.c (fsync): Likewise.
9052         * tests/test-ftell.c (ftell): Likewise.
9053         * tests/test-ftello.c (ftello): Likewise.
9054         * tests/test-futimens.c (futimens): Likewise.
9055         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9056         (gai_strerror): Likewise.
9057         * tests/test-getcwd.c (getcwd): Likewise.
9058         * tests/test-getdelim.c (getdelim): Likewise.
9059         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9060         * tests/test-getgroups.c (getgroups): Likewise.
9061         * tests/test-gethostname.c (gethostname): Likewise.
9062         * tests/test-getline.c (getline): Likewise.
9063         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9064         Likewise.
9065         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9066         * tests/test-glob.c (glob, globfree): Likewise.
9067         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9068         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9069         * tests/test-inet_pton.c (inet_pton): Likewise.
9070         * tests/test-isblank.c (isblank): Likewise.
9071         * tests/test-lchown.c (lchown): Likewise.
9072         * tests/test-ldexpl.c (ldexpl): Likewise.
9073         * tests/test-link.c (link): Likewise.
9074         * tests/test-linkat.c (linkat): Likewise.
9075         * tests/test-lseek.c (lseek): Likewise.
9076         * tests/test-lstat.c (lstat): Likewise.
9077         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9078         * tests/test-mbsinit.c (mbsinit): Likewise.
9079         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9080         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9081         * tests/test-memchr.c (memchr): Likewise.
9082         * tests/test-memcmp.c (memcmp): Likewise.
9083         * tests/test-memmem.c (memmem): Likewise.
9084         * tests/test-memrchr.c (memrchr): Likewise.
9085         * tests/test-mkdir.c (mkdir): Likewise.
9086         * tests/test-mkdirat.c (mkdirat): Likewise.
9087         * tests/test-mkfifo.c (mkfifo): Likewise.
9088         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9089         * tests/test-mknod.c (mknod): Likewise.
9090         * tests/test-nanosleep.c (nanosleep): Likewise.
9091         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9092         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9093         Likewise.
9094         * tests/test-open.c (open): Likewise.
9095         * tests/test-openat.c (openat): Likewise.
9096         * tests/test-perror.c (perror): Likewise.
9097         * tests/test-pipe2.c (pipe2): Likewise.
9098         * tests/test-poll.c (poll): Likewise.
9099         * tests/test-popen.c (popen, pclose): Likewise.
9100         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9101         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9102         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9103         (posix_spawn_file_actions_destroy)
9104         (posix_spawn_file_actions_addclose)
9105         (posix_spawn_file_actions_addopen)
9106         (posix_spawn_file_actions_adddup2): Likewise.
9107         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9108         * tests/test-pread.c (pread): Likewise.
9109         * tests/test-printf-posix.c (printf): Likewise.
9110         * tests/test-pty.c (openpty, forkpty): Likewise.
9111         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9112         (random_r): Likewise.
9113         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9114         * tests/test-readlink.c (readlink): Likewise.
9115         * tests/test-remove.c (remove): Likewise.
9116         * tests/test-rename.c (rename): Likewise.
9117         * tests/test-renameat.c (renameat): Likewise.
9118         * tests/test-rmdir.c (rmdir): Likewise.
9119         * tests/test-round1.c (round): Likewise.
9120         * tests/test-roundf1.c (roundf): Likewise.
9121         * tests/test-roundl.c (roundl): Likewise.
9122         * tests/test-setenv.c (setenv): Likewise.
9123         * tests/test-sigaction.c (sigaction): Likewise.
9124         * tests/test-sleep.c (sleep): Likewise.
9125         * tests/test-snprintf.c (snprintf): Likewise.
9126         * tests/test-sprintf-posix.c (sprintf): Likewise.
9127         * tests/test-stat.c (stat): Likewise.
9128         * tests/test-stpncpy.c (stpncpy): Likewise.
9129         * tests/test-strcasestr.c (strcasestr): Likewise.
9130         * tests/test-strchrnul.c (strchrnul): Likewise.
9131         * tests/test-strerror.c (strerror): Likewise.
9132         * tests/test-strsignal.c (strsignal): Likewise.
9133         * tests/test-strstr.c (strstr): Likewise.
9134         * tests/test-strtod.c (strtod): Likewise.
9135         * tests/test-strverscmp.c (strverscmp): Likewise.
9136         * tests/test-symlink.c (symlink): Likewise.
9137         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9138         * tests/test-times.c (times): Likewise.
9139         * tests/test-trunc1.c (trunc): Likewise.
9140         * tests/test-truncf1.c (truncf): Likewise.
9141         * tests/test-truncl.c (truncl): Likewise.
9142         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9143         Likewise.
9144         * tests/test-uname.c (uname): Likewise.
9145         * tests/test-unlink.c (unlink): Likewise.
9146         * tests/test-unlinkat.c (unlinkat): Likewise.
9147         * tests/test-unsetenv.c (unsetenv): Likewise.
9148         * tests/test-usleep.c (usleep): Likewise.
9149         * tests/test-utimensat.c (utimensat): Likewise.
9150         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9151         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9152         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9153         * tests/test-vprintf-posix.c (vprintf): Likewise.
9154         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9155         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9156         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9157         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9158         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9159         * tests/test-wcwidth.c (wcwidth): Likewise.
9161         build: pull in conditional headers during GNULIB_POSIXCHECK
9162         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9163         definitions from any conditionally-included headers.
9164         * lib/stdlib.in.h (includes): Likewise.
9165         * lib/unistd.in.h (includes): Likewise.
9167 2009-12-24  Bruno Haible  <bruno@clisp.org>
9169         * tests/test-argv-iter.c: Include header file being tested immediately
9170         after config.h.
9171         * tests/test-base64.c: Likewise.
9172         * tests/test-flock.c: Likewise.
9173         * tests/test-fsync.c: Likewise.
9174         * tests/test-getdate.c: Likewise.
9175         * tests/test-getndelim2.c: Likewise.
9176         * tests/test-isfinite.c: Likewise.
9177         * tests/test-isinf.c: Likewise.
9178         * tests/test-strerror.c: Likewise.
9179         * tests/test-strsignal.c: Likewise.
9181 2009-12-23  Eric Blake  <ebb9@byu.net>
9183         unistd: work around cygwin bug
9184         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9185         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9186         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9188 2009-12-23  Bruno Haible  <bruno@clisp.org>
9190         localename: More tests.
9191         * tests/test-localename.c (SIZEOF): New macro.
9192         (categories): New variable.
9193         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9194         test_locale_name_default): Add test w.r.t. thread locale.
9195         (test_locale_name_thread): New function.
9196         (main): Invoke it.
9198         localename: Make aware of thread locale.
9199         * lib/localename.h (gl_locale_name_thread): New declaration.
9200         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9201         behaviour with respect to thread locale.
9202         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9203         <langinfo.h>, glthread/lock.h.
9204         (SIZE_BITS): New macro.
9205         (string_hash): New function.
9206         (struct hash_node): New type.
9207         (HASH_TABLE_SIZE): New macro.
9208         (struniq_hash_table, struniq_lock): New variables.
9209         (struniq): New function.
9210         (gl_locale_name_thread): New function.
9211         (gl_locale_name): Invoke it.
9212         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9213         * modules/localename (Depends-on): Add lock.
9214         Reported by Mike Gran <spk121@yahoo.com>.
9216 2009-12-23  Eric Blake  <ebb9@byu.net>
9218         va-args: new module
9219         * modules/va-args: New file.
9220         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9221         * MODULES.html.sh (Core language properties): Mention it.
9223         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9224         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9225         named alias for __attribute__((__unused__)).
9226         * lib/chown.c: Update client.
9227         * lib/fchmodat.c: Likewise.
9228         * lib/fts.c: Likewise.
9229         * lib/getdate.y: Likewise.
9230         * lib/getgroups.c: Likewise.
9231         * lib/getopt.c: Likewise.
9232         * lib/getugroups.c: Likewise.
9233         * lib/mkdir.c: Likewise.
9234         * lib/mkfifo.c: Likewise.
9235         * lib/mkfifoat.c: Likewise.
9236         * lib/mknod.c: Likewise.
9237         * lib/mknodat.c: Likewise.
9238         * lib/readlink.c: Likewise.
9239         * lib/se-context.in.h: Likewise.
9240         * lib/se-selinux.in.h: Likewise.
9241         * lib/sockets.c: Likewise.
9242         * lib/symlink.c: Likewise.
9243         * lib/symlinkat.c: Likewise.
9244         * lib/unicodeio.c: Likewise.
9245         * lib/unistr.h: Likewise.
9246         * tests/test-areadlink.c: Likewise.
9247         * tests/test-areadlinkat.c: Likewise.
9248         * tests/test-filenamecat.c: Likewise.
9249         * tests/test-fseeko.c: Likewise.
9250         * tests/test-ftello.c: Likewise.
9251         * tests/test-getdate.c: Likewise.
9252         * tests/test-getgroups.c: Likewise.
9253         * tests/test-gethostname.c: Likewise.
9254         * tests/test-quotearg.c: Likewise.
9255         * tests/test-version-etc.c: Likewise.
9256         * tests/test-xalloc-die.c: Likewise.
9257         * tests/test-xfprintf-posix.c: Likewise.
9258         * tests/test-xprintf-posix.c: Likewise.
9259         * tests/test-xvasprintf.c: Likewise.
9261         tests: avoid compiler warnings
9262         * tests/test-fcntl.c (main): Delete unused parameters.
9263         * tests/test-freopen-safer.c (main): Likewise.
9264         * tests/test-xalloc-die.c (main): Mark unused parameters.
9265         * tests/test-fseeko.c (main): Likewise.
9266         * tests/test-ftello.c (main): Likewise.
9267         * tests/test-nanosleep.c (main): Avoid declaration warning.
9268         * tests/test-sleep.c (main): Likewise.
9269         * tests/test-unsetenv.c (main): Silence warning about string
9270         literal.
9271         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9273 2009-12-23  Bruno Haible  <bruno@clisp.org>
9275         * tests/test-localename.c (test_locale_name): New function, extracted
9276         from main. Also test mixed situations.
9277         (test_locale_name_posix, test_locale_name_environ,
9278         test_locale_name_default): New functions.
9279         (main): Invoke them all.
9280         * modules/localename-tests (configure.ac): Test for newlocale.
9282 2009-12-23  Bruno Haible  <bruno@clisp.org>
9284         unistd: Ensure getcwd gets declared before being overridden.
9285         * lib/unistd.in.h: Conditionally include <io.h>.
9287 2009-12-22  Bruno Haible  <bruno@clisp.org>
9289         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9290         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9291         (gl_WCHAR_H): Invoke it.
9292         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9293         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9294         Reported by Karl Berry <karl@freefriends.org>.
9296 2009-12-22  Eric Blake  <ebb9@byu.net>
9298         math, unistd: avoid redundant includes
9299         * lib/math.in.h (isnan): No need to re-include <math.h>.
9300         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9302         getsubopt: work around cygwin bug
9303         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9304         avoid conflicting with system getsubopt.
9305         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
9306         bug.
9308         getopt: synchronize from glibc
9309         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
9310         parameter order.  Adjust all callers.
9311         (_getopt_internal_r, main): Adjust quoting in error messages.
9312         Drop considerations for outdated POSIX 1003.2 error message.
9313         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
9314         callers.
9315         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
9317         test-getopt: test stderr behavior
9318         * modules/getopt-posix-tests (Depends-on): Add dup2.
9319         * tests/test-getopt.c (ASSERT): Avoid stderr.
9320         (main): Move stderr to a temporary file.
9321         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
9322         Instead, add parameter to inform caller if output occurred.
9323         (test_getopt): Adjust all existing tests to expect silence, and
9324         add new tests of leading ":".
9325         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9326         glibc shortcomings with leading "-:" or "+:" in optstring.
9327         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9328         Likewise.
9329         * doc/posix-functions/getopt.texi (getopt): Likewise.
9331         test-getopt: enhance test
9332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
9333         supports optind=0.
9334         * tests/test-getopt.c (OPTIND_MIN): Move...
9335         * tests/test-getopt.h (OPTIND_MIN): ...here.
9336         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
9337         Require that optind=0 works, since modern BSD supports it in
9338         addition to optreset, and since coreutils expects it.
9339         (test_getopt_long_only): New test.
9340         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9341         glibc shortcomings with 'W;', and enforcement of optind=0.
9342         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9343         Likewise.
9345 2009-12-21  Bruno Haible  <bruno@clisp.org>
9347         localename: Improvements for MacOS X and Cygwin.
9348         * lib/localename.h (gl_locale_name_environ): New declaration.
9349         * lib/localename.c (gl_locale_name_environ): New function, extracted from
9350         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
9351         (gl_locale_name_posix): Invoke it.
9352         (gl_locale_name_default): Add comments. Use Windows native API also on
9353         Cygwin.
9355 2009-12-21  Bruno Haible  <bruno@clisp.org>
9357         Update list of Win32 locale ids.
9358         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
9359         (LANG_SAMI): Renamed from LANG_SAAMI.
9360         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
9361         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
9362         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
9363         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
9364         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
9365         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
9366         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
9367         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
9368         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
9369         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
9370         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
9371         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
9372         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
9373         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
9374         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
9375         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
9376         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
9377         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
9378         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
9379         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
9380         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
9381         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
9382         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
9383         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
9384         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
9385         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
9386         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
9387         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
9388         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
9389         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
9390         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
9391         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
9392         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
9393         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
9394         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
9395         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
9396         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
9397         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
9398         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
9399         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
9400         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
9401         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
9402         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
9403         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
9404         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
9405         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
9406         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
9407         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
9408         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
9409         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
9410         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
9411         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
9412         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
9413         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
9414         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
9415         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
9416         Add more languages and countries for Sami, Sorbian. Add more countries
9417         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
9418         for Pashto. Change country for Syriac, Tswana.
9420 2009-12-21  Eric Blake  <ebb9@byu.net>
9422         test-utimens: avoid spurious failure
9423         * tests/test-chown.h (nap): Factor...
9424         * tests/nap.h: ...into new file.
9425         * tests/test-lchown.h (nap): Avoid duplication.
9426         * tests/test-utimens-common.h (nap): Use shared implementation,
9427         necessary on file systems with 1-second resolution.
9428         * modules/chown-tests (Files): Include new file.
9429         * modules/fdutimensat-tests (Files): Likewise.
9430         * modules/futimens-tests (Files): Likewise.
9431         * modules/lchown-tests (Files): Likewise.
9432         * modules/openat-tests (Files): Likewise.
9433         * modules/utimens-tests (Files): Likewise.
9434         * modules/utimensat-tests (Files): Likewise.
9436 2009-12-19  Eric Blake  <ebb9@byu.net>
9438         futimens, utimensat: work around Linux bug
9439         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
9440         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9441         * lib/utimensat.c (rpl_utimensat): Work around it.
9442         * lib/futimens.c (rpl_futimens): Adjust comment.
9444         utimens: work around Linux ctime bug
9445         * lib/utimens.c (detect_ctime_bug): New helper function.
9446         (update_timespec): Differentiate between workaround needed for
9447         this bug vs. what is needed for systems that lack utimensat.
9448         (fdutimens, lutimens): Work around bug.
9450         utimens: check for ctime update
9451         * tests/test-utimens-common.h (check_ctime): Define.
9452         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
9453         * tests/test-futimens.h (test_futimens): Likewise.
9454         * tests/test-lutimens.h (test_lutimens): Likewise.
9455         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9456         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9458 2009-12-19  Bruno Haible  <bruno@clisp.org>
9460         dprintf-posix: Check against memory leak fixed on 2009-12-15.
9461         * tests/test-dprintf-posix2.sh: New file.
9462         * tests/test-dprintf-posix2.c: New file.
9463         * modules/dprintf-posix-tests (Files): Add them.
9464         (configure.ac): Check for getrlimit and setrlimit.
9465         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9467 2009-12-19  Bruno Haible  <bruno@clisp.org>
9469         fprintf-posix: Check against memory leak fixed on 2009-12-15.
9470         * tests/test-fprintf-posix3.sh: New file.
9471         * tests/test-fprintf-posix3.c: New file.
9472         * modules/fprintf-posix-tests (Files): Add them.
9473         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9475 2009-12-19  Eric Blake  <ebb9@byu.net>
9477         dirfd: fix prototype
9478         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
9479         * lib/dirfd.c (dirfd): Likewise.
9481         canonicalize: reduce memory usage
9482         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
9483         allocation to size.
9484         Reported by Solar Designer <solar@openwall.com>.
9486 2009-12-19  Bruno Haible  <bruno@clisp.org>
9488         New module attribute 'Applicability'.
9489         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
9490         * gnulib-tool: New option --extract-applicability.
9491         (func_usage): Document it.
9492         (sed_extract_prog): Recognize it.
9493         (func_get_applicability): New function.
9494         (func_import): Generalize handling of 'link-warning' module.
9495         * modules/link-warning (Applicability): New section.
9496         * modules/arg-nonnull (Applicability): New section.
9497         Repoted by Simon Josefsson <simon@josefsson.org>.
9499 2009-12-19  Bruno Haible  <bruno@clisp.org>
9501         fflush: tweak
9502         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
9503         * lib/fseeko.c (rpl_fseeko): Likewise.
9505 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
9507         * lib/gl_list.h: Fix typo in comment.
9509 2009-12-16  Eric Blake  <ebb9@byu.net>
9511         fcntl: use to simplify other modules
9512         * modules/cloexec (Depends-on): Add fcntl.
9513         * modules/fchdir (Depends-on): Likewise.
9514         * modules/fd-safer-flag (Depends-on): Likewise.
9515         * modules/unistd-safer (Depends-on): Likewise.
9516         * modules/dup3 (configure.ac): Set module indicator.
9517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
9518         missing.
9519         * lib/fchdir.c (_gl_register_dup): Fix comment.
9520         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
9521         * lib/dup-safer.c (dup_safer): Likewise.
9522         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
9523         * lib/dup3.c (dup3): Likewise.
9524         * tests/test-fchdir.c (main): Enhance test.
9525         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
9527         fcntl: port portions of fcntl to mingw
9528         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
9529         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
9530         replacement for mingw.
9531         * modules/fcntl (Description): Update.
9532         (Depends-on): Add dup2.
9533         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
9534         * modules/fcntl-h (Makefile.am): Substitute it.
9535         * lib/fcntl.in.h (fcntl): Update declaration.
9536         (F_DUPFD, F_GETFD): New macros, when needed.
9537         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9538         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
9539         * tests/test-fcntl.c (check_flags, main): Enhance test for items
9540         we now guarantee.
9542         fcntl: work around cygwin bug in F_DUPFD
9543         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
9544         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
9545         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
9546         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
9547         * doc/posix-functions/fcntl.texi (fcntl): Document it.
9549         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
9550         * modules/fcntl (Files): List new files.
9551         (configure.ac): Run a test.
9552         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
9553         * lib/fcntl.c (rpl_fcntl): Likewise.
9554         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
9555         (gl_FCNTL_H): Always replace fcntl.h.
9556         * modules/fcntl-h (Makefile.am): Substitute witnesses.
9557         * lib/fcntl.in.h (fcntl): Declare replacement.
9558         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
9559         needed, plus a witness.
9560         * doc/posix-functions/fcntl.texi (fcntl): Document this.
9561         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9562         * tests/test-fcntl.c: New file.
9563         * modules/fcntl-tests: Likewise.
9565         binary-io: avoid potential compilation warning
9566         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
9567         directives.
9569         fflush: avoid compilation error on NetBSD
9570         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
9571         between off_t and fpos_t, since the latter is sometimes a struct.
9572         * lib/fseeko.c (rpl_fseeko): Likewise.
9573         Reported by Alexander Nasonov <alnsn@yandex.ru>.
9575 2009-12-15  Eric Blake  <ebb9@byu.net>
9577         fcntl-h, stdio, sys_ioctl: fix declarations
9578         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
9579         function must not take arguments.
9580         * lib/sys_ioctl.in.h (ioctl): Likewise.
9581         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
9582         (open): Add a link warning.
9584 2009-12-15  Jim Meyering  <meyering@redhat.com>
9586         areadlink, areadlink-with-size: relax license to LGPLv2+
9587         * modules/areadlink (License): Relax to LGPLv2+.
9588         * modules/areadlink-with-size (License): Likewise.
9590 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
9591             Bruno Haible  <bruno@clisp.org>
9593         *printf: Fix memory leak.
9594         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
9595         * lib/vfprintf.c (vfprintf): Likewise.
9596         * lib/dprintf.c (dprintf): Likewise.
9597         * lib/vdprintf.c (vdprintf): Likewise.
9599 2009-12-14  Eric Blake  <ebb9@byu.net>
9601         accept4: adjust module dependencies
9602         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
9604         utimens: one more try at avoiding compiler warning
9605         * lib/utimens.c (lutimens): Lower scope of result.
9607 2009-12-13  Bruno Haible  <bruno@clisp.org>
9609         Move the malloc checking from module 'list' to new module 'xlist'.
9610         * modules/xlist: New file.
9611         * lib/gl_xlist.h: New file.
9612         * lib/gl_xlist.c: New file.
9613         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
9614         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
9615         gl_list_add_last, gl_list_add_before, gl_list_add_after,
9616         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
9617         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
9618         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
9619         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
9620         gl_sortedlist_nx_add): New declarations.
9621         (struct gl_list_implementation): Rename and change methods accordingly.
9622         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
9623         (gl_list_nx_create): Renamed from gl_list_create.
9624         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9625         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9626         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9627         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9628         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9629         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9630         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9631         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9632         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
9633         gl_list_create_empty.
9634         (gl_list_nx_create): Renamed from gl_list_create.
9635         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9636         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9637         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9638         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9639         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9640         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9641         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9642         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9643         * lib/gl_array_list.c: Don't include xalloc.h.
9644         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
9645         NULL upon out-of-memory.
9646         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
9647         out-of-memory.
9648         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
9649         Change return type to 'int'.
9650         (gl_array_nx_set_at): Renamed from gl_array_set_at.
9651         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
9652         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
9653         upon out-of-memory.
9654         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
9655         upon out-of-memory.
9656         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
9657         upon out-of-memory.
9658         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
9659         upon out-of-memory.
9660         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
9661         out-of-memory.
9662         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
9663         Update.
9664         (gl_array_list_implementation): Update.
9665         * lib/gl_carray_list.c: Don't include xalloc.h.
9666         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
9667         Return NULL upon out-of-memory.
9668         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
9669         out-of-memory.
9670         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
9671         Change return type to 'int'.
9672         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
9673         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
9674         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
9675         upon out-of-memory.
9676         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
9677         upon out-of-memory.
9678         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
9679         out-of-memory.
9680         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
9681         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
9682         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
9683         Update.
9684         (gl_carray_list_implementation): Update.
9685         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
9686         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
9687         gl_linked_create_empty. Return NULL upon out-of-memory.
9688         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
9689         out-of-memory.
9690         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
9691         Change return type to 'int'. Return -1 upon out-of-memory.
9692         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
9693         out-of-memory.
9694         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
9695         upon out-of-memory.
9696         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
9697         upon out-of-memory.
9698         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
9699         NULL upon out-of-memory.
9700         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
9701         upon out-of-memory.
9702         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
9703         out-of-memory.
9704         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
9705         Update.
9706         * lib/gl_linked_list.c: Don't include xalloc.h.
9707         (gl_linked_list_implementation): Update.
9708         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
9709         (add_to_bucket): Change return type to 'int'.
9710         (gl_linkedhash_list_implementation): Update.
9711         * lib/gl_anytree_list1.h (free_subtree): New function.
9712         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
9713         gl_tree_create_empty. Return NULL upon out-of-memory.
9714         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
9715         Change return type to 'int'. Return -1 upon out-of-memory.
9716         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
9717         out-of-memory.
9718         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
9719         (gl_tree_remove_node): New function, moved here from
9720         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
9721         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
9722         Update.
9723         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
9724         malloc, not xmalloc. Return NULL upon out-of-memory.
9725         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
9726         out-of-memory.
9727         (gl_tree_remove_node_from_tree): New function, extracted from
9728         gl_tree_remove_node.
9729         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
9730         upon out-of-memory.
9731         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
9732         out-of-memory.
9733         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
9734         upon out-of-memory.
9735         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
9736         upon out-of-memory.
9737         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
9738         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
9739         not xmalloc. Return NULL upon out-of-memory.
9740         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
9741         out-of-memory.
9742         (gl_tree_remove_node_from_tree): New function, extracted from
9743         gl_tree_remove_node.
9744         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
9745         upon out-of-memory.
9746         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
9747         out-of-memory.
9748         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
9749         upon out-of-memory.
9750         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
9751         upon out-of-memory.
9752         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
9753         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
9754         gl_anytree_list1.h before gl_anyavltree_list2.h.
9755         (gl_avltree_list_implementation): Update.
9756         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
9757         gl_anytree_list1.h before gl_anyavltree_list2.h.
9758         (gl_rbtree_list_implementation): Update.
9759         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
9760         Change return type to 'int'. Return -1 upon out-of-memory. Use
9761         __builtin_expect.
9762         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
9763         (gl_avltreehash_list_implementation): Update.
9764         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
9765         (gl_rbtreehash_list_implementation): Update.
9766         * modules/array-list (Depends-on): Remove xalloc.
9767         * modules/carray-list (Depends-on): Likewise.
9768         * modules/linked-list (Depends-on): Likewise.
9769         * modules/linkedhash-list (Depends-on): Likewise.
9770         * modules/avltree-list (Depends-on): Likewise.
9771         * modules/rbtree-list (Depends-on): Likewise.
9772         * modules/avltreehash-list (Depends-on): Likewise.
9773         * modules/rbtreehash-list (Depends-on): Likewise.
9775         * modules/xsublist: New file.
9776         * lib/gl_xsublist.h: New file.
9777         * lib/gl_xsublist.c: New file.
9778         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
9779         (gl_sublist_nx_create): New declaration.
9780         * lib/gl_sublist.c: Don't include xalloc.h.
9781         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
9782         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
9783         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
9784         Change return type to 'int'. Return -1 upon out-of-memory.
9785         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
9786         upon out-of-memory.
9787         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
9788         NULL upon out-of-memory.
9789         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
9790         upon out-of-memory.
9791         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
9792         NULL upon out-of-memory.
9793         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
9794         NULL upon out-of-memory.
9795         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
9796         upon out-of-memory.
9797         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
9798         (gl_sublist_list_implementation): Update.
9799         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
9800         upon out-of-memory.
9801         * modules/sublist (Depends-on): Remove xalloc.
9803         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
9804         * tests/test-carray_list.c: Likewise.
9805         * tests/test-linked_list.c: Likewise.
9806         * tests/test-linkedhash_list.c: Likewise.
9807         * tests/test-avltree_list.c: Likewise.
9808         * tests/test-rbtree_list.c: Likewise.
9809         * tests/test-avltreehash_list.c: Likewise.
9810         * tests/test-rbtreehash_list.c: Likewise.
9811         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
9812         * modules/carray-list-tests (Makefile.am): Likewise.
9813         * modules/linked-list-tests (Makefile.am): Likewise.
9814         * modules/linkedhash-list-tests (Makefile.am): Likewise.
9815         * modules/avltree-list-tests (Makefile.am): Likewise.
9816         * modules/rbtree-list-tests (Makefile.am): Likewise.
9817         * modules/avltreehash-list-tests (Makefile.am): Likewise.
9818         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9820         * NEWS: Mention the changes.
9822         * lib/clean-temp.c: Include gl_xlist.h.
9823         * modules/clean-temp (Depends-on): Add xlist.
9825         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
9826         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
9828         * tests/test-array_oset.c: Include gl_xlist.h.
9829         * modules/array-oset-tests (Depends-on): Add xlist.
9831         Reported by José E. Marchesi <jemarch@gnu.org>.
9833 2009-12-13  Bruno Haible  <bruno@clisp.org>
9835         Move the malloc checking from module 'oset' to new module 'xoset'.
9836         * modules/xoset: New file.
9837         * lib/gl_xoset.h: New file.
9838         * lib/gl_xoset.c: New file.
9839         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
9840         declarations.
9841         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
9842         (struct gl_oset_implementation): Rename and change methods accordingly.
9843         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
9844         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
9845         'int'. Mark as __warn_unused_result__.
9846         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
9847         gl_oset_create_empty.
9848         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
9849         'int'.
9850         * lib/gl_array_oset.c: Don't include xalloc.h.
9851         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
9852         malloc, not xmalloc.
9853         (grow): Change return type to 'int'. Don't call xalloc_die.
9854         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
9855         to 'int'.
9856         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
9857         'int'.
9858         (gl_array_oset_implementation): Update.
9859         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
9860         gl_tree_create_empty.
9861         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
9862         'int'.
9863         * lib/gl_avltree_oset.c: Don't include xalloc.h.
9864         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
9865         xmalloc.
9866         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
9867         not xmalloc.
9868         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
9869         xmalloc.
9870         (gl_avltree_oset_implementation): Update.
9871         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
9872         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
9873         xmalloc.
9874         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
9875         not xmalloc.
9876         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
9877         xmalloc.
9878         (gl_rbtree_oset_implementation): Update.
9879         * modules/array-oset (Depends-on): Remove xalloc.
9880         * modules/avltree-oset (Depends-on): Likewise.
9881         * modules/rbtree-oset (Depends-on): Likewise.
9882         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
9883         * tests/test-avltree_oset.c: Likewise.
9884         * tests/test-rbtree_oset.c: Likewise.
9885         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9886         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
9887         * modules/rbtree-oset-tests (Makefile.am): Likewise.
9888         * NEWS: Mention the change.
9890 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
9892         maint.mk: allow a project to override release-prep commands
9893         * top/maint.mk (alpha, beta, stable): Move release-preparatory
9894         commands into a new rule.
9895         (release-prep): New rule.
9896         (release-prep-hook): New overridable variable.
9898 2009-12-13  Bruno Haible  <bruno@clisp.org>
9900         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
9902 2009-12-13  Jim Meyering  <meyering@redhat.com>
9904         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
9905         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
9907 2009-12-12  Bruno Haible  <bruno@clisp.org>
9909         duplocale: Tweak.
9910         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
9912 2009-12-12  Karl Berry  <karl@gnu.org>
9914         * config/srclist.txt (strtoll.c): tab changes, no more sync.
9916 2009-12-12  Bruno Haible  <bruno@clisp.org>
9918         * m4/po.m4: Undo incorrect untabification.
9920 2009-12-12  Bruno Haible  <bruno@clisp.org>
9922         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
9923         * modules/c-strtod (Depends-on): Add locale.
9924         * modules/c-strtold (Depends-on): Likewise.
9926 2009-12-12  Bruno Haible  <bruno@clisp.org>
9928         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
9930 2009-12-11  Eric Blake  <ebb9@byu.net>
9932         setenv: relax requirement in light of POSIX ruling
9933         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
9934         not NULL.
9935         * tests/test-setenv.c (main): Relax test.
9936         * tests/test-unsetenv.c (main): Likewise.
9937         * doc/posix-functions/setenv.texi (setenv): Document this.
9938         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
9940 2009-12-11  Bruno Haible  <bruno@clisp.org>
9942         New module 'fd-safer-flag'.
9943         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
9944         * lib/dup-safer.c (dup_safer_flag): Remove function.
9945         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
9946         * lib/fd-safer.c (fd_safer_flag): Remove function.
9947         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
9948         * modules/cloexec (configure.ac): Drop indicator macro.
9949         * modules/fd-safer-flag: New file.
9950         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
9951         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
9952         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
9954 2009-12-11  Bruno Haible  <bruno@clisp.org>
9956         Tests for module 'nl_langinfo'.
9957         * modules/nl_langinfo-tests: New file.
9958         * tests/test-nl_langinfo.sh: New file.
9959         * tests/test-nl_langinfo.c: New file.
9961         New module 'nl_langinfo'.
9962         * lib/nl_langinfo.c: New file.
9963         * m4/nl_langinfo.m4: New file.
9964         * modules/nl_langinfo: New file.
9965         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
9967 2009-12-11  Bruno Haible  <bruno@clisp.org>
9969         Tests for module 'langinfo'.
9970         * modules/langinfo-tests: New file.
9971         * tests/test-langinfo.c: New file.
9973         New module 'langinfo'.
9974         * lib/langinfo.in.h: New file.
9975         * m4/langinfo_h.m4: New file.
9976         * modules/langinfo: New file.
9977         * doc/posix-headers/langinfo.texi: Mention the new module.
9979 2009-12-11  Bruno Haible  <bruno@clisp.org>
9981         * lib/config.charset: Untabify.
9983 2009-12-11  Bruno Haible  <bruno@clisp.org>
9985         * modules/unistd-safer (configure.ac): Drop indicator macro.
9987 2009-12-11  Bruno Haible  <bruno@clisp.org>
9989         Move pipe2-safer code to its own file.
9990         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
9991         * lib/pipe-safer.c (pipe2_safer): Remove function.
9992         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
9993         (Makefile.am): Add it to lib_SOURCES.
9995 2009-12-10  Bruno Haible  <bruno@clisp.org>
9997         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
9999 2009-12-10  Bruno Haible  <bruno@clisp.org>
10001         Declare which arguments expect non-NULL values, for GCC and clang.
10002         * build-aux/arg-nonnull.h: New file.
10003         * modules/arg-nonnull: New file.
10004         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10005         (inet_ntop, inet_pton): Use it.
10006         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10007         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10008         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10009         (open, openat): Use it.
10010         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10011         (fnmatch): Use it.
10012         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10013         (getopt, getopt_long, getopt_long_only): Use it.
10014         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10015         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10016         Use it.
10017         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10018         (iconv_open): Use it.
10019         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10020         (strtoimax, strtoumax): Use it.
10021         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10022         (duplocale): Use it.
10023         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10024         (frexp, frexpl): Use it.
10025         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10026         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10027         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10028         (tsearch, tfind, tdelete, twalk): Use it.
10029         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10030         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10031         sigpending): Use it.
10032         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10033         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10034         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10035         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10036         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10037         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10038         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10039         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10040         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10041         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10042         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10043         Use it.
10044         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10045         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10046         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10047         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10048         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10049         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10050         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10051         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10052         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10053         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10054         strtoull, unsetenv): Use it.
10055         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10056         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10057         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10058         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10059         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10060         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10061         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10062         (strcasecmp, strncasecmp): Use it.
10063         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10064         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10065         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10066         rpl_setsockopt): Use it.
10067         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10068         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10069         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10070         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10071         (gettimeofday): Use it.
10072         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10073         (times): Use it.
10074         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10075         (uname): Use it.
10076         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10077         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10078         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10079         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10080         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10081         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10082         unlinkat, write): Use it.
10083         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10084         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10085         * lib/argv-iter.h: Include arg-nonnull.h.
10086         (_ATTRIBUTE_NONNULL_): Remove macro.
10087         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10088         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10089         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10090         optimization.
10091         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10092         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10093         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10094         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10095         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10096         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10097         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10098         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10099         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10100         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10101         * modules/dirent (Depends-on): Add arg-nonnull.
10102         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10103         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10104         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10105         * modules/fnmatch (Depends-on): Add arg-nonnull.
10106         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10107         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10108         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10109         * modules/glob (Depends-on): Add arg-nonnull.
10110         (Makefile.am): Insert arg-nonnull.h into glob.h.
10111         * modules/iconv_open (Depends-on): Add arg-nonnull.
10112         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10113         * modules/inttypes (Depends-on): Add arg-nonnull.
10114         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10115         * modules/locale (Depends-on): Add arg-nonnull.
10116         (Makefile.am): Insert arg-nonnull.h into locale.h.
10117         * modules/math (Depends-on): Add arg-nonnull.
10118         (Makefile.am): Insert arg-nonnull.h into math.h.
10119         * modules/netdb (Depends-on): Add arg-nonnull.
10120         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10121         * modules/search (Depends-on): Add arg-nonnull.
10122         (Makefile.am): Insert arg-nonnull.h into search.h.
10123         * modules/signal (Depends-on): Add arg-nonnull.
10124         (Makefile.am): Insert arg-nonnull.h into signal.h.
10125         * modules/spawn (Depends-on): Add arg-nonnull.
10126         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10127         * modules/stdio (Depends-on): Add arg-nonnull.
10128         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10129         * modules/stdlib (Depends-on): Add arg-nonnull.
10130         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10131         * modules/string (Depends-on): Add arg-nonnull.
10132         (Makefile.am): Insert arg-nonnull.h into string.h.
10133         * modules/strings (Depends-on): Add arg-nonnull.
10134         (Makefile.am): Insert arg-nonnull.h into strings.h.
10135         * modules/sys_socket (Depends-on): Add arg-nonnull.
10136         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10137         * modules/sys_stat (Depends-on): Add arg-nonnull.
10138         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10139         * modules/sys_time (Depends-on): Add arg-nonnull.
10140         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10141         * modules/sys_times (Depends-on): Add arg-nonnull.
10142         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10143         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10144         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10145         * modules/time (Depends-on): Add arg-nonnull.
10146         (Makefile.am): Insert arg-nonnull.h into time.h.
10147         * modules/unistd (Depends-on): Add arg-nonnull.
10148         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10149         * modules/wchar (Depends-on): Add arg-nonnull.
10150         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10151         * modules/argv-iter (Depends-on): Add arg-nonnull.
10152         * tests/test-canonicalize.c (null_ptr): New function.
10153         (main): Use it.
10154         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10155         (main): Use it.
10156         * tests/test-memmem.c (null_ptr): New function.
10157         (main): Use it.
10158         Reported by Jim Meyering.
10160 2009-12-10  Bruno Haible  <bruno@clisp.org>
10162         Use spaces for indentation, not tabs.
10163         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10164         * m4/*.m4: Untabify.
10165         * build-aux/*.h: Untabify.
10166         * tests/**/*.[hc]: Untabify.
10167         * README: New section "Indent with spaces, not TABs", based on
10168         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10169         * NEWS: Mention the change.
10171 2009-12-10  Bruno Haible  <bruno@clisp.org>
10173         pty test: Fix link error.
10174         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10175         test_pty_LDADD.
10177 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10179         * modules/pty: New file.
10180         * modules/pty-tests: New file.
10181         * m4/pty.m4: New file.
10182         * tests/test-pty.c: New file.
10183         * doc/glibc-headers/pty.texi: Modified.
10184         * doc/glibc-functions/forkpty.texi: Modified.
10185         * doc/glibc-functions/openpty.texi: Modified.
10187 2009-12-10  Bruno Haible  <bruno@clisp.org>
10189         Avoid syntax error in C++ mode.
10190         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10192 2009-12-10  Bruno Haible  <bruno@clisp.org>
10194         Use sed with option -e.
10195         * gnulib-tool (func_version, func_emit_copyright_notice,
10196         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10197         option -e to sed.
10198         * modules/link-warning (Makefile.am): Likewise.
10200 2009-12-10  Jim Meyering  <meyering@redhat.com>
10202         mgetgroups: do not write bytes beyond end of malloc'd buffer
10203         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10204         username, we call getgroups with a one-element-shorter buffer,
10205         but still told it the length was original, max_n_groups.
10207 2009-12-09  Eric Blake  <ebb9@byu.net>
10209         cloexec: relax license
10210         * modules/cloexec (Maintainer): Add myself.
10211         (License): Use LGPL, not GPL.
10213         link-warning: optimize generation
10214         * modules/link-warning (Makefile.am): Reduce process usage.
10216 2009-12-09  Bruno Haible  <bruno@clisp.org>
10218         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10219         workaround was added on 2009-11-17.
10221 2009-12-09  Jim Meyering  <meyering@redhat.com>
10222             Bruno Haible  <bruno@clisp.org>
10224         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10225         * modules/link-warning (Makefile.am): Make the comment-removing sed
10226         command more robust in the face of bootstrap-prepended comment lines.
10228 2009-12-09  Bruno Haible  <bruno@clisp.org>
10230         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10231         most one group.
10233 2009-12-09  Simon Josefsson <simon@josefsson.org>
10234             Bruno Haible  <bruno@clisp.org>
10236         * build-aux/link-warning.h: Add copyright notice.
10237         * modules/link-warning (Makefile.am): Generate link-warning.h from
10238         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10239         * NEWS: Mention change in link-warning module.
10240         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10241         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10242         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10243         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10244         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10245         * modules/math (Makefile.am): Add dependency to math.h.
10246         * modules/search (Makefile.am): Add dependency to search.h.
10247         * modules/signal (Makefile.am): Add dependency to signal.h.
10248         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10249         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10250         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10251         * modules/string (Makefile.am): Add dependency to string.h.
10252         * modules/strings (Makefile.am): Add dependency to strings.h.
10253         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10254         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10255         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10256         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10257         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10258         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10259         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10260         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10261         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10263 2009-12-09  Bruno Haible  <bruno@clisp.org>
10265         fchdir: Optimize away rpl_fstat when possible.
10266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10267         REPLACE_OPEN_DIRECTORY.
10268         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10270 2009-12-09  Bruno Haible  <bruno@clisp.org>
10272         * lib/fchdir.c: Update comment.
10274 2009-12-09  Bruno Haible  <bruno@clisp.org>
10276         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10278 2009-12-08  Eric Blake  <ebb9@byu.net>
10280         fchdir: avoid memory leak on re-registration.
10281         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10283 2009-12-08  Jim Meyering  <meyering@redhat.com>
10285         init.sh: avoid Solaris 10 /bin/sh portability problem
10286         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10287         sourced script:
10288           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10289           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10290           bar
10291         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10292         and two tests used that idiom.
10293         * tests/init.sh: Update suggested usage comments.
10294         (path_prepend_): New function, to be used in place
10295         of the --src-path=DIR option.
10296         (setup_): Move PATH-prepending code into path_prepend_.
10297         * tests/test-pread.sh: Adapt to new usage.
10298         * tests/test-xalloc-die.sh: Likewise.
10300 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10302         * doc/gnulib.texi (Glibc pty.h): Add.
10303         * doc/glibc-functions/forkpty.texi: Add.
10304         * doc/glibc-functions/openpty.texi: Add.
10305         Suggested by Bruno Haible.
10307 2009-12-08  Eric Blake  <ebb9@byu.net>
10309         fchdir: fix logic bugs
10310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
10311         * tests/test-fchdir.c (main): Enhance test.
10312         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
10313         is in use.
10315         dup2: fix logic bugs
10316         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
10317         REPLACE_DUP2 to decide when rpl_dup2 is needed.
10318         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
10319         exists.
10320         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
10322 2009-12-07  Eric Blake  <ebb9@byu.net>
10324         unlink: fix m4 detection
10325         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
10327         unistd-safer: add unit test
10328         * modules/unistd-safer-tests: New file.
10329         * tests/test-dup-safer.c: Likewise.
10330         * tests/test-cloexec.c (setmode): Avoid compiler warning.
10331         * tests/test-dup2.c (setmode): Likewise.
10332         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
10334         cloexec: preserve text vs. binary across dup_cloexec
10335         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
10336         mode.
10337         * modules/dup2-tests (Depends-on): Add binary-io.
10338         * modules/cloexec-tests (Depends-on): Likewise.
10339         * tests/test-dup2.c (setmode, is_mode): New helpers.
10340         (main): Add tests that translation mode is preserved.
10341         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
10342         Reported by Bruno Haible.
10344         mgetgroups: reduce duplicate listings
10345         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
10346         resulting array.
10347         * tests/test-chown.h (test_chown): Simplify client.
10348         * tests/test-lchown.h (test_lchown): Likewise.
10350 2009-12-06  Bruno Haible  <bruno@clisp.org>
10352         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
10353         value.
10355 2009-12-06  Bruno Haible  <bruno@clisp.org>
10357         * lib/progname.c: Include stdio.h, stdlib.h.
10358         (set_program_name): Reject a NULL argument.
10360 2009-12-05  Eric Blake  <ebb9@byu.net>
10362         pipe2-safer: new module
10363         * modules/pipe2-safer: New file.
10364         * lib/unistd-safer.h (pipe2_safer): New prototype.
10365         * lib/unistd--.h (pipe2): New wrapper.
10366         * lib/pipe-safer.c (pipe2_safer): New function.
10367         * modules/pipe (Depends-on): Add pipe2-safer.
10368         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
10370         stdlib-safer: preserve cloexec flag for mkostemp[s]
10371         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
10372         fd_safer_flag.
10374         unistd-safer: allow preservation of cloexec status via flag
10375         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
10376         prototypes.
10377         * lib/dup-safer.c (dup_safer_flag): New function.
10378         * lib/fd-safer.c (fd_safer_flag): Likewise.
10379         * modules/cloexec (configure.ac): Set witness.
10381         test-dup2: enhance test
10382         * modules/dup2-tests (Depends-on): Add cloexec.
10383         * tests/test-dup2.c (main): Enhance test.
10385         cloexec: add dup_cloexec
10386         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
10387         header and comments.
10388         * lib/cloexec.c (set_cloexec_flag): Add comments.
10389         (dup_cloexec): New function, with mingw implementation borrowed
10390         from...
10391         * lib/w32spawn.h (dup_noinherit): ...here.
10392         * modules/execute (Depends-on): Add cloexec.
10393         * modules/pipe (Depends-on): Likewise.
10394         * modules/cloexec (Depends-on): Add dup2.
10395         * modules/cloexec-tests (Files): New file.
10396         * tests/test-cloexec.c: Likewise.
10398         test-xalloc-die: fix test for mingw
10399         * modules/xalloc-die-tests (Files): Add tests/init.sh.
10400         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
10401         directory and .exe suffix off argv[0] output.
10403         test-fseeko: fix test for mingw
10404         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
10405         than undefining fseek, so test will pass on mingw.
10407 2009-12-05  Bruno Haible  <bruno@clisp.org>
10409         * lib/progname.h (set_program_name): Clarify specification.
10410         * lib/progname.c (set_program_name): Likewise.
10411         Reported by Jim Meyering.
10413 2009-12-05  Jim Meyering  <meyering@redhat.com>
10415         maint.mk: backslash-escape parens in default regexp
10416         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
10417         backslash-escape the literal parentheses.
10419         maint.mk: news-date-check: use grep -E
10420         * top/maint.mk (today): Define a Make variable, not a...
10421         (news-date-check): ...shell variable.
10422         (news-date-regexp): Use the Make variable.
10423         Use grep's -E option.  Change the failing diagnostic to mention
10424         the variable, $(news-date-regexp).
10426 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
10428         maintainer-makefile: allow customization of NEWS entry format
10429         * top/maint.mk (news-date-regexp): New overridable variable.
10430         (news-date-check): Use it.
10432 2009-12-04  Eric Blake  <ebb9@byu.net>
10434         mgetgroups: add xgetgroups, and avoid ENOSYS failures
10435         * lib/mgetgroups.h (xgetgroups): New prototype.
10436         * lib/mgetgroups.c (xgetgroups): New wrapper.
10437         (mgetgroups): Handle ENOSYS.
10438         * modules/mgetgroups (Depends-on): Add realloc.
10439         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
10441         mgetgroups: avoid argument promotion issues with -1
10442         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
10443         for invalid gid_t.
10444         * tests/test-chown.h (getegid, test_chown): Likewise.
10445         * tests/test-lchown.h (getegid, test_lchown): Likewise.
10447 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
10449         exclude: Fix header file problems.
10450         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
10452 2009-12-01  Jim Meyering  <meyering@redhat.com>
10454         fts: fts_open: do not let an empty string cause immediate failure
10455         This is required in support of GNU rm, for which the command
10456         "rm A '' B" must process and remove both A and B, in spite of
10457         the empty string argument.
10458         * lib/fts.c (fts_open): Do not let the presence of an empty string
10459         cause fts_open to fail immediately.  Most fts-using tools must be
10460         able to process all arguments, in order, and can be expected to
10461         diagnose such arguments themselves.
10463 2009-11-30  Eric Blake  <ebb9@byu.net>
10465         utimens: fix compilation error
10466         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
10467         Declare variable at right scope.
10469 2009-11-29  Jim Meyering  <meyering@redhat.com>
10471         bootstrap: handle perl-5.11's changed --version output
10472         * build-aux/bootstrap (get_version): Handle perl separately,
10473         since perl-5.11's --version output is different.
10475 2009-11-28  Jim Meyering  <meyering@redhat.com>
10477         userspec: depend on the inttostr module, too
10478         * modules/userspec (Depends-on): Add inttostr.
10480         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
10481         * lib/userspec.c (parse_with_separator): Do not accept a user ID
10482         number of MAXUID when it evaluates to (uid_t) -1.
10483         Likewise for group ID.  Reported by Matt McCutchen in
10484         <http://savannah.gnu.org/bugs/?28113>
10486         userspec: reformat to use spaces, not TABs
10487         * lib/userspec.c: Expand TABs to spaces.
10488         Add Emacs' "indent-tabs-mode: nil" hint.
10490 2009-11-27  Eric Blake  <ebb9@byu.net>
10492         getopt-gnu: flush out another BSD bug
10493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
10494         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
10495         flush out BSD bug.
10496         * tests/test-getopt.h (test_getopt): End lists with NULL.
10497         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10498         (test_getopt_long_posix): Enhance test.
10499         * modules/getopt-posix-tests (Depends-on): Add stdbool.
10500         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
10501         getopt-gnu.
10502         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10503         Likewise.
10505 2009-11-27  Simon Josefsson  <simon@josefsson.org>
10507         * modules/idpriv-droptemp-tests (Notice): Fix text.
10509 2009-11-27  Jim Meyering  <meyering@redhat.com>
10511         test-xalloc-die: avoid spurious failure due to libtool argv difference
10512         In a libtool-enabled project, this test would fail due to a difference
10513         in the emitted program name, e.g.,
10514         -test-xalloc-die: memory exhausted
10515         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
10516         Use program to avoid that.
10517         * modules/xalloc-die-tests (Depends-on): Add progname.
10518         * tests/test-xalloc-die.c: Include progname.h".
10519         (program_name): Remove decl.
10520         (main): Call set_program_name.
10521         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
10523 2009-11-26  Richard Jones  <rjones@redhat.com>
10525         w32sock: leave win32 error in place.
10526         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
10528 2009-11-26  Eric Blake  <ebb9@byu.net>
10530         init.sh: suggest to use skip_ and fail_ functions in comments
10531         * tests/init.sh: Add a sentence.
10533 2009-11-25  Bruno Haible  <bruno@clisp.org>
10535         init.sh: add documentation in comments
10536         * tests/init.sh: Add some developer and user documentation.
10538 2009-11-26  Jim Meyering  <meyering@redhat.com>
10540         init.sh: accommodate even those who specify bogus srcdir manually
10541         * tests/init.sh: Normally, srcdir is guaranteed by automake and
10542         configure-time tests to be sanitized, so that there is no need to
10543         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
10544         (with no double quotes) suffices.  However, since tests may be
10545         invoked manually, and since you may explicitly set srcdir to the
10546         name of a directory containing spaces, do quote its uses here.
10547         * tests/test-pread.sh: Likewise.
10548         Suggested by Bruno Haible.
10550         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
10551         * tests/test-pread.sh: Write no data into the pipe, because
10552         test-pread actually reads none.  This avoids a diagnostic,
10553         "bash: echo: write error: Broken pipe", that arises in the unusual
10554         event something is ignoring SIGPIPE, and might be interpreted
10555         as some sort of failure.  Reported by Bruno Haible.
10557 2009-11-25  Jim Meyering  <meyering@redhat.com>
10559         test-pread: cover failure with ESPIPE and EINVAL
10560         * tests/test-pread.c (main): Test for failure, too.
10561         * tests/test-pread.sh: Invoke with stdin on a pipe.
10562         Suggested by Eric Blake.
10564         pread: improvement and fix
10565         * modules/pread (Depends-on): Depend on lseek, for portability to
10566         e.g., mingw.  Suggested by Eric Blake.
10567         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
10569         unistd.in.h: correct declaration of pread
10570         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
10571         Reported by Richard W.M. Jones.
10573         test-pread.sh: distribute the test script
10574         * modules/pread-tests (Files): Include test-pread.sh.
10576         test-pread.sh: clean up
10577         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
10578         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
10579         That is unnecessary, since it's always ".".
10580         Suggestion from Eric Blake.
10582         test-pread.sh: make executable
10583         * tests/test-pread.sh: Set executable bit.
10584         Reported by Eric Blake.
10586         correct typo in test-pread.sh
10587         * tests/test-pread.sh: Add #! line.
10589         test pread
10590         * tests/test-pread.c: New file.
10591         * tests/test-pread.sh: Likewise.
10592         * modules/pread-tests: Likewise.
10594         pread: new module
10595         * modules/pread: New file.
10596         * lib/unistd.in.h (pread): Define/declare.
10597         * lib/pread.c (pread): New file.
10598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
10599         * modules/unistd (Makefile.am): Substitute witnesses.
10600         * doc/posix-functions/pread.texi (pread): Update.
10601         * MODULES.html.sh: Add pread.
10603 2009-11-25  Jim Meyering  <meyering@redhat.com>
10605         tests/init.sh: new file to be used via most *.sh tests
10606         * tests/init.sh: New file.
10608 2009-11-25  Eric Blake  <ebb9@byu.net>
10610         utimens: work around older Linux failure with symlinks
10611         * lib/utimens.c (lutimensat_works_really): New variable.
10612         (fdutimens, lutimens): Use it to manage kernels that support
10613         nanosecond times on files, but not on symlinks.
10614         Reported by OndÅ™ej Vašík.
10616         utimes: fix configure grammar
10617         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
10619 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
10621         regex: Fix fastmap for multibyte character ranges.
10622         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
10623         characters when a multibyte character range is included.
10625 2009-11-22  Andy Wingo  <wingo@pobox.com>
10627         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
10628         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
10630 2009-11-24  Bruno Haible  <bruno@clisp.org>
10632         doc: Most *_l functions exist in MacOS X 10.5.
10633         * doc/posix-functions/duplocale.texi: Update platforms list.
10634         * doc/posix-functions/freelocale.texi: Likewise.
10635         * doc/posix-functions/newlocale.texi: Likewise.
10636         * doc/posix-functions/uselocale.texi: Likewise.
10637         * doc/posix-functions/isalnum_l.texi: Likewise.
10638         * doc/posix-functions/isalpha_l.texi: Likewise.
10639         * doc/posix-functions/isblank_l.texi: Likewise.
10640         * doc/posix-functions/iscntrl_l.texi: Likewise.
10641         * doc/posix-functions/isdigit_l.texi: Likewise.
10642         * doc/posix-functions/isgraph_l.texi: Likewise.
10643         * doc/posix-functions/islower_l.texi: Likewise.
10644         * doc/posix-functions/isprint_l.texi: Likewise.
10645         * doc/posix-functions/ispunct_l.texi: Likewise.
10646         * doc/posix-functions/isspace_l.texi: Likewise.
10647         * doc/posix-functions/isupper_l.texi: Likewise.
10648         * doc/posix-functions/iswalnum_l.texi: Likewise.
10649         * doc/posix-functions/iswalpha_l.texi: Likewise.
10650         * doc/posix-functions/iswblank_l.texi: Likewise.
10651         * doc/posix-functions/iswcntrl_l.texi: Likewise.
10652         * doc/posix-functions/iswctype_l.texi: Likewise.
10653         * doc/posix-functions/iswdigit_l.texi: Likewise.
10654         * doc/posix-functions/iswgraph_l.texi: Likewise.
10655         * doc/posix-functions/iswlower_l.texi: Likewise.
10656         * doc/posix-functions/iswprint_l.texi: Likewise.
10657         * doc/posix-functions/iswpunct_l.texi: Likewise.
10658         * doc/posix-functions/iswspace_l.texi: Likewise.
10659         * doc/posix-functions/iswupper_l.texi: Likewise.
10660         * doc/posix-functions/iswxdigit_l.texi: Likewise.
10661         * doc/posix-functions/isxdigit_l.texi: Likewise.
10662         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
10663         * doc/posix-functions/strcasecmp_l.texi: Likewise.
10664         * doc/posix-functions/strcoll_l.texi: Likewise.
10665         * doc/posix-functions/strfmon_l.texi: Likewise.
10666         * doc/posix-functions/strftime_l.texi: Likewise.
10667         * doc/posix-functions/strncasecmp_l.texi: Likewise.
10668         * doc/posix-functions/strxfrm_l.texi: Likewise.
10669         * doc/posix-functions/tolower_l.texi: Likewise.
10670         * doc/posix-functions/toupper_l.texi: Likewise.
10671         * doc/posix-functions/towctrans_l.texi: Likewise.
10672         * doc/posix-functions/towlower_l.texi: Likewise.
10673         * doc/posix-functions/towupper_l.texi: Likewise.
10674         * doc/posix-functions/wcscoll_l.texi: Likewise.
10675         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
10676         * doc/posix-functions/wctrans_l.texi: Likewise.
10677         * doc/posix-functions/wctype_l.texi: Likewise.
10678         * doc/glibc-functions/strptime_l.texi: Likewise.
10679         * doc/glibc-functions/strtod_l.texi: Likewise.
10680         * doc/glibc-functions/strtof_l.texi: Likewise.
10681         * doc/glibc-functions/strtol_l.texi: Likewise.
10682         * doc/glibc-functions/strtold_l.texi: Likewise.
10683         * doc/glibc-functions/strtoll_l.texi: Likewise.
10684         * doc/glibc-functions/strtoul_l.texi: Likewise.
10685         * doc/glibc-functions/strtoull_l.texi: Likewise.
10686         * doc/glibc-functions/wcsftime_l.texi: Likewise.
10687         * doc/glibc-functions/wcstod_l.texi: Likewise.
10688         * doc/glibc-functions/wcstof_l.texi: Likewise.
10689         * doc/glibc-functions/wcstol_l.texi: Likewise.
10690         * doc/glibc-functions/wcstold_l.texi: Likewise.
10691         * doc/glibc-functions/wcstoll_l.texi: Likewise.
10692         * doc/glibc-functions/wcstoul_l.texi: Likewise.
10693         * doc/glibc-functions/wcstoull_l.texi: Likewise.
10695 2009-11-24  Bruno Haible  <bruno@clisp.org>
10697         duplocale: Fix logic bug.
10698         * lib/duplocale.c: Don't include <langinfo.h>.
10699         (_NL_LOCALE_NAME): Remove macro.
10700         (rpl_duplocale): Use setlocale instead of nl_langinfo.
10701         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
10703 2009-11-23  Jim Meyering  <meyering@redhat.com>
10705         test-update-copyright: don't hard-code /usr/bin/perl
10706         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
10707         perl to print the current year.  Gilles Espinasse reported that
10708         the replaced use of perl was hard-coded as /usr/bin/perl.
10710 2009-11-23  Bruno Haible  <bruno@clisp.org>
10712         duplocale: Add support for glibc 2.3.x.
10713         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
10715 2009-11-22  Bruno Haible  <bruno@clisp.org>
10717         vasnprintf: Tiny optimization.
10718         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
10719         MacOS X.
10721 2009-11-22  Bruno Haible  <bruno@clisp.org>
10723         Tests for module 'duplocale'.
10724         * modules/duplocale-tests: New file.
10725         * tests/test-duplocale.c: New file.
10727         New module 'duplocale'.
10728         * m4/duplocale.m4: New file.
10729         * lib/locale.in.h (duplocale): New declaration.
10730         * lib/duplocale.c: New file.
10731         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
10732         gl_LOCALE_H_DEFAULTS): New macros.
10733         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
10734         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
10735         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
10736         REPLACE_DUPLOCALE.
10737         * modules/duplocale: New file.
10738         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
10740 2009-11-22  Bruno Haible  <bruno@clisp.org>
10742         * modules/locale-tests (configure.ac): Test for newlocale function.
10743         * tests/test-locale.c: When the system has extended locale functions,
10744         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
10746         locale: Make locale_t available when possible.
10747         * lib/locale.in.h: Include <xlocale.h> when it exists.
10748         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
10749         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
10750         * modules/locale (Depends-on): Add extensions.
10751         (Makefile.am): Also substitute HAVE_XLOCALE_H.
10752         * doc/posix-headers/locale.texi: Document the problem with locale_t.
10754 2009-11-22  Bruno Haible  <bruno@clisp.org>
10756         Add comments.
10757         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
10758         invocation.
10759         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
10760         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10761         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10763 2009-11-22  Bruno Haible  <bruno@clisp.org>
10765         error: account for the possibility of freopen (stdout).
10766         * lib/error.c: Include <unistd.h>.
10767         (flush_stdout): New function, extracted from error and error_at_line.
10768         Determine stdout's fd dynamically.
10769         (error, error_at_line): Invoke flush_stdout.
10770         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
10771         * modules/error (Depends-on): Add unistd.
10773 2009-11-22  Bruno Haible  <bruno@clisp.org>
10775         diffseq: Add comment.
10776         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
10778 2009-11-22  Jim Meyering  <meyering@redhat.com>
10780         c-stack: avoid defining an unused static function
10781         * lib/c-stack.c (find_stack_direction): Do not define this function
10782         when it will not be used.
10784         diffseq: avoid spurious gcc warnings
10785         * lib/diffseq.h (IF_LINT2): Define.
10786         (compareseq): Use it to initialize two members of "part".
10787         This avoids two used-uninitialized warnings.
10789 2009-11-21  Jim Meyering  <meyering@redhat.com>
10791         c-stack: avoid "ignoring return value of `write'" warning
10792         * lib/c-stack.c: Include "ignore-value.h".
10793         (die): Explicitly ignore each write return value.
10794         * modules/c-stack (Depends-on): Add ignore-value.
10796 2009-11-21  Bruno Haible  <bruno@clisp.org>
10798         diffseq: reduce scope of variable 'best'.
10799         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
10800         variable, earlier used for two different purposes.
10802 2009-11-21  Jim Meyering  <meyering@redhat.com>
10804         diffseq: remove useless assignment to "best"
10805         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
10806         assignment.  At that point "best" is already guaranteed to be zero.
10808 2009-11-20  Eric Blake  <ebb9@byu.net>
10810         build: mention ftp redirector in release announcements
10811         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
10812         values that used to come from cfg.mk; mention FTP redirect URL.
10813         * build-aux/announce-gen: Mention the mirror list.
10814         Suggested by Karl Berry.
10816         nanosleep: improve port to mingw
10817         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
10818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
10819         LIB_NANOSLEEP, but only when needed.
10820         * modules/select (Link): Document LIBSOCKET.
10821         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
10822         enough.
10824         nanosleep: work around cygwin bug
10825         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
10826         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
10827         bug.
10828         (getnow): Delete, not needed.
10829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
10830         LIB_CLOCK_GETTIME.
10831         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
10832         clock-time, gettime.
10833         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
10834         bug.
10835         * modules/nanosleep-tests: New test.
10836         * tests/test-nanosleep.c: New file.
10838         sleep: work around cygwin bug
10839         * lib/sleep.c (rpl_sleep): Work around the bug.
10840         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
10841         (gl_PREREQ_SLEEP): Delete unused macro.
10842         * modules/sleep (Depends-on): Add verify.
10843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
10844         * modules/unistd (Makefile.am): Substitute witness.
10845         * lib/unistd.in.h (sleep): Update prototype.
10846         * doc/posix-functions/sleep.texi (sleep): Document the bug.
10847         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
10848         * modules/sleep-tests (Depends-on): Check for alarm.
10850 2009-11-20  Jim Meyering  <meyering@redhat.com>
10852         maint.mk: improve sc_prohibit_magic_number_exit
10853         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
10854         so it does not match uses like System.exit(1).
10855         Add comments showing how to correct all offenders.
10857 2009-11-19  Eric Blake  <ebb9@byu.net>
10859         xalloc-die-tests: add missing library
10860         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
10862         test-xvasprintf: silence compiler warnings
10863         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
10864         empty string from gcc.
10866 2009-11-19  Jim Meyering  <meyering@redhat.com>
10868         xfreopen: new module, from coreutils
10869         * modules/xfreopen: New module.
10870         * lib/xfreopen.c: New file.
10871         * lib/xfreopen.h: New file.
10872         * MODULES.html.sh (File stream based Input/Output"): Add it.
10874 2009-11-19  Eric Blake  <ebb9@byu.net>
10876         manywarnings: depend on warnings
10877         * modules/manywarnings (Depends-on): Add warnings.
10879         build: avoid compiler warnings
10880         * lib/select.c (rpl_select): Delete unused variable.
10881         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
10883 2009-11-18  Eric Blake  <ebb9@byu.net>
10885         tests: avoid false negative with --with-packager
10886         * tests/test-version-etc.sh: Discard packager information.
10887         * tests/test-argp-version-etc-1.sh: Likewise.
10888         Reported by Mike Frysinger.
10890         utimens: fix regression on Solaris
10891         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
10892         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
10893         can only change fd timestamps via futimesat.  Instead, use an
10894         additional witness macro to avoid BSD bug.
10895         Reported by Jim Meyering.
10897 2009-11-17  Eric Blake  <ebb9@byu.net>
10899         usleep: use it to simplify tests
10900         * modules/stat-time-tests (Depends-on): Add usleep.
10901         (configure.ac): Drop usleep check.
10902         * modules/chown-tests (Depends-on, configure.ac): Likewise.
10903         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
10904         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
10905         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
10906         * modules/openat-tests (Depends-on, configure.ac): Likewise.
10907         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
10908         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
10909         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
10910         Likewise.
10911         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
10912         * tests/test-lchown.h (nap): Likewise.
10913         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
10914         * tests/test-stat-time.c (nap): Likewise.
10915         * tests/test-utimens-common.h (nap): Update comments.
10917         usleep: new module
10918         * modules/usleep: New file.
10919         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10920         * lib/usleep.c (usleep): Likewise.
10921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10922         * modules/unistd (Makefile.am): Substitute witnesses.
10923         * lib/unistd.in.h (usleep): Add declaration.
10924         * doc/pastposix-functions/usleep.texi (usleep): Document this.
10925         * MODULES.html.sh (Date and time): Likewise.
10926         * modules/usleep-tests (Depends-on): New test.
10927         * tests/test-usleep.c: New file.
10929         chown: work around OpenBSD bug
10930         * lib/chown.c (rpl_chown): Work around the bug.
10931         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
10932         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
10933         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
10934         * modules/chown (Depends-on): Add stdbool.
10935         * modules/lchown (Depends-on): Likewise.
10936         * doc/posix-functions/chown.texi (chown): Document the bug.
10937         * doc/posix-functions/lchown.texi (lchown): Likewise.
10938         * tests/test-lchown.h (test_chown): Relax test.
10940         mkstemp: avoid conflict with C++ keyword template
10941         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
10942         * lib/mkostemp.c (mkostemp): Likewise.
10943         * lib/mkostemps.c (mkostemps): Likewise.
10944         * lib/mkstemp.c (mkstemp): Likewise.
10945         * lib/mkstemps.c (mkstemps): Likewise.
10947         xalloc-die-tests: optimize
10948         * tests/test-xalloc-die.sh: Reduce number of processes.
10950 2009-11-17  Simon Josefsson  <simon@josefsson.org>
10952         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
10953         patch from ludo@gnu.org (Ludovic Courtès).
10955 2009-11-17  Jim Meyering  <meyering@redhat.com>
10957         version-etc: use proper license string
10958         * modules/version-etc (License): Use LGPL, not LGPLv3+.
10959         * modules/version-etc-fsf: Likewise.
10961 2009-11-17  Simon Josefsson  <simon@josefsson.org>
10963         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
10964         printed to stdout.  Deal with EOL differences.
10966 2009-11-17  Eric Blake  <ebb9@byu.net>
10968         unsetenv: work around Solaris bug
10969         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
10970         * lib/unsetenv.c (rpl_unsetenv): Work around it.
10971         Reported by Jim Meyering.
10973         vasnprintf: avoid compiler warnings
10974         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
10975         variables.
10976         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
10978 2009-11-17  Simon Josefsson  <simon@josefsson.org>
10980         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
10981         settings since xalloc-die is no longer the self test,
10982         xalloc-die.sh is.
10984 2009-11-17  Jim Meyering  <meyering@redhat.com>
10986         test-xalloc-die.sh: make the code agree with the commit log
10987         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
10988         at the end, just in case you happen to have a test-xalloc-die
10989         program in some other PATH directory.
10991         test-xalloc-die.sh: fix a portability bug
10992         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
10993         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
10994         Otherwise, argv[0] (as often seen in diagnostics) would be too
10995         system-dependent, sometimes with, and sometimes without the leading "./".
10997         version-etc-fsf: relax license to LGPLv3+
10998         * modules/version-etc-fsf (License): Relax license.
11000 2009-11-16  Eric Blake  <ebb9@byu.net>
11002         xalloc-die-tests: avoid printing null pointer
11003         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11004         shell script.
11005         * tests/test-xalloc-die.c (program_name): Declare.
11006         * tests/test-xalloc-die.sh (tmpfiles): New file.
11008         setenv, unsetenv: work around various bugs
11009         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11010         (setenv) [HAVE_SETENV]: Work around bugs.
11011         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11012         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11013         for bugs.
11014         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11015         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11017         * modules/stdlib (Makefile.am): Update substitutions.
11018         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11019         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11020         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11021         * modules/setenv-tests: New test.
11022         * modules/unsetenv-tests: Likewise.
11023         * tests/test-setenv.c: New file.
11024         * tests/test-unsetenv.c: Likewise.
11026 2009-11-16  Jim Meyering  <meyering@redhat.com>
11028         version-etc: relax license to LGPLv3+
11029         * modules/version-etc (License): Relax license.
11031         better AC_REQUIRE expanded-before-required-warning avoidance
11032         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11033         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11034         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11035         which is no longer needed.
11037 2009-11-16  Eric Blake  <ebb9@byu.net>
11039         test-freading: clean up temporary file
11040         * tests/test-freading.c (main): Remove file on success, and use
11041         ASSERT more liberally.
11042         Reported by Jim Meyering.
11044 2009-11-16  Jim Meyering  <meyering@redhat.com>
11046         avoid new AC_REQUIRE expanded-before-required warnings
11047         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11048         merely using it.
11049         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11050         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11052 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11054         * tests/test-xalloc-die.c: New file.
11055         * modules/xalloc-die-tests: New file.
11056         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11057         XFAIL_TESTS so it can be appended by modules.
11059 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11061         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11062         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11064 2009-11-14  Eric Blake  <ebb9@byu.net>
11066         fnmatch: avoid compiler warning
11067         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11068         to silence compiler warning about mismatch signedness in ?:.
11069         Reported by Robert Millan.
11071         intprops: add double-inclusion guard
11072         * lib/intprops.h: Allow idempotent includes.
11073         Suggested by Bruce Korb.
11075         openat: detect Solaris fchownat bug
11076         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11077         penalizing glibc chownat when only lchownat is broken.
11078         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11079         trailing slash bugs.
11080         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11081         * modules/openat-tests (Files): Include more files.
11082         (Depends-on): Add mgetgroups, sleep, stat-time.
11083         (configure.ac): Add additional checks.
11084         (Makefile.am): Build new test.
11085         * tests/test-fchownat.c: New file.
11087         lchown: detect Solaris and FreeBSD bug
11088         * lib/lchown.c (rpl_lchown): Work around bug.
11089         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11091         * modules/unistd (Makefile.am): Populate it.
11092         * lib/unistd.in.h (lchown): Update declaration.
11093         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11094         * modules/lchown-tests: New file.
11095         * tests/test-lchown.h (test_lchown): Likewise.
11096         * tests/test-lchown.c (main): Likewise.
11098         chown: detect Solaris and FreeBSD bug
11099         * lib/chown.c (rpl_chown): Work around bug.
11100         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11101         (gl_PREREQ_CHOWN): Delete.
11102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11103         * modules/unistd (Makefile.am): Populate it.
11104         * lib/unistd.in.h (chown): Update declaration.
11105         * lib/lchown.c (chown): Update client.
11106         * modules/lchown (Depends-on): Add lstat.
11107         * doc/posix-functions/chown.texi (chown): Document the bug.
11108         * doc/posix-functions/getgroups.texi (getgroups): Document
11109         getgroups pitfall.
11110         * modules/chown-tests: New file.
11111         * tests/test-chown.h (test_chown): Likewise.
11112         * tests/test-chown.c (main): Likewise.
11114 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11116         gnulib-tool: correctly detect absence of m4 directories
11117         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11119 2009-11-14  Jim Meyering  <meyering@redhat.com>
11121         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11122         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11124 2009-11-14  John W. Eaton  <jwe@gnu.org>
11126         strftime.h: wrap funtion declaration in extern "C" block
11127         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11129 2009-11-13  Eric Blake  <ebb9@byu.net>
11131         getgroups: avoid compiler warning
11132         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11134         getgroups: work around FreeBSD bug
11135         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11136         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11137         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11138         * tests/test-getgroups.c (main): Fix buffer overrun.
11140         getgroups: avoid compilation failure
11141         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11142         * modules/getgroups (Depends-on): Add stdint.
11144 2009-11-13  Jim Meyering  <meyering@redhat.com>
11146         test-getgroups: avoid compilation failure
11147         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11149 2009-11-13  Eric Blake  <ebb9@byu.net>
11151         mgetgroups: new module, taken from coreutils
11152         * modules/mgetgroups: New file.
11153         * lib/mgetgroups.h: Likewise.
11154         * lib/mgetgroups.c (mgetgroups): Likewise.
11155         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11156         * MODULES.html.sh (Users and groups): Mention it.
11158         getgroups: don't expose GETGROUPS_T to user
11159         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11160         an element at a time if GETGROUPS_T is wrong size.
11161         * lib/getugroups.h (getugroups): Change signature.
11162         * lib/unistd.in.h (getgroups): Likewise.
11163         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11164         signature needs fixing.
11165         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11166         AC_TYPE_GETGROUPS.
11167         * modules/group-member (Depends-on): Add getgroups.
11168         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11169         (group_member): Rely on getgroups replacement.
11170         * lib/getugroups.c (getugroups): Use gid_t.
11171         * tests/test-getgroups.c (main): Likewise.
11172         * NEWS: Mention the signature change.
11173         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11174         problem with signature.
11175         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11176         GETGROUPS_T is still useful for setgroups.
11178         getgroups, getugroups: provide stubs for mingw
11179         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11180         * lib/getugroups.c (getugroups): Likewise.
11181         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11182         function.  Modernize replacement scheme.
11183         (gl_PREREQ_GETGROUPS): Delete.
11184         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11185         * modules/getgroups (configure.ac): Declare witness.
11186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11187         * modules/unistd (Depends-on): Substitute witness.
11188         * lib/unistd.in.h (getgroups): Declare replacement.
11190         getgroups: avoid calling exit
11191         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11192         drop xalloc.
11193         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11194         dependencies.
11195         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11196         exiting, in the rare case of malloc failure.
11198         getgroups: fix logic error
11199         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11200         has more than 20 groups.
11201         * modules/getgroups-tests: New test.
11202         * tests/test-getgroups.c: New file.
11204 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11206         * tests/test-base64.c: Improve.
11208 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11210         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11211         Blake <ebb9@byu.net>.
11213 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11215         * tests/test-xvasprintf.c: Add %s%s related checks.
11217 2009-11-12  Eric Blake  <ebb9@byu.net>
11219         version-etc: match standards.texi style
11220         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11221         and use <> only for URLs.
11223 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11225         fts: do not fail on a submount during traversal
11226         * lib/fts.c (fts_build): Read the stat info again after opening
11227         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11228         Original report at http://bugzilla.redhat.com/501848.
11230 2009-11-12  Jim Meyering  <meyering@redhat.com>
11232         bootstrap: sync from coreutils
11233         * build-aux/bootstrap (bootstrap_epilogue): New function.
11234         Use git_modules_config in one more place.  This make bootstrap's
11235         --gnulib-srcdir option more useful for testing.
11237         bootstrap: generalize autoheader check
11238         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11239         AC_CONFIG_HEADERS.
11241 2009-11-11  Eric Blake  <ebb9@byu.net>
11243         mkfifoat: use new modules for Solaris and BSD bugs
11244         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11245         * lib/mkfifoat.c (mknodat): Split...
11246         * lib/mknodat.c (mknodat): ...into new file.
11247         * modules/mkfifoat (Files): Ship new file.
11248         (Depends-on): Add mkfifo, mknod.
11249         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11250         (Depends-on): Add symlink.
11251         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11252         redundant with test_mkfifo.h.
11253         (do_mkfifoat, do_mknodat): New helpers.
11255         mknod: new module
11256         * modules/mknod: New file.
11257         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11258         * lib/mknod.c (mknod): Likewise.
11259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11260         defaults.
11261         * modules/sys_stat (Makefile.am): Substitute them.
11262         * lib/sys_stat.in.h (mknod): Declare replacement.
11263         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11264         Document it.
11265         * doc/posix-functions/mknod.texi (mknod): Likewise.
11266         * modules/mknod-tests: New test.
11267         * tests/test-mknod.c: Likewise.
11269         mkfifo: new module
11270         * modules/mkfifo: New file.
11271         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11272         * lib/mkfifo.c (mkfifo): Likewise.
11273         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11274         defaults.
11275         * modules/sys_stat (Makefile.am): Substitute them.
11276         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11277         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11278         Document it.
11279         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11280         * modules/mkfifo-tests: New test.
11281         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11282         from test-mkfifoat.c.
11283         * tests/test-mkfifo.c: New file.
11285         readlink: detect FreeBSD bug
11286         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11287         slash on symlink.
11288         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11289         * tests/test-readlink.h (test_readlink): Enhance test.
11291         symlink: detect FreeBSD bug
11292         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11293         slash on symlink.
11294         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11295         * tests/test-symlink.h (test_symlink): Enhance test.
11297 2009-11-10  Eric Blake  <ebb9@byu.net>
11299         link: detect FreeBSD bug
11300         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11301         symlink.
11302         * doc/posix-functions/link.texi (link): Document the bug.
11303         * tests/test-link.h (test_link): Enhance test.
11304         * tests/test-linkat.c (main): Update caller.
11306         unlink, remove: detect FreeBSD bug
11307         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
11308         slash on symlink.
11309         * doc/posix-functions/unlink.texi (unlink): Document the bug.
11310         * doc/posix-functions/remove.texi (remove): Likewise.
11311         * tests/test-unlink.h (test_unlink): Enhance test.
11312         * tests/test-remove.c (main): Likewise.
11314 2009-11-09  Eric Blake  <ebb9@byu.net>
11316         rename: detect FreeBSD bug
11317         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
11318         slash on symlink.
11319         * modules/renameat-tests (Depends-on): Add filenamecat.
11320         * tests/test-rename.h (test_rename): Allow one more errno.
11321         * tests/test-renameat.c (main): Likewise.
11322         * doc/posix-functions/rename.texi (rename): Document the bug.
11324         open: detect FreeBSD bug
11325         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
11326         symlink.
11327         * doc/posix-functions/open.texi (open): Document the bug.
11328         * doc/posix-functions/utimes.texi (utimes): Likewise.
11329         * tests/test-open.h (test_open): Add parameters, and test symlink
11330         handling.
11331         * tests/test-open.c (main): Adjust caller.
11332         * tests/test-fcntl-safer.c (main): Likewise.
11333         * modules/open-tests (Depends-on): Add stdbool, symlink.
11334         * modules/fcntl-safer-tests (Depends-on): Likewise.
11335         * tests/test-openat.c (main): Add test-open tests.
11337         stat: detect FreeBSD bug
11338         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
11339         symlink.
11340         * doc/posix-functions/stat.texi (stat): Document the bug.
11341         * tests/test-stat.h (test_stat_func): Add argument.
11342         * tests/test-stat.c (main): Adjust caller.
11343         * tests/test-fstatat.c (main): Likewise.
11344         * modules/stat-tests (Depends-on): Add stdbool, symlink.
11345         Reported by Jim Meyering.
11347 2009-11-09  James Youngman  <jay@gnu.org>
11349         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
11350         * lib/strftime.c: Correct placement of #include "ignore-value.h".
11352 2009-11-08  Jim Meyering  <meyering@redhat.com>
11354         utimens: remove invalid futimesat call
11355         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
11356         It used the file descriptor of the target file as the DIR_FD
11357         parameter and NULL as the file name.  That caused failure with
11358         errno == EFAULT on FreeBSD-8.0-rc2
11360 2009-11-07  Eric Blake  <ebb9@byu.net>
11362         fflush, freadseek: use fseeko, not fseek
11363         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11364         (clear_ungetc_buffer): Avoid potential problems on large files.
11365         * lib/freadseek.c (freadseek): Likewise.
11366         * modules/freadseek (Depends-on): Add fseeko.
11367         * modules/fseek (configure.ac): Set a witness.
11368         * tests/test-fflush.c (main): Use fseeko.
11369         * tests/test-fpurge.c (fseek): Disable link warning.
11370         * tests/test-freadable.c (fseek): Likewise.
11371         * tests/test-freading.c (fseek): Likewise.
11372         * tests/test-fseeko.c (fseek): Likewise.
11373         * tests/test-ftell.c (fseek): Likewise.
11374         * tests/test-ftello.c (fseek): Likewise.
11375         * tests/test-fwritable.c (fseek): Likewise.
11376         * tests/test-fwriting.c (fseek): Likewise.
11378 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11380         * modules/memchr (Depends-on): Drop getpagesize dependency.
11382 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11384         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
11385         Reported by Ludovic Courtès.
11386         * build-aux/pmccabe2html: Improve example usage.
11387         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
11389 2009-11-06  Jim Meyering  <meyering@redhat.com>
11391         do-release-commit-and-tag: New module.
11392         Automate the release-commit and tag process.
11393         * build-aux/do-release-commit-and-tag: New script, from coreutils.
11394         * modules/do-release-commit-and-tag: New file.
11395         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11397 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11399         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
11400         because test-select.c uses inet_pton.
11402 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11404         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
11405         GETADDRINFO_LIB.  Bump serial number.
11406         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
11407         Suggested by Eric Blake <ebb9@byu.net>.
11409 2009-11-05  Eric Blake  <ebb9@byu.net>
11411         strtod: detect darwin bug
11412         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
11413         Reported by Leo Davis.
11415         freopen-safer: new module
11416         * modules/freopen-safer: New module.
11417         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
11418         * lib/freopen-safer.c (freopen_safer): New file.
11419         * lib/stdio-safer.h (freopen_safer): New declaration.
11420         * lib/stdio--.h (freopen): New override.
11421         * MODULES.html.sh (File stream based Input/Output): Mention it.
11422         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
11423         freopen-safer module.
11424         * doc/posix-functions/stderr.texi (stderr): Likewise.
11425         * doc/posix-functions/stdin.texi (stdin): Likewise.
11426         * doc/posix-functions/stdout.texi (stdout): Likewise.
11427         * modules/freopen-safer-tests: New test.
11428         * tests/test-reopen-safer.c: New file.
11430 2009-11-05  Jim Meyering  <meyering@redhat.com>
11432         maint.mk: Prohibit inclusion of "close-stream.h" without use.
11433         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11435 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11437         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
11439 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11441         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
11443 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11445         Fix link error.
11446         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11447         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11449 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11451         * tests/test-func.c: Also test value of __func__.
11453 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11455         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
11456         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
11458 2009-11-05  Bruno Haible  <bruno@clisp.org>
11460         Fix link error.
11461         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11462         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11463         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
11465 2009-11-05  Bruno Haible  <bruno@clisp.org>
11467         Tests for module 'inet_pton'.
11468         * modules/inet_pton-tests: New file.
11469         * tests/test-inet_pton.c: New file.
11471 2009-11-05  Bruno Haible  <bruno@clisp.org>
11473         Tests for module 'inet_ntop'.
11474         * modules/inet_ntop-tests: New file.
11475         * tests/test-inet_ntop.c: New file.
11477 2009-11-04  Eric Blake  <ebb9@byu.net>
11479         stdlib-safer: wrap all mkstemp variants
11480         * modules/mkostemp (configure.ac): Set witness.
11481         * modules/mkostemps (configure.ac): Likewise.
11482         * modules/mkstemps (configure.ac): Likewise.
11483         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
11484         (mkstemps_safer): Wrap more functions.
11485         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
11486         wrapping.
11487         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
11488         (mkstemps_safer): Implement the wrappers.
11490         mkstemps, mkostemps: new modules
11491         * modules/mkostemps: New module.
11492         * modules/mkstemps: Likewise.
11493         * lib/mkostemps.c (mkostemps): New file.
11494         * lib/mkstemps.c (mkstemps): Likewise.
11495         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
11496         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
11497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
11498         * modules/stdlib (Makefile.am): Substitute them.
11499         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
11500         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
11501         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11502         * doc/gnulib.texi (Glibc stdlib.h): Include them.
11503         * MODULES.html.sh (File system functions): Mention them.
11505         tempname: resync from glibc
11506         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
11507         same values for __GT_FILE as glibc.  Abort even when assertions
11508         are disabled.
11509         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
11510         match its value otherwise.  Allow idempotent inclusion.
11511         * lib/mkdtemp.c (mkdtemp): Adjust caller.
11512         * lib/mkostemp.c (mkostemp): Likewise.
11513         * lib/mkstemp.c (mkstemp): Likewise.
11514         * lib/tmpfile.c (tmpfile): Likewise.
11515         * NEWS: Document this.
11517         utimens: fix use of futimens on older Linux
11518         * lib/utimens.c (fdutimens): Use updated, rather than original,
11519         timespec to avoid bug in older Linux kernel.
11520         Reported by Simon Josefsson.
11522 2009-11-04  Bruno Haible  <bruno@clisp.org>
11524         Make num_processors more flexible and consistent.
11525         * lib/nproc.h (enum nproc_query): New type.
11526         (num_processors): Add a 'query' argument.
11527         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
11528         (num_processors): Add a 'query' argument. Test the value of the
11529         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
11530         mingw, count the number of CPUs available for the current process.
11531         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
11532         Check for sched_getaffinity and sched_getaffinity_np.
11533         * modules/nproc (Depends-on): Add c-ctype, extensions.
11534         * NEWS: Mention the change.
11536 2009-11-03  Bruno Haible  <bruno@clisp.org>
11538         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
11540 2009-11-03  Jim Meyering  <meyering@redhat.com>
11542         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
11543         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
11544         if it is defined.
11546 2009-11-02  Eric Blake  <ebb9@byu.net>
11548         mktime, timegm: share common declaration
11549         * lib/mktime-internal.h: New file.
11550         * lib/mktime.c: Use it rather than open-coding a declaration.
11551         * lib/timegm.c: Likewise.
11552         * modules/mktime (Files): Ship it.
11553         * modules/timegm (Files): Likewise.
11554         Suggested by Bruno Haible.
11556         test-update-copyright: update test to match script changes
11557         * tests/test-update-copyright.sh: Avoid hard-coding perl
11558         location.  Don't update *.bak created by earlier runs.
11560 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11561             Simon Josefsson  <simon@josefsson.org>
11562             Bruno Haible  <bruno@clisp.org>
11564         Fix link error on Solaris 8.
11565         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
11566         also in libnsl. Define also INET_PTON_LIB.
11567         * modules/inet_pton (Link): New section.
11569 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11570             Bruno Haible  <bruno@clisp.org>
11572         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
11573         * modules/inet_ntop (Link): New section.
11574         Reported by Boyan Kasarov <bkasarov@gmail.com>.
11576 2009-11-02  Eric Blake  <ebb9@byu.net>
11578         maint: avoid compiler warnings in m4 macros
11579         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
11580         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
11582 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11584         * m4/pmccabe2html.m4: Remove file.
11585         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
11586         function.  Change maintainer.
11587         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
11588         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
11589         Courtès).
11591 2009-10-31  Eric Blake  <ebb9@byu.net>
11593         fseeko: fix m4 regression
11594         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
11595         regression from 2009-10-27.
11596         Reported by Ralf Wildenhues.
11598 2009-10-31  Jim Meyering  <meyering@redhat.com>
11600         inttostr: aesthetics and improved (compile-time) safety
11601         Define inttype_is_signed rather than inttype_is_unsigned,
11602         since the sole use is via "#if inttype_is_signed".
11603         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
11604         inttype_is_unsigned.
11605         * lib/offtostr.c (inttype_is_signed): Likewise.
11606         * lib/uinttostr.c (inttype_is_signed): Likewise.
11607         * lib/umaxtostr.c (inttype_is_signed): Likewise.
11608         * lib/inttostr.c (inttostr): Use verify to cross-check the
11609         inttype_is_signed value and the signedness of the actual type.
11610         * modules/inttostr (Depends-on): Add verify.
11612 2009-10-30  Eric Blake  <ebb9@byu.net>
11614         build: avoid compiler warnings
11615         * lib/fchmodat.c (lchmod): Mark unused variables.
11616         * lib/getopt.c (_getopt_initialize): Likewise.
11617         * lib/mktime.c (__mktime_internal): Provide prototype.
11618         * lib/inttostr.c (inttostr): Avoid compiler warning even with
11619         older gcc that do not understand #pragma GCC diagnostic.
11620         * lib/uinttostr.c (inttype_is_unsigned): Define.
11621         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
11623 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11625         stat: fix compilation on AIX
11626         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
11627         only see struct stat64.
11629 2009-10-30  Eric Blake  <ebb9@byu.net>
11631         exclude: make more robust
11632         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
11633         rather than masking a coding bug.
11634         Suggested by Bruno Haible.
11636 2009-10-30  Jim Meyering  <meyering@redhat.com>
11638         perl scripts: remove #!/usr/bin/perl in favor of more portable...
11639         Rather than putting #!/usr/bin/perl on the first line,
11640         start with a variant of what's recommended by "man perlrun" that
11641         invokes the first "perl" program from your shell's search path.
11642         * build-aux/gitlog-to-changelog: Replace #!... as above.
11643         Add a "Local Variables" perl mode setting.
11644         Prompted by a patch from Ludovic Courtès.
11645         Improved by Eric Blake.
11646         * build-aux/useless-if-before-free: Likewise.
11647         * build-aux/announce-gen: Likewise.
11648         * build-aux/update-copyright: Likewise.
11650 2009-10-29  Eric Blake  <ebb9@byu.net>
11652         filenamecat-lgpl: adjust clients
11653         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
11654         filenamecat.
11655         * modules/renameat (Depends-on): Likewise.
11657         filenamecat: split into filenamecat-lgpl
11658         * modules/filenamecat-lgpl: New module.
11659         * modules/filenamecat (Files): Move library-safe files into
11660         filenamecat-lgpl.
11661         (Depends-on): Add filenamecat-lgpl.
11662         (configure.ac): Declare witness.
11663         * lib/filenamecat.h (file_name_concat): Only declare when using
11664         GPL module.
11665         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
11666         Move...
11667         * lib/filenamecat-lgpl.c: ...into new file.
11668         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
11669         (gl_FILE_NAME_CONCAT): Use it.
11670         * MODULES.html.sh (File system functions): Mention new module.
11672         argp: avoid memory leak
11673         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
11674         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
11675         base_name, since the latter malloc()s and can call exit().
11676         Leak introduced 2006-07-03.
11678         dirname-lgpl: adjust clients that don't need full dirname
11679         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
11680         * modules/filenamecat (Depends-on): Likewise.
11681         * modules/linkat (Depends-on): Likewise.
11682         * modules/mkancesdirs (Depends-on): Likewise.
11683         * modules/mkdir (Depends-on): Likewise.
11684         * modules/openat (Depends-on): Likewise.
11685         * modules/savewd (Depends-on): Likewise.
11686         * modules/rename (Depends-on): Likewise.
11687         (License): Relax license.
11688         * modules/mkdir-tests (Depends-on): Drop progname.
11689         (Makefile.am): Delete unneeded LDADD.
11690         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
11692         dirname: split into dirname-lgpl
11693         * modules/dirname-lgpl: New module.
11694         * modules/dirname (Files): Move library-safe files into
11695         dirname-lgpl.
11696         (Depends-on): Add dirname-lgpl.
11697         (configure.ac): Declare witness.
11698         * modules/double-slash-root (License): Relax license.
11699         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
11700         module.
11701         * lib/dirname.c (dir_len, mdir_name): Move...
11702         * lib/dirname-lgpl.c: ...into new file.
11703         * lib/basename.c (last_component, base_len): Move...
11704         * lib/basename-lgpl.c: ...into new file.
11705         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
11706         (gl_DIRNAME): Use it.
11707         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
11708         Mention new module.
11709         * modules/dirname-tests (Depends-on): Add progname.
11710         * tests/test-dirname.c (program_name): Delete.
11712         mkdir: make safe for libraries
11713         * modules/mkdir (Depends-on): Drop xalloc.
11714         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
11715         exit.
11717         tests: avoid some compiler warnings
11718         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
11719         literals.
11720         * tests/test-memchr.c (main): Avoid type mismatch.
11721         * tests/test-arpa_inet.c (main): Avoid unused parameters.
11722         * tests/test-base64.c (main): Likewise.
11723         * tests/test-getdelim.c (main): Likewise.
11724         * tests/test-gethostname.c (main): Likewise.
11725         * tests/test-getline.c (main): Likewise.
11726         * tests/test-netinet_in.c (main): Likewise.
11727         * tests/test-select.c (open_server_socket, main): Likewise.
11728         * tests/test-select-stdin.c (main): Likewise.
11729         * tests/test-sockets.c (main): Likewise.
11730         * tests/test-strsignal.c (main): Likewise.
11731         * tests/test-sys_select.c (main): Likewise.
11732         * tests/test-sys_socket.c (main): Likewise.
11733         * tests/test-u64.c (main): Likewise.
11734         * tests/test-xfprintf-posix.c (main): Likewise.
11735         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
11737         sockets: avoid compiler warning
11738         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
11740         maint: detect usage(1) and other suspicious exits
11741         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
11743 2009-10-29  Jim Meyering  <meyering@redhat.com>
11745         timespec: long-to-int truncation could make timespec_cmp malfunction
11746         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
11747         a multiple of 2^32 nanoseconds as no difference.
11749 2009-10-28  Jim Meyering  <meyering@redhat.com>
11751         fprintftime: wrap macro code argument in "do {...} while(0)"
11752         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
11753         cpy macro must be a statement that can be followed by a semicolon.
11754         Now that the else clause contains a comment and is hence longer
11755         than one line, I require curly braces.  That in turn requires
11756         that we wrap this code block in the standard do...while(0).
11758         fprintftime: remove stray semicolon from previous change
11759         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
11761         fprintftime: avoid a warning about ignored fwrite return value
11762         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
11763         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
11764         that is unsafe.
11765         * modules/fprintftime (Depends-on): Add ignore-value.
11767         exclude: avoid an unwarranted warning
11768         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
11770 2009-10-27  Eric Blake  <ebb9@byu.net>
11772         fseek: avoid compilation failure when fflush is replaced
11773         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
11774         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
11775         module is in use.
11776         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
11777         module is not in use; since REPLACE_FSEEK worked otherwise.
11778         (GNULIB_FTELLO): Likewise for ftell.
11779         Reported by Ian Beckwith and others.
11781 2009-10-27  Bruno Haible  <bruno@clisp.org>
11783         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
11784         Reported by Jim Meyering.
11786 2009-10-27  Jim Meyering  <jim@meyering.net>
11787             Bruno Haible  <bruno@clisp.org>
11789         Avoid warning despite dropping the return value of fwrite.
11790         * lib/unicodeio.c: Include ignore-value.h.
11791         (fwrite_success_callback): Explicitly ignore fwrite's return value.
11792         * modules/unicodeio (Depends-on): Add ignore-value.
11794 2009-10-26  Eric Blake  <ebb9@byu.net>
11796         areadlinkat: fix fallback path
11797         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
11798         pointer and zero.
11800 2009-10-22  Pádraig Brady  <P@draigBrady.com>
11802         Use a better IO block size for modern systems
11803         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
11804         * lib/md2.c: Likewise.
11805         * lib/md4.c: Likewise.
11806         * lib/md5.c: Likewise.
11807         * lib/sha1.c: Likewise.
11808         * lib/sha256.c: Likewise.
11809         * lib/sha512.c: Likewise.
11811 2009-10-22  Eric Blake  <ebb9@byu.net>
11813         tests: avoid several compiler warnings
11814         * tests/test-getcwd.c (main): Avoid buffer underflow.
11815         * tests/test-getdate.c (main): String literals are not safe with
11816         putenv, so use setenv.  Declare unused argument.
11817         * modules/getdate-tests (Depends-on): Add setenv.
11818         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
11819         problems with string literals in char *.
11820         * tests/test-hash.c (main): Avoid shadowing declaration.
11821         (insert_new): Treat string literals as char const *.
11822         * tests/test-getopt.h (test_getopt): Likewise.
11823         (getopt_loop): Alter types to minimize casting elsewhere.
11824         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
11825         (test_getopt_long_posix): Likewise.
11826         (do_getopt_long): Add wrapper to minimize casting.
11827         * tests/test-atexit.c (clear_temp_file): Use void.
11828         * tests/test-areadlink-with-size.c (main): Declare unused
11829         arguments.
11830         * tests/test-areadlink.c (main): Likewise.
11831         * tests/test-areadlinkat-with-size.c (main): Likewise.
11832         * tests/test-areadlinkat.c (main): Likewise.
11833         * tests/test-canonicalize-lgpl.c (main): Likewise.
11834         * tests/test-canonicalize.c (main): Likewise.
11835         * tests/test-dirent-safer.c (main): Likewise.
11836         * tests/test-dirname.c (main): Likewise.
11837         * tests/test-dup2.c (main): Likewise.
11838         * tests/test-fchdir.c (main): Likewise.
11839         * tests/test-fcntl-h.c (main): Likewise.
11840         * tests/test-fcntl-safer.c (main): Likewise.
11841         * tests/test-fdopendir.c (main): Likewise.
11842         * tests/test-fdutimensat.c (main): Likewise.
11843         * tests/test-fflush.c (main): Likewise.
11844         * tests/test-filenamecat.c (main): Likewise.
11845         * tests/test-filevercmp.c (main): Likewise.
11846         * tests/test-fopen-safer.c (main): Likewise.
11847         * tests/test-fopen.c (main): Likewise.
11848         * tests/test-fpending.c (main): Likewise.
11849         * tests/test-fpurge.c (main): Likewise.
11850         * tests/test-freading.c (main): Likewise.
11851         * tests/test-fstatat.c (main): Likewise.
11852         * tests/test-fsync.c (main): Likewise.
11853         * tests/test-futimens.c (main): Likewise.
11854         * tests/test-getndelim2.c (main): Likewise.
11855         * tests/test-gettimeofday.c (main): Likewise.
11856         * tests/test-getopt.c (main): Likewise.
11857         * tests/test-i-ring.c (main): Likewise.
11858         * tests/test-inttypes.c (main): Likewise.
11859         * tests/test-link.c (main): Likewise.
11860         * tests/test-lstat.c (main): Likewise.
11861         * tests/test-math.c (main): Likewise.
11862         * tests/test-md5.c (main): Likewise.
11863         * tests/test-memchr2.c (main): Likewise.
11864         * tests/test-memrchr.c (main): Likewise.
11865         * tests/test-mkdir.c (main): Likewise.
11866         * tests/test-mkdirat.c (main): Likewise.
11867         * tests/test-mkfifoat.c (main): Likewise.
11868         * tests/test-open.c (main): Likewise.
11869         * tests/test-openat-safer.c (main): Likewise.
11870         * tests/test-openat.c (main): Likewise.
11871         * tests/test-quotearg.c (main): Likewise.
11872         * tests/test-rawmemchr.c (main): Likewise.
11873         * tests/test-readlink.c (main): Likewise.
11874         * tests/test-remove.c (main): Likewise.
11875         * tests/test-rename.c (main): Likewise.
11876         * tests/test-renameat.c (main): Likewise.
11877         * tests/test-rmdir.c (main): Likewise.
11878         * tests/test-sha1.c (main): Likewise.
11879         * tests/test-signal.c (main): Likewise.
11880         * tests/test-sigaction.c (main): Likewise.
11881         * tests/test-stat.c (main): Likewise.
11882         * tests/test-stat-time.c (main): Likewise.
11883         * tests/test-stddef.c (main): Likewise.
11884         * tests/test-stdint.c (main): Likewise.
11885         * tests/test-stdio.c (main): Likewise.
11886         * tests/test-stdlib.c (main): Likewise.
11887         * tests/test-strchrnul.c (main): Likewise.
11888         * tests/test-strerror.c (main): Likewise.
11889         * tests/test-string.c (main): Likewise.
11890         * tests/test-strtod.c (main): Likewise.
11891         * tests/test-strverscmp.c (main): Likewise.
11892         * tests/test-symlink.c (main): Likewise.
11893         * tests/test-symlinkat.c (main): Likewise.
11894         * tests/test-sys_stat.c (main): Likewise.
11895         * tests/test-sys_time.c (main): Likewise.
11896         * tests/test-time.c (main): Likewise.
11897         * tests/test-unistd.c (main): Likewise.
11898         * tests/test-unlink.c (main): Likewise.
11899         * tests/test-unlinkat.c (main): Likewise.
11900         * tests/test-utimens.c (main): Likewise.
11901         * tests/test-utimensat.c (main): Likewise.
11902         * tests/test-version-etc.c (main): Likewise.
11903         * tests/test-wchar.c (main): Likewise.
11904         * tests/test-wctype.c (main): Likewise.
11905         * tests/test-xprintf-posix.c (main): Likewise.
11906         * tests/test-posixtm.c (main): Likewise.
11907         (STREQ): Delete unused macro.
11908         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
11909         shadowed variables.
11910         * tests/test-memchr.c (main): Likewise.
11912 2009-10-21  Eric Blake  <ebb9@byu.net>
11914         areadlinkat: avoid failure on older glibc
11915         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
11916         rather than mis-comparing 0 against FUNC_RESULT of char*.
11918 2009-10-21  Bruno Haible  <bruno@clisp.org>
11920         * modules/stpncpy (License): Relicense under LGPLv2+.
11921         Reported by David Lutterkort <lutter@redhat.com>.
11923 2009-10-20  Eric Blake  <ebb9@byu.net>
11925         utimensat: work around Solaris 9 bug
11926         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
11927         has trailing slash bugs.
11928         * tests/test-lutimens.h (test_lutimens): Enhance test.
11929         * tests/test-utimens.h (test_utimens): Likewise.
11930         * doc/posix-functions/utime.texi (utime): Enhance documentation.
11931         * doc/posix-functions/utimes.texi (utimes): Likewise.
11932         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11933         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
11934         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
11935         * doc/posix-functions/futimens.texi (futimens): Likewise.
11937         fdutimensat: new module
11938         * modules/fdutimensat: New file.
11939         * lib/fdutimensat.c (fdutimensat): Likewise.
11940         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
11941         * MODULES.html.sh (File system functions): Mention module.
11942         * modules/fdutimensat-tests: New test.
11943         * tests/test-fdutimensat.c: Likewise.
11945         doc: regenerate INSTALL
11946         * doc/INSTALL: Reflect recent autoconf update.
11947         * doc/INSTALL.ISO: Likewise.
11948         * doc/INSTALL.UTF-8: Likewise.
11950 2009-10-20  Pádraig Brady  <P@draigBrady.com>
11952         acl: warn if ACL support is not detected
11953         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
11955 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
11957         * lib/nproc.h: Add extern "C" block for C++.
11959 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
11960             Bruno Haible  <bruno@clisp.org>
11962         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
11963         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
11964         * doc/posix-functions/isalpha.texi: Likewise.
11965         * doc/posix-functions/isblank.texi: Likewise.
11966         * doc/posix-functions/iscntrl.texi: Likewise.
11967         * doc/posix-functions/isdigit.texi: Likewise.
11968         * doc/posix-functions/isgraph.texi: Likewise.
11969         * doc/posix-functions/islower.texi: Likewise.
11970         * doc/posix-functions/isprint.texi: Likewise.
11971         * doc/posix-functions/ispunct.texi: Likewise.
11972         * doc/posix-functions/isspace.texi: Likewise.
11973         * doc/posix-functions/isupper.texi: Likewise.
11974         * doc/posix-functions/isxdigit.texi: Likewise.
11976 2009-10-18  Bruno Haible  <bruno@clisp.org>
11978         Tests for module 'isblank'.
11979         * modules/isblank-tests: New file.
11980         * tests/test-isblank.c: New file.
11982         New module 'isblank'.
11983         * lib/isblank.c: New file.
11984         * m4/isblank.m4: New file.
11985         * modules/isblank: New file.
11986         * doc/posix-functions/isblank.texi: Mention the new module.
11988 2009-10-18  Bruno Haible  <bruno@clisp.org>
11990         New module 'ctype'.
11991         * lib/ctype.in.h: New file.
11992         * m4/ctype.m4: New file.
11993         * modules/ctype: New file.
11994         * doc/posix-headers/ctype.texi: Mention the new module.
11996 2009-10-18  Jim Meyering  <meyering@redhat.com>
11998         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
11999         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12000         right after its initialization, rather than farther down.
12001         Keeping these in close proximity makes it easier to ensure
12002         that each such variable is initialized.  E.g.,
12004             LIB_CLOCK_GETTIME=
12005             AC_SUBST([LIB_CLOCK_GETTIME])
12007         This change also increments these serial numbers.
12008         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12009         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12012 2009-10-18  Bruno Haible  <bruno@clisp.org>
12014         Don't let environment variables perturb build.
12015         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12016         (gl_PREREQ_GETHRXTIME): ... not here.
12018 2009-10-18  Bruno Haible  <bruno@clisp.org>
12020         Avoid symlink attack in localcharset module.
12021         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12022         (O_NOFOLLOW): Define fallback.
12023         (get_charset_aliases): Don't open the file if it is a symbolic link.
12024         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12025         gl_FCNTL_H.
12026         (gl_FCNTL_H): Require it.
12027         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12028         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12029         Reported by Fergal Glynn <fglynn@veracode.com>.
12031 2009-10-18  Bruno Haible  <bruno@clisp.org>
12033         Implement nproc for mingw.
12034         * lib/nproc.c: Include <windows.h>
12035         (num_processors): On native Windows platforms, try GetSystemInfo.
12037 2009-10-18  Bruno Haible  <bruno@clisp.org>
12039         Implement nproc for IRIX.
12040         * lib/nproc.c: Include <sys/sysmp.h>.
12041         (num_processors): On IRIX systems, try sysmp.
12042         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12044 2009-10-18  Bruno Haible  <bruno@clisp.org>
12046         Implement nproc for HP-UX.
12047         * lib/nproc.c: Include <sys/pstat.h>
12048         (num_processors): On HP-UX systems, try pstat_getdynamic.
12049         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12050         pstat_getdynamic.
12052 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12053             Bruno Haible  <bruno@clisp.org>
12055         Implement nproc for NetBSD, OpenBSD.
12056         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12057         (ARRAY_SIZE): New macro.
12058         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12059         * m4/nproc.m4: New file.
12060         * modules/nproc (Files): Add m4/nproc.m4.
12061         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12062         (Makefile.am): Instead, augment lib_SOURCES.
12064 2009-10-18  Bruno Haible  <bruno@clisp.org>
12066         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12067         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12068         sys/param.h.
12070 2009-10-16  Eric Blake  <ebb9@byu.net>
12072         utimensat: new module
12073         * modules/utimensat: New file.
12074         * lib/utimensat.c (utimensat): Likewise.
12075         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12076         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12077         so we can work around Linux bugs.
12078         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12079         * modules/sys_stat (Makefile.am): Substitute them.
12080         * lib/sys_stat.in.h (utimensat): Declare it.
12081         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12082         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12083         * modules/utimensat-tests: New test.
12084         * tests/test-utimensat.c: Likewise.
12086         utimens: let lutimens work on non-symlinks
12087         * lib/utimens.c (lutimens): Fall back to utimens rather than
12088         failing with ENOSYS, when file is not a symlink.
12089         (utimens): Reduce redirection.
12090         * tests/test-lutimens.h (test_lutimens): Update test to cover
12091         non-symlinks.
12092         * tests/test-utimens.h (test_utimens): Update test to cover
12093         symlinks.
12094         * tests/test-utimens.c (main): Update caller.
12096         utimens: cache whether utimensat syscall works
12097         * lib/utimens.c (utimensat_works_really): New cache variable.
12098         (fdutimens, lutimens): Use it to avoid failing syscall.
12100         test-stat-time, test-utimens: improve portability
12101         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12102         ext4 on alpha, and for cygwin.
12103         * tests/test-utimens-common.h: New file.
12104         (nap): Factor delays into single function.
12105         * tests/test-lutimens.h (test_lutimens): Use new header.
12106         * tests/test-futimens.h (test_futimens): Likewise.
12107         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12108         timestamps to occur from same machine, as was done previously for
12109         test_utimens.
12110         * modules/utimens-tests (Files): Ship new file.
12111         * modules/futimens-tests (Files): Likewise.
12112         Reported in part by Jim Meyering.
12114         sys_stat: sort replacement declarations
12115         * lib/sys_stat.in.h: Sort declarations.
12116         * lib/futimens.c (futimens): Fix typo.
12118 2009-10-15  Jim Meyering  <meyering@redhat.com>
12120         don't let environment settings perturb build
12121         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12122         could cause a configure-time and/or build-time malfunction.
12123         Typically, a configure-time function-in-library test is performed
12124         via code like this:
12126           LIB_VAR=
12127           AC_SUBST([LIB_VAR])
12128           prefix_saved_LIBS=$LIBS
12129             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12130                        [test "$ac_cv_search_FUNC" = "none required" ||
12131                         LIB_VAR=$ac_cv_search_FUNC])
12132           LIBS=$prefix_saved_LIBS
12134         However, in each of the files affected by this change, the LIB_VAR=
12135         initialization was omitted.  Thus, when set in the environment, its
12136         value would propagate into generated Makefiles when FUNC is not found
12137         in LIB_NAME.
12138         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12139         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12142 2009-10-14  Eric Blake  <ebb9@byu.net>
12144         fchdir: avoid infinite recursion in mingw
12145         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12146         recursing.
12148         test-stat-time: port to mingw
12149         * tests/test-stat-time.c (force_unlink): Return a value.
12150         (test_ctime) [W32]: Fix compilation error.
12151         (nap): Don't call usleep with too large an argument.  Use
12152         force_unlink.
12153         * doc/pastposix-functions/usleep.texi (usleep): Document the
12154         portability issue.
12156 2009-10-13  Jim Meyering  <meyering@redhat.com>
12158         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12159         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12160         * modules/pipe-filter-ii: Likewise.
12161         * modules/sys_socket-tests: Likewise.
12162         * modules/tsearch-tests: Likewise.
12163         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12164         (check): Depend on it.
12166 2009-10-12  Eric Blake  <ebb9@byu.net>
12168         utimens-tests: port to NFS file systems
12169         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12170         comparisons to avoid spurious failures from timestamp drift
12171         between NFS machines.
12173 2009-10-12  Eric Blake  <ebb9@byu.net>
12175         stat-time-tests: minor cleanups
12176         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12177         * tests/test-stat-time.c (nap): Separate assignment from call.
12178         Suggested by Paolo Bonzini and Bruno Haible.
12180         sys_stat: guarantee struct timespec
12181         * lib/sys_stat.in.h (includes): Always include <time.h>
12182         * modules/sys_stat (Depends-on): Add time.
12183         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12184         mode_t permission values.
12185         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12186         get at subsecond timestamps.
12188 2009-10-10  Eric Blake  <ebb9@byu.net>
12190         futimens: new module
12191         * modules/futimens: New file.
12192         * lib/futimens.c (futimens): Likewise.
12193         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12194         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12195         we can work around Linux bugs.
12196         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12197         * modules/sys_stat (Makefile.am): Substitute them.
12198         * lib/sys_stat.in.h (futimens): Declare it.
12199         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12200         * doc/posix-functions/futimens.texi (futimens): Likewise.
12201         * modules/futimens-tests: New test.
12202         * tests/test-futimens.c: Likewise.
12204         utimens: introduce fdutimens
12205         * lib/utimens.h (fdutimens): New prototype.
12206         * lib/utimens.c (gl_futimens): Move guts...
12207         (fdutimens): ...to new interface.
12208         * tests/test-utimens.c (do_fdutimens): Use it.
12210         utimens: add UTIME_NOW and UTIME_OMIT support
12211         * lib/utimens.c (validate_timespec, update_timespec): New helper
12212         functions.
12213         (gl_futimens, lutimens): Use them.
12214         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12215         stdbool, sys_stat.
12216         (Link): Mention resulting library dependency.
12217         * modules/utimecmp (Link): Likewise.
12218         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12219         (Makefile.am): Pick up library dependency.
12220         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12221         definition.
12222         * tests/test-sys_stat.c: Test the definitions.
12223         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12224         * NEWS: Document library dependency.
12226         utimecmp: support symlink timestamps
12227         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12228         hashing when possible.  Use pathconf when available.
12229         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12230         * modules/utimecmp (Depends-on): Add lstat.
12232         utimens: add lutimens interface
12233         * lib/utimens.c (lutimens): New function.
12234         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12235         * lib/utimens.h (lutimens): Declare new interface.
12236         * tests/test-utimens.c (main): Enhance test.
12237         * tests/test-lutimens.h (test_lutimens): New file.
12238         * modules/utimens-tests (Files): Distribute it.
12239         (Depends-on): Add symlink.
12240         (configure.ac): Check for usleep.
12242         utimens: validate futimens usage
12243         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12244         fewer syscalls on failure later on.  Avoid compiler warning on
12245         mingw.
12246         * modules/utimens (Depends-on): Add dup2.
12248         utimens: add test
12249         * modules/utimens-tests: New test.
12250         * tests/test-utimens.h: New file.
12251         * tests/test-futimens.h: Likewise.
12252         * tests/test-utimens.c: Likewise.
12254         doc: mention timestamp portability issues
12255         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12256         instead.
12257         * doc/posix-functions/utime.texi (utime): Likewise.
12258         * doc/posix-functions/utimes.texi (utimes): Likewise.
12259         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12260         instead.
12261         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12262         module.
12263         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12264         Mention weakness with symlink timestamps.
12265         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12266         to utimensat/futimens instead.
12267         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12269         test-dup2: enhance test
12270         * tests/test-dup2.c (main): Also check AT_FDCWD.
12272         test-stat-time: avoid more spurious failures
12273         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12274         xfs; and avoid race if the two timestamps cross quantization edge.
12276         relocatable: prefer 'file system' over 'filesystem'
12277         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12278         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12279         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12280         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12281         * lib/relocatable.c (compute_curr_prefix): Likewise.
12283 2009-10-10  Jim Meyering  <meyering@redhat.com>
12285         stat-time-tests: check for the usleep function
12286         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12288 2009-10-10  Bruno Haible  <bruno@clisp.org>
12290         * modules/xnanosleep: Put the Link section after the Include section.
12292 2009-10-09  Eric Blake  <ebb9@byu.net>
12294         dup2: work around FreeBSD 6.1 bug
12295         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12296         * doc/posix-functions/dup2.texi (dup2): Document it.
12297         Reported by Nelson H. F. Beebe and Jim Meyering.
12299         test-stat-time: port to buggy NFS clients
12300         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12301         (test_ctime): Also skip test if mtime and ctime are skewed.
12303         maint: prefer 'file system' over 'filesystem'
12304         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12305         * doc/posix-functions/lstat.texi (lstat): Likewise.
12306         * lib/file-has-acl.c (file_has_acl): Likewise.
12307         * lib/fwriteerror.c [TEST]: Likewise.
12308         * tests/test-areadlink.h (test_areadlink): Likewise.
12309         * tests/test-areadlinkat-with-size.c (main): Likewise.
12310         * tests/test-areadlinkat.c (main): Likewise.
12311         * tests/test-canonicalize-lgpl.c (main): Likewise.
12312         * tests/test-canonicalize.c (main): Likewise.
12313         * tests/test-fstatat.c (main): Likewise.
12314         * tests/test-linkat.c (main): Likewise.
12315         * tests/test-lstat.h (test_lstat_func): Likewise.
12316         * tests/test-mkdir.h (test_mkdir): Likewise.
12317         * tests/test-readlink.h (test_readlink): Likewise.
12318         * tests/test-remove.c (main): Likewise.
12319         * tests/test-rename.h (test_rename): Likewise.
12320         * tests/test-renameat.c (main): Likewise.
12321         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12322         * tests/test-symlink.h (test_symlink): Likewise.
12323         * tests/test-symlinkat.c (main): Likewise.
12324         * tests/test-unlink.h (test_unlink_func): Likewise.
12325         * tests/test-unlinkat.c (main): Likewise.
12327         maint: make realtime library usage explicit
12328         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
12329         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
12330         * modules/settime (Link): Likewise.
12331         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
12333         test-stat-time: speed up execution
12334         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
12335         warning on mingw.
12336         (nap): New helper function.
12337         (prepare_test): Use it to reduce sleep time.
12338         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
12339         execution.
12340         * modules/stat-time-tests (configure.ac): Check for usleep.
12342 2009-10-09  Jim Meyering  <meyering@redhat.com>
12344         selinux-h: always use getfilecon wrappers
12345         * lib/getfilecon.c: New file.
12346         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
12347         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
12348         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
12349         (fgetfilecon): Provide a stub.
12350         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
12351         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
12352         file unconditionally.
12353         When <selinux/selinux.h> is found, arrange to use wrappers.
12354         * modules/selinux-h (Files): Add getfilecon.c.
12355         (Makefile.am): Substitute include-next-related bits
12356         into the now-always-generated selinux/selinux.h file.
12357         * doc/glibc-functions/lgetfilecon.texi: New file.
12358         * doc/glibc-functions/fgetfilecon.texi: New file.
12359         * doc/glibc-functions/getfilecon.texi: New file.
12360         * doc/glibc-functions/getfilecon-desc.texi: New file.
12361         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
12362         which to pull in the new files.
12363         * MODULES.html.sh (Misc): Add selinux-h.
12365 2009-10-08  Jim Meyering  <meyering@redhat.com>
12367         unistd: fix comment typo
12368         * lib/unistd.in.h (euidaccess): Fix a comment typo.
12370 2009-10-08  Eric Blake  <ebb9@byu.net>
12372         areadlink: use SIZE_MAX consistently
12373         * modules/areadlink (Depends-on): Add stdint.
12374         * modules/areadlink-with-size (Depends-on): Likewise.
12375         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
12376         gives NULL; drop sys/types, since unistd gives size_t; and add
12377         stdint for SIZE_MAX.
12378         (SIZE_MAX): Rely on headers.
12379         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
12380         and add stdint.
12381         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
12382         (SIZE_MAX): Likewise.
12383         (INITIAL_BUF_SIZE): Turn into enum.
12384         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
12386 2009-10-08  Jim Meyering  <meyering@redhat.com>
12388         areadlinkat: avoid compilation failure
12389         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
12390         Fix typo in comment.
12392 2009-10-07  Eric Blake  <ebb9@byu.net>
12394         areadlinkat-with-size: new module
12395         * modules/areadlinkat-with-size: New module.
12396         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
12397         * lib/areadlink.h (areadlinkat): Declare it.
12398         * MODULES.html.sh (File system functions): Mention it.
12399         * modules/areadlinkat-with-size-tests: New test.
12400         * tests/test-areadlinkat-with-size.c: New file.
12402         xreadlinkat: new module
12403         * modules/xreadlinkat: New module.
12404         * lib/xreadlinkat.c (xreadlinkat): New file.
12405         * lib/xreadlink.h (xreadlinkat): Declare it.
12406         * MODULES.html.sh (File system functions): Mention it.
12408         areadlinkat: new module
12409         * lib/at-func.c (FUNC_FAIL): New define.
12410         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
12411         * modules/areadlinkat: New module.
12412         * lib/linkat.c (areadlinkat): Move...
12413         * lib/areadlinkat.c (areadlinkat): ...to new file.
12414         * lib/areadlink.h (areadlinkat): Declare it.
12415         * modules/linkat (Depends-on): Add areadlinkat.
12416         * MODULES.html.sh (File system functions): Mention it.
12417         * modules/areadlinkat-tests: New test.
12418         * tests/test-areadlinkat.c: New file.
12420         areadlink, areadlink-with-size: add tests
12421         * modules/areadlink-tests: New test.
12422         * modules/areadlink-with-size-tests: Likewise.
12423         * tests/test-areadlink.h: New file.
12424         * tests/test-areadlink.c: Likewise.
12425         * tests/test-areadlink-with-size.c: Likewise.
12427         maint: minor cleanups
12428         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
12429         _UNUSED_PARAMETER_ instead.
12430         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
12431         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
12432         * modules/linkat-tests (Files): Distribute test-link.h.
12434         openat, utimens: whitespace cleanup
12435         * lib/openat.c: Prefer space throughout, rather than mix of 8
12436         spaces vs. tabs.
12437         * lib/at-func.c: Likewise.
12438         * lib/utimens.c: Likewise.
12440         openat: avoid using wrong fd
12441         * lib/openat.c (openat_permissive): Reject user's fd if saving the
12442         working directory chooses same fd.
12443         * lib/at-func.c (AT_FUNC_NAME): Likewise.
12445         mkdir, mkdirat: fix cygwin 1.5.x bug
12446         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
12447         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
12448         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
12449         bug.
12450         (gl_PREREQ_MKDIR): Delete unused macro.
12451         * modules/mkdir (Files): Track file rename.
12452         (configure.ac): Update macro name.
12453         * modules/openat (Depends-on): Add mkdir.
12454         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
12456         mkdir, mkdirat: add tests
12457         * modules/mkdir-tests: New test.
12458         * tests/test-mkdir.h: New file.
12459         * tests/test-mkdir.c: Likewise.
12460         * tests/test-mkdirat.c: Likewise.
12461         * modules/openat-tests (Files): Add new files.
12462         (Makefile.am): Run new test.
12464 2009-10-06  Eric Blake  <ebb9@byu.net>
12466         doc: tweak *at function documentation
12467         * doc/posix-functions/faccessat.texi (faccessat): Mention
12468         known issue with replacement.
12469         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
12470         * doc/posix-functions/linkat.texi (linkat): Likewise.
12471         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
12472         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
12473         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12474         * doc/posix-functions/renameat.texi (renameat): Likewise.
12475         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12477         openat: fix GNU/Hurd bug in unlinkat
12478         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
12479         broken.
12480         * doc/posix-functions/unlink.texi (unlink): Document this.
12481         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
12483         fdopendir: fix GNU/Hurd bug
12484         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
12485         allowing non-directory fds.
12486         * lib/fdopendir.c (rpl_fdopendir): Work around it.
12487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12488         * modules/dirent (Makefile.am): Substitute it.
12489         * lib/dirent.in.h (fdopendir): Declare replacement.
12490         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
12491         * tests/test-fdopendir.c (main): Test something other than
12492         /dev/null, since on Hurd that behaves like a directory.
12494         test-symlink: port to GNU/Hurd
12495         * tests/test-symlink.h (test_symlink): Relax expected errno.
12497         doc: tweak more cygwin information
12498         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
12499         now compatible with glibc.
12500         * doc/posix-functions/getopt.texi (getopt): Likewise.
12502         getopt-gnu: add another test
12503         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
12504         guarantee behavior relied on by m4.
12505         * tests/test-getopt.c (main): Use it.
12506         * modules/getopt-posix-tests (Depends-on): Add setenv.
12507         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
12509         getopt: fix compilation on darwin
12510         * lib/getopt.in.h (includes): Leave breadcrumbs during system
12511         include.
12512         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
12513         Reported by Ludovic Courtès.
12515 2009-10-06  Bruno Haible  <bruno@clisp.org>
12517         * modules/size_max (Description): Discourage its use.
12518         Reported by Simon Josefsson.
12520 2009-10-06  Jim Meyering  <meyering@redhat.com>
12522         linkat: avoid compilation failure
12523         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
12525 2009-10-05  Eric Blake  <ebb9@byu.net>
12527         linkat: support Linux 2.6.17
12528         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
12529         linkat on Linux, but allow cache variable override.
12530         * lib/linkat.c (rpl_linkat): Define override.
12531         * modules/linkat (Depends-on): Add symlinkat.
12532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
12533         * modules/unistd (Makefile.am): Substitute it.
12534         * lib/unistd.in.h (linkat): Declare replacement.
12535         Reported by Pádraig Brady.
12537         quotearg: port test to systems with C.UTF-8 locale
12538         * tests/test-quotearg.c (struct result_strings): Add another
12539         member, differentiating between C.ASCII and C.UTF-8 handling.
12540         (compare_strings): Add parameter.
12541         (main): Adjust all callers.
12543         getopt: avoid clash with FreeBSD _getopt_internal
12544         * lib/getopt.in.h (_getopt_internal): Override the name.
12545         * lib/getopt_int.h (includes): Pick up any overrides.
12546         Reported by Reuben Thomas.
12548         hash: allow C89 compilation
12549         * lib/hash.c (check_tuning): Move declaration before statement.
12550         Reported by Reuben Thomas.
12552 2009-10-05  Karl Berry  <karl@gnu.org>
12554         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
12556 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
12557             Bruno Haible  <bruno@clisp.org>
12559         * lib/uname.c (uname): Use a table-driven algorithm to compute
12560         Windows NT versions.
12562 2009-10-04  Bruno Haible  <bruno@clisp.org>
12564         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
12565         program_invocation_short_name.
12566         * modules/progname (configure.ac): Test for presence of
12567         program_invocation_short_name.
12568         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
12570 2009-10-04  Bruno Haible  <bruno@clisp.org>
12572         * lib/progname.c (set_program_name): Fix comment.
12573         Reported by Jim Meyering.
12575 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12576             Bruno Haible  <bruno@clisp.org>
12578         * lib/uname.c: Include <string.h>.
12579         (uname): Do only one call to GetVersionEx in the common case.
12581 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12582             Bruno Haible  <bruno@clisp.org>
12584         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
12585         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
12586         (uname): Add support for Windows CE and various non-x86 CPU types.
12588 2009-10-03  Bruno Haible  <bruno@clisp.org>
12590         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
12591         invocation to tests/configure.ac.
12592         Reported by Ian Beckwith <ianb@erislabs.net>.
12594 2009-10-02  Eric Blake  <ebb9@byu.net>
12596         fchdir: avoid compiler warning
12597         * lib/fchdir.c (canonicalize_file_name)
12598         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
12600         test-open: support mingw errno values
12601         * tests/test-open.h (test_open): Relax test.
12602         * tests/test-fopen.h (test_fopen): Likewise.
12603         * tests/test-openat-safer.c (main): Likewise.
12605         open: fix opening directory on mingw
12606         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
12608         test-open: on GNU/Hurd, /dev/null is a directory
12609         * tests/test-fopen.h (main): Rename...
12610         (test_fopen): ...to this.  Use a guaranteed non-directory when
12611         confirming open behavior on trailing slash.
12612         * tests/test-openat-safer.c (main): Likewise.
12613         * tests/test-open.h (main): Likewise....
12614         (test_open): ...to this.
12615         * tests/test-fopen.c (main): Adjust caller.
12616         * tests/test-fopen-safer.c (main): Likewise.
12617         * tests/test-open.c (main): Likewise.
12618         * tests/test-fcntl-safer.c (main): Likewise.
12619         Reported by Samuel Thibault.
12621         rename, fchdir: don't ignore chdir failure
12622         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
12623         * lib/rename.c (rpl_rename) [W32]: Likewise.
12624         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
12625         an empty destination directory if source cannot be renamed,
12626         although there is still possibility for failure.
12627         * doc/posix-functions/rename.texi (rename): Document the race.
12628         Reported by Jim Meyering.
12630         maint: cleanup whitespace in recent commits
12631         * lib/rename.c (rpl_rename): Remove tabs.
12632         * tests/test-link.h (test_link): Likewise.
12633         * lib/fchdir.c (get_name): Likewise.
12634         Reported by Jim Meyering.
12636 2009-10-02  Ben Pfaff  <blp@gnu.org>
12638         relocatable-prog-wrapper: Add missing dependency on
12639         double-slash-root.
12640         * modules/relocatable-prog-wrapper: Add dependency.
12641         Reported by Ian Beckwith <ianb@erislabs.net>.
12643 2009-10-02  Eric Blake  <ebb9@byu.net>
12645         renameat: fix Solaris bugs
12646         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
12647         needed fixing.
12648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
12649         * modules/stdio (Makefile.am): Substitute it.
12650         * lib/stdio.in.h (renameat): Declare replacement.
12651         * lib/renameat.c (rpl_renameat): Implement fix.
12653         renameat: new module
12654         * modules/renameat: New file.
12655         * lib/renameat.c (renameat): Likewise.
12656         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
12657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
12658         * modules/stdio (Makefile.am): Substitute them.
12659         * lib/stdio.in.h (renameat): Declare it.
12660         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12661         * doc/posix-functions/renameat.texi (renameat): Likewise.
12662         * modules/renameat-tests: New test.
12663         * tests/test-renameat.c: Likewise.
12665         rename: fix mingw bugs
12666         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
12667         directory overwrite bugs.
12669         rename: fix another cygwin 1.5 bug
12670         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
12671         checks.
12672         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
12673         unnecessary cygwin workarounds.  Also work around bug with moving
12674         full directory onto an empty one.
12675         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
12677         rename-dest-slash: merge into rename module
12678         * modules/rename-dest-slash (Status): Mark obsolete.
12679         (Depends-on): Add rename.
12680         (Files): Let rename do it all.
12681         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
12682         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
12683         * m4/rename-dest-slash.m4: ...so this file can be deleted.
12684         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
12685         * lib/rename.c (rpl_rename): Update comments.
12687         rename: fix cygwin 1.5.x bugs
12688         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
12689         * lib/rename.c (rpl_rename): Work around them.
12690         * modules/rename (Depends-on): Add same-inode.
12692         rename: fix Solaris 10 bug
12693         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
12694         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
12695         was the only bug.
12697         rename: fix Solaris 9 bug
12698         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
12699         on non-directory.  Avoid calling exit.
12700         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
12701         strdup.
12702         * modules/rename-tests (Depends-on): Drop lstat.
12703         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
12704         (gl_PREREQ_RENAME): Delete unused macro.
12706         rename-dest-slash: fix NetBSD bug
12707         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
12708         links.
12709         * modules/rename-dest-slash (Depends-on): Add same-inode.
12711         rename-tests: new test, exposes several platform bugs
12712         * modules/rename-tests: New file.
12713         * tests/test-rename.h: Likewise.
12714         * tests/test-rename.c: Likewise.
12715         * doc/posix-functions/rename.texi (rename): Improve documentation,
12716         including bugs that will eventually be fixed in gnulib.
12718 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
12720         * lib/uname.c: Include <stdlib.h>
12721         (uname): Assume version info is available.
12723 2009-10-02  Jim Meyering  <meyering@redhat.com>
12725         gnu-web-doc-update: correct --help output
12726         * build-aux/gnu-web-doc-update: Make --help output relevant.
12728         gnu-web-doc-update: add standard options
12729         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
12731         gnu-web-doc-update: New module.
12732         Use this script to automatically update the on-line web documentation
12733         for your GNU project at http://www.gnu.org/software/$pkg/manual/
12734         * modules/gnu-web-doc-update: New file, from coreutils.
12735         * build-aux/gnu-web-doc-update: New script.
12737 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
12739         link: LoadLibrary is not needed.
12740         * lib/link.c: Use GetModuleHandle.
12742 2009-10-01  Eric Blake  <ebb9@byu.net>
12744         getopt: bump serial number
12745         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
12746         change.
12748         tests: tighten link, rmdir, and remove tests
12749         * tests/test-link.h (includes): No need to use <config.h> here.
12750         Clean up if directory hard link was created, otherwise test for
12751         trailing '.'.
12752         * tests/test-linkat.c (main): Simplify.
12753         * tests/test-remove.c (main): Enhance test for trailing '.'.
12754         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12756 2009-10-01  Jim Meyering  <meyering@redhat.com>
12758         maint.mk: requiring "make major" was annoying, for a "minor" release.
12759         What is intended is "stable", to contrast with alpha and beta,
12760         so require "make stable", not "make major".
12761         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
12762         (get_tool_versions): Likewise.
12763         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
12765 2009-09-30  Ben Pfaff  <blp@gnu.org>
12767         Fix broken build of replacement for Windows tmpfile().
12768         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
12769         flags argument added along with the 'mkostemp' module.
12771 2009-09-28  Bruno Haible  <bruno@clisp.org>
12773         Avoid identifier clash with POSIX function 'remove' defined as a macro.
12774         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
12775         to 'remove_elt'.
12776         (gl_list_remove): Update.
12777         * lib/gl_list.c (gl_list_remove): Update.
12778         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
12779         to 'remove_elt'.
12780         (gl_oset_remove): Update.
12781         * lib/gl_list.c (gl_oset_remove): Update.
12782         Reported by Eric Blake.
12784 2009-09-28  Eric Blake  <ebb9@byu.net>
12786         doc: mention yet more cygwin 1.7 status
12787         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
12788         cygwin.
12789         * doc/glibc-functions/execvpe.texi (execvpe): New file.
12790         * doc/gnulib.texi (Glibc unistd.h): Mention it.
12792         argp: fix test failure
12793         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
12794         that are not upper-case.  Pass correct range to tolower.
12796 2009-09-27  Jim Meyering  <meyering@redhat.com>
12798         test-yesno: work around sparc-dash here-document infelicity
12799         Without this change, the literal \177 byte in a here document
12800         would make dash 0.5.5.1-3 access uninitialized memory.
12801         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
12802         Instead, use a marker, "@", and filter through tr to create the desired
12803         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
12805 2009-09-27  Bruno Haible  <bruno@clisp.org>
12807         Disable untested support for new flavours of ACLs on AIX.
12808         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
12809         progress.
12810         * lib/set-mode-acl.c (qset_acl): Likewise.
12812 2008-12-07  Bruno Haible  <bruno@clisp.org>
12814         Add support for new flavours of ACLs on AIX. (Untested.)
12815         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
12816         (file_has_acl): Add support for newer AIX.
12817         * lib/set-mode-acl.c (qset_acl): Likewise.
12818         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
12819         Rainer Tammer <tammer@tammer.net>.
12821 2009-09-26  Eric Blake  <ebb9@byu.net>
12823         argp: fix compilation of getopt
12824         * lib/getopt.in.h (includes): Use different guard than glibc.
12825         Reported by Sergey Poznyakoff.
12827         doc: mention more cygwin 1.7 status
12828         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
12829         bug.
12830         * doc/posix-functions/execl.texi (execl): Likewise.
12831         * doc/posix-functions/execle.texi (execle): Likewise.
12832         * doc/posix-functions/execlp.texi (execlp): Likewise.
12833         * doc/posix-functions/execv.texi (execv): Likewise.
12834         * doc/posix-functions/execve.texi (execve): Likewise.
12835         * doc/posix-functions/execvp.texi (execvp): Likewise.
12836         * doc/glibc-functions/canonicalize_file_name.texi
12837         (canonicalize_file_name): Cygwin 1.7 now provides this.
12838         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
12839         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
12840         on AT_SYMLINK_NOFOLLOW.
12842 2009-09-24  Eric Blake  <ebb9@byu.net>
12844         test-linkat: make test more robust
12845         * tests/test-linkat.c (main): Avoid collision with EEXIST.
12847         getopt: fix inclusion guards for cygwin
12848         * modules/getopt-posix (Depends-on): Add include-next.
12849         (Makefile.am): Substitute more items in replacement header.
12850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
12851         <getopt.h>.
12852         * lib/getopt.in.h (includes): Use split inclusion guard, and
12853         prefer <getopt.h> over include <unistd.h> when one is present.
12854         (option): Also override name of 'struct option'.
12856         same-inode: revert prior change; it is not yet ready
12857         * NEWS: Undo mention of this change.
12858         * lib/same-inode.h (same-inode.h): Undo tri-state change.
12859         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
12860         * lib/cycle-check.c (cycle_check): Likewise.
12861         * lib/same.c (same_name): Likewise.
12862         * lib/at-func2.c (at_func2): Likewise.
12864 2009-09-23  Eric Blake  <ebb9@byu.net>
12866         linkat: new module
12867         * modules/linkat: New file.
12868         * lib/at-func2.c (at_func2): Likewise.
12869         * lib/linkat.c (linkat): Likewise.
12870         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12871         * lib/openat-priv.h (at_func2): Add declaration.
12872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
12873         * modules/unistd (Makefile.am): Substitute them.
12874         * lib/unistd.in.h (linkat): Declare it.
12875         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12876         * doc/posix-functions/linkat.texi (linkat): Likewise.
12877         * doc/posix-functions/link.texi (link): Tweak wording.
12878         * tests/test-link.c (main): Move guts...
12879         * tests/test-link.h (test_link): ...into new file.
12880         * modules/linkat-tests: New test.
12881         * tests/test-linkat.c: Likewise.
12882         * modules/link-tests (Files): Ship new file.
12883         (Depends-on): Add stdbool.
12885         dirname: add library-safe mdir_name
12886         * lib/dirname.h (mdir_name): New prototype.
12887         * lib/dirname.c (dir_name): Move guts...
12888         (mdir_name): ...to new function that avoids xalloc_die.
12890         fchdir: another mingw fix
12891         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
12892         * lib/fchdir.c (get_name): New helper method; skips canonicalize
12893         on mingw (where it has not yet been ported), and make it optional
12894         elsewhere.
12895         (_gl_register_fd): Use it.
12897         same-inode: make SAME_INODE tri-state, to port to mingw
12898         * NEWS: Mention this change.
12899         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
12900         st_ino always being 0.
12901         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
12902         * lib/cycle-check.c (cycle_check): Likewise.
12903         * lib/same.c (same_name): Likewise.
12905         lstat: avoid mingw compilation error
12906         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
12907         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
12908         lstat ourselves.
12909         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
12910         was adequate.
12911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
12912         the checks for lstat.
12913         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
12915         link: fix test failure on Solaris 9
12916         * lib/link.c (rpl_link): Don't assume link will catch bogus
12917         trailing slash on source.
12919         test-symlinkat: enhance test
12920         * tests/test-readlink.c (main): Move guts...
12921         * tests/test-readlink.h (test_readlink): ...into new file.
12922         * tests/test-symlink.c (main): Move guts...
12923         * tests/test-symlink.h (test_symlink): ...into new file.
12924         * tests/test-symlinkat.c (main): Use new files for further
12925         coverage.
12926         (do_symlink, do_readlink): New helper functions.
12927         * modules/symlink-tests (Files): Ship new file.
12928         (Depends-on): Add stdbool.
12929         * modules/readlink-tests (Files): Ship new file.
12930         (Depends-on): Add stdbool.
12931         * modules/symlinkat-tests (Files): Use new files.
12933 2009-09-23  Eric Blake  <ebb9@byu.net>
12935         readlink: document portability issue with symlink length
12936         * doc/posix-functions/lstat.texi (lstat): Mention that some file
12937         systems have bogus st_size on symlinks, and mention the
12938         areadlink-with-size module.
12939         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12940         * doc/posix-functions/readlink.texi (readlink): Mention the
12941         areadlink module, and ERANGE failure.
12942         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12943         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
12945         readlink: fix Solaris 9 bug with trailing slash
12946         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
12947         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
12948         * doc/posix-functions/readlink.texi (readlink): Document this.
12949         * modules/readlink-tests: New test.
12950         * tests/test-readlink.c: Likewise.
12952         readlink: fix cygwin 1.5.x bug with return type
12953         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
12954         * lib/unistd.in.h (readlink): Use ssize_t.
12955         * lib/readlink.c (readlink): Likewise.
12956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12957         * modules/unistd (Makefile.am): Substitute it.
12958         * lib/unistd.in.h (readlink): Declare replacement.
12959         * doc/posix-functions/readlink.texi (readlink): Document this.
12961         symlink: use throughout gnulib
12962         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
12963         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
12964         symlink is not used.
12965         * modules/symlinkat (Depends-on): Add symlink.
12966         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12967         * modules/canonicalize-tests (Depends-on): Likewise.
12968         * modules/lstat-tests (Depends-on): Likewise.
12969         * modules/openat-tests (Depends-on): Likewise.
12970         * modules/remove-tests (Depends-on): Likewise.
12971         * modules/rmdir-tests (Depends-on): Likewise.
12972         * modules/unlink-tests (Depends-on): Likewise.
12973         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
12974         * tests/test-canonicalize.c (symlink): Likewise.
12975         * tests/test-fstatat.c (symlink): Likewise.
12976         * tests/test-lstat.c (symlink): Likewise.
12977         * tests/test-remove.c (symlink): Likewise.
12978         * tests/test-rmdir.c (symlink): Likewise.
12979         * tests/test-unlink.c (symlink): Likewise.
12980         * tests/test-unlinkat.c (symlink): Likewise.
12982         symlink: new module, for Solaris 9 bug
12983         * modules/symlink: New file.
12984         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12985         * lib/symlink.c: Likewise.
12986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12987         * modules/unistd (Makefile.am): Substitute them.
12988         * lib/unistd.in.h (symlink): Declare replacement.
12989         * MODULES.html.sh (File system functions): Mention it.
12990         * doc/posix-functions/symlink.texi (symlink): Likewise.
12991         * modules/symlink-tests: New test.
12992         * tests/test-symlink.c: Likewise.
12994 2009-09-23  Bruno Haible  <bruno@clisp.org>
12996         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
12997         when needed.
12998         Test case: gnulib-tool --import --with-tests atexit inttypes.
12999         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13001 2009-09-23  Bruno Haible  <bruno@clisp.org>
13003         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13004         subcommand, not in a subshell.
13006 2009-09-22  Eric Blake  <ebb9@byu.net>
13008         unistd: sort replacement declarations
13009         * lib/unistd.in.h: Sort declarations.
13011         open, openat: minor optimization
13012         * lib/open.c (open): If open succeeded, len is non-zero.
13013         * lib/openat.c (rpl_openat): Likewise.
13015         link-follow: ensure correct result
13016         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13017         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13018         distinguish between possible failures.
13020 2009-09-21  Eric Blake  <ebb9@byu.net>
13022         fts: avoid compiler warning
13023         * lib/fts.c (dirent_inode_sort_may_be_useful)
13024         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13026 2009-09-19  Bruno Haible  <bruno@clisp.org>
13028         * lib/progreloc.c (canonicalize_file_name): New declaration.
13030 2009-09-19  Eric Blake  <ebb9@byu.net>
13032         link: fix quoting
13033         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13035         openat: fix openat bugs on Solaris 9
13036         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13037         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13038         * modules/openat (Depends-on): Add open.
13039         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13040         * modules/fcntl-h (Makefile.am): Substitute it.
13041         * lib/fcntl.in.h (openat): Declare replacement.
13042         * doc/posix-functions/openat.texi (openat): Document this.
13044         openat: move fstatat and unlinkat into correct files
13045         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13046         compiled.
13047         * lib/openat.c (fstatat, unlinkat): Move...
13048         * lib/fstatat.c (fstatat): ...into correct files.
13049         * lib/unlinkat.c (unlinkat): Likewise.
13051         openat: fix unlinkat bugs on Solaris 9
13052         * lib/unlinkat.c (unlinkat): New file.
13053         * modules/openat (Depends-on): Add unlink.
13054         (Files): Distribute it.
13055         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13056         trailing slash behavior is broken.
13057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13058         * modules/unistd (Makefile.am): Substitute it.
13059         * lib/unistd.in.h (unlinkat): Declare replacement.
13060         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13062         openat: fix fstatat bugs on Solaris 9
13063         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13064         stat.
13065         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13067         test-unlinkat: enhance test, to expose Solaris 9 bug
13068         * tests/test-unlink.c (main): Factor guts...
13069         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13070         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13071         * tests/test-rmdir.c (main): Adjust caller.
13072         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13073         (unlinker): New helper function.
13074         (rmdirat): Enhance check.
13075         * modules/rmdir-tests (Depends-on): Add stdbool.
13076         * modules/unlink-tests (Depends-on): Likewise.
13077         (Files): Add test-unlink.h.
13078         * modules/openat-tests (Files): Likewise.
13079         (Depends-on): Add unlinkdir.
13081         test-fstatat: new test, to expose Solaris 9 bugs
13082         * tests/test-stat.c (main): Factor guts...
13083         * tests/test-stat.h (test_stat_func): ...into new file.
13084         * tests/test-lstat.c (main): Factor guts...
13085         * tests/test-lstat.h (test_lstat_func): ...into new file.
13086         * tests/test-fstatat.c: New file.
13087         * modules/stat-tests (Files): Add test-stat.h.
13088         * modules/lstat-tests (Files): Add test-lstat.h.
13089         (Depends-on): Add stdbool.
13090         * modules/openat-tests (Depends-on): Add pathmax.
13091         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13092         (Makefile.am): Run new test.
13094         remove: new module, for mingw and Solaris 9 bugs
13095         * modules/remove: New file.
13096         * lib/remove.c: Likewise.
13097         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13099         * modules/stdio (Makefile.am): Use them.
13100         * lib/stdio.in.h (remove): Declare replacement.
13101         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13102         * doc/posix-functions/remove.texi (remove): Likewise.
13103         * modules/remove-tests: New test.
13104         * tests/test-remove.c: Likewise.
13106         unlink: new module, for Solaris 9 bug
13107         * modules/unlink: New file.
13108         * lib/unlink.c: Likewise.
13109         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13111         * modules/unistd (Makefile.am): Use them.
13112         * lib/unistd.in.h (stat): Declare replacement.
13113         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13114         * doc/posix-functions/unlink.texi (unlink): Likewise.
13115         * modules/unlink-tests: New test.
13116         * tests/test-unlink.c: Likewise.
13118         lstat: fix Solaris 9 bug
13119         * lib/lstat.c (lstat): Also check for trailing slash on
13120         non-symlink, non-directories.  Use stat module to simplify logic.
13121         * doc/posix-functions/lstat.texi (lstat): Document it.
13122         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13123         (configure.ac): Check for symlink.
13124         * tests/test-lstat.c (main): Add more tests.
13126         stat: add as dependency to other modules
13127         * modules/chown (Depends-on): Add stat.
13128         * modules/euidaccess (Depends-on): Likewise.
13129         * modules/fchdir (Depends-on): Likewise.
13130         * modules/isdir (Depends-on): Likewise.
13131         * modules/link (Depends-on): Likewise.
13132         * modules/lstat (Depends-on): Likewise.
13133         * modules/mkdir-p (Depends-on): Likewise.
13134         * modules/modechange (Depends-on): Likewise.
13135         * modules/open (Depends-on): Likewise.
13136         * modules/readlink (Depends-on): Likewise.
13137         * modules/same (Depends-on): Likewise.
13139         stat: fix Solaris 9 bug
13140         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13141         slash.
13142         * lib/stat.c (rpl_stat): Work around it.
13143         * doc/posix-functions/stat.texi (stat): Update documentation.
13145         stat: new module, for mingw bug
13146         * modules/stat: New file.
13147         * lib/stat.c: Likewise.
13148         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13149         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13150         * modules/sys_stat (Makefile.am): Use them.
13151         * lib/sys_stat.in.h (stat): Declare replacement.
13152         * lib/openat.c (fstatat): Deal with lstat and stat being function
13153         macros.
13154         * modules/openat (Depends-on): Add inline.
13155         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13156         * doc/posix-functions/stat.texi (stat): Likewise.
13157         * modules/stat-tests: New test.
13158         * tests/test-stat.c: Likewise.
13160 2009-09-19  Jim Meyering  <meyering@redhat.com>
13162         syntax-check: detect unnecessary inclusion of canonicalize.h
13163         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13165 2009-09-19  Eric Blake  <ebb9@byu.net>
13167         canonicalize-lgpl: adjust clients to use correct header
13168         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13169         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13170         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13171         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13172         * lib/progreloc.c (includes): Likewise.
13174 2009-09-19  Jim Meyering  <meyering@redhat.com>
13176         test-posixtm.c: correct a comment
13177         * tests/test-posixtm.c: Correct first-line comment.
13178         Spotted by Eric Blake.
13180 2009-09-16  Jim Meyering  <meyering@redhat.com>
13182         posixtm-tests: make T const-correct; add a test case
13183         * tests/test-posixtm.c (T): Declare const.
13184         Add a test for -(2^31+1).
13185         Remove useless can-succeed-only-in-2002 test.
13187         posixtm-tests: adjust the sole failing test
13188         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13189         expected output matches what mktime now produces.  Cross-checked via
13190         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13192         posixtm: move #ifdef'd tests into a new module
13193         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13194         * tests/test-posixtm.c: ... this new file.
13195         * modules/posixtm-tests: New module.
13197 2009-09-19  Eric Blake  <ebb9@byu.net>
13199         openat: simplify use of at-func.c
13200         * lib/at-func.c (includes): Include prerequisites here, to
13201         simplify requirements on client files.
13202         * lib/openat-priv.h: Add double-inclusion guard.
13203         * lib/faccessat.c (includes): Simplify.
13204         * lib/fchmodat.c (includes): Likewise.
13205         * lib/fchownat.c (includes): Likewise.
13206         * lib/mkdirat.c (includes): Likewise.
13207         * lib/mkfifoat.c (includes): Likewise.
13208         * lib/symlinkat.c (includes): Likewise.
13210         openat: allow return of fd 0
13211         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13212         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13213         unistd-safer.
13214         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13215         <fcntl.h>; this module does not leak fds.
13216         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13217         must be allowed to return 0, leaving openat_safer to add the
13218         safety.
13219         (openat_permissive): Avoid writing to just-opened fd 2 if
13220         restoring the current directory fails.
13221         * lib/openat-die.c (openat_restore_fail): Add comment.
13222         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13223         (save_cwd): Guarantee safe fd, but without use of open_safer.
13224         * tests/test-openat.c: New test.
13225         * modules/openat-tests (Files, Makefile.am): Distribute and build
13226         new file.
13228         relocatable-prog-wrapper: fix build
13229         * modules/relocatable-prog-wrapper (Files): Update name of
13230         canonicalize m4 file, broken on 2009-09-17.
13231         Reported by emad hajjar <aleppos@hotmail.com>.
13233 2009-09-19  Bruno Haible  <bruno@clisp.org>
13235         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13236         * lib/safe-alloc.c: Likewise.
13237         Reported by Ian Beckwith <ianb@erislabs.net>.
13239 2009-09-18  Bruno Haible  <bruno@clisp.org>
13241         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13242         Reported by <erobles@sensacd.com.mx>.
13244 2009-09-17  Eric Blake  <ebb9@byu.net>
13246         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13247         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13248         slashes when checking if last component is missing.
13249         * tests/test-canonicalize.c (main): Test this.
13251         canonicalize, canonicalize-lgpl: honor // if distinct from /
13252         * modules/canonicalize (Files): Add double-slash-root.m4.
13253         * modules/canonicalize-lgpl (Files): Likewise.
13254         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13255         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13256         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13257         fallback definition.
13258         (canonicalize_filename_mode): Use it to protect //.
13259         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13260         (__realpath): Likewise.
13261         * tests/test-canonicalize.c (main): Test this.
13262         * tests/test-canonicalize-lgpl.c (main): Likewise.
13263         * modules/canonicalize-tests (Depends-on): Add same-inode.
13264         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13266         canonicalize-lgpl: fix glibc bug with trailing slash
13267         * m4/canonicalize-lgpl.m4: Move contents...
13268         * m4/canonicalize.m4: ...here.
13269         (gl_CANONICALIZE_LGPL): Factor realpath check...
13270         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13271         glibc 2.3.5 bug, fixed 2005-04-27.
13272         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13273         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13274         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13275         * modules/canonicalize-lgpl (Files): Manage file rename.
13276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13277         * modules/stdlib (Makefile.am): Substitute witness.
13278         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13279         is needed.
13280         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13281         replacement is required.
13282         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13283         * doc/glibc-functions/canonicalize_file_name.texi
13284         (canonicalize_file_name): Document this.
13285         * doc/posix-functions/realpath.texi (realpath): Likewise.
13287         canonicalize-lgpl: reject non-directory with trailing slash
13288         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13289         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13290         catches failures in glibc 2.3.5.
13291         * tests/test-canonicalize.c (main): Likewise.
13293         canonicalize-lgpl: use native realpath if it works
13294         * lib/canonicalize-lgpl.c (realpath): Guard with
13295         FUNC_REALPATH_WORKS.
13296         * lib/stdlib.in.h (realpath): Make declaration optional based on
13297         HAVE_REALPATH.
13298         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13299         native realpath works.
13300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13301         * modules/stdlib (Makefile.am): Substitute witness.
13303         canonicalize, canonicalize-lgpl: use <stdlib.h>
13304         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
13305         (Include): Mention <stdlib.h>.
13306         (configure.ac): Mention functions we provide.
13307         * modules/canonicalize (configure.ac): Likewise.
13308         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
13309         realpath if canonicalize_file_name is missing.
13310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
13311         * modules/stdlib (Makefile.am): Substitute witnesses.
13312         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
13313         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
13314         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
13315         * NEWS: Document this.
13316         * doc/glibc-functions/canonicalize_file_name.texi
13317         (canonicalize_file_name): Likewise.
13318         * doc/posix-functions/realpath.texi (realpath): Likewise.
13319         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
13321         test-canonicalize: consolidate into single C program
13322         * tests/test-canonicalize.sh: Delete; move setup into...
13323         * tests/test-canonicalize.c (main): ...the program, making it
13324         easier to run in debugger.  Add some tests.
13325         * modules/canonicalize-tests (Files): Remove unused file.
13326         (Depends-on): Add progname.
13327         (configure.ac, Makefile.am): Simplify.
13329         test-canonicalize-lgpl: consolidate into single C program
13330         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
13331         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
13332         easier to run in debugger.  Add some tests.
13333         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
13334         (configure.ac, Makefile.am): Simplify.
13336         canonicalize: avoid resolvepath
13337         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
13338         unnecessary checks.
13339         * lib/canonicalize.c (includes): Simplify.
13340         (canonicalize_file_name): Drop resolvepath implementation.
13341         * modules/canonicalize (Depends-on): Drop filenamecat.
13343         canonicalize: don't lose errno
13344         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
13345         over calls to free.
13347         canonicalize: simplify errno handling
13348         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
13349         assignment.
13351         canonicalize, canonicalize-lgpl: update module dependencies
13352         * modules/canonicalize (Depends-on): Add extensions, lstat,
13353         pathmax, stdlib.
13354         (Files): Drop pathmax.h.
13355         (configure.ac): Adjust macro name.
13356         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
13357         lstat, stdlib, sys_stat.
13358         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
13359         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
13360         extensions.
13361         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
13362         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
13363         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
13364         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
13365         declaration, if available.
13366         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
13367         we can rely on the readlink module.
13368         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
13369         (includes): Use <unistd.h> unconditionally.
13371 2009-09-17  Eric Blake  <ebb9@byu.net>
13373         maint: make Include sections of modules consistent
13374         * modules/alloca: Use only header name; no need to list #include.
13375         * modules/alloca-opt: Likewise.
13376         * modules/arpa_inet: Likewise.
13377         * modules/canon-host: Likewise.
13378         * modules/configmake: Likewise.
13379         * modules/dirent: Likewise.
13380         * modules/eealloc: Likewise.
13381         * modules/environ: Likewise.
13382         * modules/fchdir: Likewise.
13383         * modules/fcntl: Likewise.
13384         * modules/fcntl-h: Likewise.
13385         * modules/gethrxtime: Likewise.
13386         * modules/gettime: Likewise.
13387         * modules/ignore-value: Likewise.
13388         * modules/inet_ntop: Likewise.
13389         * modules/inet_pton: Likewise.
13390         * modules/inttypes: Likewise.
13391         * modules/isnand-nolibm: Likewise.
13392         * modules/isnanf-nolibm: Likewise.
13393         * modules/mbchar: Likewise.
13394         * modules/mbfile: Likewise.
13395         * modules/mbiter: Likewise.
13396         * modules/mbuiter: Likewise.
13397         * modules/netdb: Likewise.
13398         * modules/netinet_in: Likewise.
13399         * modules/nproc: Likewise.
13400         * modules/pagealign_alloc: Likewise.
13401         * modules/poll: Likewise.
13402         * modules/printf-frexp: Likewise.
13403         * modules/pthread: Likewise.
13404         * modules/putenv: Likewise.
13405         * modules/random_r: Likewise.
13406         * modules/relocatable-prog: Likewise.
13407         * modules/search: Likewise.
13408         * modules/select: Likewise.
13409         * modules/selinux-h: Likewise.
13410         * modules/settime: Likewise.
13411         * modules/signal: Likewise.
13412         * modules/size_max: Likewise.
13413         * modules/socklen: Likewise.
13414         * modules/ssize_t: Likewise.
13415         * modules/stdarg: Likewise.
13416         * modules/stdbool: Likewise.
13417         * modules/stddef: Likewise.
13418         * modules/stdint: Likewise.
13419         * modules/stdio: Likewise.
13420         * modules/stdlib: Likewise.
13421         * modules/string: Likewise.
13422         * modules/strings: Likewise.
13423         * modules/sys_file: Likewise.
13424         * modules/sys_ioctl: Likewise.
13425         * modules/sys_select: Likewise.
13426         * modules/sys_socket: Likewise.
13427         * modules/sys_stat: Likewise.
13428         * modules/sys_time: Likewise.
13429         * modules/sys_times: Likewise.
13430         * modules/sys_utsname: Likewise.
13431         * modules/sys_wait: Likewise.
13432         * modules/sysexits: Likewise.
13433         * modules/time: Likewise.
13434         * modules/times: Likewise.
13435         * modules/tmpfile: Likewise.
13436         * modules/trim: Likewise.
13437         * modules/unistd: Likewise.
13438         * modules/wchar: Likewise.
13439         * modules/wctype: Likewise.
13441 2009-09-17  Bruno Haible  <bruno@clisp.org>
13443         Make getdate.y compile on QNX and NetBSD 5 / i386.
13444         * m4/getdate.m4 (gl_GETDATE): Conditionally define
13445         TIME_T_FITS_IN_LONG_INT.
13446         * lib/getdate.y (long_time_t): New type.
13447         (relative_time): Change type of 'seconds' field to long_time_t.
13448         (get_date): Update types of local variables. Check against overflow
13449         during conversion from long_time_t to time_t.
13450         Reported by Matt Kraai <kraai@ftbfs.org>
13451         and Hasso Tepper <hasso@netbsd.org>.
13453 2009-09-17  Bruno Haible  <bruno@clisp.org>
13455         * modules/COPYING: Update copyright years.
13456         * modules/README: Likeiwse.
13457         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
13458         Reported by Ian Beckwith <ianb@erislabs.net>.
13460 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13462         * users.txt: Update references for gnuit package.
13464 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13466         * m4/getdelim.m4: Fix typo in copyright line.
13468 2009-09-17  Bruno Haible  <bruno@clisp.org>
13470         * lib/atoll.c: Use the standard header with GPL copyright.
13471         * lib/argz.in.h: Likewise.
13472         * lib/glob.c: Likewise.
13473         * lib/glob-libc.h: Likewise.
13474         * lib/random_r.c: Likewise.
13475         * lib/siglist.h: Likewise.
13476         * lib/strsignal.c: Likewise.
13477         Reported by Ian Beckwith <ianb@erislabs.net>.
13479 2009-09-17  Eric Blake  <ebb9@byu.net>
13481         rmdir: ensure correct dependency order
13482         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
13484 2009-09-17  Bruno Haible  <bruno@clisp.org>
13486         Disable assertion that fails on NetBSD 5 / i386.
13487         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
13488         Reported by Sam Steingold <sds@gnu.org>
13489         and Hasso Tepper <hasso@netbsd.org>.
13491 2009-09-16  Eric Blake  <ebb9@byu.net>
13493         unlinkdir: port to mingw
13494         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
13495         on which no one can unlink a directory.
13497         stdlib: sort witness names
13498         * modules/stdlib (Makefile.am): Sort replacements.
13499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
13500         * lib/stdlib.in.h: Likewise.
13502         parse-duration-tests: avoid link failure
13503         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
13504         LIBINTL.
13505         Reported by Tom G. Christensen.
13507         openat-tests: ensure unlinkat behaves like rmdir
13508         * tests/test-rmdir.c (main): Factor guts...
13509         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
13510         * modules/rmdir-tests (Files): Ship new file.
13511         * modules/openat-tests: New test.
13512         * tests/test-unlinkat.c: Likewise.
13514         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
13515         * modules/rmdir-errno (Status, Notice): Now obsolete.
13517         rmdir: work around cygwin 1.5.x and mingw bugs
13518         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
13519         * lib/rmdir.c (rmdir): Work around it.
13520         * modules/rmdir (Status, Notice): No longer obsolete.
13521         (Files): Add dos.m4.
13522         (Depends-on): Add unistd.
13523         (configure.ac): Set witnesses.
13524         (License): Relax to LGPLv2+.
13525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
13526         * modules/unistd (Makefile.am): Substitute witnesses.
13527         * lib/unistd.in.h (rmdir): Declare replacement.
13528         * doc/posix-functions/rmdir.texi (rmdir): Document this.
13529         * modules/rmdir-tests: New tests.
13530         * tests/test-rmdir.c: Likewise.
13532 2009-09-15  Eric Blake  <ebb9@byu.net>
13534         fchdir: improve use of replacement functions
13535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
13536         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
13537         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
13538         REPLACE_CLOSEDIR.
13539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
13540         * modules/sys_stat (Makefile.am): Substitute correct witness.
13541         * modules/dirent (Makefile.am): Likewise.
13542         * modules/unistd (Makefile.am): Likewise.
13543         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
13544         * lib/unistd.in.h (dup): Likewise.
13545         * lib/sys_stat.in.h (fstat): Likewise.
13547         maint: ignore gnulib-tool temp files
13548         * .gitignore: Ignore files created during gnulib-tool --test.
13550 2009-09-13  Jim Meyering  <meyering@redhat.com>
13552         posixtm: don't reject a time that specify "60" as the number of seconds
13553         * lib/posixtm.c (posixtime): The code to reject invalid dates
13554         would also reject a time specified with the .60 suffix.
13555         But POSIX allows that, in order to accommodate leap seconds.
13556         So don't reject it.
13557         (main): Adjust tests accordingly.
13558         * modules/posixtm (Depends-on): Add stpcpy.
13560 2009-09-11  Jim Meyering  <meyering@redhat.com>
13562         announce-gen: include [$release_type] in emitted Subject:
13563         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
13564         e.g., [stable] in the emitted Subject: line.
13566 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13568         Remove obsolete macros from several modules.
13569         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
13570         obsolete Autoconf macros with their modern counterparts.
13571         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
13572         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
13573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
13574         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
13575         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
13576         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13578         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13579         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13580         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
13581         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13582         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13583         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
13584         * m4/sockets.m4 (gl_SOCKETS): Likewise.
13585         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
13586         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
13587         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13588         * m4/time_r.m4 (gl_TIME_R): Likewise.
13589         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13590         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
13591         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13593         Fix copyright header in build-aux scripts.
13594         * build-aux/git-version-gen: Fix copyright header to match GPLv3
13595         recommendation.
13596         * build-aux/ncftpput-ftp: Likewise.
13597         * build-aux/update-copyright: Likewise.
13599 2009-09-09  Eric Blake  <ebb9@byu.net>
13601         test-link: allow Linux choice of errno
13602         * tests/test-link.c (main): Relax test for alternate error.
13604         strndup: fix improper m4 caching
13605         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
13606         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
13607         (gl_PREREQ_STRNDUP): Delete.
13608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
13609         * modules/string (Makefile.am): Substitute it.
13610         * lib/string.in.h (strndup): Modernize prototype.
13612         getcwd: port to mingw
13613         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
13614         different from the POSIX assumptions made throughout the getcwd
13615         module; fortunately, the mingw getcwd does not need replacement.
13616         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
13617         * modules/getcwd-tests: New test.
13618         * tests/test-getcwd.c: Likewise.
13620         link: fix platform bugs
13621         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
13622         * lib/link.c (link): Work around them.  Fix related mingw bug.
13623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
13624         * modules/unistd (Makefile.am): Substitute it.
13625         * lib/unistd.in.h (link): Declare replacement.
13626         * doc/posix-functions/link.texi (link): Document this.
13627         * modules/link (Depends-on): Add strdup-posix, sys_stat.
13629         test-link: consolidate into single C program, test more cases
13630         * tests/test-link.sh: Delete.
13631         * tests/test-link.c: Test more error conditions.  Exposes bugs on
13632         at least Cygwin and Solaris.
13633         * modules/link-tests (Files): Remove unused file.
13634         (Depends-on): Add errno, sys_stat.
13635         (Makefile.am): Simplify.
13637 2009-09-08  Bruno Haible  <bruno@clisp.org>
13639         Work around towlower, towupper bug on mingw.
13640         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
13641         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
13642         * doc/posix-functions/towlower.texi: Mention the mingw bug.
13643         * doc/posix-functions/towupper.texi: Likewise.
13644         Reported by Eric Blake.
13646 2009-09-08  Jim Meyering  <meyering@redhat.com>
13648         build: don't try to run autoheader if we don't use it
13649         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
13650         is not used in configure.ac.
13652 2009-09-08  Eric Blake  <ebb9@byu.net>
13654         euidaccess: fix compilation error
13655         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
13657         rawmemchr: relax license
13658         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
13659         okay.
13660         Reported by Jim Meyering.
13662         mkfifoat: new module
13663         * modules/mkfifoat: New file.
13664         * lib/mkfifoat.c: Likewise.
13665         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
13666         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13667         * modules/sys_stat (Makefile.am): Use them.
13668         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
13669         * MODULES.html.sh (File system functions): Mention module.
13670         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13671         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13672         * modules/mkfifoat-tests: New test.
13673         * tests/test-mkfifoat.c: Likewise.
13675         strchrnul: relax license
13676         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
13677         okay.
13678         Reported by Jim Meyering.
13680 2009-09-08  Eric Blake  <ebb9@byu.net>
13682         fstatat: fix compilation on Solaris
13683         * lib/fstatat.c (includes): Add fcntl.h.
13684         Reported by Pádraig Brady.
13686 2009-09-07  Eric Blake  <ebb9@byu.net>
13688         rename: modernize replacement
13689         * modules/rename (Depends-on): Add stdio.
13690         (configure.ac): Declare witness.
13691         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
13692         stdio take care of replacement.
13693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13694         * modules/stdio (Makefile.am): Substitute them.
13695         * lib/stdio.in.h (rename): Declare replacement.
13696         * lib/rename.c (includes): Allow cross-compilation to non-windows
13697         machines.
13698         * doc/posix-functions/rename.texi (rename): Improve
13699         documentation.
13701         stdio: sort witness names
13702         * modules/stdio (Makefile.am): Sort replacements.
13703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13704         * lib/stdio.in.h: Likewise.
13706         getcwd: minor cleanups
13707         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
13708         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
13710         openat: provide more convenience names
13711         * modules/faccessat (configure.ac): Add C witness.
13712         * lib/unistd.in.h (readlinkat): Fix typo.
13713         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
13714         convenience wrappers.
13715         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
13716         wrappers in syntax checks.
13718 2009-09-06  Eric Blake  <ebb9@byu.net>
13720         doc: fix comments in recent patches
13721         * lib/faccessat.c: Mention correct function.
13722         * lib/fchmodat.c: Likewise.
13723         * lib/fchownat.c: Likewise.
13724         * lib/symlinkat.c: Likewise.
13725         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
13726         constants.
13728         faccessat, symlinkat: continue cleanup of previous patch
13729         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
13730         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
13731         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
13732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
13733         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
13734         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
13735         set.
13737 2009-09-06  Bruno Haible  <bruno@clisp.org>
13739         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
13740         (fstatat): Declare if GNULIB_FSTATAT is set.
13741         (mkdirat): Declare if GNULIB_MKDIRAT is set.
13742         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
13743         (unlinkat): Declare if GNULIB_UNLINKAT is set.
13744         * modules/fcntl-h (Files): Remove m4/openat.m4.
13745         * modules/sys_stat (Files): Remove m4/openat.m4.
13746         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
13747         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
13748         * modules/unistd (Files): Remove m4/openat.m4.
13749         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
13750         GNULIB_OPENAT.
13751         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
13752         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
13753         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
13754         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
13755         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
13756         gl_OPENAT_DEFAULTS.
13757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
13758         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
13759         Don't require gl_OPENAT_DEFAULTS.
13760         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
13761         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
13762         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
13763         (gl_OPENAT_DEFAULTS): Remove macro.
13765 2009-09-06  Bruno Haible  <bruno@clisp.org>
13767         * modules/openat (configure.ac): Remove unneeded witness.
13769 2009-09-06  Bruno Haible  <bruno@clisp.org>
13771         Set errno to ENOSYS when a function is entirely unsupported.
13772         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
13773         EOPNOTSUPP.
13774         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
13775         * modules/chown (Depends-on): Remove errno.
13777 2009-09-06  Bruno Haible  <bruno@clisp.org>
13779         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
13781 2009-09-06  Bruno Haible  <bruno@clisp.org>
13783         * lib/sys_stat.in.h: Fix preprocessor command indentation.
13785 2009-09-06  Ben Pfaff  <blp@gnu.org>
13786             Bruno Haible  <bruno@clisp.org>
13788         Work around a glibc bug in strtok_r.
13789         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
13790         Undefine if UNDEFINE_STRTOK_R is set.
13791         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
13792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13793         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
13794         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
13795         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
13796         UNDEFINE_STRTOK_R.
13797         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
13799 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13801         exclude: minor fix
13802         * lib/exclude.c: Include wctype.h
13804 2009-09-06  Akim Demaille  <demaille@gostai.com>
13806         bootstrap: improve error message
13807         * build-aux/bootstrap (find_tool): Upon failure, report the list
13808         of candidates.
13809         Honor the initial value of the envvar.
13811 2009-09-05  Eric Blake  <ebb9@byu.net>
13813         symlinkat: new module
13814         * modules/symlinkat: New file.
13815         * lib/symlinkat.c: Likewise.
13816         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
13817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13818         * modules/unistd (Makefile.am): Use them.
13819         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
13820         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
13821         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
13822         * MODULES.html.sh (File system functions): Mention module.
13823         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13824         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13825         * modules/symlinkat-tests: New test.
13826         * tests/test-symlinkat.c: Likewise.
13828         test-openat-safer: add more checks
13829         * tests/test-openat-safer.c (main): Check more code paths.
13831 2009-09-05  Jim Meyering  <meyering@redhat.com>
13833         syntax-check: detect unnecessary inclusion of openat.h
13834         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
13836 2009-09-05  Bruno Haible  <bruno@clisp.org>
13838         Support towlower, towupper.
13839         * doc/posix-functions/towlower.texi: Mention module wctype.
13840         * doc/posix-functions/towupper.texi: Likewise.
13841         * lib/wctype.in.h (towlower, towupper): New functions.
13842         * tests/test-wctype.c: Include stdio.h, stdlib.h.
13843         (ASSERT): New macro.
13844         (e): New variable.
13845         (main): Test also towlower, towupper. Test WEOF argument.
13846         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13848 2009-09-05  Bruno Haible  <bruno@clisp.org>
13850         Fix conversion behaviour when the input is invalid.
13851         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
13852         mark occurring in first pass of indirect conversion.
13853         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
13854         input.
13855         Found by clang's static analyzer.
13857 2009-09-05  Bruno Haible  <bruno@clisp.org>
13859         * tests/test-striconveh.c (main): Test indirect conversion on platforms
13860         where direct conversion is possible.
13862 2009-09-04  Eric Blake  <ebb9@byu.net>
13864         openat: fail with ENOENT on empty name
13865         * lib/openat-proc.c (openat_proc_name): Special-case the empty
13866         buffer.
13868         link-follow: fix logic bug in prior patch
13869         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
13870         reversed sense of yes and no in prior patch.  Avoid confusing
13871         compilation failure with desired semantics.
13873         link-follow: accomodate mingw and cross-compilation
13874         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
13875         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
13876         cross-compilation results to -1, to make linkat easier to
13877         implement when cross-compiling.  Trivially support mingw.
13878         * modules/link-follow (configure.ac): Call new name.
13879         * NEWS: Mention this.
13881 2009-09-03  Eric Blake  <ebb9@byu.net>
13883         faccessat: compile replacement
13884         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
13885         needed.
13887         fts: fix compilation error
13888         * lib/fts.c (includes): Re-add "openat.h", for
13889         openat_needs_fchdir.
13891         faccessat: new module
13892         * modules/faccessat: New file.
13893         * lib/faccessat.c: Likewise.
13894         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
13895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13896         * modules/unistd (Makefile.am): Use it.
13897         * lib/unistd.in.h (faccessat): Declare it.
13898         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
13899         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
13900         * MODULES.html.sh (File system functions): Mention it.
13901         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
13902         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13904         euidaccess: prefer POSIX over non-standard implementation
13905         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
13906         * lib/euidaccess.c (euidaccess): Use it if available.
13908         openat: make template easier to use
13909         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
13910         AT_FUNC_F2 to be undefined.
13911         (VALIDATE_FLAG): New macro; use it to reject bad flags.
13912         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
13913         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
13914         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
13915         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
13916         Likewise.
13917         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
13918         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
13919         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
13920         Likewise.
13922         openat: declare in POSIX headers
13923         * NEWS: Mention this.
13924         * modules/openat (configure.ac): Declare witnesses.
13925         (Depends-on): Add fcntl-h, sys_stat, unistd.
13926         (Include): Mention correct headers.
13927         * modules/fcntl-h (Depends-on): Add link-warning.
13928         (Files): Add openat.m4.
13929         (Makefile.am): Substitute witnesses.
13930         * modules/sys_stat (Files, Makefile.am): Likewise.
13931         * modules/unistd (Files, Makefile.am): Likewise.
13932         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
13933         (gl_OPENAT_DEFAULTS): New macro.
13934         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
13935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
13936         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
13937         (SYS_STAT_H): Remove unused variable.
13938         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
13939         * lib/fcntl--.h (includes): Remove unneeded header.
13940         * lib/openat-safer.c (includes): Likewise.
13941         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
13942         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
13943         appropriate headers.
13944         (__OPENAT_PREFIX): Delete.
13945         * lib/fcntl.in.h (openat): Provide declaration.
13946         (AT_FDCWD): Fix Solaris bug.
13947         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
13948         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
13949         * lib/fchmodat.c (includes):  Adjust to find declaration.
13950         * lib/fchownat.c (includes): Likewise.
13951         * lib/mkdirat.c (includes): Likewise.
13952         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
13953         still visible.
13955 2009-09-02  Eric Blake  <ebb9@byu.net>
13957         errno: use consistently
13958         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
13959         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
13960         * lib/canonicalize.c (ELOOP): Likewise.
13961         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
13962         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
13963         * lib/lchown.c (EOPNOTSUPP): Likewise.
13964         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
13965         * lib/savewd.c (ESTALE): Likewise.
13966         * lib/settime.c (ENOSYS): Likewise.
13967         * lib/utimens.c (ENOSYS): Likewise.
13968         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
13969         * lib/chdir-safer.c (ELOOP): Likewise.
13970         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
13971         * modules/c-stack (Depends-on): Add errno.
13972         * modules/canonicalize (Depends-on): Likewise.
13973         * modules/chdir-safer (Depends-on): Likewise.
13974         * modules/fdopendir (Depends-on): Likewise.
13975         * modules/inet_ntop (Depends-on): Likewise.
13976         * modules/inet_pton (Depends-on): Likewise.
13977         * modules/lchown (Depends-on): Likewise.
13978         * modules/openat (Depends-on): Likewise.
13979         * modules/savewd (Depends-on): Likewise.
13980         * modules/settime (Depends-on): Likewise.
13981         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
13983         fts: avoid leaking fds
13984         * modules/fts (Depends-on): Add cloexec.
13985         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
13986         flag.
13988         fts: make directory fds more robust
13989         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
13990         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
13992         backupfile, chdir-long, fts, savedir: make safer
13993         * lib/backupfile.c (includes): Use "dirent--.h", since
13994         numbered_backup can write to stderr during readdir.
13995         * lib/savedir.c (includes): Likewise.
13996         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
13997         emulation can write to stderr on failure.
13998         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
13999         * lib/getcwd.c: Document why opendir_safer is unused.
14000         * lib/glob.c: Likewise.
14001         * lib/scandir.c: Likewise.
14002         * lib/openat-proc.c: Likewise, for open_safer.
14003         * modules/backupfile (Depends-on): Add dirent-safer.
14004         * modules/savedir (Depends-on): Likewise.
14005         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14006         * modules/chdir-long (Depends-on): Add openat-safer.
14008         openat-safer: new module
14009         * modules/openat-safer: New file.
14010         * lib/openat-safer.c: Likewise.
14011         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14012         * lib/fcntl-safer.h (openat_safer): Declare.
14013         * lib/fcntl--.h (openat): Override.
14014         * MODULES.html.sh (File descriptor based I/O): Mention it.
14015         * lib/openat.h: Add double-inclusion guards.
14016         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14017         "fcntl--.h", so we can implement openat.
14018         * modules/openat-safer-tests: New test.
14019         * tests/test-openat-safer.c: New file.
14021         dirent-safer: new module
14022         * modules/dirent-safer: New file.
14023         * lib/dirent--.h: Likewise.
14024         * lib/dirent-safer.h: Likewise.
14025         * lib/opendir-safer.c: Likewise.
14026         * m4/dirent-safer.m4: Likewise.
14027         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14028         * modules/dirent-safer-tests: New test.
14029         * tests/test-dirent-safer.c: New file.
14030         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14032         fdopendir: optimize on mingw
14033         * lib/unistd.in.h (_gl_directory_name): New prototype.
14034         * lib/fchdir.c (_gl_directory_name): Implement it.
14035         (fchdir): Use it to simplify implementation.
14036         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14037         fchdir, when available, to avoid calling [f]chdir().
14039         fdopendir: split into its own module
14040         * lib/openat.c (fdopendir): Move...
14041         * lib/fdopendir.c: ...into new file.
14042         * modules/fdopendir: New module.
14043         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14044         * modules/openat (Depends-on): Add fdopendir.
14045         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14046         fdopendir here.
14047         * modules/savedir (Depends-on): Only need fdopendir, not full
14048         openat.
14049         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14050         * lib/openat.h (fdopendir): Drop prototype.
14051         * lib/dirent.in.h (fdopendir): Provide prototype.
14052         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14053         * modules/dirent (Makefile.am): Substitute them.
14054         * MODULES.html.sh (File system functions): Mention it.
14055         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14056         * modules/fdopendir-tests: New file.
14057         * tests/test-fdopendir.c: Likewise.
14059         fchdir: use more consistent macro convention
14060         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14061         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14062         REPLACE_FCHDIR, rather than relying on config.h macros.
14063         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14064         inside a single make-time REPLACE_FCHDIR block, rather than using
14065         the config.h FCHDIR_REPLACEMENT.
14066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14067         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14068         Manage fstat replacement.
14069         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14070         REPLACE_FCHDIR.
14071         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14072         (Makefile.am): Substitute REPLACE_FCHDIR.
14073         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14074         FCHDIR_REPLACEMENT.
14075         * lib/dup-safer.c (dup_safer): Likewise.
14076         * lib/dup2.c (rpl_dup2): Likewise.
14077         * lib/dup3.c (rpl_dup3): Likewise.
14078         * lib/open.c (rpl_open): Likewise.
14080         fchdir: simplify error handling, and support dup3
14081         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14082         stdbool, malloc-posix, realloc-posix.
14083         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14084         (ensure_dirs_slot): Return false on allocation failure.
14085         (rpl_dup2): Delete.
14086         (_gl_register_dup): New function.
14087         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14088         (_gl_register_fd): Close fd on allocation failure.
14089         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14090         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14091         prototype.
14092         (rpl_dup2_fchdir): Delete prototype.
14093         * lib/open.c (open): Update caller.
14094         * lib/dup2.c (dup2): Track fchdir metadata.
14095         * lib/dup3.c (dup3): Likewise.
14096         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14099 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14101         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14102         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14103         don't pass arguments to AC_OUTPUT.
14105 2009-09-02  Bruno Haible  <bruno@clisp.org>
14107         * modules/mkdtemp (License): Relicense under LGPLv2+.
14108         Reported by Paolo Bonzini.
14110 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14112         Replace uses of obsolete autoconf macros in Jim's modules.
14113         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14114         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14115         can evoke a warning from autoconf when run with -Wobsolete
14116         enabled.  They were declared obsolete for good reasons (see
14117         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14118         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14119         should not continue using the deprecated macros.
14120         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14121         obsolete Autoconf macros with modern counterparts.
14122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14123         * m4/dos.m4 (gl_AC_DOS): Likewise.
14124         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14126         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14127         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14128         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14130         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14131         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14132         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14133         Likewise.
14134         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14135         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14136         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14137         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14138         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14139         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14141 2009-09-01  Eric Blake  <ebb9@byu.net>
14143         fchdir: fix off-by-one bug in previous patch
14144         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14145         (_gl_unregister_fd): Delete useless if.
14147 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14149         maint.mk: sort the list of syntax-check rules
14150         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14151         easier to get a sense of progress when the rules are run sequentially
14152         and take a long time.
14154 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14156         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14157         * modules/netinet_in: Likewise.
14158         * modules/sys_file: Likewise.
14159         * modules/sys_ioctl: Likewise.
14160         * modules/sys_select: Likewise.
14161         * modules/sys_socket: Likewise.
14162         * modules/sys_stat: Likewise.
14163         * modules/sys_time: Likewise.
14164         * modules/sys_times: Likewise.
14165         * modules/sys_utsname: Likewise.
14166         * modules/sys_wait: Likewise.
14168 2009-09-01  Jim Meyering  <meyering@redhat.com>
14170         fts: help ensure that return values are not ignored
14171         * lib/fts_.h (__GNUC_PREREQ): Define.
14172         (__attribute_warn_unused_result__): Define.
14173         (fts_children, fts_close, fts_open, fts_read): Declare with
14174         __attribute_warn_unused_result__.
14176         fts: fts_close now fails also when closing a dir file descriptor fails
14177         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14178         and propagate to caller, along with errno.
14180         announce-gen: correct formatting in --help output
14181         * build-aux/announce-gen (usage): Move the one-line description in
14182         --help output "up", to where it belongs, just after Usage:.
14184 2009-08-31  Eric Blake  <ebb9@byu.net>
14186         fchdir: port to mingw
14187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14188         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14189         opened, then use a substitute.
14190         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14191         replacement.
14192         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14193         (_gl_register_fd): No need to check stat if open already filters
14194         all directories.
14195         (fchdir): Fix error condition to match POSIX.
14196         * modules/fchdir (Depends-on): Add sys_stat.
14197         * doc/posix-functions/open.texi (open): Document the limitation.
14198         * modules/fchdir-tests: New file.
14199         * tests/test-fchdir.c: Likewise.
14201         canonicalize: allow cross-testing from cygwin to mingw
14202         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14203         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14204         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14205         Likewise.
14206         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14207         target does not support symlinks.
14208         * tests/test-canonicalize-lgpl.sh: Likewise.
14210         chown: avoid compilation warning on mingw
14211         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14212         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14213         mingw.
14214         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14215         * modules/chown (Depends-on): Add errno.
14217 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14219         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14220         command.
14222 2009-08-31  Jim Meyering  <meyering@redhat.com>
14224         canonicalize: remove useless initialization
14225         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14226         initialization of local, "end".
14228 2009-08-30  Bruno Haible  <bruno@clisp.org>
14230         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14231         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14232         ENOSYS.
14234 2009-08-30  Bruno Haible  <bruno@clisp.org>
14236         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14237         /usr/xpg4/bin/tr when it exists.
14238         * tests/test-pipe-filter-gi1.sh: Likewise.
14240 2009-08-30  Bruno Haible  <bruno@clisp.org>
14242         Work around deficient /usr/bin/id program on Solaris.
14243         * tests/test-file-has-acl.sh (ID): New variable.
14244         * tests/test-set-mode-acl.sh (ID): Likewise.
14245         * tests/test-copy-acl.sh (ID): Likewise.
14246         * tests/test-copy-file.sh (ID): Likewise.
14248 2009-08-30  Bruno Haible  <bruno@clisp.org>
14250         New module 'xstriconveh'.
14251         * lib/xstriconveh.h: New file.
14252         * lib/xstriconveh.c: New file.
14253         * modules/xstriconveh: New file.
14255 2009-08-30  Bruno Haible  <bruno@clisp.org>
14257         Make it easier to use mem_cd_iconveh.
14258         * lib/striconveh.h (iconveh_t): New type.
14259         (iconveh_open, iconveh_close): New declarations.
14260         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14261         with a single 'const iconveh_t *' argument.
14262         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14263         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14264         with a single 'const iconveh_t *' argument.
14265         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14266         * tests/test-striconveh.c (main): Update.
14267         * NEWS: Mention the change.
14269 2009-08-30  Bruno Haible  <bruno@clisp.org>
14271         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14272         problem.
14274 2009-08-30  Bruno Haible  <bruno@clisp.org>
14276         Work around iconv_open problem on Solaris.
14277         * lib/iconv_open-solaris.gperf: New file.
14278         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14279         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14280         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14281         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14282         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14283         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14285 2009-08-29  Jim Meyering  <meyering@redhat.com>
14287         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14288         * top/maint.mk (cvs-check): Remove target; it was just an alias
14289         to the better-named vc-diff-check.
14290         (maintainer-distcheck): Remove rule.  It was used only from
14291         the (alpha/beta/major) target, and all of its commands but one
14292         were coreutils-specific.
14293         (vc-dist): Remove rule.
14294         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14295         Run vc-diff-check, not vc-dist.
14296         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14298 2009-08-27  Bruno Haible  <bruno@clisp.org>
14300         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14301         of 0.
14303 2009-08-27  Bruno Haible  <bruno@clisp.org>
14305         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
14306         compilers.
14307         * doc/func.texi: Document the SunPRO C bug.
14309 2009-08-27  Bruno Haible  <bruno@clisp.org>
14311         Fix link error on Solaris.
14312         * tests/test-parse-duration.c (xstrdup): Remove function.
14314 2009-08-26  Pádraig Brady  <P@draigbrady.com>
14316         ignore-value: handle pointer types, too
14317         * lib/ignore-value.h (__attribute__): Remove definition.
14318         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
14319         of a more concise and more-often effective "(void) i" statement.
14320         (ignore_ptr): New function to suppress warnings from functions that
14321         return pointers, and to make it explicit that one function doesn't
14322         handle all cases.
14324 2009-08-25  Bruno Haible  <bruno@clisp.org>
14326         dup2: work around a Linux bug.
14327         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
14328         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
14329         * doc/posix-functions/dup2.texi: Mention the Linux bug.
14330         Reported by Simon Josefsson.
14332 2009-08-25  Jim Meyering  <meyering@redhat.com>
14334         libguestfs uses gnulib
14335         * users.txt: Add libguestfs.
14337 2009-08-24  Eric Blake  <ebb9@byu.net>
14339         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
14340         * lib/pipe2.c (includes): Add binary-io.h.
14341         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
14343 2009-08-24  Bruno Haible  <bruno@clisp.org>
14345         Tolerate declared but missing accept4 syscall.
14346         * lib/accept4.c (accept4): Invoke original accept4 function first, if
14347         available.
14348         * lib/sys_socket.in.h (accept4): If the function is already present,
14349         override it.
14350         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
14351         * modules/accept4 (Makefile.am): Compile accept4.c always.
14352         Reported by Paolo Bonzini and Eric Blake.
14354 2009-08-23  Bruno Haible  <bruno@clisp.org>
14356         New module 'accept4'.
14357         * lib/sys_socket.in.h (accept4): New declaration.
14358         * lib/accept4.c: New file.
14359         * m4/accept4.m4: New file.
14360         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14361         GNULIB_ACCEPT4, HAVE_ACCEPT4.
14362         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
14363         HAVE_ACCEPT4.
14364         * modules/accept4: New file.
14365         * doc/glibc-functions/accept4.texi: Mention the new module.
14367 2009-08-24  Jim Meyering  <meyering@redhat.com>
14369         progname: also set global program_invocation_name, when possible
14370         Before this change, a libtool-enabled program that calls glibc's
14371         error function would report the program name as
14372         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
14373         * modules/progname (configure.ac): Check for a declaration of
14374         program_invocation_name.
14375         * lib/progname.c:  Include <errno.h>.
14376         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
14377         Set program_invocation_name.
14379 2009-08-23  Bruno Haible  <bruno@clisp.org>
14381         * lib/dup3.c: Include <string.h>.
14383 2009-08-23  Bruno Haible  <bruno@clisp.org>
14385         * lib/dup3.c (dup3): Test only once whether the system actually exists.
14386         * lib/pipe2.c (pipe2): Likewise.
14387         Suggested by Eric Blake.
14389 2009-08-23  Bruno Haible  <bruno@clisp.org>
14391         Tolerate declared but missing dup3 syscall.
14392         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
14393         * lib/unistd.in.h (dup3): If the function is already present,
14394         override it.
14395         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
14396         * modules/dup3 (Makefile.am): Compile dup3.c always.
14397         Reported by Paolo Bonzini.
14399 2009-08-23  Bruno Haible  <bruno@clisp.org>
14401         Tolerate declared but missing pipe2 syscall.
14402         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
14403         available.
14404         * lib/unistd.in.h (pipe2): If the function is already present,
14405         override it.
14406         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
14407         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
14408         Reported by Paolo Bonzini.
14410 2009-08-23  Bruno Haible  <bruno@clisp.org>
14412         * lib/pipe2.c (pipe2): Move #ifs inside function.
14414 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14416         quotearg: document limitations of quote_these_too
14417         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
14418         those limitations are created.
14419         * lib/quotearg.h (set_char_quoting): Document that digits and
14420         letters that are special after backslash are not permitted.
14421         (quotearg_char): Cross-reference set_char_quoting documentation.
14423 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
14425         quotearg: implement custom_quoting_style
14426         * lib/quotearg.c: (struct quoting_options): Add left_quote and
14427         right_quote fields.
14428         (set_custom_quoting): New public function.
14429         (quotearg_buffer_restyled): Add left_quote and right_quote
14430         arguments, handle them very much like locale quoting, and update
14431         all uses.
14432         (quotearg_n_custom): New public function.
14433         (quotearg_n_custom_mem): New public function.
14434         (quotearg_custom): New public function.
14435         (quotearg_custom_mem): New public function.
14436         * lib/quotearg.h: Prototype and document new public functions.
14437         (enum quoting_style): For escape_quoting_style and
14438         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
14439         ignored even though they're otherwise like c_quoting_style.
14440         Add custom_quoting_style member and document with comparison to
14441         clocale_quoting_style.
14442         * tests/test-quotearg.c (custom_quotes): New array.
14443         (custom_results): New array.
14444         (main): Extend to test custom quoting.
14446 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14448         quotearg: fix right quote escaping when it's in quote_these_too
14449         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
14450         quote, be sure to prepend only one backslash.
14451         * tests/test-quotearg.c (use_quote_double_quotes): New function.
14452         (main): Test it.
14454 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14456         quotearg-tests: test escaping of embedded locale quotes
14457         * tests/test-quotearg.c (struct result_strings): Add member for
14458         new input.
14459         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
14460         (inputs): Add new input.
14461         (results_g): Add expected results.
14462         (flag_results): Likewise.
14463         (locale_results): Likewise.
14464         (compare_strings): Check those.
14466 2009-08-23  Bruno Haible  <bruno@clisp.org>
14468         Tests for module 'dup3'.
14469         * modules/dup3-tests: New file.
14470         * tests/test-dup3.c: New file.
14472         New module 'dup3'.
14473         * lib/unistd.in.h (dup3): New declaration.
14474         * lib/dup3.c: New file.
14475         * m4/dup3.m4: New file.
14476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
14477         HAVE_DUP3.
14478         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
14479         * modules/dup3: New file.
14480         * doc/glibc-functions/dup3.texi: Mention the new module.
14482 2009-08-23  Bruno Haible  <bruno@clisp.org>
14484         Tweak the dup2 test.
14485         * tests/test-dup2.c (main): Create the test file empty. Verify that an
14486         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
14487         the test file is still empty. Fix argument order of lseek.
14489 2009-08-23  Bruno Haible  <bruno@clisp.org>
14491         Avoid test link errors when the modules getopt-gnu, gettext are used.
14492         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
14493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14495 2009-08-23  Bruno Haible  <bruno@clisp.org>
14497         Fix getdtablesize() on mingw.
14498         * lib/getdtablesize.c (getdtablesize): Implement differently.
14499         * lib/unistd.in.h (getdtablesize): Improve comment.
14501 2009-08-23  Bruno Haible  <bruno@clisp.org>
14503         New module 'mkostemp'.
14504         Based on Ulrich Drepper's 2007-08-10 change in glibc.
14505         * lib/stdlib.in.h (mksotemp): New declaration.
14506         * lib/mkostemp.c: New file, from glibc with modifications.
14507         * lib/tempname.h (GT_FILE): Remove outdated comment.
14508         (gen_tempname): Add flags argument.
14509         * lib/tempname.c (__GT_BIGFILE): Remove macro.
14510         (__GT_FILE): Map to 1.
14511         (small_open, large_open): Remove macros.
14512         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
14513         * lib/mkstemp.c (mkstemp): Update.
14514         * lib/mkdtemp.c (mkdtemp): Likewise.
14515         * m4/mkostemp.m4: New file.
14516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
14517         HAVE_MKOSTEMP.
14518         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
14519         HAVE_MKOSTEMP.
14520         * modules/mkostemp: New file, based on modules/mkstemp.
14521         * doc/glibc-functions/mkostemp.texi: Mention the new module.
14522         * NEWS: Mention the change.
14524 2009-08-23  Bruno Haible  <bruno@clisp.org>
14526         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
14527         Reported by Eric Blake.
14529 2009-08-23  Bruno Haible  <bruno@clisp.org>
14531         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
14532         Reported by Eric Blake.
14534 2009-08-23  Bruno Haible  <bruno@clisp.org>
14536         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
14537         * modules/pipe2 (Depends-on): Likewise.
14539 2009-08-23  Eric Blake  <ebb9@byu.net>
14541         fcntl-h: add O_TTY_INIT support
14542         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
14543         * tests/test-fcntl-h.c (o): Test it.
14544         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14546         fcntl-h: rename from fcntl, in preparation for fcntl(2)
14547         * modules/fcntl: Move <fcntl.h> header replacement...
14548         * modules/fcntl-h: ...to new name, so as not to collide with
14549         like-named function.
14550         * tests/test-fcntl.c: Rename...
14551         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
14552         * modules/fcntl-tests: Rename...
14553         * modules/fcntl-h-tests: ...to this.  Update test file name.
14554         * modules/chdir-long (Depends-on): Update clients.
14555         * modules/chdir-safer (Depends-on): Likewise.
14556         * modules/fcntl-safer (Depends-on): Likewise.
14557         * modules/fts (Depends-on): Likewise.
14558         * modules/mkancesdirs (Depends-on): Likewise.
14559         * modules/mkdir-p (Depends-on): Likewise.
14560         * modules/open (Depends-on): Likewise.
14561         * modules/savewd (Depends-on): Likewise.
14562         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
14563         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14565 2009-08-22  Bruno Haible  <bruno@clisp.org>
14567         * modules/binary-io (License): Relicense under LGPL.
14568         * modules/pipe2 (License): Likewise.
14570 2009-08-22  Bruno Haible  <bruno@clisp.org>
14572         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
14573         return value.
14574         * lib/pipe-filter-gi.c (filter_init): Likewise.
14575         Reported by Eric Blake.
14577 2009-08-22  Bruno Haible  <bruno@clisp.org>
14579         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
14580         * modules/pipe (Depends-on): Add pipe2.
14582 2009-08-22  Bruno Haible  <bruno@clisp.org>
14584         Tests for module 'pipe2'.
14585         * modules/pipe2-tests: New file.
14586         * tests/test-pipe2.c: New file.
14588         New module 'pipe2'.
14589         * lib/unistd.in.h (pipe2): New declaration.
14590         * lib/pipe2.c: New file.
14591         * m4/pipe2.m4: New file.
14592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
14593         HAVE_PIPE2.
14594         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
14595         * modules/pipe2: New file.
14596         * doc/glibc-functions/pipe2.texi: Mention the new module.
14598 2009-08-22  Bruno Haible  <bruno@clisp.org>
14600         Reference some new glibc functions.
14601         * doc/glibc-functions/accept4.texi: New file.
14602         * doc/glibc-functions/dup3.texi: New file.
14603         * doc/glibc-functions/mkostemp.texi: New file.
14604         * doc/glibc-functions/pipe2.texi: New file.
14605         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
14606         (Glibc sys/socket.h): Refer to accept4.
14607         (Glibc unistd.h): Refer to dup3, pipe2.
14608         Reported by Eric Blake.
14610 2009-08-22  Jim Meyering  <meyering@redhat.com>
14611             Bruno Haible  <bruno@clisp.org>
14613         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
14614         This makes it so packages using automake-1.11's silent-rules option
14615         can print e.g., a single "GEN    configmake.h" line, rather than
14616         the 30+ statements that perform the job.  If you want to see the
14617         actual commands, you can still run "make V=1".
14618         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
14619         so that make output is abbreviated when those variables are defined
14620         appropriately.
14621         * modules/argz: Likewise.
14622         * modules/arpa_inet: Likewise.
14623         * modules/byteswap: Likewise.
14624         * modules/configmake: Likewise.
14625         * modules/dirent: Likewise.
14626         * modules/errno: Likewise.
14627         * modules/fcntl: Likewise.
14628         * modules/float: Likewise.
14629         * modules/fnmatch: Likewise.
14630         * modules/getopt-posix: Likewise.
14631         * modules/glob: Likewise.
14632         * modules/iconv_open: Likewise.
14633         * modules/inttypes: Likewise.
14634         * modules/localcharset: Likewise.
14635         * modules/locale: Likewise.
14636         * modules/math: Likewise.
14637         * modules/netdb: Likewise.
14638         * modules/netinet_in: Likewise.
14639         * modules/poll: Likewise.
14640         * modules/posix_spawnp-tests: Likewise.
14641         * modules/sched: Likewise.
14642         * modules/search: Likewise.
14643         * modules/selinux-h: Likewise.
14644         * modules/signal: Likewise.
14645         * modules/spawn: Likewise.
14646         * modules/stdarg: Likewise.
14647         * modules/stdbool: Likewise.
14648         * modules/stddef: Likewise.
14649         * modules/stdint: Likewise.
14650         * modules/stdio: Likewise.
14651         * modules/stdlib: Likewise.
14652         * modules/string: Likewise.
14653         * modules/strings: Likewise.
14654         * modules/sys_file: Likewise.
14655         * modules/sys_ioctl: Likewise.
14656         * modules/sys_select: Likewise.
14657         * modules/sys_socket: Likewise.
14658         * modules/sys_stat: Likewise.
14659         * modules/sys_time: Likewise.
14660         * modules/sys_times: Likewise.
14661         * modules/sys_utsname: Likewise.
14662         * modules/sys_wait: Likewise.
14663         * modules/sysexits: Likewise.
14664         * modules/time: Likewise.
14665         * modules/unistd: Likewise.
14666         * modules/wchar: Likewise.
14667         * modules/wctype: Likewise.
14669 2009-08-22  Jim Meyering  <meyering@redhat.com>
14671         announce-gen: detect write failure
14672         * build-aux/announce-gen: Add Coda at end.
14673         Remove equivalent-but-more-verbose block at top.
14675 2009-08-19  Akim Demaille  <demaille@gostai.com>
14677         bootstrap: --help to stdout.
14678         * bootstrap (usage): Don't send --help to stderr.
14679         Use a here doc instead of a long string.
14681 2009-08-21  Eric Blake  <ebb9@byu.net>
14683         test-popen-safer: split from test-popen
14684         * tests/test-popen.c (main): Move...
14685         * tests/test-popen.h: ...into new file.
14686         * tests/test-popen-safer2.c: New file.
14687         * modules/popen-tests (Files): Add test-popen.h.
14688         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
14689         Suggested by Bruno Haible.
14691         test-fcntl-safer: split from test-open
14692         * tests/test-open.c (main): Move...
14693         * tests/test-open.h: ...into new file.
14694         * tests/test-fcntl-safer.c: New file.
14695         * modules/open-tests (Files): Add test-open.h.
14696         * modules/fcntl-safer-tests: New file.
14697         Suggested by Bruno Haible.
14699         test-fopen-safer: split from test-fopen
14700         * tests/test-fopen.c (main): Move...
14701         * tests/test-fopen.h: ...into new file.
14702         * tests/test-fopen-safer.c: New file.
14703         * modules/fopen-tests (Files): Add test-fopen.h.
14704         * modules/fopen-safer-tests: New file.
14705         Suggested by Bruno Haible.
14707 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
14709         popen-safer: test O_CLOEXEC at run-time.
14710         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
14712 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
14714         fcntl: move more flags to the header
14715         * lib/cloexec.c: Do not define FD_CLOEXEC here.
14716         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
14717         * lib/fcntl.in.h: Do both things here.
14719 2009-08-21  Jim Meyering  <meyering@redhat.com>
14721         consistently remove $@-t before redirecting to it
14722         * modules/argz: Remove $@-t and $@ before redirecting to the former.
14723         * modules/alloca-opt: Likewise.
14724         * modules/byteswap: Likewise.
14725         * modules/fnmatch: Likewise.
14726         * modules/getopt-posix: Likewise.
14727         * modules/glob: Likewise.
14728         * modules/poll: Likewise.
14729         * modules/posix_spawnp-tests: Likewise.
14730         * modules/sys_socket: Likewise.
14731         * modules/sysexits: Likewise.
14733 2009-08-21  Eric Blake  <ebb9@byu.net>
14735         popen: simplify access to original popen
14736         * lib/popen.c (rpl_popen): No need to worry about popen being a
14737         macro.
14738         Reported by Bruno Haible.
14740 2009-08-20  Eric Blake  <ebb9@byu.net>
14742         build: avoid some compiler warnings
14743         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
14744         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
14745         type.
14746         (new_exclude_segment, excluded_file_pattern_p)
14747         (excluded_file_name_p): Reduce scope.
14748         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
14749         old-style declaration.
14751 2009-08-20  Simon Josefsson  <simon@josefsson.org>
14753         * tests/test-exclude1.sh: Handle Windows EOL.
14754         * tests/test-exclude2.sh: Likewise.
14755         * tests/test-exclude3.sh: Likewise.
14756         * tests/test-exclude4.sh: Likewise.
14757         * tests/test-exclude5.sh: Likewise.
14758         * tests/test-exclude6.sh: Likewise.
14759         * tests/test-exclude7.sh: Likewise.
14761 2009-08-19  Akim Demaille  <demaille@gostai.com>
14763         bootstrap: find sha1sum when named gsha1sum.
14764         * bootstrap (find_tool): New.
14765         ($SHA1SUM): New.
14766         Use it.
14768 2009-08-20  Jim Meyering  <meyering@redhat.com>
14770         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
14771         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
14772         expression that converts "." in a file name to "\." in the resulting
14773         regexp.  Start with a dummy statement, so that prior shell variable
14774         definitions are expanded portably.  Reported by Simon Josefsson.
14776 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
14778         Fix polling for writeability of a screen buffer.
14779         * lib/poll.c: Distinguish input and screen buffers for the
14780         Win32 implementation.
14781         * lib/select.c: Likewise.
14783 2009-08-19  Eric Blake  <ebb9@byu.net>
14785         popen-safer: prevent popen from clobbering std descriptors
14786         * modules/popen-safer: New file.
14787         * lib/popen-safer.c: Likewise.
14788         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
14789         * lib/stdio--.h (popen): Provide override.
14790         * lib/stdio-safer.h (popen_safer): Provide declaration.
14791         * tests/test-popen.c (includes): Partially test this.
14792         * modules/popen-safer-tests: New file, for more tests.
14793         * tests/test-popen-safer.c: Likewise.
14794         * MODULES.html.sh (file stream based Input/Output): Mention it.
14796         tests: test some of the *-safer modules
14797         * modules/fopen-safer (Depends-on): Add fopen.
14798         * modules/fcntl-safer (Depends-on): Add fcntl.
14799         * modules/stdlib-safer (Depends-on): Add stdlib.
14800         (configure.ac): Set indicator.
14801         * modules/unistd-safer (configure.ac): Likewise.
14802         * modules/tmpfile-safer (configure.ac): Likewise.
14803         (Depends-on): Add tmpfile.
14804         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
14805         active.
14806         * tests/test-fopen.c (includes): Test safer versions when they are
14807         in use.
14808         * tests/test-open.c (includes): Likewise.
14810         popen: fix cygwin 1.5 bug when stdin closed
14811         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
14812         * modules/popen: New file.
14813         * modules/popen-tests: Likewise.
14814         * tests/test-popen.c: Likewise.
14815         * m4/popen.m4: Likewise.
14816         * lib/popen.c: Likewise.
14817         * lib/stdio.in.h (popen): New declaration.
14818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
14819         * modules/stdio (Makefile.am): Likewise.
14820         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
14822 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
14824         maint.mk: give full control over update-copyright exclusions
14825         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
14826         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
14827         (update-copyright): Don't force inclusion of top-level
14828         ChangeLog.  Don't force exclusion of all COPYING files, but make
14829         them the default exclusion instead.
14831 2009-08-16  Bruno Haible  <bruno@clisp.org>
14833         Fix test failures on Solaris 10.
14834         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
14835         tests when Solaris iconv() is used.
14836         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14837         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14838         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14839         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14840         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14842 2009-08-16  Bruno Haible  <bruno@clisp.org>
14844         Fix test failures on Solaris 10.
14845         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
14846         'tr' program and pass it as first argument.
14847         * tests/test-pipe-filter-gi1.sh: Likewise.
14848         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
14849         program as first argument.
14850         * tests/test-pipe-filter-gi1.c (main): Likewise.
14852 2009-08-16  Eric Blake  <ebb9@byu.net>
14854         fpurge: fix previous commits
14855         * modules/fpurge (Makefile.am): Make replacement conditional,
14856         partially reverting 2007-04-29 change; missed in previous
14857         attempt.
14858         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
14859         is missing.
14861 2009-08-16  Bruno Haible  <bruno@clisp.org>
14863         Clarify fpurge's effect on the file position.
14864         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
14865         * tests/test-fpurge.c (main): Make a second pass for checking the file
14866         position.
14868 2009-08-16  Bruno Haible  <bruno@clisp.org>
14870         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
14871         declaration of fpurge is missing.
14872         * tests/test-fpurge.c (main): Check that the file has not more contents
14873         than expected. Close the file before removing it.
14875 2009-08-15  Eric Blake  <ebb9@byu.net>
14877         fpurge: don't wrap working cygwin implementation
14878         * lib/fpurge.c (fpurge): Fix comment typo.
14879         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
14880         1.7 to avoid replacement.
14881         * tests/test-fpurge.c (main): Enhance test.
14883 2009-08-15  Eric Blake  <ebb9@byu.net>
14884         and Jim Meyering  <meyering@redhat.com>
14886         test-update-copyright: skip if perl is insufficient
14887         * tests/test-update-copyright.sh: Failure to run maintainer tool
14888         should not cause testsuite failure on cygwin 1.5.
14890 2009-08-14  Eric Blake  <ebb9@byu.net>
14892         doc: mention more functions added in cygwin 1.7.0
14893         * doc/posix-headers/limits.texi (limits.h): Update for recent
14894         cygwin additions.
14895         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
14896         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14897         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
14898         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
14899         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
14901 2009-08-14  Eric Blake  <ebb9@byu.net>
14903         maint.mk: simplify update-copyright rule
14904         * top/maint.mk (update-copyright-local): Delete, and document how
14905         to do it in cfg.mk instead.
14906         (update-copyright-exclude-regexp): Delete, and document how to do
14907         it in .x-update-copyright instead.
14908         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
14909         exclude ChangeLog.
14911 2009-08-14  Bruno Haible  <bruno@clisp.org>
14913         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
14915 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
14917         maint.mk: support update-copyright-env
14918         * top/maint.mk (update-copyright-env): Define place-holder.
14919         (update-copyright): Expand $(update-copyright-env) before
14920         invoking update-copyright.
14922 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
14924         update-copyright: implement forced reformatting
14925         * build-aux/update-copyright: Implement and document
14926         UPDATE_COPYRIGHT_FORCE.
14927         * tests/test-update-copyright.sh: Test it.
14929 2009-08-14  Eric Blake  <ebb9@byu.net>
14930         and Bruno Haible  <bruno@clisp.org>
14932         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
14933         * tests/test-locale.c: Revert previous patch related to NULL.
14934         * tests/test-stdio.c: Likewise.
14935         * tests/test-stdlib.c: Likewise.
14936         * tests/test-string.c: Likewise.
14937         * tests/test-unistd.c: Likewise.
14938         * modules/time-tests (Depends-on): Add verify.
14939         * modules/wchar-tests (Depends-on): Likewise.
14940         * tests/test-time.c: Test for NULL compliance.
14941         * tests/test-wchar.c: Likewise.
14942         * modules/locale (Depends-on): Add stddef.
14943         * modules/stdio (Depends-on): Likewise.
14944         * modules/stdlib (Depends-on): Likewise.
14945         * modules/string (Depends-on): Likewise.
14946         * modules/time (Depends-on): Likewise.
14947         * modules/unistd (Depends-on): Likewise.
14948         * modules/wchar (Depends-on): Likewise.
14949         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
14950         * lib/stdlib.in.h (includes): Likewise.
14951         * lib/string.in.h (includes): Likewise.
14952         * lib/time.in.h (includes): Likewise.
14953         * lib/unistd.in.h (includes): Likewise.
14954         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
14955         replaced.
14956         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14957         * m4/stddef_h.m4: New file.
14958         * modules/stddef: Likewise.
14959         * lib/stddef.in.h: Likewise.
14960         * modules/stddef-tests: Likewise.
14961         * tests/test-stddef.c: Likewise.
14962         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
14963         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
14964         * doc/posix-headers/locale.texi (locale.h): Likewise.
14965         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
14966         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14967         * doc/posix-headers/string.texi (string.h): Likewise.
14968         * doc/posix-headers/time.texi (time.h): Likewise.
14969         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
14970         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
14972 2009-08-14  Eric Blake  <ebb9@byu.net>
14974         doc: improve git diff of texinfo files
14975         * .gitattributes: Add rule for *.texi files, with hint on how to
14976         use it.
14977         Copied from m4, and based on a report by Bruno Haible.
14979 2009-08-14  Bruno Haible  <bruno@clisp.org>
14981         Disable multithread support by default on Cygwin 1.5.x for real.
14982         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
14984 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
14986         update-copyright: much ado about intervals
14987         * build-aux/update-copyright: Implement and document
14988         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
14989         of copyright year intervals.
14990         Also, document UPDATE_COPYRIGHT_YEAR.
14991         * tests/test-update-copyright.sh: Test it.
14993         update-copyright: convert 2-digit to 4-digit years
14994         * build-aux/update-copyright: Implement and document.
14995         * tests/test-update-copyright.sh: Update.
14997 2009-08-14  Jim Meyering  <meyering@redhat.com>
14999         test-exclude: avoid coreutils "make check" failure
15000         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15001         just as in test-argmatch.c.
15003 2009-08-13  Eric Blake  <ebb9@byu.net>
15005         test-dup2: fix bad assumption
15006         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15007         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15009         test-version-etc: fix CRLF portability issue
15010         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15011         recognize \r.
15012         * tests/test-argp-version-etc-1.sh: Likewise.
15014         getopt: update client modules
15015         * modules/argp (Depends-on): Use getopt-gnu.
15016         * modules/git-merge-changelog (Depends-on): Likewise.
15017         * modules/long-options (Depends-on): Likewise.
15018         * modules/xstrtol (Depends-on): Likewise.
15020 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15022         * tests/test-version-etc.sh: Don't fail on different
15023         project/version.  Don't fail on CRLF differences.  Rewrite to use
15024         multiple -e instead of multiple sed forks, suggested by Eric Blake
15025         <ebb9@byu.net>.
15026         * tests/test-argp-version-etc-1.sh: Likewise.
15028 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15030         * tests/test-version-etc.sh: Don't fail on different
15031         project/version.
15033 2009-08-12  Bruno Haible  <bruno@clisp.org>
15035         Tests for modules 'getopt-posix', 'getopt-gnu'.
15036         * modules/getopt-posix-tests: New file.
15037         * tests/test-getopt.c: New file.
15038         * tests/test-getopt.h: New file.
15039         * tests/test-getopt_long.h: New file.
15041         New modules 'getopt-posix', 'getopt-gnu'.
15042         * modules/getopt-gnu: New file, renamed from modules/getopt.
15043         * modules/getopt-posix: New file.
15044         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15045         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15046         (gl_GETOPT): Remove macro.
15047         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15048         Disable the test against BSD systems that declare optreset. Test
15049         against mingw bug. Test against lack of support of optional arguments
15050         on many platforms.
15051         * doc/glibc-headers/getopt.texi: Update module name and list of
15052         relevant platforms.
15053         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15054         'getopt-gnu' and more portability problems.
15055         * NEWS: Mention the changes.
15057 2009-08-12  Bruno Haible  <bruno@clisp.org>
15059         Ensure that optarg etc. get declared by <unistd.h>.
15060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15061         AC_USE_SYSTEM_EXTENSIONS.
15062         * modules/getopt (Depends-on): Add 'extensions'.
15064 2009-08-12  Bruno Haible  <bruno@clisp.org>
15066         Avoid test link errors.
15067         * modules/pipe-filter-ii-tests (Makefile.am): Define
15068         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15069         * modules/pipe-filter-gi-tests (Makefile.am): Define
15070         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15073 2009-08-12  Bruno Haible  <bruno@clisp.org>
15075         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15076         gl_GETOPT_SUBSTITUTE before.
15077         (gl_GETOPT): Use it.
15078         * m4/argp.m4 (gl_ARGP): Update.
15079         Reported by Sergey Poznyakoff.
15081         * m4/getopt.m4: Reorder macros.
15082         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15083         (gl_GETOPT_SUBSTITUTE): Remove macro.
15085 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15087         Minor improvement in gitlog-to-changelog
15089         * build-aux/gitlog-to-changelog: New option `--format' makes
15090         output format string configurable.
15092 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15094         Optimize exclude: use hash tables for non-wildcard patterns.
15096         * lib/exclude.c: Include hash.h and mbuiter.h
15097         (struct exclude_pattern, exclude_segment): New data types.
15098         (struct exclude): Rewrite.
15099         (fnmatch_pattern_has_wildcards): New function.
15100         (new_exclude_segment, free_exclude_segment): New functions.
15101         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15102         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15103         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15104         * modules/exclude: Depend on hash and mbuiter.
15106         * modules/exclude-tests: New file.
15107         * tests/test-exclude.c: New file.
15108         * tests/test-exclude1.sh: New file.
15109         * tests/test-exclude2.sh: New file.
15110         * tests/test-exclude3.sh: New file.
15111         * tests/test-exclude4.sh: New file.
15112         * tests/test-exclude5.sh: New file.
15113         * tests/test-exclude6.sh: New file.
15114         * tests/test-exclude7.sh: New file.
15116 2009-08-12  Bruno Haible  <bruno@clisp.org>
15118         Ensure that getopt() gets declared by <unistd.h>.
15119         * lib/unistd.in.h: Conditionally include getopt.h.
15120         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15121         Set GNULIB_UNISTD_H_GETOPT.
15122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15123         GNULIB_UNISTD_H_GETOPT.
15124         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15126 2009-08-12  Bruno Haible  <bruno@clisp.org>
15128         Clarify logic.
15129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15130         gl_replace_getopt instead of GETOPT_H.
15132 2009-08-12  Bruno Haible  <bruno@clisp.org>
15134         * m4/getopt.m4: Add comments.
15136 2009-08-12  Bruno Haible  <bruno@clisp.org>
15138         Disable multithread support by default on Cygwin 1.5.x.
15139         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15140         set gl_use_threads=no if not specified otherwise.
15142 2009-08-11  Bruno Haible  <bruno@clisp.org>
15144         Avoid compilation error on NetBSD 5.0.
15145         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15146         * tests/test-stdio.c: Likewise.
15147         * tests/test-stdlib.c: Likewise.
15148         * tests/test-string.c: Likewise.
15149         * tests/test-unistd.c: Likewise.
15150         Reported by Greg Troxel <gdt@ir.bbn.com>
15151         at <https://savannah.gnu.org/support/?106973>.
15153 2009-08-11  Bruno Haible  <bruno@clisp.org>
15155         * modules/dup2-tests (Depends-on): Remove close.
15157         Undo 2009-07-19 commit.
15158         * modules/acl-tests (Depends-on): Remove close.
15159         * modules/binary-io-tests (Depends-on): Likewise.
15160         * modules/closein-tests (Depends-on): Likewise.
15161         * modules/flock-tests (Depends-on): Likewise.
15162         * modules/fsync-tests (Depends-on): Likewise.
15163         * modules/lseek-tests (Depends-on): Likewise.
15164         * modules/pipe-tests (Depends-on): Likewise.
15165         * modules/posix_spawn-tests (Depends-on): Likewise.
15166         * modules/posix_spawnp-tests (Depends-on): Likewise.
15167         * modules/stat-time-tests (Depends-on): Likewise.
15168         * modules/yesno-tests (Depends-on): Likewise.
15170 2009-08-10  Bruno Haible  <bruno@clisp.org>
15172         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15174 2009-08-10  Bruno Haible  <bruno@clisp.org>
15176         Fix a gcc warning.
15177         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15179 2009-08-10  Bruno Haible  <bruno@clisp.org>
15181         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15182         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15183         not only the first time.
15184         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15185         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15186         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15187         is 1, not only the the first time.
15189 2009-08-10  Bruno Haible  <bruno@clisp.org>
15191         Make it possible to use module 'gethostname' without module 'close'.
15192         * lib/unistd.in.h (close): Evoke a link error only if
15193         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15195         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15196         * modules/unistd (Makefile.am): Substitute
15197         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15198         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15199         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15200         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15201         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15202         * modules/sys_ioctl (Makefile.am): Substitute
15203         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15204         * modules/socket (configure.ac): On native Windows, set
15205         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15206         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15207         Reported by Sam Steingold <sds@gnu.org>.
15209 2009-08-10  Bruno Haible  <bruno@clisp.org>
15211         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15212         * modules/ioctl (configure.ac): Likewise.
15214 2009-08-10  Bruno Haible  <bruno@clisp.org>
15216         Avoid collision between gnulib wrapper and libintl wrapper.
15217         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15218         already defined in intl/printf.c.
15219         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15220         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15222 2009-08-09  Bruno Haible  <bruno@clisp.org>
15224         Make <sys/select.h> really self-contained, also on Solaris 10.
15225         * lib/sys_select.in.h: Include <string.h>.
15226         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15227         Solaris 10 problem.
15228         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15229         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15230         Reported by Jim Meyering.
15232 2009-08-09  Bruno Haible  <bruno@clisp.org>
15234         Avoid warnings from 'aclocal' that are due to a use of macro name
15235         AM_XGETTEXT_OPTION that is not defined in automake.
15236         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15237         automake.
15238         * modules/error (configure.ac): Likewise.
15239         * modules/propername (configure.ac): Likewise.
15240         * modules/vasprintf (configure.ac): Likewise.
15241         * modules/verror (configure.ac): Likewise.
15242         * modules/xprintf (configure.ac): Likewise.
15243         * modules/xvasprintf (configure.ac): Likewise.
15245 2009-08-08  Bruno Haible  <bruno@clisp.org>
15247         Avoid compilation error in C++ mode.
15248         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15249         Reported by Sam Steingold <sds@gnu.org>.
15251 2009-08-08  Bruno Haible  <bruno@clisp.org>
15253         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15254         for the various Unix platforms.
15255         * doc/posix-headers/limits.texi: Update platforms list regarding
15256         HOST_NAME_MAX.
15257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15259 2009-08-07  Jim Meyering  <meyering@redhat.com>
15261         selinux-at: fix typo in a comment
15262         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15263         Spotted by Paolo Bonzini.
15265         selinux-at: remove redundant m4 code, add documentation
15266         * modules/selinux-at (configure.ac): Remove redundant code.
15267         LIB_SELINUX is already set via the dependent module, selinux-h.
15268         (Include): Add quotes around selinux-at.h.
15269         * lib/selinux-at.h: Add documentation.
15270         Reported by Bruno Haible in
15271         http://marc.info/?l=gnulib-bug&m=124958988300749
15273 2009-08-07  Bruno Haible  <bruno@clisp.org>
15275         Avoid link error on MacOS X 10.3 and 10.4.
15276         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15277         on non-ELF systems.
15278         * lib/argp-pv.c (argp_program_version): Likewise.
15279         Reported by Simon Josefsson.
15281 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15283         * tests/test-version-etc.sh: Use $EXEEXT.
15285 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15287         update-copyright: update documentation to point to maint.mk
15288         * build-aux/update-copyright: Here.
15290 2009-08-06  Jim Meyering  <meyering@redhat.com>
15292         maint.mk: support update-copyright-local
15293         * top/maint.mk (update-copyright-local): Define place-holder.
15294         (update-copyright): Depend on $(update-copyright-local).
15296 2009-08-06  Jim Meyering  <meyering@redhat.com>
15298         selinux-at: new module
15299         Initially written for coreutils, this module will soon be
15300         used by findutils, too.
15301         * MODULES.html.sh [Misc]: Add selinux-at.
15302         * lib/selinux-at.h: New file, from coreutils.
15303         * lib/selinux-at.c: Likewise.
15304         * modules/selinux-at: Likewise.
15305         (License): Change from LGPL to GPL, since it depends
15306         on the GPL'd openat module.
15308         doc: update README
15309         * README: Remove references to cogito.
15310         Remove cvs-repo-updating instructions from 2007.
15311         Don't imply that CVS is better if you have limited disk space.
15313 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15315         update-copyright: support C-style comments
15316         * build-aux/update-copyright: Implement and document.
15317         * tests/test-update-copyright.sh: Test.
15319 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15321         update-copyright: support omitted "(C)"
15322         * build-aux/update-copyright: Implement and document.  Also,
15323         allow variable whitespace before "(C)".
15324         * tests/test-update-copyright.sh: Test.
15326 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15328         update-copyright: don't trip on non-FSF copyright statements
15329         * build-aux/update-copyright: Fix so that the first correctly
15330         formatted FSF copyright statement is recognized no matter what
15331         appears before it.  Update documentation.
15332         * tests/test-update-copyright.sh: Test that.
15334 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15336         update-copyright: clean up code a little
15337         * build-aux/update-copyright: Append "_re" to the name of any
15338         variable holding a regular expression.
15339         Replace "old" and "new" with "stmt" in variable names.
15340         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
15341         handled correctly.
15342         Format code more consistently.
15344 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15346         update-copyright-tests: improve portability
15347         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
15348         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
15350 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15352         update-copyright: support @copyright{} and &copy;
15353         * build-aux/update-copyright: Implement and document.
15354         * tests/test-update-copyright.sh: Test.
15356 2009-08-04  Jim Meyering  <meyering@redhat.com>
15358         update-copyright-tests: correctly test EOL=\r\n handling
15359         * tests/test-update-copyright.sh: Put \r at the end of some lines
15360         for the dos-eol tests.  Based on a patch by Joel E. Denny.
15362         maint.mk: make update-copyright exclusion list more configurable
15363         * top/maint.mk (update-copyright): Default to excluding COPYING,
15364         but allow an override, in case someone does want to update that file.
15366         maint.mk: don't update copyright date in COPYING
15367         * top/maint.mk (update-copyright): Exclude COPYING.
15369         maint.mk: add a copyright-updating rule
15370         * top/maint.mk (update-copyright): New rule.
15371         Derived from coreutils/Makefile.am.
15373         update-copyright: rename some variables
15374         * build-aux/update-copyright: Rename a few variables for clarity.
15375         Tweak syntax.  List Joel E. Denny as coauthor.
15377 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15379         update-copyright: fix bug for 2-digit last year and add tests
15380         * build-aux/update-copyright: Fix bug.
15381         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
15382         specified.
15383         * modules/update-copyright-tests: New
15384         * tests/test-update-copyright.sh: New.
15386 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15388         update-copyright: handle leading tabs in line prefix
15389         * build-aux/update-copyright: Count leading tabs as 8 spaces
15390         when computing margin.  This helps with the formatting of
15391         ChangeLogs, for example.
15392         Fix documentation a little.
15394 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15396         update-copyright: support EOL=\r\n
15397         * build-aux/update-copyright: Implement that.
15399 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15401         update-copyright: automatically format copyright statements
15402         * build-aux/update-copyright: Implement that.
15403         Also, be a little more predictable and safer by always failing
15404         when the full copyright format is not perfectly recognized as an
15405         unbroken whole.  Discussed at
15406         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
15407         Rewrite documentation.
15409 2009-08-03  Bruno Haible  <bruno@clisp.org>
15411         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
15413 2009-08-02  Bruno Haible  <bruno@clisp.org>
15415         Tests for module 'uname'.
15416         * modules/uname-tests: New file.
15417         * tests/test-uname.c: New file.
15419         New module 'uname'.
15420         * lib/uname.c: New file.
15421         * m4/uname.m4: New file.
15422         * modules/uname: New file.
15423         * doc/posix-functions/uname.texi: Mention the new module.
15425 2009-08-02  Bruno Haible  <bruno@clisp.org>
15427         Tests for module 'sys_utsname'.
15428         * modules/sys_utsname-tests: New file.
15429         * tests/test-sys_utsname.c: New file.
15431         New module 'sys_utsname'.
15432         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
15433         * m4/sys_utsname_h.m4: New file.
15434         * modules/sys_utsname: New file.
15435         * doc/posix-headers/sys_utsname.texi: Mention the new module.
15437 2009-08-02  Bruno Haible  <bruno@clisp.org>
15439         Implicitly initialize the sockets library.
15440         * lib/gethostname.c: Include sockets.h.
15441         (rpl_gethostname): Invoke gl_sockets_startup.
15442         * lib/socket.c: Include sockets.h.
15443         (rpl_socket): Invoke gl_sockets_startup.
15444         * modules/gethostname (Depends-on): Add sockets.
15445         * modules/socket (Depends-on): Likewise.
15446         * tests/test-poll.c: Don't include sockets.h.
15447         (main): Don't invoke gl_sockets_startup.
15448         * tests/test-select.c: Don't include sockets.h.
15449         (main): Don't invoke gl_sockets_startup.
15451 2009-08-02  Bruno Haible  <bruno@clisp.org>
15453         Allow multiple calls to gl_sockets_startup.
15454         * lib/sockets.c (initialized_sockets_version): New variable.
15455         (gl_sockets_startup): Do nothing if already called for this or a higher
15456         version.
15457         (gl_sockets_cleanup): Reset initialized_sockets_version.
15459 2009-08-03  Simon Josefsson  <simon@josefsson.org>
15461         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
15462         different project/version.
15464 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
15465             Bruno Haible  <bruno@clisp.org>
15467         Tests for module 'pipe-filter-gi'.
15468         * modules/pipe-filter-gi-tests: New file.
15469         * tests/test-pipe-filter-gi1.sh: New file.
15470         * tests/test-pipe-filter-gi1.c: New file.
15471         * tests/test-pipe-filter-gi2.sh: New file.
15472         * tests/test-pipe-filter-gi2-main.c: New file.
15473         * tests/test-pipe-filter-gi2-child.c: New file.
15475         New module 'pipe-filter-gi'.
15476         * lib/pipe-filter-gi.c: New file.
15477         * modules/pipe-filter-gi: New file.
15479 2009-08-02  Bruno Haible  <bruno@clisp.org>
15480             Paolo Bonzini  <bonzini@gnu.org>
15482         Tests for module 'pipe-filter-ii'.
15483         * modules/pipe-filter-ii-tests: New file.
15484         * tests/test-pipe-filter-ii1.sh: New file.
15485         * tests/test-pipe-filter-ii1.c: New file.
15486         * tests/test-pipe-filter-ii2.sh: New file.
15487         * tests/test-pipe-filter-ii2-main.c: New file.
15488         * tests/test-pipe-filter-ii2-child.c: New file.
15490         New module 'pipe-filter-ii'.
15491         * lib/pipe-filter.h: New file.
15492         * lib/pipe-filter-ii.c: New file.
15493         * lib/pipe-filter-aux.h: New file.
15494         * modules/pipe-filter-ii: New file.
15496 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15498         * lib/gc-libgcrypt.c: Change copyright to FSF.
15499         * lib/gc-gnulib.c: Likewise.
15501 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
15503         * lib/gethostname.c: Include limits.h.
15505 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15506             Bruno Haible  <bruno@clisp.org>
15508         Ensure HOST_NAME_MAX as part of the gethostname module.
15509         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
15510         define also HOST_NAME_MAX.
15511         * tests/test-gethostname.c: Include <limits.h>.
15512         (main): Check also HOST_NAME_MAX.
15513         * doc/posix-headers/limits.texi: Document the mingw problem.
15515 2009-08-02  Bruno Haible  <bruno@clisp.org>
15517         * lib/gethostname.c (gethostname): Fix handling of large len argument.
15518         Add comments.
15520 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15522         * lib/gethostname.c: Add Windows wrapper.
15523         * m4/gethostname.m4: Look for gethostname in -lws2_32.
15524         * modules/gethostname: Depend on sys_socket & errno, for also
15525         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
15526         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
15528 2009-07-31  Jim Meyering  <meyering@redhat.com>
15530         getloadavg: fix symbol name in comment
15531         * lib/getloadavg.c: Correct a typo I introduced when adding
15532         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
15533         Matt Kraai spotted the problem.
15535 2009-07-29  Matt Kraai  <mkraai@beckman.com>
15537         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
15538         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
15539         code also if ! defined N_NAME_POINTER.
15540         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
15541         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
15542         but the n_name member is a 12-byte array.
15544 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
15546         update-copyright: generalize comment handling
15547         * build-aux/update-copyright: Handle copyright statements
15548         within more comment styles.
15549         Document usage.
15550         Report any file with an external copyright holder or parse failure.
15552 2009-07-29  Jim Meyering  <meyering@redhat.com>
15554         mktime: correct setting of REPLACE_MKTIME
15555         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
15557         update-copyright: new module
15558         * modules/update-copyright: New file.
15559         * build-aux/update-copyright: New file.
15560         * MODULES.html.sh (maint+release support): Add update-copyright.
15562 2009-07-27  Bruno Haible  <bruno@clisp.org>
15564         Fix compilation error when <ctime> is used and mktime is replaced.
15565         * lib/time.in.h (mktime): New declaration.
15566         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
15567         REPLACE_MKTIME instead of defining mktime in config.h.
15568         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
15569         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
15570         Reported by Ross McFarland <rwmcfa1@neces.com>.
15572 2009-07-27  Bruno Haible  <bruno@clisp.org>
15574         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
15575         Reported by Matt Kraai <mkraai@beckman.com>.
15577 2009-07-25  Jim Meyering  <meyering@redhat.com>
15579         maint.mk: avoid warnings about missing files
15580         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
15581         diagnostic when .prev-version does not exist.
15582         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
15583         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
15584         nonexistent cfg.mk.
15585         Suggestions from Simon Josefsson.
15587 2009-07-25  Bruno Haible  <bruno@clisp.org>
15589         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
15590         defined as macros. Needed on QNX 6.4.1.
15591         Reported by Matt Kraai <mkraai@beckman.com>.
15593 2009-07-23  Jim Meyering  <meyering@redhat.com>
15595         maint.mk: invoke "make dist" with a working value of XZ_OPT
15596         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
15598 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
15600         Make fseeko.c compile on QNX.
15601         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
15603 2009-07-22  Peter Simons  <simons@cryp.to>
15605         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
15606         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
15607         * lib/md4.h: Likewise.
15608         * lib/md5.h: Likewise.
15609         * lib/sha1.h: Likewise.
15610         * lib/sha256.h: Likewise.
15611         * lib/sha512.h: Likewise.
15613         tests-sha1: don't assign literal string to 'char *' variable
15614         * tests/test-sha1.c (main): Declare locals with "const" to match
15615         attributes of the right hand side.
15617 2009-07-21  Eric Blake  <ebb9@byu.net>
15619         dup2: fix more mingw problems
15620         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
15621         fd to itself.
15622         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15623         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
15624         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
15625         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
15626         care of mingw bugs.
15628 2009-07-21  Jim Meyering  <meyering@redhat.com>
15630         vc-list-files: avoid failure when /bin/sh is dash
15631         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
15632         On some Debian based systems, /bin/sh is a symlink to dash, and running
15633         this command would omit the "/" following each 'tests' prefix:
15634           dash -x build-aux/vc-list-files -C . tests
15635         That is because bash and dash work differently:
15636           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
15637           bash ok
15638           dash odd
15640 2009-07-21  Eric Blake  <ebb9@byu.net>
15642         dup2-tests: test previous patch
15643         * modules/dup2-tests: New file.
15644         * tests/test-dup2.c: Likewise.
15645         * tests/test-open.c (main): Avoid unspecified behavior.
15646         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
15647         test.
15649         dup2: work around mingw and cygwin 1.5 bug
15650         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
15651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15652         * modules/unistd (Makefile.am): Substitute it.
15653         * lib/unistd.in.h (dup2): Declare the replacement.
15654         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
15655         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
15656         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
15657         * modules/execute (Depends-on): Add dup2.
15658         * modules/fseterr (Depends-on): Likewise.
15659         * modules/pipe (Depends-on): Likewise.
15660         * modules/posix_spawn-internal (Depends-on): Likewise.
15662 2009-07-21  Bruno Haible  <bruno@clisp.org>
15664         * modules/.gitattributes: New file.
15666 2009-07-20  Bruno Haible  <bruno@clisp.org>
15668         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
15669         (main): Use it.
15671 2009-07-20  Eric Blake  <ebb9@byu.net>
15673         test-pipe: make a bit more robust.
15674         * tests/test-pipe.c (myerr): Allow error messages regardless of
15675         what we do to stderr.
15676         (test_pipe): Rearrange to avoid deadlock.
15677         (child_main): Try a larger read, to ensure we avoided deadlock.
15678         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
15679         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
15680         if misused.
15682 2009-07-19  Jim Meyering  <meyering@redhat.com>
15684         fts: avoid false-positive cycle-detection
15685         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
15686         for each new command line argument.
15688 2009-07-19  Bruno Haible  <bruno@clisp.org>
15690         Fix build error on mingw with the modules sys_select and unistd.
15691         * modules/acl-tests (Depends-on): Add close.
15692         * modules/binary-io-tests (Depends-on): Likewise.
15693         * modules/closein-tests (Depends-on): Likewise.
15694         * modules/flock-tests (Depends-on): Likewise.
15695         * modules/fsync-tests (Depends-on): Likewise.
15696         * modules/lseek-tests (Depends-on): Likewise.
15697         * modules/pipe-tests (Depends-on): Likewise.
15698         * modules/posix_spawn-tests (Depends-on): Likewise.
15699         * modules/posix_spawnp-tests (Depends-on): Likewise.
15700         * modules/stat-time-tests (Depends-on): Likewise.
15701         * modules/yesno-tests (Depends-on): Likewise.
15703 2009-07-19  Bruno Haible  <bruno@clisp.org>
15705         Unify conditionals.
15706         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
15707         macros, not at the compiler macros.
15708         * lib/pipe.c: Likewise.
15709         * lib/execute.c: Likewise.
15710         * lib/spawni.c: Likewise.
15712 2009-07-19  Bruno Haible  <bruno@clisp.org>
15714         Fix handling of closed stdin/stdout/stderr on mingw.
15715         * lib/w32spawn.h: Include unistd.h.
15716         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
15717         file descriptor with O_NOINHERIT flag.
15718         (fd_safer_noinherit): New function, based on fd-safer.c.
15719         (dup_safer_noinherit): New function, based on dup-safer.c.
15720         (undup_safer_noinherit): New function.
15721         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
15722         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
15723         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
15724         instead of fd_safer.
15725         * tests/test-pipe.c: Include <windows.h>.
15726         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
15728         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
15729         from main.
15730         (test_pipe): Pass an extra argument for disambiguation.
15731         (main): Invoke parent_main or child_main.
15733         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
15734         consistently.
15736 2009-07-18  Eric Blake  <ebb9@byu.net>
15738         test-pipe: fix mingw build
15739         * tests/test-pipe.c (main): Avoid fcntl on mingw.
15741 2009-07-18  Bruno Haible  <bruno@clisp.org>
15743         * modules/pipe-tests (Makefile.am): Fix typo.
15745 2009-07-18  Eric Blake  <ebb9@byu.net>
15747         error: fix mingw build
15748         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
15749         Reported by Bruno Haible.
15751         error: avoid undefined use of stdout
15752         * lib/error.c (error, error_at_line): Check that fd 1 is open
15753         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
15754         is handling faults and the close_stdout module wants to report the
15755         detection of closed stdout as an error.
15757 2009-07-17  Eric Blake  <ebb9@byu.net>
15759         pipe: be robust in face of closed fds
15760         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
15761         should cause child to misbehave.
15762         * modules/pipe-tests: New module.
15763         * tests/test-pipe.c: New file.
15764         * tests/test-pipe.sh: New file.
15765         Reported by Akim Demaille.
15767 2009-07-14  Bruno Haible  <bruno@clisp.org>
15769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
15770         Reported by anonymous kc.
15772 2009-07-07  Jim Meyering  <meyering@redhat.com>
15774         maint.mk: don't look for translatable strings in *.m4 or *.mk
15775         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
15776         when searching for translatable strings.
15778 2009-07-05  Jim Meyering  <meyering@redhat.com>
15780         remove superfluous parentheses in STREQ definition
15781         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
15782         * lib/getugroups.c (STREQ): Likewise.
15783         * lib/fnmatch.c (STREQ): Likewise.
15784         Spotted by Bruno Haible.
15786 2009-07-04  Jim Meyering  <meyering@redhat.com>
15788         argv-iter: new module
15789         * MODULES.html.sh: Add argv-iter.
15790         * lib/argv-iter.c, lib/argv-iter.h: New files.
15791         * modules/argv-iter: New file.
15792         * modules/argv-iter-tests: New file.
15793         * tests/test-argv-iter.c: Test it.
15795 2009-07-04  Bruno Haible  <bruno@clisp.org>
15797         Fix assertion.
15798         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
15799         contains more exact copies of a given entry than file2, leave the extra
15800         copies unpaired rather than aborting.
15801         Reported by Eric Blake.
15803 2009-07-02  Bruno Haible  <bruno@clisp.org>
15805         Speedup git-merge-changelog for git cherry-pick.
15806         * lib/git-merge-changelog.c (struct entries_mapping): New type.
15807         (entries_mapping_get): New function, extracted from compute_mapping.
15808         (entries_mapping_reverse_get): New function.
15809         (compute_mapping): Add a 'full' argument. Return the result in a
15810         'struct entries_mapping'.
15811         (main): Update. Access the mappings through entries_mapping_get.
15812         Reported by Eric Blake.
15814 2009-07-02  Bruno Haible  <bruno@clisp.org>
15816         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
15817         best_i.
15819 2009-07-02  Bruno Haible  <bruno@clisp.org>
15821         Speed up approximate search for matching ChangeLog entries.
15822         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
15823         argument. Call fstrcmp_bounded instead of fstrcmp.
15824         (compute_mapping, try_split_merged_entry, main): Update callers.
15826 2009-07-02  Bruno Haible  <bruno@clisp.org>
15828         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
15830 2009-06-30  Bruno Haible  <bruno@clisp.org>
15832         Reduce the number of uc_is_cased calls.
15833         * lib/unicase.h (casing_suffix_context_t): Add
15834         'first_char_except_ignorable' field.
15835         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
15836         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
15837         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
15838         Update initializer.
15839         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
15840         case-ignorable characters.
15841         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
15842         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
15843         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
15844         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
15845         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
15847 2009-06-30  Bruno Haible  <bruno@clisp.org>
15849         Tests for module 'unicase/ignorable'.
15850         * modules/unicase/ignorable-tests: New file.
15851         * tests/unicase/test-ignorable.c: New file, generated by
15852         gen-uni-tables.
15854         Tests for module 'unicase/cased'.
15855         * modules/unicase/cased-tests: New file.
15856         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
15857         * tests/unicase/test-predicate-part1.h: New file, derived from
15858         tests/unictype/test-predicate-part1.h.
15859         * tests/unicase/test-predicate-part2.h: New file, same as
15860         tests/unictype/test-predicate-part2.h.
15862         Fix evaluation of "Before C" condition of FINAL_SIGMA.
15863         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
15864         (output_casing_properties): New function.
15865         (main): Call it.
15866         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
15867         * lib/unicase/cased.c: Include unictype/bitmap.h.
15868         (uc_is_cased): Define through a bitmap lookup.
15869         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
15870         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
15871         (uc_is_case_ignorable): Define through a bitmap lookup.
15872         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
15873         lib/unictype/bitmap.h.
15874         (Depends-on): Add inline. Clean up.
15875         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
15876         lib/unictype/bitmap.h.
15877         (Depends-on): Add inline. Clean up.
15878         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
15879         recognition.
15880         * tests/unicase/test-u16-tolower.c (main): Likewise.
15881         * tests/unicase/test-u32-tolower.c (main): Likewise.
15883 2009-06-30  Bruno Haible  <bruno@clisp.org>
15885         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
15886         * lib/unicase/u16-casemap.c: Likewise.
15887         * lib/unicase/u32-casemap.c: Likewise.
15889 2009-06-29  Bruno Haible  <bruno@clisp.org>
15891         Define u32_casefold as a wrapper around u32_ct_casefold.
15892         * lib/unicase/u32-casefold.c: Update.
15893         * modules/unicase/u32-casefold (Depends-on): Add
15894         unicase/u32-ct-casefold, unicase/empty-prefix-context,
15895         unicase/empty-suffix-context. Clean up.
15897         Define u16_casefold as a wrapper around u16_ct_casefold.
15898         * lib/unicase/u16-casefold.c: Update.
15899         * modules/unicase/u16-casefold (Depends-on): Add
15900         unicase/u16-ct-casefold, unicase/empty-prefix-context,
15901         unicase/empty-suffix-context. Clean up.
15903         Define u8_casefold as a wrapper around u8_ct_casefold.
15904         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
15905         * lib/unicase/u8-casefold.c: Update.
15906         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
15907         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15909         Define u32_totitle as a wrapper around u32_ct_totitle.
15910         * lib/unicase/u32-totitle.c: Update.
15911         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
15912         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15914         Define u16_totitle as a wrapper around u16_ct_totitle.
15915         * lib/unicase/u16-totitle.c: Update.
15916         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
15917         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15919         Define u8_totitle as a wrapper around u8_ct_totitle.
15920         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
15921         functions.
15922         (FUNC): Delegate to U_CT_TOTITLE.
15923         * lib/unicase/u8-totitle.c: Update.
15924         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
15925         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
15927         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
15928         invocation.
15929         * modules/unicase/u32-tolower (Depends-on): Add
15930         unicase/empty-prefix-context, unicase/empty-suffix-context.
15932         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
15933         invocation.
15934         * modules/unicase/u16-tolower (Depends-on): Add
15935         unicase/empty-prefix-context, unicase/empty-suffix-context.
15937         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
15938         * modules/unicase/u8-tolower (Depends-on): Add
15939         unicase/empty-prefix-context, unicase/empty-suffix-context.
15941         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
15942         invocation.
15943         * modules/unicase/u32-toupper (Depends-on): Add
15944         unicase/empty-prefix-context, unicase/empty-suffix-context.
15946         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
15947         invocation.
15948         * modules/unicase/u16-toupper (Depends-on): Add
15949         unicase/empty-prefix-context, unicase/empty-suffix-context.
15951         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
15952         * modules/unicase/u8-toupper (Depends-on): Add
15953         unicase/empty-prefix-context, unicase/empty-suffix-context.
15955         New module 'unicase/u32-ct-casefold'.
15956         * lib/unicase/u32-ct-casefold.c: New file.
15957         * modules/unicase/u32-ct-casefold: New file.
15959         New module 'unicase/u16-ct-casefold'.
15960         * lib/unicase/u16-ct-casefold.c: New file.
15961         * modules/unicase/u16-ct-casefold: New file.
15963         New module 'unicase/u8-ct-casefold'.
15964         * lib/unicase/u8-ct-casefold.c: New file.
15965         * lib/unicase/u-ct-casefold.h: New file, derived from
15966         lib/unicase/u-casefold.h.
15967         * modules/unicase/u8-ct-casefold: New file.
15969         New module 'unicase/u32-ct-totitle'.
15970         * lib/unicase/u32-ct-totitle.c: New file.
15971         * modules/unicase/u32-ct-totitle: New file.
15973         New module 'unicase/u16-ct-totitle'.
15974         * lib/unicase/u16-ct-totitle.c: New file.
15975         * modules/unicase/u16-ct-totitle: New file.
15977         New module 'unicase/u8-ct-totitle'.
15978         * lib/unicase/u8-ct-totitle.c: New file.
15979         * lib/unicase/u-ct-totitle.h: New file, derived from
15980         lib/unicase/u-totitle.h.
15981         * modules/unicase/u8-ct-totitle: New file.
15983         New module 'unicase/u32-ct-tolower'.
15984         * lib/unicase/u32-ct-tolower.c: New file.
15985         * modules/unicase/u32-ct-tolower: New file.
15987         New module 'unicase/u16-ct-tolower'.
15988         * lib/unicase/u16-ct-tolower.c: New file.
15989         * modules/unicase/u16-ct-tolower: New file.
15991         New module 'unicase/u8-ct-tolower'.
15992         * lib/unicase/u8-ct-tolower.c: New file.
15993         * modules/unicase/u8-ct-tolower: New file.
15995         New module 'unicase/u32-ct-toupper'.
15996         * lib/unicase/u32-ct-toupper.c: New file.
15997         * modules/unicase/u32-ct-toupper: New file.
15999         New module 'unicase/u16-ct-toupper'.
16000         * lib/unicase/u16-ct-toupper.c: New file.
16001         * modules/unicase/u16-ct-toupper: New file.
16003         New module 'unicase/u8-ct-toupper'.
16004         * lib/unicase/u8-ct-toupper.c: New file.
16005         * modules/unicase/u8-ct-toupper: New file.
16007         Add context arguments to u*_casemap functions.
16008         * lib/unicase/unicasemap.h: Include unicase.h.
16009         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16010         suffix_context arguments.
16011         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16012         functions.
16013         (FUNC): Add prefix_context and suffix_context arguments. Use
16014         uc_is_cased and uc_is_case_ignorable.
16015         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16016         * lib/unicase/u16-casemap.c: Likewise.
16017         * lib/unicase/u32-casemap.c: Likewise.
16018         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16019         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16020         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16021         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16022         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16023         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16025         New module 'unicase/u32-suffix-context'.
16026         * lib/unicase/u32-suffix-context.c: New file.
16027         * modules/unicase/u32-suffix-context: New file.
16029         New module 'unicase/u16-suffix-context'.
16030         * lib/unicase/u16-suffix-context.c: New file.
16031         * modules/unicase/u16-suffix-context: New file.
16033         New module 'unicase/u8-suffix-context'.
16034         * lib/unicase/u8-suffix-context.c: New file.
16035         * lib/unicase/u-suffix-context.h: New file.
16036         * modules/unicase/u8-suffix-context: New file.
16038         New module 'unicase/empty-suffix-context'.
16039         * lib/unicase/empty-suffix-context.c: New file.
16040         * modules/unicase/empty-suffix-context: New file.
16042         New module 'unicase/u32-prefix-context'.
16043         * lib/unicase/u32-prefix-context.c: New file.
16044         * modules/unicase/u32-prefix-context: New file.
16046         New module 'unicase/u16-prefix-context'.
16047         * lib/unicase/u16-prefix-context.c: New file.
16048         * modules/unicase/u16-prefix-context: New file.
16050         New module 'unicase/u8-prefix-context'.
16051         * lib/unicase/u8-prefix-context.c: New file.
16052         * lib/unicase/u-prefix-context.h: New file.
16053         * lib/unicase/context.h: New file.
16054         * modules/unicase/u8-prefix-context: New file.
16056         New module 'unicase/empty-prefix-context'.
16057         * lib/unicase/empty-prefix-context.c: New file.
16058         * modules/unicase/empty-prefix-context: New file.
16060         New module 'unicase/ignorable'.
16061         * lib/unicase/ignorable.c: New file.
16062         * modules/unicase/ignorable: New file.
16064         New module 'unicase/cased'.
16065         * lib/unicase/caseprop.h: New file.
16066         * lib/unicase/cased.c: New file.
16067         * modules/unicase/cased: New file.
16069         New functions for case mapping of substrings.
16070         * lib/unicase.h (casing_prefix_context_t): New type.
16071         (unicase_empty_prefix_context): New variable.
16072         (u8_casing_prefix_context, u16_casing_prefix_context,
16073         u32_casing_prefix_context, u8_casing_prefixes_context,
16074         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16075         declarations.
16076         (casing_suffix_context_t): New type.
16077         (unicase_empty_suffix_context): New variable.
16078         (u8_casing_suffix_context, u16_casing_suffix_context,
16079         u32_casing_suffix_context, u8_casing_suffixes_context,
16080         u16_casing_suffixes_context, u32_casing_suffixes_context,
16081         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16082         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16083         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16084         declarations.
16086 2009-06-28  Jim Meyering  <meyering@redhat.com>
16088         boostrap: indent only with spaces
16089         * build-aux/bootstrap: Indent only with spaces, never TABs.
16091         bootstrap: split long lines
16092         * build-aux/bootstrap: Keep line length < 80.
16094         bootstrap: sync from coreutils
16095         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16096         just as autoreconf does.  Verify a list of prerequisite
16097         package-name,version-number pairs if defined in bootstrap.conf.
16098         Refer to README-prereq, if prerequisites are not satisfied.
16100 2009-06-27  Eric Blake  <ebb9@byu.net>
16102         tests: add test for bogus NULL definition
16103         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16104         * tests/test-stdlib.c: Likewise.
16105         * tests/test-string.c: Likewise.
16106         * tests/test-locale.c: Likewise.
16107         * tests/test-unistd.c: Likewise.
16108         * modules/stdio-tests (Depends-on): Add verify.
16109         * modules/stdlib-tests (Depends-on): Likewise.
16110         * modules/string-tests (Depends-on): Likewise.
16111         * modules/locale-tests (Depends-on): Likewise.
16112         * modules/unistd-tests (Depends-on): Likewise.
16114 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16116         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16117         self-explaining comment.
16118         * m4/selinux-selinux-h: Update serial.
16119         (gl_LIBSELINUX): New macro, adding a warning for missing development
16120         packages to code extracted from...
16121         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16122         Add warning for missing development packages here, too.
16124 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16126         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16128 2009-06-25  Eric Blake  <ebb9@byu.net>
16130         version-etc: fix regression
16131         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16132         gcc.
16133         (version_etc): Use it, to catch bugs with trailing NULL.
16134         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16135         (version_etc_va): Fix logic bug.
16136         * modules/version-etc-tests: Add test.
16137         * tests/test-version-etc.c: New file.
16138         * tests/test-version-etc.sh: Likewise.
16140 2009-06-25  Sam Steingold  <sds@gnu.org>
16142         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16143         mbtowc declaration.
16145 2009-06-25  Eric Blake  <ebb9@byu.net>
16147         fpurge: migrate into <stdio.h>
16148         * lib/fpurge.h: Delete...
16149         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16150         * lib/fpurge.c (fpurge): Change declaring header.
16151         * modules/fpurge (Files): Drop deleted file.
16152         (Depends-on): Add stdio.
16153         (configure.ac): Set witness.
16154         * modules/stdio (Makefile.am): Support fpurge macros.
16155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16156         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16157         * lib/fflush.c: Update client.
16158         * tests/test-fpurge.c: Likewise.
16159         * NEWS: Mention the change.
16161 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16163         * lib/argp-version-etc.c (program_authors): Add const
16164         qualifier.
16165         * lib/version-etc.c: Fix typos in the comments.
16166         * modules/argp-version-etc: Depends on version-etc.
16168 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16170         argp-version-etc: new module.
16172         * lib/argp-version-etc.c: New file.
16173         * lib/argp-version-etc.h: New file.
16174         * modules/argp-version-etc: New file.
16175         * modules/argp-version-etc-tests: New file.
16176         * tests/test-argp-version-etc.c: New test.
16177         * tests/test-argp-version-etc-1.sh: New test.
16179 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16181         Provide additional interfaces and documentation for version-etc
16182         module.
16184         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16185         interfaces.
16186         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16187         prototypes.
16189 2009-06-24  Bruno Haible  <bruno@clisp.org>
16191         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16192         HAVE_LIB${NAME} macro.
16193         Reported by Sam Steingold <sds@gnu.org>.
16195 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16197         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16198         needed.
16200 2009-06-21  Bruno Haible  <bruno@clisp.org>
16202         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16203         work.
16204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16205         together with LIB${NAME}, LTLIB${NAME}.
16206         Reported by Sam Steingold <sds@gnu.org>.
16208 2009-06-20  Jim Meyering  <meyering@redhat.com>
16210         tests: make sc_require_test_exit_idiom more generic
16211         * top/maint.mk (Exit_witness_file): New overridable variable.
16212         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16213         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16215 2009-06-19  Jim Meyering  <meyering@redhat.com>
16217         hash: reverse order of src/dst parameters in an internal interface
16218         * lib/hash.c (transfer_entries): Reverse order of parameters to
16219         put DST before SRC.  Adjust callers.
16221         tests: test-hash: avoid wholesale duplication
16222         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16223         Instead, use a loop and add a single conditional.
16225         tests: test-hash: allow seed selection via a command line argument
16226         * tests/test-hash.c (get_seed): New function.
16227         (main): Use it.
16229 2009-06-19  Eric Blake  <ebb9@byu.net>
16231         hash: avoid memory leak on allocation failure
16232         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16233         failure.  Factor repeated algorithm...
16234         (transfer_entries): ...into new helper routine.
16235         (hash_delete): React to hash_rehash return value.
16237         hash: reduce memory pressure in hash_rehash no-op case
16238         * lib/hash.c (next_prime): Avoid overflow.
16239         (hash_initialize): Factor bucket size computation...
16240         (compute_bucket_size): ...into new helper function.
16241         (hash_rehash): Use new function and open coding to reduce memory
16242         pressure, and avoid a memory leak in USE_OBSTACK code.
16243         Reported by Jim Meyering.
16245 2009-06-18  Eric Blake  <ebb9@byu.net>
16247         hash: make rotation more obvious
16248         * modules/hash (Depends-on): Add bitrotate and stdint.
16249         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16250         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16251         (SIZE_MAX): Rely on headers for definition.
16252         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16253         (raw_hasher): Use rotr_sz.
16254         Suggested by Jim Meyering.
16256         hash: fix memory leak in last patch
16257         * lib/hash.c (hash_rehash): Avoid memory leak.
16259         hash: avoid no-op rehashing
16260         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16262         hash: provide default callback functions
16263         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16264         (hash_initialize): Use them as defaults.
16265         * tests/test-hash.c (main): Test this.
16267         hash: minor optimization
16268         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16269         when possible.
16270         (hash_initialize): Document this promise.
16271         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16272         * tests/test-hash.c (hash_compare_strings): Test this.
16274 2009-06-18  Bruno Haible  <bruno@clisp.org>
16276         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16277         going to be replaced anyway.
16279 2009-06-18  Bruno Haible  <bruno@clisp.org>
16281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16282         in one place.
16283         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16284         be replaced anyway.
16286 2009-06-18  Eric Blake  <ebb9@byu.net>
16288         hash: check for resize before insertion
16289         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16290         threshold before insertion, so that a pathological hash_rehash
16291         that fills every bucket can still trigger another rehash.
16293 2009-06-18  Jim Meyering  <meyering@redhat.com>
16295         hash-tests: add a loop around the small tests
16296         * tests/test-hash.c (main): Repeat small tests with selected
16297         small initial table sizes.
16299 2009-06-17  Eric Blake  <ebb9@byu.net>
16301         hash: minor cleanups
16302         * lib/hash.h (hash_entry): Make opaque, by moving...
16303         * lib/hash.c (hash_entry): ...here.
16304         (hash_insert): Clarify restrictions on what can be inserted.
16305         (hash_get_next): Clarify when it is safe to remove an element
16306         during traversal.
16307         (check_tuning): Skip verification when tuning is known safe.
16308         (hash_initialize): Clarify restrictions on tuning.
16310 2009-06-17  Jim Meyering  <jim@meyering.net>
16311         and Eric Blake  <ebb9@byu.net>
16313         hash-tests: new module
16314         * modules/hash-tests: New file.
16315         * tests/test-hash.c: New file.
16317 2009-06-17  Eric Blake  <ebb9@byu.net>
16319         strstr-simple: document new module
16320         * MODULES.html.sh: Document new module.
16322         strstr, strcasestr: replace on platforms with broken memchr
16323         * modules/strstr: Split into...
16324         * modules/strstr-simple: ...new module that does not care about
16325         performance, but does care about glibc bug.
16326         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
16327         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
16328         if platform memchr is broken, per Debian bug 521737.
16329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
16330         memchr.
16331         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
16332         * doc/posix-functions/strstr.texi (strstr): Document the fix.
16333         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16334         * modules/mountlist (Depends-on): Add strstr-simple.
16335         * modules/gen-uni-tables (Depends-on): Likewise.
16336         * modules/argz (Depends-on): Add strstr.
16338 2009-06-17  Bruno Haible  <bruno@clisp.org>
16340         * modules/posix_spawn-internal (Depends-on): Add errno.
16342 2009-06-17  Bruno Haible  <bruno@clisp.org>
16344         Define missing ESTALE on Interix 3.5.
16345         * lib/errno.in.h (ESTALE): Assign a value if missing.
16346         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
16347         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
16348         missing.
16349         * doc/posix-headers/errno.texi: Mention the Interix bug.
16350         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
16352 2009-06-15  Eric Blake  <ebb9@byu.net>
16354         memchr, memchr2: add valgrind exception
16355         * lib/memchr.valgrind: New file.
16356         * lib/memchr2.valgrind: New file.
16357         * modules/memchr (Files): Distribute valgrind file.
16358         * modules/memchr2 (Files): Likewise.
16360         docs: memchr is no longer obsolete
16361         * MODULES.html.sh: Move memchr from obsolete to string.h section.
16362         * lib/string.in.h (memchr): Simplify logic.
16364 2009-06-14  Jim Meyering  <meyering@redhat.com>
16366         link-follow: fix the "checking..." message to not mention trailing slash
16367         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
16368         never considered trailing slashes.
16370 2009-06-14  Bruno Haible  <bruno@clisp.org>
16372         * m4/memchr.m4: Mention also the bug on IA-64.
16373         * doc/posix-functions/memchr.texi: Likewise.
16375 2009-06-12  Eric Blake  <ebb9@byu.net>
16377         memchr: detect broken x86_64 and alpha implementations
16378         * modules/memchr-tests (Depends-on): Move mmap detection...
16379         * modules/memchr (Depends-on): ...here.
16380         (configure.ac): Set indicator.
16381         * lib/string.in.h (memchr): Declare replacement.
16382         * modules/string (Makefile.am): Trigger replacement.
16383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16384         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
16385         bugs.
16386         * doc/posix-functions/memchr.texi (memchr): Document the bug.
16387         * modules/getpagesize (License): Relax license.
16389 2009-06-11  Bruno Haible  <bruno@clisp.org>
16391         * lib/idpriv.h: Add more references.
16393 2009-06-08  Bruno Haible  <bruno@clisp.org>
16395         Tests for module 'idpriv-droptemp'.
16396         * modules/idpriv-droptemp-tests: New file.
16397         * tests/test-idpriv-droptemp.sh: New file.
16398         * tests/test-idpriv-droptemp.su.sh: New file.
16399         * tests/test-idpriv-droptemp.c: New file.
16401         New module 'idpriv-droptemp'.
16402         * lib/idpriv-droptemp.c: New file.
16403         * modules/idpriv-droptemp: New file.
16405 2009-06-08  Bruno Haible  <bruno@clisp.org>
16407         Tests for module 'idpriv-drop'.
16408         * modules/idpriv-drop-tests: New file.
16409         * tests/test-idpriv-drop.sh: New file.
16410         * tests/test-idpriv-drop.su.sh: New file.
16411         * tests/test-idpriv-drop.c: New file.
16413         New module 'idpriv-drop'.
16414         * lib/idpriv.h: New file.
16415         * lib-idpriv-drop.c: New file.
16416         * m4/idpriv.m4: New file.
16417         * modules/idpriv-drop: New file.
16419 2009-06-08  Bruno Haible  <bruno@clisp.org>
16421         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
16422         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16423         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16424         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16425         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16426         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16427         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16429 2009-06-08  Eric Blake  <ebb9@byu.net>
16431         test-strstr: use memory fence, when possible
16432         * tests/test-strstr.c (main): Use memory fence, in order to be
16433         more likely to trigger Debian bug 521737.
16434         * modules/strstr-tests (Files): Pull in additional files.
16436         memchr: no longer obsolete, for wider field testing
16437         * modules/memchr (Status, Notice): Delete, this module is no
16438         longer obsolete.
16439         * modules/vasnprintf (Depends-on): Add memchr.
16441 2009-06-07  Jim Meyering  <meyering@redhat.com>
16443         hash: declare some functions with the warn_unused_result attribute
16444         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
16446 2009-06-07  Bruno Haible  <bruno@clisp.org>
16448         * tests/test-alignof.c: Don't test int64_t if it does not exist.
16449         Reported by Eric Blake.
16451 2009-06-06  Eric Blake  <ebb9@byu.net>
16453         test-alignof: fix typo with long double
16454         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
16455         compiler error.
16457 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
16459         Escape non-texinfo { and }s.
16460         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
16461         markup error.
16463 2009-06-04  Jim Meyering  <meyering@redhat.com>
16465         gitlog-to-changelog: don't infloop on an empty commit log
16466         * build-aux/gitlog-to-changelog: Warn about an empty log message.
16467         Reported by Boris Petersen <transacid@centerim.org>.
16469 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
16471         version-etc: extend for packagers
16472         Add three new configure options, intended for packagers:
16473           --with-packager="packager name"
16474           --with-packager-version="packager-specific version"
16475           --with-packager-bug-reports="packager bug reporting"
16476         An example with coreutils:
16477           $ ./configure \
16478             --with-packager=Gentoo \
16479             --with-packager-bug-report=http://bugs.gentoo.org/ \
16480             --with-packager-version="patchset 1.6"
16481           $ ./src/ls --version | head -n2
16482           ls (GNU coreutils) 7.1-dirty
16483           Packaged by Gentoo (patchset 1.6)
16484         Note that the bug reporting info via --help doesn't show up because
16485         coreutils uses its own custom emit_bug_reporting_address() implementation
16486         in src/system.h.  If it didn't, it'd look like:
16487           $ ./src/ls --help | tail -n4
16488           Report bugs to <bug-coreutils@gnu.org>.
16489           Report Gentoo bugs to <http://bugs.gentoo.org/>.
16490           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
16491           General help using GNU software: <http://www.gnu.org/gethelp/>.
16492         * lib/version-etc.c: Print new information, if provided.
16493         * m4/version-etc.m4: New file.
16494         * modules/version-etc (Files): Add m4/version-etc.m4.
16495         (configure.ac): Add gl_VERSION_ETC.
16497 2009-05-31  Bruno Haible  <bruno@clisp.org>
16499         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
16500         and 'int64_t'.
16501         * modules/alignof-tests (Dependencies): Add stdint.
16502         Reported by Eric Blake.
16504 2009-05-31  Bruno Haible  <bruno@clisp.org>
16506         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
16507         restriction due to compiler bugs.
16508         Reported by Eric Blake.
16510 2009-05-31  Simon Josefsson  <simon@josefsson.org>
16511             Bruno Haible  <bruno@clisp.org>
16513         Fix test-alignof failure.
16514         * lib/alignof.h (alignof_slot): New macro.
16515         (alignof_type): New macro, with the same semantics as the previous
16516         'alignof'.
16517         (alignof): Alias to alignof_slot.
16518         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
16519         check that the results are usable as constant expressions.
16521 2009-05-31  Bruno Haible  <bruno@clisp.org>
16523         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
16524         * tests/test-memchr.c (main): Check that memchr does not read past the
16525         first occurrence of the byte.
16526         * tests/test-strstr.c (main): Update comment.
16527         Suggested by Eric Blake.
16529 2009-05-30  Bruno Haible  <bruno@clisp.org>
16531         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
16532         detail how to use dumpbin.
16533         Reported by David Byron <dbyron@dbyron.com>.
16535 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16537         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
16539 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16541         * m4/manywarnings.m4: Add GCC 4.4 warnings.
16543 2009-05-28  Bruno Haible  <bruno@clisp.org>
16545         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
16546         build-aux/ files.
16548 2009-05-28  Simon Josefsson  <simon@josefsson.org>
16550         * gnulib-tool (func_import): Transform license on build-aux/ files too.
16552 2009-05-27  Simon Josefsson  <simon@josefsson.org>
16554         * gnulib-tool (sed_transform_main_lib_file)
16555         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
16556         regexps.
16558 2009-05-26  Simon Josefsson  <simon@josefsson.org>
16560         * tests/test-strstr.c: Add another self-test.
16561         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
16562         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
16564 2009-05-23  Bruno Haible  <bruno@clisp.org>
16566         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
16567         change.
16569 2009-05-21  Bruno Haible  <bruno@clisp.org>
16571         Simplify use of mode_t varargs.
16572         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
16573         uses 'mode_t' or 'int'.
16574         * lib/openat.c (openat): Likewise.
16575         * lib/open-safer.c (open_safer): Likewise.
16576         * m4/mode_t.m4: New file.
16577         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
16578         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
16579         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
16580         * modules/open (Files): Add m4/mode_t.m4.
16581         * modules/openat (Files): Likewise.
16582         * modules/fcntl-safer (Files): Likewise.
16583         Suggested by Eric Blake.
16585 2009-05-21  Pádraig Brady  <P@draigbrady.com>
16587         * doc/glibc-functions/fallocate.texi: New file.
16588         * doc/gnulib.texi: Include it.
16590 2009-05-21  Eric Blake  <ebb9@byu.net>
16591             Bruno Haible  <bruno@clisp.org>
16593         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
16594         invocations.
16595         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16597 2009-05-21  Eric Blake  <ebb9@byu.net>
16598             Bruno Haible  <bruno@clisp.org>
16600         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
16601         include_next. Fix of 2008-11-20 commit.
16602         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
16603         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
16604         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
16605         NEXT_MATH_H.
16606         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
16607         instead of NEXT_MATH_H.
16609 2009-05-21  Bruno Haible  <bruno@clisp.org>
16611         Avoid redefinition warnings for SIZE_MAX.
16612         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
16613         Reported by Simon Josefsson.
16615 2009-05-21  Bruno Haible  <bruno@clisp.org>
16617         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
16618         AC_CACHE_VAL.
16620 2009-05-20  Bruno Haible  <bruno@clisp.org>
16622         Make zeroptr.h work on mingw.
16623         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
16624         mprotect.
16625         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
16626         * modules/memchr2-tests (configure.ac): Likewise.
16627         * modules/memcmp-tests (configure.ac): Likewise.
16628         * modules/memmem-tests (configure.ac): Likewise.
16629         * modules/memrchr-tests (configure.ac): Likewise.
16630         Reported by Simon Josefsson.
16632 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16634         * tests/test-glob.c: Include string.h for strcmp prototype.
16636 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16638         * modules/getdelim (Depends-on): Add explicit stdint, although it
16639         was implicitly already pulled in via realloc-posix.
16640         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
16642 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16644         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
16645         G. Christensen" <tgc@jupiterrise.com>.
16646         * m4/sys_socket_h.m4: Check for sa_family_t.
16647         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
16648         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
16649         * tests/test-sys_socket.c: Check that sa_family_t works.
16651 2009-05-18  Eric Blake  <ebb9@byu.net>
16653         maint.mk: allow gnulib_dir in VPATH build
16654         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
16656 2009-05-15  Jim Meyering  <meyering@redhat.com>
16658         maint.mk: Give gnulib_dir a default definition.
16659         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
16660         Thus, most packages no longer need to specify this variable in cfg.mk
16662 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
16664         rename.m4: fix typos that would make non-mingw cross-configure fail
16665         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
16667 2009-05-13  Eric Blake  <ebb9@byu.net>
16669         mmap-anon: avoid out-of-order autoconf expansion
16670         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
16671         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
16672         * modules/memchr-tests (Depends-on): Add extensions.
16673         * modules/memchr2-tests (Depends-on): Add extensions.
16674         * modules/memcmp-tests (Depends-on): Add extensions.
16675         * modules/memmem-tests (Depends-on): Add extensions.
16676         * modules/memrchr-tests (Depends-on): Add extensions.
16678 2009-05-13  Bruno Haible  <bruno@clisp.org>
16680         Make some tests ISO C 99 compliant.
16681         * tests/zerosize-ptr.h: New file.
16682         * tests/test-memchr.c: Include zerosize-ptr.h.
16683         (main): Use a zero-size object pointer instead of NULL.
16684         * tests/test-memchr2.c: Include zerosize-ptr.h.
16685         (main): Use a zero-size object pointer instead of NULL.
16686         * tests/test-memcmp.c: Include zerosize-ptr.h.
16687         (main): Use a zero-size object pointer instead of NULL.
16688         * tests/test-memmem.c: Include zerosize-ptr.h.
16689         (main): Use a zero-size object pointer instead of NULL.
16690         * tests/test-memrchr.c: Include zerosize-ptr.h.
16691         (main): Use a zero-size object pointer instead of NULL.
16692         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
16693         m4/mmap-anon.m4.
16694         (Depends-on): Add getpagesize.
16695         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16696         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
16697         m4/mmap-anon.m4.
16698         (Depends-on): Add getpagesize.
16699         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16700         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
16701         m4/mmap-anon.m4.
16702         (Depends-on): Add getpagesize.
16703         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16704         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
16705         m4/mmap-anon.m4.
16706         (Depends-on): Add getpagesize.
16707         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16708         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
16709         m4/mmap-anon.m4.
16710         (Depends-on): Add getpagesize.
16711         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16713 2009-05-12  Bruno Haible  <bruno@clisp.org>
16715         Tests for module 'alignof'.
16716         * modules/alignof-tests: New file.
16717         * tests/test-alignof.c: New file.
16719 2009-05-12  Bruno Haible  <bruno@clisp.org>
16721         Fix alignof macro.
16722         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
16723         vendor compilers that are always correct.
16725 2009-05-12  Bruno Haible  <bruno@clisp.org>
16727         Make the MAP_ANONYMOUS detection work on HP-UX 11.
16728         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
16729         not whether its fully works.
16731 2009-05-12  Bruno Haible  <bruno@clisp.org>
16733         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
16735 2009-05-12  Jim Meyering  <meyering@redhat.com>
16737         * top/maint.mk: Adjust backslash alignment.
16739 2009-05-11  Simon Josefsson  <simon@josefsson.org>
16741         * top/maint.mk: Make $(srcdir)/build-aux configurable.
16743 2009-05-11  Eric Blake  <ebb9@byu.net>
16745         argp: avoid undefined behavior
16746         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
16747         macros.
16749 2009-05-08  Simon Josefsson  <simon@josefsson.org>
16751         * tests/test-vc-list-files-git.sh: Do git config of user.email and
16752         user.name to prevent git commit from complaining.
16754 2009-05-10  Bruno Haible  <bruno@clisp.org>
16756         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
16757         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
16758         it rewrites every file name only once.
16759         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
16761 2009-05-08  Bruno Haible  <bruno@clisp.org>
16763         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
16764         instead of 'max'.
16766 2009-05-08  Simon Josefsson  <simon@josefsson.org>
16768         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
16769         sockaddr_storage test.
16771 2009-05-07  Simon Josefsson  <simon@josefsson.org>
16773         * modules/sys_socket (Makefile.am): Substitute
16774         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
16775         * m4/sys_socket_h.m4: Check for sockaddr_storage.
16776         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
16777         * tests/test-sys_socket.c: Check sockaddr_storage.
16779 2009-05-08  Bruno Haible  <bruno@clisp.org>
16781         New module 'alignof'.
16782         * lib/alignof.h: New file.
16783         * modules/alignof: New file.
16785 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16786             Bruno Haible  <bruno@clisp.org>
16788         Fix test-file-has-acl on FreeBSD.
16789         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
16790         mask is implicitly added.
16791         * tests/test-file-has-acl.c: Include <signal.h>.
16792         (main): Terminate the test after 5 seconds.
16793         * modules/acl-tests (configure.ac): Check for alarm function.
16795 2009-05-04  Bruno Haible  <bruno@clisp.org>
16797         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
16798         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
16799         * modules/errno (configure.ac): Drop AC_REQUIRE.
16800         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
16801         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
16803 2009-05-04  Simon Josefsson  <simon@josefsson.org>
16805         * modules/glob-tests: New module.
16806         * tests/test-glob.c: Add.
16808 2009-05-04  Simon Josefsson  <simon@josefsson.org>
16810         * modules/fnmatch-tests: New module.
16811         * tests/test-fnmatch.c: Add.
16813 2009-05-04  Eric Blake  <ebb9@byu.net>
16815         maint: make the new no-submodule-changes rule VPATH-safe
16816         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
16818 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16819             Bruno Haible  <bruno@clisp.org>
16821         acl: Fix infinite loop on FreeBSD.
16822         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
16823         of return value from acl_get_entry.
16824         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
16825         Likewise.
16827 2009-05-03  Bruno Haible  <bruno@clisp.org>
16829         * lib/acl-internal.h (acl_entries): Clarify return value.
16830         * lib/acl_entries.c (acl_entries): Likewise.
16832 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16834         Bug fix in acl module.
16835         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
16837 2009-05-03  Bruno Haible  <bruno@clisp.org>
16839         Create gperf-generated file in the source dir, not in the build dir.
16840         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
16841         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
16842         * modules/unicase/locale-language (unicase/locale-languages.h):
16843         Likewise.
16844         * modules/unicase/special-casing (unicase/special-casing-table.h):
16845         Likewise.
16846         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
16847         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
16848         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
16849         Reported by Ralf Wildenhues.
16851 2009-05-03  Bruno Haible  <bruno@clisp.org>
16853         * modules/fnmatch (Description, configure.ac): Taken from
16854         fnmatch-posix.
16855         * modules/fnmatch-posix: Turn into a symbolic reference to the
16856         'fnmatch' module, and deprecate.
16857         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
16859 2009-05-03  Bruno Haible  <bruno@clisp.org>
16861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
16862         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
16863         Reported by Ralf Wildenhues.
16865 2009-05-04  Simon Josefsson  <simon@josefsson.org>
16867         * m4/fnmatch.m4: Fix fnmatch re-define.
16869 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
16871         priv-set: new module and tests; adapt write-any-file
16872         * lib/priv-set.c: New file.
16873         * lib/priv-set.h: New file.
16874         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
16875         * lib/write-any-file.c: Simplify by using priv-set module.
16876         * m4/priv-set.m4: New file.
16877         * modules/priv-set: New file.
16878         * modules/unlinkdir: Add dependency on priv-set module.
16879         * modules/write-any-file: Likewise.
16881         Tests for module 'priv-set'.
16882         * modules/priv-set-tests: New file.
16883         * tests/test-priv-set.c: New file.
16885 2009-05-03  Jim Meyering  <meyering@redhat.com>
16886             Bruno Haible  <bruno@clisp.org>
16888         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
16889         use the converted UTF-8 variant of the name instead.
16891 2009-05-03  Jim Meyering  <meyering@redhat.com>
16893         tests: tighten some getdate tests
16894         * tests/test-getdate.c (main): Tighten tests: require equality,
16895         not just greater than.  Set TZ envvar to UTC0.
16897 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16899         getdate: correctly interpret "next monday" when run on a Monday
16900         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
16901         that e.g., "next tues" (when run on a tuesday) results in a date
16902         that is one week in the future, and not today's date.
16903         I.e., add a week when the wday is the same as the current one.
16904         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
16905         and earlier by Martin Bernreuther and Jan Minář.
16906         * tests/test-getdate.c (main): Check that "next DAY" is always in
16907         the future and that "last DAY" is always in the past.
16909 2009-05-02  Jim Meyering  <meyering@redhat.com>
16911         build: ensure that a release build fails when a submodule is unclean
16912         * top/maint.mk (no-submodule-changes): New rule.
16913         (alpha beta major): Depend on it.
16915 2009-05-02  Bruno Haible  <bruno@clisp.org>
16917         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
16918         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
16919         shell variable gl_fnmatch_required to detect which variant is
16920         requested.
16921         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
16922         gl_FUNC_FNMATCH_POSIX.
16923         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
16924         exclude fnmatch-posix.
16926 2009-05-02  Bruno Haible  <bruno@clisp.org>
16928         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
16929         * modules/mbsrtowcs (License): Change to LGPLv2+.
16930         * modules/strnlen1 (License): Likewise.
16931         Reported by Simon Josefsson.
16933 2009-05-02  Bruno Haible  <bruno@clisp.org>
16935         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
16936         "cross".
16937         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
16938         gnulib-tool was called with option --source-base=lib.
16940 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16942         Use automake *-local hooks without commands, for extensibility.
16943         * modules/localcharset (Makefile.am): Rename install-exec-local
16944         rule to install-exec-localcharset, and make it a prerequisite of
16945         install-exec-local.  Likewise, rename the uninstall-local rule to
16946         uninstall-localcharset, and make it a prerequisite of the former.
16948 2009-05-01  Bruno Haible  <bruno@clisp.org>
16950         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
16951         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
16952         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
16953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
16954         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
16955         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
16956         m4/locale-zh.m4, m4/codeset.m4.
16958         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
16959         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
16960         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
16961         m4/locale-zh.m4.
16963         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
16964         REPLACE_WCRTOMB if mbstate_t must be replaced.
16965         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
16966         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
16968 2009-05-01  Bruno Haible  <bruno@clisp.org>
16970         Avoid compiler warnings when redefining macros defined by <libintl.h>.
16971         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
16972         dngettext, dcngettext, textdomain, bindtextdomain,
16973         bind_textdomain_codeset): Undefine before redefining.
16975 2009-04-30  Bruno Haible  <bruno@clisp.org>
16977         Fix bug introduced on 2009-04-25.
16978         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
16979         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
16980         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
16981         is defined.
16982         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
16983         is defined.
16984         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
16985         is defined.
16986         Reported by Elbert_Pol <elbert.pol@gmail.com>.
16988 2009-04-28  Bruno Haible  <bruno@clisp.org>
16990         Comment tweaks.
16991         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
16992         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
16993         * lib/unicase.h (u*_casexfrm): Likewise.
16994         Reported by Paolo Bonzini.
16996 2009-04-28  Bruno Haible  <bruno@clisp.org>
16998         Fix a compilation error.
16999         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17000         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17001         Reported by Jim Meyering.
17003 2009-04-27  Bruno Haible  <bruno@clisp.org>
17005         New module 'libunistring'.
17006         * modules/libunistring: New file.
17007         * m4/libunistring.m4: New file.
17008         * MODULES.html.sh (Unicode string functions): Add it.
17010 2009-04-27  Eric Blake  <ebb9@byu.net>
17012         maint.mk: allow package-specific header to provide <config.h>
17013         * top/maint.mk (sc_require_config_h): New variable.
17014         (sc_require_config_h, sc_require_config_h_first): Use it.
17016 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17018         * top/maint.mk (sc_avoid_if_before_free): Except
17019         useless-if-before-free script.
17021 2009-04-27  Eric Blake  <ebb9@byu.net>
17023         maintainer-makefile: depend on all required helper scripts
17024         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17025         useless-if-before-free.
17026         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17027         version, rather than assuming gnulib checkout is available.
17028         Reported by Simen Josefsson.
17030 2009-04-26  Bruno Haible  <bruno@clisp.org>
17032         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17033         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17034         "../" or "..".
17036 2009-04-26  Bruno Haible  <bruno@clisp.org>
17038         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17039         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17040         AC_LIB_HAVE_LINKFLAGS.
17042 2009-04-26  Bruno Haible  <bruno@clisp.org>
17044         Simplify calling convention of u*_conv_from_encoding.
17045         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17046         u32_conv_from_encoding): Expect a resultbuf argument and return the
17047         result directly as a pointer.
17048         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17049         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17050         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17051         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17052         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17053         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17054         Update.
17055         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17056         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17057         * lib/vasnprintf.c (VASNPRINTF): Update.
17058         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17059         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17060         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17061         * NEWS: Mention the change.
17063 2009-04-26  Bruno Haible  <bruno@clisp.org>
17065         Simplify calling convention of u*_conv_to_encoding.
17066         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17067         u32_conv_to_encoding): Expect a resultbuf argument and return the
17068         result directly as a pointer.
17069         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17070         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17071         freeing scaled_offsets if mem_iconveha failed.
17072         * lib/unicase/u-casexfrm.h (FUNC): Update.
17073         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17074         * lib/vasnprintf.c (VASNPRINTF): Update.
17075         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17076         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17077         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17078         * NEWS: Mention the change.
17080 2009-04-26  Bruno Haible  <bruno@clisp.org>
17082         Avoid test failures on AIX and OSF/1.
17083         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17084         malloc(0).
17085         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17086         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17087         Likewise.
17088         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17089         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17090         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17091         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17092         * doc/posix-functions/malloc.texi: Document the portability problem
17093         related to malloc(0).
17095 2009-04-26  Bruno Haible  <bruno@clisp.org>
17097         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17098         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17099         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17101 2009-04-25  Bruno Haible  <bruno@clisp.org>
17103         Avoid link error when creating a namespace clean library.
17104         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17105         as macro with arguments if already defined as an alias.
17106         * lib/signbitf.c (gl_signbitf): Don't undefine.
17107         * lib/signbitd.c (gl_signbitd): Don't undefine.
17108         * lib/signbitl.c (gl_signbitl): Don't undefine.
17110 2009-04-25  Jim Meyering  <meyering@redhat.com>
17112         vc-list-files: fix another quoting bug
17113         * build-aux/vc-list-files: Avoid sed backslash expansion
17114         of pathological directory names.
17116 2009-04-25  Eric Blake  <ebb9@byu.net>
17118         vc-list-files: fix shell quoting error
17119         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17120         timestamp.
17122 2009-04-25  Jim Meyering  <meyering@redhat.com>
17124         vc-list-files: restore lost functionality with subdir argument
17125         * build-aux/vc-list-files: When given a non-"." sub-directory
17126         argument, substitute the $dir/ prefix back onto each resulting name.
17127         Otherwise, coreutils' root_tests check would fail.
17129 2009-04-24  Eric Blake  <ebb9@byu.net>
17131         vc-list-files: ignore git symlinks
17132         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17133         than ls-files, to ignore git symlinks.
17135         maint.mk: import improvements from m4
17136         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17137         (move_if_change): Delete unused macro.
17138         (news-date-check, vc-diff-check): Support VPATH builds.
17139         (announcement): Likewise.  Split --bootstrap-tools list...
17140         (boostrap-tools): ...into separate list, which can be overridden
17141         in cfg.mk.
17142         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17143         requiring dependency on useless-if-before-free module.
17144         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17145         Support VPATH builds.
17147 2009-04-24  Jim Meyering  <meyering@redhat.com>
17149         maint.mk: remove coreutils-specific rules and variables
17150         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17151         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17152         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17154         maint.mk: remove obsolete rule
17155         * top/maint.mk (rel-check): Remove rule.
17156         (WGET, WGETFLAGS): Remove now-unused variables.
17158 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17160         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17161         consistency.
17163         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17164         '$(PATH_SEPARATOR)' instead of ':'.
17166 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17168         * lib/getopt1.c (main): Use 'const' for static array.
17170 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17172         * top/maint.mk: Sync with coreutils.
17173         * NEWS: Explain incompatibilities.
17175 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17176             Bruno Haible  <bruno@clisp.org>
17178         Fix cross-compilation results.
17179         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17180         statement, as third argument of AC_TRY_RUN.
17181         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17182         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17183         Likewise.
17184         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17185         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17186         Likewise.
17187         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17188         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17189         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17191 2009-04-20  Bruno Haible  <bruno@clisp.org>
17193         Avoid test failure on mingw.
17194         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17196 2009-04-20  Bruno Haible  <bruno@clisp.org>
17198         Avoid compilation error on mingw.
17199         * modules/localename-tests (Depends-on): Add locale.
17201 2009-04-19  Bruno Haible  <bruno@clisp.org>
17203         Support for building a shared library on Windows platforms.
17204         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17205         (main): Test the presence of UNINORM_NFC here.
17206         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17207         (main): Test the presence of UNINORM_NFD here.
17208         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17209         (main): Test the presence of UNINORM_NFKC here.
17210         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17211         (main): Test the presence of UNINORM_NFKD here.
17213 2009-04-19  Bruno Haible  <bruno@clisp.org>
17215         Avoid a compiler warning.
17216         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17217         Change type of variable 'sequence'.
17219 2009-04-19  Bruno Haible  <bruno@clisp.org>
17221         * modules/configmake (Makefile.am): When the contents of configmake.h
17222         does not change, arrange to preserve its modification time.
17224 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17226         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17227         gettext domain.
17229 2009-04-16  Jim Meyering  <meyering@redhat.com>
17231         useless-if-before-free: improve conversion code
17232         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17233         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17235 2009-04-14  Bruno Haible  <bruno@clisp.org>
17237         * modules/fcntl (Depends-on): Add extensions.
17238         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17240 2009-04-12  Ben Pfaff  <blp@gnu.org>
17242         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17243         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17245 2009-03-20  Ben Pfaff  <blp@gnu.org>
17247         Make rename replace existing destinations on Windows.
17248         * m4/rename.m4: Add test for Mingw.
17249         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17250         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17251         * doc/posix-functions/rename.texi: Document.
17253 2009-04-10  Bruno Haible  <bruno@clisp.org>
17255         New include file "iconveh.h".
17256         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17257         * lib/striconveh.h: Include it.
17258         (enum iconv_ilseq_handler): Remove definition.
17259         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17260         striconveh.h.
17261         * lib/striconveha.c: Include striconveh.h.
17262         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17263         * modules/striconveh (Files): Add lib/iconveh.h.
17264         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17265         lib/striconveh.h.
17267 2009-04-10  Bruno Haible  <bruno@clisp.org>
17269         * lib/uniconv.h: Update comment.
17271 2009-04-10  Bruno Haible  <bruno@clisp.org>
17273         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17274         always.
17275         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17276         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17277         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17278         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17279         "unistring-notinline.h", so that the function gets defined always.
17280         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17281         * lib/unistr/u8-uctomb.c: Likewise.
17282         * lib/unistr/u16-mbtouc.c: Likewise.
17283         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17284         * lib/unistr/u16-uctomb.c: Likewise.
17285         * lib/unistr/u32-mbtouc.c: Likewise.
17286         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17287         * lib/unistr/u32-uctomb.c: Likewise.
17289 2009-04-10  Bruno Haible  <bruno@clisp.org>
17291         Mark 'utime' obsolete.
17292         * modules/utime (Status, Notice): New sections.
17293         Suggested by Jim Meyering.
17295         Fix cross-compile guess for utime test.
17296         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17297         autoconf.
17298         * doc/posix-functions/utime.texi: Give more precisions.
17299         Reported by Jan <ipif@ymail.com>.
17301 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17303         filevercmp: correct today's change
17304         * lib/filevercmp.c: Also handle coreutils' test inputs.
17305         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
17307         Fix regression in 'filevercmp' module. Thanks Sven Joachim
17308         for reporting it.
17309         * lib/filevercmp.c: Special handle for "", "." and "..".
17310         * tests/test-filevercmp.c: Enlarge the set suite.
17312 2009-04-07  Jim Meyering  <meyering@redhat.com>
17314         useless-if-before-free: show how to remove braced useless free, too
17315         * build-aux/useless-if-before-free: still only in a comment, though.
17317 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
17319         maint.mk: import changes to syntax-check macros from coreutils
17320         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
17321         Use them in the relevant macros.
17323 2009-04-06  Bruno Haible  <bruno@clisp.org>
17325         Fix unportable use of bit-fields.
17326         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
17327         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
17328         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
17330 2009-04-06  Bruno Haible  <bruno@clisp.org>
17332         Avoid test failures on AIX and OSF/1.
17333         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
17334         that malloc(0) = NULL.
17335         * tests/unicase/test-u8-tolower.c (check): Likewise.
17336         * tests/unicase/test-u8-totitle.c (check): Likewise.
17337         * tests/unicase/test-u8-toupper.c (check): Likewise.
17338         * tests/unicase/test-u16-casefold.c (check): Likewise.
17339         * tests/unicase/test-u16-tolower.c (check): Likewise.
17340         * tests/unicase/test-u16-totitle.c (check): Likewise.
17341         * tests/unicase/test-u16-toupper.c (check): Likewise.
17342         * tests/unicase/test-u32-casefold.c (check): Likewise.
17343         * tests/unicase/test-u32-tolower.c (check): Likewise.
17344         * tests/unicase/test-u32-totitle.c (check): Likewise.
17345         * tests/unicase/test-u32-toupper.c (check): Likewise.
17346         * tests/uninorm/test-u8-nfc.c (check): Likewise.
17347         * tests/uninorm/test-u8-nfd.c (check): Likewise.
17348         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
17349         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
17350         * tests/uninorm/test-u16-nfc.c (check): Likewise.
17351         * tests/uninorm/test-u16-nfd.c (check): Likewise.
17352         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
17353         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
17354         * tests/uninorm/test-u32-nfc.c (check): Likewise.
17355         * tests/uninorm/test-u32-nfd.c (check): Likewise.
17356         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
17357         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
17359 2009-04-05  Bruno Haible  <bruno@clisp.org>
17361         Work around an autoconf limitation.
17362         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
17363         comment line if it would be longer than 3 KB.
17365 2009-04-05  Bruno Haible  <bruno@clisp.org>
17367         Avoid test failure with libiconv-1.13.
17368         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
17369         of the expected test results.
17371 2009-04-05  Bruno Haible  <bruno@clisp.org>
17373         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
17374         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
17375         that it should be installed.
17377 2009-04-05  Bruno Haible  <bruno@clisp.org>
17379         * gnulib-tool: New option --copy-file.
17380         (func_usage): Document it.
17381         (func_dest_tmpfilename): Moved out of func_import.
17382         (func_add_file, func_update_file): New functions, extracted from
17383         func_import.
17384         (func_import): Update.
17386 2009-04-05  Karl Berry  <karl@gnu.org>
17388         * README: prominently mention gnulib-tool.
17389         Rearrange sections so getting the code is near the top.
17391 2009-04-05  Bruno Haible  <bruno@clisp.org>
17393         * lib/unicase.h: Mention u*_cmp2.
17394         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17395         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
17396         * lib/unicase/ulc-casecmp.c: Likewise.
17397         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
17398         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
17399         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
17400         unistr/u8-cmp.
17401         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
17402         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
17403         unistr/u16-cmp.
17404         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
17405         unistr/u32-cmp.
17407         * lib/uninorm.h: Mention u*_cmp2.
17408         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17409         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
17410         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
17411         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
17412         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
17413         unistr/u8-cmp.
17414         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
17415         unistr/u16-cmp.
17416         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
17417         unistr/u32-cmp.
17419         New module 'unistr/u32-cmp2'.
17420         * lib/unistr/u32-cmp2.c: New file.
17421         * modules/unistr/u32-cmp2: New file.
17423         New module 'unistr/u16-cmp2'.
17424         * lib/unistr/u16-cmp2.c: New file.
17425         * modules/unistr/u16-cmp2: New file.
17427         New module 'unistr/u8-cmp2'.
17428         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
17429         * lib/unistr/u8-cmp2.c: New file.
17430         * lib/unistr/u-cmp2.h: New file.
17431         * modules/unistr/u8-cmp2: New file.
17433 2009-04-05  Bruno Haible  <bruno@clisp.org>
17435         * lib/unictype.h (uc_property_is_valid): New macro.
17436         * tests/unictype/test-pr_byname.c (main): Use it.
17438         * lib/unistr.h: Doc fixes.
17439         * lib/uniconv.h: Doc fixes.
17440         * lib/unictype.h: Doc fixes.
17442 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17444         Port coreutils 7.2 to Solaris 8.
17446         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
17447         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
17448         for Solaris 8.  This is a bit of a hack, as it means it's the
17449         caller's responsibility to add -lnsl if needed, but most likely it
17450         won't be needed since only getaddrinfo uses this and getaddrinfo
17451         isn't needed on Solaris 8.
17453         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
17454         problem to Solaris 8 encountered with coreutils 7.2, which
17455         resulted in a message "fnmatch.c:292: warning: passing argument 4
17456         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
17457         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
17459 2009-04-03  Simon Josefsson  <simon@josefsson.org>
17461         * m4/ld-version-script.m4: Add FIXME comment.
17463 2009-04-02  Simon Josefsson  <simon@josefsson.org>
17465         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
17466         SOVERSION variable.
17468 2009-04-02  Bruno Haible  <bruno@clisp.org>
17470         * Makefile (info, html, dvi, pdf): Combine the rules.
17471         Suggested by Jim Meyering.
17473 2009-04-01  Bruno Haible  <bruno@clisp.org>
17475         * Makefile (info, html, dvi, pdf): New targets.
17476         Reported by Reuben Thomas <rrt@sc3d.org>.
17478 2009-04-01  Bruno Haible  <bruno@clisp.org>
17480         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
17481         can be put into PATH.
17482         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
17484 2009-04-01  Bruno Haible  <bruno@clisp.org>
17486         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
17488 2009-04-01  Bruno Haible  <bruno@clisp.org>
17490         Rename module 'visibility'.
17491         * modules/lib-symbol-visibility: Renamed from modules/visibility.
17492         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
17493         * doc/gnulib.texi: Update.
17494         * MODULES.html.sh (Misc): Update.
17495         * NEWS: Mention the change.
17497 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17499         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
17500         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
17501         Eric Blake <ebb9@byu.net> for review.
17502         * MODULES.html.sh: Add lib-msvc-compat.
17503         * doc/gnulib.texi: Link to new section.
17504         * m4/ld-output-def.m4: New file.
17505         * doc/ld-output-def.texi: New file.
17507 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17509         Rename ld-version-script to lib-symbol-versions.  Suggested by
17510         Bruno Haible <bruno@clisp.org>.
17511         * modules/ld-version-script: Renamed to lib-symbol-versions.
17512         * doc/ld-version-script.texi: Fix module name.
17513         * MODULES.html.sh: Add lib-symbol-versions.
17515 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17517         * modules/u64-tests: New file.
17518         * tests/test-u64.c: New file.
17520 2009-03-04  Simon Josefsson  <simon@josefsson.org>
17522         * MODULES.html.sh: Mention u64.
17523         * modules/u64: New module.
17524         * modules/crypto/sha512: Depend on u64 module instead of providing
17525         u64.h.
17527 2009-03-27  Eric Blake  <ebb9@byu.net>
17529         test-strerror: make debugging EAI_SYSTEM easier
17530         * modules/getaddrinfo-tests (Depends-on): Add strerror.
17531         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
17532         failure was EAI_SYSTEM.
17534 2009-03-25  Bruno Haible  <bruno@clisp.org>
17536         Fix a problem with --enable-relocatable on Solaris 7.
17537         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
17538         since 2008-02-24.
17540 2009-03-25  Eric Blake  <ebb9@byu.net>
17542         test-sockets: avoid gcc warning
17543         * tests/test-sockets.c (main): Silence compiler warning.
17545 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17547         New modules nproc, pthread, contributed by Glen Lenker.
17549         * MODULES.html.sh: Add pthread, nproc.
17550         * lib/nproc.c: New file.
17551         * lib/nproc.h: New file.
17552         * lib/pthread.in.h: New file.
17553         * m4/pthread.m4: New file.
17554         * modules/nproc: New file.
17555         * modules/pthread: New file.
17557 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17559         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
17560         New variable.
17562 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
17564         filevercmp: handle simple~ and numbered.~3~ backup suffixes
17565         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
17566         * tests/test-filevercmp.c: Add tests for backup suffixes.
17568 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17570         * modules/stdlib (Depends-on): Add stdint, needed when defining
17571         struct random_data on, for example, HP-UX 10.20.  Reported by
17572         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17574 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17576         * lib/readline.c (readline): Call fflush on stdout after printing
17577         prompt.
17579 2009-03-20  Bruno Haible  <bruno@clisp.org>
17581         Remove dependency from 'close' module to -lws2_32 on native Windows.
17582         * lib/close-hook.h: New file.
17583         * lib/close-hook.c: New file.
17584         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
17585         w32sock.h.
17586         (_gl_close_fd_maybe_socket): Remove function.
17587         (rpl_close): Invoke execute_all_close_hooks instead of
17588         _gl_close_fd_maybe_socket.
17589         * lib/sockets.c: Include close-hook.h, w32sock.h.
17590         (close_fd_maybe_socket): New function, essentially from lib/close.c.
17591         (close_sockets_hook): New variable.
17592         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
17593         (gl_sockets_cleanup): Unregister it.
17594         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
17595         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
17596         * modules/close-hook: New file.
17597         * modules/close (Files): Remove lib/w32sock.h.
17598         (Depends-on): Add close-hook.
17599         (Link): Remove section.
17600         * modules/sockets (Files): Add lib/w32sock.h.
17601         (Depends-on): Add close-hook.
17602         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
17603         invocation.
17604         * NEWS: Mention that LIB_CLOSE is gone.
17606 2009-03-23  Eric Blake  <ebb9@byu.net>
17608         signal-tests: test previous patch
17609         * tests/test-signal.c: New file.
17610         * modules/signal-tests: Likewise.
17612         signal.h: always support 'volatile sig_atomic_t'
17613         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
17614         (gl_SIGNAL_H_DEFAULTS): Add a default.
17615         * modules/signal (Makefile.am): Substitute if needed.
17616         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
17617         users can blindly add volatile.
17618         * doc/posix-headers/signal.texi (signal.h): Document it.
17619         Reported by Matthew Woehlke.
17621 2009-03-23  Jim Meyering  <meyering@redhat.com>
17623         pathmax: PATH_MAX: use pathconf only when available
17624         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
17625         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
17626         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
17627         This avoids a link failure in a PSP cross-compilation environment
17628         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
17630         * lib/vasnprintf.c (divide): Fix typo in comment.
17632 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17634         * gnulib-tool (func_filter_filelist): Fix comment.
17636 2009-03-20  Bruno Haible  <bruno@clisp.org>
17638         Make sockets.h self-contained.
17639         * lib/sockets.c: Include sockets.h first.
17640         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
17642 2009-03-19  Eric Blake  <ebb9@byu.net>
17644         doc: mention more functions added in cygwin 1.7.0
17645         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
17646         addition.
17647         * doc/posix-functions/log2f.texi: Likewise.
17649 2009-03-19  Jim Meyering  <meyering@redhat.com>
17651         fsusage: avoid syntax error due to statement-before-declaration
17652         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
17653         after all declarations.  Reported by Matthew Woehlke in
17654         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
17656 2009-03-18  Eric Blake  <ebb9@byu.net>
17658         build-aux/compile: sync from automake
17659         * build-aux/compile: New file, from automake.
17660         * config/srclist.txt: Mention build-aux/compile.
17662 2009-03-17  Bruno Haible  <bruno@clisp.org>
17664         * lib/git-merge-changelog.c: Fix typo in comment.
17665         Reported by Reuben Thomas <rrt@sc3d.org>.
17667 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
17669         * m4/regex.m4: update and improve help for
17670         --without-included-regex.
17672 2009-03-17  Simon Josefsson  <simon@josefsson.org>
17674         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
17675         failure on missing include files.
17677 2009-03-17  Eric Blake  <ebb9@byu.net>
17679         doc: mention more functions added in cygwin 1.7.0
17680         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
17681         addition.
17682         * doc/posix-functions/fwscanf.texi: Likewise.
17683         * doc/posix-functions/swprintf.texi: Likewise.
17684         * doc/posix-functions/swscanf.texi: Likewise.
17685         * doc/posix-functions/vfwprintf.texi: Likewise.
17686         * doc/posix-functions/vfwscanf.texi: Likewise.
17687         * doc/posix-functions/vswprintf.texi: Likewise.
17688         * doc/posix-functions/vswscanf.texi: Likewise.
17689         * doc/posix-functions/vwprintf.texi: Likewise.
17690         * doc/posix-functions/vwscanf.texi: Likewise.
17691         * doc/posix-functions/wcscasecmp.texi: Likewise.
17692         * doc/posix-functions/wcsdup.texi: Likewise.
17693         * doc/posix-functions/wcsftime.texi: Likewise.
17694         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17695         * doc/posix-functions/wprintf.texi: Likewise.
17696         * doc/posix-functions/wscanf.texi: Likewise.
17697         * doc/glibc-functions/gethostbyname2.texi: Likewise.
17699 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17701         maint.mk: really add $(AM_MAKEFLAGS)
17702         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
17703         was inadvertently omitted in the last commit.
17704         Spotted by Bruno Haible.
17706         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
17707         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
17708         $(AM_MAKEFLAGS)' rather than plain `make'.
17710         gnulib-tool: execute $MAKE not make
17711         * gnulib-tool: Default $MAKE to 'make'.
17712         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
17713         than make.  Initialize $MAKE in the do-autobuild script.
17715         gnulib-tool: use $MAKE not make in generated files
17716         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
17717         make, in generated files.  Initialize $MAKE in the do-autobuild
17718         script.
17720         * top/GNUmakefile (_have-git-version-gen): Fix typo.
17722         GNUmakefile: disable parallelism only for multiple, recursive targets
17723         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
17724         additions in the Makefile.
17725         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
17726         by Automake.
17727         (.NOTPARALLEL): Only disable parallel builds if multiple targets
17728         are listed on the command line and at least one of them is
17729         listed in $(ALL_RECURSIVE_TARGETS).
17731 2009-03-14  Bruno Haible  <bruno@clisp.org>
17733         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
17734         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
17735         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
17736         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
17737         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
17738         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
17739         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
17740         unistr/u8-uctomb.
17741         * modules/unistr/u8-strchr (Depends-on): Likewise.
17742         * modules/unistr/u8-strrchr (Depends-on): Likewise.
17743         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
17744         unistr/u16-uctomb.
17745         * modules/unistr/u16-strchr (Depends-on): Likewise.
17746         * modules/unistr/u16-strrchr (Depends-on): Likewise.
17748 2009-03-12  Bruno Haible  <bruno@clisp.org>
17750         Work around select() bug on Interix 3.5.
17751         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
17752         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
17753         * m4/select.m4: New file.
17754         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
17755         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
17756         * modules/select (Files): Add m4/select.m4.
17757         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
17758         * modules/nanosleep (Depends-on): Add select.
17759         * modules/poll (Depends-on): Likewise.
17760         * doc/posix-functions/select.texi: Mention the Interix bug.
17761         Reported by Markus Duft <mduft@gentoo.org>.
17763         * lib/select.c: Renamed from lib/winsock-select.c.
17764         * modules/select (Files): Add lib/select.c, remove
17765         lib/winsock-select.c.
17766         (configure.ac): Update.
17768 2009-03-12  Jim Meyering  <meyering@redhat.com>
17770         avoid gcc warnings about unused macro definitions
17771         * lib/readtokens.c (STREQ): Remove unused definition.
17772         * lib/xmalloc.c (SIZE_MAX): Likewise.
17773         * lib/openat-die.c (N_): Likewise.
17774         * lib/mountlist.c (SIZE_MAX): Remove definition.
17775         Instead, include <stdint.h>.
17776         * lib/readutmp.c: Likewise.
17777         * modules/readutmp (Depends-on): Add stdint.
17778         * modules/mountlist (Depends-on): Add stdint.
17779         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
17781 2009-03-10  Bruno Haible  <bruno@clisp.org>
17783         Tests for module 'mbmemcasecoll'.
17784         * modules/mbmemcasecoll-tests: New file.
17785         * tests/test-mbmemcasecoll1.sh: New file.
17786         * tests/test-mbmemcasecoll2.sh: New file.
17787         * tests/test-mbmemcasecoll3.sh: New file.
17788         * tests/test-mbmemcasecoll.c: New file.
17790         New module 'mbmemcasecoll'.
17791         * lib/mbmemcasecoll.h: New file.
17792         * lib/mbmemcasecoll.c: New file.
17793         * modules/mbmemcasecoll: New file.
17795         * tests/test-mbmemcasecmp.h: New file, extracted from
17796         tests/test-mbmemcasecmp.c.
17797         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
17798         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
17799         (main): Update.
17800         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
17802 2009-03-09  Bruno Haible  <bruno@clisp.org>
17804         Tests for module 'mbmemcasecmp'.
17805         * modules/mbmemcasecmp-tests: New file.
17806         * tests/test-mbmemcasecmp1.sh: New file.
17807         * tests/test-mbmemcasecmp2.sh: New file.
17808         * tests/test-mbmemcasecmp3.sh: New file.
17809         * tests/test-mbmemcasecmp.c: New file.
17811         New module 'mbmemcasecmp'.
17812         * lib/mbmemcasecmp.h: New file.
17813         * lib/mbmemcasecmp.c: New file.
17814         * modules/mbmemcasecmp: New file.
17816 2009-03-09  Bruno Haible  <bruno@clisp.org>
17818         Tests for module 'unicase/ulc-casecoll'.
17819         * modules/unicase/ulc-casecoll-tests: New file.
17820         * tests/unicase/test-ulc-casecoll1.sh: New file.
17821         * tests/unicase/test-ulc-casecoll2.sh: New file.
17822         * tests/unicase/test-ulc-casecoll.c: New file.
17824         New module 'unicase/ulc-casecoll'.
17825         * lib/unicase.h (ulc_casecoll): New declaration.
17826         * lib/unicase/ulc-casecoll.c: New file.
17827         * modules/unicase/ulc-casecoll: New file.
17829         New module 'unicase/ulc-casexfrm'.
17830         * lib/unicase.h (ulc_casexfrm): New declaration.
17831         * lib/unicase/ulc-casexfrm.c: New file.
17832         * modules/unicase/ulc-casexfrm: New file.
17834 2009-03-09  Bruno Haible  <bruno@clisp.org>
17836         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
17837         invocations.
17839         * m4/mbscasecmp.m4: Remove file.
17840         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
17841         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
17843         * m4/mbscasestr.m4: Remove file.
17844         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
17845         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
17847         * m4/mbschr.m4: Remove file.
17848         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
17849         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
17851         * m4/mbscspn.m4: Remove file.
17852         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
17853         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
17855         * m4/mbslen.m4: Remove file.
17856         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
17857         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
17859         * m4/mbsncasecmp.m4: Remove file.
17860         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
17861         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
17863         * m4/mbsnlen.m4: Remove file.
17864         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
17865         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
17867         * m4/mbspbrk.m4: Remove file.
17868         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
17869         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
17871         * m4/mbspcasecmp.m4: Remove file.
17872         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
17873         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
17875         * m4/mbsrchr.m4: Remove file.
17876         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
17877         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
17879         * m4/mbssep.m4: Remove file.
17880         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
17881         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
17883         * m4/mbsspn.m4: Remove file.
17884         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
17885         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
17887         * m4/mbsstr.m4: Remove file.
17888         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
17889         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
17891         * m4/mbstok_r.m4: Remove file.
17892         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
17893         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
17895         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
17897         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
17898         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
17900         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
17902 2009-03-08  Bruno Haible  <bruno@clisp.org>
17904         Tests for module 'unicase/ulc-casecmp'.
17905         * modules/unicase/ulc-casecmp-tests: New file.
17906         * tests/unicase/test-ulc-casecmp1.sh: New file.
17907         * tests/unicase/test-ulc-casecmp2.sh: New file.
17908         * tests/unicase/test-ulc-casecmp.c: New file.
17910         New module 'unicase/ulc-casecmp'.
17911         * lib/unicase.h (ulc_casecmp): New declaration.
17912         * lib/unicase/ulc-casecmp.c: New file.
17913         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
17914         'const SRC_UNIT *'.
17915         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
17916         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
17917         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
17918         * modules/unicase/ulc-casecmp: New file.
17920         Tests for module 'unicase/u32-is-cased'.
17921         * modules/unicase/u32-is-cased-tests: New file.
17922         * tests/unicase/test-u32-is-cased.c: New file.
17924         Tests for module 'unicase/u16-is-cased'.
17925         * modules/unicase/u16-is-cased-tests: New file.
17926         * tests/unicase/test-u16-is-cased.c: New file.
17928         Tests for module 'unicase/u8-is-cased'.
17929         * modules/unicase/u8-is-cased-tests: New file.
17930         * tests/unicase/test-u8-is-cased.c: New file.
17931         * tests/unicase/test-is-cased.h: New file.
17933         New module 'unicase/u32-is-cased'.
17934         * lib/unicase/u32-is-cased.c: New file.
17935         * modules/unicase/u32-is-cased: New file.
17937         New module 'unicase/u16-is-cased'.
17938         * lib/unicase/u16-is-cased.c: New file.
17939         * modules/unicase/u16-is-cased: New file.
17941         New module 'unicase/u8-is-cased'.
17942         * lib/unicase/u8-is-cased.c: New file.
17943         * lib/unicase/u-is-cased.h: New file.
17944         * modules/unicase/u8-is-cased: New file.
17946         Tests for module 'unicase/u32-is-casefolded'.
17947         * modules/unicase/u32-is-casefolded-tests: New file.
17948         * tests/unicase/test-u32-is-casefolded.c: New file.
17950         Tests for module 'unicase/u16-is-casefolded'.
17951         * modules/unicase/u16-is-casefolded-tests: New file.
17952         * tests/unicase/test-u16-is-casefolded.c: New file.
17954         Tests for module 'unicase/u8-is-casefolded'.
17955         * modules/unicase/u8-is-casefolded-tests: New file.
17956         * tests/unicase/test-u8-is-casefolded.c: New file.
17957         * tests/unicase/test-is-casefolded.h: New file.
17959         New module 'unicase/u32-is-casefolded'.
17960         * lib/unicase/u32-is-casefolded.c: New file.
17961         * modules/unicase/u32-is-casefolded: New file.
17963         New module 'unicase/u16-is-casefolded'.
17964         * lib/unicase/u16-is-casefolded.c: New file.
17965         * modules/unicase/u16-is-casefolded: New file.
17967         New module 'unicase/u8-is-casefolded'.
17968         * lib/unicase/u8-is-casefolded.c: New file.
17969         * modules/unicase/u8-is-casefolded: New file.
17971         Tests for module 'unicase/u32-is-titlecase'.
17972         * modules/unicase/u32-is-titlecase-tests: New file.
17973         * tests/unicase/test-u32-is-titlecase.c: New file.
17975         Tests for module 'unicase/u16-is-titlecase'.
17976         * modules/unicase/u16-is-titlecase-tests: New file.
17977         * tests/unicase/test-u16-is-titlecase.c: New file.
17979         Tests for module 'unicase/u8-is-titlecase'.
17980         * modules/unicase/u8-is-titlecase-tests: New file.
17981         * tests/unicase/test-u8-is-titlecase.c: New file.
17982         * tests/unicase/test-is-titlecase.h: New file.
17984         New module 'unicase/u32-is-titlecase'.
17985         * lib/unicase/u32-is-titlecase.c: New file.
17986         * modules/unicase/u32-is-titlecase: New file.
17988         New module 'unicase/u16-is-titlecase'.
17989         * lib/unicase/u16-is-titlecase.c: New file.
17990         * modules/unicase/u16-is-titlecase: New file.
17992         New module 'unicase/u8-is-titlecase'.
17993         * lib/unicase/u8-is-titlecase.c: New file.
17994         * modules/unicase/u8-is-titlecase: New file.
17996         Tests for module 'unicase/u32-is-lowercase'.
17997         * modules/unicase/u32-is-lowercase-tests: New file.
17998         * tests/unicase/test-u32-is-lowercase.c: New file.
18000         Tests for module 'unicase/u16-is-lowercase'.
18001         * modules/unicase/u16-is-lowercase-tests: New file.
18002         * tests/unicase/test-u16-is-lowercase.c: New file.
18004         Tests for module 'unicase/u8-is-lowercase'.
18005         * modules/unicase/u8-is-lowercase-tests: New file.
18006         * tests/unicase/test-u8-is-lowercase.c: New file.
18007         * tests/unicase/test-is-lowercase.h: New file.
18009         New module 'unicase/u32-is-lowercase'.
18010         * lib/unicase/u32-is-lowercase.c: New file.
18011         * modules/unicase/u32-is-lowercase: New file.
18013         New module 'unicase/u16-is-lowercase'.
18014         * lib/unicase/u16-is-lowercase.c: New file.
18015         * modules/unicase/u16-is-lowercase: New file.
18017         New module 'unicase/u8-is-lowercase'.
18018         * lib/unicase/u8-is-lowercase.c: New file.
18019         * modules/unicase/u8-is-lowercase: New file.
18021         Tests for module 'unicase/u32-is-uppercase'.
18022         * modules/unicase/u32-is-uppercase-tests: New file.
18023         * tests/unicase/test-u32-is-uppercase.c: New file.
18025         Tests for module 'unicase/u16-is-uppercase'.
18026         * modules/unicase/u16-is-uppercase-tests: New file.
18027         * tests/unicase/test-u16-is-uppercase.c: New file.
18029         Tests for module 'unicase/u8-is-uppercase'.
18030         * modules/unicase/u8-is-uppercase-tests: New file.
18031         * tests/unicase/test-u8-is-uppercase.c: New file.
18032         * tests/unicase/test-is-uppercase.h: New file.
18034         New module 'unicase/u32-is-uppercase'.
18035         * lib/unicase/u32-is-uppercase.c: New file.
18036         * modules/unicase/u32-is-uppercase: New file.
18038         New module 'unicase/u16-is-uppercase'.
18039         * lib/unicase/u16-is-uppercase.c: New file.
18040         * modules/unicase/u16-is-uppercase: New file.
18042         New module 'unicase/u8-is-uppercase'.
18043         * lib/unicase/u8-is-uppercase.c: New file.
18044         * modules/unicase/u8-is-uppercase: New file.
18046         New module 'unicase/u32-is-invariant'.
18047         * lib/unicase/u32-is-invariant.c: New file.
18048         * modules/unicase/u32-is-invariant: New file.
18050         New module 'unicase/u16-is-invariant'.
18051         * lib/unicase/u16-is-invariant.c: New file.
18052         * modules/unicase/u16-is-invariant: New file.
18054         New module 'unicase/u8-is-invariant'.
18055         * lib/unicase/u8-is-invariant.c: New file.
18056         * lib/unicase/invariant.h: New file.
18057         * lib/unicase/u-is-invariant.h: New file.
18058         * modules/unicase/u8-is-invariant: New file.
18060         Tests for module 'unicase/u32-casecoll'.
18061         * modules/unicase/u32-casecoll-tests: New file.
18062         * tests/unicase/test-u32-casecoll.c: New file.
18064         Tests for module 'unicase/u16-casecoll'.
18065         * modules/unicase/u16-casecoll-tests: New file.
18066         * tests/unicase/test-u16-casecoll.c: New file.
18068         Tests for module 'unicase/u8-casecoll'.
18069         * modules/unicase/u8-casecoll-tests: New file.
18070         * tests/unicase/test-u8-casecoll.c: New file.
18072         New module 'unicase/u32-casecoll'.
18073         * lib/unicase/u32-casecoll.c: New file.
18074         * modules/unicase/u32-casecoll: New file.
18076         New module 'unicase/u16-casecoll'.
18077         * lib/unicase/u16-casecoll.c: New file.
18078         * modules/unicase/u16-casecoll: New file.
18080         New module 'unicase/u8-casecoll'.
18081         * lib/unicase/u8-casecoll.c: New file.
18082         * lib/unicase/u-casecoll.h: New file.
18083         * modules/unicase/u8-casecoll: New file.
18085         New module 'unicase/u32-casexfrm'.
18086         * lib/unicase/u32-casexfrm.c: New file.
18087         * modules/unicase/u32-casexfrm: New file.
18089         New module 'unicase/u16-casexfrm'.
18090         * lib/unicase/u16-casexfrm.c: New file.
18091         * modules/unicase/u16-casexfrm: New file.
18093         New module 'unicase/u8-casexfrm'.
18094         * lib/unicase/u8-casexfrm.c: New file.
18095         * lib/unicase/u-casexfrm.h: New file.
18096         * modules/unicase/u8-casexfrm: New file.
18098         Tests for module 'unicase/u32-casecmp'.
18099         * modules/unicase/u32-casecmp-tests: New file.
18100         * tests/unicase/test-u32-casecmp.c: New file.
18102         Tests for module 'unicase/u16-casecmp'.
18103         * modules/unicase/u16-casecmp-tests: New file.
18104         * tests/unicase/test-u16-casecmp.c: New file.
18106         Tests for module 'unicase/u8-casecmp'.
18107         * modules/unicase/u8-casecmp-tests: New file.
18108         * tests/unicase/test-u8-casecmp.c: New file.
18109         * tests/unicase/test-casecmp.h: New file.
18111         New module 'unicase/u32-casecmp'.
18112         * lib/unicase/u32-casecmp.c: New file.
18113         * modules/unicase/u32-casecmp: New file.
18115         New module 'unicase/u16-casecmp'.
18116         * lib/unicase/u16-casecmp.c: New file.
18117         * modules/unicase/u16-casecmp: New file.
18119         New module 'unicase/u8-casecmp'.
18120         * lib/unicase/u8-casecmp.c: New file.
18121         * lib/unicase/u-casecmp.h: New file.
18122         * modules/unicase/u8-casecmp: New file.
18124         Tests for module 'unicase/u32-casefold'.
18125         * modules/unicase/u32-casefold-tests: New file.
18126         * tests/unicase/test-u32-casefold.c: New file.
18128         Tests for module 'unicase/u16-casefold'.
18129         * modules/unicase/u16-casefold-tests: New file.
18130         * tests/unicase/test-u16-casefold.c: New file.
18132         Tests for module 'unicase/u8-casefold'.
18133         * modules/unicase/u8-casefold-tests: New file.
18134         * tests/unicase/test-u8-casefold.c: New file.
18136         New module 'unicase/u32-casefold'.
18137         * lib/unicase/u32-casefold.c: New file.
18138         * modules/unicase/u32-casefold: New file.
18140         New module 'unicase/u16-casefold'.
18141         * lib/unicase/u16-casefold.c: New file.
18142         * modules/unicase/u16-casefold: New file.
18144         New module 'unicase/u8-casefold'.
18145         * lib/unicase/u8-casefold.c: New file.
18146         * lib/unicase/u-casefold.h: New file.
18147         * modules/unicase/u8-casefold: New file.
18149         New module 'unicase/tocasefold'.
18150         * lib/unicase/casefold.h: New file.
18151         * lib/unicase/tocasefold.c: New file.
18152         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18153         * modules/unicase/tocasefold: New file.
18155         Tests for module 'unicase/u32-totitle'.
18156         * modules/unicase/u32-totitle-tests: New file.
18157         * tests/unicase/test-u32-totitle.c: New file.
18159         Tests for module 'unicase/u16-totitle'.
18160         * modules/unicase/u16-totitle-tests: New file.
18161         * tests/unicase/test-u16-totitle.c: New file.
18163         Tests for module 'unicase/u8-totitle'.
18164         * modules/unicase/u8-totitle-tests: New file.
18165         * tests/unicase/test-u8-totitle.c: New file.
18167         New module 'unicase/u32-totitle'.
18168         * lib/unicase/u32-totitle.c: New file.
18169         * modules/unicase/u32-totitle: New file.
18171         New module 'unicase/u16-totitle'.
18172         * lib/unicase/u16-totitle.c: New file.
18173         * modules/unicase/u16-totitle: New file.
18175         New module 'unicase/u8-totitle'.
18176         * lib/unicase/u8-totitle.c: New file.
18177         * lib/unicase/u-totitle.h: New file.
18178         * modules/unicase/u8-totitle: New file.
18180         Tests for module 'unicase/u32-tolower'.
18181         * modules/unicase/u32-tolower-tests: New file.
18182         * tests/unicase/test-u32-tolower.c: New file.
18184         Tests for module 'unicase/u16-tolower'.
18185         * modules/unicase/u16-tolower-tests: New file.
18186         * tests/unicase/test-u16-tolower.c: New file.
18188         Tests for module 'unicase/u8-tolower'.
18189         * modules/unicase/u8-tolower-tests: New file.
18190         * tests/unicase/test-u8-tolower.c: New file.
18192         New module 'unicase/u32-tolower'.
18193         * lib/unicase/u32-tolower.c: New file.
18194         * modules/unicase/u32-tolower: New file.
18196         New module 'unicase/u16-tolower'.
18197         * lib/unicase/u16-tolower.c: New file.
18198         * modules/unicase/u16-tolower: New file.
18200         New module 'unicase/u8-tolower'.
18201         * lib/unicase/u8-tolower.c: New file.
18202         * modules/unicase/u8-tolower: New file.
18204         Tests for module 'unicase/u32-toupper'.
18205         * modules/unicase/u32-toupper-tests: New file.
18206         * tests/unicase/test-u32-toupper.c: New file.
18208         Tests for module 'unicase/u16-toupper'.
18209         * modules/unicase/u16-toupper-tests: New file.
18210         * tests/unicase/test-u16-toupper.c: New file.
18212         Tests for module 'unicase/u8-toupper'.
18213         * modules/unicase/u8-toupper-tests: New file.
18214         * tests/unicase/test-u8-toupper.c: New file.
18216         New module 'unicase/u32-toupper'.
18217         * lib/unicase/u32-toupper.c: New file.
18218         * modules/unicase/u32-toupper: New file.
18220         New module 'unicase/u16-toupper'.
18221         * lib/unicase/u16-toupper.c: New file.
18222         * modules/unicase/u16-toupper: New file.
18224         New module 'unicase/u8-toupper'.
18225         * lib/unicase/u8-toupper.c: New file.
18226         * modules/unicase/u8-toupper: New file.
18228         New module 'unicase/u32-casemap'.
18229         * lib/unicase/u32-casemap.c: New file.
18230         * modules/unicase/u32-casemap: New file.
18232         New module 'unicase/u16-casemap'.
18233         * lib/unicase/u16-casemap.c: New file.
18234         * modules/unicase/u16-casemap: New file.
18236         New module 'unicase/u8-casemap'.
18237         * lib/unicase/unicasemap.h: New file.
18238         * lib/unicase/u8-casemap.c: New file.
18239         * lib/unicase/u-casemap.h: New file.
18240         * modules/unicase/u8-casemap: New file.
18242         New module 'unicase/special-casing'.
18243         * lib/unicase/special-casing.h: New file.
18244         * lib/unicase/special-casing.c: New file.
18245         * lib/unicase/special-casing-table.gperf: New file, generated by
18246         gen-uni-tables.c.
18247         * modules/unicase/special-casing: New file.
18249         Tests for module 'unicase/locale-language'.
18250         * modules/unicase/locale-language-tests: New file.
18251         * tests/unicase/test-locale-language.sh: New file.
18252         * tests/unicase/test-locale-language.c: New file.
18254         New module 'unicase/locale-language'.
18255         * lib/unicase/locale-language.c: New file.
18256         * lib/unicase/locale-languages.gperf: New file.
18257         * modules/unicase/locale-language: New file.
18259         Generate more tables for case conversion and case folding.
18260         * lib/gen-uni-tables.c (SCC_*): New enum items.
18261         (struct special_casing_rule): New type.
18262         (casing_rules, num_casing_rules, allocated_casing_rules): New
18263         variables.
18264         (add_casing_rule, fill_casing_rules): New functions.
18265         (struct casefold_rule): New type.
18266         (casefolding_rules, num_casefolding_rules,
18267         allocated_casefolding_rules): New variables.
18268         (fill_casefolding_rules): New function.
18269         (unicode_casefold): New variable.
18270         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18271         sort_casing_rules, output_casing_rules): New functions.
18272         (main): Accept to more arguments: SpecialCasing.txt and
18273         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18274         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18275         Output mapping for casefolding.
18277         * lib/unicase.h: Include stdbool.h, uninorm.h.
18278         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18279         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18280         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18281         arguments.
18282         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18283         resultp arguments.
18284         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18285         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18286         resultp arguments.
18287         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18288         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18289         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18290         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18291         declarations.
18292         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18294 2009-03-08  Bruno Haible  <bruno@clisp.org>
18296         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18297         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18298         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18299         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18301 2009-03-07  Bruno Haible  <bruno@clisp.org>
18303         Adjust u*_normcmp, u*_normcoll API.
18304         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18305         u16_normcoll, u32_normcoll): Change failure conventions.
18306         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
18307         errno and return -1.
18308         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18310 2009-03-07  Bruno Haible  <bruno@clisp.org>
18312         Tests for module 'uninorm/u32-normcoll'.
18313         * modules/uninorm/u32-normcoll-tests: New file.
18314         * tests/uninorm/test-u32-normcoll.c: New file.
18316         Tests for module 'uninorm/u16-normcoll'.
18317         * modules/uninorm/u16-normcoll-tests: New file.
18318         * tests/uninorm/test-u16-normcoll.c: New file.
18320         Tests for module 'uninorm/u8-normcoll'.
18321         * modules/uninorm/u8-normcoll-tests: New file.
18322         * tests/uninorm/test-u8-normcoll.c: New file.
18324 2009-03-07  Bruno Haible  <bruno@clisp.org>
18326         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
18327         tests/uninorm/test-u32-normcmp.c.
18328         * tests/uninorm/test-u32-normcmp.c: Include it.
18329         (test_nonascii): New function, extracted from main. Add some more
18330         tests.
18331         (main): Invoke test_ascii and test_nonascii.
18332         * modules/uninorm/u32-normcmp-tests (Files): Add
18333         tests/uninorm/test-u32-normcmp.h.
18334         (Depends-on): Remove uninorm/u32-normcmp.
18336         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
18337         tests/uninorm/test-u16-normcmp.c.
18338         * tests/uninorm/test-u16-normcmp.c: Include it.
18339         (test_nonascii): New function, extracted from main. Add some more
18340         tests.
18341         (main): Invoke test_ascii and test_nonascii.
18342         * modules/uninorm/u16-normcmp-tests (Files): Add
18343         tests/uninorm/test-u16-normcmp.h.
18344         (Depends-on): Remove uninorm/u16-normcmp.
18346         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
18347         tests/uninorm/test-u8-normcmp.c.
18348         * tests/uninorm/test-u8-normcmp.c: Include it.
18349         (test_nonascii): New function, extracted from main. Add some more
18350         tests.
18351         (main): Invoke test_ascii and test_nonascii.
18352         * modules/uninorm/u8-normcmp-tests (Files): Add
18353         tests/uninorm/test-u8-normcmp.h.
18354         (Depends-on): Remove uninorm/u8-normcmp.
18356 2009-03-07  Bruno Haible  <bruno@clisp.org>
18358         New module 'uninorm/u32-normcoll'.
18359         * lib/uninorm/u32-normcoll.c: New file.
18360         * modules/uninorm/u32-normcoll: New file.
18362         New module 'uninorm/u16-normcoll'.
18363         * lib/uninorm/u16-normcoll.c: New file.
18364         * modules/uninorm/u16-normcoll: New file.
18366         New module 'uninorm/u8-normcoll'.
18367         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
18368         declarations.
18369         * lib/uninorm/u8-normcoll.c: New file.
18370         * lib/uninorm/u-normcoll.h: New file.
18371         * modules/uninorm/u8-normcoll: New file.
18373         New module 'uninorm/u32-normxfrm'.
18374         * lib/uninorm/u32-normxfrm.c: New file.
18375         * modules/uninorm/u32-normxfrm: New file.
18377         New module 'uninorm/u16-normxfrm'.
18378         * lib/uninorm/u16-normxfrm.c: New file.
18379         * modules/uninorm/u16-normxfrm: New file.
18381         New module 'uninorm/u8-normxfrm'.
18382         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
18383         declarations.
18384         * lib/uninorm/u8-normxfrm.c: New file.
18385         * lib/uninorm/u-normxfrm.h: New file.
18386         * modules/uninorm/u8-normxfrm: New file.
18388 2009-03-07  Bruno Haible  <bruno@clisp.org>
18390         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
18391         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
18392         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
18394 2009-03-07  Bruno Haible  <bruno@clisp.org>
18396         New module 'memxfrm'.
18397         * lib/memxfrm.h: New file.
18398         * lib/memxfrm.c: New file.
18399         * modules/memxfrm: New file.
18401 2009-03-07  Bruno Haible  <bruno@clisp.org>
18403         New module 'memcmp2'.
18404         * lib/memcmp2.h: New file.
18405         * lib/memcmp2.c: New file.
18406         * modules/memcmp2: New file.
18408 2009-03-07  Bruno Haible  <bruno@clisp.org>
18410         Tests for module 'uninorm/decomposing-form'.
18411         * modules/uninorm/decomposing-form-tests: New file.
18412         * tests/uninorm/test-decomposing-form.c: New file.
18414         New module 'uninorm/decomposing-form'.
18415         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
18416         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
18417         Add 'decomposing_variant' field.
18418         * lib/uninorm/decomposing-form.c: New file.
18419         * lib/uninorm/nfc.c (uninorm_nfc): Update.
18420         * lib/uninorm/nfd.c (uninorm_nfd): Update.
18421         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
18422         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
18423         * modules/uninorm/decomposing-form: New file.
18424         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
18425         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
18427 2009-03-07  Bruno Haible  <bruno@clisp.org>
18429         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
18430         strings.
18432 2009-03-06  Bruno Haible  <bruno@clisp.org>
18434         Tests for module 'uninorm/u32-normcmp'.
18435         * tests/uninorm/test-u32-normcmp.c: New file.
18436         * modules/uninorm/u32-normcmp-tests: New file.
18438         Tests for module 'uninorm/u16-normcmp'.
18439         * tests/uninorm/test-u16-normcmp.c: New file.
18440         * modules/uninorm/u16-normcmp-tests: New file.
18442         Tests for module 'uninorm/u8-normcmp'.
18443         * tests/uninorm/test-u8-normcmp.c: New file.
18444         * modules/uninorm/u8-normcmp-tests: New file.
18446         New module 'uninorm/u32-normcmp'.
18447         * lib/uninorm/u32-normcmp.c: New file.
18448         * modules/uninorm/u32-normcmp: New file.
18450         New module 'uninorm/u16-normcmp'.
18451         * lib/uninorm/u16-normcmp.c: New file.
18452         * modules/uninorm/u16-normcmp: New file.
18454         New module 'uninorm/u8-normcmp'.
18455         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
18456         declarations.
18457         * lib/uninorm/u8-normcmp.c: New file.
18458         * lib/uninorm/u-normcmp.h: New file.
18459         * modules/uninorm/u8-normcmp: New file.
18461 2009-03-06  Bruno Haible  <bruno@clisp.org>
18463         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
18464         Reported by Eric Blake.
18466 2009-03-06  Eric Blake  <ebb9@byu.net>
18467             Bruno Haible  <bruno@clisp.org>
18469         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
18470         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
18471         condition.
18472         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18473         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
18474         condition.
18475         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18477 2009-03-06  Eric Blake  <ebb9@byu.net>
18479         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
18480         to avoid compiler warnings.
18481         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
18483 2009-03-05  Bruno Haible  <bruno@clisp.org>
18485         * tests/test-ftell.c (main): Disable test beyond end of file on
18486         FreeMiNT.
18487         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18489 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
18491         * lib/filevercmp.c: Move hidden files up in ordering.
18492         * tests/test-filevercmp.c: Add tests for hidden files.
18494 2009-03-04  Bruno Haible  <bruno@clisp.org>
18496         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
18497         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
18498         AM_CFLAGS.
18499         Reported by Simon Josefsson.
18501 2009-03-03  Bruno Haible  <bruno@clisp.org>
18503         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
18504         Reported by Simon Josefsson.
18506         * doc/ld-version-script.texi: Update node reference.
18508 2009-03-03  Bruno Haible  <bruno@clisp.org>
18510         * modules/visibility (License): Change to 'unlimited'.
18511         Suggested by Simon Josefsson.
18513 2009-03-03  Jim Meyering  <meyering@redhat.com>
18515         unlinkdir: cannot_unlink_dir may modify process state
18516         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
18517         it's neither thread-safe nor appropriate for use in a library.
18519 2009-03-03  Eric Blake  <ebb9@byu.net>
18521         test-closein: silence test under Darwin
18522         * tests/test-closein.sh: Ignore stderr from cat, since we don't
18523         care if it dies from EPIPE or EBADF.
18525 2009-03-03  Bruno Haible  <bruno@clisp.org>
18527         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
18528         earlier.
18529         * doc/visibility.texi: Fix @node and @section.
18531 2009-03-03  Simon Josefsson  <simon@josefsson.org>
18533         * doc/gnulib.texi: Link to sections for ld version script and
18534         visibility.
18535         * doc/visibility.texi: Add @node and @section.
18536         * modules/ld-version-script: New module.
18537         * m4/ld-version-script.m4: New file.
18538         * doc/ld-version-script.texi: New file.
18540 2009-03-02  David Lutterkort  <lutter@redhat.com>
18542         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
18543         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18545 2009-03-02  Bruno Haible  <bruno@clisp.org>
18547         * doc/visibility.texi: Mention libtool's -export-symbols option.
18549 2009-03-02  Jim Meyering  <meyering@redhat.com>
18551         announce-gen: new option: --no-print-checksums
18552         * build-aux/announce-gen (usage): Describe it.
18553         (print_checksums): Print a newline here, not in the [*] footnote.
18554         (main): Honor it.
18556 2009-03-01  Bruno Haible  <bruno@clisp.org>
18558         Use socklen_t in the native Windows replacements prototypes.
18559         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
18560         instead of 'int'.
18561         * lib/getsockopt.c (rpl_getsockopt): Likewise.
18562         * lib/setsockopt.c (rpl_setsockopt): Likewise.
18563         * modules/getsockopt (Depends-on): Add socklen.
18564         * modules/setsockopt (Depends-on): Add socklen.
18566 2009-03-01  Bruno Haible  <bruno@clisp.org>
18568         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
18569         least 4.2.
18571 2009-03-01  Eric Blake  <ebb9@byu.net>
18572             Bruno Haible  <bruno@clisp.org>
18574         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
18575         error messages.
18576         * lib/wait-process.c (wait_subprocess): Omit error message about
18577         deadly signal sent to the child of termsigp != NULL.
18579 2009-03-01  Eric Blake  <ebb9@byu.net>
18581         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
18583 2009-03-01  Bruno Haible  <bruno@clisp.org>
18585         Avoid a gcc warning.
18586         * tests/test-sched.c (b): Make global.
18587         Reported by Eric Blake.
18589 2009-01-19  Martin Lambers  <marlam@marlam.de>
18591         Provide POSIX semantics for socket timeout options on W32.
18592         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
18593         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
18594         * modules/setsockopt: Depend on sys_time module for struct timeval.
18595         * modules/getsockopt: Depend on sys_time module for struct timeval.
18597 2009-03-01  Simon Josefsson  <simon@josefsson.org>
18599         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
18600         __USE_GNU, for consistency with netdb.in.h.
18601         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18603 2009-03-01  Bruno Haible  <bruno@clisp.org>
18605         More support for FreeMiNT.
18606         * lib/fseeko.c (rpl_fseeko): Complete last commit.
18607         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18609 2009-03-01  Bruno Haible  <bruno@clisp.org>
18611         More support for FreeMiNT.
18612         * lib/fpurge.c (fpurge): Correct last commit.
18613         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18615 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18617         Fix unportable awk script in vc-list-files.
18618         * build-aux/vc-list-files: In the replacement awk script, use
18619         substr with a second argument of 1, not zero.
18620         Report by Simon Josefsson.
18622 2009-02-28  Bruno Haible  <bruno@clisp.org>
18624         More support for FreeMiNT.
18625         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
18626         to FreeMiNT today.
18627         * lib/fwriting.c (fwriting): Likewise.
18628         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
18630 2009-02-28  Bruno Haible  <bruno@clisp.org>
18632         * tests/test-freadseek.c (main): Disable test beyond end of file on
18633         FreeMiNT.
18634         * tests/test-ftello.c (main): Likewise.
18635         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18637 2009-02-28  Bruno Haible  <bruno@clisp.org>
18639         Add tentative support for FreeMiNT.
18640         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
18641         * lib/fpurge.c (fpurge): Likewise.
18642         * lib/freadable.c (freadable): Likewise.
18643         * lib/freading.c (freading): Likewise.
18644         * lib/freadptr.c (freadptr): Likewise.
18645         * lib/freadseek.c (freadptrinc): Likewise.
18646         * lib/fseeko.c (rpl_fseeko): Likewise.
18647         * lib/fseterr.c (fseterr): Likewise.
18648         * lib/fwritable.c (fwritable): Likewise.
18649         * lib/fwriting.c (fwriting): Likewise.
18650         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
18651         Hourihane.
18652         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18654 2009-02-28  Bruno Haible  <bruno@clisp.org>
18656         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
18657         SIGCHLD.
18658         Reported by Jim Meyering.
18660 2009-02-28  Bruno Haible  <bruno@clisp.org>
18662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
18663         Mention the results of these tests on various platforms.
18664         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
18665         order.
18666         * doc/posix-functions/printf.texi: Likewise.
18667         * doc/posix-functions/snprintf.texi: Likewise.
18668         * doc/posix-functions/sprintf.texi: Likewise.
18669         * doc/posix-functions/vfprintf.texi: Likewise.
18670         * doc/posix-functions/vprintf.texi: Likewise.
18671         * doc/posix-functions/vsnprintf.texi: Likewise.
18672         * doc/posix-functions/vsprintf.texi: Likewise.
18673         * doc/glibc-functions/obstack_printf.texi: Likewise.
18674         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18676 2009-02-28  Bruno Haible  <bruno@clisp.org>
18678         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
18679         Reported by Loïc Minier <lool@dooz.org>.
18681 2009-02-27  Bruno Haible  <bruno@clisp.org>
18683         * gnulib-tool (func_import): Make the sed expression used to create the
18684         sed script for updating the .gitignore file POSIX compliant.
18685         Reported by Eric Blake.
18687 2009-02-27  Bruno Haible  <bruno@clisp.org>
18689         * gnulib-tool (sed): Don't alias as "sed --posix".
18690         Reported by Eric Blake.
18692 2009-02-27  Bruno Haible  <bruno@clisp.org>
18694         Avoid test link errors.
18695         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
18696         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
18697         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
18698         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
18699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18701 2009-02-27  Bruno Haible  <bruno@clisp.org>
18703         Avoid spurious "(cached)" in configure output.
18704         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
18705         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
18706         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18707         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18708         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18709         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18710         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18711         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18712         Reported by Eric Blake.
18714 2009-02-27  Eric Blake  <ebb9@byu.net>
18716         printf: fix regression in previous patch
18717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
18719 2009-02-27  Bruno Haible  <bruno@clisp.org>
18721         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
18722         value.
18723         * lib/stdint.in.h: Likewise.
18724         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
18726 2009-02-27  Eric Blake  <ebb9@byu.net>
18728         doc: mention more functions added in cygwin 1.7.0
18729         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
18730         addition.
18731         * doc/posix-functions/open_wmemstream.texi: Likewise.
18732         * doc/posix-functions/wcsnlen.texi: Likewise.
18733         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18734         * doc/posix-functions/wcstod.texi: Likewise.
18735         * doc/posix-functions/wcstof.texi: Likewise.
18736         * doc/posix-functions/wcstoimax.texi: Likewise.
18737         * doc/posix-functions/wcstok.texi: Likewise.
18738         * doc/posix-functions/wcstoumax.texi: Likewise.
18740         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
18741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
18742         * doc/posix-functions/fprintf.texi: Update.
18743         * doc/posix-functions/printf.texi: Update.
18744         * doc/posix-functions/snprintf.texi: Update.
18745         * doc/posix-functions/sprintf.texi: Update.
18746         * doc/posix-functions/vfprintf.texi: Update.
18747         * doc/posix-functions/vprintf.texi: Update.
18748         * doc/posix-functions/vsnprintf.texi: Update.
18749         * doc/posix-functions/vsprintf.texi: Update.
18750         * doc/glibc-functions/obstack_printf.texi: Update.
18751         * doc/glibc-functions/obstack_vprintf.texi: Update.
18753 2009-02-26  Eric Blake  <ebb9@byu.net>
18755         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
18756         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
18757         compilation bug by using runtime conversion.
18758         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18759         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
18760         * modules/ceill-tests (Files): Use nan.h.
18761         * modules/floorl-tests (Files): Likewise.
18762         * modules/frexpl-tests (Files): Likewise.
18763         * modules/isnanl-tests (Files): Likewise.
18764         * modules/ldexpl-tests (Files): Likewise.
18765         * modules/roundl-tests (Files): Likewise.
18766         * modules/truncl-tests (Files): Likewise.
18767         * tests/test-ceill.c (main): Use a working NaN.
18768         * tests/test-floorl.c (main): Likewise.
18769         * tests/test-frexpl.c (main): Likewise.
18770         * tests/test-isnan.c (test_long_double): Likewise.
18771         * tests/test-isnanl.h (main): Likewise.
18772         * tests/test-ldexpl.h (main): Likewise.
18773         * tests/test-roundl.h (main): Likewise.
18774         * tests/test-truncl.h (main): Likewise.
18775         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
18777 2009-02-26  Eric Blake  <ebb9@byu.net>
18778             Bruno Haible  <bruno@clisp.org>
18780         Work around a *printf bug with %ls on Solaris.
18781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
18782         precision is specified, sprintf stops converting the wide string
18783         argument when the number of bytes that have been produced by this
18784         conversion equals or exceeds the precision.
18785         * doc/posix-functions/fprintf.texi: Update.
18786         * doc/posix-functions/printf.texi: Update.
18787         * doc/posix-functions/snprintf.texi: Update.
18788         * doc/posix-functions/sprintf.texi: Update.
18789         * doc/posix-functions/vfprintf.texi: Update.
18790         * doc/posix-functions/vprintf.texi: Update.
18791         * doc/posix-functions/vsnprintf.texi: Update.
18792         * doc/posix-functions/vsprintf.texi: Update.
18793         * doc/glibc-functions/obstack_printf.texi: Update.
18794         * doc/glibc-functions/obstack_vprintf.texi: Update.
18796 2009-02-26  Eric Blake  <ebb9@byu.net>
18798         stdlib: favor compiler check of random.h
18799         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
18800         to avoid an ObjC random.h installed by Swarm.
18802 2009-02-26  Bruno Haible  <bruno@clisp.org>
18804         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
18805         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
18806         Reported by Gary V. Vaughan <gary@gnu.org>.
18808 2009-02-26  Bruno Haible  <bruno@clisp.org>
18810         Fix *printf behaviour regarding the %ls directive.
18811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
18812         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
18813         NEED_PRINTF_DIRECTIVE_LS.
18814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
18815         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18817         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
18818         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
18819         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
18820         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
18821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18825         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
18826         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18829         * doc/posix-functions/fprintf.texi: Update.
18830         * doc/posix-functions/printf.texi: Update.
18831         * doc/posix-functions/snprintf.texi: Update.
18832         * doc/posix-functions/sprintf.texi: Update.
18833         * doc/posix-functions/vfprintf.texi: Update.
18834         * doc/posix-functions/vprintf.texi: Update.
18835         * doc/posix-functions/vsnprintf.texi: Update.
18836         * doc/posix-functions/vsprintf.texi: Update.
18837         * doc/glibc-functions/obstack_printf.texi: Update.
18838         * doc/glibc-functions/obstack_vprintf.texi: Update.
18839         Reported by Eric Blake.
18841 2009-02-25  Bruno Haible  <bruno@clisp.org>
18843         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
18844         with known value.
18845         Reported by Gary V. Vaughan <gary@gnu.org>.
18847 2009-02-25  Bruno Haible  <bruno@clisp.org>
18849         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
18850         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
18851         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
18852         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
18853         Reported by Gary V. Vaughan <gary@gnu.org>.
18855 2009-02-25  Bruno Haible  <bruno@clisp.org>
18857         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
18858         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
18859         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
18860         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
18861         Reported by Gary V. Vaughan <gary@gnu.org>.
18863 2009-02-25  Eric Blake  <ebb9@byu.net>
18865         tests: skip fseek/ftell tests if ungetc is broken
18866         * m4/ungetc.m4: New file.
18867         * modules/fseek-tests: Split test, so ungetc dependency is
18868         separate from rest of test.
18869         * modules/fseeko-tests: Likewise.
18870         * modules/ftell-tests: Likewise.
18871         * modules/ftello-tests: Likewise.
18872         * tests/test-fseek.c (main): Isolate ungetc dependency.
18873         * tests/test-fseeko.c (main): Likewise.
18874         * tests/test-ftell.c (main): Likewise.
18875         * tests/test-ftello.c (main): Likewise.
18876         * tests/test-fseek2.sh: New file.
18877         * tests/test-fseeko2.sh: Likewise.
18878         * tests/test-ftell2.sh: Likewise.
18879         * tests/test-ftello2.sh: Likewise.
18881 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
18883         test-getaddrinfo: fix usage of skip return code 77
18884         * tests/test-gettaddrinfo.c: Return skip code 77 only
18885         for first occurance of skip (4x77 is not 77)
18887 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
18889         strtod: avoid C99 decl-after-statement
18890         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
18892 2009-02-24  Eric Blake  <ebb9@byu.net>
18894         strtod: detect HP-UX 11.31 bug
18895         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
18896         Reported by Gary V. Vaughan.
18898 2009-02-23  Bruno Haible  <bruno@clisp.org>
18900         Fix invalid read past end of memory block.
18901         * lib/vasnprintf.c (DCHAR_SET): Define.
18902         (local_wcslen): Define only when needed.
18903         (local_strnlen, local_wcsnlen): New functions.
18904         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
18905         directives that involve a conversion ourselves.
18906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
18907         wcsnlen, mbrtowc, wcrtomb.
18908         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
18909         * tests/test-vasprintf-posix.c (test_function): Likewise.
18910         * tests/test-snprintf-posix.h (test_function): Likewise.
18911         * tests/test-sprintf-posix.h (test_function): Likewise.
18912         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18914 2009-02-22  Bruno Haible  <bruno@clisp.org>
18916         Implement new clarified decomposition of Hangul syllables.
18917         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
18918         of type LTV, return only a pairwise decomposition.
18919         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
18920         Likewise.
18921         * tests/uninorm/test-decomposition.c (main): Updated expected result.
18922         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
18923         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
18925 2009-02-22  Bruno Haible  <bruno@clisp.org>
18927         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
18928         zero-length results and shrink excess allocated memory.
18929         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
18930         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
18931         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
18932         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
18933         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
18934         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
18935         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
18936         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
18937         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
18938         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
18939         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
18940         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
18942 2009-02-21  Bruno Haible  <bruno@clisp.org>
18944         * doc/gnulib.texi: Include safe-alloc.texi earlier.
18945         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
18946         spaces after a period. Put a space between a macro name and its
18947         argument list. Trivial rewordings.
18948         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
18949         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
18950         (main): Return 0 explicitly.
18952 2009-02-21  Bruno Haible  <bruno@clisp.org>
18954         Tests for module 'uninorm/filter'.
18955         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
18956         * modules/uninorm/filter-tests: New file.
18958         New module 'uninorm/filter'.
18959         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
18960         uninorm_filter_flush, uninorm_filter_free): New declarations.
18961         * lib/uninorm/uninorm-filter.c: New file.
18962         * modules/uninorm/filter: New file.
18964 2009-02-21  Bruno Haible  <bruno@clisp.org>
18966         Tests for module 'uninorm/nfkc'.
18967         * tests/uninorm/test-nfkc.c: New file.
18968         * tests/uninorm/test-u8-nfkc.c: New file.
18969         * tests/uninorm/test-u16-nfkc.c: New file.
18970         * tests/uninorm/test-u32-nfkc.c: New file.
18971         * tests/uninorm/test-u32-nfkc-big.sh: New file.
18972         * tests/uninorm/test-u32-nfkc-big.c: New file.
18973         * modules/uninorm/nfkc-tests: New file.
18975         New module 'uninorm/nfkc'.
18976         * lib/uninorm/nfkc.c: New file.
18977         * modules/uninorm/nfkc: New file.
18979         Tests for module 'uninorm/nfkd'.
18980         * tests/uninorm/test-nfkd.c: New file.
18981         * tests/uninorm/test-u8-nfkd.c: New file.
18982         * tests/uninorm/test-u16-nfkd.c: New file.
18983         * tests/uninorm/test-u32-nfkd.c: New file.
18984         * tests/uninorm/test-u32-nfkd-big.sh: New file.
18985         * tests/uninorm/test-u32-nfkd-big.c: New file.
18986         * modules/uninorm/nfkd-tests: New file.
18988         New module 'uninorm/nfkd'.
18989         * lib/uninorm/nfkd.c: New file.
18990         * modules/uninorm/nfkd: New file.
18992         Tests for module 'uninorm/nfc'.
18993         * tests/uninorm/test-nfc.c: New file.
18994         * tests/uninorm/test-u8-nfc.c: New file.
18995         * tests/uninorm/test-u16-nfc.c: New file.
18996         * tests/uninorm/test-u32-nfc.c: New file.
18997         * tests/uninorm/test-u32-nfc-big.sh: New file.
18998         * tests/uninorm/test-u32-nfc-big.c: New file.
18999         * modules/uninorm/nfc-tests: New file.
19001         New module 'uninorm/nfc'.
19002         * lib/uninorm/nfc.c: New file.
19003         * modules/uninorm/nfc: New file.
19005         Tests for module 'uninorm/nfd'.
19006         * tests/uninorm/test-nfd.c: New file.
19007         * tests/uninorm/test-u8-nfd.c: New file.
19008         * tests/uninorm/test-u16-nfd.c: New file.
19009         * tests/uninorm/test-u32-nfd.c: New file.
19010         * tests/uninorm/test-u32-nfd-big.sh: New file.
19011         * tests/uninorm/test-u32-nfd-big.c: New file.
19012         * tests/uninorm/test-u32-normalize-big.h: New file.
19013         * tests/uninorm/test-u32-normalize-big.c: New file.
19014         * tests/uninorm/NormalizationTest.txt: New file, created from
19015         Unicode 5.1.0 NormalizationTest.txt.
19016         * modules/uninorm/nfd-tests: New file.
19018         New module 'uninorm/nfd'.
19019         * lib/uninorm/nfd.c: New file.
19020         * modules/uninorm/nfd: New file.
19022         New module 'uninorm/u32-normalize'.
19023         * lib/uninorm/u32-normalize.c: New file.
19024         * modules/uninorm/u32-normalize: New file.
19026         New module 'uninorm/u16-normalize'.
19027         * lib/uninorm/u16-normalize.c: New file.
19028         * modules/uninorm/u16-normalize: New file.
19030         New module 'uninorm/u8-normalize'.
19031         * lib/uninorm/u8-normalize.c: New file.
19032         * lib/uninorm/normalize-internal.h: New file.
19033         * lib/uninorm/u-normalize-internal.h: New file.
19034         * modules/uninorm/u8-normalize: New file.
19036         New module 'uninorm/decompose-internal'.
19037         * lib/uninorm/decompose-internal.c: New file.
19038         * modules/uninorm/decompose-internal: New file.
19040         Tests for module 'uninorm/composition'.
19041         * tests/uninorm/test-composition.c: New file.
19042         * modules/uninorm/composition-tests: New file.
19044         New module 'uninorm/composition'.
19045         * lib/uninorm/composition.c: New file.
19046         * lib/uninorm/composition-table.gperf: New file, generated by
19047         gen-uni-tables.
19048         * modules/uninorm/composition: New file.
19050         Tests for module 'uninorm/compat-decomposition'.
19051         * tests/uninorm/test-compat-decomposition.c: New file.
19052         * modules/uninorm/compat-decomposition-tests: New file.
19054         New module 'uninorm/compat-decomposition'.
19055         * lib/uninorm/decompose-internal.h: New file.
19056         * lib/uninorm/compat-decomposition.c: New file.
19057         * modules/uninorm/compat-decomposition: New file.
19059         Tests for module 'uninorm/canonical-decomposition'.
19060         * tests/uninorm/test-canonical-decomposition.c: New file.
19061         * modules/uninorm/canonical-decomposition-tests: New file.
19063         New module 'uninorm/canonical-decomposition'.
19064         * lib/uninorm/canonical-decomposition.c: New file.
19065         * modules/uninorm/canonical-decomposition: New file.
19067         Tests for module 'uninorm/decomposition'.
19068         * tests/uninorm/test-decomposition.c: New file.
19069         * modules/uninorm/decomposition-tests: New file.
19071         New module 'uninorm/decomposition'.
19072         * lib/uninorm/decomposition.c: New file.
19073         * modules/uninorm/decomposition: New file.
19075         New module 'uninorm/decomposition-table'.
19076         * lib/uninorm/decomposition-table.h: New file.
19077         * lib/uninorm/decomposition-table.c: New file.
19078         * lib/uninorm/decomposition-table1.h: New file, generated by
19079         gen-uni-tables.
19080         * lib/uninorm/decomposition-table2.h: New file, generated by
19081         gen-uni-tables.
19082         * modules/uninorm/decomposition-table: New file.
19084         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19085         (UC_DECOMP_*): New enumeration items.
19086         (get_decomposition): New function.
19087         (struct decomp_table): New type.
19088         (output_decomposition, output_decomposition_tables): New functions.
19089         (unicode_composition_exclusions): New variable.
19090         (fill_composition_exclusions, debug_output_composition_tables): New
19091         functions.
19092         (main): Accept one more argument. Invoke fill_composition_exclusions.
19093         Output decomposition and composition tables.
19095         New module 'uninorm/base'.
19096         * lib/uninorm.h: New file.
19097         * lib/unictype.h: Update comment.
19098         * modules/uninorm/base: New file.
19100 2009-02-21  David Lutterkort  <lutter@redhat.com>
19102         Tests for module 'safe-alloc'.
19103         * tests/test-safe-alloc.c: New file.
19104         * modules/safe-alloc-tests: New file.
19106         New module 'safe-alloc'.
19107         * lib/safe-alloc.h: New file.
19108         * lib/safe-alloc.c: New file.
19109         * m4/safe-alloc.m4: New file.
19110         * modules/safe-alloc: New file.
19111         * doc/safe-alloc.texi: New file.
19112         * doc/gnulib.texi: Include it.
19113         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19114         safe-alloc.
19116 2009-02-18  Bruno Haible  <bruno@clisp.org>
19118         Fix link error on non-glibc systems.
19119         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19120         variable.
19121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19123 2009-02-18  Jim Meyering  <meyering@redhat.com>
19125         fts: avoid used-uninitialized error due to recent change
19126         * lib/fts.c (fts_read): Guard uses of the new member,
19127         parent->fts_n_dirs_remaining, since it's not relevant for
19128         the parent of a directory specified on the command-line.
19130 2009-02-17  James Youngman  <jay@gnu.org>
19131             Bruno Haible  <bruno@clisp.org>
19133         * m4/include_next.m4: Reformulate comment.
19135 2009-02-16  Jim Meyering  <meyering@redhat.com>
19137         fts: add #if guards so that the fts_lgpl module still builds
19138         * lib/fts.c: Guard just-added hash-table-using parts with
19139         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19140         Reported by Simon Josefsson.
19142 2009-02-15  Bruno Haible  <bruno@clisp.org>
19144         * modules/array-mergesort-tests: New file.
19145         * tests/test-array-mergesort.c: New file.
19147         New module 'array-mergesort'.
19148         * modules/array-mergesort: New file.
19149         * lib/array-mergesort.h: New file.
19151 2009-02-15  Bruno Haible  <bruno@clisp.org>
19153         Fix 2009-02-07 commit.
19154         * lib/gen-uni-tables.c (output_predicate, output_category,
19155         output_combclass, output_bidi_category, output_decimal_digit,
19156         output_digit, output_numeric, output_mirror, output_scripts,
19157         output_ident_category, output_simple_mapping): Fix format directives.
19158         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19160 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19162         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19163         fixes are available from IBM.
19165 2009-02-13  Jim Meyering  <meyering@redhat.com>
19167         fts: arrange not to stat non-directories in more cases
19168         This makes GNU find (when it doesn't need to stat each file)
19169         *much* more efficient at traversing reiserfs file systems.
19170         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19171         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19172         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19173         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19174         (leaf_optimization_applies): New function.
19175         (LCO_hash, LCO_compare): New helper functions.
19176         (link_count_optimize_ok): New function.
19177         (fts_stat): Initialize new member (if dir).
19178         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19179         we've just stat'ed a directory.  Skip the stat call when possible.
19180         ---
19181         Note this AFS-related exchange:
19182         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19183         and note find's pioctl call in find/fstype.c.
19184         But that is necessary only if you want to enable the
19185         optimization for AFS, and for now, I don't.
19187         fts: move a function definition "up" (no semantic change)
19188         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19189         "up" to precede upcoming use of a related function.
19191 2009-02-11  Jim Meyering  <meyering@redhat.com>
19193         fts: correct internal computation of nlinks (optimization-related)
19194         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19195         whether the current entry is a directory, so don't test it.
19197 2009-02-10  Bruno Haible  <bruno@clisp.org>
19199         Tests for module 'uniwbrk/ulc-wordbreaks'.
19200         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19201         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19202         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19204         Tests for module 'uniwbrk/u32-wordbreaks'.
19205         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19206         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19208         Tests for module 'uniwbrk/u16-wordbreaks'.
19209         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19210         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19212         Tests for module 'uniwbrk/u8-wordbreaks'.
19213         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19214         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19216 2009-02-10  Bruno Haible  <bruno@clisp.org>
19218         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19219         property.
19220         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19221         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19222         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19224 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19226         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19227         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19229 2009-02-10  Bruno Haible  <bruno@clisp.org>
19231         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19232         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19233         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19234         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19235         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19236         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19238 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19240         * lib/sockets.h (gl_fd_to_handle): New function.
19242         * tests/test-sockets.c: Call gl_fd_to_handle.
19244 2009-02-09  Bruno Haible  <bruno@clisp.org>
19246         * doc/havelib.texi: Document the conventions on bi-arch systems.
19248 2009-02-08  Bruno Haible  <bruno@clisp.org>
19250         Document the AC_LIB_LINKFLAGS macro.
19251         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19252         * doc/gnulib.texi: Include it.
19254 2009-02-08  Bruno Haible  <bruno@clisp.org>
19256         Fix wrong order of sections, compared to TOC.
19257         * doc/gnulib.texi: Include relocatable-maint.texi after the
19258         "Regular expressions" node, not before.
19260 2009-02-08  Bruno Haible  <bruno@clisp.org>
19262         Tests for module 'unicase/totitle'.
19263         * modules/unicase/totitle-tests: New file.
19265         Tests for module 'unicase/tolower'.
19266         * modules/unicase/tolower-tests: New file.
19268         Tests for module 'unicase/toupper'.
19269         * modules/unicase/toupper-tests: New file.
19270         * tests/unicase/test-mapping-part1.h: New file.
19271         * tests/unicase/test-mapping-part2.h: New file.
19273         New module 'unicase/totitle'.
19274         * modules/unicase/totitle: New file.
19275         * lib/unicase/totitle.c: New file.
19277         New module 'unicase/tolower'.
19278         * modules/unicase/tolower: New file.
19279         * lib/unicase/tolower.c: New file.
19281         New module 'unicase/toupper'.
19282         * modules/unicase/toupper: New file.
19283         * lib/unicase/toupper.c: New file.
19284         * lib/unicase/simple-mapping.h: New file.
19286         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19287         (mapping_table): New structure.
19288         (output_simple_mapping): New function.
19289         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19290         * modules/gen-uni-tables (Description): Update.
19291         * lib/unicase/toupper.h: New file, automatically generated by
19292         gen-uni-tables.
19293         * lib/unicase/tolower.h: New file, automatically generated by
19294         gen-uni-tables.
19295         * lib/unicase/totitle.h: New file, automatically generated by
19296         gen-uni-tables.
19297         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19298         gen-uni-tables.
19299         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19300         gen-uni-tables.
19301         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19302         gen-uni-tables.
19304         New module 'unicase/base'.
19305         * modules/unicase/base: New file.
19306         * lib/unicase.h: New file.
19308 2009-02-08  Bruno Haible  <bruno@clisp.org>
19310         New module 'uniwbrk/ulc-wordbreaks'.
19311         * modules/uniwbrk/ulc-wordbreaks: New file.
19312         * lib/uniwbrk/ulc-wordbreaks.c: New file.
19314         New module 'uniwbrk/u32-wordbreaks'.
19315         * modules/uniwbrk/u32-wordbreaks: New file.
19316         * lib/uniwbrk/u32-wordbreaks.c: New file.
19318         New module 'uniwbrk/u16-wordbreaks'.
19319         * modules/uniwbrk/u16-wordbreaks: New file.
19320         * lib/uniwbrk/u16-wordbreaks.c: New file.
19322         New module 'uniwbrk/u8-wordbreaks'.
19323         * modules/uniwbrk/u8-wordbreaks: New file.
19324         * lib/uniwbrk/u8-wordbreaks.c: New file.
19325         * lib/uniwbrk/u-wordbreaks.h: New file.
19327         New module 'uniwbrk/table'.
19328         * modules/uniwbrk/table: New file.
19329         * lib/uniwbrk/wbrktable.h: New file.
19330         * lib/uniwbrk/wbrktable.c: New file.
19332         New module 'uniwbrk/wordbreak-property'.
19333         * modules/uniwbrk/wordbreak-property: New file.
19334         * lib/uniwbrk/wordbreak-property.c: New file.
19336         * lib/gen-uni-tables.c (WBP_*): New enum items.
19337         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
19338         (unicode_org_wbp): New variable.
19339         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
19340         New functions.
19341         (wbp_table): New structure.
19342         (output_wbp, output_wbrk_tables): New functions.
19343         (main): Accept additional argument. Invoke fill_org_wbp,
19344         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
19345         output_wbrk_tables.
19346         * modules/gen-uni-tables (Description): Update.
19347         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
19348         gen-uni-tables.
19350         New module 'uniwbrk/base'.
19351         * modules/uniwbrk/base: New file.
19352         * lib/uniwbrk.h: New file.
19354 2009-02-08  Bruno Haible  <bruno@clisp.org>
19356         Update to Unicode 5.1.0.
19357         * lib/gen-uni-tables.c (is_property_alphabetic): Include
19358         U+2185..U+2188.
19359         (is_property_default_ignorable_code_point): Don't include characters
19360         of category Cc or Cs and not-a-characters.
19361         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
19362         U+0D79, U+109E, U+109F, U+A60C.
19363         * lib/unictype/bidi_of.h: Regenerated.
19364         * lib/unictype/blocks.h: Regenerated.
19365         * lib/unictype/categ_C.h: Regenerated.
19366         * lib/unictype/categ_Cf.h: Regenerated.
19367         * lib/unictype/categ_Cn.h: Regenerated.
19368         * lib/unictype/categ_L.h: Regenerated.
19369         * lib/unictype/categ_Ll.h: Regenerated.
19370         * lib/unictype/categ_Lm.h: Regenerated.
19371         * lib/unictype/categ_Lo.h: Regenerated.
19372         * lib/unictype/categ_Lu.h: Regenerated.
19373         * lib/unictype/categ_M.h: Regenerated.
19374         * lib/unictype/categ_Mc.h: Regenerated.
19375         * lib/unictype/categ_Me.h: Regenerated.
19376         * lib/unictype/categ_Mn.h: Regenerated.
19377         * lib/unictype/categ_N.h: Regenerated.
19378         * lib/unictype/categ_Nd.h: Regenerated.
19379         * lib/unictype/categ_Nl.h: Regenerated.
19380         * lib/unictype/categ_No.h: Regenerated.
19381         * lib/unictype/categ_P.h: Regenerated.
19382         * lib/unictype/categ_Pd.h: Regenerated.
19383         * lib/unictype/categ_Pe.h: Regenerated.
19384         * lib/unictype/categ_Pf.h: Regenerated.
19385         * lib/unictype/categ_Pi.h: Regenerated.
19386         * lib/unictype/categ_Po.h: Regenerated.
19387         * lib/unictype/categ_Ps.h: Regenerated.
19388         * lib/unictype/categ_S.h: Regenerated.
19389         * lib/unictype/categ_Sk.h: Regenerated.
19390         * lib/unictype/categ_Sm.h: Regenerated.
19391         * lib/unictype/categ_So.h: Regenerated.
19392         * lib/unictype/categ_of.h: Regenerated.
19393         * lib/unictype/combining.h: Regenerated.
19394         * lib/unictype/ctype_alnum.h: Regenerated.
19395         * lib/unictype/ctype_alpha.h: Regenerated.
19396         * lib/unictype/ctype_graph.h: Regenerated.
19397         * lib/unictype/ctype_lower.h: Regenerated.
19398         * lib/unictype/ctype_print.h: Regenerated.
19399         * lib/unictype/ctype_punct.h: Regenerated.
19400         * lib/unictype/ctype_upper.h: Regenerated.
19401         * lib/unictype/decdigit.h: Regenerated.
19402         * lib/unictype/digit.h: Regenerated.
19403         * lib/unictype/mirror.h: Regenerated.
19404         * lib/unictype/numeric.h: Regenerated.
19405         * lib/unictype/pr_alphabetic.h: Regenerated.
19406         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
19407         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
19408         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
19409         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
19410         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
19411         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
19412         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
19413         * lib/unictype/pr_combining.h: Regenerated.
19414         * lib/unictype/pr_dash.h: Regenerated.
19415         * lib/unictype/pr_decimal_digit.h: Regenerated.
19416         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
19417         * lib/unictype/pr_deprecated.h: Regenerated.
19418         * lib/unictype/pr_diacritic.h: Regenerated.
19419         * lib/unictype/pr_extender.h: Regenerated.
19420         * lib/unictype/pr_format_control.h: Regenerated.
19421         * lib/unictype/pr_grapheme_base.h: Regenerated.
19422         * lib/unictype/pr_grapheme_extend.h: Regenerated.
19423         * lib/unictype/pr_grapheme_link.h: Regenerated.
19424         * lib/unictype/pr_id_continue.h: Regenerated.
19425         * lib/unictype/pr_id_start.h: Regenerated.
19426         * lib/unictype/pr_ideographic.h: Regenerated.
19427         * lib/unictype/pr_ignorable_control.h: Regenerated.
19428         * lib/unictype/pr_lowercase.h: Regenerated.
19429         * lib/unictype/pr_math.h: Regenerated.
19430         * lib/unictype/pr_numeric.h: Regenerated.
19431         * lib/unictype/pr_other_alphabetic.h: Regenerated.
19432         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
19433         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
19434         * lib/unictype/pr_other_id_continue.h: Regenerated.
19435         * lib/unictype/pr_other_lowercase.h: Regenerated.
19436         * lib/unictype/pr_other_math.h: Regenerated.
19437         * lib/unictype/pr_punctuation.h: Regenerated.
19438         * lib/unictype/pr_sentence_terminal.h: Regenerated.
19439         * lib/unictype/pr_soft_dotted.h: Regenerated.
19440         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
19441         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
19442         * lib/unictype/pr_unified_ideograph.h: Regenerated.
19443         * lib/unictype/pr_uppercase.h: Regenerated.
19444         * lib/unictype/pr_xid_continue.h: Regenerated.
19445         * lib/unictype/pr_xid_start.h: Regenerated.
19446         * lib/unictype/pr_zero_width.h: Regenerated.
19447         * lib/unictype/scripts.h: Regenerated.
19448         * lib/unictype/scripts_byname.gperf: Regenerated.
19449         * lib/unictype/sy_java_ident.h: Regenerated.
19450         * lib/unilbrk/lbrkprop1.h: Regenerated.
19451         * lib/unilbrk/lbrkprop2.h: Regenerated.
19452         * tests/unictype/test-categ_C.c: Regenerated.
19453         * tests/unictype/test-categ_Cf.c: Regenerated.
19454         * tests/unictype/test-categ_Cn.c: Regenerated.
19455         * tests/unictype/test-categ_L.c: Regenerated.
19456         * tests/unictype/test-categ_Ll.c: Regenerated.
19457         * tests/unictype/test-categ_Lm.c: Regenerated.
19458         * tests/unictype/test-categ_Lo.c: Regenerated.
19459         * tests/unictype/test-categ_Lu.c: Regenerated.
19460         * tests/unictype/test-categ_M.c: Regenerated.
19461         * tests/unictype/test-categ_Mc.c: Regenerated.
19462         * tests/unictype/test-categ_Me.c: Regenerated.
19463         * tests/unictype/test-categ_Mn.c: Regenerated.
19464         * tests/unictype/test-categ_N.c: Regenerated.
19465         * tests/unictype/test-categ_Nd.c: Regenerated.
19466         * tests/unictype/test-categ_Nl.c: Regenerated.
19467         * tests/unictype/test-categ_No.c: Regenerated.
19468         * tests/unictype/test-categ_P.c: Regenerated.
19469         * tests/unictype/test-categ_Pd.c: Regenerated.
19470         * tests/unictype/test-categ_Pe.c: Regenerated.
19471         * tests/unictype/test-categ_Pf.c: Regenerated.
19472         * tests/unictype/test-categ_Pi.c: Regenerated.
19473         * tests/unictype/test-categ_Po.c: Regenerated.
19474         * tests/unictype/test-categ_Ps.c: Regenerated.
19475         * tests/unictype/test-categ_S.c: Regenerated.
19476         * tests/unictype/test-categ_Sk.c: Regenerated.
19477         * tests/unictype/test-categ_Sm.c: Regenerated.
19478         * tests/unictype/test-categ_So.c: Regenerated.
19479         * tests/unictype/test-ctype_alnum.c: Regenerated.
19480         * tests/unictype/test-ctype_alpha.c: Regenerated.
19481         * tests/unictype/test-ctype_graph.c: Regenerated.
19482         * tests/unictype/test-ctype_lower.c: Regenerated.
19483         * tests/unictype/test-ctype_print.c: Regenerated.
19484         * tests/unictype/test-ctype_punct.c: Regenerated.
19485         * tests/unictype/test-ctype_upper.c: Regenerated.
19486         * tests/unictype/test-decdigit.h: Regenerated.
19487         * tests/unictype/test-digit.h: Regenerated.
19488         * tests/unictype/test-numeric.h: Regenerated.
19489         * tests/unictype/test-pr_alphabetic.c: Regenerated.
19490         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
19491         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
19492         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
19493         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
19494         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
19495         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
19496         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
19497         * tests/unictype/test-pr_combining.c: Regenerated.
19498         * tests/unictype/test-pr_dash.c: Regenerated.
19499         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
19500         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
19501         * tests/unictype/test-pr_deprecated.c: Regenerated.
19502         * tests/unictype/test-pr_diacritic.c: Regenerated.
19503         * tests/unictype/test-pr_extender.c: Regenerated.
19504         * tests/unictype/test-pr_format_control.c: Regenerated.
19505         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
19506         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
19507         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
19508         * tests/unictype/test-pr_id_continue.c: Regenerated.
19509         * tests/unictype/test-pr_id_start.c: Regenerated.
19510         * tests/unictype/test-pr_ideographic.c: Regenerated.
19511         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
19512         * tests/unictype/test-pr_lowercase.c: Regenerated.
19513         * tests/unictype/test-pr_math.c: Regenerated.
19514         * tests/unictype/test-pr_numeric.c: Regenerated.
19515         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
19516         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
19517         Regenerated.
19518         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
19519         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
19520         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
19521         * tests/unictype/test-pr_other_math.c: Regenerated.
19522         * tests/unictype/test-pr_punctuation.c: Regenerated.
19523         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
19524         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
19525         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
19526         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
19527         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
19528         * tests/unictype/test-pr_uppercase.c: Regenerated.
19529         * tests/unictype/test-pr_xid_continue.c: Regenerated.
19530         * tests/unictype/test-pr_xid_start.c: Regenerated.
19531         * tests/unictype/test-pr_zero_width.c: Regenerated.
19533         Update to Unicode 5.1.0.
19534         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
19535         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
19536         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
19537         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
19538         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
19539         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
19540         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
19541         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
19542         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
19543         (nonspacing_table_ind): Update.
19544         * tests/uniwidth/test-uc_width2.sh: Update expected result.
19546         Update to Unicode 5.1.0.
19547         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
19548         code transform.
19549         * lib/uniname/uniname.c (unicode_character_name,
19550         unicode_name_character): Add the range 0x1Fxxx to the code transform.
19551         * lib/uniname/uninames.h: Regenerated.
19552         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
19554 2009-02-07  Bruno Haible  <bruno@clisp.org>
19556         Merge gen-ctype and gen-lbrk into a single program.
19557         * lib/gen-uni-tables.c: New file, incorporating
19558         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
19559         Add directory prefixes to the names of the generated files.
19560         * lib/unictype/gen-ctype.c: Remove file.
19561         * lib/unilbrk/gen-lbrk.c: Remove file.
19562         * modules/gen-uni-tables: New file.
19563         * modules/unictype/gen-ctype: Remove file.
19564         * modules/unilbrk/gen-lbrk: Remove file.
19566 2009-02-07  Bruno Haible  <bruno@clisp.org>
19568         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
19570         New module 'unistr/u32-strcoll'.
19571         * modules/unistr/u32-strcoll: New file.
19572         * lib/unistr/u32-strcoll.c: New file.
19574         New module 'unistr/u16-strcoll'.
19575         * modules/unistr/u16-strcoll: New file.
19576         * lib/unistr/u16-strcoll.c: New file.
19578         New module 'unistr/u8-strcoll'.
19579         * modules/unistr/u8-strcoll: New file.
19580         * lib/unistr/u8-strcoll.c: New file.
19581         * lib/unistr/u-strcoll.h: New file.
19583 2009-02-07  Bruno Haible  <bruno@clisp.org>
19585         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
19586         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19587         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19588         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
19589         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
19590         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
19592 2009-02-07  Bruno Haible  <bruno@clisp.org>
19594         Make 64-bit clean.
19595         * lib/unictype/gen-ctype.c (output_predicate, output_category,
19596         output_combclass, output_bidi_category, output_decimal_digit,
19597         output_digit, output_numeric, output_mirror, output_scripts,
19598         output_ident_category): Use proper width specifier in format strings.
19600 2009-02-07  Bruno Haible  <bruno@clisp.org>
19602         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
19603         failure behaviour.
19605 2009-02-07  Jim Meyering  <meyering@redhat.com>
19607         regex: avoid compilation failure with upcoming gcc-4.4
19608         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
19609         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
19610         "... error: integer overflow in preprocessor expression".
19612 2009-02-05  Ben Pfaff  <blp@gnu.org>
19614         Fix link errors on Windows when close module is used.
19615         * modules/close: Add $(LIB_CLOSE) to Link section.
19616         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
19617         $(LIB_CLOSE) on Windows.
19619 2009-02-05  Jim Meyering  <meyering@redhat.com>
19621         still avoid unused-parameter warnings, but do it cleanly
19622         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
19623         (get_fs_usage): Cast to void instead.
19624         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
19625         (dev_from_mount_options, read_file_system_list): Cast to void.
19626         Prompted by Bruno Haible.
19628 2009-02-04  Jim Meyering  <meyering@redhat.com>
19630         fsusage.c: correct copyright year
19631         * lib/fsusage.c: Reflect year in which the change is pushed into
19633         avoid misc. warnings
19634         * lib/fsusage.c (UNUSED_PARAM): Define.
19635         (get_fs_usage): Mark parameter "disk" as unused.
19636         * lib/getugroups.c (getgrent): Use "void" in prototype.
19637         * lib/mountlist.c: Mark unused parameters.
19638         (read_file_system_list): Declare a local with "const".
19639         * lib/nanosleep.c (getnow): Declare static.
19640         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
19642         dirfd: set errno upon failure
19643         * lib/dirfd.c: Include <errno.h>.
19644         Set errno to ENOTSUP when returning -1.
19645         * modules/dirfd (Depends-on): Add errno.
19646         Suggested by John Kodis <kodis@comcast.net>.
19648 2009-02-01  Bruno Haible  <bruno@clisp.org>
19650         Don't assume sizeof (long) >= sizeof (void *).
19651         * lib/memcmp.c: Include stdint.h.
19652         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
19653         srcp2 to 'const byte *'.
19654         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
19655         types to uintptr_t.
19656         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
19657         * modules/memcmp (Depends-on): Add stdint.
19658         Reported by Ozkan Sezer <sezeroz@gmail.com>.
19660 2009-01-30  Eric Blake  <ebb9@byu.net>
19662         fix more require-before-expand issues
19663         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
19664         expand, AC_PROG_AWK.
19665         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
19667 2009-01-28  Eric Blake  <ebb9@byu.net>
19669         version-etc: use consistent URL formatting
19670         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
19671         Improve formatting.  Use fputs for string without %.
19673 2009-01-28  Jim Meyering  <meyering@redhat.com>
19675         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
19676         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
19677         "underquoted definition of NAME" from autoconf-2.59.
19679 2009-01-28  Bruno Haible  <bruno@clisp.org>
19681         * doc/gnulib.texi: Add "Obsolete modules" to index.
19683 2009-01-28  Jim Meyering  <meyering@redhat.com>
19685         useless-if-before-free: recognize more variants
19686         * build-aux/useless-if-before-free: Also recognize e.g.,
19687         if (NULL != p) free (p);
19689 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
19691         test-getaddrinfo: skip (don't fail) this test when there's no network
19692         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
19693         on the presumption that it means you lack network access.
19695 2009-01-26  Jim Meyering  <meyering@redhat.com>
19697         fflush: avoid warnings on modern systems
19698         * lib/fflush.c (rpl_fflush): Move declarations of locals,
19699         pos and result, into scopes where they're used.
19701 2009-01-26  Eric Blake  <ebb9@byu.net>
19703         Silence warning reintroduced by recent extensions patch.
19704         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
19705         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
19706         autoconf.
19708         Backport improved autoconf semantics of AC_DEFUN_ONCE.
19709         * m4/00gnulib.m4: New file.
19710         * gnulib-tool (func_get_filelist): Always use it.
19711         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
19712         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
19714 2009-01-25  Bruno Haible  <bruno@clisp.org>
19716         Make test-quotearg work on MacOS X and AIX.
19717         * tests/test-quotearg.sh: New file.
19718         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
19719         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
19720         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
19721         include <libintl.h>.
19722         (fake_locale): Remove variable.
19723         (gettext, dgettext, dcgettext): Remove functions.
19724         (main): Instead of setting a fake locale, set a real locale. Call
19725         textdomain and bindtextdomain.
19726         * modules/quotearg-tests (Files): Add the new files.
19727         (Depends-on): Add gettext, setenv, unsetenv.
19728         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
19729         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
19730         Augment TESTS_ENVIRONMENT.
19732 2009-01-25  Bruno Haible  <bruno@clisp.org>
19734         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
19735         fr_FR.ISO8859-1 locale on MacOS X.
19736         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
19737         ja_JP.eucJP locale on MacOS X.
19738         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
19739         zh_CN.GB18030 locale on MacOS X.
19741 2009-01-25  Bruno Haible  <bruno@clisp.org>
19743         Avoid link errors on MacOS X 10.3.
19744         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
19745         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19747 2009-01-25  Bruno Haible  <bruno@clisp.org>
19749         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
19750         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
19751         * modules/pipe (Files): Remove m4/posix_spawn.m4.
19752         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
19753         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
19754         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
19755         posix_spawnattr_init, posix_spawnattr_setsigmask,
19756         posix_spawnattr_setflags, posix_spawnattr_destroy.
19758         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
19759         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
19760         * modules/execute (Files): Remove m4/posix_spawn.m4.
19761         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
19762         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
19763         posix_spawnattr_init, posix_spawnattr_setsigmask,
19764         posix_spawnattr_setflags, posix_spawnattr_destroy.
19766 2009-01-25  Bruno Haible  <bruno@clisp.org>
19768         * lib/glthread/threadlib.c: Include <stdlib.h>.
19770 2009-01-25  Bruno Haible  <bruno@clisp.org>
19772         * lib/glthread/threadlib.c (dummy): New declaration.
19774 2009-01-25  Bruno Haible  <bruno@clisp.org>
19776         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
19777         multibyte characters also for the GB18030 encoding. Don't crash when
19778         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
19780 2009-01-25  Bruno Haible  <bruno@clisp.org>
19782         Avoid redefining 'struct random_data' on OSF/1 5.1.
19783         * lib/stdlib.in.h: Include <random.h> if it exists.
19784         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
19785         HAVE_RANDOM_H. Include <random.h> when testing whether
19786         'struct random_data' exists.
19787         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
19789 2009-01-25  Bruno Haible  <bruno@clisp.org>
19791         Don't install charset.alias on MacOS X >= 10.3.
19792         * lib/localcharset.c (DARWIN7): New macro.
19793         (get_charset_aliases): Hardcode the result for Darwin7.
19794         * modules/localcharset (install-exec-local): Don't install
19795         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
19797 2009-01-25  Bruno Haible  <bruno@clisp.org>
19799         Don't install charset.alias on mingw and Cygwin.
19800         * modules/localcharset (install-exec-local): Don't install
19801         charset.alias on mingw and Cygwin, if the file does not yet exist.
19802         The result for these platforms is hardcoded in localcharset.c.
19804 2009-01-25  Bruno Haible  <bruno@clisp.org>
19806         Make it possible again to use AC_GNU_SOURCE together with gnulib.
19807         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
19808         before requiring AC_USE_SYSTEM_EXTENSIONS.
19810 2009-01-25  Jim Meyering  <meyering@redhat.com>
19812         c-strtod: avoid warnings
19813         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
19814         "assignment discards qualifiers from pointer target type" warnings.
19816 2009-01-24  Bruno Haible  <bruno@clisp.org>
19818         Add support for non-UTF-8 locales on MacOS X.
19819         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
19820         canonical encodings. For Darwin 7 and newer, don't map traditional
19821         encodings to UTF-8.
19822         Reported by Vincent Lefevre <vincent@vinc17.org>
19823         at <http://savannah.gnu.org/bugs/?25235>.
19825 2009-01-24  Bruno Haible  <bruno@clisp.org>
19827         * doc/gnulib.texi (Obsolete modules): New section.
19828         Reported by Mike Frysinger <vapier@gentoo.org>.
19830 2009-01-24  Bruno Haible  <bruno@clisp.org>
19832         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
19833         (%.dvi): New rule.
19835 2009-01-24  Bruno Haible  <bruno@clisp.org>
19837         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
19838         Reported by Eric Blake.
19840 2009-01-24  Bruno Haible  <bruno@clisp.org>
19842         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
19843         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
19844         Reported by Gary V. Vaughan <gary@gnu.org>.
19846 2009-01-24  Bruno Haible  <bruno@clisp.org>
19848         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
19850 2009-01-23  Bruno Haible  <bruno@clisp.org>
19852         Make c-strtod, c-strtold usable in libraries.
19853         * lib/c-strtod.c: Include string.h instead of xalloc.h.
19854         (C_STRTOD): Call strdup instead of xstrdup.
19855         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
19856         * modules/c-strtold (Depends-on): Likewise.
19857         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
19858         * NEWS: Mention the change.
19859         Reported by Michael Gold <mgold@ncf.ca>.
19861 2009-01-23  Jim Meyering  <meyering@redhat.com>
19863         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
19864         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
19865         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
19867 2009-01-23  Simon Josefsson  <simon@josefsson.org>
19869         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
19870         GNU CoreUtils.
19871         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
19872         * modules/version-etc (Description): Update.
19874 2009-01-22  Bruno Haible  <bruno@clisp.org>
19876         Cache the C locale object.
19877         * lib/c-strtod.c (c_locale_cache): New variable.
19878         (c_locale): New function.
19879         (C_STRTOD): Use it, and don't call freelocale.
19880         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
19881         Suggested by Paolo Bonzini.
19883 2009-01-21  Bruno Haible  <bruno@clisp.org>
19885         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
19886         conditions other than overflow.
19888 2009-01-21  Bruno Haible  <bruno@clisp.org>
19890         * lib/c-strtod.c: Include errno.h.
19891         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
19892         value from STRTOD_L and STRTOD.
19894 2009-01-21  Bruno Haible  <bruno@clisp.org>
19895         and Jim Meyering  <meyering@redhat.com>
19897         nanosleep: skip configure test (fail it) for apple universal builds
19898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
19899         universal builds, assume that nanosleep does not work.
19900         * modules/nanosleep (Depends-on): Add multiarch.
19902         mktime: skip configure test (fail it) for apple universal builds
19903         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
19904         universal builds, assume that mktime does not work.
19905         * modules/mktime (Depends-on): Add multiarch.
19907 2009-01-21  Eric Blake  <ebb9@byu.net>
19909         multiarch: avoid expand-before-require warning
19910         * modules/multiarch (configure.ac): Require, rather than expand,
19911         gl_MULTIARCH.
19912         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
19913         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
19914         enforce that all clients require it.  Partial reversion of
19915         2008-12-29 patch.
19917         error: avoid expand-before-require warning
19918         * modules/errno (configure.ac): Require, rather than expand,
19919         gl_HEADER_ERRNO_H.
19920         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
19921         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
19922         enforce that all clients require it.
19924         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
19925         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
19926         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
19927         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
19929 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
19931         Revert:
19932         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19934         regex: do not depend on obsolete modules.
19935         * modules/regex: Remove memcmp and memmove.
19937 2009-01-20  Bruno Haible  <bruno@clisp.org>
19939         Make the 'link' module link on Windows NT 4.
19940         * lib/link.c (_WIN32_WINNT): Don't define.
19941         (CreateHardLinkFuncType): New type.
19942         (CreateHardLinkFunc, initialized): New variables.
19943         (initialize): New function.
19944         (link): Invoke CreateHardLink indirectly through the function pointer.
19946 2009-01-20  Bruno Haible  <bruno@clisp.org>
19948         Fix compilation failure on mingw.
19949         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
19951 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
19953         * doc/c-strtod.texi: Mention a couple of restrictions.
19955 2009-01-20  Jim Meyering  <meyering@redhat.com>
19957         gettimeofday: move more declarations out of functions
19958         * lib/gettimeofday.c: Move extern declarations of tzset and
19959         gmtime out of containing functions.  Prompted by Bruno Haible.
19961 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19963         regex: do not depend on obsolete modules.
19964         * modules/regex: Remove memcmp and memmove.
19966 2009-01-19  Bruno Haible  <bruno@clisp.org>
19968         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
19969         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
19970         gl_BIGENDIAN, not AC_C_BIGENDIAN.
19971         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
19972         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
19974 2009-01-19  Bruno Haible  <bruno@clisp.org>
19976         * tests/test-link.c: Include <errno.h>.
19977         (main): Exit with code 77 when a hard link cannot be created due to
19978         the file system.
19979         * tests/test-link.sh: Skip test when a hard link cannot be created due
19980         to the file system.
19981         Suggested by Eric Blake.
19983 2009-01-19  Martin Lambers  <marlam@marlam.de>
19985         * modules/link-tests: New file.
19986         * tests/test-link.sh: New file.
19987         * tests/test-link.c: New file.
19989 2009-01-19  Eric Blake  <ebb9@byu.net>
19991         doc: mention another function added in cygwin 1.7.0
19992         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
19993         Another new function in cygwin 1.7.
19995 2009-01-19  Bruno Haible  <bruno@clisp.org>
19997         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
19998         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
19999         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20000         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20001         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20002         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20003         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20004         * m4/md4.m4 (gl_MD4): Likewise.
20005         * m4/md5.m4 (gl_MD5): Likewise.
20006         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20007         * m4/sha1.m4 (gl_SHA1): Likewise.
20008         * m4/sha256.m4 (gl_SHA256): Likewise.
20009         * m4/sha512.m4 (gl_SHA512): Likewise.
20011 2009-01-19  Bruno Haible  <bruno@clisp.org>
20013         * modules/uniname/uniname-tests (Depends-on): Add progname.
20014         * tests/uniname/test-uninames.c: Include progname.h.
20015         (main): Call set_program_name.
20017         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20018         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20019         (main): Call set_program_name.
20021         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20022         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20023         (main): Call set_program_name.
20025         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20026         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20027         (main): Call set_program_name.
20029         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20030         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20031         (main): Call set_program_name.
20033         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20034         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20035         (main): Call set_program_name.
20037         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20038         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20039         (main): Call set_program_name.
20041         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20042         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20043         (main): Call set_program_name.
20045         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20046         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20047         (main): Call set_program_name.
20049 2009-01-19  Eric Blake  <ebb9@byu.net>
20051         test-unistd: test previous patch
20052         * tests/test-unistd.c: Test *_FILENO macros.
20054         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20055         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20056         Guarantee a definition.
20057         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20058         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20059         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20060         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20061         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20062         Likewise.
20063         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20064         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20065         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20066         Likewise.
20067         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20068         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20069         (STDERR_FILENO): Likewise.
20070         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20071         (STDERR_FILENO): Likewise.
20072         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20073         (STDERR_FILENO): Likewise.
20074         Reported by Elbert Pol.
20076 2009-01-19  Eric Blake  <ebb9@byu.net>
20078         doc: mention more functions added in cygwin 1.7.0
20079         * doc/posix-functions/abort.texi (abort): Update wording related
20080         to cygwin.
20081         * doc/posix-functions/daylight.texi (daylight): Likewise.
20082         * doc/posix-functions/optarg.texi (optarg): Likewise.
20083         * doc/posix-functions/optarg.texi (opterr): Likewise.
20084         * doc/posix-functions/optarg.texi (optind): Likewise.
20085         * doc/posix-functions/optarg.texi (optopt): Likewise.
20086         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20087         worked in 1.5.x, and was withdrawn in 1.7.
20088         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20089         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20090         cygwin versions.
20091         * doc/posix-functions/perror.texi (perror): Likewise.
20092         * doc/posix-functions/printf.texi (printf): Likewise.
20093         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20094         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20095         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20096         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20097         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20098         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20099         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20100         Likewise.
20101         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20102         Likewise.
20103         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20104         this function.
20105         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20106         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20107         Likewise.
20108         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20109         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20110         * doc/posix-functions/confstr.texi (confstr): Likewise.
20111         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20112         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20113         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20114         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20115         * doc/posix-functions/fputws.texi (fputws): Likewise.
20116         * doc/posix-functions/fwide.texi (fwide): Likewise.
20117         * doc/posix-functions/getwc.texi (getwc): Likewise.
20118         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20119         * doc/posix-functions/putwc.texi (putwc): Likewise.
20120         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20121         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20122         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20123         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20124         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20125         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20126         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20127         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20128         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20129         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20130         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20132 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20134         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20135         * lib/ioctl.c: Include <sys/ioctl.h>.
20137 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20139         * modules/getdate-tests (Depends-on): Add progname.
20140         * tests/test-getdate.c: Use progname module, to avoid link errors
20141         on non-glibc systems.
20143 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20145         * modules/filenamecat-tests (Depends-on): Add progname.
20146         * modules/fstrcmp-tests (Depends-on): Likewise.
20148         * tests/test-filenamecat.c: Use progname module, to avoid link
20149         errors on non-glibc systems.
20150         * tests/test-fstrcmp.c: Likewise.
20152 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20154         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20155         * lib/gettimeofday.c: Move extern declaration out of function.
20157 2009-01-18  Bruno Haible  <bruno@clisp.org>
20159         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20160         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20161         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20163 2009-01-18  Bruno Haible  <bruno@clisp.org>
20165         * lib/strftime.c (MEMPCPY): Remove unused macro.
20166         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20168 2009-01-18  Martin Lambers  <marlam@marlam.de>
20170         New module 'link'.
20171         * lib/unistd.in.h (link): New declaration.
20172         * lib/link.c: New file.
20173         * m4/link.m4: New file.
20174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20175         HAVE_LINK.
20176         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20177         * modules/link: New file.
20178         * doc/posix-functions/link.texi: Mention the new module.
20180 2009-01-18  Bruno Haible  <bruno@clisp.org>
20182         * tests/test-avltree_list.c (main): Call set_program_name.
20183         * tests/test-avltree_oset.c (main): Likewise.
20184         * tests/test-obstack-printf.c: Include progname.h.
20185         (main): Call set_program_name.
20186         * tests/test-quotearg.c: Include progname.h.
20187         (main): Call set_program_name.
20188         * tests/test-xmemdup0.c: Include progname.h.
20189         (main): Call set_program_name.
20191 2009-01-18  Bruno Haible  <bruno@clisp.org>
20193         New module 'alphasort'.
20194         * lib/dirent.in.h (alphasort): New declaration.
20195         * lib/alphasort.c: New file, from glibc with modifications.
20196         * m4/alphasort.m4: New file.
20197         * modules/alphasort: New file.
20198         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20199         HAVE_ALPHASORT.
20200         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20201         HAVE_ALPHASORT.
20202         * doc/posix-functions/alphasort.texi: Mention the new module and the
20203         portability problems.
20205 2009-01-18  Bruno Haible  <bruno@clisp.org>
20207         New module 'scandir'.
20208         * lib/dirent.in.h (scandir): New declaration.
20209         * lib/scandir.c: New file, from glibc with modifications.
20210         * m4/scandir.m4: New file.
20211         * modules/scandir: New file.
20212         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20213         HAVE_SCANDIR.
20214         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20215         HAVE_SCANDIR.
20216         * doc/posix-functions/scandir.texi: Mention the new module and the
20217         portability problems.
20219 2009-01-17  Bruno Haible  <bruno@clisp.org>
20221         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20222         Update documentation.
20223         (func_remove_suffix): Escape all dots in the suffix. Update
20224         documentation.
20225         (func_filter_filelist): Update documentation.
20226         Reported by Ralf Wildenhues.
20228 2009-01-17  Bruno Haible  <bruno@clisp.org>
20230         * modules/dprintf-posix-tests: New file.
20231         * tests/test-dprintf-posix.sh: New file.
20232         * tests/test-dprintf-posix.c: New file.
20234         New modules 'dprintf', 'dprintf-posix'.
20235         * lib/stdio.in.h (dprintf): New declaration.
20236         * lib/dprintf.c: New file.
20237         * m4/dprintf.m4: New file.
20238         * m4/dprintf-posix.m4: New file.
20239         * modules/dprintf: New file.
20240         * modules/dprintf-posix: New file.
20241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20242         HAVE_DPRINTF, REPLACE_DPRINTF.
20243         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20244         HAVE_DPRINTF, REPLACE_DPRINTF.
20245         * doc/posix-functions/dprintf.texi: Mention the new modules.
20247 2009-01-17  Bruno Haible  <bruno@clisp.org>
20249         * modules/vdprintf-posix-tests: New file.
20250         * tests/test-vdprintf-posix.sh: New file.
20251         * tests/test-vdprintf-posix.c: New file.
20253         New modules 'vdprintf', 'vdprintf-posix'.
20254         * lib/stdio.in.h (vdprintf): New declaration.
20255         * lib/vdprintf.c: New file.
20256         * m4/vdprintf.m4: New file.
20257         * m4/vdprintf-posix.m4: New file.
20258         * modules/vdprintf: New file.
20259         * modules/vdprintf-posix: New file.
20260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20261         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20262         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20263         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20264         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20266 2009-01-17  Bruno Haible  <bruno@clisp.org>
20268         Fix replacement of fopen on mingw.
20269         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20270         mingw.
20272 2009-01-17  Bruno Haible  <bruno@clisp.org>
20274         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20275         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20277 2009-01-17  Bruno Haible  <bruno@clisp.org>
20279         Avoid test-fflush2.sh failure on mingw.
20280         * tests/test-fflush2.c: Include binary-io.h.
20281         (main): Put standard input into binary mode.
20282         * modules/fflush-tests (Depends-on): Add binary-io.
20284 2009-01-17  Bruno Haible  <bruno@clisp.org>
20286         * lib/wchar.in.h: In another particular situation, include only the
20287         system's <wchar.h> file.
20288         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20289         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20290         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20292 2009-01-17  Bruno Haible  <bruno@clisp.org>
20294         Support for stripping executables in --enable-relocatable.
20295         * build-aux/install-reloc: Expect one more argument, or an environment
20296         variable RELOC_STRIP_PROG. If set, strip the destination program and
20297         its wrapper.
20298         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20299         RELOC_STRIP_PROG.
20300         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20301         to set RELOCATABLE_STRIP.
20302         * NEWS: Mention the new Makefile requirement.
20304 2009-01-17  Bruno Haible  <bruno@clisp.org>
20306         * build-aux/install-reloc: Remove debugging information left over by
20307         C compiler on MacOS X.
20309 2009-01-17  Bruno Haible  <bruno@clisp.org>
20311         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
20312         * lib/progreloc.c (find_executable): Fix type of pointer passed to
20313         _NSGetExecutablePath.
20315 2009-01-16  Jim Meyering  <meyering@redhat.com>
20317         strerror: avoid warnings about discarding "const"
20318         * lib/strerror.c (rpl_strerror): Instead of returning a const
20319         string from each and every "case", use a variable, and add a single
20320         cast after the switch.
20322 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
20324         * lib/arpa_inet.in.h: Add extern "C" block for C++.
20326 2009-01-16  Bruno Haible  <bruno@clisp.org>
20328         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
20329         array initializer syntax that also works in C++ mode.
20330         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20332 2009-01-16  Jim Meyering  <meyering@redhat.com>
20334         poll: suppress a warning
20335         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
20336         to ignore "...unsigned expression < 0 is always false" warnings.
20338 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
20340         poll: remove declarations of unused variables
20341         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
20342         sockbuf and optlen.
20344 2009-01-15  Bruno Haible  <bruno@clisp.org>
20346         Make fflush-after-ungetc POSIX compliant on BSD systems.
20347         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
20348         (clear_ungetc_buffer): Implement also for other systems.
20349         (rpl_fflush): On glibc systems, invoke
20350         clear_ungetc_buffer_preserving_position. Otherwise, invoke
20351         clear_ungetc_buffer after fetching the stream's position, not before.
20353 2009-01-15  Bruno Haible  <bruno@clisp.org>
20355         Make fflush-after-ungetc POSIX compliant on glibc systems.
20356         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
20357         after ungetc.
20358         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
20359         (rpl_fflush): On glibc systems, simply call the system's fflush
20360         function after clearing the ungetc buffer.
20361         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
20362         Instead, lseek only to the end of file, then use the system's fseeko
20363         for the rest. On glibc systems, reset the EOF indicator bit.
20365 2009-01-15  Jim Meyering  <meyering@redhat.com>
20367         openmp.m4: revert quote-adding change, for portability to older autoconf
20368         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
20369         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
20370         Simon Josefsson noticed the problem when using autoconf-2.61.
20372 2009-01-15  Bruno Haible  <bruno@clisp.org>
20374         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
20375         * tests/test-fflush2.c (ASSERT): Always fail.
20376         (main): Add two tests for fflush() after ungetc(), taking into account
20377         the Austin Group's clarification.
20378         Suggested by Eric Blake.
20380 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
20382         mktime.m4: remove K&R-style function prototypes
20383         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
20384         for the Sun C++ compiler.
20386 2009-01-14  Bruno Haible  <bruno@clisp.org>
20388         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
20389         while including <wchar.h>.
20390         * lib/wchar.in.h: In two particular situations on HP-UX, include only
20391         the system's <wchar.h> file.
20392         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20394 2009-01-14  Bruno Haible  <bruno@clisp.org>
20396         * m4/csharp.m4: Don't mention gettext on the serial number line.
20397         * m4/csharpexec.m4: Likewise.
20398         * m4/eaccess.m4: Likewise.
20399         * m4/javaexec.m4: Likewise.
20400         * m4/sig_atomic_t.m4: Likewise.
20401         * m4/tmpdir.m4: Likewise.
20402         * m4/intldir.m4: Bump gettext version.
20403         * m4/lib-ld.m4: Likewise.
20405 2009-01-14  Bruno Haible  <bruno@clisp.org>
20407         * lib/progname.c (set_program_name): Add more comments.
20408         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20410 2009-01-14  Simon Josefsson  <simon@josefsson.org>
20412         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20413         were sys/stat.h does not define it.
20415 2009-01-14  Jim Meyering  <meyering@redhat.com>
20417         many *.m4 files: improve m4 quoting
20418         99% of this change was performed by running the following commands:
20419         git ls-files | grep '\.m4$' | xargs perl -pi \
20420           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
20421           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20422           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20423           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
20424         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
20425         The remainder were to add Copyright dates, increment serial numbers,
20426         undo some changes in comments, exclude m4/intl.m4, and add quotes
20427         around the "1" in ",1" where the unusual spacing prohibited the
20428         above regexps from doing the job.  For more details, see
20429         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
20430         * m4/acl.m4: Modified.
20431         * m4/afs.m4: Likewise.
20432         * m4/alloca.m4: Likewise.
20433         * m4/argp.m4: Likewise.
20434         * m4/argz.m4: Likewise.
20435         * m4/atexit.m4: Likewise.
20436         * m4/bison-i18n.m4: Likewise.
20437         * m4/bison.m4: Likewise.
20438         * m4/byteswap.m4: Likewise.
20439         * m4/c-stack.m4: Likewise.
20440         * m4/c-strtod.m4: Likewise.
20441         * m4/calloc.m4: Likewise.
20442         * m4/canonicalize-lgpl.m4: Likewise.
20443         * m4/chown.m4: Likewise.
20444         * m4/clock_time.m4: Likewise.
20445         * m4/codeset.m4: Likewise.
20446         * m4/copy-file.m4: Likewise.
20447         * m4/csharp.m4: Likewise.
20448         * m4/csharpcomp.m4: Likewise.
20449         * m4/csharpexec.m4: Likewise.
20450         * m4/d-ino.m4: Likewise.
20451         * m4/d-type.m4: Likewise.
20452         * m4/dirfd.m4: Likewise.
20453         * m4/double-slash-root.m4: Likewise.
20454         * m4/eaccess.m4: Likewise.
20455         * m4/eealloc.m4: Likewise.
20456         * m4/environ.m4: Likewise.
20457         * m4/errno_h.m4: Likewise.
20458         * m4/euidaccess.m4: Likewise.
20459         * m4/execute.m4: Likewise.
20460         * m4/fatal-signal.m4: Likewise.
20461         * m4/fchdir.m4: Likewise.
20462         * m4/fcntl_h.m4: Likewise.
20463         * m4/fileblocks.m4: Likewise.
20464         * m4/filenamecat.m4: Likewise.
20465         * m4/findprog.m4: Likewise.
20466         * m4/flexmember.m4: Likewise.
20467         * m4/fnmatch.m4: Likewise.
20468         * m4/fopen.m4: Likewise.
20469         * m4/fpending.m4: Likewise.
20470         * m4/fprintf-posix.m4: Likewise.
20471         * m4/free.m4: Likewise.
20472         * m4/frexp.m4: Likewise.
20473         * m4/frexpl.m4: Likewise.
20474         * m4/fsusage.m4: Likewise.
20475         * m4/ftruncate.m4: Likewise.
20476         * m4/gc-camellia.m4: Likewise.
20477         * m4/gc-random.m4: Likewise.
20478         * m4/gc.m4: Likewise.
20479         * m4/getaddrinfo.m4: Likewise.
20480         * m4/getcwd-abort-bug.m4: Likewise.
20481         * m4/getcwd-path-max.m4: Likewise.
20482         * m4/getdate.m4: Likewise.
20483         * m4/getdomainname.m4: Likewise.
20484         * m4/getgroups.m4: Likewise.
20485         * m4/gethostname.m4: Likewise.
20486         * m4/gethrxtime.m4: Likewise.
20487         * m4/getline.m4: Likewise.
20488         * m4/getloadavg.m4: Likewise.
20489         * m4/getndelim2.m4: Likewise.
20490         * m4/getpass.m4: Likewise.
20491         * m4/gettext.m4: Likewise.
20492         * m4/gettime.m4: Likewise.
20493         * m4/gettimeofday.m4: Likewise.
20494         * m4/gnulib-common.m4: Likewise.
20495         * m4/group-member.m4: Likewise.
20496         * m4/host-os.m4: Likewise.
20497         * m4/iconv.m4: Likewise.
20498         * m4/iconv_open.m4: Likewise.
20499         * m4/inet_ntop.m4: Likewise.
20500         * m4/inet_pton.m4: Likewise.
20501         * m4/inline.m4: Likewise.
20502         * m4/intldir.m4: Likewise.
20503         * m4/intlmacosx.m4: Likewise.
20504         * m4/intmax.m4: Likewise.
20505         * m4/intmax_t.m4: Likewise.
20506         * m4/inttypes.m4: Likewise.
20507         * m4/inttypes_h.m4: Likewise.
20508         * m4/inttypes-pri.m4: Likewise.
20509         * m4/isapipe.m4: Likewise.
20510         * m4/isnand.m4: Likewise.
20511         * m4/isnanf.m4: Likewise.
20512         * m4/isnanl.m4: Likewise.
20513         * m4/javacomp.m4: Likewise.
20514         * m4/javaexec.m4: Likewise.
20515         * m4/jm-winsz1.m4: Likewise.
20516         * m4/jm-winsz2.m4: Likewise.
20517         * m4/lchown.m4: Likewise.
20518         * m4/lcmessage.m4: Likewise.
20519         * m4/ldexpl.m4: Likewise.
20520         * m4/lib-ld.m4: Likewise.
20521         * m4/lib-link.m4: Likewise.
20522         * m4/libsigsegv.m4: Likewise.
20523         * m4/link-follow.m4: Likewise.
20524         * m4/localcharset.m4: Likewise.
20525         * m4/locale-fr.m4: Likewise.
20526         * m4/locale-ja.m4: Likewise.
20527         * m4/locale-tr.m4: Likewise.
20528         * m4/locale-zh.m4: Likewise.
20529         * m4/lock.m4: Likewise.
20530         * m4/longlong.m4: Likewise.
20531         * m4/ls-mntd-fs.m4: Likewise.
20532         * m4/lstat.m4: Likewise.
20533         * m4/malloc.m4: Likewise.
20534         * m4/mathl.m4: Likewise.
20535         * m4/mbrtowc.m4: Likewise.
20536         * m4/mbstate_t.m4: Likewise.
20537         * m4/mbswidth.m4: Likewise.
20538         * m4/memchr.m4: Likewise.
20539         * m4/memcmp.m4: Likewise.
20540         * m4/memcpy.m4: Likewise.
20541         * m4/memmem.m4: Likewise.
20542         * m4/memmove.m4: Likewise.
20543         * m4/mempcpy.m4: Likewise.
20544         * m4/memrchr.m4: Likewise.
20545         * m4/memset.m4: Likewise.
20546         * m4/minmax.m4: Likewise.
20547         * m4/mkdir-slash.m4: Likewise.
20548         * m4/mkdtemp.m4: Likewise.
20549         * m4/mktime.m4: Likewise.
20550         * m4/mmap-anon.m4: Likewise.
20551         * m4/mountlist.m4: Likewise.
20552         * m4/nanosleep.m4: Likewise.
20553         * m4/nls.m4: Likewise.
20554         * m4/nocrash.m4: Likewise.
20555         * m4/open.m4: Likewise.
20556         * m4/openat.m4: Likewise.
20557         * m4/openmp.m4: Likewise.
20558         * m4/pathmax.m4: Likewise.
20559         * m4/perl.m4: Likewise.
20560         * m4/physmem.m4: Likewise.
20561         * m4/pipe.m4: Likewise.
20562         * m4/po.m4: Likewise.
20563         * m4/poll.m4: Likewise.
20564         * m4/posixtm.m4: Likewise.
20565         * m4/posixver.m4: Likewise.
20566         * m4/printf-frexp.m4: Likewise.
20567         * m4/printf-frexpl.m4: Likewise.
20568         * m4/printf-posix.m4: Likewise.
20569         * m4/printf-posix-rpl.m4: Likewise.
20570         * m4/printf.m4: Likewise.
20571         * m4/progtest.m4: Likewise.
20572         * m4/putenv.m4: Likewise.
20573         * m4/readline.m4: Likewise.
20574         * m4/readlink.m4: Likewise.
20575         * m4/readutmp.m4: Likewise.
20576         * m4/realloc.m4: Likewise.
20577         * m4/regex.m4: Likewise.
20578         * m4/relocatable.m4: Likewise.
20579         * m4/relocatable-lib.m4: Likewise.
20580         * m4/rename-dest-slash.m4: Likewise.
20581         * m4/rename.m4: Likewise.
20582         * m4/rmdir-errno.m4: Likewise.
20583         * m4/rmdir.m4: Likewise.
20584         * m4/roundf.m4: Likewise.
20585         * m4/roundl.m4: Likewise.
20586         * m4/rpmatch.m4: Likewise.
20587         * m4/save-cwd.m4: Likewise.
20588         * m4/selinux-selinux-h.m4: Likewise.
20589         * m4/setenv.m4: Likewise.
20590         * m4/settime.m4: Likewise.
20591         * m4/sig2str.m4: Likewise.
20592         * m4/sig_atomic_t.m4: Likewise.
20593         * m4/signalblocking.m4: Likewise.
20594         * m4/signbit.m4: Likewise.
20595         * m4/sigpipe.m4: Likewise.
20596         * m4/sockets.m4: Likewise.
20597         * m4/sockpfaf.m4: Likewise.
20598         * m4/st_dm_mode.m4: Likewise.
20599         * m4/stat-time.m4: Likewise.
20600         * m4/stdbool.m4: Likewise.
20601         * m4/stdint.m4: Likewise.
20602         * m4/stdint_h.m4: Likewise.
20603         * m4/stpcpy.m4: Likewise.
20604         * m4/stpncpy.m4: Likewise.
20605         * m4/strcase.m4: Likewise.
20606         * m4/strchrnul.m4: Likewise.
20607         * m4/strcspn.m4: Likewise.
20608         * m4/strdup.m4: Likewise.
20609         * m4/strftime.m4: Likewise.
20610         * m4/strndup.m4: Likewise.
20611         * m4/strnlen.m4: Likewise.
20612         * m4/strpbrk.m4: Likewise.
20613         * m4/strptime.m4: Likewise.
20614         * m4/strsep.m4: Likewise.
20615         * m4/strtod.m4: Likewise.
20616         * m4/strtoimax.m4: Likewise.
20617         * m4/strtok_r.m4: Likewise.
20618         * m4/strtol.m4: Likewise.
20619         * m4/strtoll.m4: Likewise.
20620         * m4/strtoul.m4: Likewise.
20621         * m4/strtoull.m4: Likewise.
20622         * m4/strtoumax.m4: Likewise.
20623         * m4/strverscmp.m4: Likewise.
20624         * m4/threadlib.m4: Likewise.
20625         * m4/timegm.m4: Likewise.
20626         * m4/tm_gmtoff.m4: Likewise.
20627         * m4/tmpdir.m4: Likewise.
20628         * m4/tmpfile.m4: Likewise.
20629         * m4/tzset.m4: Likewise.
20630         * m4/uintmax_t.m4: Likewise.
20631         * m4/unlinkdir.m4: Likewise.
20632         * m4/unlocked-io.m4: Likewise.
20633         * m4/uptime.m4: Likewise.
20634         * m4/userspec.m4: Likewise.
20635         * m4/utimbuf.m4: Likewise.
20636         * m4/utime.m4: Likewise.
20637         * m4/utimes-null.m4: Likewise.
20638         * m4/utimes.m4: Likewise.
20639         * m4/vararrays.m4: Likewise.
20640         * m4/vasnprintf.m4: Likewise.
20641         * m4/vfprintf-posix.m4: Likewise.
20642         * m4/vprintf-posix.m4: Likewise.
20643         * m4/wait-process.m4: Likewise.
20644         * m4/wchar_t.m4: Likewise.
20645         * m4/wint_t.m4: Likewise.
20646         * m4/write-any-file.m4: Likewise.
20647         * m4/yield.m4: Likewise.
20649 2009-01-13  Bruno Haible  <bruno@clisp.org>
20651         Avoid test-copy-file.sh failures when ACL support insufficient.
20652         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
20653         TESTS_ENVIRONMENT.
20654         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
20655         Reported by Jim Meyering.
20657 2009-01-13  Bruno Haible  <bruno@clisp.org>
20659         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
20660         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
20661         * modules/unistdio/u8-printf-parse (Files): Likewise.
20662         * modules/unistdio/u32-printf-parse (Files): Likewise.
20663         * modules/unistdio/ulc-printf-parse (Files): Likewise.
20665 2009-01-13  Simon Josefsson  <simon@josefsson.org>
20667         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
20668         and m4/inttypes_h.m4 too.
20670 2009-01-12  Eric Blake  <ebb9@byu.net>
20672         tests: IRIX 6.2 cc can't compile -0.0 into .data
20673         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
20674         rather than at compile-time.
20675         * tests/test-floorl.c (minus_zero): Likewise.
20676         * tests/test-frexpl.c (minus_zero): Likewise.
20677         * tests/test-isnan.c (minus_zerol): Likewise.
20678         * tests/test-isnanl.h (minus_zero): Likewise.
20679         * tests/test-ldexpl.c (minus_zero): Likewise.
20680         * tests/test-roundl.c (minus_zero): Likewise.
20681         * tests/test-signbit.c (minus_zerol): Likewise.
20682         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20683         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20684         * tests/test-truncl.c (minus_zero): Likewise.
20685         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20686         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20687         Reported by Tom G. Christensen and Nelson H. F. Beebe.
20689 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20691         regex: fix glibc bug 9697
20692         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
20693         handling.
20695 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20697         regex: fix glibc bug 697
20698         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
20699         being NULL also if there are no backreferences.
20701 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20703         regex: merge glibc changes
20704         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
20705         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
20706         re_string_skip_chars, re_string_reconstruct): Likewise.
20707         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
20709 2009-01-07  Jim Meyering  <meyering@redhat.com>
20711         poll: filter through cppi
20712         * lib/poll.c: Indent cpp directives to reflect nesting.
20714 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
20716         poll: don't return uninitialized
20717         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
20719 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
20721         avoid compile failure on AIX 6.1
20722         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
20723         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
20725 2009-01-04  Jim Meyering  <meyering@redhat.com>
20727         remove duplicate inclusion of <stdio.h>
20728         * tests/test-fprintf-posix.c: Likewise.
20729         * tests/test-printf-posix.c: Likewise.
20730         * tests/test-snprintf-posix.c: Likewise.
20731         * tests/test-sprintf-posix.c: Likewise.
20732         * tests/test-vasprintf-posix.c: Likewise.
20733         * tests/test-vfprintf-posix.c: Likewise.
20734         * tests/test-vprintf-posix.c: Likewise.
20735         * tests/test-vsnprintf-posix.c: Likewise.
20736         * tests/test-vsprintf-posix.c: Likewise.
20738 2009-01-03  Jim Meyering  <meyering@redhat.com>
20740         gnulib-tool: fix sed-based filtering
20741         * gnulib-tool (func_filter_filelist): Remove extra backslash
20742         in sed_fff_filter definition.
20744 2009-01-02  Jim Meyering  <meyering@redhat.com>
20746         strftime: avoid compilation failure on Solaris 2.6
20747         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
20748         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
20749         Don't #define mbrlen or mbsinit, since now they're guaranteed to
20750         be available.  Reported by Tom G. Christensen.  Details in
20751         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
20753 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20754             Bruno Haible  <bruno@clisp.org>
20756         Speed up gnulib-tool by doing more string processing through shell
20757         built-ins.
20758         * gnulib-tool (fast_func_append): New variable.
20759         (func_remove_prefix, func_remove_suffix): New functions.
20760         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
20761         (func_filter_filelist): New function.
20762         (func_get_dependencies): Use func_remove_suffix instead of sed.
20763         (func_get_automake_snippet): Use func_filter_filelist instead of a
20764         subshell and sed invocation.
20766 2009-01-01  Bruno Haible  <bruno@clisp.org>
20768         Fix a security bug.
20769         * gnulib-tool (func_import, import, update): Don't allow the characters
20770         '"', '$', '`', '\' in macro arguments that become part of commands that
20771         are evaluated.
20773 2009-01-01  Bruno Haible  <bruno@clisp.org>
20775         * gnulib-tool (func_reset_sigpipe): Add more comments.
20777 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20779         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
20780         func_emit_tests_Makefile_am, func_import): Abort loops early if we
20781         already know the answer.
20783 2009-01-01  Jim Meyering  <meyering@redhat.com>
20785         * lib/version-etc.c (version_etc_va): Update copyright year.
20787 2008-12-30  Bruno Haible  <bruno@clisp.org>
20789         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
20790         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
20791         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
20793 2008-12-29  Eric Blake  <ebb9@byu.net>
20795         multiarch: avoid autoconf AC_REQUIRE bug
20796         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
20797         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
20798         2.63 and older.
20799         Reported by Bruno Haible, and analyzed in
20800         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
20802 2008-12-29  Bruno Haible  <bruno@clisp.org>
20804         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
20805         files in subdirectories correctly.
20806         Reported by Ralf Wildenhues.
20808 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20810         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
20811         rather than 'join FILE -', for Solaris join.
20813 2008-12-29  Bruno Haible  <bruno@clisp.org>
20815         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
20816         quoting.
20817         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20818         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20819         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20820         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
20821         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20822         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20823         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20824         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20825         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20826         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20827         * m4/nls.m4 (AM_NLS): Likewise.
20828         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
20829         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20830         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20831         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20832         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20833         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20834         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
20835         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20836         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20837         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20838         * m4/xsize.m4 (gl_XSIZE): Likewise.
20839         Suggested by Jim Meyering.
20841 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20843         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
20844         * lib/parse-duration.c: use a switch instead of cascading if's.
20846 2008-12-29  Eric Blake  <ebb9@byu.net>
20848         wchar.h: supply WEOF on Irix 5.3
20849         * lib/wchar.in.h (wint_t): Also supply WEOF.
20850         * lib/wctype.in.h (wint_t): Likewise.
20851         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
20852         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
20853         Reported by Tom G. Christensen.
20855 2008-12-26  Bruno Haible  <bruno@clisp.org>
20857         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
20858         i486, i586, i686.
20860 2008-12-26  Bruno Haible  <bruno@clisp.org>
20862         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
20864 2008-12-26  Bruno Haible  <bruno@clisp.org>
20866         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
20867         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
20868         not __STDC_CONSTANT_MACROS.
20869         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20871 2008-12-25  Bruno Haible  <bruno@clisp.org>
20873         Add support for universal builds to vasnprintf.
20874         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
20875         universal builds, guess no.
20876         * modules/vasnprintf-posix (Depends-on): Add multiarch.
20877         * modules/vasprintf-posix (Depends-on): Likewise.
20878         * modules/fprintf-posix (Depends-on): Likewise.
20879         * modules/vfprintf-posix (Depends-on): Likewise.
20880         * modules/snprintf-posix (Depends-on): Likewise.
20881         * modules/vsnprintf-posix (Depends-on): Likewise.
20882         * modules/sprintf-posix (Depends-on): Likewise.
20883         * modules/vsprintf-posix (Depends-on): Likewise.
20884         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20885         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20886         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20887         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20888         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20889         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20890         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20892         Add support for universal builds to <inttypes.h>.
20893         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
20894         _SCNu64_PREFIX): In Apple
20895         universal builds, define directly, using _LP64.
20896         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
20897         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
20898         * modules/inttypes (Depends-on): Add multiarch.
20899         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
20901         Add support for universal builds to <stdint.h>.
20902         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
20903         universal builds, define directly, using _LP64.
20904         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
20905         Apple universal builds, don't test for the size and suffix of ptrdiff_t
20906         and size_t.
20907         * modules/stdint (Depends-on): Add multiarch.
20908         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
20910         New module 'multiarch'.
20911         * modules/multiarch: New file.
20912         * m4/multiarch.m4: New file.
20914 2008-12-25  Bruno Haible  <bruno@clisp.org>
20916         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
20918 2008-12-25  Bruno Haible  <bruno@clisp.org>
20920         * modules/btowc (License): Relicense under LGPLv2+.
20921         * modules/mbsinit (License): Likewise.
20922         * modules/mbrtowc (License): Likewise.
20923         * modules/wcrtomb (License): Likewise.
20924         * modules/streq (License): Likewise.
20925         Reported by David Lutterkort <lutter@redhat.com>.
20927 2008-12-23  Bruno Haible  <bruno@clisp.org>
20929         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
20931 2008-12-23  Bruno Haible  <bruno@clisp.org>
20933         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
20934         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
20935         GETADDRINFO_LIB, not in LIBS.
20936         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
20937         * modules/canon-host (Link): Likewise.
20938         * NEWS: Mention the change.
20939         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
20940         GETADDRINFO_LIB.
20942 2008-12-22  Bruno Haible  <bruno@clisp.org>
20944         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
20945         * doc/posix-functions/iswalpha_l.texi: Likewise.
20946         * doc/posix-functions/iswblank_l.texi: Likewise.
20947         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20948         * doc/posix-functions/iswctype_l.texi: Likewise.
20949         * doc/posix-functions/iswdigit_l.texi: Likewise.
20950         * doc/posix-functions/iswgraph_l.texi: Likewise.
20951         * doc/posix-functions/iswlower_l.texi: Likewise.
20952         * doc/posix-functions/iswprint_l.texi: Likewise.
20953         * doc/posix-functions/iswpunct_l.texi: Likewise.
20954         * doc/posix-functions/iswspace_l.texi: Likewise.
20955         * doc/posix-functions/iswupper_l.texi: Likewise.
20956         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20957         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
20958         * doc/posix-functions/open_wmemstream.texi: Likewise.
20959         * doc/posix-functions/swscanf.texi: Likewise.
20960         * doc/posix-functions/towctrans_l.texi: Likewise.
20961         * doc/posix-functions/towlower.texi: Likewise.
20962         * doc/posix-functions/towlower_l.texi: Likewise.
20963         * doc/posix-functions/towupper.texi: Likewise.
20964         * doc/posix-functions/towupper_l.texi: Likewise.
20965         * doc/posix-functions/vfwprintf.texi: Likewise.
20966         * doc/posix-functions/vfwscanf.texi: Likewise.
20967         * doc/posix-functions/vswscanf.texi: Likewise.
20968         * doc/posix-functions/vwprintf.texi: Likewise.
20969         * doc/posix-functions/vwscanf.texi: Likewise.
20970         * doc/posix-functions/wcpcpy.texi: Likewise.
20971         * doc/posix-functions/wcpncpy.texi: Likewise.
20972         * doc/posix-functions/wcscasecmp.texi: Likewise.
20973         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
20974         * doc/posix-functions/wcscoll_l.texi: Likewise.
20975         * doc/posix-functions/wcsdup.texi: Likewise.
20976         * doc/posix-functions/wcsncasecmp.texi: Likewise.
20977         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
20978         * doc/posix-functions/wcsnlen.texi: Likewise.
20979         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20980         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20981         * doc/posix-functions/wctrans_l.texi: Likewise.
20982         * doc/posix-functions/wctype_l.texi: Likewise.
20983         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
20984         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
20985         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
20986         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
20987         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
20988         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
20989         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
20990         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
20991         * doc/glibc-functions/wcschrnul.texi: Likewise.
20992         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20993         * doc/glibc-functions/wcstod_l.texi: Likewise.
20994         * doc/glibc-functions/wcstof_l.texi: Likewise.
20995         * doc/glibc-functions/wcstol_l.texi: Likewise.
20996         * doc/glibc-functions/wcstold_l.texi: Likewise.
20997         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20998         * doc/glibc-functions/wcstoq.texi: Likewise.
20999         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21000         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21001         * doc/glibc-functions/wcstouq.texi: Likewise.
21002         * doc/glibc-functions/wmempcpy.texi: Likewise.
21004 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21005             Eric Blake  <ebb9@byu.net>
21006             Paolo Bonzini  <bonzini@gnu.org>
21007             Bruno Haible  <bruno@clisp.org>
21009         Make c-stack work on Haiku.
21010         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21011         (c_stack_action): Use SA_ONSTACK flag.
21013 2008-12-22  Bruno Haible  <bruno@clisp.org>
21015         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21017 2008-12-22  Bruno Haible  <bruno@clisp.org>
21019         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21020         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21021         being overridden.
21022         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21023         New macros.
21024         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21026         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21027         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21029 2008-12-22  Bruno Haible  <bruno@clisp.org>
21031         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21032         from test code.
21034 2008-12-22  Eric Blake  <ebb9@byu.net>
21036         Avoid gcc warnings on cygwin.
21037         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21038         Avoid unused variable.
21039         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21040         Likewise.
21042 2008-12-22  Bruno Haible  <bruno@clisp.org>
21044         Remove HAVE_MBRTOWC conditionals.
21045         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21046         (mbscasecmp): Assume mbrtowc function.
21047         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21048         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21049         * lib/mbschr.c: Include mbuiter.h unconditionally.
21050         (mbschr): Assume mbrtowc function.
21051         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21052         (mbscspn): Assume mbrtowc function.
21053         * lib/mbslen.c: Include mbuiter.h unconditionally.
21054         (mbslen): Assume mbrtowc function.
21055         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21056         (mbsncasecmp): Assume mbrtowc function.
21057         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21058         (mbsnlen): Assume mbrtowc function.
21059         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21060         (mbspbrk): Assume mbrtowc function.
21061         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21062         (mbspcasecmp): Assume mbrtowc function.
21063         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21064         (mbsrchr): Assume mbrtowc function.
21065         * lib/mbssep.c: Include mbuiter.h unconditionally.
21066         (mbssep): Assume mbrtowc function.
21067         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21068         (mbsspn): Assume mbrtowc function.
21069         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21070         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21071         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21072         (mbstok_r): Assume mbrtowc function.
21073         * lib/propername.c: Include mbuiter.h unconditionally.
21074         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21075         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21076         (trim2): Assume mbrtowc function.
21077         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21078         (mbsnwidth): Assume mbrtowc function.
21079         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21080         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21081         fallback definitions.
21082         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21084 2008-12-22  Bruno Haible  <bruno@clisp.org>
21086         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21088 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21090         * modules/regex: Request emulations for the mb*/wc* functions we need.
21091         * m4/regex.m4: Don't look for those functions here.
21092         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21094 2008-12-22  Bruno Haible  <bruno@clisp.org>
21096         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21098 2008-12-21  Bruno Haible  <bruno@clisp.org>
21100         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21101         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21102         (Include): Remove conditionalization.
21103         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21104         (Include): Remove conditionalization.
21105         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21106         (Include): Remove conditionalization.
21107         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21108         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21109         * NEWS: Mention the change.
21110         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21111         via Sergey Poznyakoff <gray@gnu.org.ua>.
21113 2008-12-21  Bruno Haible  <bruno@clisp.org>
21115         * MODULES.html.sh (Extended multibyte and wide character utilities
21116         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21117         wcrtomb, wcsrtombs.
21118         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21119         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21120         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21121         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21123 2008-12-21  Bruno Haible  <bruno@clisp.org>
21125         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21127 2008-12-21  Bruno Haible  <bruno@clisp.org>
21129         * modules/wcsnrtombs-tests: New file.
21130         * tests/test-wcsnrtombs1.sh: New file.
21131         * tests/test-wcsnrtombs2.sh: New file.
21132         * tests/test-wcsnrtombs3.sh: New file.
21133         * tests/test-wcsnrtombs4.sh: New file.
21134         * tests/test-wcsnrtombs.c: New file.
21136         New module 'wcsnrtombs'.
21137         * lib/wchar.in.h (wcsnrtombs): New declaration.
21138         * lib/wcsnrtombs.c: New file.
21139         * lib/wcsrtombs-state.c: New file.
21140         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21141         (internal_state): Remove variable.
21142         * m4/wcsnrtombs.m4: New file.
21143         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21144         compilation units.
21145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21146         HAVE_WCSNRTOMBS.
21147         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21148         HAVE_WCSNRTOMBS.
21149         * modules/wcsnrtombs: New file.
21150         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21151         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21153 2008-12-21  Bruno Haible  <bruno@clisp.org>
21155         * modules/wcsrtombs-tests: New file.
21156         * tests/test-wcsrtombs1.sh: New file.
21157         * tests/test-wcsrtombs2.sh: New file.
21158         * tests/test-wcsrtombs3.sh: New file.
21159         * tests/test-wcsrtombs4.sh: New file.
21160         * tests/test-wcsrtombs.c: New file.
21162         New module 'wcsrtombs'.
21163         * lib/wchar.in.h (wcsrtombs): New declaration.
21164         * lib/wcsrtombs.c: New file.
21165         * m4/wcsrtombs.m4: New file.
21166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21167         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21169         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21170         * modules/wcsrtombs: New file.
21171         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21172         bugs.
21174 2008-12-21  Bruno Haible  <bruno@clisp.org>
21176         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21177         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21178         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21179         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21180         if not correct.
21181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21182         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21183         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21184         m4/locale-zh.m4, m4/codeset.m4.
21185         * doc/posix-functions/wcrtomb.texi: Document the bug.
21187 2008-12-21  Bruno Haible  <bruno@clisp.org>
21189         Work around a btowc() bug on IRIX 6.5.
21190         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21191         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21192         REPLACE_WTOBC if not.
21193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21194         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21195         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21197 2008-12-21  Bruno Haible  <bruno@clisp.org>
21199         * modules/wcrtomb-tests: New file.
21200         * tests/test-wcrtomb.sh: New file.
21201         * tests/test-wcrtomb.c: New file.
21203         New module 'wcrtomb'.
21204         * lib/wchar.in.h (wcrtomb): New declaration.
21205         * lib/wcrtomb.c: New file.
21206         * m4/wcrtomb.m4: New file.
21207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21208         HAVE_WCRTOMB.
21209         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21210         HAVE_WCRTOMB.
21211         * modules/wcrtomb: New file.
21212         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21214 2008-12-21  Bruno Haible  <bruno@clisp.org>
21216         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21217         * modules/mbsrtowcs (Files): Likewise.
21218         * modules/wctob (Files): Likewise.
21219         * modules/c-strcase-tests (Files): Likewise.
21220         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21221         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21222         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21223         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21224         * modules/vasnprintf-posix-tests (Files): Likewise.
21226 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21228         gitlog-to-changelog: pass all command-line arguments to git-log
21229         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21230         it is sometimes convenient to filter the commits in various ways.
21231         gitlog-to-changelog only allows --since to specify a start date,
21232         but git-log itself supports many other filtering mechanisms.
21233         At the moment, I want to filter by branch name.  Rather than
21234         adding a --branch option to gitlog-to-changelog, it seems more
21235         flexible to simply pass all options directly to git-log and let
21236         git do the work.  Notice that this effectively makes --since a
21237         redundant option for gitlog-to-changelog, but removing it would
21238         require current usage to change since calls would then require
21239         an additional '--'.
21241 2008-12-21  Bruno Haible  <bruno@clisp.org>
21243         * modules/mbsnrtowcs-tests: New file.
21244         * tests/test-mbsnrtowcs1.sh: New file.
21245         * tests/test-mbsnrtowcs2.sh: New file.
21246         * tests/test-mbsnrtowcs3.sh: New file.
21247         * tests/test-mbsnrtowcs4.sh: New file.
21248         * tests/test-mbsnrtowcs.c: New file.
21250         New module 'mbsnrtowcs'.
21251         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21252         * lib/mbsnrtowcs.c: New file.
21253         * lib/mbsrtowcs-state.c: New file.
21254         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21255         (internal_state): Remove variable.
21256         * m4/mbsnrtowcs.m4: New file.
21257         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21258         compilation units.
21259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21260         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21261         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21262         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21263         * modules/mbsnrtowcs: New file.
21264         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21265         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21266         portability problem.
21268 2008-12-21  Bruno Haible  <bruno@clisp.org>
21270         Work around mbsrtowcs bug.
21271         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21272         (gl_FUNC_MBSRTOWCS): Invoke it.
21273         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21274         m4/locale-zh.m4.
21275         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21277 2008-12-21  Bruno Haible  <bruno@clisp.org>
21279         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21281 2008-12-21  Bruno Haible  <bruno@clisp.org>
21283         Update doc for AIX.
21284         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21285         16-bit wchar_t type.
21286         * doc/posix-functions/btowc.texi: Likewise.
21287         * doc/posix-functions/fgetwc.texi: Likewise.
21288         * doc/posix-functions/fgetws.texi: Likewise.
21289         * doc/posix-functions/fputwc.texi: Likewise.
21290         * doc/posix-functions/fputws.texi: Likewise.
21291         * doc/posix-functions/fwide.texi: Likewise.
21292         * doc/posix-functions/fwprintf.texi: Likewise.
21293         * doc/posix-functions/fwscanf.texi: Likewise.
21294         * doc/posix-functions/getwchar.texi: Likewise.
21295         * doc/posix-functions/getwc.texi: Likewise.
21296         * doc/posix-functions/iswalnum.texi: Likewise.
21297         * doc/posix-functions/iswalpha.texi: Likewise.
21298         * doc/posix-functions/iswblank.texi: Likewise.
21299         * doc/posix-functions/iswcntrl.texi: Likewise.
21300         * doc/posix-functions/iswctype.texi: Likewise.
21301         * doc/posix-functions/iswdigit.texi: Likewise.
21302         * doc/posix-functions/iswgraph.texi: Likewise.
21303         * doc/posix-functions/iswlower.texi: Likewise.
21304         * doc/posix-functions/iswprint.texi: Likewise.
21305         * doc/posix-functions/iswpunct.texi: Likewise.
21306         * doc/posix-functions/iswspace.texi: Likewise.
21307         * doc/posix-functions/iswupper.texi: Likewise.
21308         * doc/posix-functions/iswxdigit.texi: Likewise.
21309         * doc/posix-functions/mbrtowc.texi: Likewise.
21310         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21311         * doc/posix-functions/mbstowcs.texi: Likewise.
21312         * doc/posix-functions/mbtowc.texi: Likewise.
21313         * doc/posix-functions/putwchar.texi: Likewise.
21314         * doc/posix-functions/putwc.texi: Likewise.
21315         * doc/posix-functions/swprintf.texi: Likewise.
21316         * doc/posix-functions/tolower.texi: Likewise.
21317         * doc/posix-functions/toupper.texi: Likewise.
21318         * doc/posix-functions/towctrans.texi: Likewise.
21319         * doc/posix-functions/ungetwc.texi: Likewise.
21320         * doc/posix-functions/vswprintf.texi: Likewise.
21321         * doc/posix-functions/wcrtomb.texi: Likewise.
21322         * doc/posix-functions/wcscat.texi: Likewise.
21323         * doc/posix-functions/wcschr.texi: Likewise.
21324         * doc/posix-functions/wcscmp.texi: Likewise.
21325         * doc/posix-functions/wcscoll.texi: Likewise.
21326         * doc/posix-functions/wcscpy.texi: Likewise.
21327         * doc/posix-functions/wcscspn.texi: Likewise.
21328         * doc/posix-functions/wcsftime.texi: Likewise.
21329         * doc/posix-functions/wcslen.texi: Likewise.
21330         * doc/posix-functions/wcsncat.texi: Likewise.
21331         * doc/posix-functions/wcsncmp.texi: Likewise.
21332         * doc/posix-functions/wcsncpy.texi: Likewise.
21333         * doc/posix-functions/wcspbrk.texi: Likewise.
21334         * doc/posix-functions/wcsrchr.texi: Likewise.
21335         * doc/posix-functions/wcsrtombs.texi: Likewise.
21336         * doc/posix-functions/wcsspn.texi: Likewise.
21337         * doc/posix-functions/wcsstr.texi: Likewise.
21338         * doc/posix-functions/wcstod.texi: Likewise.
21339         * doc/posix-functions/wcstof.texi: Likewise.
21340         * doc/posix-functions/wcstoimax.texi: Likewise.
21341         * doc/posix-functions/wcstok.texi: Likewise.
21342         * doc/posix-functions/wcstold.texi: Likewise.
21343         * doc/posix-functions/wcstoll.texi: Likewise.
21344         * doc/posix-functions/wcstol.texi: Likewise.
21345         * doc/posix-functions/wcstombs.texi: Likewise.
21346         * doc/posix-functions/wcstoull.texi: Likewise.
21347         * doc/posix-functions/wcstoul.texi: Likewise.
21348         * doc/posix-functions/wcstoumax.texi: Likewise.
21349         * doc/posix-functions/wcswidth.texi: Likewise.
21350         * doc/posix-functions/wcsxfrm.texi: Likewise.
21351         * doc/posix-functions/wctob.texi: Likewise.
21352         * doc/posix-functions/wctomb.texi: Likewise.
21353         * doc/posix-functions/wctrans.texi: Likewise.
21354         * doc/posix-functions/wctype.texi: Likewise.
21355         * doc/posix-functions/wcwidth.texi: Likewise.
21356         * doc/posix-functions/wmemchr.texi: Likewise.
21357         * doc/posix-functions/wmemcmp.texi: Likewise.
21358         * doc/posix-functions/wmemcpy.texi: Likewise.
21359         * doc/posix-functions/wmemmove.texi: Likewise.
21360         * doc/posix-functions/wmemset.texi: Likewise.
21361         * doc/posix-functions/wprintf.texi: Likewise.
21362         * doc/posix-functions/wscanf.texi: Likewise.
21364 2008-12-21  Bruno Haible  <bruno@clisp.org>
21366         Update doc for HP-UX 11.11.
21367         * doc/posix-functions/btowc.texi: Clarify that the function is missing
21368         in HP-UX version 11.00, not in all versions of HP-UX 11.
21369         * doc/posix-functions/fwide.texi: Likewise.
21370         * doc/posix-functions/fwprintf.texi: Likewise.
21371         * doc/posix-functions/fwscanf.texi: Likewise.
21372         * doc/posix-functions/inet_ntop.texi: Likewise.
21373         * doc/posix-functions/inet_pton.texi: Likewise.
21374         * doc/posix-functions/mbrlen.texi: Likewise.
21375         * doc/posix-functions/mbrtowc.texi: Likewise.
21376         * doc/posix-functions/mbsinit.texi: Likewise.
21377         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21378         * doc/posix-functions/swprintf.texi: Likewise.
21379         * doc/posix-functions/swscanf.texi: Likewise.
21380         * doc/posix-functions/towctrans.texi: Likewise.
21381         * doc/posix-functions/vfwprintf.texi: Likewise.
21382         * doc/posix-functions/vswprintf.texi: Likewise.
21383         * doc/posix-functions/vwprintf.texi: Likewise.
21384         * doc/posix-functions/wcrtomb.texi: Likewise.
21385         * doc/posix-functions/wcsrtombs.texi: Likewise.
21386         * doc/posix-functions/wcsstr.texi: Likewise.
21387         * doc/posix-functions/wctob.texi: Likewise.
21388         * doc/posix-functions/wctrans.texi: Likewise.
21389         * doc/posix-functions/wmemchr.texi: Likewise.
21390         * doc/posix-functions/wmemcmp.texi: Likewise.
21391         * doc/posix-functions/wmemcpy.texi: Likewise.
21392         * doc/posix-functions/wmemmove.texi: Likewise.
21393         * doc/posix-functions/wmemset.texi: Likewise.
21394         * doc/posix-functions/wprintf.texi: Likewise.
21395         * doc/posix-functions/wscanf.texi: Likewise.
21397 2008-12-21  Bruno Haible  <bruno@clisp.org>
21399         Work around a portability problem.
21400         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
21401         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
21403 2008-12-20  Bruno Haible  <bruno@clisp.org>
21405         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
21406         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
21407         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
21408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
21409         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
21411         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
21412         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
21413         set.
21414         (GNULIB_defined_mbstate_t): New macro.
21415         (mbsinit): Redefine if REPLACE_MBSINIT is set.
21416         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
21417         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
21418         reuses the system's mbrtowc function but works around the bugs.
21419         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
21420         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
21421         macros.
21422         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
21423         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
21424         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
21425         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
21426         REPLACE_MBSINIT if mbsinit needs to be overridden.
21427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
21428         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21429         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
21430         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21431         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21432         m4/locale-zh.m4.
21433         (Depends): Add mbsinit.
21434         * modules/mbsinit (Depends): Add mbrtowc.
21435         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
21437 2008-12-20  Bruno Haible  <bruno@clisp.org>
21439         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
21440         so that there are no conversion errors on AIX.
21441         * tests/test-mbsrtowcs.c (main): LIkewise.
21443 2008-12-20  Bruno Haible  <bruno@clisp.org>
21445         Work around wctob bug on Solaris <= 9.
21446         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
21447         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
21448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
21449         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
21450         * modules/wctob (Files): Add m4/locale-fr.m4.
21451         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
21453 2008-12-20  Bruno Haible  <bruno@clisp.org>
21455         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
21456         /dev/null.
21457         * tests/test-select-in.sh: Likewise.
21458         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21460 2008-12-20  Bruno Haible  <bruno@clisp.org>
21462         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
21463         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
21464         Cygwin 1.5.x.
21466 2008-12-20  Bruno Haible  <bruno@clisp.org>
21468         Ensure mbstate_t is defined on HP-UX 11.11.
21469         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
21470         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
21471         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
21472         AC_USE_SYSTEM_EXTENSIONS.
21473         * modules/fnmatch (Depends-on): Add extensions.
21474         * modules/mbrlen (Depends-on): Likewise.
21475         * modules/mbrtowc (Depends-on): Likewise.
21476         * modules/mbsinit (Depends-on): Likewise.
21477         * modules/mbsrtowcs (Depends-on): Likewise.
21478         * modules/mbswidth (Depends-on): Likewise.
21479         * modules/quotearg (Depends-on): Likewise.
21480         * modules/strftime (Depends-on): Likewise.
21482 2008-12-20  Bruno Haible  <bruno@clisp.org>
21484         Ensure wctob is declared on IRIX 6.5.
21485         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
21486         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
21487         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
21488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
21489         of HAVE_WCTOB.
21490         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
21491         HAVE_WCTOB.
21492         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
21494 2008-12-19  Bruno Haible  <bruno@clisp.org>
21496         * modules/mbsrtowcs-tests: New file.
21497         * tests/test-mbsrtowcs1.sh: New file.
21498         * tests/test-mbsrtowcs2.sh: New file.
21499         * tests/test-mbsrtowcs3.sh: New file.
21500         * tests/test-mbsrtowcs4.sh: New file.
21501         * tests/test-mbsrtowcs.c: New file.
21503         New module 'mbsrtowcs'.
21504         * lib/wchar.in.h (mbsrtowcs): New declaration.
21505         * lib/mbsrtowcs.c: New file.
21506         * m4/mbsrtowcs.m4: New file.
21507         * modules/mbsrtowcs: New file.
21508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
21509         HAVE_MBSRTOWCS.
21510         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
21511         HAVE_MBSRTOWCS.
21512         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
21514 2008-12-19  Bruno Haible  <bruno@clisp.org>
21516         New module 'mbrlen'.
21517         * lib/wchar.in.h (mbrlen): New declaration.
21518         * lib/mbrlen.c: New file.
21519         * m4/mbrlen.m4: New file.
21520         * modules/mbrlen: New file.
21521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
21522         HAVE_MBRLEN.
21523         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
21524         HAVE_MBRLEN.
21525         * doc/posix-functions/mbrlen.texi: Document the new module.
21527 2008-12-19  Bruno Haible  <bruno@clisp.org>
21529         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
21530         * modules/mbrtowc (Depends-on): Add verify.
21531         Suggested by Paul Eggert.
21533 2008-12-18  Bruno Haible  <bruno@clisp.org>
21535         * modules/mbsinit-tests: New file.
21536         * tests/test-mbsinit.sh: New file.
21537         * tests/test-mbsinit.c: New file.
21539 2008-12-18  Bruno Haible  <bruno@clisp.org>
21541         * modules/mbrtowc-tests: New file.
21542         * tests/test-mbrtowc1.sh: New file.
21543         * tests/test-mbrtowc2.sh: New file.
21544         * tests/test-mbrtowc3.sh: New file.
21545         * tests/test-mbrtowc4.sh: New file.
21546         * tests/test-mbrtowc.c: New file.
21548         New module 'mbrtowc'.
21549         * lib/wchar.in.h (mbstate_t): Override when the system does not have
21550         mbsinit and mbrtowc.
21551         (mbrtowc): New declaration.
21552         * lib/mbrtowc.c: New file.
21553         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
21554         * modules/mbrtowc: New file.
21555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
21556         HAVE_MBRTOWC.
21557         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
21558         HAVE_MBRTOWC.
21559         * doc/posix-functions/mbrtowc.texi: Document the new module.
21561 2008-12-18  Bruno Haible  <bruno@clisp.org>
21563         New module 'wctob'.
21564         * lib/wchar.in.h (wctob): New declaration.
21565         * lib/wctob.c: New file.
21566         * m4/wctob.m4: New file.
21567         * modules/wctob: New file.
21568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
21569         HAVE_WCTOB.
21570         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
21571         * doc/posix-functions/wctob.texi: Document the new module.
21573 2008-12-18  Bruno Haible  <bruno@clisp.org>
21575         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
21576         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
21578 2008-12-18  Simon Josefsson  <simon@josefsson.org>
21580         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
21581         G. Christensen" <tgc@jupiterrise.com>.
21583         * lib/flock.c: Need to include errno.h.  Reported by "Tom
21584         G. Christensen" <tgc@jupiterrise.com>.
21586         * lib/flock.c: Need to include string.h.  Reported by "Tom
21587         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
21588         <ebb9@byu.net>.
21590 2008-12-18  Bruno Haible  <bruno@clisp.org>
21592         * m4/locale-ja.m4: New file, from GNU gettext.
21594 2008-12-17  Bruno Haible  <bruno@clisp.org>
21596         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
21597         Suggested by Eric Blake.
21599 2008-12-17  Bruno Haible  <bruno@clisp.org>
21601         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
21603 2008-12-17  Bruno Haible  <bruno@clisp.org>
21605         * lib/mbsinit.c: Include verify.h. Verify an assumption.
21606         * modules/mbsinit (Depends-on): Add verify.
21607         Suggested by Paul Eggert.
21609 2008-12-17  Bruno Haible  <bruno@clisp.org>
21611         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
21612         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
21613         gl_FUNC_MBRTOWC.
21614         * m4/mbiter.m4 (gl_MBITER): LIkewise.
21615         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
21616         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
21617         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
21618         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
21619         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
21620         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
21621         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
21622         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
21623         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
21624         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
21625         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
21626         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
21627         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
21628         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
21629         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21630         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
21631         * modules/trim (configure.ac): Likewise.
21633 2008-12-17  Bruno Haible  <bruno@clisp.org>
21635         * modules/btowc-tests: New file.
21636         * tests/test-btowc1.sh: New file.
21637         * tests/test-btowc2.sh: New file.
21638         * tests/test-btowc.c: New file.
21640         New module 'btowc'.
21641         * lib/wchar.in.h (btowc): New declaration.
21642         * lib/btowc.c: New file.
21643         * m4/btowc.m4: New file.
21644         * modules/btowc: New file.
21645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
21646         HAVE_BTOWC.
21647         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
21648         * doc/posix-functions/btowc.texi: Document the new module.
21650 2008-12-17  Bruno Haible  <bruno@clisp.org>
21652         New module 'mbsinit'.
21653         * lib/wchar.in.h (mbsinit): New declaration.
21654         * lib/mbsinit.c: New file.
21655         * m4/mbsinit.m4: New file.
21656         * modules/mbsinit: New file.
21657         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
21658         HAVE_MBSINIT.
21659         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
21660         HAVE_MBSINIT.
21661         * doc/posix-functions/mbsinit.texi: Document the new module.
21663 2008-12-16  Bruno Haible  <bruno@clisp.org>
21665         * lib/unistd.in.h: Add comment.
21666         * tests/test-environ.c: Don't include <stdlib.h>.
21668 2008-12-16  Bruno Haible  <bruno@clisp.org>
21670         * lib/parse-duration.h (parse_duration): Document return value
21671         convention.
21672         * lib/parse-duration.c: Include specification header first. Add
21673         comments.
21674         (_): Remove macro.
21675         (parse_year_month_day, parse_hour_minute_second): Move side effects
21676         outside of strchr call.
21677         (parse_non_iso8601): Move side effects outside of isspace call.
21678         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
21679         call.
21681 2008-12-16  Bruno Haible  <bruno@clisp.org>
21683         * tests/test-parse-duration.sh: Produce no output when the test
21684         succeeds.
21686 2008-12-16  Bruno Haible  <bruno@clisp.org>
21688         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
21689         expressions.
21691 2008-12-15  Bruno Haible  <bruno@clisp.org>
21693         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
21694         * doc/glibc-functions/flistxattr.texi: Likewise.
21695         * doc/glibc-functions/fopencookie.texi: Likewise.
21696         * doc/glibc-functions/fremovexattr.texi: Likewise.
21697         * doc/glibc-functions/fsetxattr.texi: Likewise.
21698         * doc/glibc-functions/getxattr.texi: Likewise.
21699         * doc/glibc-functions/lgetxattr.texi: Likewise.
21700         * doc/glibc-functions/listxattr.texi: Likewise.
21701         * doc/glibc-functions/llistxattr.texi: Likewise.
21702         * doc/glibc-functions/lremovexattr.texi: Likewise.
21703         * doc/glibc-functions/lsetxattr.texi: Likewise.
21704         * doc/glibc-functions/removexattr.texi: Likewise.
21705         * doc/glibc-functions/setxattr.texi: Likewise.
21706         * doc/posix-functions/open_memstream.texi: Likewise.
21708 2008-12-15  Eric Blake  <ebb9@byu.net>
21710         Update doc for cygwin 1.7.
21711         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
21712         functions.
21713         * doc/posix-functions/fchmodat.texi: Likewise.
21714         * doc/posix-functions/fchownat.texi: Likewise.
21715         * doc/posix-functions/fdopendir.texi: Likewise.
21716         * doc/posix-functions/fmemopen.texi: Likewise.
21717         * doc/posix-functions/freeaddrinfo.texi: Likewise.
21718         * doc/posix-functions/fstatat.texi: Likewise.
21719         * doc/posix-functions/futimens.texi: Likewise.
21720         * doc/posix-functions/gai_strerror.texi: Likewise.
21721         * doc/posix-functions/getaddrinfo.texi: Likewise.
21722         * doc/posix-functions/getnameinfo.texi: Likewise.
21723         * doc/posix-functions/if_freenameindex.texi: Likewise.
21724         * doc/posix-functions/if_indextoname.texi: Likewise.
21725         * doc/posix-functions/if_nameindex.texi: Likewise.
21726         * doc/posix-functions/if_nametoindex.texi: Likewise.
21727         * doc/posix-functions/insque.texi: Likewise.
21728         * doc/posix-functions/linkat.texi: Likewise.
21729         * doc/posix-functions/llrint.texi: Likewise.
21730         * doc/posix-functions/llrintf.texi: Likewise.
21731         * doc/posix-functions/llrintl.texi: Likewise.
21732         * doc/posix-functions/lockf.texi: Likewise.
21733         * doc/posix-functions/lrintl.texi: Likewise.
21734         * doc/posix-functions/mkdirat.texi: Likewise.
21735         * doc/posix-functions/mkfifoat.texi: Likewise.
21736         * doc/posix-functions/mknodat.texi: Likewise.
21737         * doc/posix-functions/mq_close.texi: Likewise.
21738         * doc/posix-functions/mq_getattr.texi: Likewise.
21739         * doc/posix-functions/mq_notify.texi: Likewise.
21740         * doc/posix-functions/mq_open.texi: Likewise.
21741         * doc/posix-functions/mq_receive.texi: Likewise.
21742         * doc/posix-functions/mq_send.texi: Likewise.
21743         * doc/posix-functions/mq_setattr.texi: Likewise.
21744         * doc/posix-functions/mq_timedreceive.texi: Likewise.
21745         * doc/posix-functions/mq_timedsend.texi: Likewise.
21746         * doc/posix-functions/mq_unlink.texi: Likewise.
21747         * doc/posix-functions/open_memstream.texi: Likewise.
21748         * doc/posix-functions/openat.texi: Likewise.
21749         * doc/posix-functions/posix_fadvise.texi: Likewise.
21750         * doc/posix-functions/posix_fallocate.texi: Likewise.
21751         * doc/posix-functions/posix_madvise.texi: Likewise.
21752         * doc/posix-functions/posix_memalign.texi: Likewise.
21753         * doc/posix-functions/posix_openpt.texi: Likewise.
21754         * doc/posix-functions/readlinkat.texi: Likewise.
21755         * doc/posix-functions/remque.texi: Likewise.
21756         * doc/posix-functions/renameat.texi: Likewise.
21757         * doc/posix-functions/rintl.texi: Likewise.
21758         * doc/posix-functions/sem_unlink.texi: Likewise.
21759         * doc/posix-functions/shm_open.texi: Likewise.
21760         * doc/posix-functions/shm_unlink.texi: Likewise.
21761         * doc/posix-functions/signgam.texi: Likewise.
21762         * doc/posix-functions/sigset.texi: Likewise.
21763         * doc/posix-functions/stpcpy.texi: Likewise.
21764         * doc/posix-functions/stpncpy.texi: Likewise.
21765         * doc/posix-functions/strerror.texi: Likewise.
21766         * doc/posix-functions/strtod.texi: Likewise.
21767         * doc/posix-functions/symlinkat.texi: Likewise.
21768         * doc/posix-functions/unlinkat.texi: Likewise.
21769         * doc/posix-functions/utimensat.texi: Likewise.
21770         * doc/glibc-functions/bindresvport.texi: Likewise.
21771         * doc/glibc-functions/dn_expand.texi: Likewise.
21772         * doc/glibc-functions/exp10.texi: Likewise.
21773         * doc/glibc-functions/exp10f.texi: Likewise.
21774         * doc/glibc-functions/fgetxattr.texi: Likewise.
21775         * doc/glibc-functions/flistxattr.texi: Likewise.
21776         * doc/glibc-functions/fopencookie.texi: Likewise.
21777         * doc/glibc-functions/freeifaddrs.texi: Likewise.
21778         * doc/glibc-functions/fremovexattr.texi: Likewise.
21779         * doc/glibc-functions/fsetxattr.texi: Likewise.
21780         * doc/glibc-functions/getifaddrs.texi: Likewise.
21781         * doc/glibc-functions/getxattr.texi: Likewise.
21782         * doc/glibc-functions/lgetxattr.texi: Likewise.
21783         * doc/glibc-functions/listxattr.texi: Likewise.
21784         * doc/glibc-functions/llistxattr.texi: Likewise.
21785         * doc/glibc-functions/lremovexattr.texi: Likewise.
21786         * doc/glibc-functions/lsetxattr.texi: Likewise.
21787         * doc/glibc-functions/pow10.texi: Likewise.
21788         * doc/glibc-functions/pow10f.texi: Likewise.
21789         * doc/glibc-functions/rcmd_af.texi: Likewise.
21790         * doc/glibc-functions/removexattr.texi: Likewise.
21791         * doc/glibc-functions/res_init.texi: Likewise.
21792         * doc/glibc-functions/res_mkquery.texi: Likewise.
21793         * doc/glibc-functions/res_query.texi: Likewise.
21794         * doc/glibc-functions/res_querydomain.texi: Likewise.
21795         * doc/glibc-functions/res_send.texi: Likewise.
21796         * doc/glibc-functions/rresvport_af.texi: Likewise.
21797         * doc/glibc-functions/setxattr.texi: Likewise.
21798         * doc/glibc-functions/strcasestr.texi: Likewise.
21800 2008-12-15  Bruno Haible  <bruno@clisp.org>
21802         Fix compilation error on OSF/1 4.0.
21803         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
21804         <sys/time.h>, simply delegate to the system header.
21805         Reported by Daniel Richard G. <oss@teragram.com>.
21807 2008-12-15  Bruno Haible  <bruno@clisp.org>
21809         * doc/posix-functions/openat.texi: Mention the 'openat' module.
21810         * doc/posix-functions/fchmodat.texi: Likewise.
21811         * doc/posix-functions/fchownat.texi: Likewise.
21812         * doc/posix-functions/fdopendir.texi: Likewise.
21813         * doc/posix-functions/fstatat.texi: Likewise.
21814         * doc/posix-functions/mkdirat.texi: Likewise.
21815         * doc/posix-functions/unlinkat.texi: Likewise.
21817 2008-12-14  Bruno Haible  <bruno@clisp.org>
21819         Update doc for POSIX:2008.
21820         * doc/posix-functions/faccessat.texi: New file.
21821         * doc/posix-functions/fchmodat.texi: New file.
21822         * doc/posix-functions/fchownat.texi: New file.
21823         * doc/posix-functions/fdopendir.texi: New file.
21824         * doc/posix-functions/fstatat.texi: New file.
21825         * doc/posix-functions/futimens.texi: New file.
21826         * doc/posix-functions/linkat.texi: New file.
21827         * doc/posix-functions/mkdirat.texi: New file.
21828         * doc/posix-functions/mkfifoat.texi: New file.
21829         * doc/posix-functions/mknodat.texi: New file.
21830         * doc/posix-functions/open_wmemstream.texi: New file.
21831         * doc/posix-functions/openat.texi: New file.
21832         * doc/posix-functions/psiginfo.texi: New file.
21833         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
21834         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
21835         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
21836         * doc/posix-functions/readlinkat.texi: New file.
21837         * doc/posix-functions/renameat.texi: New file.
21838         * doc/posix-functions/strerror_l.texi: New file.
21839         * doc/posix-functions/symlinkat.texi: New file.
21840         * doc/posix-functions/unlinkat.texi: New file.
21841         * doc/posix-functions/utimensat.texi: New file.
21842         * doc/gnulib.texi (Function Substitutes): Add these subsections.
21844 2008-12-14  Bruno Haible  <bruno@clisp.org>
21846         Update doc for POSIX:2008.
21847         * doc/posix-functions/alphasort.texi: Renamed from
21848         doc/glibc-functions/alphasort.texi.
21849         * doc/posix-functions/dirfd.texi: Renamed from
21850         doc/glibc-functions/dirfd.texi.
21851         * doc/posix-functions/dprintf.texi: Renamed from
21852         doc/glibc-functions/dprintf.texi.
21853         * doc/posix-functions/duplocale.texi: Renamed from
21854         doc/glibc-functions/duplocale.texi.
21855         * doc/posix-functions/fexecve.texi: Renamed from
21856         doc/glibc-functions/fexecve.texi.
21857         * doc/posix-functions/fmemopen.texi: Renamed from
21858         doc/glibc-functions/fmemopen.texi.
21859         * doc/posix-functions/freelocale.texi: Renamed from
21860         doc/glibc-functions/freelocale.texi.
21861         * doc/posix-functions/getdate_err.texi: Renamed from
21862         doc/glibc-functions/getdate_err.texi.
21863         * doc/posix-functions/isalnum_l.texi: Renamed from
21864         doc/glibc-functions/isalnum_l.texi.
21865         * doc/posix-functions/isalpha_l.texi: Renamed from
21866         doc/glibc-functions/isalpha_l.texi.
21867         * doc/posix-functions/isblank_l.texi: Renamed from
21868         doc/glibc-functions/isblank_l.texi.
21869         * doc/posix-functions/iscntrl_l.texi: Renamed from
21870         doc/glibc-functions/iscntrl_l.texi.
21871         * doc/posix-functions/isdigit_l.texi: Renamed from
21872         doc/glibc-functions/isdigit_l.texi.
21873         * doc/posix-functions/isgraph_l.texi: Renamed from
21874         doc/glibc-functions/isgraph_l.texi.
21875         * doc/posix-functions/islower_l.texi: Renamed from
21876         doc/glibc-functions/islower_l.texi.
21877         * doc/posix-functions/isprint_l.texi: Renamed from
21878         doc/glibc-functions/isprint_l.texi.
21879         * doc/posix-functions/ispunct_l.texi: Renamed from
21880         doc/glibc-functions/ispunct_l.texi.
21881         * doc/posix-functions/isspace_l.texi: Renamed from
21882         doc/glibc-functions/isspace_l.texi.
21883         * doc/posix-functions/isupper_l.texi: Renamed from
21884         doc/glibc-functions/isupper_l.texi.
21885         * doc/posix-functions/iswalnum_l.texi: Renamed from
21886         doc/glibc-functions/iswalnum_l.texi.
21887         * doc/posix-functions/iswalpha_l.texi: Renamed from
21888         doc/glibc-functions/iswalpha_l.texi.
21889         * doc/posix-functions/iswblank_l.texi: Renamed from
21890         doc/glibc-functions/iswblank_l.texi.
21891         * doc/posix-functions/iswcntrl_l.texi: Renamed from
21892         doc/glibc-functions/iswcntrl_l.texi.
21893         * doc/posix-functions/iswctype_l.texi: Renamed from
21894         doc/glibc-functions/iswctype_l.texi.
21895         * doc/posix-functions/iswdigit_l.texi: Renamed from
21896         doc/glibc-functions/iswdigit_l.texi.
21897         * doc/posix-functions/iswgraph_l.texi: Renamed from
21898         doc/glibc-functions/iswgraph_l.texi.
21899         * doc/posix-functions/iswlower_l.texi: Renamed from
21900         doc/glibc-functions/iswlower_l.texi.
21901         * doc/posix-functions/iswprint_l.texi: Renamed from
21902         doc/glibc-functions/iswprint_l.texi.
21903         * doc/posix-functions/iswpunct_l.texi: Renamed from
21904         doc/glibc-functions/iswpunct_l.texi.
21905         * doc/posix-functions/iswspace_l.texi: Renamed from
21906         doc/glibc-functions/iswspace_l.texi.
21907         * doc/posix-functions/iswupper_l.texi: Renamed from
21908         doc/glibc-functions/iswupper_l.texi.
21909         * doc/posix-functions/iswxdigit_l.texi: Renamed from
21910         doc/glibc-functions/iswxdigit_l.texi.
21911         * doc/posix-functions/isxdigit_l.texi: Renamed from
21912         doc/glibc-functions/isxdigit_l.texi.
21913         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
21914         doc/glibc-functions/mbsnrtowcs.texi.
21915         * doc/posix-functions/mkdtemp.texi: Renamed from
21916         doc/glibc-functions/mkdtemp.texi.
21917         * doc/posix-functions/newlocale.texi: Renamed from
21918         doc/glibc-functions/newlocale.texi.
21919         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
21920         doc/glibc-functions/nl_langinfo_l.texi.
21921         * doc/posix-functions/open_memstream.texi: Renamed from
21922         doc/glibc-functions/open_memstream.texi.
21923         * doc/posix-functions/opterr.texi: Renamed from
21924         doc/glibc-functions/opterr.texi.
21925         * doc/posix-functions/optind.texi: Renamed from
21926         doc/glibc-functions/optind.texi.
21927         * doc/posix-functions/optopt.texi: Renamed from
21928         doc/glibc-functions/optopt.texi.
21929         * doc/posix-functions/psignal.texi: Renamed from
21930         doc/glibc-functions/psignal.texi.
21931         * doc/posix-functions/scandir.texi: Renamed from
21932         doc/glibc-functions/scandir.texi.
21933         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
21934         doc/glibc-functions/sched_get_priority_min.texi.
21935         * doc/posix-functions/signgam.texi: Renamed from
21936         doc/glibc-functions/signgam.texi.
21937         * doc/posix-functions/stpcpy.texi: Renamed from
21938         doc/glibc-functions/stpcpy.texi.
21939         * doc/posix-functions/stpncpy.texi: Renamed from
21940         doc/glibc-functions/stpncpy.texi.
21941         * doc/posix-functions/strcasecmp_l.texi: Renamed from
21942         doc/glibc-functions/strcasecmp_l.texi.
21943         * doc/posix-functions/strcoll_l.texi: Renamed from
21944         doc/glibc-functions/strcoll_l.texi.
21945         * doc/posix-functions/strfmon_l.texi: Renamed from
21946         doc/glibc-functions/strfmon_l.texi.
21947         * doc/posix-functions/strftime_l.texi: Renamed from
21948         doc/glibc-functions/strftime_l.texi.
21949         * doc/posix-functions/strncasecmp_l.texi: Renamed from
21950         doc/glibc-functions/strncasecmp_l.texi.
21951         * doc/posix-functions/strndup.texi: Renamed from
21952         doc/glibc-functions/strndup.texi.
21953         * doc/posix-functions/strnlen.texi: Renamed from
21954         doc/glibc-functions/strnlen.texi.
21955         * doc/posix-functions/strsignal.texi: Renamed from
21956         doc/glibc-functions/strsignal.texi.
21957         * doc/posix-functions/strxfrm_l.texi: Renamed from
21958         doc/glibc-functions/strxfrm_l.texi.
21959         * doc/posix-functions/timer_gettime.texi: Renamed from
21960         doc/glibc-functions/timer_gettime.texi.
21961         * doc/posix-functions/tolower_l.texi: Renamed from
21962         doc/glibc-functions/tolower_l.texi.
21963         * doc/posix-functions/toupper_l.texi: Renamed from
21964         doc/glibc-functions/toupper_l.texi.
21965         * doc/posix-functions/towctrans_l.texi: Renamed from
21966         doc/glibc-functions/towctrans_l.texi.
21967         * doc/posix-functions/towlower_l.texi: Renamed from
21968         doc/glibc-functions/towlower_l.texi.
21969         * doc/posix-functions/towupper_l.texi: Renamed from
21970         doc/glibc-functions/towupper_l.texi.
21971         * doc/posix-functions/uselocale.texi: Renamed from
21972         doc/glibc-functions/uselocale.texi.
21973         * doc/posix-functions/vdprintf.texi: Renamed from
21974         doc/glibc-functions/vdprintf.texi.
21975         * doc/posix-functions/wcpcpy.texi:
21976         Renamed from doc/glibc-functions/wcpcpy.texi.
21977         * doc/posix-functions/wcpncpy.texi: Renamed from
21978         doc/glibc-functions/wcpncpy.texi.
21979         * doc/posix-functions/wcscasecmp.texi: Renamed from
21980         doc/glibc-functions/wcscasecmp.texi.
21981         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
21982         doc/glibc-functions/wcscasecmp_l.texi.
21983         * doc/posix-functions/wcscoll_l.texi: Renamed from
21984         doc/glibc-functions/wcscoll_l.texi.
21985         * doc/posix-functions/wcsdup.texi: Renamed from
21986         doc/glibc-functions/wcsdup.texi.
21987         * doc/posix-functions/wcsncasecmp.texi: Renamed from
21988         doc/glibc-functions/wcsncasecmp.texi.
21989         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
21990         doc/glibc-functions/wcsncasecmp_l.texi.
21991         * doc/posix-functions/wcsnlen.texi: Renamed from
21992         doc/glibc-functions/wcsnlen.texi.
21993         * doc/posix-functions/wcsnrtombs.texi: Renamed from
21994         doc/glibc-functions/wcsnrtombs.texi.
21995         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
21996         doc/glibc-functions/wcsxfrm_l.texi.
21997         * doc/posix-functions/wctrans_l.texi: Renamed from
21998         doc/glibc-functions/wctrans_l.texi.
21999         * doc/posix-functions/wctype_l.texi: Renamed from
22000         doc/glibc-functions/wctype_l.texi.
22001         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22002         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22003         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22004         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22005         these subsections.
22006         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22007         Remove sections.
22009 2008-12-14  Bruno Haible  <bruno@clisp.org>
22011         Update doc for POSIX:2008.
22012         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22014 2008-12-14  Bruno Haible  <bruno@clisp.org>
22016         Update doc for POSIX:2008.
22017         * doc/pastposix-functions/bcmp.texi: Renamed from
22018         doc/posix-functions/bcmp.texi.
22019         * doc/pastposix-functions/bcopy.texi: Renamed from
22020         doc/posix-functions/bcopy.texi.
22021         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22022         doc/posix-functions/bsd_signal.texi.
22023         * doc/pastposix-functions/bzero.texi: Renamed from
22024         doc/posix-functions/bzero.texi.
22025         * doc/pastposix-functions/ecvt.texi: Renamed from
22026         doc/posix-functions/ecvt.texi.
22027         * doc/pastposix-functions/fcvt.texi: Renamed from
22028         doc/posix-functions/fcvt.texi.
22029         * doc/pastposix-functions/ftime.texi: Renamed from
22030         doc/posix-functions/ftime.texi.
22031         * doc/pastposix-functions/gcvt.texi: Renamed from
22032         doc/posix-functions/gcvt.texi.
22033         * doc/pastposix-functions/getcontext.texi: Renamed from
22034         doc/posix-functions/getcontext.texi.
22035         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22036         doc/posix-functions/gethostbyaddr.texi.
22037         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22038         doc/posix-functions/gethostbyname.texi.
22039         * doc/pastposix-functions/getwd.texi: Renamed from
22040         doc/posix-functions/getwd.texi.
22041         * doc/pastposix-functions/h_errno.texi: Renamed from
22042         doc/posix-functions/h_errno.texi.
22043         * doc/pastposix-functions/index.texi: Renamed from
22044         doc/posix-functions/index.texi.
22045         * doc/pastposix-functions/makecontext.texi: Renamed from
22046         doc/posix-functions/makecontext.texi.
22047         * doc/pastposix-functions/mktemp.texi: Renamed from
22048         doc/posix-functions/mktemp.texi.
22049         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22050         doc/posix-functions/pthread_attr_getstackaddr.texi.
22051         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22052         doc/posix-functions/pthread_attr_setstackaddr.texi.
22053         * doc/pastposix-functions/rindex.texi: Renamed from
22054         doc/posix-functions/rindex.texi.
22055         * doc/pastposix-functions/scalb.texi: Renamed from
22056         doc/posix-functions/scalb.texi.
22057         * doc/pastposix-functions/setcontext.texi: Renamed from
22058         doc/posix-functions/setcontext.texi.
22059         * doc/pastposix-functions/swapcontext.texi: Renamed from
22060         doc/posix-functions/swapcontext.texi.
22061         * doc/pastposix-functions/ualarm.texi: Renamed from
22062         doc/posix-functions/ualarm.texi.
22063         * doc/pastposix-functions/usleep.texi: Renamed from
22064         doc/posix-functions/usleep.texi.
22065         * doc/pastposix-functions/vfork.texi: Renamed from
22066         doc/posix-functions/vfork.texi.
22067         * doc/pastposix-functions/wcswcs.texi: Renamed from
22068         doc/posix-functions/wcswcs.texi.
22069         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22070         (Function Substitutes): Update.
22072 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22074         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22075         m4/strerror.m4.
22077 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22078             Bruno Haible  <bruno@clisp.org>
22080         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22082 2008-12-13  Bruno Haible  <bruno@clisp.org>
22084         * modules/strtoull (Depends-on): Remove unistd.
22086 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22088         * modules/strtoull (Depends-on): Add stdlib.
22090 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22092         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22094 2008-12-10  Jim Meyering  <meyering@redhat.com>
22096         gl_ASSERT: don't say assertions are disabled when they're not
22097         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22098         "checking whether to enable assertions... no", when they are in
22099         fact enabled.  This is solely a bug in the output of configure.
22100         In spite of saying "no", NDEBUG was not defined in that case.
22101         Also, as noted by Eric Blake, leave assertions enabled upon
22102         --enable-assert=INVALID.
22104 2008-12-10  Bruno Haible  <bruno@clisp.org>
22106         Change MODULES.html to refer to POSIX:2008 where possible.
22107         * MODULES.html.sh (POSIX2008_URL): New variable.
22108         (posix_headers): Remove sys/timeb, ucontext.
22109         (posix2001_headers): New variable.
22110         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22111         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22112         index, makecontext, mktemp, pthread_attr_getstackaddr,
22113         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22114         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22115         (posix2001_functions): New variable.
22116         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22117         otherwise.
22119 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22121         add missing include to parse-duration.c
22122         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22123         * modules/parse-duration (Depends-on): Add xalloc.
22125         fix sed script reading maint.mk
22126         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22127         (syntax-check-rules): Use it.
22129 2008-12-09  Bruno Haible  <bruno@clisp.org>
22131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22132         MacOS X 10.4/PowerPC.
22133         Reported by Simon Josefsson.
22135 2008-12-08  Jim Meyering  <meyering@redhat.com>
22137         work around mingw's lack of some S_IF definitions
22138         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22139         Reported by Simon Josefsson.
22141 2008-12-08  Bruno Haible  <bruno@clisp.org>
22143         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22144         applied to variables. Needed on MacOS X 10.4/PowerPC.
22145         Reported by Simon Josefsson.
22147 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22148         and Eric Blake  <ebb9@byu.net>
22150         assert: honor --enable-assert
22151         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22152         order to honor --enable-assert, rather than treating it as a
22153         synonym for --disable-assert.
22155 2008-12-08  Jim Meyering  <meyering@redhat.com>
22157         * lib/posixtm.c: Remove now-useless declaration of mktime.
22159         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22161 2008-12-07  Bruno Haible  <bruno@clisp.org>
22163         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22164         test_once): Mark functions as static.
22165         * tests/test-tls.c (test_tls): Likewise.
22167 2008-12-07  Bruno Haible  <bruno@clisp.org>
22169         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22170         iconv_register_autodetect.
22172 2008-12-07  Jim Meyering  <meyering@redhat.com>
22174         posixtm.c: avoid a warning
22175         * lib/posixtm.c (posixtime): Don't initialize tm0.
22176         It's no longer needed to placate gcc4's -Wuninitialized,
22177         and the attempt to placate would elicit a new warning.
22179         unicodeio.c: mark unused parameters
22180         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22181         (fallback_failure_callback): Likewise.
22183 2008-12-07  Bruno Haible  <bruno@clisp.org>
22185         * gnulib-tool (func_create_testdir): When building the tests
22186         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22187         Reported by Simon Josefsson.
22189 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22191         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22193 2008-12-06  Bruno Haible  <bruno@clisp.org>
22195         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22196         Suggested by Eric Blake.
22198 2008-12-06  Bruno Haible  <bruno@clisp.org>
22200         Fix a c-stack test failure on MacOS X.
22201         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22202         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22203         handler for SIGBUS as well.
22204         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22205         install a signal handler for SIGBUS as well.
22206         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22208 2008-12-06  Bruno Haible  <bruno@clisp.org>
22210         Advocacy documentation.
22211         * doc/gnulib-intro.texi (Benefits): New section.
22212         * doc/gnulib.texi: Update.
22214 2008-12-06  Bruno Haible  <bruno@clisp.org>
22216         Document the 'manywarnings' module.
22217         * doc/manywarnings.texi: New file.
22218         * doc/gnulib.texi: Include it.
22220 2008-12-05  Eric Blake  <ebb9@byu.net>
22222         tests: silence some gcc warnings
22223         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22224         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22225         type mismatches.
22227 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22228             Bruno Haible  <bruno@clisp.org>
22230         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22232 2008-11-29  Jim Meyering  <meyering@redhat.com>
22234         unicodeio.c: mark unused parameters
22235         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22236         (fallback_failure_callback): Likewise.
22238         fts: fix a thinko
22239         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22240         (set_stat_type): Return S_IF*-valued "type" directly.
22241         Prompted by James Youngman's spotting a related bug.
22242         Confirmed by further testing through find.
22244         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22245         * lib/fts.c (D_TYPE): Define.
22246         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22247         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22248         (s_ifmt_shift_bits): New function.
22249         (set_stat_type): New function.
22250         (fts_build): When not calling fts_stat, call set_stat_type
22251         to propagate dirent.d_type info to fts_read caller.
22252         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22253         fts_statp->st_mode type information may be valid.
22255 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22257         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22258         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22259         <sds@gnu.org>.
22261 2008-11-20  Bruno Haible  <bruno@clisp.org>
22263         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22264         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22265         INCLUDE_NEXT.
22266         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22267         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22268         * modules/math (Makefile.am): Substitute
22269         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22272 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22273             Bruno Haible  <bruno@clisp.org>
22275         * lib/stdint.in.h: Define all type macros so that their expansion is
22276         a single typedef'ed token. Fixes a compilation failure in Boost which
22277         does "using ::int8_t;".
22279 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22281         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22282         gl_MANYWARN_ALL_GCC.
22283         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22284         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22285         * modules/manywarnings: New file.
22286         * MODULES.html.sh: Mention manywarnings module.
22288 2008-11-18  Bruno Haible  <bruno@clisp.org>
22290         * doc/gnulib-tool.texi (Unit tests): New section.
22292 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22294         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22295         paths like 'lib/po/foo.po'.
22297 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22299         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22300         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22302 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22304         * m4/warnings.m4: Use CPPFLAGS to really check whether the
22305         parameter works.
22307 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22309         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
22311 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22313         * modules/parse-duration-tests: New file.
22314         * tests/test-parse-duration.sh: New file.
22315         * tests/test-parse-duration.c: New file.
22317         New module 'parse-duration'.
22318         * lib/parse-duration.h: New file.
22319         * lib/parse-duration.c: New file.
22320         * modules/parse-duration: New file.
22322 2008-11-17  Bruno Haible  <bruno@clisp.org>
22324         * tests/test-select-out.sh: Comment out the first pipe test.
22325         Reported by Simon Josefsson.
22327 2008-11-17  Bruno Haible  <bruno@clisp.org>
22329         * modules/getaddrinfo (Depends-on): Add servent, hostent.
22330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
22331         gl_HOSTENT.
22333 2008-11-17  Bruno Haible  <bruno@clisp.org>
22335         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
22336         -lnetwork and -lnet. Needed for Haiku and BeOS.
22338 2008-11-16  Bruno Haible  <bruno@clisp.org>
22340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
22342 2008-11-16  Bruno Haible  <bruno@clisp.org>
22344         Avoid test failure on Haiku.
22345         * tests/test-fsync.c: Include <errno.h>.
22346         (main): Don't require that fsync (0) fails.
22348 2008-11-15  Bruno Haible  <bruno@clisp.org>
22350         New module 'hostent'.
22351         * modules/hostent: New file.
22352         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
22354 2008-11-15  Bruno Haible  <bruno@clisp.org>
22356         New module 'servent'.
22357         * modules/servent: New file.
22358         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22360 2008-11-15  Bruno Haible  <bruno@clisp.org>
22362         Avoid generating same test program with two different rules.
22363         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
22364         test-frexp to test-frexp-nolibm.
22365         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
22366         test-frexpl to test-frexpl-nolibm.
22368 2008-11-15  Bruno Haible  <bruno@clisp.org>
22370         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
22371         $(FREXPL_LIBM).
22373 2008-11-15  Bruno Haible  <bruno@clisp.org>
22375         * lib/netdb.in.h: Activate the definitions also when the system's
22376         <netdb.h> has 'struct addrinfo'.
22377         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
22378         EAI_OVERFLOW or AI_NUMERICSERV.
22379         * doc/posix-headers/netdb.texi: Document the problem.
22381 2008-11-15  Bruno Haible  <bruno@clisp.org>
22383         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
22385         Make the 'sched' module work on platforms where <sched.h> exists but
22386         is incomplete (such as Haiku).
22387         * lib/sched.in.h; Include the system's <sched.h> if it exists.
22388         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
22389         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
22390         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
22391         HAVE_STRUCT_SCHED_PARAM.
22392         * modules/sched (Depends-on): Add include_next.
22393         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
22394         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
22395         * doc/posix-headers/sched.texi: Document the issue.
22397 2008-11-13  Jim Meyering  <meyering@redhat.com>
22399         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
22400         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
22401         test would fail due to the difference in the Report bugs to ...
22402         line.  The expected address is empty, "<>", while the actual
22403         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
22405 2008-11-12  Bruno Haible  <bruno@clisp.org>
22407         lstat: don't compile lstat.c on systems lacking lstat
22408         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
22409         which don't have lstat; this is handled by lib/sys_stat.in.h already.
22410         Reported by Daniel P. Berrange via Jim Meyering.
22412 2008-11-12  Jim Meyering  <meyering@redhat.com>
22414         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
22416 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22418         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
22419         instead.
22421 2008-11-12  Bruno Haible  <bruno@clisp.org>
22423         * lib/unicodeio.c: Include unistr.h.
22424         (utf8_wctomb): Remove function.
22425         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
22427 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22429         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
22430         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
22431         <bruno@clisp.org>.
22432         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
22434 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22436         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
22437         * doc/gnulib.texi: Add section for warnings.
22439 2008-11-11  Bruno Haible  <bruno@clisp.org>
22441         * lib/sockets.h: Add a comment.
22443 2008-11-11  Karl Berry  <karl@gnu.org>
22445         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
22447 2008-11-11  Eric Blake  <ebb9@byu.net>
22449         fdl.texi: avoid git symlinks
22450         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
22452 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22454         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
22456 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22458         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
22459         (gl_WARN_ADD): Substitute $2 if literal.
22461 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22463         * m4/warning.m4: Remove.
22465 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22467         * m4/warnings.m4: Almost complete rewrite. :-)
22469 2008-11-10  Simon Josefsson  <simon@josefsson.org>
22471         * modules/warnings: New module.
22472         * m4/warnings.m4: New file.
22473         * MODULES.html.sh: Mention warnings module.
22474         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
22475         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22477 2008-11-10  Eric Blake  <ebb9@byu.net>
22479         fdl.texi: make a symlink to the latest version
22480         * doc/standards.texi: Revert today's earlier change.
22481         * doc/fdl-1.2.texi: Rename from old fdl.texi...
22482         * doc/fdl.texi: ...and replace this with a symlink to the newer
22483         fdl-1.3.texi.
22485 2008-11-10  Bruno Haible  <bruno@clisp.org>
22487         * tests/test-select-fd.c (main): Accept the result file name as fourth
22488         argument.
22489         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
22490         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
22492 2008-11-10  Bruno Haible  <bruno@clisp.org>
22494         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
22495         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
22496         as autoconf-substituted macros.
22497         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
22498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
22499         gl_NETDB_H_DEFAULTS. Set these variables.
22500         * modules/netdb (Makefile.am): Substitute these variables.
22502 2008-11-10  Eric Blake  <ebb9@byu.net>
22504         standards.texi: include correct file for FDL 1.3
22505         * doc/standards.texi (GNU Free Documentation License): Change
22506         include file to pull in FDL 1.3, not 1.2.
22508         fdl.texi: revert accidental change to license
22509         * doc/fdl.texi: This is FDL 1.2, not 1.3.
22511 2008-11-10  Bruno Haible  <bruno@clisp.org>
22513         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
22514         cross-compiling guesses also when the native compile gives no result.
22516 2008-11-10  Bruno Haible  <bruno@clisp.org>
22518         * lib/spawni.c (__spawni): Force variable into the stack.
22520 2008-11-10  Bruno Haible  <bruno@clisp.org>
22522         Add support for Haiku.
22523         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
22524         glibc and BeOS, but also on Haiku.
22525         * lib/fpurge.c (fpurge): Likewise.
22526         * lib/freadable.c (freadable): Likewise.
22527         * lib/freadahead.c (freadahead): Likewise.
22528         * lib/freading.c (freading): Likewise.
22529         * lib/freadptr.c (freadptr): Likewise.
22530         * lib/freadseek.c (freadptrinc): Likewise.
22531         * lib/fseeko.c (rpl_fseeko): Likewise.
22532         * lib/fseterr.c (fseterr): Likewise.
22533         * lib/fwritable.c (fwritable): Likewise.
22534         * lib/fwriting.c (fwriting): Likewise.
22535         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
22537 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22539         * lib/config.charset: Treat Haiku like BeOS.
22541 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22543         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
22544         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
22546 2008-11-08  Bruno Haible  <bruno@clisp.org>
22548         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
22549         AC_CACHE_CHECK.
22551 2008-11-08  Bruno Haible  <bruno@clisp.org>
22553         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
22555 2008-11-08  Bruno Haible  <bruno@clisp.org>
22557         * tests/test-select-fd.c: New file.
22558         * tests/test-select-in.sh: New file.
22559         * tests/test-select-out.sh: New file.
22560         * tests/test-select-stdin.c: New file.
22561         * modules/select-tests (Files): Add the new files.
22562         (Depends-on): Add gettimeofday.
22563         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
22564         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
22565         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
22567 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
22568             Bruno Haible  <bruno@clisp.org>
22570         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
22572 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
22574         * build-aux/pmccabe2html: Added support for C++ source files.
22576 2008-11-05  Ben Pfaff  <blp@gnu.org>
22578         Fix lib/close.c build on Windows.
22579         * modules/close (Files): Add lib/w32sock.h.
22581 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
22583         Accept Bison's NEWS format.
22584         * build-aux/announce-gen (print_news_deltas): Tweak
22585         $re_prefix.
22587 2008-11-04  Bruno Haible  <bruno@clisp.org>
22589         * modules/random_r (Maintainer): Add glibc.
22591 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22593         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
22594         by karl@freefriends.org (Karl Berry).
22595         * doc/alloca.texi: Likewise.
22596         * doc/c-ctype.texi: Likewise.
22597         * doc/c-strcase.texi: Likewise.
22598         * doc/c-strcaseeq.texi: Likewise.
22599         * doc/c-strcasestr.texi: Likewise.
22600         * doc/c-strstr.texi: Likewise.
22601         * doc/c-strtod.texi: Likewise.
22602         * doc/c-strtold.texi: Likewise.
22603         * doc/ctime.texi: Likewise.
22604         * doc/error.texi: Likewise.
22605         * doc/fdl.texi: Likewise.
22606         * doc/gcd.texi: Likewise.
22607         * doc/getdate.texi: Likewise.
22608         * doc/gnulib-intro.texi: Likewise.
22609         * doc/gnulib-tool.texi: Likewise.
22610         * doc/gnulib.texi: Likewise.
22611         * doc/inet_ntoa.texi: Likewise.
22612         * doc/maintain.texi: Likewise.
22613         * doc/make-stds.texi: Likewise.
22614         * doc/quote.texi: Likewise.
22615         * doc/regexprops-generic.texi: Likewise.
22616         * doc/standards.texi: Likewise.
22617         * doc/verify.texi: Likewise.
22618         * doc/visibility.texi: Likewise.
22619         * doc/gnulib.texi (GNU Free Documentation License): Include
22620         fdl-1.3.texi instead of fdl.texi.
22622 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22624         * doc/fdl-1.3.texi: New file, from
22625         <http://www.gnu.org/licenses/fdl-1.3.texi>.
22626         * modules/fdl-1.3: Add.
22627         * MODULES.html.sh: Add fdl-1.3.
22629 2008-11-03  Bruno Haible  <bruno@clisp.org>
22631         Make determination of absolute name of header file work with AIX xlc.
22632         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
22633         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
22634         preprocessing.
22635         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22636         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22638 2008-11-03  Simon Josefsson  <simon@josefsson.org>
22640         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
22641         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
22642         <ludo@gnu.org>.
22644 2008-11-02  Bruno Haible  <bruno@clisp.org>
22646         Mark 'strpbrk' obsolete.
22647         * modules/strpbrk (Status, Notice): New sections.
22648         * modules/strtok_r (Depends-on): Add strpbrk.
22650 2008-11-02  Bruno Haible  <bruno@clisp.org>
22652         Mark 'strdup' obsolete.
22653         * modules/strdup (Status, Notice): New sections.
22654         * modules/findprog (Depends-on): Add strdup.
22655         * modules/getaddrinfo (Depends-on): Likewise.
22656         * modules/localename (Depends-on): Likewise.
22657         * modules/relocatable-lib (Depends-on): Likewise.
22658         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
22659         * modules/relocatable-prog (Depends-on): Likewise.
22660         * modules/trim (Depends-on): Likewise.
22661         * modules/unictype/gen-ctype (Depends-on): Likewise.
22662         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
22664 2008-11-02  Bruno Haible  <bruno@clisp.org>
22666         Mark 'strcspn' obsolete.
22667         * modules/strcspn (Status, Notice): New sections.
22669 2008-11-02  Bruno Haible  <bruno@clisp.org>
22671         Mark 'rmdir' obsolete.
22672         * modules/rmdir (Status, Notice): New sections.
22673         * modules/clean-temp (Depends-on): Add rmdir.
22674         * modules/openat (Depends-on): Likewise.
22676 2008-11-02  Bruno Haible  <bruno@clisp.org>
22678         Mark 'raise' obsolete.
22679         * modules/raise (Status, Notice): New sections.
22680         (Include): Specify <signal.h>.
22681         * modules/stdio (Depends-on): Add raise.
22682         * modules/write (Depends-on): Likewise.
22684 2008-11-02  Bruno Haible  <bruno@clisp.org>
22686         Mark 'memset' obsolete.
22687         * modules/memset (Status, Notice): New sections.
22689 2008-11-02  Bruno Haible  <bruno@clisp.org>
22691         Mark 'memmove' obsolete.
22692         * modules/memmove (Status, Notice): New sections.
22693         * modules/argp (Depends-on): Add memmove.
22694         * modules/argz (Depends-on): Likewise.
22695         * modules/canonicalize (Depends-on): Likewise.
22696         * modules/canonicalize-lgpl (Depends-on): Likewise.
22697         * modules/fts (Depends-on): Likewise.
22698         * modules/getcwd (Depends-on): Likewise.
22699         * modules/human (Depends-on): Likewise.
22700         * modules/regex (Depends-on): Likewise.
22701         * modules/striconveh (Depends-on): Likewise.
22702         * modules/trim (Depends-on): Likewise.
22703         * modules/unistr/u8-move (Depends-on): Likewise.
22704         * modules/unistr/u16-move (Depends-on): Likewise.
22705         * modules/unistr/u32-move (Depends-on): Likewise.
22707 2008-11-02  Bruno Haible  <bruno@clisp.org>
22709         Mark 'memcpy' obsolete.
22710         * modules/memcpy (Status, Notice): New sections.
22712 2008-11-02  Bruno Haible  <bruno@clisp.org>
22714         Mark 'memcmp' obsolete.
22715         * modules/memcmp (Status, Notice): New sections.
22716         * modules/argmatch (Depends-on): Add memchr.
22717         * modules/backupfile (Depends-on): Likewise.
22718         * modules/c-strcasestr (Depends-on): Likewise.
22719         * modules/crypto/des (Depends-on): Likewise.
22720         * modules/csharpcomp (Depends-on): Likewise.
22721         * modules/fnmatch (Depends-on): Likewise.
22722         * modules/git-merge-changelog (Depends-on): Likewise.
22723         * modules/isnand (Depends-on): Likewise.
22724         * modules/isnand-nolibm (Depends-on): Likewise.
22725         * modules/isnanf (Depends-on): Likewise.
22726         * modules/isnanf-nolibm (Depends-on): Likewise.
22727         * modules/isnanl (Depends-on): Likewise.
22728         * modules/isnanl-nolibm (Depends-on): Likewise.
22729         * modules/mbchar (Depends-on): Likewise.
22730         * modules/memcoll (Depends-on): Likewise.
22731         * modules/quotearg (Depends-on): Likewise.
22732         * modules/regex (Depends-on): Likewise.
22733         * modules/relocatable-prog (Depends-on): Likewise.
22734         * modules/same (Depends-on): Likewise.
22735         * modules/signbit (Depends-on): Likewise.
22736         * modules/strcasestr-simple (Depends-on): Likewise.
22737         * modules/unictype/gen-ctype (Depends-on): Likewise.
22738         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
22739         * modules/uniname/uniname (Depends-on): Likewise.
22740         * modules/unistr/u8-cmp (Depends-on): Likewise.
22742 2008-11-02  Bruno Haible  <bruno@clisp.org>
22744         Mark 'memchr' obsolete.
22745         * modules/memchr (Status, Notice): New sections.
22746         * modules/argp (Depends-on): Add memchr.
22747         * modules/base64 (Depends-on): Likewise.
22748         * modules/c-strcasestr (Depends-on): Likewise.
22749         * modules/chdir-long (Depends-on): Likewise.
22750         * modules/fnmatch (Depends-on): Likewise.
22751         * modules/getsubopt (Depends-on): Likewise.
22752         * modules/git-merge-changelog (Depends-on): Likewise.
22753         * modules/glob (Depends-on): Likewise.
22754         * modules/strcasestr-simple (Depends-on): Likewise.
22755         * modules/strnlen (Depends-on): Likewise.
22757 2008-11-02  Bruno Haible  <bruno@clisp.org>
22759         Mark 'atexit' obsolete.
22760         * modules/atexit (Status, Notice): New sections.
22761         * modules/chdir-long (Depends-on): Add atexit.
22762         * modules/wait-process (Depends-on): Likewise.
22764 2008-11-02  Bruno Haible  <bruno@clisp.org>
22766         * gnulib-tool: New option --with-obsolete.
22767         (func_usage): Document it.
22768         (func_modules_transitive_closure): Drop obsolete dependencies if
22769         incobsolete is not true.
22770         (func_import): Read and save the incobsolete variable to the cache.
22772 2008-11-02  Bruno Haible  <bruno@clisp.org>
22774         * modules/TEMPLATE-EXTENDED: New field 'Status'.
22775         * gnulib-tool: New option --extract-status.
22776         (func_usage): Document it.
22777         (sed_extract_prog): Recognize it.
22778         (func_get_status): New function.
22780 2008-10-30  Simon Josefsson  <simon@josefsson.org>
22782         * modules/sockets (License): Change from LGPL to LGPLv2+.
22784 2008-10-28  Simon Josefsson  <simon@josefsson.org>
22786         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
22788 2008-10-28  Simon Josefsson  <simon@josefsson.org>
22790         * MODULES.html.sh (Support for systems lacking POSIX:2001):
22791         Mention times and sys_times.
22792         * modules/sys_times, modules/sys_times-tests: New modules.
22793         * modules/times, modules/times-tests: Likewise
22794         * m4/sys_times_h.m4: New file.
22795         * lib/sys_times.in.h: Likewise
22796         * lib/times.c: Likewise.
22797         * tests/test-sys_times.c: Likewise.
22798         * tests/test-times.c: Likewise.
22799         * doc/posix-headers/sys_times.texi: Update.
22800         * doc/posix-functions/times.texi: Update.
22802 2008-10-28  Jim Meyering  <meyering@redhat.com>
22804         * modules/tempname (Depends-on): Add lstat.
22806         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
22808 2008-10-28  Simon Josefsson  <simon@josefsson.org>
22810         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
22811         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
22812         using idiom used elsewhere in gnulib.
22814 2008-10-27  Jim Meyering  <meyering@redhat.com>
22816         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
22818 2008-10-27  Simon Josefsson  <simon@josefsson.org>
22820         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
22821         TESTS_ENVIRONMENT, for shell scripts that needs to call built
22822         programs.
22823         * tests/test-argp-2.sh: Use $EXEEXT when needed.
22825 2008-10-27  Simon Josefsson  <simon@josefsson.org>
22827         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
22829 2008-10-27  Bruno Haible  <bruno@clisp.org>
22831         * tests/test-lstat.c: Include <stdio.h>.
22833 2008-10-27  Simon Josefsson  <simon@josefsson.org>
22835         * modules/lstat-tests: New module.
22836         * tests/test-lstat.c: New file.
22838 2008-10-26  Jim Meyering  <meyering@redhat.com>
22840         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
22842 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22843             Bruno Haible  <bruno@clisp.org>
22845         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
22846         * modules/configmake (Include): Add a note that the include must come
22847         after all system headers.
22848         * lib/javaversion.c: Include configmake.h after all other includes.
22850 2008-10-26  Bruno Haible  <bruno@clisp.org>
22852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
22853         HAVE_STRUCT_RANDOM_DATA to 1.
22854         (gl_STDLIB_H): Simplify.
22856 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22858         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
22859         substitute HAVE_STRUCT_RANDOM_DATA.
22860         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
22861         random_data.
22862         * modules/stdlib (Makefile.am): Substitute
22863         HAVE_STRUCT_RANDOM_DATA.
22865 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22867         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
22868         * doc/gnulib-intro.texi (Copyright): Likewise.
22870 2008-10-26  Simon Josefsson  <simon@josefsson.org>
22872         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
22873         findings.
22875 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
22876             Bruno Haible  <bruno@clisp.org>
22878         * lib/unistd.in.h: Include <winsock2.h>.
22879         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
22880         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
22881         Provide dummy declarations.
22882         (gethostname): Override.
22883         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
22884         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
22885         gl_PREREQ_SYS_H_WINSOCK2.
22886         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
22887         * doc/posix-functions/gethostname.texi: More details.
22889 2008-10-25  Bruno Haible  <bruno@clisp.org>
22891         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
22892         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
22893         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
22895         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
22896         here ...
22897         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
22898         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
22899         gl_UNISTD_H_DEFAULTS.
22901 2008-10-25  Eric Blake  <ebb9@byu.net>
22903         signbit: avoid spurious compiler failure
22904         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
22905         declarations inside function.
22907 2008-10-24  Simon Josefsson  <simon@josefsson.org>
22908             Bruno Haible  <bruno@clisp.org>
22910         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
22911         * modules/random_r (Depends-on): Add stdint.
22913 2008-10-24  Bruno Haible  <bruno@clisp.org>
22915         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
22916         Eggert.
22917         * modules/strerror (License): Likewise.
22919 2008-10-24  Jim Meyering  <meyering@redhat.com>
22921         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
22922         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
22924 2008-10-24  Eric Blake  <ebb9@byu.net>
22926         getgroups: fix compilation when getgroups is available
22927         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
22928         but with <config.h> override of getgroups disabled.
22930 2008-10-24  Simon Josefsson  <simon@josefsson.org>
22932         * doc/gnulib.texi (Header files): Add note about C++ problems.
22933         Explained by Bruno Haible <bruno@clisp.org>.
22935 2008-10-23  Bruno Haible  <bruno@clisp.org>
22937         Define a dummy SA_NODEFER macro on Interix.
22938         * lib/signal.in.h (SA_NODEFER): Define fallback.
22939         Reported by Aleksey Cheusov <cheusov@tut.by> via
22940         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
22942 2008-10-23  Bruno Haible  <bruno@clisp.org>
22944         * modules/freadahead (License): Change to LGPLv2+.
22945         Suggested by Simon Josefsson.
22947 2008-10-23  Jim Meyering  <meyering@redhat.com>
22949         random_r: new module
22950         * modules/random_r: New file.
22951         * m4/random_r.m4: New file.
22952         * lib/random_r.c: New file, from glibc.
22953         * modules/random_r-tests: New file.
22954         * tests/test-random_r.c: New file.
22955         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
22956          Declare.
22957         (RAND_MAX): Define.
22958         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
22959         * modules/stdlib: Substitute them, too.
22960         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
22961         * doc/glibc-functions/initstate_r.texi: Mention the new module.
22962         * doc/glibc-functions/random_r.texi: Likewise.
22963         * doc/glibc-functions/setstate_r.texi: Likewise.
22964         * doc/glibc-functions/srandom_r.texi: Likewise.
22965         * config/srclist.txt: Mention it.
22967 2008-10-23  David Lutterkort  <lutter@redhat.com>
22969         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
22970         link requirement
22972 2008-10-23  Jim Meyering  <meyering@redhat.com>
22974         selinux-h: mark parameters of stub functions as intentionally unused
22975         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
22976         * lib/se-context.in.h: Likewise.
22978 2008-10-22  Simon Josefsson  <simon@josefsson.org>
22980         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
22982 2008-10-22  Simon Josefsson  <simon@josefsson.org>
22984         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
22986 2008-10-22  Eric Blake  <ebb9@byu.net>
22988         glthread/thread: avoid compiler warning
22989         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
22990         Add unreachable abort to silence compiler.
22992 2008-10-22  Eric Blake  <ebb9@byu.net>
22994         netdb: also supply struct addrinfo for cygwin 1.5.x
22995         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
22996         older cygwin.
22997         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
22998         cygwin.
22999         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23001 2008-10-22  Bruno Haible  <bruno@clisp.org>
23003         * users.txt: Update entry about pspp.
23005 2008-10-21  Bruno Haible  <bruno@clisp.org>
23007         Simplification.
23008         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23009         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23011         Simplification.
23012         * lib/ioctl.c (ioctl): Don't undefine.
23013         * lib/socket.c (socket): Don't undefine.
23015         Remove unused module indicator macros.
23016         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23017         GNULIB_$1 as a C macro.
23019         * doc/posix-functions/close.texi: Undo last change.
23020         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23021         Windows platforms.
23023 2008-10-21  Bruno Haible  <bruno@clisp.org>
23025         Add gethostname() declaration to <unistd.h>.
23026         * lib/unistd.in.h (gethostname): New declaration.
23027         * lib/gethostname.c: Include <unistd.h>.
23028         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23029         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23031         and HAVE_GETHOSTNAME.
23032         * modules/gethostname (Depends-on): Add unistd.
23033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23034         (Include): Specify <unistd.h>.
23035         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23036         HAVE_GETHOSTNAME.
23037         * tests/test-gethostname.c: Include <unistd.h> first.
23039 2008-10-21  Bruno Haible  <bruno@clisp.org>
23041         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23042         * modules/select-tests (Depends-on): Likewise.
23043         Reported by Simon Josefsson.
23045 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23047         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23048         * lib/accept.c: New file, based on winsock.c.
23049         * lib/bind.c: New file, based on winsock.c.
23050         * lib/connect.c: New file, based on winsock.c.
23051         * lib/getpeername.c: New file, based on winsock.c.
23052         * lib/getsockname.c: New file, based on winsock.c.
23053         * lib/getsockopt.c: New file, based on winsock.c.
23054         * lib/ioctl.c: New file, based on winsock.c.
23055         * lib/listen.c: New file, based on winsock.c.
23056         * lib/recv.c: New file, based on winsock.c.
23057         * lib/recvfrom.c: New file, based on winsock.c.
23058         * lib/send.c: New file, based on winsock.c.
23059         * lib/sendto.c: New file, based on winsock.c.
23060         * lib/setsockopt.c: New file, based on winsock.c.
23061         * lib/shutdown.c: New file, based on winsock.c.
23062         * lib/socket.c: New file, based on winsock.c.
23063         * lib/w32sock.h: New file, based on winsock.c.
23064         * lib/winsock.c: Remove file.
23065         * modules/accept: Likewise.
23066         * modules/bind: Likewise.
23067         * modules/connect: Likewise.
23068         * modules/getpeername: Likewise.
23069         * modules/getsockname: Likewise.
23070         * modules/getsockopt: Likewise.
23071         * modules/ioctl: Likewise.
23072         * modules/listen: Likewise.
23073         * modules/recv: Likewise.
23074         * modules/recvfrom: Likewise.
23075         * modules/send: Likewise.
23076         * modules/sendto: Likewise.
23077         * modules/setsockopt: Likewise.
23078         * modules/shutdown: Likewise.
23079         * modules/socket: Use socket.c instead of winsock.c.
23080         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23081         * doc/posix-functions/accept.texi: Doc fix.
23082         * doc/posix-functions/bind.texi: Doc fix.
23083         * doc/posix-functions/close.texi: Doc fix.
23084         * doc/posix-functions/connect.texi: Doc fix.
23085         * doc/posix-functions/getpeername.texi: Doc fix.
23086         * doc/posix-functions/getsockname.texi: Doc fix.
23087         * doc/posix-functions/getsockopt.texi: Doc fix.
23088         * doc/posix-functions/ioctl.texi: Doc fix.
23089         * doc/posix-functions/listen.texi: Doc fix.
23090         * doc/posix-functions/recv.texi: Doc fix.
23091         * doc/posix-functions/recvfrom.texi: Doc fix.
23092         * doc/posix-functions/send.texi: Doc fix.
23093         * doc/posix-functions/sendto.texi: Doc fix.
23094         * doc/posix-functions/setsockopt.texi: Doc fix.
23095         * doc/posix-functions/shutdown.texi: Doc fix.
23096         * doc/posix-functions/socket.texi: Doc fix.
23098 2008-10-20  Bruno Haible  <bruno@clisp.org>
23100         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23101         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23102         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23103         as an alias for SIGABRT.
23104         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23105         (sigaction): Map it to SIGABRT.
23106         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23108 2008-10-20  Bruno Haible  <bruno@clisp.org>
23110         * lib/fts.c: Don't include lstat.h.
23111         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23113         Move the lstat() declaration to <sys/stat.h>.
23114         * lib/lstat.h: Remove file.
23115         * lib/sys_stat.in.h: Add special invocation convention.
23116         (lstat): New declaration.
23117         * lib/lstat.c (orig_lstat): New function.
23118         (rpl_lstat): Use orig_lstat instead of lstat.
23119         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23120         AC_C_INLINE. Set REPLACE_LSTAT.
23121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23122         and REPLACE_LSTAT.
23123         * modules/lstat (Files): Remove lib/lstat.h.
23124         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23125         (Include): Specify <sys/stat.h> instead of lstat.h.
23126         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23127         REPLACE_LSTAT.
23128         * NEWS: Mention the change.
23130 2008-10-20  Bruno Haible  <bruno@clisp.org>
23132         * modules/posix_spawn-tests: New file.
23133         * tests/test-posix_spawn3.c: New file.
23135 2008-10-20  Bruno Haible  <bruno@clisp.org>
23137         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23138         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23139         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23140         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23141         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23143 2008-10-20  Bruno Haible  <bruno@clisp.org>
23145         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23146         of posix_spawn on AIX 5.3.
23148 2008-10-20  Bruno Haible  <bruno@clisp.org>
23150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23152 2008-10-20  Bruno Haible  <bruno@clisp.org>
23154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23155         of AC_LANG_PROGRAM.
23157 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23159         * lib/netdb.in.h: Don't define GNU specific constants until they
23160         are supported or needed.  Reported by Bruno Haible
23161         <bruno@clisp.org>.
23163 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23165         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23167 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23169         * lib/getaddrinfo.h: Remove file.
23170         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23171         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23172         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23173         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23174         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23175         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23176         * tests/test-getaddrinfo.c: Likewise.
23177         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23178         * NEWS: Mention change.
23180 2008-10-19  Bruno Haible  <bruno@clisp.org>
23182         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23184 2008-10-19  Bruno Haible  <bruno@clisp.org>
23186         * lib/wait-process.c: Include simply <sys/wait.h>.
23187         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23188         WIFSTOPPED): Remove fallback definitions.
23189         * modules/wait-process (Depends-on): Add sys_wait.
23191         New module 'sys_wait'.
23192         * modules/sys_wait: New file.
23193         * lib/sys_wait.in.h: New file, partially copied from
23194         lib/wait-process.c.
23195         * m4/sys_wait_h.m4: New file.
23196         * doc/posix-headers/sys_wait.texi: Mention the new module.
23198 2008-10-19  Bruno Haible  <bruno@clisp.org>
23200         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23202 2008-10-19  Bruno Haible  <bruno@clisp.org>
23204         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23205         * lib/wait-process.c (WAIT_T): Remove type.
23206         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23207         (wait_subprocess): Update.
23209 2008-10-19  Bruno Haible  <bruno@clisp.org>
23211         New module 'atoll'.
23212         * modules/atoll: New file.
23213         * lib/stdlib.in.h (atoll): New declaration.
23214         * lib/atoll.c: New file, from glibc with modifications.
23215         * m4/atoll.m4: New file.
23216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23217         HAVE_ATOLL.
23218         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23219         * doc/posix-functions/atoll.texi: Mention the new module.
23221 2008-10-19  Bruno Haible  <bruno@clisp.org>
23223         Add strtoull() declaration to <stdlib.h>.
23224         * lib/stdlib.in.h (strtoull): New declaration.
23225         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23226         Set HAVE_STRTOULL.
23227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23228         HAVE_STRTOULL.
23229         * modules/strtoull (Depends-on): Add stdlib.
23230         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23231         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23232         HAVE_STRTOULL.
23234 2008-10-19  Bruno Haible  <bruno@clisp.org>
23236         Add strtoll() declaration to <stdlib.h>.
23237         * lib/stdlib.in.h (strtoll): New declaration.
23238         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23239         Set HAVE_STRTOLL.
23240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23241         HAVE_STRTOLL.
23242         * modules/strtoll (Depends-on): Add stdlib.
23243         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23244         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23246 2008-10-19  Bruno Haible  <bruno@clisp.org>
23248         * modules/bcopy (Depends-on): Add strings.
23249         (Include): Specify <strings.h>.
23251 2008-10-19  Bruno Haible  <bruno@clisp.org>
23253         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23255 2008-10-19  Bruno Haible  <bruno@clisp.org>
23257         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23258         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23259         mingw.
23261 2008-10-19  Bruno Haible  <bruno@clisp.org>
23263         * lib/atanl.c: Don't include isnanl.h.
23264         * lib/cosl.c: Likewise.
23265         * lib/ldexpl.c: Likewise.
23266         * lib/logl.c: Likewise.
23267         * lib/sinl.c: Likewise.
23268         * lib/sqrtl.c: Likewise.
23269         * lib/tanl.c: Likewise.
23271         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23272         * lib/isnanf.h: Remove file.
23273         * lib/isnand.h: Remove file.
23274         * lib/isnanl.h: Remove file.
23275         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23276         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23277         macros.
23278         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23279         HAVE_ISNANF, don't define it as a C macro.
23280         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23281         HAVE_ISNAND, don't define it as a C macro.
23282         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23283         HAVE_ISNANL, don't define it as a C macro.
23284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23285         HAVE_ISNAN[FDL].
23286         * modules/isnanf (Files): Remove lib/isnanf.h.
23287         (Depends-on): Add math.
23288         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23289         (Include): Specify <math.h> instead of isnanf.h.
23290         * modules/isnand (Files): Remove lib/isnand.h.
23291         (Depends-on): Add math.
23292         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23293         (Include): Specify <math.h> instead of isnand.h.
23294         * modules/isnanl (Files): Remove lib/isnanl.h.
23295         (Depends-on): Add math.
23296         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23297         (Include): Specify <math.h> instead of isnanl.h.
23298         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23299         HAVE_ISNAN[FDL].
23300         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23301         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23302         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23303         * NEWS: Mention the change.
23305 2008-10-18  Bruno Haible  <bruno@clisp.org>
23307         Add getusershell(), setusershell(), endusershell() declarations to
23308         <unistd.h>.
23309         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
23310         declarations.
23311         * lib/getusershell.c: Include unistd.h.
23312         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
23313         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23314         HAVE_GETUSERSHELL.
23315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
23316         and HAVE_GETUSERSHELL.
23317         * modules/getusershell (Depends-on): Add unistd, extensions.
23318         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23319         (Include): Specify <unistd.h>.
23320         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
23321         HAVE_GETUSERSHELL.
23323 2008-10-18  Bruno Haible  <bruno@clisp.org>
23325         Add a getloadavg() declaration to <stdlib.h>.
23326         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23327         getloadavg declaration.
23328         (getloadavg): New declaration.
23329         * lib/getloadavg.c: Include <stdlib.h> first.
23330         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
23331         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
23332         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
23333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
23334         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23335         * modules/getloadavg (Depends-on): Add stdlib, extensions.
23336         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23337         (Include): Specify <stdlib.h>.
23338         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
23339         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23341 2008-10-18  Bruno Haible  <bruno@clisp.org>
23343         * lib/dirchownmod.c: Don't include lchmod.h.
23345         Move the lchmod() declaration to <sys/stat.h>.
23346         * lib/lchmod.h: Remove file.
23347         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
23348         (lchmod): New declaration, moved here from lib/lchown.h.
23349         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
23350         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
23351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
23352         and HAVE_LCHMOD.
23353         * modules/lchmod (Files): Remove lib/lchmod.h.
23354         (Depends-on): Add sys_stat, extensions.
23355         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23356         (Include): Specify <sys/stat.h> instead of lchmod.h.
23357         * modules/sys_stat (Depends-on): Add link-warning.
23358         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
23359         definition of GL_LINK_WARNING.
23360         * NEWS: Mention the change.
23362 2008-10-18  Bruno Haible  <bruno@clisp.org>
23364         * lib/fchdir.c: Don't include dirfd.h.
23365         * lib/fts.c: Likewise.
23366         * lib/getcwd.c: Likewise.
23367         * lib/glob.c: Likewise.
23369         Move the dirfd() declaration to <dirent.h>.
23370         * lib/dirfd.h: Remove file.
23371         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
23372         (dirfd): New declaration.
23373         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
23374         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
23375         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
23376         HAVE_DECL_DIRFD.
23377         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
23378         HAVE_DECL_DIRFD.
23379         * modules/dirfd (Files): Remove lib/dirfd.h.
23380         (Depends-on): Add dirent, extensions.
23381         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
23382         (Include): Specify <dirent.h> instead of dirfd.h.
23383         * modules/dirent (Depends-on): Add link-warning.
23384         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
23385         definition of GL_LINK_WARNING.
23386         * NEWS: Mention the change.
23388 2008-10-18  Bruno Haible  <bruno@clisp.org>
23390         Move the euidaccess() declaration to <unistd.h>.
23391         * lib/euidaccess.h: Remove file.
23392         * lib/unistd.in.h (euidaccess): New declaration.
23393         * lib/euidaccess.c: Don't include euidaccess.h.
23394         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
23395         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
23396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
23397         and HAVE_EUIDACCESS.
23398         * modules/euidaccess (Files): Remove lib/euidaccess.h.
23399         (Depends-on): Add unistd.
23400         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23401         (Include): Specify <unistd.h> instead of euidaccess.h.
23402         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
23403         HAVE_EUIDACCESS.
23404         * NEWS: Mention the change.
23406 2008-10-18  Bruno Haible  <bruno@clisp.org>
23408         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
23410         Move the getdomainname() declaration to <unistd.h>.
23411         * lib/getdomainname.h: Remove file.
23412         * lib/unistd.in.h (getdomainname): New declaration.
23413         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
23414         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23415         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23416         HAVE_GETDOMAINNAME.
23417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23418         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
23419         * modules/getdomainname (Files): Remove lib/getdomainname.h.
23420         (Depends-on): Add unistd, extensions.
23421         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23422         (Includes): Specify <unistd.h> instead of getdomainname.h.
23423         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
23424         HAVE_GETDOMAINNAME.
23425         * NEWS: Mention the change.
23427 2008-10-18  Bruno Haible  <bruno@clisp.org>
23429         * modules/dirent: New file.
23430         * m4/dirent_h.m4: New file.
23431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
23432         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
23433         * modules/fchdir (Files): Remove lib/dirent.in.h.
23434         (Depends-on): Add dirent.
23435         (Makefile.am): Move rules to modules/dirent.
23436         * doc/posix-headers/dirent.texi: Mention the new module.
23438 2008-10-18  Bruno Haible  <bruno@clisp.org>
23440         Avoid -Wunused-parameter warnings in public gnulib header files.
23441         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
23442         macro.
23443         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
23445 2008-10-18  Bruno Haible  <bruno@clisp.org>
23447         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
23448         * doc/glibc-functions/error.texi: Mention the module 'error'.
23449         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
23450         * doc/glibc-functions/getdomainname.texi: Mention the module
23451         'getdomainname'.
23452         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
23453         * doc/glibc-functions/getpagesize.texi: Mention the module
23454         'getpagesize'.
23455         * doc/glibc-functions/getusershell.texi: Mention the module
23456         'getusershell'.
23457         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
23458         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
23459         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
23460         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
23461         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
23462         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
23463         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
23464         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
23465         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
23466         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
23467         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
23468         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
23469         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
23470         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
23472 2008-10-17  Bruno Haible  <bruno@clisp.org>
23474         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
23475         HP-UX and IRIX, use -0.0L.
23476         * tests/test-ceill.c (minus_zero): Likewise.
23477         * tests/test-floorl.c (minus_zero): Likewise.
23478         * tests/test-frexpl.c (minus_zero): Likewise.
23479         * tests/test-isnan.c (minus_zerol): Likewise.
23480         * tests/test-isnanl.h (minus_zero): Likewise.
23481         * tests/test-ldexpl.c (minus_zero): Likewise.
23482         * tests/test-roundl.c (minus_zero): Likewise.
23483         * tests/test-signbit.c (minus_zerol): Likewise.
23484         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23485         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23486         * tests/test-truncl.c (minus_zero): Likewise.
23487         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23488         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23489         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
23490         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23492 2008-10-17  Bruno Haible  <bruno@clisp.org>
23494         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
23495         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
23496         that it gets activated only for gcc >= 3.0.
23497         * lib/dirent.in.h: Likewise.
23498         * lib/errno.in.h: Likewise.
23499         * lib/fcntl.in.h: Likewise.
23500         * lib/float.in.h: Likewise.
23501         * lib/iconv.in.h: Likewise.
23502         * lib/inttypes.in.h: Likewise.
23503         * lib/locale.in.h: Likewise.
23504         * lib/math.in.h: Likewise.
23505         * lib/netdb.in.h: Likewise.
23506         * lib/netinet_in.in.h: Likewise.
23507         * lib/search.in.h: Likewise.
23508         * lib/signal.in.h: Likewise.
23509         * lib/spawn.in.h: Likewise.
23510         * lib/stdarg.in.h: Likewise.
23511         * lib/stdint.in.h: Likewise.
23512         * lib/stdio.in.h: Likewise.
23513         * lib/stdlib.in.h: Likewise.
23514         * lib/string.in.h: Likewise.
23515         * lib/strings.in.h: Likewise.
23516         * lib/sys_file.in.h: Likewise.
23517         * lib/sys_ioctl.in.h: Likewise.
23518         * lib/sys_select.in.h: Likewise.
23519         * lib/sys_socket.in.h: Likewise.
23520         * lib/sys_stat.in.h: Likewise.
23521         * lib/sys_time.in.h: Likewise.
23522         * lib/sysexits.in.h: Likewise.
23523         * lib/time.in.h: Likewise.
23524         * lib/unistd.in.h: Likewise.
23525         * lib/wchar.in.h: Likewise.
23526         * lib/wctype.in.h: Likewise.
23527         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23529 2008-10-17  Jim Meyering  <meyering@redhat.com>
23531         ignore-value: don't depend on inline module
23532         * modules/ignore-value (Depends-on): Remove 'inline'.
23533         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
23534         Suggestion from Bruno Haible.
23536 2008-10-17  Bruno Haible  <bruno@clisp.org>
23538         New implementation of condition variables for Win32.
23539         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
23540         (gl_linked_waitqueue_t): New type.
23541         (gl_cond_t): Use it.
23542         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
23543         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
23544         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
23545         (glthread_cond_init_func, glthread_cond_wait_func,
23546         glthread_cond_timedwait_func, glthread_cond_signal_func,
23547         glthread_cond_broadcast_func, glthread_cond_destroy_func):
23548         Reimplemented on the basis of gl_linked_waitqueue_t.
23549         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
23550         gl_waitqueue_t.
23551         (gl_rwlock_t): Update.
23552         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
23554 2008-10-17  Simon Josefsson  <simon@josefsson.org>
23556         * modules/recvfrom (Depends-on): Add dependency on getpeername.
23557         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23559 2008-10-17  Jim Meyering  <meyering@redhat.com>
23561         ignore-value: new module
23562         * modules/ignore-value: New file.
23563         * lib/ignore-value.h: New file.
23564         * MODULES.html.sh (Compiler warning management): New section,
23565         just for this module.  More to come.
23567 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23569         open-safer.c: avoid 'signed and unsigned in conditional...' warning
23570         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
23571         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
23573 2008-10-16  Jim Meyering  <meyering@redhat.com>
23575         openat-die.c: avoid 'no previous prototype' warning
23576         * lib/openat-die.c: Include "openat.h".
23577         Reported by Reuben Thomas <rrt@sc3d.org>.
23579 2008-10-16  Simon Josefsson  <simon@josefsson.org>
23581         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
23582         * lib/netdb.in.h: Fix typo.
23583         Reported by Bruno Haible  <bruno@clisp.org>
23585         * lib/netdb.in.h: Include sys/socket.h for platforms without
23586         netdb.h, to get structures like hostent on MinGW.
23587         * modules/netdb (Depends-on): Add sys_socket.
23589 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23591         * modules/netdb, modules/netdb-tests: New file.
23592         * m4/netdb_h.m4: New file.
23593         * lib/netdb.in.h: Add, currently just an empty file pending
23594         definitions.
23595         * tests/test-netdb.c: New file.
23596         * doc/posix-headers/netdb.texi: Mention that we replace it if
23597         needed.
23598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23599         netdb.
23601 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23603         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
23604         with code.
23606 2008-10-13  Bruno Haible  <bruno@clisp.org>
23608         * lib/glthread/cond.c (glthread_cond_wait_func,
23609         glthread_cond_timedwait_func): Add a comment.
23611 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23613         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
23614         * tests/test-select.c: Likewise,
23616 2008-10-13  Bruno Haible  <bruno@clisp.org>
23618         * lib/glthread/cond.c (glthread_cond_wait_func,
23619         glthread_cond_timedwait_func): Fix variable name.
23620         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23622 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
23624         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
23625         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
23626         struct sockaddr.sa_len.
23627         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
23629 2008-10-13  Simon Josefsson  <simon@josefsson.org>
23631         * build-aux/pmccabe2html: Add css and css_url parameters.
23633 2008-10-12  Bruno Haible  <bruno@clisp.org>
23635         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
23636         calling aclx_get.
23637         Reported by Rainer Tammer <tammer@tammer.net>.
23639 2008-10-12  Bruno Haible  <bruno@clisp.org>
23641         Use msvcrt aware primitives for creation/termination of Win32 threads.
23642         * lib/glthread/thread.c: Include <process.h>.
23643         (glthread_create_func): Use _beginthreadex instead of CreateThread.
23644         (wrapper_func): Update signature.
23645         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
23647 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23648             Bruno Haible  <bruno@clisp.org>
23650         Provide a Win32 implementation of the 'cond' module.
23651         * lib/glthread/cond.h [USE_WIN32]: New implementation.
23652         * lib/glthread/cond.c (glthread_cond_init_func,
23653         glthread_cond_wait_func, glthread_cond_timedwait_func,
23654         glthread_cond_signal_func, glthread_cond_broadcast_func,
23655         glthread_cond_destroy_func) [USE_WIN32]: New functions.
23656         * modules/cond (Dependencies): Add gettimeofday.
23658 2008-10-11  Bruno Haible  <bruno@clisp.org>
23660         Make sleep work on older versions of mingw.
23661         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
23662         only whether it exists.
23663         * doc/posix-functions/sleep.texi: Mention the problem with older
23664         versions of mingw.
23666 2008-10-11  Bruno Haible  <bruno@clisp.org>
23668         New module 'shutdown'.
23669         * modules/shutdown: New file.
23670         * lib/sys_socket.in.h (shutdown): New declaration.
23671         * lib/winsock.c (shutdown): New function.
23672         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23673         GNULIB_SHUTDOWN.
23674         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
23675         * doc/posix-functions/shutdown.texi: Document the new module.
23677 2008-10-11  Jim Meyering  <meyering@redhat.com>
23679         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
23681 2008-10-11  Bruno Haible  <bruno@clisp.org>
23683         New module 'fclose'.
23684         * modules/fclose: New file.
23685         * lib/stdio.in.h (fclose): New declaration.
23686         * lib/fclose.c: New file.
23687         * m4/fclose.m4: New file.
23688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
23689         REPLACE_FCLOSE.
23690         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
23691         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
23692         REPLACE_FCLOSE.
23693         * modules/close (Depends-on): fclose.
23694         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
23696 2008-10-11  Bruno Haible  <bruno@clisp.org>
23698         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
23699         set errno and don't call _close.
23701 2008-10-10  Bruno Haible  <bruno@clisp.org>
23703         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
23704         ACL, not afterwards. Fixes test failure on Cygwin.
23706 2008-10-09  Ben Pfaff  <blp@gnu.org>
23708         * build-aux/announce-gen: Fix gnulib version related part of usage
23709         message.  Die with a useful error message if no tarballs are
23710         found.
23712 2008-10-10  Jim Meyering  <meyering@redhat.com>
23714         bootstrap: use git's --depth=N option only if it's supported
23715         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
23716         recognize the --depth option.  Reported by Pádraig Brady.
23718 2008-10-09  Bruno Haible  <bruno@clisp.org>
23720         New module 'ioctl'.
23721         * modules/ioctl: New file.
23722         * lib/sys_socket.in.h (ioctl): Remove declaration.
23723         * lib/winsock.c: Include <sys/ioctl.h>.
23724         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
23725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23726         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
23727         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
23728         * doc/posix-functions/ioctl.texi: Mention the new module.
23730 2008-10-09  Bruno Haible  <bruno@clisp.org>
23732         New module 'sys_ioctl'.
23733         * lib/sys_ioctl.in.h: New file.
23734         * m4/sys_ioctl_h.m4: New file.
23735         * modules/sys_ioctl: New file.
23736         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
23738 2008-10-09  Bruno Haible  <bruno@clisp.org>
23740         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
23741         * lib/winsock.c: Include <stdarg.h>.
23742         (rpl_ioctl): Change to second argument 'int' and then varargs.
23744 2008-10-09  Bruno Haible  <bruno@clisp.org>
23746         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
23747         when the sys_socket module is present and the system has <winsock2.h>.
23749 2008-10-09  Bruno Haible  <bruno@clisp.org>
23751         * doc/posix-functions/close.texi: Mention module 'close' instead of
23752         module 'sys_socket'.
23754 2008-10-09  Bruno Haible  <bruno@clisp.org>
23756         * doc/glibc-headers/sys_ioctl.texi: New file.
23757         * doc/gnulib.texi: Include it.
23759 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23760             Bruno Haible  <bruno@clisp.org>
23762         Combine the two replacements of 'close'.
23763         * lib/sys_socket.in.h (close): Define to a reminder to include
23764         <unistd.h>.
23765         (_gl_close_fd_maybe_socket): New declaration.
23766         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
23767         * lib/winsock.c (close): Remove undefinition.
23768         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
23769         needed for the gnulib module 'close'.
23770         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
23771         define to an error symbol or to a warning, if suitable.
23772         * lib/close.c: Include <sys/socket.h>.
23773         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
23774         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
23775         UNISTD_H_HAVE_WINSOCK2_H.
23776         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
23777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23778         UNISTD_H_HAVE_WINSOCK2_H.
23779         * modules/sys_socket (Files): Add m4/unistd_h.m4.
23780         (configure.ac): Set a module indicator.
23781         (Makefile.am): Substitute GNULIB_CLOSE.
23782         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
23783         * modules/poll-tests (Depends-on): Add close.
23784         * modules/select-tests (Depends-on): Likewise.
23786 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23787             Bruno Haible  <bruno@clisp.org>
23789         New module 'close'.
23790         * modules/close: New file.
23791         * lib/unistd.in.h (close): Move declaration out of the
23792         FCHDIR_REPLACEMENT scope.
23793         (_gl_unregister_fd): New declaration.
23794         * lib/close.c: New file.
23795         * lib/fchdir.c (rpl_close): Remove function.
23796         * m4/close.m4: New file.
23797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
23798         close.
23799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
23800         REPLACE_CLOSE.
23801         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
23802         REPLACE_CLOSE.
23803         * modules/fchdir (Depends-on): Add close.
23805 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23806             Bruno Haible  <bruno@clisp.org>
23808         * lib/fcntl.in.h (open): Simplify conditionals.
23809         (_gl_register_fd): New declaration.
23810         * lib/fchdir.c (rpl_open): Remove function.
23811         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
23812         also.
23813         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
23814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
23815         open.
23817 2008-10-09  Jim Meyering  <meyering@redhat.com>
23819         GNUmakefile: use the more name-space-friendly "_version"
23820         * top/GNUmakefile (_dummy): Update.
23821         (_version): Rename from "version".
23823 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23824             Bruno Haible  <bruno@clisp.org>
23826         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
23827         rpl_close.
23828         (_gl_register_fd): New function, extracted from rpl_open.
23829         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
23830         (rpl_open, rpl_opendir): Use _gl_register_fd.
23832 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
23834         Fix organization of 'open' replacement.
23835         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
23836         (gl_FUNC_OPEN): Use it.
23837         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
23839 2008-10-08  Bruno Haible  <bruno@clisp.org>
23841         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
23843 2008-10-08  Simon Josefsson  <simon@josefsson.org>
23845         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
23846         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
23847         listen).
23849 2008-10-08  Eric Blake  <ebb9@byu.net>
23851         GNUmakefile: add 'make version' target
23852         * top/GNUmakefile (_curr-ver): Split version update rules...
23853         (version): ...into a target.
23855 2008-10-07  Bruno Haible  <bruno@clisp.org>
23857         Use a more portable replacement expression for -0.0L.
23858         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
23859         instead of -0.0L. Fix m4 quotation.
23861         * tests/test-signbit.c: Include <float.h>.
23862         (minus_zero): New variable.
23863         (test_signbitl): Use minus_zero instead of -zero.
23864         * modules/signbit-tests (Depends-on): Add float.
23866         * tests/test-ceill.c: Include <float.h>.
23867         (zero): Remove variable.
23868         (minus_zero): New variable.
23869         (main): Use minus_zero instead of -zero.
23870         * modules/ceill-tests (Depends-on): Add float.
23872         * tests/test-floorl.c: Include <float.h>.
23873         (zero): Remove variable.
23874         (minus_zero): New variable.
23875         (main): Use minus_zero instead of -zero.
23876         * modules/floorl-tests (Depends-on): Add float.
23878         * tests/test-roundl.c: Include <float.h>.
23879         (zero): Remove variable.
23880         (minus_zero): New variable.
23881         (main): Use minus_zero instead of -zero.
23882         * modules/roundl-tests (Depends-on): Add float.
23884         * tests/test-truncl.c: Include <float.h>.
23885         (zero): Remove variable.
23886         (minus_zero): New variable.
23887         (main): Use minus_zero instead of -zero.
23888         * modules/truncl-tests (Depends-on): Add float.
23890         * tests/test-frexpl.c (zero): Remove variable.
23891         (minus_zero): New variable.
23892         (main): Use minus_zero instead of -zero.
23893         * modules/frexpl-tests (Depends-on): Add float.
23895         * tests/test-isnan.c (zerol): Remove variable.
23896         (minus_zerol): New variable.
23897         (test_long_double): Use minus_zerol instead of -zerol.
23898         * modules/isnan-tests (Depends-on): Add float.
23900         * tests/test-isnanl.h (zero): Remove variable.
23901         (minus_zero): New variable.
23902         (main): Use minus_zero instead of -zero.
23903         * modules/isnanl-nolibm-tests (Depends-on): Add float.
23904         * modules/isnanl-tests (Depends-on): Add float.
23906         * tests/test-ldexpl.c (zero): Remove variable.
23907         (minus_zero): New variable.
23908         (main): Use minus_zero instead of -zero.
23909         * modules/ldexpl-tests (Depends-on): Add float.
23911         * tests/test-snprintf-posix.h (zerol): Remove variable.
23912         (minus_zerol): New variable.
23913         (test_function): Use minus_zerol instead of -zerol.
23914         * modules/snprintf-posix-tests (Depends-on): Add float.
23915         * modules/vsnprintf-posix-tests (Depends-on): Add float.
23917         * tests/test-sprintf-posix.h (zerol): Remove variable.
23918         (minus_zerol): New variable.
23919         (test_function): Use minus_zerol instead of -zerol.
23920         * modules/sprintf-posix-tests (Depends-on): Add float.
23921         * modules/vsprintf-posix-tests (Depends-on): Add float.
23923         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
23924         (minus_zerol): New variable.
23925         (test_function): Use minus_zerol instead of -zerol.
23926         * modules/vasnprintf-posix-tests (Depends-on): Add float.
23928         * tests/test-vasprintf-posix.c (zerol): Remove variable.
23929         (minus_zerol): New variable.
23930         (test_function): Use minus_zerol instead of -zerol.
23931         * modules/vasprintf-posix-tests (Depends-on): Add float.
23933 2008-10-07  Simon Josefsson  <simon@josefsson.org>
23935         * MODULES.html.sh (Support for building documentation): Mention
23936         pmccabe2html.  Sort entries.
23938         Add pmccabe2html module, from gnupdf.
23939         * build-aux/pmccabe.css: New file.
23940         * build-aux/pmccabe2html: New file.
23941         * m4/pmccabe2html.m4: New file.
23942         * modules/pmccabe2html: New file.
23944 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
23946         flock: new module
23947         * MODULES.html.sh: Add to list of modules.
23948         * lib/flock.c: flock implementation for Windows and Unix systems
23949         which have fcntl.
23950         * doc/glibc-functions/flock.texi: Update documentation.
23951         * lib/sys_file.in.h: <sys/file.h> header file.
23952         * m4/flock.m4: M4 macros.
23953         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
23954         * modules/flock: flock module.
23955         * modules/flock-tests: flock tests module.
23956         * modules/sys_file: sys/file.h module.
23957         * tests/test-flock.c: test suite for flock.
23959 2008-10-06  Jim Meyering  <meyering@redhat.com>
23961         bootstrap: check for LT_INIT more portably still ;-)
23962         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
23963         Spotted by Bruno Haible.
23965 2008-10-06  Eric Blake  <ebb9@byu.net>
23967         test-signbit: avoid tripping Irix cc bug on -0.0L
23968         * tests/test-signbit.c (minus_zerol): Delete, and replace with
23969         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
23970         entire testsuite consistent and avoids an Irix 6.2 bug.
23972 2008-10-05  Bruno Haible  <bruno@clisp.org>
23973             Jim Meyering  <jim@meyering.net>
23975         Add an option for ignoring EPIPE during close_stdout.
23976         * lib/closeout.h: Include <stdbool.h>.
23977         (close_stdout_set_ignore_EPIPE): New declaration.
23978         * lib/closeout.c: Include <stdbool.h>.
23979         (ignore_EPIPE): New variable.
23980         (close_stdout_set_ignore_EPIPE): New function.
23981         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
23982         * lib/close-stream.c (close_stream): Mention the possible EPIPE
23983         failure.
23984         * modules/closeout (Depends-on): Add stdbool.
23986 2008-10-05  Bruno Haible  <bruno@clisp.org>
23988         * modules/accept: New file.
23989         * modules/bind: New file.
23990         * modules/connect: New file.
23991         * modules/getpeername: New file.
23992         * modules/getsockname: New file.
23993         * modules/getsockopt: New file.
23994         * modules/listen: New file.
23995         * modules/recv: New file.
23996         * modules/recvfrom: New file.
23997         * modules/send: New file.
23998         * modules/sendto: New file.
23999         * modules/setsockopt: New file.
24000         * modules/socket: New file.
24001         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24002         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24003         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24004         the particular module is requested. Add a link warning when the
24005         particular module is not requested.
24006         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24007         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24008         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24009         the particular module is requested.
24010         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24011         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24012         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24013         * modules/sys_socket (Depends-on): Add link-warning.
24014         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24015         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24016         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24017         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24018         GL_LINK_WARNING.
24019         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24020         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24021         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24022         * doc/posix-functions/getpeername.texi: Mention the new module
24023         'getpeername'.
24024         * doc/posix-functions/getsockname.texi: Mention the new module
24025         'getsockname'.
24026         * doc/posix-functions/getsockopt.texi: Mention the new module
24027         'getsockopt'.
24028         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24029         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24030         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24031         * doc/posix-functions/send.texi: Mention the new module 'send'.
24032         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24033         * doc/posix-functions/setsockopt.texi: Mention the new module
24034         'setsockopt'.
24035         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24036         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24037         listen, connect, accept.
24038         * modules/select-tests (Depends-on): Likewise.
24040 2008-10-05  Bruno Haible  <bruno@clisp.org>
24042         * lib/winsock.c (strerror): Remove unused #undef.
24043         (rpl_close): Remove unused local variable.
24045         * modules/sys_socket (Depends-on); Add errno.
24047 2008-10-05  Bruno Haible  <bruno@clisp.org>
24049         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24050         (select): Add a link warning when the 'select' module is not used.
24051         * modules/sys_select (Depends-on): Add link-warning.
24052         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24053         Suggested by Paolo Bonzini.
24055 2008-10-05  Jim Meyering  <meyering@redhat.com>
24057         bootstrap: check for LT_INIT more portably
24058         * build-aux/bootstrap: Avoid using grep -E, since it's not
24059         portable enough.  Suggestion from Bruno Haible.
24061 2008-10-05  Bruno Haible  <bruno@clisp.org>
24063         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24064         as being fixed by gnulib.
24066 2008-10-05  Bruno Haible  <bruno@clisp.org>
24068         * modules/select-tests: New file, mostly copied from
24069         modules/sys_select-tests.
24070         * tests/test-select.c: New file, mostly copied from
24071         tests/test-sys_select.c.
24072         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24073         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24074         (Makefile.am): Remove test_sys_select_LDADD.
24076         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24077         to an undefined symbol, for an error message.
24078         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24079         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24080         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24081         winsock-select.c here.
24082         * modules/sys_select (Files): Remove lib/winsock-select.c.
24083         (Depends-on): Remove alloca.
24084         (Makefile.am): Substitute GNULIB_SELECT.
24085         * modules/select: New file.
24086         * doc/posix-functions/select.texi: Update.
24088 2008-10-05  Bruno Haible  <bruno@clisp.org>
24090         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24091         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24092         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24093         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24094         getdtablesize.
24095         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24096         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24098 2008-10-05  Bruno Haible  <bruno@clisp.org>
24100         * modules/getdtablesize-tests: New file.
24101         * tests/test-getdtablesize.c: New file.
24103         New module 'getdtablesize'.
24104         * lib/unistd.in.h (getdtablesize): New declaration.
24105         * lib/getdtablesize.c: New file.
24106         * m4/getdtablesize.m4: New file.
24107         * modules/getdtablesize: New file.
24108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24109         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24110         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24111         HAVE_GETDTABLESIZE.
24112         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24114 2008-10-05  Bruno Haible  <bruno@clisp.org>
24116         * modules/sched (Makefile.am): Fix typo.
24117         Reported by Simon Josefsson.
24119 2008-10-05  Jim Meyering  <meyering@redhat.com>
24121         bootstrap: check for LT_INIT, too
24122         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24123         are deprecated.  Suggestion from Ralf Wildenhues.
24125 2008-10-05  Bruno Haible  <bruno@clisp.org>
24127         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24128         overriding them by ours.
24129         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24131 2008-10-05  Jim Meyering  <meyering@redhat.com>
24133         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24134         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24135         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24137 2008-10-04  Bruno Haible  <bruno@clisp.org>
24139         * modules/dup2 (License): Change to LGPLv2+.
24140         * modules/sleep (License): Likewise.
24141         * modules/perror (License): Likewise.
24142         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24143         Blake.
24144         * modules/signal (License): Likewise.
24145         * modules/sigprocmask (License): Likewise.
24146         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24147         Meyering.
24149 2008-10-04  Bruno Haible  <bruno@clisp.org>
24151         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24152         Reported by Rainer Tammer <tammer@tammer.net>.
24154 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24155             Bruno Haible  <bruno@clisp.org>
24157         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24158         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24159         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24161 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24163         filevercmp: new module
24164         * lib/filevercmp.h: New function filevercmp comparing version strings.
24165         * lib/filevercmp.c: Implementation of filevercmp function.
24166         * modules/filevercmp: Module metadata.
24167         * tests/test-filevercmp.c: Unit test for new module.
24168         * modules/filevercmp-tests: Unit test metadata.
24169         * MODULES.html.sh: Add filevercmp module.
24171 2008-10-03  Bruno Haible  <bruno@clisp.org>
24173         * lib/c-ctype.h: Add comment.
24174         Reported by Jim Meyering.
24176 2008-10-02  Bruno Haible  <bruno@clisp.org>
24178         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24180 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24182         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24183         name of bootstrap.conf accordingly.
24185 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24187         * build-aux/bootstrap: Install git-merge-changelog configuration
24188         items into .gitconfig if needed.
24190 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24192         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24193         git repository, and initialize/update it accordingly.
24195 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24197         * modules/fsync-tests: New file.
24198         * tests/test-fsync.c: New file.
24200         New module 'fsync'.
24201         * lib/fsync.c: New file.
24202         * m4/fsync.m4: New file.
24203         * modules/fsync: New file.
24204         * lib/unistd.in.h (fsync): New declaration.
24205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24206         GNULIB_FSYNC and HAVE_FSYNC.
24207         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24208         * MODULES.html.sh (posix_functions): Add fsync.
24209         * doc/posix-functions/fsync.texi: Mention the new module.
24211 2008-10-02  Jim Meyering  <meyering@redhat.com>
24213         fts.c: sync with similar code from coreutils' remove.c
24214         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24215         Guard also with "#if defined __linux__", since for now at least,
24216         this code is Linux-kernel-specific.
24218 2008-10-02  Jim Meyering  <meyering@redhat.com>
24220         fts: bug fixes
24221         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24222         Include <sys/vfs.h>, not <sys/statfs.h>.
24224         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24225         Include <sys/vfs.h>, not <sys/statfs.h>.
24227 2008-10-01  Bruno Haible  <bruno@clisp.org>
24229         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24230         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24231         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24232         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24233         * doc/posix-functions/posix_spawnp.texi: Likewise.
24234         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24235         whether posix_spawn actually works.
24236         * m4/pipe.m4 (gl_PIPE): Likewise.
24237         * modules/execute (Files): Add m4/posix_spawn.m4.
24238         * modules/pipe (Files): Add m4/posix_spawn.m4.
24239         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24241 2008-10-01  Jim Meyering  <meyering@redhat.com>
24243         remove trailing spaces
24244         * NEWS: Likewise.
24245         * lib/poll.c (poll): Likewise.
24246         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24247         * lib/winsock.c (rpl_close): Likewise.
24248         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24249         * modules/yield: Likewise.
24250         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24251         * tests/test-sys_select.c (connect_to_socket): Likewise.
24253         fts.c: adjust a new interface to be more generally useful
24254         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24255         (fts_build): Adjust caller.
24257 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24259         * modules/cond-tests: New file.
24260         * tests/test-cond.c: New file.
24262 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24263             Bruno Haible  <bruno@clisp.org>
24265         * modules/cond (Dependencies): Add errno, time.
24266         * lib/glthread/cond.h: Include <time.h>.
24267         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24268         across platforms.
24270 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24271             Bruno Haible  <bruno@clisp.org>
24273         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24275 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24276             Bruno Haible  <bruno@clisp.org>
24278         * modules/tls-tests (Depends-on): Add thread, yield.
24279         (configure.ac): Remove all checks.
24280         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24281         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24282         gl_thread_self): Remove definitions. Include glthread/thread.h and
24283         glthread/yield.h instead.
24284         (test_tls): Pass an additional NULL argument to gl_thread_join.
24286 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24287             Bruno Haible  <bruno@clisp.org>
24289         * modules/lock-tests (Depends-on): Add thread, yield.
24290         (configure.ac): Remove all checks.
24291         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24292         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24293         gl_thread_self): Remove definitions. Include glthread/thread.h and
24294         glthread/yield.h instead.
24295         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24296         additional NULL argument to gl_thread_join.
24298 2008-09-30  Bruno Haible  <bruno@clisp.org>
24300         Fix the Win32 implementation of the 'thread' module.
24301         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24302         pointer type.
24303         (gl_thread_self): Invoke gl_thread_self_func.
24304         (gl_thread_self_func): New declaration.
24305         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
24306         (do_init_self_key, init_self_key): New functions.
24307         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
24308         Remove some fields.
24309         (running_threads, running_lock): Remove variables.
24310         (get_current_thread_handle): New function.
24311         (gl_thread_self_func, wrapper_func, glthread_create_func,
24312         glthread_join_func, gl_thread_exit_func): Largely rewritten and
24313         simplified.
24315 2008-09-30  Bruno Haible  <bruno@clisp.org>
24317         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
24318         files.
24320 2008-09-30  Jim Meyering  <meyering@redhat.com>
24322         fts.m4: correct the test for statfs.f_type
24323         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
24324         when checking for statfs.f_type.
24326 2008-09-15  Simon Josefsson  <simon@josefsson.org>
24328         tests: avoid some compiler warnings
24329         * tests/test-memchr.c (main): Pass NULL indirectly.
24330         * tests/test-getdate.c (main): Remove unused variable 'ret'.
24332 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
24334         getdate.y: disallow countable dayshifts like "4 yesterday ago"
24335         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
24336         exactly specified dayshifts.
24337         (dayshift): New rule.
24338         (rel): Add dayshift.
24339         (relative_time_table) [tomorrow, yesterday, today, now]:
24340         Use tDAY_SHIFT in place of tDAY_UNIT.
24341         * tests/test-getdate.c: Add tests for now-disallowed countable
24342         dayshifts, e.g., "4 yesterday ago".
24344 2008-09-29  Bruno Haible  <bruno@clisp.org>
24346         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
24347         * tests/test-posix_spawn1.in.sh: Renamed from
24348         tests/test-posix_spawn.in.sh.
24349         * tests/test-posix_spawn2.c: New file.
24350         * tests/test-posix_spawn2.in.sh: New file.
24351         * modules/posix_spawnp-tests (Files): Update.
24352         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
24354 2008-09-29  Bruno Haible  <bruno@clisp.org>
24356         Propagate effects of putenv/setenv/unsetenv to child processes.
24357         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
24358         * lib/pipe.c (create_pipe): Likewise.
24360 2008-09-29  Bruno Haible  <bruno@clisp.org>
24362         Enable use of shell scripts as executables in mingw.
24363         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
24364         run the program as a shell script.
24365         * lib/pipe.c (create_pipe): Likewise.
24366         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
24367         resulting array.
24369 2008-09-29  Eric Blake  <ebb9@byu.net>
24371         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
24373 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
24375         * doc/posix-functions/accept.texi: Update mingw problems.
24376         * doc/posix-functions/bind.texi: Update mingw problems.
24377         * doc/posix-functions/close.texi: Update mingw problems.
24378         * doc/posix-functions/connect.texi: Update mingw problems.
24379         * doc/posix-functions/getpeername.texi: Update mingw problems.
24380         * doc/posix-functions/getsockname.texi: Update mingw problems.
24381         * doc/posix-functions/getsockopt.texi: Update mingw problems.
24382         * doc/posix-functions/ioctl.texi: Update mingw problems.
24383         * doc/posix-functions/listen.texi: Update mingw problems.
24384         * doc/posix-functions/recv.texi: Update mingw problems.
24385         * doc/posix-functions/recvfrom.texi: Update mingw problems.
24386         * doc/posix-functions/select.texi: Update mingw problems.
24387         * doc/posix-functions/send.texi: Update mingw problems.
24388         * doc/posix-functions/sendto.texi: Update mingw problems.
24389         * doc/posix-functions/setsockopt.texi: Update mingw problems.
24390         * doc/posix-functions/socket.texi: Update mingw problems.
24392 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
24393             Bruno Haible  <bruno@clisp.org>
24395         * lib/sys_select.in.h: Include sys/time.h.
24396         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
24397         * modules/sys_select: Depend on sys_time.
24398         * tests/test-sys_select.c: Test that sys/select.h defines struct
24399         timeval fully.
24401 2008-09-29  Bruno Haible  <bruno@clisp.org>
24403         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
24404         * lib/sys_select.in.h: Likewise.
24406 2008-09-29  Bruno Haible  <bruno@clisp.org>
24408         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
24410 2008-09-29  Bruno Haible  <bruno@clisp.org>
24412         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
24413         Set LIBSOCKET instead of augmenting LIBS.
24414         * modules/sockets (Link): New section.
24415         * modules/sockets-tests (test_sockets_LDADD): New variable.
24416         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
24417         * modules/poll-tests (test_poll_LDADD): New variable.
24418         * NEWS: Document the change.
24420 2008-09-29  Bruno Haible  <bruno@clisp.org>
24422         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
24423         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
24424         ARPA_INET_H directly.
24425         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24427 2008-09-28  Bruno Haible  <bruno@clisp.org>
24429         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
24430         from gl_HEADER_SYS_SOCKET.
24431         (gl_HEADER_SYS_SOCKET): Invoke it.
24432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24434 2008-09-28  Bruno Haible  <bruno@clisp.org>
24436         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
24437         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
24438         Needed on OSF/1 4.0.
24440 2008-09-28  Bruno Haible  <bruno@clisp.org>
24442         Override open more carefully.
24443         * lib/open.c (orig_open): New function.
24444         (rpl_open): Use orig_open instead of open.
24445         * lib/fcntl.in.h: Add special invocation convention.
24446         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
24447         (gl_FUNC_OPEN): Invoke it.
24449         Override freopen more carefully.
24450         * lib/freopen.c (orig_freopen): New function.
24451         (rpl_freopen): Use orig_freopen instead of freopen.
24452         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
24453         (gl_FUNC_FREOPEN): Invoke it.
24455         Override fopen more carefully.
24456         * lib/fopen.c (orig_fopen): New function.
24457         (rpl_fopen): Use orig_fopen instead of fopen.
24458         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
24459         (gl_FUNC_FOPEN): Invoke it.
24460         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
24462 2008-09-28  Bruno Haible  <bruno@clisp.org>
24464         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
24465         SIGPIPE.
24467 2008-09-28  Bruno Haible  <bruno@clisp.org>
24469         * tests/test-sigaction.c (handler, main): Disable the check whether
24470         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
24471         glibc systems with LinuxThreads.
24473 2008-09-28  Bruno Haible  <bruno@clisp.org>
24475         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
24477         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
24478         with AIX xlc.
24479         * lib/fcntl.in.h (open): Likewise.
24480         Reported by Rainer Tammer <tammer@tammer.net>.
24482 2008-09-28  Bruno Haible  <bruno@clisp.org>
24484         * modules/posix_spawnp-tests: New file.
24485         * tests/test-posix_spawn.c: New file.
24486         * tests/test-posix_spawn.in.sh: New file.
24488         New module 'posix_spawnp'.
24489         * modules/posix_spawnp: New file.
24490         * lib/spawnp.c: New file, from GNU libc with modifications.
24491         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
24493         New module 'posix_spawn'.
24494         * modules/posix_spawn: New file.
24495         * lib/spawn.c: New file, from GNU libc with modifications.
24496         * doc/posix-functions/posix_spawn.texi: Mention the new module.
24498         New module 'posix_spawnattr_destroy'.
24499         * modules/posix_spawnattr_destroy: New file.
24500         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
24501         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
24502         module.
24504         New module 'posix_spawnattr_setsigmask'.
24505         * modules/posix_spawnattr_setsigmask: New file.
24506         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
24507         modifications.
24508         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
24509         new module.
24511         New module 'posix_spawnattr_getsigmask'.
24512         * modules/posix_spawnattr_getsigmask: New file.
24513         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
24514         modifications.
24515         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
24516         new module.
24518         New module 'posix_spawnattr_setsigdefault'.
24519         * modules/posix_spawnattr_setsigdefault: New file.
24520         * lib/spawnattr_setdefault.c: New file, from GNU libc with
24521         modifications.
24522         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
24523         new module.
24525         New module 'posix_spawnattr_getsigdefault'.
24526         * modules/posix_spawnattr_getsigdefault: New file.
24527         * lib/spawnattr_getdefault.c: New file, from GNU libc with
24528         modifications.
24529         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
24530         new module.
24532         New module 'posix_spawnattr_setschedpolicy'.
24533         * modules/posix_spawnattr_setschedpolicy: New file.
24534         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
24535         modifications.
24536         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
24537         new module.
24539         New module 'posix_spawnattr_getschedpolicy'.
24540         * modules/posix_spawnattr_getschedpolicy: New file.
24541         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
24542         modifications.
24543         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
24544         new module.
24546         New module 'posix_spawnattr_setschedparam'.
24547         * modules/posix_spawnattr_setschedparam: New file.
24548         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
24549         modifications.
24550         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
24551         new module.
24553         New module 'posix_spawnattr_getschedparam'.
24554         * modules/posix_spawnattr_getschedparam: New file.
24555         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
24556         modifications.
24557         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
24558         new module.
24560         New module 'posix_spawnattr_setpgroup'.
24561         * modules/posix_spawnattr_setpgroup: New file.
24562         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
24563         modifications.
24564         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
24565         module.
24567         New module 'posix_spawnattr_getpgroup'.
24568         * modules/posix_spawnattr_getpgroup: New file.
24569         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
24570         modifications.
24571         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
24572         module.
24574         New module 'posix_spawnattr_setflags'.
24575         * modules/posix_spawnattr_setflags: New file.
24576         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
24577         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
24578         module.
24580         New module 'posix_spawnattr_getflags'.
24581         * modules/posix_spawnattr_getflags: New file.
24582         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
24583         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
24584         module.
24586         New module 'posix_spawnattr_init'.
24587         * modules/posix_spawnattr_init: New file.
24588         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
24589         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
24590         module.
24592         New module 'posix_spawn_file_actions_destroy'.
24593         * modules/posix_spawn_file_actions_destroy: New file.
24594         * lib/spawn_faction_destroy.c: New file, from GNU libc with
24595         modifications.
24596         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
24597         the new module.
24599         New module 'posix_spawn_file_actions_addopen'.
24600         * modules/posix_spawn_file_actions_addopen: New file.
24601         * lib/spawn_faction_addopen.c: New file, from GNU libc with
24602         modifications.
24603         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24604         the new module.
24606         New module 'posix_spawn_file_actions_adddup2'.
24607         * modules/posix_spawn_file_actions_adddup2: New file.
24608         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
24609         modifications.
24610         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24611         the new module.
24613         New module 'posix_spawn_file_actions_addclose'.
24614         * modules/posix_spawn_file_actions_addclose: New file.
24615         * lib/spawn_faction_addclose.c: New file, from GNU libc with
24616         modifications.
24617         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24618         the new module.
24620         New module 'posix_spawn_file_actions_init'.
24621         * modules/posix_spawn_file_actions_init: New file.
24622         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
24623         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
24624         new module.
24626         New module 'posix_spawn-internal'.
24627         * modules/posix_spawn-internal: New file.
24628         * lib/spawn_int.h: New file, from GNU libc with modifications.
24629         * lib/spawni.c: New file, from GNU libc with modifications.
24630         * m4/posix_spawn.m4: New file.
24632         New module 'spawn'.
24633         * modules/spawn: New file.
24634         * lib/spawn.in.h: New file, from GNU libc with modifications.
24635         * m4/spawn_h.m4: New file.
24636         * doc/posix-headers/spawn.texi: Mention the new module.
24638 2008-09-28  Bruno Haible  <bruno@clisp.org>
24640         * modules/sched-tests: New file.
24641         * tests/test-sched.c: New file.
24643         New module 'sched'.
24644         * modules/sched: New file.
24645         * lib/sched.in.h: New file.
24646         * m4/sched_h.m4: New file.
24647         * doc/posix-headers/sched.texi: Mention the new module.
24649 2008-09-27  Eric Blake  <ebb9@byu.net>
24651         Fix previous patch, and tweak references to $0.
24652         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
24653         (func_version, func_gnulib_dir): Don't call this program
24654         gnulib-tool.
24655         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
24656         with using $0 in function.
24657         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
24658         (func_fatal_error): Reuse the name the user invoked us with.
24660 2008-09-27  Bruno Haible  <bruno@clisp.org>
24662         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
24663         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
24664         (gl_ICONV_H): Not here.
24665         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24666         instead of assigning ICONV_H directly.
24668         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
24669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
24670         WCHAR_H directly.
24672 2008-09-27  Bruno Haible  <bruno@clisp.org>
24674         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
24675         * modules/arpa_inet (Depends-on): Add link-warning.
24676         (Makefile.am): Insert the definition of GL_LINK-WARNING.
24677         * modules/unistd (Makefile.am): Likewise.
24679 2008-09-26  Bruno Haible  <bruno@clisp.org>
24681         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
24682         variables.
24683         (func_version): Essentially copied from gnulib-tool.
24684         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
24685         func_readlink): Copied from gnulib-tool.
24687 2008-09-26  Bruno Haible  <bruno@clisp.org>
24689         * gnulib-tool (func_version): Change directory to $gnulib_dir before
24690         invoking git-version-gen.
24692 2008-09-26  Bruno Haible  <bruno@clisp.org>
24694         * posix-modules: Update to directory names changed on 2008-01-19.
24695         Remove commas in output before splitting into words. No more need to
24696         avoid 'ftruncate' since 2007-02-19.
24698 2008-09-26  Bruno Haible  <bruno@clisp.org>
24700         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
24702 2008-09-26  Bruno Haible  <bruno@clisp.org>
24704         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
24705         * modules/fwriteerror (Depends-on): Add errno.
24707 2008-09-26  Bruno Haible  <bruno@clisp.org>
24709         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
24710         * tests/test-vc-list-files-cvs.sh: Likewise.
24712 2008-09-26  Bruno Haible  <bruno@clisp.org>
24714         * doc/posix-headers/sys_resource.texi: Reorder items.
24716 2008-09-26  Jim Meyering  <meyering@redhat.com>
24718         fts: tweak inode comparison function
24719         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
24720         inode numbers, as documented.
24722         fts: sort dirent entries on inode number before traversing
24723         This avoids a quadratic, seek-related performance penalty when
24724         operating on a directory containing many entries (measurable at 10k;
24725         3.5 hours at 2 million entries with a cold cache) on certain types
24726         of file systems, including ext3 and ext4, but not tmpfs.
24727         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
24728         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
24729         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
24730         (fs_handles_readdir_ordered_dirents_efficiently): New function.
24731         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
24732         (fts_build): Set the stat.st_ino member from D_INO.
24733         If it is likely to be useful, sort dirent entries on inode number.
24735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
24736         and the struct statfs.f_type member.
24737         * modules/fts (Depends-on): Add d-ino.
24739 2008-09-26  Bruno Haible  <bruno@clisp.org>
24741         * modules/sigpipe-die (Depends-on): Add sigpipe.
24743         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
24744         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
24745         and GNULIB_STDIO_H_SIGPIPE are set.
24746         * lib/stdio-write.c: New file.
24747         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
24748         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24749         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24750         REPLACE_STDIO_WRITE_FUNCS.
24751         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
24752         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24753         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24754         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
24755         * modules/stdio (Files): Add lib/stdio-write.c.
24756         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
24757         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24758         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24759         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
24760         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
24761         REPLACE_FPRINTF_POSIX.
24762         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
24763         REPLACE_PRINTF_POSIX.
24764         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
24765         REPLACE_VFPRINTF_POSIX.
24766         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
24767         REPLACE_VPRINTF_POSIX.
24768         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
24769         SIGPIPE issue.
24770         * doc/posix-functions/fputc.texi: Likewise.
24771         * doc/posix-functions/fputs.texi: Likewise.
24772         * doc/posix-functions/fwrite.texi: Likewise.
24773         * doc/posix-functions/printf.texi: Likewise.
24774         * doc/posix-functions/putc.texi: Likewise.
24775         * doc/posix-functions/putchar.texi: Likewise.
24776         * doc/posix-functions/puts.texi: Likewise.
24777         * doc/posix-functions/vfprintf.texi: Likewise.
24778         * doc/posix-functions/vprintf.texi: Likewise.
24780         * modules/safe-write (Depends-on): Add write.
24782         * modules/sigpipe-tests: New file.
24783         * tests/test-sigpipe.c: New file.
24784         * tests/test-sigpipe.sh: New file.
24786         * modules/write: New file.
24787         * lib/unistd.in.h: Include <sys/types.h>.
24788         (write): New declaration.
24789         * lib/write.c: New file.
24790         * m4/write.m4: New file.
24791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24792         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
24793         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
24794         GNULIB_WRITE, REPLACE_WRITE.
24795         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
24796         and the SIGPIPE issue.
24798         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
24799         (raise): New declaration.
24800         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
24801         (ext_signal): New function.
24802         (rpl_raise): New function.
24803         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
24804         GNULIB_SIGNAL_H_SIGPIPE.
24805         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
24806         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
24808         * modules/sigpipe: New file.
24809         * m4/sigpipe.m4: New file.
24811 2008-09-25  Derek Price  <derek@ximbiot.com>
24812             Bruno Haible  <bruno@clisp.org>
24814         * gnulib-tool (func_import): Report all license incompatibilities, not
24815         just the first one.
24817 2008-09-25  Bruno Haible  <bruno@clisp.org>
24819         * gnulib-tool (func_import): When computing the edits, consider not
24820         only the Makefile.ams that exist but also those that will be generated.
24822 2008-09-25  Simon Josefsson  <simon@josefsson.org>
24824         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
24825         fixes gnulib-tool --test warning about duplicate dependency.
24827 2008-09-25  Bruno Haible  <bruno@clisp.org>
24829         * gnulib-tool: Don't ask the user to perform edits in the generated
24830         Makefile.ams.
24831         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
24832         apply to the Makefile.am being generated.
24833         (func_emit_tests_Makefile_am): Execute edits that apply to the
24834         Makefile.am being generated.
24835         (func_import): Setup list of Makefile.am edits before emitting the
24836         Makefile.ams, not at the end.
24837         (func_create_testdir): Update.
24838         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24840 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24842         * gnulib-tool (func_import): Store the --tests-base option in the
24843         comment in gnulib-cache.m4.
24845 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
24847         * NEWS: Document increased portability that sys_select now provides.
24849         * lib/sys_select.in.h: Install select wrapper.
24850         * lib/sys_socket.in.h: Use more descriptive name when there is no
24851         select wrapper.
24852         * lib/winsock-select.c: New.
24853         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
24854         Require gl_HEADER_SYS_SOCKET.
24855         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
24856         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
24857         * tests/test-sys_select.c: Add functional tests.
24859 2008-09-24  Eric Blake  <ebb9@byu.net>
24861         open, fopen: close fd leak in last patch
24862         * lib/open.c (rpl_open): Close fd before returning error.
24863         * lib/fopen.c (rpl_fopen): Close fd before returning error.
24864         * doc/posix-functions/open.texi (open): Document that Irix also
24865         has the bug.
24866         * doc/posix-functions/fopen.texi (fopen): Likewise.
24867         Reported by Paolo Bonzini.
24869 2008-09-24  Bruno Haible  <bruno@clisp.org>
24871         Ensure that a filename ending in a slash cannot be used to access a
24872         non-directory.
24873         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
24874         to check whether it's really a directory.
24875         * lib/fopen.c: Include fcntl.h, unistd.h.
24876         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
24877         and fdopen().
24878         * modules/fopen (Depends-on): Add unistd.
24879         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
24880         * tests/test-fopen.c (main): Likewise.
24881         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
24882         * doc/posix-functions/fopen.texi: Likewise.
24883         Reported by Eric Blake.
24885 2008-09-23  Eric Blake  <ebb9@byu.net>
24887         c-stack: avoid compiler optimizations when provoking overflow
24888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
24889         recursion harder to optimize, to ensure a stack overflow occurs.
24890         * tests/test-c-stack.c (recurse): Likewise.
24891         Borrowed from libsigsegv.
24893         c-stack: work around Irix sigaltstack bug
24894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
24895         whether sigaltstack uses wrong end of stack_t (copied in part from
24896         libsigsegv).
24897         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
24898         Irix bug, without requiring an over-allocation.
24899         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
24900         bug.
24902         fopen: document mingw bug on directories
24903         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
24904         not allowing a stream visiting a directory, even though reading
24905         from such a stream is not portable.
24907 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
24909         * lib/poll.c: Rewrite.
24910         * modules/poll: Depend on alloca.
24912 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
24914         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
24915         instead define prototypes for a full set of wrappers.  Ensure
24916         that Cygwin does not use the compatibility code, which is only
24917         for MinGW.
24918         * lib/winsock.c: New.
24919         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
24920         * modules/sys_socket: Add lib/winsock.c.
24922         * modules/poll-tests: Add errno and perror.
24923         * tests/test-poll.c: Use ioctl, not ioctlsocket.
24925 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
24927         * tests/test-poll.c: Downgrade minimum needed Winsock version.
24929 2008-09-23  Bruno Haible  <bruno@clisp.org>
24931         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
24932         * doc/glibc-functions/*: Likewise.
24934 2008-09-23  Simon Josefsson  <simon@josefsson.org>
24936         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
24937         success.
24939 2008-09-22  Eric Blake  <ebb9@byu.net>
24940             Bruno Haible  <bruno@clisp.org>
24942         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
24943         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
24944         supply %A but mishandle pseudo-NaN.
24945         Reported by Simon Josefsson.
24947 2008-09-21  Bruno Haible  <bruno@clisp.org>
24949         * tests/test-lock.c (main): Tweak skip message.
24950         * tests/test-tls.c (main): Likewise.
24952 2008-09-21  Bruno Haible  <bruno@clisp.org>
24954         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
24955         whether 'struct sigaction' has sa_sigaction here...
24956         (gl_PREREQ_SIG_HANDLER_H): ... not here.
24957         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
24959 2008-09-21  Bruno Haible  <bruno@clisp.org>
24961         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
24962         section.
24963         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
24964         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
24965         the new section.
24966         (Support for obsolete systems lacking POSIX:2001): New section.
24967         (String handling <string.h>): Move strdup to the new section.
24968         Suggested by Simon Josefsson and Paolo Bonzini.
24970 2008-09-21  Bruno Haible  <bruno@clisp.org>
24972         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
24973         exponents in %e and %g results on 'long double'. Needed for mingw's
24974         improved *printf functions.
24975         * tests/test-vasprintf-posix.c (test_function): Likewise.
24976         * tests/test-snprintf-posix.h (test_function): Likewise.
24977         * tests/test-sprintf-posix.h (test_function): Likewise.
24978         Reported by Eric Blake.
24980 2008-09-21  Bruno Haible  <bruno@clisp.org>
24982         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
24983         * tests/test-sprintf-posix.h (test_function): Likewise.
24985 2008-09-21  Bruno Haible  <bruno@clisp.org>
24987         * modules/getpass (Depends-on): Add strdup-posix.
24989         New module 'strdup-posix'.
24990         * modules/strdup-posix: New file.
24991         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
24992         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
24993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24994         REPLACE_STRDUP.
24995         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
24996         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
24997         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24998         strdup-posix.
25000         * modules/strdup (Depends-on): Remove malloc-posix.
25002 2008-09-20  Bruno Haible  <bruno@clisp.org>
25004         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25005         Wildenhues.
25007 2008-09-20  Bruno Haible  <bruno@clisp.org>
25009         Ensure that wint_t gets defined on IRIX 5.3.
25010         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25011         * lib/wctype.in.h (wint_t): Likewise.
25012         (__wctype_wint_t): Remove type.
25013         (isw*): Use wint_t instead of __wctype_wint_t.
25014         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25015         * modules/wchar (Files): Add m4/wint_t.m4.
25016         (Makefile.am): Substitute HAVE_WINT_T.
25017         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25018         * tests/test-wctype.c: Check that wint_t is defined.
25019         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25020         * doc/posix-headers/wctype.texi: Likewise.
25021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25023 2008-09-18  Bruno Haible  <bruno@clisp.org>
25025         * gnulib-tool (func_exit): Update comment.
25027 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25029         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25030         assumes strdup exists and does not depend on strdup to return
25031         ENOMEM on out of memory conditions.
25033 2008-09-18  Bruno Haible  <bruno@clisp.org>
25035         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
25036         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25037         digits for the exponent.
25039 2008-09-18  Jim Meyering  <meyering@redhat.com>
25040             Bruno Haible  <bruno@clisp.org>
25042         * lib/vasnprintf.c (decimal_point_char): Define also if
25043         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25045 2008-09-16  Bruno Haible  <bruno@clisp.org>
25046         and Eric Blake  <ebb9@byu.net>
25048         vasnprintf: support Irix 5.3
25049         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25050         that mishandle long double infinity.
25051         Reported by Tom G. Christensen.
25053 2008-09-16  Bruno Haible  <bruno@clisp.org>
25055         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25056         Solaris 9.
25057         * doc/glibc-functions/alphasort.texi: Likewise.
25058         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25060 2008-09-16  Jim Meyering  <meyering@redhat.com>
25062         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25063         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25064         a umask modification leak out of a subshell.  Otherwise, the
25065         opensolaris /bin/sh would be accepted and thus cause unwarranted
25066         failures in the coreutils test suite.
25068 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25070         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25071         to succeed.
25073 2008-09-16  Jim Meyering  <meyering@redhat.com>
25075         avoid spurious test failure when library is built without ACL support
25076         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25077         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25078         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25079         * tests/test-copy-acl.sh: Likewise.
25081 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25083         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25084         based on character occurrence counts.
25086 2008-09-15  Eric Blake  <ebb9@byu.net>
25088         tests: avoid some compiler warnings
25089         * tests/test-memchr.c (main): Pass NULL indirectly.
25090         * tests/test-closein.c (main): Avoid unused variable.
25092 2008-09-15  Bruno Haible  <bruno@clisp.org>
25094         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25095         are missing on OpenBSD 4.0 individually.
25096         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25098 2008-09-15  Bruno Haible  <bruno@clisp.org>
25100         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25101         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25102         * doc/posix-functions/perror.texi: Likewise.
25103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25104         is missing.
25105         Reported by Eric Blake.
25107         * lib/errno.in.h: Use replacement values >= 2000.
25108         Reported by Eric Blake.
25110 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25112         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25113         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25114         limit.
25115         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25116         compareseq was aborted.
25118 2008-09-14  Bruno Haible  <bruno@clisp.org>
25120         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25121         yvec_edit_count.
25122         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25123         (fstrcmp_bounded): Simplify result computation accordingly.
25125 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25127         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25128         (fstrcmp): Define in terms of fstrcmp_bounded.
25129         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25130         lower_bound argument.
25131         Return quickly if the result is certainly < lower_bound.
25132         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25134 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25136         * lib/diffseq.h (EARLY_ABORT): New macro.
25137         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25138         evaluates to true.
25140 2008-09-14  Bruno Haible  <bruno@clisp.org>
25142         * modules/perror-tests: New file.
25143         * tests/test-perror.sh: New file.
25144         * tests/test-perror.c: New file.
25146         New module 'perror'.
25147         * lib/stdio.in.h (perror): New declaration.
25148         * lib/perror.c: New file.
25149         * m4/perror.m4: New file.
25150         * modules/perror: New file.
25151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25152         * doc/posix-functions/perror.texi: Mention the perror module.
25153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25154         REPLACE_PERROR.
25155         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25156         REPLACE_PERROR.
25158 2008-09-14  Bruno Haible  <bruno@clisp.org>
25160         * modules/stdio (Makefile.am): Reorder to match the order in
25161         lib/stdio.in.h.
25162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25164 2008-09-13  Bruno Haible  <bruno@clisp.org>
25166         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25168 2008-09-13  Bruno Haible  <bruno@clisp.org>
25170         Extend strerror to cover the added errno values.
25171         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25172         (rpl_strerror): Provide error messages for the added errno values and
25173         for the WSA* values.
25174         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25175         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25176         strerror.
25177         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25178         * modules/strerror (Depends-on): Add errno.
25179         * doc/posix-functions/strerror.texi: Document the change.
25180         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25181         and EOVERFLOW.
25183 2008-09-13  Bruno Haible  <bruno@clisp.org>
25185         * modules/EOVERFLOW: Remove file.
25186         * m4/eoverflow.m4: Remove file.
25187         * modules/EOVERFLOW-tests: Remove file.
25188         * tests/test-EOVERFLOW.c: Remove file.
25189         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25190         * modules/ftell (Depends-on): Likewise.
25191         * modules/getdelim (Depends-on): Likewise.
25192         * modules/getugroups (Depends-on): Likewise.
25193         * modules/poll (Depends-on): Likewise.
25194         * modules/snprintf (Depends-on): Likewise.
25195         * modules/sprintf-posix (Depends-on): Likewise.
25196         * modules/vasnprintf (Depends-on): Likewise.
25197         * modules/vasprintf (Depends-on): Likewise.
25198         * modules/vfprintf-posix (Depends-on): Likewise.
25199         * modules/vsnprintf (Depends-on): Likewise.
25200         * modules/vsprintf-posix (Depends-on): Likewise.
25201         * modules/xvasprintf (Depends-on): Likewise.
25202         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25203         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25204         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25205         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25206         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25207         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25208         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25209         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25210         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25211         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25212         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25213         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25214         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25215         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25216         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25217         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25218         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25219         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25220         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25221         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25222         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25223         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25224         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25225         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25226         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25227         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25228         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25229         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25230         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25231         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25232         * MODULES.html.sh: Remove EOVERFLOW.
25233         * NEWS: Mention the change.
25235 2008-09-13  Bruno Haible  <bruno@clisp.org>
25237         * modules/errno-tests: New file.
25238         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25240         * lib/errno.in.h: New file.
25241         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25242         * modules/errno: New file.
25243         * doc/posix-headers/errno.texi: Update documentation.
25244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25246 2008-09-13  Bruno Haible  <bruno@clisp.org>
25248         * tests/test-poll.c: Use #if for native Windows, rather than testing
25249         __MSVCRT__.
25251 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25252             Bruno Haible  <bruno@clisp.org>
25254         * lib/glob.c: Don't include <pwd.h> on native Windows.
25255         (WINDOWS32): New macro.
25256         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25258 2008-09-13  Bruno Haible  <bruno@clisp.org>
25260         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25261         (ETIMEDOUT): Remove macro.
25262         (glthread_cond_timedwait_multithreaded): New declaration.
25263         (glthread_cond_timedwait): Use it.
25264         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25265         (glthread_cond_timedwait_multithreaded): New function.
25267 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25269         * modules/poll-tests: Do not check for io.h.
25270         * tests/test-poll.c: Check for __MSVCRT__ instead.
25272 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25274         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25275         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25276         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25278 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25280         * modules/poll-tests: New.
25281         * tests/test-poll.c: New.
25283 2008-09-12  Eric Blake  <ebb9@byu.net>
25285         frexp: test for NetBSD failure on -0.0
25286         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25287         not all, bugs from NetBSD 3.0 have been fixed.
25288         * doc/posix-functions/frexp.texi (frexp): Document bug.
25289         Reported by Thomas Klausner.
25291         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25292         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25293         literal -0.0.
25294         Reported by Jonathan C. Patschke <jp@centtech.com>.
25296 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25298         * lib/glthread/cond.h: Use dummy implementation also if
25299         USE_WIN32_THREADS.
25301 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25303         * modules/fnmatch-posix (License): Change to LGPLv2+.
25304         * modules/fnmatch-gnu (License): Likewise.
25306 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25308         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
25310 2008-09-11  Jim Meyering  <meyering@redhat.com>
25312         * users.txt: Add gtk-vnc.
25314 2008-09-08  Simon Josefsson  <simon@josefsson.org>
25316         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
25317         rotate amounts.
25319         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
25320         required for 16-bit and 8-bit rotates.
25321         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
25322         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
25323         UINT8_MAX instead of hard-coded constants.
25324         Suggested by Paul Eggert.
25326 2008-09-07  Bruno Haible  <bruno@clisp.org>
25328         * tests/test-striconveh.c (main): Check behaviour when converting from
25329         UTF-7.
25331         Make striconveh work better with stateful encodings.
25332         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
25333         that iconv does not increment the inptr when returning -1/EINVAL.
25335 2008-09-07  Bruno Haible  <bruno@clisp.org>
25337         * build-aux/config.rpath: Update according to libtool-2.2.6.
25338         * build-aux/config.libpath: Likewise.
25340 2008-09-06  Bruno Haible  <bruno@clisp.org>
25342         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
25343         * lib/freadptr.c (freadptr): Likewise.
25344         * lib/freadseek.c (freadptrinc): Likewise.
25345         Reported by Simon Josefsson.
25347 2008-09-06  Bruno Haible  <bruno@clisp.org>
25349         * modules/freadptr (License): Change to LGPLv2+.
25350         * modules/freadseek (License): Likewise.
25351         Suggested by Eric Blake.
25353         * modules/memchr2 (License): Change to LGPLv2+.
25354         Approved by Eric Blake.
25356 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25357             Bruno Haible  <bruno@clisp.org>
25359         Make gnulib-tool work with native 'sed' on AIX.
25360         * gnulib-tool (sed_noop): New variable.
25361         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
25362         func_add_or_update, func_create_testdir): Use it to initialize sed
25363         script variables.
25364         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25366 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
25367             Bruno Haible  <bruno@clisp.org>
25369         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
25370         also works after #include directives.
25372 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
25374         getdate.y: reject an out-of-range timezone value
25375         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
25376         the range [-24...+24].  When specified with only one or two digits,
25377         * tests/test-getdate.c: Tests for the fix.
25378         * doc/getdate.texi: Document this change.
25380 2008-09-03  Bruno Haible  <bruno@clisp.org>
25382         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
25384 2008-09-02  Simon Josefsson  <simon@josefsson.org>
25386         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
25387         <bruce.korb@gmail.com> with ideas from Ben Pfaff
25388         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
25389         Blake <ebb9@byu.net>.
25391         * tests/test-bitrotate.c: Add more test vectors.
25393 2008-09-02  Eric Blake  <ebb9@byu.net>
25395         vasnprintf-posix: handle large precision via %.*d
25396         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
25397         when handling it ourselves.
25398         * tests/test-vasnprintf-posix.c (test_function): Add test.
25399         * tests/test-snprintf-posix.h (test_function): Likewise.
25400         * tests/test-sprintf-posix.h (test_function): Likewise.
25401         * tests/test-vasprintf-posix.c (test_function): Likewise.
25402         Reported by Alain Guibert.
25404 2008-09-01  Eric Blake  <ebb9@byu.net>
25406         c-stack: make configure-time check more robust
25407         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
25408         successful sigaction call.
25409         Reported by Tom G. Christensen.
25411 2008-09-01  Bruno Haible  <bruno@clisp.org>
25413         New module 'findprog-lgpl'.
25414         * modules/findprog-lgpl: New file.
25415         * lib/findprog-lgpl.c: New file.
25416         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
25417         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
25418         to decide whether to use strdup or xstrdup, concatenated_filename or
25419         xconcatenated_filename.
25421 2008-09-01  Bruno Haible  <bruno@clisp.org>
25423         Split module 'concat-filename' into 'concat-filename' (LGPL) and
25424         'xconcat-filename' (GPL).
25425         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
25426         (License): Change to LGPLv2+.
25427         * modules/xconcat-filename: New file.
25428         * lib/concat-filename.h (concatenated_filename): Change specification.
25429         (xconcatenated_filename): New declaration.
25430         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
25431         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
25432         memory situations.
25433         * lib/xconcat-filename.c: New file.
25434         * NEWS: Mention the change.
25435         * lib/findprog.c: Include concat-filename.h, not filename.h.
25436         (find_in_path): Use xconcatenated_filename instead of
25437         concatenated_filename.
25438         * lib/javacomp.c: Include concat-filename.h, not filename.h.
25439         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25440         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25441         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25442         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
25443         instead of concatenated_filename.
25444         * lib/javaexec.c: Include concat-filename.h, not filename.h.
25445         (execute_java_class): Use xconcatenated_filename instead of
25446         concatenated_filename.
25447         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
25448         * modules/javacomp (Depends-on): Likewise.
25449         * modules/javaexec (Depends-on): Likewise.
25451 2008-09-01  Bruno Haible  <bruno@clisp.org>
25453         Split module 'filename' into 'filename' and 'concat-filename'.
25454         * modules/filename: Keep only lib/filename.h.
25455         (License): Change to LGPLv2+.
25456         * modules/concat-filename: New file, extracted from modules/filename.
25457         * lib/filename.h (concatenated_filename): Remove declaration.
25458         * lib/concat-filename.h: New file, extracted from lib/filename.h.
25459         * lib/concat-filename.c: Include concat-filename.h.
25460         * NEWS: Mention the change.
25462 2008-09-01  Simon Josefsson  <simon@josefsson.org>
25464         * lib/bitrotate.h (rotl8, rotr8): Add.
25466         * modules/bitrotate (configure.ac): Need
25467         AC_REQUIRE([AC_C_INLINE]).
25468         (Description): Mention stdint.h.  Reported by Bruno Haible
25469         <bruno@clisp.org>.
25471         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
25472         Paolo Bonzini <bonzini@gnu.org>.
25474 2008-08-31  Bruno Haible  <bruno@clisp.org>
25476         Assume Solaris specific bi-arch conventions on Solaris systems.
25477         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
25478         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
25479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
25480         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
25481         like acl_libdirstem.
25482         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
25483         acl_libdirstem.
25484         * NEWS: Mention the change.
25485         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
25487 2008-08-31  Jim Meyering  <meyering@redhat.com>
25489         * lib/strftime.h: Add comments describing the two added arguments.
25491         remove duplicate #include directives
25492         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
25493         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
25495 2008-08-31  Bruno Haible  <bruno@clisp.org>
25497         New module 'sigpipe-die'.
25498         * modules/sigpipe-die: New file.
25499         * lib/sigpipe-die.h: New file.
25500         * lib/sigpipe-die.c: New file.
25501         * MODULES.html.sh (Signal handling): Add sigpipe-die.
25503 2008-08-31  Bruno Haible  <bruno@clisp.org>
25505         Don't override previously installed signal handlers.
25506         * lib/fatal-signal.c (saved_sigactions): New variable.
25507         (uninstall_handlers): Reset the signal to the saved handler, not
25508         to SIG_DFL (except when ignored).
25509         (install_handlers): Save the previous handlers.
25511 2008-08-30  Bruno Haible  <bruno@clisp.org>
25513         * gnulib-tool (func_reset_sigpipe): New function.
25514         (func_get_automake_snippet, func_modules_transitive_closure,
25515         func_import): Invoke it before a join command that reads from stdin,
25516         to avoid "echo: write error: Broken pipe" error messages on stderr.
25517         Reported by Sam Steingold <sds@gnu.org>.
25519 2008-08-30  Bruno Haible  <bruno@clisp.org>
25521         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
25522         Code copied from m4/open.m4.
25523         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
25524         access and the filename ends in a slash. Code copied from lib/open.c.
25525         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
25526         * tests/test-fopen.c (main): Check against bug with trailing slash.
25528 2008-08-29  Bruno Haible  <bruno@clisp.org>
25530         Avoid some "gcc -pedantic" warnings.
25531         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
25532         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
25533         * lib/dirent.in.h: Likewise.
25534         * lib/fcntl.in.h: Likewise.
25535         * lib/float.in.h: Likewise.
25536         * lib/iconv.in.h: Likewise.
25537         * lib/inttypes.in.h: Likewise.
25538         * lib/locale.in.h: Likewise.
25539         * lib/math.in.h: Likewise.
25540         * lib/netinet_in.in.h: Likewise.
25541         * lib/search.in.h: Likewise.
25542         * lib/signal.in.h: Likewise.
25543         * lib/stdarg.in.h: Likewise.
25544         * lib/stdint.in.h: Likewise.
25545         * lib/stdio.in.h: Likewise.
25546         * lib/stdlib.in.h: Likewise.
25547         * lib/string.in.h: Likewise.
25548         * lib/strings.in.h: Likewise.
25549         * lib/sys_select.in.h: Likewise.
25550         * lib/sys_socket.in.h: Likewise.
25551         * lib/sys_stat.in.h: Likewise.
25552         * lib/sys_time.in.h: Likewise.
25553         * lib/sysexits.in.h: Likewise.
25554         * lib/time.in.h: Likewise.
25555         * lib/unistd.in.h: Likewise.
25556         * lib/wchar.in.h: Likewise.
25557         * lib/wctype.in.h: Likewise.
25558         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
25559         * modules/fchdir (Makefile.am): Likewise.
25560         * modules/fcntl (Makefile.am): Likewise.
25561         * modules/float (Makefile.am): Likewise.
25562         * modules/iconv_open (Makefile.am): Likewise.
25563         * modules/inttypes (Makefile.am): Likewise.
25564         * modules/locale (Makefile.am): Likewise.
25565         * modules/math (Makefile.am): Likewise.
25566         * modules/netinet_in (Makefile.am): Likewise.
25567         * modules/search (Makefile.am): Likewise.
25568         * modules/signal (Makefile.am): Likewise.
25569         * modules/stdarg (Makefile.am): Likewise.
25570         * modules/stdint (Makefile.am): Likewise.
25571         * modules/stdio (Makefile.am): Likewise.
25572         * modules/stdlib (Makefile.am): Likewise.
25573         * modules/string (Makefile.am): Likewise.
25574         * modules/strings (Makefile.am): Likewise.
25575         * modules/sys_select (Makefile.am): Likewise.
25576         * modules/sys_socket (Makefile.am): Likewise.
25577         * modules/sys_stat (Makefile.am): Likewise.
25578         * modules/sys_time (Makefile.am): Likewise.
25579         * modules/sysexits (Makefile.am): Likewise.
25580         * modules/time (Makefile.am): Likewise.
25581         * modules/unistd (Makefile.am): Likewise.
25582         * modules/wchar (Makefile.am): Likewise.
25583         * modules/wctype (Makefile.am): Likewise.
25584         Reported by Reuben Thomas <rrt@sc3d.org>.
25586 2008-08-29  Bruno Haible  <bruno@clisp.org>
25588         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
25589         any more.
25591 2008-08-29  Simon Josefsson  <simon@josefsson.org>
25593         * MODULES.html.sh (Misc): Add bitrotate.
25595         * modules/bitrotate: New file.
25597         * lib/bitrotate.h: New file.
25599         * modules/bitrotate-tests: New file.
25601         * tests/test-bitrotate.c: New file.
25603         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
25604         on the bitrotate module.
25606         * lib/arctwo.c: Use new bitrotate module.
25608 2008-08-29  Jim Meyering  <meyering@redhat.com>
25610         bootstrap: merge changes from coreutils
25611         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
25612         of copied files.  Remove a kludge, now that this is fixed.
25613         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
25614         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
25615         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
25617 2008-08-29  Bruno Haible  <bruno@clisp.org>
25619         * MODULES.html.sh: Remove --cvs-urls option.
25621 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
25623         maint.mk: adjust to file name change
25624         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
25626 2008-08-28  Jim Meyering  <meyering@redhat.com>
25628         * modules/getndelim2 (License): Relicense to LGPLv2+.
25629         Approved by Richard Stallman for the version of 1995, and by
25630         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
25632 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
25634         * lib/getdelim.c (flockfile, funlockfile): Make all of them
25635         dummy if one is not available.  Do not touch them if
25636         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
25637         (getc_maybe_unlocked): New.
25638         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
25640 2008-08-26  Eric Blake  <ebb9@byu.net>
25642         doc/INSTALL: resync from autoconf
25643         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
25644         (INSTALL_PRELUDE): Delete; this is done more efficiently by
25645         moving...
25646         * install.texi [!autoconf]: ...here.  Resync from autoconf.
25647         * INSTALL: Regenerate.
25648         * INSTALL.ISO: New file.
25649         * INSTALL.UTF-8: Likewise.
25651 2008-08-26  Jim Meyering  <meyering@redhat.com>
25653         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
25654         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
25655         these definitions conditional, so that they may be overridden, too.
25657 2008-08-26  Bruno Haible  <bruno@clisp.org>
25659         Generate INSTALL file variants with prettier quotes.
25660         * doc/Makefile (INSTALL_PRELUDE): New macro.
25661         (INSTALL): Use it.
25662         (INSTALL.ISO, INSTALL.UTF-8): New rules.
25664 2008-08-26  Bruno Haible  <bruno@clisp.org>
25666         Run makeinfo in an English locale.
25667         * doc/Makefile (MAKEINFO): New variable.
25669 2008-08-26  Bruno Haible  <bruno@clisp.org>
25671         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
25672         Suggested by Eric Blake.
25674 2008-08-25  Bruno Haible  <bruno@clisp.org>
25676         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
25678 2008-08-25  Eric Blake  <ebb9@byu.net>
25680         c-stack: test that stack overflow can be caught
25681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
25682         that platform allows handling stack overflow; at least OS/2 EMX
25683         has sigaltstack, but crashes before transferring control to
25684         handler on stack overflow.
25685         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
25686         check for HAVE_STACK_OVERFLOW_HANDLING.
25687         Reported by Elbert Pol.
25689 2008-08-25  Bruno Haible  <bruno@clisp.org>
25691         * doc/posix-functions/strftime.texi: Fix description of strftime
25692         module.
25694 2008-08-24  Bruno Haible  <bruno@clisp.org>
25696         * tests/uniwidth/test-uc_width2.c: New file.
25697         * tests/uniwidth/test-uc_width2.sh: New file.
25698         * modules/uniwidth/width-tests (Files): Add the new files.
25699         (TESTS): Add uniwidth/test-uc_width2.sh.
25700         (TESTS_ENVIRONMENT): New variable.
25701         (check_PROGRAMS): Add test-uc_width2.
25702         (test_uc_width2_SOURCES): New variable.
25704         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
25705         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
25706         not 0x00AB.
25707         Reported by Alexander V. Lukyanov <lav@netis.ru>.
25709 2008-08-22  Eric Blake  <ebb9@byu.net>
25711         test-lock, test-tls: mention why a test is skipped
25712         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
25713         skipped.
25714         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
25716         count-one-bits: relax license
25717         * modules/count-one-bits (License): Relicense to LGPLv2+.
25718         Suggested by Ludovic Courtès, approved by Ben Pfaff.
25720 2008-08-22  Andreas Schwab  <schwab@suse.de>
25722         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25723         Remove spurious space in assignment.
25725 2008-08-21  Simon Josefsson  <simon@josefsson.org>
25727         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
25728         Paul Eggert <eggert@CS.UCLA.EDU>.
25730 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
25732         * modules/gettext: Add m4/threadlib.m4.
25734 2008-08-19  Eric Blake  <ebb9@byu.net>
25736         test-c-stack: fix compilation failure on FreeBSD 5.0
25737         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
25738         headers before <sys/resource.h>.
25739         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
25740         the bug.
25741         Reported by Nelson H. F. Beebe.
25743         strverscmp: migrate from "strverscmp.h" to <string.h>
25744         * modules/string (Makefile.am): Add new hooks.
25745         * modules/strverscmp (Files): Remove strverscmp.h.
25746         (Depends-on): Add string.
25747         (configure.ac): Add indicator.
25748         (Include): Mention new header.
25749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
25750         defaults.
25751         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
25752         results.
25753         * lib/strverscmp.h: Delete.
25754         * lib/string.in.h (strverscmp): Provide declaration, when needed.
25755         * tests/test-strverscmp.c (includes): Adjust client.
25756         * lib/check-version.c (includes): Likewise.
25757         * NEWS: Document the change.
25759         strverscmp: add unit test
25760         * modules/strverscmp-tests: New file.
25761         * tests/test-strverscmp.c: Likewise.
25763 2008-08-19  Simon Josefsson  <simon@josefsson.org>
25765         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
25766         regarding Windows crypto stuff, from Mono.
25768 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
25770         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
25771         if present, for intel RND.  Return error on failures.
25773 2008-08-18  Ben Pfaff  <blp@gnu.org>
25775         gitlog-to-changelog: give better diagnostic for failed pipe-open
25776         * build-aux/gitlog-to-changelog: Improve error message: suggest
25777         that the version of Git may be too old.
25779 2008-08-18  Simon Josefsson  <simon@josefsson.org>
25781         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
25782         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
25784 2008-08-18  Bruno Haible  <bruno@clisp.org>
25786         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
25787         pthread_in_use().
25789 2008-08-18  Bruno Haible  <bruno@clisp.org>
25791         * lib/glthread/threadlib.c: Include <pthread.h>.
25793 2008-08-18  Bruno Haible  <bruno@clisp.org>
25795         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
25796         glthread_recursive_lock_* macros.
25797         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
25798         Fix syntax error.
25800 2008-08-18  Bruno Haible  <bruno@clisp.org>
25802         * lib/glthread/thread.c: Avoid forcing a context switch right after
25803         thread creation.
25805 2008-08-17  Bruno Haible  <bruno@clisp.org>
25807         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
25808         * lib/glthread/thread.h: Provide Win32 specific implementation.
25809         * modules/thread (Files): Add lib/glthread/thread.c.
25810         (Depends-on): Add lock.
25811         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
25813 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25815         New module 'yield'.
25816         * modules/yield: New file.
25817         * lib/glthread/yield.h: New file.
25818         * m4/yield.m4: New file.
25819         * MODULES.html.sh (Multithreading): Add yield.
25821 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25823         New module 'thread'.
25824         * modules/thread: New file.
25825         * lib/glthread/thread.h: New file.
25826         * m4/thread.m4: New file.
25827         * MODULES.html.sh (Multithreading): Add thread.
25829 2008-08-17  Bruno Haible  <bruno@clisp.org>
25831         * lib/glthread/lock.h: Include <stdlib.h> always.
25832         * lib/glthread/tls.h: Likewise.
25833         * lib/glthread/cond.h: Likewise.
25835 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25837         New module 'cond'.
25838         * modules/cond: New file.
25839         * lib/glthread/cond.h: New file.
25840         * lib/glthread/cond.c: New file.
25841         * m4/cond.m4: New file.
25842         * MODULES.html.sh (Multithreading): Add cond.
25844 2008-08-16  Eric Blake  <ebb9@byu.net>
25846         c-stack: fix regression on Irix 5.3 from 2008-06-21
25847         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
25848         sa_sigaction...
25849         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
25850         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
25851         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
25852         * modules/signal (Makefile.am): Use the value.
25853         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
25854         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
25855         * doc/posix-headers/signal.texi (signal.h): Document this
25856         portability issue.
25857         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
25858         Reported by Tom G. Christensen.
25860 2008-08-17  Bruno Haible  <bruno@clisp.org>
25862         New module 'threadlib'.
25863         * modules/threadlib: New file.
25864         * lib/glthread/threadlib.c: New file, extracted from
25865         lib/glthread/lock.c.
25866         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
25867         functions.
25868         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
25869         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
25870         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
25871         macros.
25872         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
25873         (gl_DISABLE_THREADS): Remove macro.
25874         * modules/lock (Files): Remove build-aux/config.rpath.
25875         (Depends-on): Remove havelib. Add threadlib.
25876         (configure.ac-early): Remove section.
25877         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
25878         * modules/tls (Depends-on): Remove lock. Add threadlib.
25879         (Link): New section, copied from threadlib.
25880         * MODULES.html.sh (Multithreading): Add threadlib.
25882 2008-08-14  Bruno Haible  <bruno@clisp.org>
25884         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
25885         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
25886         glthread_rwlock_unlock, glthread_rwlock_destroy,
25887         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
25888         glthread_recursive_lock_destroy): Define as macros always.
25889         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
25890         glthread_lock_lock.
25891         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
25892         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
25893         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
25894         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
25895         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
25896         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
25897         (glthread_recursive_lock_lock_func): Renamed from
25898         glthread_recursive_lock_lock.
25899         (glthread_recursive_lock_unlock_func): Renamed from
25900         glthread_recursive_lock_unlock.
25901         (glthread_recursive_lock_destroy_func): Renamed from
25902         glthread_recursive_lock_destroy.
25904 2008-08-14  Bruno Haible  <bruno@clisp.org>
25906         * lib/glthread/lock.h: Renamed from lib/lock.h.
25907         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
25908         * lib/glthread/tls.h: Renamed from lib/tls.h.
25909         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
25910         * lib/fstrcmp.c: Update includes.
25911         * lib/strsignal.c: Update includes.
25912         * modules/lock (Files, Makefile.am): Update.
25913         (Include): Change to "glthread/lock.h".
25914         * modules/tls (Files, Makefile.am): Update.
25915         (Include): Change to "glthread/tls.h".
25916         * tests/test-lock.c: Update includes.
25917         * tests/test-tls.c: Update includes.
25918         * NEWS: Mention the renamed header files.
25920 2008-08-11  Jim Meyering  <meyering@redhat.com>
25922         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
25924 2008-08-11  Eric Blake  <ebb9@byu.net>
25926         test-c-stack: avoid C99-ism
25927         * tests/test-c-stack.c (main): Fix whitespace, move declaration
25928         before statement.
25929         Reported by Alain Guibert.
25931 2008-08-10  Jim Meyering  <meyering@redhat.com>
25933         ensure that return value of uinttostr et al are not ignored
25934         * lib/inttostr.h (__GNUC_PREREQ): Define.
25935         (__attribute_warn_unused_result__): Define.
25936         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
25938 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
25940         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
25941         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
25943 2008-08-07  Jim Meyering  <meyering@redhat.com>
25945         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
25947         * modules/mkstemp (License): Relicense under LGPLv2+.
25948         * modules/tempname (License): Likewise.
25950 2008-08-06  Bruno Haible  <bruno@clisp.org>
25952         * lib/poll.c (poll): Further micro-optimization.
25954 2008-08-06  Jim Meyering  <meyering@redhat.com>
25956         inet_pton.c: use locale-independent tolower
25957         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
25958         (inet_pton6): Use c_tolower rather than tolower.
25959         * modules/inet_pton (Depends-on): Add c-ctype.
25961 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
25963         * lib/poll.c (poll): Avoid division when timeout is 0, cache
25964         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
25966 2008-08-06  Jim Meyering  <meyering@redhat.com>
25968         * modules/inet_pton (License): Relicense under LGPLv2+.
25970 2008-08-03  Bruno Haible  <bruno@clisp.org>
25972         Additional non-aborting API for lock and tls.
25973         * lib/lock.h: Include <errno.h>.
25974         (glthread_lock_init): New macro/function.
25975         (gl_lock_init): Define as wrapper around glthread_lock_init.
25976         (glthread_lock_lock): New macro/function.
25977         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
25978         (glthread_lock_unlock): New macro/function.
25979         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
25980         (glthread_lock_destroy): New macro/function.
25981         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
25982         (glthread_rwlock_init): New macro/function.
25983         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
25984         (glthread_rwlock_rdlock): New macro/function.
25985         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
25986         (glthread_rwlock_wrlock): New macro/function.
25987         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
25988         (glthread_rwlock_unlock): New macro/function.
25989         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
25990         (glthread_rwlock_destroy): New macro/function.
25991         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
25992         (glthread_recursive_lock_init): New macro/function.
25993         (gl_recursive_lock_init): Define as wrapper around
25994         glthread_recursive_lock_init.
25995         (glthread_recursive_lock_lock): New macro/function.
25996         (gl_recursive_lock_lock): Define as wrapper around
25997         glthread_recursive_lock_lock.
25998         (glthread_recursive_lock_unlock): New macro/function.
25999         (gl_recursive_lock_unlock): Define as wrapper around
26000         glthread_recursive_lock_unlock.
26001         (glthread_recursive_lock_destroy): New macro/function.
26002         (gl_recursive_lock_destroy): Define as wrapper around
26003         glthread_recursive_lock_destroy.
26004         (glthread_once): New macro/function.
26005         (gl_once): Define as wrapper around glthread_once.
26006         Update function declarations.
26007         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26008         glthread_rwlock_init. Return error code.
26009         (glthread_rwlock_rdlock_multithreaded): Renamed from
26010         glthread_rwlock_rdlock. Return error code.
26011         (glthread_rwlock_wrlock_multithreaded): Renamed from
26012         glthread_rwlock_wrlock. Return error code.
26013         (glthread_rwlock_unlock_multithreaded): Renamed from
26014         glthread_rwlock_unlock. Return error code.
26015         (glthread_rwlock_destroy_multithreaded): Renamed from
26016         glthread_rwlock_destroy. Return error code.
26017         (glthread_recursive_lock_init_multithreaded): Renamed from
26018         glthread_recursive_lock_init. Return error code.
26019         (glthread_recursive_lock_lock_multithreaded): Renamed from
26020         glthread_recursive_lock_lock. Return error code.
26021         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26022         glthread_recursive_lock_unlock. Return error code.
26023         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26024         glthread_recursive_lock_destroy. Return error code.
26025         (glthread_once_call): Make static.
26026         (glthread_once_multithreaded): Renamed from glthread_once.
26027         * lib/tls.h: Include <errno.h>.
26028         (glthread_tls_key_init): New macro/function.
26029         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26030         (glthread_tls_set): New macro/function.
26031         (gl_tls_set): Define as wrapper around glthread_tls_set.
26032         (glthread_tls_key_destroy): New macro/function.
26033         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26034         Update function declarations.
26035         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26036         glthread_tls_get.
26037         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26039 2008-08-04  Eric Blake  <ebb9@byu.net>
26041         gnumakefile: use space, not TAB, outside of targets
26042         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26044 2008-08-02  Jim Meyering  <meyering@redhat.com>
26046         getdate.y: avoid locale-dependent date parsing failure
26047         In Turkish locales, getdate would fail to recognize keywords
26048         containing a lowercase "i".  The solution is not to rely on
26049         locale-sensitive case-conversion.
26050         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26051         (lookup_word): Use c_toupper in place of toupper.
26052         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26053         Reported by Vefa Bicakci <bicave@superonline.com> in
26054         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26055         * modules/getdate (Depends-on): Add c-ctype.
26057 2008-08-02  Bruno Haible  <bruno@clisp.org>
26059         * gnulib-tool (func_import): When updating or creating a .gitignore
26060         file, prepend each added line with a slash, and ignore leading slashes
26061         from the existing lines.
26062         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26064 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26066         Portability fix for GNU make 3.79.1.
26067         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26068         versions do not understand.
26070 2008-08-01  Bruno Haible  <bruno@clisp.org>
26072         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26073         * tests/test-isnanf.h (zero): New variable.
26074         (main): Avoid literal -0.0f.
26075         * tests/test-isnand.h (zero): New variable.
26076         (main): Avoid literal -0.0.
26077         * tests/test-isnanl.h (zero): New variable.
26078         (main): Avoid literal -0.0L.
26079         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26080         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26081         -0.0, -0.0L.
26082         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26083         (test_signbitd): Avoid literal -0.0.
26084         (test_signbitl): Avoid literal -0.0L.
26085         * tests/test-ceilf1.c (zero): New variable.
26086         (main): Avoid literal -0.0f.
26087         * tests/test-ceill.c (zero): New variable.
26088         (main): Avoid literal -0.0L.
26089         * tests/test-floorf1.c (zero): New variable.
26090         (main): Avoid literal -0.0f.
26091         * tests/test-floorl.c (zero): New variable.
26092         (main): Avoid literal -0.0L.
26093         * tests/test-roundf1.c (zero): New variable.
26094         (main): Avoid literal -0.0f.
26095         * tests/test-round1.c (zero): New variable.
26096         (main): Avoid literal -0.0.
26097         * tests/test-roundl.c (zero): New variable.
26098         (main): Avoid literal -0.0L.
26099         * tests/test-truncf1.c (zero): New variable.
26100         (main): Avoid literal -0.0f.
26101         * tests/test-trunc1.c (zero): New variable.
26102         (main): Avoid literal -0.0.
26103         * tests/test-truncl.c (zero): New variable.
26104         (main): Avoid literal -0.0L.
26105         * tests/test-frexp.c (zero): New variable.
26106         (main): Avoid literal -0.0.
26107         * tests/test-frexpl.c (zero): New variable.
26108         (main): Avoid literal -0.0L.
26109         * tests/test-ldexpl.c (zero): New variable.
26110         (main): Avoid literal -0.0L.
26111         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26112         (zerod, zerol): New variables.
26113         (test_function): Avoid literals -0.0, -0.0L.
26114         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26115         (zerod, zerol): New variables.
26116         (test_function): Avoid literals -0.0, -0.0L.
26117         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26118         (zerod, zerol): New variables.
26119         (test_function): Avoid literals -0.0, -0.0L.
26120         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26121         (zerod, zerol): New variables.
26122         (test_function): Avoid literals -0.0, -0.0L.
26123         * tests/test-strtod.c (zero): New variable.
26124         (main): Avoid literal -0.0.
26125         Reported by Jonathan C. Patschke <jp@centtech.com>.
26127 2008-07-31  Jim Meyering  <meyering@redhat.com>
26129         sha256.h: correct definition of SHA224_DIGEST_SIZE
26130         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26131         Reported by Paulie Pena IV <paulie4@gmail.com>.
26132         Define as 224 / 8, rather than as a literal.
26133         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26134         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26135         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26137 2008-07-31  Bruno Haible  <bruno@clisp.org>
26139         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26140         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26141         Reported by Jonathan Patschke <jp@centtech.com>.
26143 2008-07-31  Bruno Haible  <bruno@clisp.org>
26145         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26146         Reported by Paolo Bonzini <bonzini@gnu.org>.
26148 2008-07-30  Eric Blake  <ebb9@byu.net>
26150         test-strtod: allow compilation without -lm
26151         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26152         Reported by Dennis Clarke <blastwave@gmail.com>.
26154 2008-07-28  Jim Meyering  <meyering@redhat.com>
26156         bootstrap: work also when there are no .po files in po/
26157         * build-aux/bootstrap (update_po_files): Complete the change
26158         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26160 2008-07-27  Jim Meyering  <meyering@redhat.com>
26162         * users.txt: Add zile.
26164 2008-07-26  Ben Pfaff  <blp@gnu.org>
26166         Add missing dependencies on new m4/exponent[fdl].m4 files.
26167         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26168         * modules/isnand-nolibm: Add m4/exponentd.m4.
26169         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26170         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26171         m4/isnan[fdl].m4, because the macros actually used moved.
26172         Reported by Jim Meyering.
26174 2008-07-14  Ben Pfaff  <blp@gnu.org>
26176         Add isinf module.
26177         * lib/isinf.c: New file.
26178         * lib/math.in.h: Define isinf macro if we have decided to replace
26179         it.
26180         * m4/isinf.m4: New file.
26181         * m4/math_h.m4: Initialize and substitute variables for isinf
26182         module.
26183         * modules/isinf: New file.
26184         * modules/isinf-tests: New file.
26185         * modules/math: Add substitutions for new module.
26186         * tests/test-isinf.c: New file.
26187         * doc/posix-functions/isinf.texi: Mention new module.
26188         * MODULES.html.sh: Mention new module.
26190 2008-07-14  Ben Pfaff  <blp@gnu.org>
26192         Factor out some macros for use by additional modules.
26193         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26194         exponentf.m4.
26195         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26196         exponentd.m4.
26197         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26198         file exponentl.m4.
26199         * m4/exponentf.m4: New file.
26200         * m4/exponentd.m4: New file.
26201         * m4/exponentl.m4: New file.
26202         * modules/isnanf: Use new file m4/exponentf.m4.
26203         * modules/isnand: Use new file m4/exponentd.m4.
26204         * modules/isnanl: Use new file m4/exponentl.m4.
26206 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26208         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26209         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26210         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26211         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26213         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26214         readlink on platforms without PATH_MAX.
26216 2008-07-21  Eric Blake  <ebb9@byu.net>
26218         Warn, not fail, on stale version.
26219         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26221         Don't allow installation with stale devel version number.
26222         * top/GNUmakefile (_is-install-target): New macro.
26223         (_curr-ver): Forbid installation with stale version number.
26225 2008-07-20  Bruno Haible  <bruno@clisp.org>
26227         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26228         TESTS_ENVIRONMENT.
26229         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26231 2008-07-20  Bruno Haible  <bruno@clisp.org>
26233         * lib/c-stack.h (c_stack_action): Add documentation.
26234         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26236 2008-07-20  Bruno Haible  <bruno@clisp.org>
26238         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26239         * modules/readlink (License): Likewise.
26241 2008-07-17  Eric Blake  <ebb9@byu.net>
26243         * modules/c-stack (Link): Fix typo.
26245         Make c-stack use libsigsegv, when available.
26246         * modules/c-stack (Depends-on): Add libsigsegv.
26247         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26248         needed.
26249         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26250         (segv_handler, overflow_handler, c_stack_action)
26251         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26252         implementation when libsigsegv is available, but only when using
26253         the library is necessary.
26254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26255         comment, explaining why XSI check fails on Linux.
26256         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26257         * tests/test-c-stack2.sh: Tweak skip message.
26258         * NEWS: Document new link-time requirements.
26260 2008-07-16  Eric Blake  <ebb9@byu.net>
26262         c-stack: Expose false positives when not using libsigsegv.
26263         * modules/c-stack-tests (Files): Expand test.
26264         * tests/test-c-stack.c (main): Add means to conditionally trigger
26265         non-overflow SIGSEGV.
26266         * tests/test-c-stack2.sh: New file.
26268 2008-07-14  Bruno Haible  <bruno@clisp.org>
26270         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26271         Reported by Eric Blake.
26273 2008-07-14  Sam Steingold  <sds@gnu.org>
26274             Bruno Haible  <bruno@clisp.org>
26276         New module libsigsegv.
26277         * modules/libsigsegv: New file.
26278         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26279         modifications.
26280         * MODULES.html.sh (Signal handling): New section.
26282 2008-07-14  Bruno Haible  <bruno@clisp.org>
26284         * modules/unictype/ctype-* (Description): Add the word "function".
26285         Improves the resulting doc in MODULES.html.
26287 2008-07-12  Ben Pfaff  <blp@gnu.org>
26289         Add longlong module.
26290         * modules/longlong: New file.
26292 2008-07-12  Bruno Haible  <bruno@clisp.org>
26294         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26295         to empty.
26297 2008-07-10  Ben Pfaff  <blp@gnu.org>
26299         Add isnan module.
26300         * doc/posix-functions/isnan.texi: Mention new module.
26301         * lib/math.in.h: Define isnan macro if we have decided to replace
26302         it.
26303         * m4/isnan.m4: New file.
26304         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
26305         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
26306         also.
26307         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
26308         redundancy.
26309         * m4/math_h.m4: Initialize and substitute variables for isnan
26310         module.
26311         * modules/isnan: New file.
26312         * modules/isnan-tests: New file.
26313         * modules/math: Add substitutions for new module.
26314         * tests/test-isnan.c: New file.
26315         * MODULES.html.sh: Mention new module.
26317 2008-07-10  Ben Pfaff  <blp@gnu.org>
26319         Add isnanf module.
26320         * lib/isnanf.m4: New file.
26321         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
26322         (gl_HAVE_ISNANF_IN_LIBM): New macro.
26323         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
26324         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
26325         * modules/isnanf: New file.
26326         * modules/isnanf-tests: New file.
26327         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
26328         files.
26329         * tests/test-isnanf-nolibm.c: factored most of its contents into
26330         new file tests/test-isnanf.h.
26331         * tests/test-isnanf.h: New file.
26332         * tests/test-isnanf.c: New file.
26333         * MODULES.html.sh: Mention new module.
26334         * doc/glibc-functions/isnanf.texi: Mention new module.
26336 2008-07-10  Ben Pfaff  <blp@gnu.org>
26338         Add isnand module.
26339         * lib/isnand.h: New file.
26340         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
26341         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
26342         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
26343         functionality also.
26344         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
26345         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
26346         (gl_HAVE_ISNAND_IN_LIBM): New macro.
26347         * modules/isnand: New file.
26348         * modules/isnand-tests: New file.
26349         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
26350         files.
26351         * tests/test-isnand-nolibm.c: factored most of its contents into
26352         new file tests/test-isnand.h.
26353         * tests/test-isnand.h: New file.
26354         * tests/test-isnand.c: New file.
26355         * MODULES.html.sh: Mention new module.
26357 2008-07-10  Ben Pfaff  <blp@gnu.org>
26359         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
26360         * lib/isnand.h: Rename lib/isnand-nolibm.h.
26361         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
26362         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
26363         * modules/isnanf-nolibm: Update references to renamed files.
26364         * modules/isnand-nolibm: Likewise.
26365         * modules/isnanf-nolibm-tests: Likewise.
26366         * modules/isnand-nolibm-tests: Likewise.
26367         * lib/frexp.c: Likewise.
26368         * lib/isfinite.c: Likewise.
26369         * lib/signbitd.c: Likewise.
26370         * lib/signbitf.c: Likewise.
26371         * lib/vasnprintf.c: Likewise.
26372         * tests/test-ceilf1.c: Likewise.
26373         * tests/test-ceilf2.c: Likewise.
26374         * tests/test-floorf1.c: Likewise.
26375         * tests/test-floorf2.c: Likewise.
26376         * tests/test-frexp.c: Likewise.
26377         * tests/test-round1.c: Likewise.
26378         * tests/test-round2.c: Likewise.
26379         * tests/test-roundf1.c: Likewise.
26380         * tests/test-strtod.c: Likewise.
26381         * tests/test-trunc1.c: Likewise.
26382         * tests/test-trunc2.c: Likewise.
26383         * tests/test-truncf1.c: Likewise.
26384         * tests/test-truncf2.c: Likewise.
26385         * NEWS: Mention the renamed header files.
26387 2008-07-11  Jim Meyering  <meyering@redhat.com>
26389         vc-list-files: make the last-resort awk code more portable
26390         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
26391         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
26392         does not support it.
26394 2008-07-10  Eric Blake  <ebb9@byu.net>
26396         Work with tar's bootstrap.
26397         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
26398         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
26399         an m4 comment.
26401 2008-07-09  Jim Meyering  <meyering@redhat.com>
26403         posix-shell.m4: fix typo that made this test malfunction
26404         * m4/posix-shell.m4: Remove capitalization in variable name.
26406 2008-07-08  Bruno Haible  <bruno@clisp.org>
26408         * m4/onceonly.m4: Update comments.
26409         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26411 2008-07-04  Jim Meyering  <meyering@redhat.com>
26413         * users.txt: Add vc-dwim.
26414         (bison, coreutils): Use the gitweb URL.
26416 2008-07-03  Jim Meyering  <meyering@redhat.com>
26418         * users.txt: Add libffcall.  From Sam Steingold.
26420 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
26422         getdate.y: do not ignore TZ with relative day, month or year offset
26423         * lib/getdate.y (get_date): Move the tz-handling block to follow the
26424         relative-date-handling, since otherwise, the latter would clobber the
26425         sole output (an updated Start value) of the tz-handling block.
26426         * tests/test-getdate.c: Tests for the fix
26428 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26430         Recognize 'foo_LIBRARIES += libgnu.a'.
26431         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
26432         makefile snippet has already specified an installation location,
26433         also using '+='.
26435 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
26437         getdate.y: factor out common actions
26438         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
26439         Use them in place of open-coded actions.
26441 2008-07-01  Simon Josefsson  <simon@josefsson.org>
26443         Add self-test for getdate module.
26444         * modules/getdate-tests: New file.
26445         * tests/test-getdate.c: New file.
26447 2008-06-29  Bruno Haible  <bruno@clisp.org>
26449         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
26450         .gitignore.
26451         Reported by Sylvain Beucler <beuc@beuc.net>.
26453 2008-06-29  Bruno Haible  <bruno@clisp.org>
26455         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
26456         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
26458 2008-06-29  Bruno Haible  <bruno@clisp.org>
26460         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
26461         EXTRA_DIST.
26462         Reported by Sylvain Beucler <beuc@beuc.net>.
26464 2008-06-26  Jim Meyering  <meyering@redhat.com>
26466         make several modules depend on the "open" module
26467         This provides slightly increased consistency when opening-for-write
26468         the name of a non-directory spelled with a trailing slash.
26469         * modules/chdir-safer: Likewise.
26470         * modules/chown: Likewise.
26471         * modules/clean-temp: Likewise.
26472         * modules/copy-file: Likewise.
26473         * modules/fchdir: Likewise.
26474         * modules/fcntl-safer: Likewise.
26475         * modules/pipe: Likewise.
26476         * modules/utime: Likewise.
26477         Prompted by Eric Blake and Bruno Haible.
26479 2008-06-24  Andreas Schwab  <schwab@suse.de>
26481         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
26482         literals can be used as initializers for global variables.
26484 2008-06-23  Eric Blake  <ebb9@byu.net>
26486         Make gnulib-cache.m4 easier to diff.
26487         * gnulib-tool (func_import): Allow newlines when reading cached
26488         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
26490 2008-06-23  Bruno Haible  <bruno@clisp.org>
26492         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
26493         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
26494         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
26495         m4/signalblocking.m4.
26496         (gl_PREREQ_SIGACTION): Don't invoke it.
26497         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
26498         gl_PREREQ_SIG_HANDLER_H.
26499         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26500         Don't check for sigaction here.
26502 2008-06-23  Bruno Haible  <bruno@clisp.org>
26504         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
26505         (install_handlers): Don't set the SA_RESETHAND flag.
26507 2008-06-23  Bruno Haible  <bruno@clisp.org>
26509         * m4/sigaction.m4: Comment fixes.
26510         * lib/signal.in.h: Likewise.
26512 2008-06-23  Eric Blake  <ebb9@byu.net>
26514         Fix typo.
26515         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
26517         Avoid SA_ namespace.
26518         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
26519         Reported by Ralf Wildenhues.
26521         Avoid test failure due to SA_RESTORER.
26522         * tests/test-sigaction.c (SA_MASK): New macro.
26523         (main): Avoid failing due to extension flags being set.
26524         Reported by Jim Meyering.
26526         Revert use of sig-handler.h in sigprocmask.c.
26527         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
26528         it requires the existence of struct sigaction.
26529         * lib/sigprocmask.c (handler_t): Restore typedef.
26530         (rpl_signal, old_handlers): Use local type.
26532 2008-06-22  Bruno Haible  <bruno@clisp.org>
26534         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
26535         conditionally.
26536         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26538 2008-06-22  Bruno Haible  <bruno@clisp.org>
26540         * doc/posix-functions/siginterrupt.texi: Move note.
26542         * lib/signal.in.h (SA_RESTART): New macro.
26543         * lib/sigaction.c: Update comment.
26545         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
26547         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
26548         (gl_PREREQ_SIGPROCMASK): Invoke it.
26549         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
26551         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
26553         * lib/sigprocmask.c: Update a comment.
26555 2008-06-21  Eric Blake  <ebb9@byu.net>
26557         Use sigaction module rather than signal().
26558         * modules/c-stack (Depends-on): Add sigaction.
26559         * modules/fatal-signal (Depends-on): Likewise.
26560         * modules/nanosleep (Depends-on): Likewise.
26561         * modules/sigprocmask (Files): Add sig-handler.h.
26562         * modules/sigaction (Files): Likewise.
26563         * lib/sig-handler.h (get_handler): New file, suggested by Paul
26564         Eggert.
26565         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
26566         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
26567         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26568         (init_fatal_signals): Likewise.
26569         * lib/nanosleep.c (rpl_nanosleep): Likewise.
26570         (siginterrupt): Delete fallback.
26571         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
26572         instead.
26573         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
26574         siginterrupt.
26576         New module sigaction, for mingw.
26577         * modules/sigaction: New module...
26578         * modules/sigaction-tests: ...and its test.
26579         * m4/sigaction.m4: New file.
26580         * lib/sigaction.c: Likewise.
26581         * tests/test-sigaction.c: Likewise.
26582         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
26583         * modules/signal (Makefile.am): Likewise.
26584         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
26585         needed.
26586         * doc/posix-headers/signal.texi (signal.h): Mention provided
26587         types.
26588         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
26589         that sigaction is preferable.
26590         * doc/posix-functions/sigaction.texi (sigaction): Mention new
26591         module.
26592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26593         sigaction.
26595         Improve robustness of sigprocmask by overriding signal.
26596         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
26597         is in use.
26598         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
26599         (SIGKILL, SIGSTOP): Provide fallbacks.
26600         (rpl_signal): Implement.
26601         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
26602         signal can be called inside handlers.
26604         Fix nanosleep module on mingw.
26605         * modules/nanosleep (Depends-on): Add sys_select.
26606         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
26608         Fix licensing of sigprocmask.
26609         * modules/raise (License): Relicense as LGPL.
26611 2008-06-21  Bruno Haible  <bruno@clisp.org>
26613         * lib/propername.c (proper_name_utf8): Don't use the transliterated
26614         result if it contains question marks.
26615         Reported by Michael Geng <linux@michaelgeng.de>.
26617 2008-06-19  Bruno Haible  <bruno@clisp.org>
26619         Fix CVS-ism.
26620         * doc/gnulib.texi: Include updated-stamp.texi.
26621         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
26622         (updated-stamp.texi): New rule.
26623         (gnulib.info): Depend on it.
26624         * doc/.gitignore: Add updated-stamp.texi.
26625         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
26627 2008-06-19  Bruno Haible  <bruno@clisp.org>
26629         * doc/Makefile (gnulib.info): Update and simplify dependencies.
26630         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26632 2008-06-19  Eric Blake  <ebb9@byu.net>
26634         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
26635         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
26636         Reported by Stepan Kasal.
26638 2008-06-18  Bruno Haible  <bruno@clisp.org>
26640         * lib/fatal-signal.c (init_fatal_signals): Add comment.
26641         Reported by Eric Blake.
26643 2008-06-18  Eric Blake  <ebb9@byu.net>
26645         Work around cygwin 1.5.25 strsignal bug.
26646         * tests/test-strsignal.c: Allow for const char *.
26647         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
26649 2008-06-18  Simon Josefsson  <simon@josefsson.org>
26651         * users.txt: Update URL to article and add author/date
26652         information.
26654 2008-06-17  Bruno Haible  <bruno@clisp.org>
26656         New macro gl_DISABLE_THREADS.
26657         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
26658         if the user did not pass --enable-threads or --disable-threads option.
26659         (gl_DISABLE_THREADS): New macro.
26660         Reported by Eric Blake <ebb9@byu.net>.
26662 2008-06-17  Bruno Haible  <bruno@clisp.org>
26664         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
26665         when the macro ignores it.
26666         Based on a patch by Eric Blake <ebb9@byu.net>.
26668 2008-06-17  Bruno Haible  <bruno@clisp.org>
26670         * modules/tls (License): Change to LGPLv2+.
26671         Reported by Eric Blake.
26673 2008-06-17  Eric Blake  <ebb9@byu.net>
26675         Simplify c-stack prerequisites.
26676         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
26677         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
26678         no longer requires <ucontext.h> to exist.  Optimize setrlimit
26679         check.
26680         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
26681         <sys/resource.h>.
26683         Move c-stack test into testsuite.
26684         * modules/c-stack-tests: New file.
26685         * lib/c-stack.c [DEBUG]: Move test program...
26686         * tests/test-c-stack.c: ...into this new file.  Skip rather than
26687         fail test if sigaltstack is lacking.
26688         * tests/test-c-stack.sh: New driver file.
26690 2008-06-16  Eric Blake  <ebb9@byu.net>
26692         Use raise module consistently.
26693         * modules/fatal-signal (Depends-on): Add raise.
26694         * modules/sigprocmask (Depends-on): Likewise.
26695         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
26696         * lib/sigprocmask.c (sigprocmask): Likewise.
26697         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26698         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
26700         Fix compliance bug in sigpending.
26701         * lib/sigprocmask.c (sigpending): Return pending array via
26702         parameter, not return value.
26704 2008-06-14  Eric Blake  <ebb9@byu.net>
26706         Improve obstack-printf test code.
26707         * tests/test-obstack-printf.c (test_function): Fix comment, and
26708         simplify usage of obstack_* in macros.  Add a test for coverage.
26709         Reported by Bruno Haible.
26711 2008-06-14  Bruno Haible  <bruno@clisp.org>
26713         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
26714         array size as a constant, not as a const variable.
26715         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
26716         AC_USE_SYSTEM_EXTENSIONS.
26717         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26718         Test whether the obstack_printf function actually exists.
26719         * modules/obstack-printf (Depends-on): Add extensions.
26720         (Include): Remove obstack.h.
26721         * modules/obstack-printf-posix (Depends-on): Add extensions.
26722         (Include): Remove obstack.h.
26724 2008-06-13  Eric Blake  <ebb9@byu.net>
26726         Add obstack-printf and obstack-printf-posix modules.
26727         * modules/obstack-printf: New file.
26728         * modules/obstack-printf-posix: Likewise.
26729         * MODULES.html.sh (Misc): Mention them.
26730         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26731         Likewise.
26732         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26733         Likewise.
26734         * modules/stdio (Makefile.am): Accomodate new modules.
26735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26736         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
26737         Declare.
26738         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
26739         functions.
26740         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
26741         (gl_REPLACE_OBSTACK_PRINTF): New macros
26742         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
26743         * tests/test-obstack-printf.c: New file.
26744         * modules/obstack-printf-tests: Likewise.
26745         * modules/obstack-printf-posix-tests: Likewise.
26747 2008-06-11  Bruno Haible  <bruno@clisp.org>
26749         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
26750         * lib/open.c: Include errno.h.
26751         (open): Fail when attempting to write to a file that has a trailing
26752         slash.
26753         * tests/test-open.c (main): Test against trailing slash bug.
26754         * doc/posix-functions/open.texi: Mention the trailing slash bug.
26756 2008-06-10  Bruno Haible  <bruno@clisp.org>
26758         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
26759         for $? to work inside the trap command, with various /bin/sh-s.
26760         * tests/test-vc-list-files-cvs.sh: Likewise.
26762 2008-06-10  Bruno Haible  <bruno@clisp.org>
26764         * lib/acl-internal.h: Don't include gettext.h here.
26765         * lib/set-mode-acl.c: Include gettext.h here.
26766         * lib/copy-acl.c: Likewise.
26768 2008-06-10  Bruno Haible  <bruno@clisp.org>
26770         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
26771         * lib/wait-process.c (wait_subprocess): Likewise.
26772         * lib/execute.h (execute): Add termsigp argument.
26773         * lib/execute.c (execute): Likewise.
26774         * lib/csharpcomp.c (compile_csharp_using_pnet,
26775         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
26776         * lib/csharpexec.c (execute_csharp_using_pnet,
26777         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
26778         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
26779         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
26780         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
26781         is_jikes_present): Update.
26782         * lib/javaexec.c (execute_java_class): Update.
26783         * lib/javaversion.c (execute_and_read_line): Update.
26784         * NEWS: Document the changes.
26785         Reported by Eric Blake.
26787 2008-06-10  Eric Blake  <ebb9@byu.net>
26789         Add missing include.
26790         * tests/test-strstr.c (includes): Add <signal.h>.
26791         * tests/test-strcasestr.c (includes): Likewise.
26792         * tests/test-memmem.c (includes): Likewise.
26794 2008-06-10  Bruno Haible  <bruno@clisp.org>
26796         * lib/wait-process.c (wait_subprocess): Add an assertion.
26798 2008-06-10  Bruno Haible  <bruno@clisp.org>
26800         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
26802 2008-06-10  Bruno Haible  <bruno@clisp.org>
26804         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
26805         using alarm().
26806         * tests/test-strcasestr.c (main): Likewise.
26807         * tests/test-strstr.c (main): Likewise.
26809 2008-06-09  Bruno Haible  <bruno@clisp.org>
26811         Work around the Solaris 10 ACE ACLs ABI change.
26812         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
26813         declare if ACL_NO_TRIVIAL is present.
26814         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
26815         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
26816         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
26817         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
26818         define if ACL_NO_TRIVIAL is present.
26819         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
26820         and use the current ABI.
26821         (file_has_acl): Use same #if condition as elsewhere.
26822         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
26823         in use, and use the current ABI.
26824         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
26825         Reported by Jim Meyering.
26827 2008-06-09  Eric Blake  <ebb9@byu.net>
26829         Work around environments that (stupidly) ignore SIGALRM.
26830         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
26831         before using alarm().
26832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26833         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26834         Reported by Ian Beckwith <ianb@erislabs.net>.
26836         Produce autobuild blurb earlier in log.
26837         * modules/autobuild (configure.ac-early): Move AB_INIT here.
26839 2008-06-09  Jim Meyering  <meyering@redhat.com>
26840         and OndÅ™ej Vašík  <ovasik@redhat.com>
26842         utimens.c: correct kernel bug work-around
26843         OndÅ™ej Vašík found that the invalid return value of 280 indicates
26844         failure, not success, and the kernel bug we're trying to work
26845         around affects not just the utimensat call, but also the fallback
26846         futimens call.
26847         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
26848         not success.
26849         [HAVE_FUTIMENS]: Use the same work-around, here.
26851 2008-06-09  Jim Meyering  <meyering@redhat.com>
26853         add more guards around definition of ACE_-related code
26854         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
26855         ALLOW and ACE_OWNER are also defined.
26857 2008-06-08  Bruno Haible  <bruno@clisp.org>
26859         * lib/acl-internal.h: Add me as co-author.
26860         * lib/file-has-acl.c: Likewise.
26861         * lib/set-mode-acl.c: Likewise.
26862         * lib/copy-acl.c: Likewise.
26864 2008-06-08  Bruno Haible  <bruno@clisp.org>
26866         Add support for AIX ACLs.
26867         * lib/acl-internal.h (acl_nontrivial): New declaration.
26868         * lib/file-has-acl.c (acl_nontrivial): New function.
26869         (file_has_acl): Add implementation using AIX 4 ACL API.
26870         * lib/set-mode-acl.c (qset_acl): Likewise.
26871         * lib/copy-acl.c (qcopy_acl): Likewise.
26873 2008-06-08  Bruno Haible  <bruno@clisp.org>
26875         Add support for HP-UX ACLs.
26876         * lib/acl-internal.h (acl_nontrivial): New declaration.
26877         * lib/file-has-acl.c (acl_nontrivial): New function.
26878         (file_has_acl): Add implementation using HP-UX 11 ACL API.
26879         * lib/set-mode-acl.c (qset_acl): Likewise.
26880         * lib/copy-acl.c (qcopy_acl): Likewise.
26882 2008-06-08  Bruno Haible  <bruno@clisp.org>
26884         Add support for Cygwin ACLs.
26885         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
26886         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
26887         the chmod_or_fchmod call.
26888         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
26890 2008-06-08  Bruno Haible  <bruno@clisp.org>
26892         Fix bug with setuid modes in Solaris 10+ code.
26893         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
26894         succeeded, when the mode contains some special bits.
26896 2008-06-08  Bruno Haible  <bruno@clisp.org>
26898         Add support for Solaris 7..10 ACLs.
26899         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
26900         declarations.
26901         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
26902         functions.
26903         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
26904         * lib/set-mode-acl.c (qset_acl): Likewise.
26905         * lib/copy-acl.c (qcopy_acl): Likewise.
26907 2008-06-08  Bruno Haible  <bruno@clisp.org>
26909         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
26910         declaration.
26911         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
26912         (acl_access_nontrivial): Remove MacOS X case.
26913         (file_has_acl): Use acl_extended_nontrivial.
26914         * lib/copy-acl.c (qcopy_acl): Likewise.
26916 2008-06-08  Bruno Haible  <bruno@clisp.org>
26918         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
26920 2008-06-08  Jim Meyering  <meyering@redhat.com>
26922         * modules/acl (Maintainer): Add Bruno Haible.
26924 2008-06-07  Bruno Haible  <bruno@clisp.org>
26926         Improve support for Tru64 ACLs.
26927         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
26928         ACL on OSF/1.
26930 2008-06-07  Bruno Haible  <bruno@clisp.org>
26932         Add support for MacOS X ACLs.
26933         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
26934         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
26935         * lib/set-mode-acl.c (qset_acl): Likewise.
26936         * lib/copy-acl.c (qcopy_acl): Likewise.
26938 2008-06-07  Bruno Haible  <bruno@clisp.org>
26940         Fix memory leak introduced on 2008-05-22.
26941         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
26942         use.
26944 2008-06-07  Bruno Haible  <bruno@clisp.org>
26946         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
26947         to construct an empty ACL.
26949 2008-06-07  Bruno Haible  <bruno@clisp.org>
26951         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
26952         precisely.
26953         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
26955 2008-06-07  Bruno Haible  <bruno@clisp.org>
26957         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
26958         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
26960 2008-06-07  Bruno Haible  <bruno@clisp.org>
26962         * doc/posix-functions/_setjmp.texi: Explain the use of this function
26963         regardless of POSIX.
26964         * doc/posix-functions/_longjmp.texi: Likewise.
26965         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
26966         SystemV platform in this case.
26968 2008-06-06  Eric Blake  <ebb9@byu.net>
26970         Document abort() bugs.
26971         * doc/posix-functions/abort.texi (abort): Mention anomalies.
26973         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
26974         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
26975         sigsetjmp.
26976         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
26977         siglongjmp, but only as a macro.
26978         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
26979         is obsolete.
26980         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
26982         Tweak documentation to cover cygwin argz bugs.
26983         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
26984         argz bug fix; no code change needed since no cygwin releases
26985         occurred between the last fix and the bug being tested.
26986         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
26987         module and recently fixed cygwin bugs.
26988         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
26989         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
26990         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
26991         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
26992         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
26993         Likewise.
26994         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
26995         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
26996         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
26997         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
26998         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
26999         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27000         Likewise.
27002         Avoid gcc warning on cygwin.
27003         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27004         !ACL_NO_TRIVIAL]: Avoid unused variable.
27006 2008-06-05  Eric Blake  <ebb9@byu.net>
27008         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27009         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27010         git-version-gen fails to come up with a version.
27011         Reported by Simon Josefsson.
27013 2008-06-05  Jim Meyering  <meyering@redhat.com>
27014             Paul Eggert  <eggert@cs.ucla.edu>
27016         utimens.c: work around a probable Linux kernel bug
27017         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27018         appears to be a kernel bug that causes utimensat to return 280
27019         instead of 0, indicating success.
27021 2008-06-04  Bruno Haible  <bruno@clisp.org>
27023         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27024         2008-06-01 commit.
27026 2008-06-04  Bruno Haible  <bruno@clisp.org>
27028         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27029         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27030         (file_has_acl): Use it. Save errno afterwards.
27031         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27033 2008-06-03  Bruno Haible  <bruno@clisp.org>
27035         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27036         draft code. Simplify #ifs.
27037         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27038         Put Solaris code after POSIX-draft code. Fix comments regarding
27039         Solaris 10, HP-UX. Mention Cygwin.
27040         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27042 2008-06-03  Eric Blake  <ebb9@byu.net>
27044         Provide fallback for older kernels.
27045         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27046         Provide runtime fallback if kernel lacks support.
27047         Reported by Mike Frysinger.
27049 2008-06-02  Bruno Haible  <bruno@clisp.org>
27051         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27052         it exists.
27054 2008-06-02  Bruno Haible  <bruno@clisp.org>
27056         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27057         * lib/copy-acl.c (qcopy_acl): Update comment.
27059 2008-06-02  Bruno Haible  <bruno@clisp.org>
27061         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27062         like ACL APIs.
27064 2008-06-02  Bruno Haible  <bruno@clisp.org>
27066         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27067         * tests/test-set-mode-acl.sh: Likewise.
27068         * tests/test-copy-acl.sh: Likewise.
27069         * tests/test-copy-file.sh: Likewise.
27071 2008-06-02  Bruno Haible  <bruno@clisp.org>
27073         * tests/test-file-has-acl.sh: Remove unused code.
27075 2008-06-01  Bruno Haible  <bruno@clisp.org>
27077         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27078         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27079         messages.
27080         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27082 2008-06-01  Bruno Haible  <bruno@clisp.org>
27084         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27085         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27086         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27087         APIs.
27088         * modules/acl-tests (configure.ac): Remove tests now contained in
27089         m4/acl.m4.
27091 2008-06-02  Jim Meyering  <meyering@redhat.com>
27093         announce-gen: use a better key-server host name
27094         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27095         it may be more consistently reliable.  Suggested by Werner Koch
27096         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27098 2008-06-01  Bruno Haible  <bruno@clisp.org>
27100         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27101         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27103 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27105         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27107 2008-06-01  Bruno Haible  <bruno@clisp.org>
27109         New ACL tests.
27110         * tests/test-file-has-acl.sh: New file.
27111         * tests/test-file-has-acl.c: New file.
27112         * tests/test-set-mode-acl.sh: New file.
27113         * tests/test-set-mode-acl.c: New file.
27114         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27115         * tests/test-copy-acl.c: New file.
27116         * modules/acl-tests: New file, based on modules/copy-file-tests.
27117         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27118         (Depends-on): Add acl-tests.
27119         (configure.ac): Remove checks.
27120         (Makefile.am): Don't create test-sameacls program here any more.
27122 2008-06-01  Bruno Haible  <bruno@clisp.org>
27124         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27125         * tests/test-sameacls.c: Include progname.h.
27126         (main): Invoke set_program_name. Portability fixes for MacOS X,
27127         Solaris, HP-UX.
27129 2008-06-01  Bruno Haible  <bruno@clisp.org>
27131         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27132         function.
27133         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27135 2008-06-01  Bruno Haible  <bruno@clisp.org>
27137         * modules/rpmatch (Depends-on): Add strdup.
27139 2008-06-01  Bruno Haible  <bruno@clisp.org>
27141         * lib/pipe.c: Include unistd-safer.h.
27142         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27143         * modules/pipe (Depends-on): Add unistd-safer.
27145 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27147         * modules/autobuild (configure.ac): Call AB_INIT.
27149 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27151         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27152         Suggested by Bruno Haible <bruno@clisp.org>.
27154 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27156         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27157         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27158         <bruno@clisp.org>.
27160 2008-05-29  Eric Blake  <ebb9@byu.net>
27162         Prefer new POSIX 200x interfaces over futimesat.
27163         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27164         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27165         when available.
27166         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27168 2008-05-28  Bruno Haible  <bruno@clisp.org>
27170         * modules/stpcpy (License): Change to LGPLv2+.
27171         Requested by David Lutterkort <dlutter@redhat.com>.
27173 2008-05-27  Bruno Haible  <bruno@clisp.org>
27175         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27176         current mingw.
27177         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27179 2008-05-27  Bruno Haible  <bruno@clisp.org>
27181         * modules/iconv_open (Link): New section, from module 'iconv'.
27182         * modules/striconv (Link): Likewise.
27183         * modules/striconveh (Link): Likewise.
27184         * modules/xstriconv (Link): Likewise.
27185         * modules/unicodeio (Link): Likewise.
27186         * modules/propername (Link): Likewise.
27187         Reported by Jim Meyering.
27189 2008-05-26  Jim Meyering  <meyering@redhat.com>
27191         sha256: do not artificially restrict buffer length to be < 2^32
27192         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27193         uint32_t to size_t.
27194         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27195         to match.
27197         avoid unaligned access errors, e.g., on sparc
27198         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27199         direct access through a possibly-unaligned uint64* pointer.
27200         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27201         direct access through a possibly-unaligned uint32* pointer.
27202         Prompted by this patch from Tom "spot" Callaway:
27203         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27205         sha512.c: fix typo in comment
27206         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27208 2008-05-25  Bruno Haible  <bruno@clisp.org>
27210         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27211         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27212         (Makefile.am): Update lib_SOURCES.
27214 2008-05-25  Bruno Haible  <bruno@clisp.org>
27216         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27218 2008-05-25  Jim Meyering  <meyering@redhat.com>
27220         useless-if-before-free: freed expr may have white-space differences
27221         * build-aux/useless-if-before-free: Recognize cases in which the
27222         freed expression differs from the tested one in embedded white
27223         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27224         $1 was used, so we can't make any regexp shy.  Improved tests now
27225         detect this.
27227         useless-if-before-free: accept white space in the expression.
27228         * build-aux/useless-if-before-free: For now, any white space
27229         in the expression must be identical in the free argument.
27231         useless-if-before-free: efficiency tweak
27232         * build-aux/useless-if-before-free: Make the expression-matching
27233         regexp "shy".
27234         Make the *outer* regexp shy, not the expr-matching one.
27236         update code-in-comment to accept cast of free arg
27237         * build-aux/useless-if-before-free: Update regexp.
27239 2008-05-25  Bruno Haible  <bruno@clisp.org>
27241         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27242         * modules/copy-file-tests (Files, Makefile.am): Update.
27243         * tests/test-copy-file.c (func_test_copy): Update.
27245 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27247         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27249 2008-05-23  Bruno Haible  <bruno@clisp.org>
27251         Improve support for ACLs on OSF/1.
27252         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27253         Remove fallback for unknown flavors of ACLs.
27255 2008-05-22  Bruno Haible  <bruno@clisp.org>
27257         Add support for ACLs on OSF/1.
27258         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27259         replacements.
27260         (acl_free_text): New macro fallback.
27261         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27262         acl_free.
27263         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27264         acl_free_text function. Require AC_C_INLINE.
27266 2008-05-22  Bruno Haible  <bruno@clisp.org>
27268         Make copy_acl work on MacOS X 10.5.
27269         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27270         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27271         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27272         If MODE_INSIDE_ACL, don't assume that every system has the same text
27273         representation for ACLs as FreeBSD.
27274         * lib/copy-acl.c (copy_acl): Add support for platforms with
27275         !MODE_INSIDE_ACL.
27276         * lib/file-has-acl.c (file_has_acl): Likewise.
27277         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27278         FreeBSD, MacOS X, or IRIX, respectively.
27280 2008-05-22  Bruno Haible  <bruno@clisp.org>
27282         * lib/acl.h: Don't include <sys/acl.h>.
27283         (GETACLCNT): Move fallback to lib/acl-internal.h.
27284         * lib/acl-internal.h: Include <sys/acl.h> here.
27285         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27287 2008-05-22  Bruno Haible  <bruno@clisp.org>
27289         Split off copy_acl function to separate file.
27290         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27291         * lib/acl.c (copy_acl): Moved function to separate file.
27292         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27293         * modules/acl (Files): Add lib/copy-acl.c.
27294         (Makefiles.am): Augment lib_SOURCES.
27296 2008-05-22  Bruno Haible  <bruno@clisp.org>
27298         * modules/copy-file-tests: New file.
27299         * tests/test-copy-file.sh: New file.
27300         * tests/test-copy-file.c: New file.
27301         * tests/test-copy-file-sameacls.c: New file.
27303 2008-05-22  Eric Blake  <ebb9@byu.net>
27305         Avoid gcc warning.
27306         * tests/test-memcmp.c (main): Pass NULL indirectly.
27308 2008-05-21  Bruno Haible  <bruno@clisp.org>
27310         Add reference doc about ACLs.
27311         * doc/acl-resources.txt: New file.
27312         * doc/acl-cygwin.txt: New file.
27314 2008-05-21  Bruno Haible  <bruno@clisp.org>
27316         Avoid one more warning from gcc.
27317         * lib/vasnprintf.c (IF_LINT): Update comments.
27318         (VASNPRINTF): Use it also for the 'prefix' array initializer.
27320 2008-05-21  Jim Meyering  <meyering@redhat.com>
27322         avoid a warning from gcc
27323         * lib/vasnprintf.c (IF_LINT): Define.
27324         (scale10_round_decimal_long_double):
27325         Use it to avoid a "may be used uninitialized" warning.
27326         (scale10_round_decimal_double): Likewise.
27328 2008-05-21  Simon Josefsson  <simon@josefsson.org>
27330         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
27331         declared.
27333 2008-05-20  Bruno Haible  <bruno@clisp.org>
27335         * tests/test-memcmp.c (main): Test also the sign of the result. Test
27336         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
27338 2008-05-20  Simon Josefsson  <simon@josefsson.org>
27340         * modules/memcmp-tests: New file.
27341         * tests/test-memcmp.c: New file.
27343 2008-05-19  Bruno Haible  <bruno@clisp.org>
27345         * modules/propername (Notice, configure.ac): Put quoted "..." into
27346         --keyword option.
27347         * lib/propername.h: Update comments accordingly.
27348         Reported by Eric Blake.
27350 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
27352         * modules/getpass-gnu (Depends-on): Add fseeko.
27354 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27356         * modules/base64-tests: New file.
27358 2008-05-19  Bo Borgerson <gigabo@gmail.com>
27360         * lib/base64.c (base64_decode_ctx): If a decode context structure
27361         was passed in use it to ignore newlines.  If a context structure
27362         was _not_ passed in, continue to treat newlines as garbage (this
27363         is the historical behavior).  Formerly base64_decode.
27364         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27365         takes a decode context structure.
27366         * lib/base64.h (base64_decode): Macro for four-argument calls.
27367         (base64_decode_alloc): Likewise.
27368         * lib/base64.c (base64_decode_ctx): If a decode context structure
27369         was passed in use it to ignore newlines.  If a context structure
27370         was _not_ passed in, continue to treat newlines as garbage (this
27371         is the historical behavior).  Formerly base64_decode.
27372         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27373         takes a decode context structure.
27374         * lib/base64.h (base64_decode): Macro for four-argument calls.
27375         (base64_decode_alloc): Likewise.
27377 2008-05-19  Jim Meyering  <meyering@redhat.com>
27379         avoid a warning from gcc
27380         * lib/trim.c (IF_LINT): Define.
27381         (trim2): Use it to avoid a "may be used uninitialized" warning.
27383         Fix doc typo.
27384         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
27386 2008-05-19  Bruno Haible  <bruno@clisp.org>
27388         * doc/glibc-functions/getpass.texi: Document limits of other
27389         implementations.
27391 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27392             Bruno Haible <bruno@clisp.org>
27394         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
27396 2008-05-18  Bruno Haible  <bruno@clisp.org>
27398         * modules/propername: New file, from GNU gettext.
27399         * lib/propername.h: New file, from GNU gettext.
27400         * lib/propername.c: New file, from GNU gettext.
27401         * MODULES.html.sh (Internationalization functions): Add propername.
27403 2008-05-16  Jim Meyering  <meyering@redhat.com>
27404             Bruno Haible  <bruno@clisp.org>
27406         Avoid some warnings from "gcc -Wshadow".
27407         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
27409 2008-05-15  Eric Blake  <ebb9@byu.net>
27411         Extend previous patch to cygwin 1.7.0.
27412         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
27413         fast implementation in cygwin >= 1.7.0.
27414         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27417 2008-05-15  Bruno Haible  <bruno@clisp.org>
27419         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
27420         implementation in glibc >= 2.9.
27421         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27424 2008-05-15  Bruno Haible  <bruno@clisp.org>
27426         * MODULES.html.sh (Internationalization functions): Remove linebreak.
27427         (Unicode string functions): Add unilbrk/*.
27428         Reported by Karl Berry.
27430 2008-05-15  Eric Blake  <ebb9@byu.net>
27432         Fix violation of <stdbool.h> replacement in regex.
27433         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
27434         * lib/regexec.c (re_search_internal): Likewise.
27435         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
27437 2008-05-15  Jim Meyering  <meyering@redhat.com>
27439         avoid distracting test output when git or cvs is not found
27440         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
27441         * tests/test-vc-list-files-git.sh: Likewise.
27443 2008-05-15  Eric Blake  <ebb9@byu.net>
27445         Glibc finally accepted the memmem speedup code, bugzilla #5514.
27446         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
27447         glibc version.
27448         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27449         * doc/posix-functions/strstr.texi (strstr): Likewise.
27450         * lib/str-two-way.h (MAX): Sychronize with glibc.
27452 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
27454         * lib/regcomp.c (optimize_utf8): Add a note on why we test
27455         opr.ctx_type.
27456         (calc_first): Initialize constraint field.
27457         (duplicate_node_closure): Use it instead of special casing ANCHORS.
27458         Fix grammar.
27459         (duplicate_node): Merge constraint field for all node types.
27460         (calc_eclosure_iter): Look at constraint field for all node types.
27461         * lib/regex_internal.c (create_cd_newstate): Don't look at
27462         opr.ctx_type.
27464 2008-05-14  Bruno Haible  <bruno@clisp.org>
27466         Help GCC to do better code generation.
27467         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
27468         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27469         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
27470         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
27471         Declare with attribute 'malloc' if supported.
27473 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
27475         use "echo STR|wc -c" rather than unportable "expr length STR"
27476         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
27477         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
27479 2008-05-14  Jim Meyering  <meyering@redhat.com>
27481         use dd ibs=$n count=1 ... rather than less-portable head -c$n
27482         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
27483         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
27484         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
27485         via Collin Lasse.
27487 2008-05-14  Eric Blake  <ebb9@byu.net>
27489         Avoid quadratic growth in gl_LIBSOURCES.
27490         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
27491         Suggested by Bruno Haible.
27493         Test xmemdup0.
27494         * modules/xmemdup0-tests: New file.
27495         * tests/test-xmemdup0.c: Likewise.
27497 2008-05-13  Eric Blake  <ebb9@byu.net>
27499         Split xmemdup0 into its own module.
27500         * modules/xmemdup0: New file.
27501         * lib/xmemdup0.h: Likewise.
27502         * lib/xmemdup0.c: Likewise.
27503         * MODULES.html.sh (Memory management functions): Add xmemdup0.
27504         * lib/xalloc.h (xmemdup0): Remove.
27505         * lib/xmalloc.c (xmemdup0): Likewise.
27507 2008-05-13  Eric Blake  <ebb9@byu.net>
27508             Bruno Haible  <bruno@clisp.org>
27510         Reduce number of forks required during autoconf.
27511         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
27512         and gl_LIBSOURCES_DIR.
27513         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
27514         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
27515         m4_syscmd per file.
27516         <m4_foreach_w>: Move...
27517         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
27519 2008-05-13  Eric Blake  <ebb9@byu.net>
27521         * gnulib-tool: Fix various comment typos.
27523 2008-05-12  Bruno Haible  <bruno@clisp.org>
27525         Tailor the linebreaking algorithm.
27526         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
27528 2008-05-12  Bruno Haible  <bruno@clisp.org>
27530         Update to Unicode 5.0.0.
27531         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27532         LBP_JV, LBP_JT. Redistribute values.
27533         (unilbrk_table): Change size.
27534         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
27535         Unicode TR#14 rev. 22.
27536         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27537         LBP_JV, LBP_JT. Redistribute values.
27538         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
27539         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
27540         Update.
27541         * lib/unilbrk/lbrkprop1.h: Regenerated.
27542         * lib/unilbrk/lbrkprop2.h: Regenerated.
27543         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
27544         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
27545         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
27546         Likewise.
27547         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
27548         Likewise.
27549         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
27550         result.
27551         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27552         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27553         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27554         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
27555         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
27556         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
27558 2008-05-11  Bruno Haible  <bruno@clisp.org>
27560         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
27562 2008-05-11  Bruno Haible  <bruno@clisp.org>
27564         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
27565         * modules/unilbrk/gen-lbrk: New file.
27567 2008-05-11  Bruno Haible  <bruno@clisp.org>
27569         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
27570         * m4/sha512.m4 (gl_SHA512): Likewise.
27572 2008-05-11  Jim Meyering  <meyering@redhat.com>
27574         New modules: crypto/sha256, crypto/sha512 (from coreutils)
27575         * modules/crypto/sha256: New file.
27576         * modules/crypto/sha512: Likewise.
27577         * lib/sha256.c: Likewise.
27578         * lib/sha256.h: Likewise.
27579         * lib/sha512.c: Likewise.
27580         * lib/sha512.h: Likewise.
27581         * lib/u64.h: Likewise.
27582         * m4/sha256.m4: Likewise.
27583         * m4/sha512.m4: Likewise.
27584         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
27586 2008-05-10  Bruno Haible  <bruno@clisp.org>
27588         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
27589         (Input/Output <stdio.h>): Add xprintf.
27590         (Signal handling <signal.h>): Add strsignal.
27591         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
27592         (Core language properties): Add func.
27593         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
27594         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
27595         strings.
27596         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
27597         (Input/output): New section.
27598         (File system functions): Add openat-die, stat-macros.
27599         (Networking functions): Add sockets.
27600         (Unicode string functions): Add unictype/*.
27601         (Support for building libraries and executables): Add gperf.
27602         (Support for building documentation): Add agpl-3.0.
27603         (Misc): Add nocrash.
27605 2008-05-10  Bruno Haible  <bruno@clisp.org>
27607         * modules/unictype/gen-ctype: New file.
27609 2008-05-10  Jim Meyering  <meyering@redhat.com>
27611         Make chdir-safer.c more efficient on a system with no symlinks.
27612         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
27613         also if ELOOP is zero.  Suggested by Bruno Haible.
27615         Make chdir-safer.c slightly safer.
27616         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
27617         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
27619         Avoid compile failure on systems without ELOOP (like mingw).
27620         * lib/chdir-safer.c (ELOOP): Define if not already defined.
27621         Reported by Bruno Haible.
27623 2008-05-10  Bruno Haible  <bruno@clisp.org>
27625         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
27626         (is_utf8_encoding): Use a case-insensitive comparison.
27627         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
27628         streq.
27630 2008-05-10  Bruno Haible  <bruno@clisp.org>
27632         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
27633         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
27634         * lib/unilbrk/ulc-common.h (iconv_string_length,
27635         iconv_string_keeping_offsets): Remove declarations.
27636         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
27637         Don't include <iconv.h>, streq.h, xsize.h.
27638         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
27639         conversion.
27640         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
27641         <iconv.h>, streq.h, xsize.h.
27642         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
27643         conversion.
27644         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
27645         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
27646         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
27647         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
27649 2008-05-10  Bruno Haible  <bruno@clisp.org>
27651         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
27652         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
27654         * modules/unilbrk/u32-width-linebreaks-tests: New file.
27655         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
27657         * modules/unilbrk/u16-width-linebreaks-tests: New file.
27658         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
27660         * modules/unilbrk/u8-width-linebreaks-tests: New file.
27661         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
27663         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
27664         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
27666         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
27667         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
27669         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
27670         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
27672         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
27673         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
27675 2008-05-10  Bruno Haible  <bruno@clisp.org>
27677         Split up 'linebreak' module.
27678         * lib/unilbrk.h: New file, based on lib/linebreak.h.
27679         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
27680         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
27681         modifications.
27682         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
27683         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
27684         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
27685         lib/linebreak.c.
27686         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
27687         lib/linebreak.c.
27688         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
27689         lib/linebreak.c.
27690         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
27691         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
27692         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
27693         lib/linebreak.c.
27694         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
27695         lib/linebreak.c.
27696         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
27697         lib/linebreak.c.
27698         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
27699         lib/linebreak.c.
27700         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
27701         lib/linebreak.c.
27702         * modules/unilbrk/base: New file.
27703         * modules/unilbrk/tables: New file.
27704         * modules/unilbrk/u8-possible-linebreaks: New file.
27705         * modules/unilbrk/u16-possible-linebreaks: New file.
27706         * modules/unilbrk/u32-possible-linebreaks: New file.
27707         * modules/unilbrk/ulc-common: New file.
27708         * modules/unilbrk/ulc-possible-linebreaks: New file.
27709         * modules/unilbrk/u8-width-linebreaks: New file.
27710         * modules/unilbrk/u16-width-linebreaks: New file.
27711         * modules/unilbrk/u32-width-linebreaks: New file.
27712         * modules/unilbrk/ulc-width-linebreaks: New file.
27713         * lib/linebreak.h: Remove file.
27714         * lib/linebreak.c: Remove file.
27715         * m4/linebreak.m4: Remove file.
27716         * modules/linebreak: Remove file.
27717         * NEWS: Mention the changes.
27719 2008-05-09  Eric Blake  <ebb9@byu.net>
27721         Add xmemdup0.
27722         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
27723         implementation.
27724         * lib/xmalloc.c (xmemdup0): New C implementation.
27726 2008-05-08  Bruno Haible  <bruno@clisp.org>
27728         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
27730 2008-05-07  Eric Blake  <ebb9@byu.net>
27732         Support cross-compilation of <wctype.h>.
27733         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
27734         AC_CACHE_CHECK.
27736 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
27738         * build-aux/vc-list-files: Add support for bzr.
27740 2008-05-03  Jim Meyering  <meyering@redhat.com>
27742         avoid failed assertion with tight malloc
27743         * tests/test-getndelim2.c: Correct an off-by-one assertion.
27745 2008-05-03  Simon Josefsson  <simon@josefsson.org>
27747         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
27748         are needed from arpa/inet.h.
27749         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
27750         Reported by Bruno Haible.
27752 2008-05-02  Jim Meyering  <meyering@redhat.com>
27754         avoid compilation error on FreeBSD 6
27755         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
27757 2008-05-01  Jim Meyering  <meyering@redhat.com>
27759         useless-if-before-free: correct --help's exit status description
27760         * build-aux/useless-if-before-free (usage): Like grep, exit 0
27761         for one or more matches, etc.  Reported by Bruno Haible.
27763         vc-list-files: make the stand-alone gnulib test work
27764         * modules/vc-list-files-tests (configure.ac):
27765         Define and AC_SUBST abs_aux_dir.
27766         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
27767         $(abs_top_srcdir) to each script and having each of them
27768         duplicate the work of setting PATH, set PATH here, using
27769         the new variable, abs_aux_dir instead.
27770         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
27771         * tests/test-vc-list-files-git.sh: Likewise.
27772         Reported by Bruno Haible.
27774 2008-05-01  Bruno Haible  <bruno@clisp.org>
27776         * lib/getndelim2.c (getndelim2): Fix newsize computation during
27777         reallocation. Rename 'done' to 'found_delimiter'.
27779 2008-05-01  Jim Meyering  <meyering@redhat.com>
27781         vc-list-files: accommodate /bin/sh like the one from Solaris 10
27782         * build-aux/vc-list-files: Use `...`, not $(...).
27784 2008-04-30  Jim Meyering  <meyering@redhat.com>
27786         add tests for vc-list-files
27787         * modules/vc-list-files-tests: New module.
27788         * tests/test-vc-list-files-cvs.sh: New file.
27789         * tests/test-vc-list-files-git.sh: New file.
27791         avoid a warning from gcc
27792         * lib/getndelim2.c (IF_LINT): Define.
27793         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
27795         vc-list-files: work properly with build-aux/cvsu, too
27796         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
27797         to all cvs-based clauses.
27799         vc-list-files: work properly in the CVS+awk case, too
27800         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
27802         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
27803         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
27804         take more than one file argument, so .  Add quotes, just in case $dir
27805         ever contains a shell meta-character.  Prompted by Soren Hansen in
27806         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
27808 2008-04-29  Eric Blake  <ebb9@byu.net>
27810         Optimize getndelim2 to use block operations when possible.
27811         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
27812         freadseek, and memchr2.
27813         * lib/getndelim2.c (getndelim2): Use them for block reads.
27815 2008-04-29  Bruno Haible  <bruno@clisp.org>
27817         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
27818         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27819         * modules/inet_ntop (Depends-on): Add extensions.
27820         * modules/inet_pton (Depends-on): Likewise.
27821         Reported by Simon Josefsson.
27823 2008-04-29  Jim Meyering  <meyering@redhat.com>
27825         When the is more than one match in a block, match all of them.
27826         * build-aux/useless-if-before-free: Iterate through each block
27827         until there are no more matches.
27829         Fix broken useless-if-before-free script.
27830         * build-aux/useless-if-before-free: Fix typo: missing "?" after
27831         the expression to match cast of argument to free-like function.
27833 2008-04-29  Eric Blake  <ebb9@byu.net>
27835         Use new header.
27836         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
27838 2008-04-29  Jim Meyering  <meyering@redhat.com>
27840         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
27841         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
27842         by gnulib to exist and to declare e.g., inet_ntop.
27843         Don't include "inet_ntop.h", now removed.
27845         * m4/arpa_inet_h.m4: Remove trailing blanks.
27847 2008-04-29  Eric Blake  <ebb9@byu.net>
27849         Silence valgrind on safe reads beyond potential array bounds.
27850         * lib/rawmemchr.valgrind: New file.
27851         * lib/strchrnul.valgrind: Likewise.
27852         * modules/rawmemchr (Files): Distribute new file.
27853         * modules/strchrnul (Files): Likewise.
27854         Suggested by Bruno Haible.
27856 2008-04-29  Bruno Haible  <bruno@clisp.org>
27858         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
27859         (inet_ntop, inet_pton): Change portability warning's wording.
27860         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
27861         Invoke gl_CHECK_NEXT_HEADERS.
27862         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
27863         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
27864         set ARPA_INET_H.
27865         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27866         * modules/arpa_inet (Description): No longer only for systems that
27867         lack it.
27868         (Depends-on): Add include_next.
27869         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
27870         HAVE_ARPA_INET_H.
27872 2008-04-29  Jim Meyering  <meyering@redhat.com>
27874         * modules/mkdir (License): Re-license as LGPLv2+.
27876 2008-04-29  Bruno Haible  <bruno@clisp.org>
27878         * modules/rawmemchr (Maintainer): Set to Eric.
27879         * modules/strchrnul (Maintainer): Likewise.
27881 2008-04-29  Simon Josefsson  <simon@josefsson.org>
27883         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
27884         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
27886         * modules/arpa_inet (arpa/inet.h): Use them.
27888 2008-04-28  Eric Blake  <ebb9@byu.net>
27890         Test getndelim2.
27891         * modules/getndelim2-tests: New file.
27892         * tests/test-getndelim2.c: Likewise.
27893         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
27894         stream.
27895         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
27897         * MODULES.html.sh: Document new module.
27899 2008-04-20  Bruno Haible  <bruno@clisp.org>
27901         * lib/c-stack.c (die): Use raise.
27902         * modules/c-stack (Depends-on): Add raise.
27904 2008-04-28  Bruno Haible  <bruno@clisp.org>
27906         Expect rpmatch to be declared.
27907         * lib/yesno.c (rpmatch): Remove declaration.
27909         Declare rpmatch.
27910         * lib/stdlib.in.h (rpmatch): New declaration.
27911         * lib/rpmatch.c: Include <stdlib.h> first.
27912         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
27913         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
27914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
27915         HAVE_RPMATCH.
27916         * modules/rpmatch (Depends-on): Add stdlib, extensions.
27917         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27918         (Include): Set to <stdlib.h>.
27919         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
27920         HAVE_RPMATCH.
27921         * NEWS: Document the change.
27923 2008-04-28  Bruno Haible  <bruno@clisp.org>
27925         Change rpmatch to use nl_langinfo when appropriate.
27926         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
27927         (N_): New macro.
27928         (localized_pattern): New function/macro.
27929         (try): Remove match, nomatch arguments. Copy the pattern into safe
27930         memory before caching it.
27931         (rpmatch): Use localized_pattern. Add translator comments.
27932         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
27933         Suggested by Eric Blake.
27934         * modules/rpmatch (Depends-on): Add stdbool.
27936 2008-04-28  Eric Blake  <ebb9@byu.net>
27938         Add rawmemchr module, matching glibc.
27939         * modules/string (Makefile.am): New indicator.
27940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
27941         * lib/string.in.h (rawmemchr): Declare when appropriate.
27942         * modules/rawmemchr: New file.
27943         * m4/rawmemchr.m4: Likewise.
27944         * lib/rawmemchr.c: Likewise.
27945         * modules/rawmemchr-tests: Likewise.
27946         * tests/test-rawmemchr.c: Likewise.
27947         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
27948         module.
27949         * modules/strchrnul (Depends-on): Add rawmemchr.
27950         * lib/strchrnul.c (strchrnul): Optimize a corner case.
27952         Whitespace cleanup.
27953         * tests/test-strchrnul.c: Reindent.
27954         * lib/strchrnul.c: Likewise.
27956         Optimize and test strchrnul.
27957         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
27958         * modules/strchrnul-tests: New file.
27959         * tests/test-strchrnul.c: Likewise.
27961         Remove intprops dependency.
27962         * modules/memchr (Depends-on): Remove intprops.
27963         * modules/memrchr (Depends-on): Likewise.
27964         * modules/memchr2 (Depends-on): Likewise.
27965         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
27966         * lib/memrchr.c (__memrchr): Likewise.
27967         * lib/memrchr2.c (memchr2): Likewise.
27968         Reported by Simon Josefsson.
27970 2008-04-28  Simon Josefsson  <simon@josefsson.org>
27972         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
27973         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27975 2008-04-28  Simon Josefsson  <simon@josefsson.org>
27977         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
27979         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
27981         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
27983         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
27984         declarations.
27985         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
27987         * m4/inet_pton.m4: Don't check for header files.
27989         * m4/inet_ntop.m4: Don't check for header files.
27991 2008-04-28  Simon Josefsson  <simon@josefsson.org>
27993         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
27994         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
27995         trigger for cygwin).
27996         Reported by Bruno Haible  <bruno@clisp.org>.
27998 2008-04-28  Bruno Haible  <bruno@clisp.org>
28000         * doc/posix-functions/strdup.texi: Mention mingw problem.
28002 2008-04-27  Bruno Haible  <bruno@clisp.org>
28004         * modules/stat-time-tests (Depends-on): Add sleep.
28005         * tests/test-stat-time.c (force_unlink): New function.
28006         (cleanup): Use it.
28007         (test_mtime): Remove the ctime related tests.
28008         (test_ctime): New function, containing the ctime related tests.
28009         (main): Call test_ctime, except on native Windows platforms.
28011 2008-04-27  Bruno Haible  <bruno@clisp.org>
28013         * lib/rpmatch.c (rpmatch): Add some comments.
28014         Reported by James Youngman <jay@gnu.org>.
28016 2008-04-27  Bruno Haible  <bruno@clisp.org>
28018         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28019         quiet NaNs.
28021 2008-04-27  Bruno Haible  <bruno@clisp.org>
28023         Make test-yesno.sh work on mingw.
28024         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28025         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28026         (main): Set stdin to binary mode.
28027         * modules/yesno-tests (Depends-on): Add binary-io.
28029 2008-04-27  Bruno Haible  <bruno@clisp.org>
28031         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28032         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28033         argument that lie outside the IEEE 854 domain.
28034         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28035         (gl_ISFINITE): Use it.
28036         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28038 2008-04-27  Bruno Haible  <bruno@clisp.org>
28040         Allow local renaming in config.h.
28041         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28043 2008-04-27  Bruno Haible  <bruno@clisp.org>
28045         * lib/memchr.c (__memchr): Change type of 'i'.
28046         * lib/memchr2.c (memchr2): Likewise.
28048 2008-04-26  Eric Blake  <ebb9@byu.net>
28049         and Bruno Haible  <bruno@clisp.org>
28051         Optimize and test memrchr.
28052         * modules/memrchr (Depends-on): Add intprops.
28053         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28054         * modules/memrchr-tests: New file.
28055         * tests/test-memrchr.c: New file.
28057 2008-04-26  Bruno Haible  <bruno@clisp.org>
28059         Add tentative support for DragonFly BSD.
28060         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28061         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28062         fp.
28063         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28064         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28065         * lib/fpurge.c (fpurge): Likewise.
28066         * lib/freadable.c (freaadable): Likewise.
28067         * lib/freadahead.c (freadahead): Likewise.
28068         * lib/freading.c (freading): Likewise.
28069         * lib/freadptr.c (freadptr): Likewise.
28070         * lib/freadseek.c (freadptrinc): Likewise.
28071         * lib/fseeko.c (fseeko): Likewise.
28072         * lib/fseterr.c (fseterr): Likewise.
28073         * lib/fwritable.c (fwritable): Likewise.
28074         * lib/fwriting.c (fwriting): Likewise.
28076 2008-04-26  Bruno Haible  <bruno@clisp.org>
28078         * lib/stdio-impl.h: New file.
28079         * lib/fbufmode.c: Include stdio-impl.h.
28080         (fbufmode): Use fp_, remove redundant #defines.
28081         * lib/fflush.c: Include stdio-impl.h.
28082         (clear_ungetc_buffer): Remove redundant #defines.
28083         * lib/fpurge.c: Include stdio-impl.h.
28084         (fpurge): Remove redundant #defines.
28085         * lib/freadable.c: Include stdio-impl.h.
28086         (freadable): Remove redundant #defines.
28087         * lib/freadahead.c: Include stdio-impl.h.
28088         (freadahead): Remove redundant #defines.
28089         * lib/freading.c: Include stdio-impl.h.
28090         (freading): Remove redundant #defines.
28091         * lib/freadptr.c: Include stdio-impl.h.
28092         (freadptr): Remove redundant #defines.
28093         * lib/freadseek.c: Include stdio-impl.h.
28094         (freadptrinc): Remove redundant #defines.
28095         * lib/fseeko.c: Include stdio-impl.h.
28096         (rpl_fseeko): Remove redundant #defines.
28097         * lib/fseterr.c: Include stdio-impl.h.
28098         (fseterr): Remove redundant #defines.
28099         * lib/fwritable.c: Include stdio-impl.h.
28100         (fwritable: Remove redundant #defines.
28101         * lib/fwriting.c: Include stdio-impl.h.
28102         (fwriting): Remove redundant #defines.
28103         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28104         * modules/fflush (Files): Likewise.
28105         * modules/fpurge (Files): Likewise.
28106         * modules/freadable (Files): Likewise.
28107         * modules/freadahead (Files): Likewise.
28108         * modules/freading (Files): Likewise.
28109         * modules/freadptr (Files): Likewise.
28110         * modules/freadseek (Files): Likewise.
28111         * modules/fseeko (Files): Likewise.
28112         * modules/fseterr (Files): Likewise.
28113         * modules/fwritable (Files): Likewise.
28114         * modules/fwriting (Files): Likewise.
28116 2008-04-26  Bruno Haible  <bruno@clisp.org>
28118         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28119         restore_seek_optimization, update_fpos_cache): New functions, extracted
28120         from rpl_fflush.
28121         (rpl_fflush): Use them.
28122         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28123         (gl_REPLACE_FFLUSH): Use it.
28125 2008-04-26  Bruno Haible  <bruno@clisp.org>
28127         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28128         on Solaris.
28129         * tests/test-xstrtoimax.sh: Likewise.
28130         * tests/test-xstrtoumax.sh: Likewise.
28131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28133 2008-04-26  Bruno Haible  <bruno@clisp.org>
28135         * modules/memchr-tests: New file.
28136         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28138 2008-04-26  Eric Blake  <ebb9@byu.net>
28139             Bruno Haible  <bruno@clisp.org>
28141         * lib/memchr.c: Include intprops.h.
28142         (__memchr): Optimize parallel detection of matching bytes. Rename local
28143         variables. Add explanatory comments.
28145 2008-04-26  Bruno Haible  <bruno@clisp.org>
28147         Fix module 'memchr', broken since 2000-10-28.
28148         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28150 2008-04-26  Bruno Haible  <bruno@clisp.org>
28152         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28153         comments.
28155 2008-04-25  Eric Blake  <ebb9@byu.net>
28157         Use native fstatat on cygwin 1.7.0.
28158         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28159         first.
28161 2008-04-23  Eric Blake  <ebb9@byu.net>
28163         Improve memchr2 performance.
28164         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28165         NUL bytes.
28166         * modules/memchr2 (Depends-on): Use intprops.h.
28168 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28170         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28171         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28172         <blp@cs.stanford.edu>.
28174 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28176         * lib/arpa_inet.in.h: New file.
28178         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28179         (Makefile.am): Sed in substitute header file.
28181         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28182         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28184         * modules/inet_ntop (configure.ac): Use
28185         gl_ARPA_INET_MODULE_INDICATOR.
28187         * modules/inet_pton (configure.ac): Use
28188         gl_ARPA_INET_MODULE_INDICATOR.
28190 2008-04-22  Jim Meyering  <meyering@redhat.com>
28192         * modules/verify (License): Re-license as LGPLv2+.
28194 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28196         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28197         parameter to void* as per POSIX standard (MinGW uses char*).
28199 2008-04-21  Bruno Haible  <bruno@clisp.org>
28201         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28202         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28203         Define to replacements if REPLACE_ISWCNTRL is 1.
28204         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28205         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28206         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28207         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28208         what it fixes.
28209         * doc/posix-functions/iswalpha.texi: Likewise.
28210         * doc/posix-functions/iswblank.texi: Likewise.
28211         * doc/posix-functions/iswcntrl.texi: Likewise.
28212         * doc/posix-functions/iswdigit.texi: Likewise.
28213         * doc/posix-functions/iswgraph.texi: Likewise.
28214         * doc/posix-functions/iswlower.texi: Likewise.
28215         * doc/posix-functions/iswprint.texi: Likewise.
28216         * doc/posix-functions/iswpunct.texi: Likewise.
28217         * doc/posix-functions/iswspace.texi: Likewise.
28218         * doc/posix-functions/iswupper.texi: Likewise.
28219         * doc/posix-functions/iswxdigit.texi: Likewise.
28220         Reported by Alain Guibert.
28222 2008-04-21  Bruno Haible  <bruno@clisp.org>
28224         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28225         Patch by Alain Guibert.
28227 2008-04-21  Bruno Haible  <bruno@clisp.org>
28229         Fix test failures on mingw.
28230         * tests/test-xstrtol.c (print_no_progname): New function.
28231         (main): Install it in error_print_progname hook.
28232         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28233         * tests/test-xstrtoimax.sh: Likewise.
28234         * tests/test-xstrtoumax.sh: Likewise.
28236 2008-04-21  Bruno Haible  <bruno@clisp.org>
28238         Fix test failure on mingw.
28239         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28241 2008-04-21  Bruno Haible  <bruno@clisp.org>
28243         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28244         Actually assign a value.
28246 2008-04-20  Bruno Haible  <bruno@clisp.org>
28248         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28249         take 2.
28250         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28251         'canonicalize-lgpl' module is also used.
28252         * lib/canonicalize-lgpl.c: Undo last change.
28253         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28255 2008-04-20  Bruno Haible  <bruno@clisp.org>
28257         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28258         config.h. Provide _mkdir based fallback for mingw.
28259         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28260         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28261         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28262         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28263         rather than defining mkdir in config.h.
28264         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28265         (gl_SYS_STAT_H_DEFAULTS): New macro.
28266         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28267         HAVE_IO_H any more.
28268         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28269         HAVE_DECL_MKDIR and HAVE_IO_H.
28271 2008-04-20  Bruno Haible  <bruno@clisp.org>
28273         * lib/isapipe.c: Port to native Windows platforms.
28275 2008-04-20  Bruno Haible  <bruno@clisp.org>
28277         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28279 2008-04-21  Eric Blake  <ebb9@byu.net>
28281         Work around preprocessors that don't handle UINTMAX_MAX.
28282         * lib/memchr2.c (memchr2): Avoid embedded #if.
28283         Reported by Alain Guibert, fix suggested by Bruno Haible.
28285 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28287         * doc/posix-functions/strftime.texi (strftime): Explain better
28288         Windows incompatibility.  Suggested by Micah Cowan
28289         <micah@cowan.name>.
28291 2008-04-20  Bruno Haible  <bruno@clisp.org>
28293         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28294         unistr/u8-mblen.
28296 2008-04-20  Bruno Haible  <bruno@clisp.org>
28298         Fix test failure on platforms with non-GNU iconv.
28299         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28300         (U_TO_U8): Use it, rather than u16_to_u8.
28301         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28302         units at the end of the input string.
28303         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28305 2008-04-20  Bruno Haible  <bruno@clisp.org>
28307         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
28308         when the resulting length is 0.
28309         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
28311 2008-04-20  Bruno Haible  <bruno@clisp.org>
28313         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
28314         works.
28315         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
28317 2008-04-20  Bruno Haible  <bruno@clisp.org>
28319         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
28320         * modules/tsearch-tests (configure.ac): Test for initstate function.
28322 2008-04-20  Bruno Haible  <bruno@clisp.org>
28324         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
28325         for nlink_t if missing.
28326         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
28328 2008-04-19  Bruno Haible  <bruno@clisp.org>
28330         Work around snprintf bug on Linux libc5.
28331         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
28332         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28333         gl_SNPRINTF_SIZE1.
28334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28335         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
28336         that test failed.
28337         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28338         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
28339         * modules/snprintf (Files): Add m4/printf.m4.
28340         * modules/vsnprintf (Files): Likewise.
28341         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
28342         * doc/posix-functions/vsnprintf.texi: Likewise.
28344 2008-04-19  Bruno Haible  <bruno@clisp.org>
28346         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
28347         from 0.0058 to less than 10^-7.
28349 2008-04-19  Bruno Haible  <bruno@clisp.org>
28351         Fix rounding when a precision is given.
28352         * lib/vasnprintf.c (is_borderline): New function.
28353         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
28354         9...9x.
28355         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
28356         %e, %g.
28357         * tests/test-vasprintf-posix.c (test_function): Likewise.
28358         * tests/test-snprintf-posix.h (test_function): Likewise.
28359         * tests/test-sprintf-posix.h (test_function): Likewise.
28360         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
28361         * tests/test-printf-posix.h (test_function): Likewise.
28362         * tests/test-printf-posix.output: Update.
28363         Reported by John Darrington <john@darrington.wattle.id.au> via
28364         Ben Pfaff <blp@cs.stanford.edu>.
28366 2008-04-18  Simon Josefsson  <simon@josefsson.org>
28368         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
28369         Suggested by Bruno Haible <bruno@clisp.org>.
28371 2008-04-17  Bruno Haible  <bruno@clisp.org>
28373         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
28374         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
28375         implementation.
28376         Patch by Bruce Merry <bmerry@gmail.com>.
28378 2008-04-17  Simon Josefsson  <simon@josefsson.org>
28380         * doc/posix-functions/strftime.texi (strftime): Mention that %e
28381         doesn't work under Windows.
28383 2008-04-16  Bruno Haible  <bruno@clisp.org>
28385         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
28386         New macros.
28387         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
28388         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
28389         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
28390         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
28391         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
28392         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
28393         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
28394         macros.
28395         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
28396         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
28397         Northern Sotho, Uighur.
28399 2008-04-16  Bruno Haible  <bruno@clisp.org>
28401         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
28402         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
28403         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
28404         Reported by Daniel Bergström <daniel@octocode.com>.
28406 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
28407             Bruno Haible  <bruno@clisp.org>
28409         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
28410         function.
28411         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
28412         New functions, mostly extracted from gl_locale_name_default.
28413         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
28415 2008-04-16  Eric Blake  <ebb9@byu.net>
28417         Adjust strtod detection to catch glibc 2.7 bug.
28418         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
28419         Reported by John Gatewood Ham.
28421 2008-04-16  Bruno Haible  <bruno@clisp.org>
28423         Add tentative support for Linux libc5.
28424         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
28425         * lib/fpurge.c (fpurge): Likewise.
28426         * lib/freadable.c (freadable): Likewise.
28427         * lib/freadahead.c (freadahead): Likewise.
28428         * lib/freading.c (freading): Likewise.
28429         * lib/freadptr.c (freadptr): Likewise.
28430         * lib/freadseek.c (freadptrinc): Likewise.
28431         * lib/fseeko.c (rpl_fseeko): Likewise.
28432         * lib/fseterr.c (fseterr): Likewise.
28433         * lib/fwritable.c (fwritable): Likewise.
28434         * lib/fwriting.c (fwriting): Likewise.
28435         Reported by Alain Guibert <alguibert+bts@free.fr>.
28437 2008-04-15  Bruno Haible  <bruno@clisp.org>
28439         * modules/mathl (configure.ac): Define module indicator.
28441 2008-04-15  Bruno Haible  <bruno@clisp.org>
28443         * lib/logl.c (logl): Remove unused variables.
28445 2008-04-15  Bruno Haible  <bruno@clisp.org>
28447         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
28448         fails.
28450 2008-04-15  Bruno Haible  <bruno@clisp.org>
28452         * lib/trim.c (trim2): Fix argument of isspace() macro.
28454 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
28456         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
28457         to 0.
28458         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
28460 2008-04-14  Bruno Haible  <bruno@clisp.org>
28462         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
28463         AC_LANG_PROGRAM argument.
28464         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
28465         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
28466         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28467         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28468         * m4/math_h.m4 (gl_MATH_H): Likewise.
28469         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28471         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
28472         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
28473         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28474         * m4/regex.m4 (gl_REGEX): Likewise.
28475         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
28476         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
28477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28478         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
28479         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28480         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28481         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28484 2008-04-14  Jim Meyering  <meyering@redhat.com>
28486         test-strtod: fix typos: s/abs/fabs/
28487         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
28489 2008-04-13  Bruno Haible  <bruno@clisp.org>
28491         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
28492         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
28493         module is also used and while not building the reloc-wrapper.
28495 2008-04-13  Bruno Haible  <bruno@clisp.org>
28497         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
28499 2008-04-13  Bruno Haible  <bruno@clisp.org>
28501         Fix AIX compilation failure introduced on 2008-04-02.
28502         * tests/test-frexp.c (exp): Undefine before redefining.
28503         * tests/test-frexpl.c (exp): Likewise.
28505 2008-04-13  Bruno Haible  <bruno@clisp.org>
28507         Work around a HP-UX stdio bug.
28508         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
28509         * tests/test-ftello.c (main): Likewise.
28510         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
28511         * doc/posix-functions/ftello.texi: Likewise.
28513 2008-04-13  Bruno Haible  <bruno@clisp.org>
28515         Make test-signbit pass on HP-UX/hppa.
28516         * tests/test-signbit.c (minus_zerol): New variable.
28517         (test_signbitl): Use it.
28519 2008-04-13  Bruno Haible  <bruno@clisp.org>
28521         Make truncl work on OSF/1 4.0.
28522         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
28523         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28524         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
28526         HAVE_DECL_TRUNCL.
28527         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
28528         HAVE_DECL_TRUNCL.
28529         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
28531 2008-04-13  Bruno Haible  <bruno@clisp.org>
28533         * lib/unictype.h: Remove trailing comma from enumeration definitions.
28535 2008-04-13  Bruno Haible  <bruno@clisp.org>
28537         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
28538         expression, so as to avoid HP-UX 11 cc compiler bug.
28540 2008-04-13  Bruno Haible  <bruno@clisp.org>
28542         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
28544 2008-04-13  Bruno Haible  <bruno@clisp.org>
28546         * lib/git-merge-changelog.c: Remove empty declaration outside of
28547         functions.
28549 2008-04-13  Bruno Haible  <bruno@clisp.org>
28551         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
28553 2008-04-13  Bruno Haible  <bruno@clisp.org>
28555         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
28556         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
28557         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
28558         also if it exists but lacks definitions of the SHUT_* macros.
28559         * modules/sys_socket (Description): Update.
28560         Reported by Elbert Pol <e.pol@chello.nl>.
28562 2008-04-13  Bruno Haible  <bruno@clisp.org>
28564         * lib/localcharset.c (OS2): Don't redefine if already defined.
28565         Reported by Elbert Pol <e.pol@chello.nl>.
28567 2008-04-13  Bruno Haible  <bruno@clisp.org>
28569         * lib/binary-io.h [__EMX__]: Include <io.h>.
28570         Reported by Elbert Pol <e.pol@chello.nl>.
28572 2008-04-12  Bruno Haible  <bruno@clisp.org>
28574         * lib/fpucw.h: Enable the definitions also for x86_64.
28575         Needed for NetBSD/x86_64.
28576         Reported by Thomas Klausner <tk@giga.or.at>.
28578 2008-04-12  Bruno Haible  <bruno@clisp.org>
28580         * tests/test-strtod.c: Include isnand.h.
28581         (main): Use isnand instead of isnan.
28582         Reported by Jim Meyering.
28584 2008-04-12  Bruno Haible  <bruno@clisp.org>
28586         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
28587         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28589 2008-04-12  Jim Meyering  <meyering@redhat.com>
28591         * m4/math_h.m4 (gl_MATH_H): Fix typos.
28593 2008-04-12  Bruno Haible  <bruno@clisp.org>
28595         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
28596         Reported by Elbert Pol <e.pol@chello.nl>.
28598 2008-04-12  Eric Blake  <ebb9@byu.net>
28600         Work around Solaris 10 math.h bug.
28601         * m4/math_h.m4 (gl_MATH_H): Check for bug.
28602         (gl_MATH_H_DEFAULTS): Set up default.
28603         * modules/math (Makefile.am): Replace new indicators.
28604         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
28605         * tests/test-math.c (main): Test this.
28606         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
28607         * doc/posix-headers/math.texi (math.h): Mention bug.
28608         Reported by Nelson H. F. Beebe and Jim Meyering.
28610 2008-04-11  Bruno Haible  <bruno@clisp.org>
28612         Adapt to future versions of Apple GCC.
28613         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
28614         Reported by Peter O'Gorman <peter@pogma.com>.
28616 2008-04-11  Bruno Haible  <bruno@clisp.org>
28618         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
28620 2008-04-11  Bruno Haible  <bruno@clisp.org>
28622         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
28624         * modules/getaddrinfo-tests (Makefile.am): Define
28625         test_getaddrinfo_LDADD.
28627 2008-04-11  Bruno Haible  <bruno@clisp.org>
28629         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
28630         (init): Fix syntax error.
28631         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
28632         is declared.
28634 2008-04-11  Bruno Haible  <bruno@clisp.org>
28636         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
28637         * modules/glob (Depends-on): Add stdbool.
28639 2008-04-11  Bruno Haible  <bruno@clisp.org>
28641         * lib/trim.c: Include <string.h>.
28643 2008-04-11  Eric Blake  <ebb9@byu.net>
28645         Avoid compile failure on OS/2.
28646         * lib/regex_internal.h (internal_function): Disable optimization
28647         on OS/2 (__EMX__), where it caused compiler error.
28648         Reported by Elbert Pol.
28650 2008-04-11  Bruno Haible  <bruno@clisp.org>
28652         Flush the standard error stream before aborting. Needed on mingw.
28653         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
28654         * tests/test-array_list.c (ASSERT): Likewise.
28655         * tests/test-array_oset.c (ASSERT): Likewise.
28656         * tests/test-avltree_list.c (ASSERT): Likewise.
28657         * tests/test-avltree_oset.c (ASSERT): Likewise.
28658         * tests/test-avltreehash_list.c (ASSERT): Likewise.
28659         * tests/test-binary-io.c (ASSERT): Likewise.
28660         * tests/test-byteswap.c (ASSERT): Likewise.
28661         * tests/test-c-ctype.c (ASSERT): Likewise.
28662         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
28663         * tests/test-c-strcasestr.c (ASSERT): Likewise.
28664         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
28665         * tests/test-c-strstr.c (ASSERT): Likewise.
28666         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
28667         * tests/test-canonicalize.c (ASSERT): Likewise.
28668         * tests/test-carray_list.c (ASSERT): Likewise.
28669         * tests/test-ceilf1.c (ASSERT): Likewise.
28670         * tests/test-ceilf2.c (ASSERT): Likewise.
28671         * tests/test-ceill.c (ASSERT): Likewise.
28672         * tests/test-count-one-bits.c (ASSERT): Likewise.
28673         * tests/test-fbufmode.c (ASSERT): Likewise.
28674         * tests/test-fflush2.c (ASSERT): Likewise.
28675         * tests/test-floorf1.c (ASSERT): Likewise.
28676         * tests/test-floorf2.c (ASSERT): Likewise.
28677         * tests/test-floorl.c (ASSERT): Likewise.
28678         * tests/test-fopen.c (ASSERT): Likewise.
28679         * tests/test-fpending.c (ASSERT): Likewise.
28680         * tests/test-fprintf-posix.c (ASSERT): Likewise.
28681         * tests/test-fpurge.c (ASSERT): Likewise.
28682         * tests/test-freadable.c (ASSERT): Likewise.
28683         * tests/test-freadahead.c (ASSERT): Likewise.
28684         * tests/test-freading.c (ASSERT): Likewise.
28685         * tests/test-freadptr.c (ASSERT): Likewise.
28686         * tests/test-freadptr2.c (ASSERT): Likewise.
28687         * tests/test-freadseek.c (ASSERT): Likewise.
28688         * tests/test-freopen.c (ASSERT): Likewise.
28689         * tests/test-frexp.c (ASSERT): Likewise.
28690         * tests/test-frexpl.c (ASSERT): Likewise.
28691         * tests/test-fseek.c (ASSERT): Likewise.
28692         * tests/test-fseeko.c (ASSERT): Likewise.
28693         * tests/test-fstrcmp.c (ASSERT): Likewise.
28694         * tests/test-ftell.c (ASSERT): Likewise.
28695         * tests/test-ftello.c (ASSERT): Likewise.
28696         * tests/test-func.c (ASSERT): Likewise.
28697         * tests/test-fwritable.c (ASSERT): Likewise.
28698         * tests/test-fwriting.c (ASSERT): Likewise.
28699         * tests/test-getdelim.c (ASSERT): Likewise.
28700         * tests/test-getline.c (ASSERT): Likewise.
28701         * tests/test-i-ring.c (ASSERT): Likewise.
28702         * tests/test-iconv-utf.c (ASSERT): Likewise.
28703         * tests/test-iconv.c (ASSERT): Likewise.
28704         * tests/test-isfinite.c (ASSERT): Likewise.
28705         * tests/test-isnand.c (ASSERT): Likewise.
28706         * tests/test-isnanf.c (ASSERT): Likewise.
28707         * tests/test-isnanl.h (ASSERT): Likewise.
28708         * tests/test-ldexpl.c (ASSERT): Likewise.
28709         * tests/test-linked_list.c (ASSERT): Likewise.
28710         * tests/test-linkedhash_list.c (ASSERT): Likewise.
28711         * tests/test-localename.c (ASSERT): Likewise.
28712         * tests/test-lseek.c (ASSERT): Likewise.
28713         * tests/test-mbscasecmp.c (ASSERT): Likewise.
28714         * tests/test-mbscasestr1.c (ASSERT): Likewise.
28715         * tests/test-mbscasestr2.c (ASSERT): Likewise.
28716         * tests/test-mbscasestr3.c (ASSERT): Likewise.
28717         * tests/test-mbscasestr4.c (ASSERT): Likewise.
28718         * tests/test-mbschr.c (ASSERT): Likewise.
28719         * tests/test-mbscspn.c (ASSERT): Likewise.
28720         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
28721         * tests/test-mbspbrk.c (ASSERT): Likewise.
28722         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
28723         * tests/test-mbsrchr.c (ASSERT): Likewise.
28724         * tests/test-mbsspn.c (ASSERT): Likewise.
28725         * tests/test-mbsstr1.c (ASSERT): Likewise.
28726         * tests/test-mbsstr2.c (ASSERT): Likewise.
28727         * tests/test-mbsstr3.c (ASSERT): Likewise.
28728         * tests/test-memchr2.c (ASSERT): Likewise.
28729         * tests/test-memmem.c (ASSERT): Likewise.
28730         * tests/test-open.c (ASSERT): Likewise.
28731         * tests/test-printf-frexp.c (ASSERT): Likewise.
28732         * tests/test-printf-frexpl.c (ASSERT): Likewise.
28733         * tests/test-printf-posix.c (ASSERT): Likewise.
28734         * tests/test-quotearg.c (ASSERT): Likewise.
28735         * tests/test-rbtree_list.c (ASSERT): Likewise.
28736         * tests/test-rbtree_oset.c (ASSERT): Likewise.
28737         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
28738         * tests/test-round1.c (ASSERT): Likewise.
28739         * tests/test-roundf1.c (ASSERT): Likewise.
28740         * tests/test-roundl.c (ASSERT): Likewise.
28741         * tests/test-signbit.c (ASSERT): Likewise.
28742         * tests/test-sleep.c (ASSERT): Likewise.
28743         * tests/test-snprintf-posix.c (ASSERT): Likewise.
28744         * tests/test-snprintf.c (ASSERT): Likewise.
28745         * tests/test-sprintf-posix.c (ASSERT): Likewise.
28746         * tests/test-stat-time.c (ASSERT): Likewise.
28747         * tests/test-strcasestr.c (ASSERT): Likewise.
28748         * tests/test-strerror.c (ASSERT): Likewise.
28749         * tests/test-striconv.c (ASSERT): Likewise.
28750         * tests/test-striconveh.c (ASSERT): Likewise.
28751         * tests/test-striconveha.c (ASSERT): Likewise.
28752         * tests/test-strsignal.c (ASSERT): Likewise.
28753         * tests/test-strstr.c (ASSERT): Likewise.
28754         * tests/test-strtod.c (ASSERT): Likewise.
28755         * tests/test-trunc1.c (ASSERT): Likewise.
28756         * tests/test-trunc2.c (ASSERT): Likewise.
28757         * tests/test-truncf1.c (ASSERT): Likewise.
28758         * tests/test-truncf2.c (ASSERT): Likewise.
28759         * tests/test-truncl.c (ASSERT): Likewise.
28760         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
28761         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
28762         * tests/test-vasnprintf.c (ASSERT): Likewise.
28763         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
28764         * tests/test-vasprintf.c (ASSERT): Likewise.
28765         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
28766         * tests/test-vprintf-posix.c (ASSERT): Likewise.
28767         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
28768         * tests/test-vsnprintf.c (ASSERT): Likewise.
28769         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
28770         * tests/test-wcwidth.c (ASSERT): Likewise.
28771         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
28772         * tests/test-xprintf-posix.c (ASSERT): Likewise.
28773         * tests/test-xvasprintf.c (ASSERT): Likewise.
28774         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
28775         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
28776         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
28777         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
28778         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
28779         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
28780         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
28781         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
28782         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
28783         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
28784         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
28785         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
28786         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
28787         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
28788         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
28789         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
28790         * tests/unictype/test-block_list.c (ASSERT): Likewise.
28791         * tests/unictype/test-block_of.c (ASSERT): Likewise.
28792         * tests/unictype/test-block_test.c (ASSERT): Likewise.
28793         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
28794         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
28795         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
28796         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
28797         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
28798         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
28799         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
28800         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
28801         * tests/unictype/test-combining.c (ASSERT): Likewise.
28802         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
28803         * tests/unictype/test-digit.c (ASSERT): Likewise.
28804         * tests/unictype/test-mirror.c (ASSERT): Likewise.
28805         * tests/unictype/test-numeric.c (ASSERT): Likewise.
28806         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
28807         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
28808         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
28809         * tests/unictype/test-scripts.c (ASSERT): Likewise.
28810         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
28811         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
28812         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
28813         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
28814         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
28815         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
28816         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
28817         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
28818         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
28819         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
28820         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
28821         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
28822         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
28823         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
28824         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
28825         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
28826         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
28827         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
28828         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
28829         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
28830         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
28831         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
28832         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
28833         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
28834         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
28835         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
28836         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
28837         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
28838         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
28839         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
28840         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
28841         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
28842         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
28843         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
28844         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
28845         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
28846         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
28847         Reported by Eric Blake.
28849 2008-04-11  Bruno Haible  <bruno@clisp.org>
28851         * lib/wchar.in.h: Tweak comment.
28853 2008-04-11  Bruno Haible  <bruno@clisp.org>
28855         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
28856         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
28857         gl_COMMON.
28858         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
28860 2008-04-11  Bruno Haible  <bruno@clisp.org>
28862         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
28864 2008-04-11  Simon Josefsson  <simon@josefsson.org>
28866         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
28867         of attempting to use non-existing /dev/*random.  Based on patch
28868         from Adam Strzelecki <ono@java.pl> in
28869         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
28871 2008-04-08  Bruno Haible  <bruno@clisp.org>
28873         Add tentative support for emx+gcc.
28874         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
28875         * lib/fpurge.c (fpurge): Likewise.
28876         * lib/freadable.c (freadable): Likewise.
28877         * lib/freadahead.c (freadahead): Likewise.
28878         * lib/freading.c (freading): Likewise.
28879         * lib/freadptr.c (freadptr): Likewise.
28880         * lib/freadseek.c (freadptrinc): Likewise.
28881         * lib/fseeko.c (rpl_fseeko): Likewise.
28882         * lib/fseterr.c (fseterr): Likewise.
28883         * lib/fwritable.c (fwritable): Likewise.
28884         * lib/fwriting.c (fwriting): Likewise.
28885         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
28887 2008-04-09  Eric Blake  <ebb9@byu.net>
28889         Avoid some autoconf warnings.
28890         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
28891         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
28892         * m4/afs.m4 (gl_AFS): Likewise.
28893         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
28894         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
28895         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28896         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
28897         (gl_INTEGER_TYPE_SUFFIX): Likewise.
28898         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
28899         (AC_CHECK_DECLS_ONCE): Likewise.
28900         Rename file...
28901         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
28902         gnulib-tool requires autoconf 2.59 or better.
28903         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
28905 2008-04-08  Eric Blake  <ebb9@byu.net>
28907         Use 'git describe --match' if present (added in git 1.5.5).
28908         * build-aux/git-version-gen: Limit result to tags that match 'v*'
28909         if possible.
28911 2008-04-08  Bruno Haible  <bruno@clisp.org>
28913         Add tentative support for OpenServer.
28914         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
28915         _ptr, _cnt.
28916         * lib/fpurge.c (fpurge): Likewise.
28917         * lib/freadable.c (freadable): Likewise.
28918         * lib/freadahead.c (freadahead): Likewise.
28919         * lib/freading.c (freading): Likewise.
28920         * lib/freadptr.c (freadptr): Likewise.
28921         * lib/freadseek.c (freadptrinc): Likewise.
28922         * lib/fseeko.c (rpl_fseeko): Likewise.
28923         * lib/fseterr.c (fseterr): Likewise.
28924         * lib/fwritable.c (fwritable): Likewise.
28925         * lib/fwriting.c (fwriting): Likewise.
28926         Reported by Roger Cornelius <rac@tenzing.org> and
28927         Brian K. White <brian@aljex.com>.
28929 2008-04-06  Jim Meyering  <meyering@redhat.com>
28931         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
28933 2008-04-06  Bruno Haible  <bruno@clisp.org>
28935         Avoid possible error with non-ASCII bytes in UTF-8 locales.
28936         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
28937         * tests/test-printf-posix.sh: Likewise.
28938         * tests/test-vfprintf-posix.sh: Likewise.
28939         * tests/test-vprintf-posix.sh: Likewise.
28940         * tests/test-xprintf-posix.sh: Likewise.
28942 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28944         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
28945         hide error from 'ls', needed on OS/2.
28946         Report by Elbert Pol <elbert.pol@gmail.com>.
28948 2008-04-04  Eric Blake  <ebb9@byu.net>
28950         Make test-fseeko.c failures meaningful.
28951         * tests/test-fseeko.c: Print line number on failure.
28952         * tests/test-fseek.c: Likewise.
28953         Reported by Nelson H. F. Beebe.
28955         Improve strtod bug detection check.
28956         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
28957         required for Solaris 10.
28958         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
28960 2008-04-04  Bruno Haible  <bruno@clisp.org>
28962         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
28963         by m4/setenv.m4.
28965 2008-04-03  Eric Blake  <ebb9@byu.net>
28967         Ensure sane .version contents.
28968         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
28969         version string.
28970         * build-aux/git-version-gen: Improve documentation.
28972         Make GNU make output nicer.
28973         * top/GNUmakefile [!_have-Makefile]: Add dependency on
28974         MAKECMDGOALS to enforce message for all command line targets.  Set
28975         srcdir for use in maint.mk.
28977         Another maintainer tweak.
28978         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
28979         a target that regenerates version.
28981 2008-04-03  Jim Meyering  <meyering@redhat.com>
28983         vc-list-files: don't cause coreutils "make po-check" failure
28984         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
28986 2008-04-03  Eric Blake  <ebb9@byu.net>
28988         Allow VPATH usage of vc-list-files.
28989         * build-aux/vc-list-files (scriptversion): Add timestamp.
28990         (options): Add --help, --version, -C.
28991         (CVS): Support installed cvsu.
28993 2008-04-02  Bruno Haible  <bruno@clisp.org>
28995         Avoid some "statement with no effect" warnings from gcc.
28996         * tests/test-wctype.c (main): Explicitly ignore unused values.
28997         Reported by Jim Meyering.
28999 2008-04-02  Jim Meyering  <meyering@redhat.com>
29001         Avoid some warnings from "gcc -Wshadow".
29002         * tests/test-frexp.c (exp): Define to a different identifier.
29003         * tests/test-frexpl.c (exp): Likewise.
29005 2008-04-03  Jim Meyering  <meyering@redhat.com>
29007         bootstrap: remove dangling *.[ch] symlinks from lib
29008         * build-aux/bootstrap [dangling symlink removal]: Move find's
29009         -depth option to precede all others, to avoid a warning.
29010         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29012 2008-04-02  Bruno Haible  <bruno@clisp.org>
29014         Avoid some warnings from "gcc -Wshadow".
29015         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29016         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29017         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29018         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29019         Reported by Jim Meyering.
29021 2008-04-01  Bruno Haible  <bruno@clisp.org>
29023         Fix test to work on IRIX 6.5 with cc.
29024         * tests/test-math.c (numeric_equal): New function.
29025         (main): Use it.
29027 2008-04-01  Bruno Haible  <bruno@clisp.org>
29029         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29031 2008-04-01  Bruno Haible  <bruno@clisp.org>
29033         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29034         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29035         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29036         (Depends-on): Remove math.
29038         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29039         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29040         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29041         (Depends-on): Remove math.
29043         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29044         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29045         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29046         (Depends-on): Remove math.
29047         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29048         (Depends-on): Remove math.
29050         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29051         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29052         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29053         (Depends-on): Remove math.
29054         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29055         (Depends-on): Remove math.
29057         * tests/test-round1.c: Include nan.h.
29058         (main): Use NaNd instead of NAN.
29059         * modules/round-tests (Files): Add tests/nan.h.
29061         * tests/test-trunc1.c: Include nan.h.
29062         (main): Use NaNd instead of NAN.
29063         * modules/trunc-tests (Files): Add tests/nan.h.
29065         * tests/test-roundf1.c: Include nan.h.
29066         (main): Use NaNf instead of NAN.
29067         * modules/roundf-tests (Files): Add tests/nan.h.
29069         * tests/test-truncf1.c: Include nan.h.
29070         (main): Use NaNf instead of NAN.
29071         * modules/truncf-tests (Files): Add tests/nan.h.
29073         * tests/test-ceilf1.c: Include nan.h.
29074         (main): Use NaNf instead of NAN.
29075         * modules/ceilf-tests (Files): Add tests/nan.h.
29077         * tests/test-floorf1.c: Include nan.h.
29078         (main): Use NaNf instead of NAN.
29079         * modules/floorf-tests (Files): Add tests/nan.h.
29081         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29082         (main): Use NaNf instead of NAN.
29083         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29085         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29086         (main): Use NaNd instead of NAN.
29087         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29089         * tests/test-frexp.c: Include nan.h.
29090         (main): Use NaNd instead of NAN.
29091         * modules/frexp-tests (Files): Add tests/nan.h.
29093         * lib/isnan.c: Don't include <math.h>.
29094         (FUNC): Don't use NAN macro.
29095         * modules/isnand-nolibm (Depends-on): Remove math.
29096         * modules/isnanf-nolibm (Depends-on): Remove math.
29097         * modules/isnanl (Depends-on): Remove math.
29098         * modules/isnanl-nolibm (Depends-on): Remove math.
29100         * tests/nan.h: New file.
29102 2008-04-01  Eric Blake  <ebb9@byu.net>
29104         Fix typos.
29105         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29106         values to be the right type.
29108         For now, cater to gnulib strtod inaccuracies.
29109         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29110         fractional results.  While not as nice from a QoI perspective, it
29111         is a quicker patch than correctly implementing decimal to binary
29112         rounding.
29114 2008-03-31  Eric Blake  <ebb9@byu.net>
29116         Guarantee a definition of NAN.
29117         * lib/math.in.h (NAN): Define if missing.
29118         * tests/test-math.c (main): Test it.
29119         * doc/posix-headers/math.texi (math.h): Document this.
29120         * lib/isnan.c (rpl_isnand): Use it.
29121         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29122         * tests/test-floorf1.c (NaN): Likewise.
29123         * tests/test-frexp.c (NaN): Likewise.
29124         * tests/test-isnand.c (NaN): Likewise.
29125         * tests/test-isnanf.c (NaN): Likewise.
29126         * tests/test-round1.c (NaN): Likewise.
29127         * tests/test-roundf1.c (NaN): Likewise.
29128         * tests/test-snprintf-posix.h (NaN): Likewise.
29129         * tests/test-sprintf-posix.h (NaN): Likewise.
29130         * tests/test-trunc1.c (NaN): Likewise.
29131         * tests/test-truncf1.c (NaN): Likewise.
29132         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29133         * tests/test-vasprintf-posix.c (NaN): Likewise.
29134         * modules/isnand-nolibm (Depends-on): Add math.
29135         * modules/isnanf-nolibm (Depends-on): Likewise.
29136         * modules/isnanl (Depends-on): Likewise.
29137         * modules/isnanl-nolibm (Depends-on): Likewise.
29138         * modules/snprintf-posix-tests (Depends-on): Likewise.
29139         * modules/sprintf-posix-tests (Depends-on): Likewise.
29140         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29141         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29142         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29143         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29145 2008-03-31  Bruno Haible  <bruno@clisp.org>
29147         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29148         * doc/posix-functions/strtod.texi: Likewise.
29150 2008-03-31  Bruno Haible  <bruno@clisp.org>
29152         * tests/test-strtod.c (main): Don't use C99 syntax.
29154 2008-03-31  Bruno Haible  <bruno@clisp.org>
29156         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29157         Reported by Eric Blake.
29159 2008-03-31  Jim Meyering  <meyering@redhat.com>
29161         Don't compare actual signbit return values.
29162         * tests/test-strtod.c (main): Rather, compare only their
29163         zero/non-zero nature.
29165 2008-03-31  Eric Blake  <ebb9@byu.net>
29167         More strtod documentation.
29168         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29169         failures as distinct bugs.
29171 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29173         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29174         Problem reported by Erik Benada in
29175         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29177 2008-03-30  Bruno Haible  <bruno@clisp.org>
29179         * tests/test-strtod.c: Add comments about which assertion fails on which
29180         platform.
29181         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29183 2008-03-30  Eric Blake  <ebb9@byu.net>
29185         Test signbit behavior on zeros.
29186         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29187         (test_signbitd, test_signbitl): Likewise.
29189         More strtod touchups.
29190         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29191         sign of negative underflow, for now.  Use .5, not .1.
29192         * doc/posix-functions/strtod.texi (strtod): Mention these
29193         limitations.
29194         Reported by Jim Meyering.
29196 2008-03-30  Bruno Haible  <bruno@clisp.org>
29198         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29199         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29201 2008-03-30  Bruno Haible  <bruno@clisp.org>
29203         Avoid failure when attempting to return empty iconv results on some
29204         platforms.
29205         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29206         allocation, don't report ENOMEM when the resulting string is empty.
29208 2008-03-30  Bruno Haible  <bruno@clisp.org>
29210         Fix buffer overrun.
29211         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29212         Don't consider the width for tmp_length. Check count against tmp_length
29213         before doing the padding. Ensure enough allocation during padding.
29215 2008-03-30  Eric Blake  <ebb9@byu.net>
29217         strtod touchups.
29218         * lib/strtod.c (strtod): Avoid compiler warnings.
29219         Reported by Jim Meyering.
29221 2008-03-30  Bruno Haible  <bruno@clisp.org>
29223         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29224         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29225         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29226         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29227         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29228         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29229         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29230         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29232         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29233         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29234         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29235         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29236         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29237         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29238         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29239         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29241         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29242         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29243         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29244         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29245         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29246         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29247         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29248         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29250         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29251         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29253         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29254         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29256         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29257         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29259         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29261         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29263         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29265         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29267         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29268         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29269         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29271         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29272         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29273         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29275         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29276         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29278         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29279         (Depends-on): Add EOVERFLOW.
29280         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29281         (Depends-on): Add EOVERFLOW.
29282         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29283         (Depends-on): Add EOVERFLOW.
29284         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29285         (Depends-on): Add EOVERFLOW.
29286         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29287         (Depends-on): Add EOVERFLOW.
29288         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29289         (Depends-on): Add EOVERFLOW.
29290         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29291         (Depends-on): Add EOVERFLOW.
29292         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29293         (Depends-on): Add EOVERFLOW.
29295         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29297         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29299         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29301         * modules/snprintf (Depends-on): Add EOVERFLOW.
29303         * lib/poll.c (EOVERFLOW): Remove fallback.
29304         * modules/poll (Depends-on): Add EOVERFLOW.
29306         * lib/getugroups.c (EOVERFLOW): Remove fallback.
29307         * modules/getugroups (Depends-on): Add EOVERFLOW.
29309         * lib/getdelim.c (EOVERFLOW): Remove fallback.
29310         * modules/getdelim (Depends-on): Add EOVERFLOW.
29312         * lib/ftell.c (EOVERFLOW): Remove fallback.
29313         * modules/ftell (Depends-on): Add EOVERFLOW.
29315         * lib/fprintf.c (EOVERFLOW): Remove fallback.
29316         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
29317         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
29319         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
29321         * modules/EOVERFLOW-tests: New file.
29322         * tests/test-EOVERFLOW.c: New file.
29324         * modules/EOVERFLOW: New file.
29325         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
29327 2008-03-30  Bruno Haible  <bruno@clisp.org>
29329         Fix bug introduced on 2007-06-10.
29330         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
29331         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
29333 2008-03-30  Bruno Haible  <bruno@clisp.org>
29335         Improve freadseek's efficiency after ungetc.
29336         * lib/freadseek.c: Include freadahead.h.
29337         (freadptrinc): New function, extracted from freadseek.
29338         (freadseek): Use it in a loop. Use freadahead to determine the number
29339         of loop iterations.
29340         * modules/freadseek (Depends-on): Add freadahead.
29341         (configure.ac): Require AC_C_INLINE.
29343 2008-03-30  Bruno Haible  <bruno@clisp.org>
29345         * lib/freadseek.c (freadseek): Don't ignore the return value of
29346         freadptr.
29348 2008-03-29  Eric Blake  <ebb9@byu.net>
29350         Add hex float support.
29351         * modules/strtod (Depends-on): Add c-ctype.
29352         (Link): Mention POW_LIB.
29353         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
29354         whitespace between 'e' and exponent.
29355         * tests/test-strtod.c (main): Enable hex float tests.
29356         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
29357         now provides.
29359         Document various strtod bugs, with some fixes.
29360         * doc/posix-functions/strtod.texi (strtod): Document bugs with
29361         "-0x", "inf", "nan", and hex constants.
29362         * doc/posix-functions/atof.texi (atof): Likewise.
29363         * modules/stdlib (Makefile.am): Support strtod.
29364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29365         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
29366         detect additional strtod bugs.
29367         * lib/stdlib.in.h (rpl_strtod): Add declarations.
29368         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
29369         bool where appropriate.  Parse 'inf' and 'nan'.
29370         * tests/test-strtod.c: New file.
29371         * modules/strtod (Depends-on): Add stdbool, stdlib.
29372         (configure.ac): Turn on module indicator.
29373         * modules/strtod-tests: New module.
29375 2008-03-29  Eric Blake  <ebb9@byu.net>
29377         Fix ftell on mingw.
29378         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
29379         * modules/ftell-tests (Depends-on): Add binary-io.
29380         * modules/ftello-tests (Depends-on): Likewise.
29381         * tests/test-ftell.c (main): Enhance test to cover behavior after
29382         ungetc.  Enforce binary mode.
29383         * tests/test-ftello.c (main): Likewise.
29385         Pass test-freadseek on cygwin.
29386         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
29387         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
29388         ungetc buffer.
29390         * tests/test-fflush2.c (main): Fix typo.
29392 2008-03-29  Bruno Haible  <bruno@clisp.org>
29394         * tests/test-fflush2.c (main): Temporarily disable the contents of
29395         this test.
29396         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
29397         Reported by Eric Blake.
29399 2008-03-28  Simon Josefsson  <simon@josefsson.org>
29401         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
29402         (GC_SHA224_DIGEST_SIZE): Add.
29404         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
29405         (gc_hash_digest_length): Likewise.
29406         (gc_hash_buffer): Likewise.
29408 2008-03-25  Bruno Haible  <bruno@clisp.org>
29410         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
29411         detail which gettext release to use.
29412         Reported by Simon Josefsson.
29414 2008-03-26  Jim Meyering  <meyering@redhat.com>
29416         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
29417         * modules/gnumakefile (clean-GNUmakefile): Also, use
29418         test ... && ... || : syntax rather than if-then ... fi.
29420         gnumakefile: Don't double-quote-expand $(VPATH) value.
29421         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
29423 2008-03-24  Eric Blake  <ebb9@byu.net>
29425         Alter GNUmakefile to install into top directory.
29426         * modules/maintainer-makefile: Split, and add dependency...
29427         * modules/gnumakefile: to this new module.
29428         * build-aux/GNUmakefile: Move...
29429         * top/GNUmakefile: ...here.
29430         * build-aux/maint.mk: Move...
29431         * top/maint.mk: ...here.
29432         * MODULES.html.sh (Support for maintaining...): Document new
29433         module.
29435 2008-03-23  Bruno Haible  <bruno@clisp.org>
29437         * gnulib-tool: New options --vc-files, --no-vc-files.
29438         (func_usage): Document them.
29439         (vc_files): New variable.
29440         (func_import): Consider vc_files.
29441         (func_create_testdir): Set vc_files to empty.
29442         Suggested by Jim Meyering and Karl Berry.
29444 2008-03-23  Bruno Haible  <bruno@clisp.org>
29446         Fix regex compilation error on HP-UX 11.
29447         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
29448         * modules/regex (Files): Add m4/mbstate_t.m4.
29449         Reported by Ton Voon <ton.voon@altinity.com>.
29451 2008-03-23  Bruno Haible  <bruno@clisp.org>
29453         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
29455 2008-03-23  Eric Blake  <ebb9@byu.net>
29456             Bruno Haible  <bruno@clisp.org>
29458         Install files from top/ in the destination directory.
29459         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29460         augmentation also for the files from top/.
29461         (func_import, func_create_testdir): Rewrite file names:
29462         top/filename -> filename.
29464 2008-03-23  Bruno Haible  <bruno@clisp.org>
29466         Tweak "gnulib --version" output.
29467         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
29469 2008-03-23  Bruno Haible  <bruno@clisp.org>
29471         Tweak "gnulib --version" output.
29472         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
29473         rather than contents of ChangeLog, when possible.
29475 2008-03-21  Eric Blake  <ebb9@byu.net>
29477         More --version tweaks.
29478         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
29479         date of last ChangeLog entry.
29481 2008-03-21  Jim Meyering  <meyering@redhat.com>
29483         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
29485 2008-03-20  Eric Blake  <ebb9@byu.net>
29487         VPATH fix.
29488         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
29490 2008-03-20  Simon Josefsson  <simon@josefsson.org>
29492         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
29493         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
29495 2008-03-20  Eric Blake  <ebb9@byu.net>
29497         Sync GNUmakefile with coreutils.
29498         * build-aux/GNUmakefile (have-Makefile): Rename...
29499         (_have-Makefile): ...to this, for namespace consideration.
29500         (GNUmakefile.cfg): Include, if present.
29501         (_autoreconf): Define a default.
29502         (_is-dist-target): New rule for rebuilds to pick up intra-release
29503         version.
29504         (maint-cfg.mk): Rename...
29505         (cfg.mk): ...to this.
29507 2008-03-18  Jim Meyering  <meyering@redhat.com>
29509         New script and module: mktempd
29510         * MODULES.html.sh (maint+release support): Add mktempd.
29511         * build-aux/mktempd: New file.
29512         * modules/mktempd: New file.
29514 2008-03-15  Jim Meyering  <meyering@redhat.com>
29516         Undo last change.
29517         * lib/sha1.c, lib/md5.c: 63 != ~63.
29518         Reported by Andreas Schwab.
29520         sha1.c, md5.c: Hoist a redundant expression.
29521         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
29522         "ctx->buflen" only once, before calling *_process_block.
29523         * lib/md5.c (md5_process_bytes): Likewise.
29525 2008-03-14  Eric Blake  <ebb9@byu.net>
29527         Bump copyright year in files generated by gnulib-tool.
29528         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
29529         gnulib-tool, rather than hard-coding it.
29531         Fix 'gnulib-tool --version' output to work with git.
29532         * gnulib-tool (func_gnulib_dir): New function, extracted from...
29533         (startup): ...here.
29534         (func_version): Use it to invoke git-version-gen, rather than
29535         relying on CVS keyword expansion.  Modernize wording.
29536         (cvsdatestamp, last_checkin_date, version): Kill unused
29537         variables.
29539 2008-03-12  Jim Meyering  <meyering@redhat.com>
29541         Recognize optional cast of the argument to free.
29542         * build-aux/useless-if-before-free: Update regexps.
29544         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
29546 2008-03-11  Bruno Haible  <bruno@clisp.org>
29548         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
29549         by a single package.
29550         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
29551         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
29552         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
29553         Reported by Sam Steingold <sds@gnu.org>.
29555 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29557         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
29558         repositories.
29560 2008-03-11  Bruno Haible  <bruno@clisp.org>
29562         Avoid conflicts between local macro definitions.
29563         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29564         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
29566 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
29567             Bruno Haible  <bruno@clisp.org>
29569         Make va_copy work with some version of xlc on AIX 5.1.
29570         * lib/stdarg.in.h: New file.
29571         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
29572         On AIX, use a <stdarg.h> file substitute.
29573         * modules/stdarg (Files): Add lib/stdarg.in.h.
29574         (Depends-on): Add include_next.
29575         (Makefile.am): Build a stdarg.h substitute if requested.
29576         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
29578 2008-03-10  Bruno Haible  <bruno@clisp.org>
29580         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
29581         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29582         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
29584 2008-03-10  Bruno Haible  <bruno@clisp.org>
29586         * modules/stdlib (Depends-on): Add include_next, remove
29587         absolute-header.
29589 2008-03-09  Bruno Haible  <bruno@clisp.org>
29591         * lib/freadahead.h (freadahead): Document more precisely.
29592         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
29593         the sum of both buffer sizes.
29594         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
29595         * NEWS: Document the change.
29597 2008-03-09  Bruno Haible  <bruno@clisp.org>
29599         Extend freadptr to return also the buffer size.
29600         * lib/freadptr.h (freadptr): Add sizep argument.
29601         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
29602         (freadptr): Add sizep argument. Determine buffer size like freadahead
29603         does.
29604         * tests/test-freadptr.c: Don't include freadahead.h.
29605         (main): Adapt for new calling convention of freadptr.
29606         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
29607         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
29608         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
29609         tests/test-freadptr2.sh.
29610         (Depends): Remove freadahead.
29611         (TESTS): Add test-freadptr2.sh.
29612         (check_PROGRAMS): Add test-freadptr2.
29614 2008-03-09  Bruno Haible  <bruno@clisp.org>
29616         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
29617         Report and solution by Simon Josefsson.
29619 2008-03-06  Bruno Haible  <bruno@clisp.org>
29621         Make fflush after ungetc work on BSD platforms.
29622         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
29623         * tests/test-fflush2.c: New file.
29624         * tests/test-fflush2.sh: New file.
29625         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
29626         tests/test-fflush2.c.
29627         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
29628         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
29630 2008-03-06  Eric Blake  <ebb9@byu.net>
29632         Likewise for ftello.
29633         * modules/ftello (Dependencies): Add extensions.
29634         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
29636 2008-03-06  Bruno Haible  <bruno@clisp.org>
29638         * modules/fseeko (Dependencies): Add extensions.
29639         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
29640         Needed on glibc systems.
29642 2008-03-06  Bruno Haible  <bruno@clisp.org>
29644         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
29645         email address.
29646         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29648 2008-03-06  Bruno Haible  <bruno@clisp.org>
29650         * users.txt: Add libgnupdf.
29652 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29654         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
29655         (Header File Substitutes, Function Substitutes,
29656         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
29657         (Build robot for gnulib): Fix typo.
29659 2008-03-06  Bruno Haible  <bruno@clisp.org>
29661         * doc/gnulib-tool.texi (VCS Issues): Small updates.
29662         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29664 2008-03-06  Bruno Haible  <bruno@clisp.org>
29666         * doc/func.texi: New file, extracted from doc/gnulib.texi.
29667         * doc/gnulib.texi: Include it.
29669 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29671         * modules/func (License): Change license to unlimited; there was
29672         no LGPL parts in the module anyway.
29674 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29676         * modules/__func__: Renamed to modules/func.
29677         * modules/__func__-tests: Renamed to modules/func-tests.
29678         * tests/test-__func__.c: Renamed to tests/test-func.c.
29679         * m4/__func__.m4: Renamed to m4/func.m4.
29680         * doc/gnulib.texi (__func__): Section renamed to func.
29681         Suggested by Eric Blake <ebb9@byu.net>.
29683 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29685         * doc/gnulib.texi (__func__): Use C99 terminology when talking
29686         about __func__.  Make example self-contained.  Suggested by Eric
29687         Blake <ebb9@byu.net>.
29689         * tests/test-__func__.c (main): Avoid extraneous () around __func.
29690         Suggested by Eric Blake <ebb9@byu.net>.
29692 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29694         * modules/__func__: New file.
29695         * modules/__func__-tests: New file.
29696         * tests/test-__func__.c: New file.
29697         * m4/__func__.m4: New file.
29698         * doc/gnulib.texi (__func__): Document __func__ module.
29700 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29702         * modules/byteswap (License): Re-license as LGPLv2+.
29704 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29706         * doc/Makefile: Add pdf target.
29708 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29710         * modules/inline (License): Use 'unlimited', since there are only
29711         *.m4 files in this module.
29713 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
29714             Bruno Haible  <bruno@clisp.org>
29716         Add support for HP C 7.1 on OpenVMS 8.3.
29717         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
29719 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
29721         Update VMS specifics.
29722         * lib/getopt.c [VMS]: Remove include of unixlib.h.
29724 2008-03-02  Jim Meyering  <meyering@redhat.com>
29726         Remove the last dependency on the "free" module.
29727         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
29728         Reported by Bob Proulx.
29730         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
29732         Remove useless "if" tests before free.  Deprecate "free" module.
29733         * doc/posix-functions/free.texi: Mention that this
29734         module is no longer useful.
29735         * modules/free (Notice): Say this module is obsolete.
29736         * modules/readutmp (Depends-on): Remove free.
29737         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
29738         * lib/putenv.c (putenv): Likewise.
29739         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
29740         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
29741         * tests/test-c-strcasestr.c (main): Likewise.
29742         * tests/test-c-strstr.c (main): Likewise.
29743         * tests/test-mbscasestr1.c (main): Likewise.
29744         * tests/test-mbscasestr2.c (main): Likewise.
29745         * tests/test-mbsstr1.c (main): Likewise.
29746         * tests/test-mbsstr2.c (main): Likewise.
29747         * tests/test-memmem.c (main): Likewise.
29748         * tests/test-strcasestr.c (main): Likewise.
29749         * tests/test-striconv.c (main): Likewise.
29750         * tests/test-striconveh.c (main): Likewise.
29751         * tests/test-striconveha.c (main): Likewise.
29752         * tests/test-strstr.c (main): Likewise.
29754         * build-aux/git-version-gen: Adjust a comment and the Usage string.
29756         bootstrap: sync from coreutils again
29757         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
29759 2008-03-01  Jim Meyering  <meyering@redhat.com>
29761         bootstrap: sync from coreutils
29762         * build-aux/bootstrap (update_po_files): Copy a .po file into place
29763         also when the target doesn't exist.
29765 2008-03-01  Eric Blake  <ebb9@byu.net>
29767         Fix bugs in last patch.
29768         * lib/memchr2.c (memchr2): Fix typo.
29769         * tests/test-memchr2.c: Test previous bug, and don't use GNU
29770         extension.
29771         Reported by Bruce Korb.
29773         New module 'memchr2'.
29774         * modules/memchr2: New file.
29775         * modules/memchr2-tests: Likewise.
29776         * lib/memchr2.h: Likewise.
29777         * lib/memchr2.c: Likewise, based on memchr.c.
29778         * tests/test-memchr2.c: New test.
29779         * MODULES.html.sh (String handling): Add memchr2.
29781 2008-02-29  Bruno Haible  <bruno@clisp.org>
29783         * modules/freadseek-tests: New file.
29784         * tests/test-freadseek.sh: New file.
29785         * tests/test-freadseek.c: New file.
29787         New module 'freadseek'.
29788         * modules/freadseek: New file.
29789         * lib/freadseek.h: New file.
29790         * lib/freadseek.c: New file.
29791         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
29793 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
29795         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
29796         wydawca.
29798         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
29799         program_invocation_name and program_invocation_short_name are
29800         present.
29802 2008-02-28  Bruno Haible  <bruno@clisp.org>
29804         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
29805         * tests/test-freadptr.sh: Also test non-seekable stdin.
29807 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
29809         * build-aux/bootstrap (source_base, m4_base)
29810         (doc_base, tests_base): New variables.
29811         (gnulib_tool_options): Do not hardcode base directories, use
29812         the above variables instead.
29814 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
29816         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
29818 2008-02-28  Bruno Haible  <bruno@clisp.org>
29820         * modules/freadptr-tests: New file.
29821         * tests/test-freadptr.sh: New file.
29822         * tests/test-freadptr.c: New file.
29824         New module 'freadptr'.
29825         * modules/freadptr: New file.
29826         * lib/freadptr.h: New file.
29827         * lib/freadptr.c: New file.
29828         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
29830 2008-02-26  Karl Berry  <karl@freefriends.org>
29832         Sync from Libtool:
29833         * libltdl/argz.c (argz_add, argz_count): New functions.
29834         * libltdl/argz.in.h: Declare them.
29835         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
29837 2008-02-22  Bruno Haible  <bruno@clisp.org>
29839         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
29840         is a pointer type.  Needed for HP-UX 10.
29841         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
29842         * doc/posix-functions/gmtime_r.texi: Likewise.
29843         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
29845 2008-02-24  Bruno Haible  <bruno@clisp.org>
29847         * modules/environ-tests: New file.
29848         * tests/test-environ.c: New file.
29850         New module 'environ'.
29851         * modules/environ: New file.
29852         * lib/unistd.in.h (environ): New declaration.
29853         * m4/environ.m4: New file.
29854         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
29855         after use.
29856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
29857         HAVE_DECL_ENVIRON.
29858         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
29859         HAVE_DECL_ENVIRON.
29860         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
29861         wrong claim that 'environ' is missing on some systems.
29862         * modules/execute (Depends-on): Add environ.
29863         * lib/execute.c (environ): Remove fallback declaration.
29864         * modules/pipe (Depends-on): Add environ.
29865         * lib/pipe.c (environ): Remove fallback declaration.
29866         * modules/setenv (Depends-on): Add environ.
29867         * lib/setenv.c (environ): Remove fallback declaration.
29868         * modules/unsetenv (Depends-on): Add environ.
29869         * lib/unsetenv.c (environ): Remove fallback declaration.
29870         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
29871         m4/environ.m4.
29872         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
29873         (gl_PREREQ_UNSETENV): Likewise.
29875 2008-02-24  Bruno Haible  <bruno@clisp.org>
29877         * doc/posix-functions/environ.texi: Document the MacOS X problem.
29879 2008-02-20  Bob Proulx  <bob@proulx.com>
29881         Enable use of older two part flavor 'git describe'.
29882         * build-aux/git-version-gen: If using the older two part flavor of
29883         git version then recreate the third part now present in the
29884         newer three part flavor of git describe.
29886 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
29888         * lib/fts.c (fts_build): Typo correction to comment.
29890 2008-02-17  Bruno Haible  <bruno@clisp.org>
29892         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
29893         generating no-op conflicts.
29895 2008-02-17  Bruno Haible  <bruno@clisp.org>
29897         Speed up by 10%.
29898         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
29899         result_entries, rather than an index-based loop.
29901 2008-02-17  Bruno Haible  <bruno@clisp.org>
29903         Speed up by 25%.
29904         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
29905         'hashcode_cached'.
29906         (entry_create): New function.
29907         (entry_hashcode): Use the cached hashcode if possible.
29908         (read_changelog_file, try_split_merged_entry): Use entry_create.
29910 2008-02-17  Bruno Haible  <bruno@clisp.org>
29912         Speed up from O(n^2) to O(n) for long ChangeLog files.
29913         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
29914         (read_changelog_file): Change implementation of entries_reversed list
29915         to rbtreehash.
29916         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
29918 2008-02-17  Bruno Haible  <bruno@clisp.org>
29920         New option --split-merged-entry.
29921         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
29922         (find_paragraph_end, try_split_merged_entry): New functions.
29923         (long_options): Add option --split-merged-entry.
29924         (usage): Document option --split-merged-entry.
29925         (main): Implement option --split-merged-entry.
29926         Reported by Eric Blake.
29928 2008-02-17  Bruno Haible  <bruno@clisp.org>
29930         * lib/git-merge-changelog.c: Include c-strstr.h.
29931         (main): Support the "git pull --rebase" situation.
29932         * modules/git-merge-changelog (Depends-on): Add c-strstr.
29933         Reported by Eric Blake.
29935 2008-02-16  Eric Blake  <ebb9@byu.net>
29937         Avoid doubling \ in common case of "c-maybe" quoting style.
29938         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
29939         eliding outer quotes.
29940         * lib/quotearg.h: Document this.
29941         * tests/test-quotearg.c (result_strings, inputs, results_g)
29942         (flag_results, locale_results): Test it by adding a new string to
29943         each test group.
29944         (compare_strings): Test new string.
29946 2008-02-13  Eric Blake  <ebb9@byu.net>
29948         Avoid trigraph quoting in default output.
29949         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
29950         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
29951         unless explicitly requested.
29952         * tests/test-quotearg.c (flag_results, main): Add additional tests.
29954 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
29956         Don't rely on signed integer overflowing to negative value.
29957         * lib/getugroups.c (getugroups): Include <limits.h>.
29958         Instead, compare against INT_MAX, and increment only if the test passes.
29960 2008-02-13  Jim Meyering  <meyering@redhat.com>
29961         and Eric Blake  <ebb9@byu.net>
29963         Avoid shadowing warning and compile errors on Linux.
29964         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
29965         forwarding macros on Linux.
29966         (dcgettext): Define a stub, for Linux.
29967         (results_g, main): Avoid warnings.
29969 2008-02-12  Eric Blake  <ebb9@byu.net>
29971         Silence warning in last patch.
29972         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
29974         Quotearg part 4: add tests, fix c-maybe colon quoting.
29975         * lib/quotearg.h: Improve documentation.
29976         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
29977         escapes when adding outer quotes.  When quoting trigraphs, use
29978         valid C notation.  When quoting NUL, omit extra characters if next
29979         character is not digit.  Alter prototype.
29980         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
29981         callers.
29982         * modules/quotearg-tests: New module.
29983         * tests/test-quotearg.c: New test.
29985 2008-02-07  Eric Blake  <ebb9@byu.net>
29987         Quotearg part 3: add flag to control outer quote elision.
29988         * lib/quotearg.h (c_maybe_quoting_style): New style.
29989         (enum quoting_flags): Better documentation of flags.
29990         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
29991         c-maybe style.
29992         (quotearg_buffer_restyled): Handle new flag to elide outer
29993         quotes.
29995         Quotearg part 2: add flag that can control NUL elision.
29996         * lib/quotearg.h (set_quoting_flags): New prototype.
29997         * lib/quotearg.c (struct quoting_options): Add flag field.
29998         (set_quoting_flags): New function.
29999         (quotearg_buffer_restyled): Add flags parameter.
30000         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30001         (quotearg_n_options): Set the flag, since length cannot be
30002         returned.
30003         (quoting_options_from_style): Default flags correctly.
30005         Quotearg part 1: more wrappers, restore quotearg_char state.
30006         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30007         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30008         (quotearg_colon_mem): New wrappers.
30009         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30010         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30011         functions.
30012         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30013         (quotearg_colon_mem): New functions.
30015 2008-02-11  Bruno Haible  <bruno@clisp.org>
30017         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30018         library in the current directory: it does not work with parallel make.
30019         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30021 2008-02-11  Bruno Haible  <bruno@clisp.org>
30023         * .gitattributes: New file.
30025 2008-02-11  Jim Meyering  <meyering@redhat.com>
30027         useless-if-before-free: Fix reversed exit values.
30028         * build-aux/useless-if-before-free: Use correct values
30029         for EXIT_MATCH and EXIT_NO_MATCH.
30031         * build-aux/useless-if-before-free: Close stdout carefully.
30033 2008-02-10  Bruno Haible  <bruno@clisp.org>
30035         New module 'git-merge-changelog'.
30036         * modules/git-merge-changelog: New file.
30037         * lib/git-merge-changelog.c: New file.
30039 2008-02-10  Jim Meyering  <meyering@redhat.com>
30041         useless-if-before-free: New option: --list (-l).
30043         useless-if-before-free: Don't exit immediately upon open failure.
30044         * build-aux/useless-if-before-free: Exit 2 for errors.
30045         Upon failure to open a file, don't exit immediately.
30046         Rather, just warn and continue with any remaining files.
30048 2008-02-10  Bruno Haible  <bruno@clisp.org>
30050         New abstract list operation 'node_set_value'.
30051         * lib/gl_list.h (gl_list_node_set_value): New function.
30052         (struct gl_list_implementation): New field node_set_value.
30053         * lib/gl_list.c (gl_list_node_set_value): New function.
30054         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30055         (gl_array_list_implementation): Update.
30056         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30057         (gl_carray_list_implementation): Update.
30058         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30059         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30060         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30061         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30062         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30063         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30064         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30065         Update.
30066         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30067         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30068         (gl_sublist_list_implementation): Update.
30070 2008-02-10  Bruno Haible  <bruno@clisp.org>
30072         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30073         Needed when ELEMENT is #defined to 'some_type *'.
30075 2008-02-10  Jim Meyering  <meyering@redhat.com>
30077         New script and module: useless-if-before-free
30078         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30079         * build-aux/useless-if-before-free: New file.
30080         * modules/useless-if-before-free: New file.
30082         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30084         xstrtol_error: Fix typo.
30085         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30086         s/exit_failure/exit_status/.
30088 2008-02-09  Jim Meyering  <meyering@redhat.com>
30090         New script and module: gitlog-to-changelog
30091         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30092         * modules/gitlog-to-changelog: New file.
30093         * build-aux/gitlog-to-changelog: New file.
30095 2008-02-08  Jim Meyering  <meyering@redhat.com>
30097         Avoid two "parameter unused" warnings.
30098         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30099         Mark "st" as used.
30101         Use "git COMMAND", not "git-COMMAND".
30102         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30103         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30104         * build-aux/git-version-gen: Use "git status", not "git-status".
30106 2008-02-07  Bruno Haible  <bruno@clisp.org>
30108         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30109         Avoids a crash on Windows Vista.
30110         Reported by Adam Strzelecki <ono@java.pl> via
30111         Simon Josefsson <simon@josefsson.org>.
30113 2008-02-06  Bruno Haible  <bruno@clisp.org>
30115         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30116         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30117         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30119         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30120         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30121         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30122         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30130         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30131         left-adjust flag.
30132         * tests/test-snprintf-posix.h (test_function): Likewise.
30133         * tests/test-sprintf-posix.h (test_function): Likewise.
30134         * tests/test-vasprintf-posix.c (test_function): Likewise.
30135         * doc/posix-functions/fprintf.texi: Update.
30136         * doc/posix-functions/printf.texi: Update.
30137         * doc/posix-functions/snprintf.texi: Update.
30138         * doc/posix-functions/sprintf.texi: Update.
30139         * doc/posix-functions/vfprintf.texi: Update.
30140         * doc/posix-functions/vprintf.texi: Update.
30141         * doc/posix-functions/vsnprintf.texi: Update.
30142         * doc/posix-functions/vsprintf.texi: Update.
30143         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30145 2008-02-06  Bruno Haible  <bruno@clisp.org>
30147         Fix bug introduced on 2008-01-26.
30148         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30150 2008-02-06  Bruno Haible  <bruno@clisp.org>
30152         Fix bug introduced on 2007-06-10.
30153         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30154         !NEED_PRINTF_FLAG_ZERO.
30156 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30158         getloadavg: use libperfstat on AIX5
30159         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30161 2008-02-03  Bruno Haible  <bruno@clisp.org>
30163         * lib/diffseq.h: Add comments about required #includes.
30164         Reported by Michael Biggs <gnulib@doubleplum.net>.
30166 2008-02-01  Bruno Haible  <bruno@clisp.org>
30168         * users.txt: Add gnuit.
30170 2008-01-31  Bruno Haible  <bruno@clisp.org>
30172         * lib/md4.c (set_uint32): Mark as inline.
30173         * lib/md5.c (set_uint32): Likewise.
30174         * lib/sha1.c (set_uint32): Likewise.
30175         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30176         * m4/md5.m4 (gl_MD5): Likewise.
30177         * m4/sha1.m4 (gl_SHA1): Likewise.
30179 2008-01-31  Jim Meyering  <meyering@redhat.com>
30181         Use "sizeof VAR", rather than a literal "4".
30182         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30183         * lib/md4.c (md4_read_ctx): Likewise.
30184         * lib/sha1.c (sha1_read_ctx): Likewise.
30186 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30188         * tests/test-sha1.c: New file, based on test-md5.c.
30190         * modules/crypto/sha1-tests: New file.
30192 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30194         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30196 2008-01-31  Jim Meyering  <meyering@redhat.com>
30198         Prefer "sizeof v" over the equivalent "4".
30199         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30200         * lib/md5.c (set_uint32): Likewise.
30201         * lib/sha1.c (set_uint32): Likewise.
30203 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30205         * lib/sha1.c (set_uint32): Mark function as static.
30207 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30209         md2: clarify comments to say that alignment is not required.
30210         * lib/md2.h: Remove warning about alignment in comment.
30211         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30212         never been required.
30214 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30216         md4: adapt alignment constraint fix from sha1.
30217         * lib/md4.c (set_uint32): New function, from sha1.c
30218         (md4_read_ctx): Use it.
30219         (md4_finish_ctx): Doc fix.
30220         * lib/md4.h: Doc fix.
30222 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30224         md5: adapt alignment constraint fix from sha1.
30225         * lib/md5.c (set_uint32): New function, from sha1.c
30226         (md5_read_ctx): Use it.
30227         (md5_finish_ctx): Doc fix.
30228         * lib/md5.h: Doc fix.
30230 2008-01-30  Peter Palfrader  <weasel@debian.org>
30232         sha1: remove the result buffer alignment constraint
30233         * lib/sha1.c (set_uint32): New function.
30234         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30235         constraint.
30236         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30237         * lib/sha1.h: Likewise.
30239 2008-01-30  Andreas Schwab  <schwab@suse.de>
30240             Bruno Haible  <bruno@clisp.org>
30242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30243         correct definition of LDBL_MIN_EXP.
30245 2008-01-30  Karl Berry  <karl@gnu.org>
30247         * config/srclist-update: try to preserve x bit on updates.
30248         * config/srclistvars.sh: update for karl.
30250 2008-01-29  Jim Meyering  <meyering@redhat.com>
30252         vasnprintf.c: Avoid warning about unused label
30253         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30254         "overflow" label definition and associated code with the
30255         same cpp condition that guards the sole use of that label.
30257 2008-01-26  Bruno Haible  <bruno@clisp.org>
30259         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30260         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30261         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30262         * lib/isnanl-nolibm.h (isnanl): Likewise.
30263         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30265 2008-01-26  Bruno Haible  <bruno@clisp.org>
30267         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30268         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30270 2008-01-26  Bruno Haible  <bruno@clisp.org>
30272         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30273         GCC >= 4.0 built-in.
30274         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30276 2008-01-26  Bruno Haible  <bruno@clisp.org>
30278         Rename isnan, applicable to 'double' only, to isnand.
30279         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30280         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30281         (configure.ac): Update.
30282         (Include): Replace "isnan.h" with "isnand.h".
30283         * m4/isnand.m4: Renamed from m4/isnan.m4.
30284         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30285         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30286         instead of isnan.c.
30287         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30288         instead of HAVE_ISNAN_IN_LIBC.
30289         (isnand): Renamed from isnan.
30290         * lib/isnand.c: New file.
30291         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30292         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30293         (Makefile.am): Update.
30294         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30295         Include isnand.h instead of isnan.h.
30296         (main): Test isnand instead of isnan.
30297         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30298         isnan-nolibm.
30299         * modules/frexp (Depends-on): Likewise.
30300         * modules/frexp-tests (Depends-on): Likewise.
30301         * modules/frexp-nolibm (Depends-on): Likewise.
30302         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30303         * modules/isfinite (Depends-on): Likewise.
30304         * modules/round-tests (Depends-on): Likewise.
30305         * modules/signbit (Depends-on): Likewise.
30306         * modules/signbit-tests (Depends-on): Likewise.
30307         * modules/snprintf-posix (Depends-on): Likewise.
30308         * modules/sprintf-posix (Depends-on): Likewise.
30309         * modules/trunc-tests (Depends-on): Likewise.
30310         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30311         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30312         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30313         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30314         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30315         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30316         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30317         * modules/vasnprintf-posix (Depends-on): Likewise.
30318         * modules/vasprintf-posix (Depends-on): Likewise.
30319         * modules/vfprintf-posix (Depends-on): Likewise.
30320         * modules/vsnprintf-posix (Depends-on): Likewise.
30321         * modules/vsprintf-posix (Depends-on): Likewise.
30322         * lib/frexp.c: Include isnand.h instead of isnan.h.
30323         (ISNAN): Set to isnand instead of isnan.
30324         * lib/isfinite.c: Include isnand.h instead of isnan.h.
30325         (gl_isfinited): Use isnand instead of isnan.
30326         * lib/signbitd.c: Include isnand.h instead of isnan.h.
30327         (gl_signbitd): Use isnand instead of isnan.
30328         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
30329         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
30330         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
30331         (main): Use isnand instead of isnan.
30332         * tests/test-round1.c: Include isnand.h.
30333         (main): Use isnand instead of isnan.
30334         * tests/test-round2.c: Include isnand.h instead of isnan.h.
30335         (ISNAN): Set to isnand instead of isnan.
30336         * tests/test-trunc1.c: Include isnand.h.
30337         (main): Use isnand instead of isnan.
30338         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
30339         (equal): Use isnand instead of isnan.
30340         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
30341         isnand-nolibm.
30342         * NEWS: Mention the change.
30344 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30345             Bruno Haible  <bruno@clisp.org>
30347         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
30348         the GCC builtins for signbits are present and set
30349         REPLACE_SIGNBIT_USING_GCC if so.
30350         * lib/math.in.h (signbit): Define using GCC builtins if
30351         REPLACE_SIGNBIT_USING_GCC is set.
30352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
30353         REPLACE_SIGNBIT_USING_GCC.
30354         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
30356 2008-01-25  Jim Meyering  <meyering@redhat.com>
30358         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
30359         * lib/poll.c: Include <config.h>, not "config.h".
30360         * tests/test-getaddrinfo.c: Likewise.
30362 2008-01-25  Simon Josefsson  <simon@josefsson.org>
30364         * modules/sockets-tests: New file.
30366 2008-01-24  Simon Josefsson  <simon@josefsson.org>
30368         * modules/sockets: New module, can be used to call WSA_Startup and
30369         WSA_Cleanup when needed.
30371         * lib/sockets.h, lib/sockets.c: New files.
30373         * m4/sockets.m4: New file.
30375         * tests/test-sockets.c: New file.
30377 2008-01-19  Bruno Haible  <bruno@clisp.org>
30379         * doc/posix-headers: Renamed from doc/headers.
30380         * doc/posix-functions: Renamed from doc/functions.
30381         * doc/gnulib.texi: Update.
30383 2008-01-19  Bruno Haible  <bruno@clisp.org>
30385         * doc/glibc-functions/strcasestr.texi: Include contents of
30386         doc/functions/strcasestr.texi, fixing the list of platforms.
30387         * doc/functions/strcasestr.texi: Remove file.
30389 2008-01-19  Bruno Haible  <bruno@clisp.org>
30391         * doc/glibc-functions/memmem.texi: Include contents of
30392         doc/functions/memmem.texi.
30393         * doc/functions/memmem.texi: Remove file.
30395 2008-01-18  Bruno Haible  <bruno@clisp.org>
30397         * doc/glibc-functions/*.texi: New files.
30398         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
30399         to use the new files.
30401 2008-01-17  Bruno Haible  <bruno@clisp.org>
30403         * tests/test-gethostname.c (main): Fix printf statement.
30405 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30407         * modules/gethostname-tests: New file.
30409         * tests/test-gethostname.c: New file.
30411 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30413         * lib/gethostname.c: Include string.h unconditionally, strncpy is
30414         used by the UNAME case.  Reported by Bruno Haible
30415         <bruno@clisp.org>.
30417 2008-01-17  Eric Blake  <ebb9@byu.net>
30419         Convert c-strcasestr to be more efficient.
30420         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
30421         (Depends-on): Add c-strcase, remove malloca, strnlen.
30422         * tests/test-c-strcasestr.c (main): Enhance test.
30423         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
30425 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30427         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
30428         Use it in creating po/Makevars.
30430 2008-01-15  Simon Josefsson  <simon@josefsson.org>
30432         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
30433         Applications that requires it should initialize libgcrypt
30434         manually.
30436 2008-01-16  Simon Josefsson  <simon@josefsson.org>
30438         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
30440 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30442         Fix problem with getdate on mingw32 reported by Simon Josefsson
30443         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
30444         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
30445         tzname", when deciding whether to declare tzname.
30446         * lib/strftime.c (tzname): Likewise.
30448 2008-01-15  Bruno Haible  <bruno@clisp.org>
30450         Work around a MacOS X 10.5 bug in frexpl().
30451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
30452         * doc/functions/frexpl.texi: Document the bug.
30453         Reported by Elias Pipping <pipping@gentoo.org>.
30455 2008-01-14  Eric Blake  <ebb9@byu.net>
30457         Touch up previous patch.
30458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
30459         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
30461         Convert strcasestr module to use Two-Way algorithm.
30462         * modules/strcasestr-simple: New module, based on the old
30463         strcasestr, but with Two-Way rather than KMP.
30464         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
30465         * lib/string.in.h (rpl_strcasestr): Declare.
30466         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
30467         performance.
30468         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
30469         * modules/string (Makefile.am): Support strcasestr.
30470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30471         * modules/strcasestr-tests (Depends-on): Check for alarm.
30472         * tests/test-strcasestr.c: Augment test.
30473         * lib/str-two-way.h: Clean up stray macro.
30474         * NEWS: Document new module.
30475         * MODULES.html.sh (string handling): Likewise.
30476         * doc/functions/strcasestr.texi: New file.
30477         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
30478         here, since it is not a POSIX function.
30480 2008-01-14  Colin Watson  <cjwatson@debian.org>
30481             Bruno Haible  <bruno@clisp.org>
30483         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
30484         works fine; if not, set REPLACE_STRSIGNAL.
30485         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
30486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30487         REPLACE_STRSIGNAL.
30488         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
30489         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
30490         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
30492 2008-01-14  Bruno Haible  <bruno@clisp.org>
30494         * modules/strsignal (Include): Change to <string.h>.
30496 2008-01-14  Colin Watson  <cjwatson@debian.org>
30498         * modules/argp (Notice): Add a notice recommending to change
30499         XGETTEXT_OPTIONS.
30500         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
30502 2008-01-13  Colin Watson  <cjwatson@debian.org>
30504         * modules/strsignal-tests: New file.
30505         * tests/test-strsignal.c: New file.
30507         * lib/strsignal.c: New file, from glibc with modifications.
30508         * lib/siglist.h: New file, from glibc with modifications.
30509         * lib/string.in.h (strsignal): New declaration.
30510         * m4/strsignal.m4: New file.
30511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30512         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
30513         * modules/strsignal: New file.
30514         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
30515         HAVE_DECL_STRSIGNAL.
30517 2008-01-13  Bruno Haible  <bruno@clisp.org>
30519         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
30520         locale encoding is not ASCII. Needed for OpenBSD 4.0.
30521         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30522         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30524 2008-01-13  Bruno Haible  <bruno@clisp.org>
30526         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
30527         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
30528         * lib/argp.h (__attribute__): Likewise.
30529         * lib/c-stack.c (__attribute__): Likewise.
30530         * lib/error.h (__attribute__): Likewise.
30531         * lib/fts.c (__attribute__): Likewise.
30532         * lib/openat.h (__attribute__): Likewise.
30533         * lib/stdio.in.h (__attribute__): Likewise.
30534         * lib/string.in.h (__attribute__): Likewise.
30535         * lib/utimens.c (__attribute__): Likewise.
30536         * lib/vasnprintf.h (__attribute__): Likewise.
30537         * lib/xalloc.h (__attribute__): Likewise.
30538         * lib/xprintf.h (__attribute__): Likewise.
30539         * lib/xstrtol.h (__attribute__): Likewise.
30540         * lib/xvasprintf.h (__attribute__): Likewise.
30542 2008-01-12  Bruno Haible  <bruno@clisp.org>
30544         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
30545         * doc/glibc-headers/a.out.texi: New file.
30546         * doc/glibc-headers/aliases.texi: New file.
30547         * doc/glibc-headers/alloca.texi: New file.
30548         * doc/glibc-headers/ar.texi: New file.
30549         * doc/glibc-headers/argp.texi: New file.
30550         * doc/glibc-headers/argz.texi: New file.
30551         * doc/glibc-headers/byteswap.texi: New file.
30552         * doc/glibc-headers/crypt.texi: New file.
30553         * doc/glibc-headers/endian.texi: New file.
30554         * doc/glibc-headers/envz.texi: New file.
30555         * doc/glibc-headers/err.texi: New file.
30556         * doc/glibc-headers/error.texi: New file.
30557         * doc/glibc-headers/execinfo.texi: New file.
30558         * doc/glibc-headers/fpu_control.texi: New file.
30559         * doc/glibc-headers/fstab.texi: New file.
30560         * doc/glibc-headers/fts.texi: New file.
30561         * doc/glibc-headers/getopt.texi: New file.
30562         * doc/glibc-headers/ieee754.texi: New file.
30563         * doc/glibc-headers/ifaddrs.texi: New file.
30564         * doc/glibc-headers/libintl.texi: New file.
30565         * doc/glibc-headers/mcheck.texi: New file.
30566         * doc/glibc-headers/mntent.texi: New file.
30567         * doc/glibc-headers/obstack.texi: New file.
30568         * doc/glibc-headers/paths.texi: New file.
30569         * doc/glibc-headers/printf.texi: New file.
30570         * doc/glibc-headers/pty.texi: New file.
30571         * doc/glibc-headers/resolv.texi: New file.
30572         * doc/glibc-headers/shadow.texi: New file.
30573         * doc/glibc-headers/sysexits.texi: New file.
30574         * doc/glibc-headers/ttyent.texi: New file.
30576 2008-01-12  Jim Meyering  <meyering@redhat.com>
30578         announce-gen: emit Gnulib's git-based version string.
30579         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
30580         New option --gnulib-version=V, where V is expected to be
30581         the output of running git describe in the gnulib directory.
30582         (get_tool_versions): Request feedback on xdelta.  I suspect it's
30583         not useful, and plan to stop publishing an xdelta file with each
30584         coreutils release.
30586         * build-aux/announce-gen: Also check for lzma-compressed files.
30588 2008-01-11  Bruno Haible  <bruno@clisp.org>
30590         * tests/test-memmem.c (main): Increase maximum allowed time.
30591         * tests/test-strstr.c (main): Likewise.
30593 2008-01-11  Bruno Haible  <bruno@clisp.org>
30595         * doc/functions/memmem.texi: Add more precisions about platforms.
30596         * doc/functions/strstr.texi: Likewise.
30598 2008-01-10  Eric Blake  <ebb9@byu.net>
30600         * m4/strstr.m4: Delete cruft from copy-n-paste.
30601         Reported by Bruno Haible.
30603 2008-01-10  Bruno Haible  <bruno@clisp.org>
30605         Make c-strstr rely on strstr.
30606         * lib/c-strstr.c: Don't include str-kmp.h.
30607         (c_strstr): Define in terms of strstr.
30608         * modules/c-strstr (Files): Remove lib/str-kmp.h.
30609         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
30611 2008-01-10  Bruno Haible  <bruno@clisp.org>
30613         * doc/gnulib.texi (String Functions in C Locale): New section.
30614         * doc/c-ctype.texi: New file.
30615         * doc/c-strcase.texi: New file.
30616         * doc/c-strcaseeq.texi: New file.
30617         * doc/c-strcasestr.texi: New file.
30618         * doc/c-strstr.texi: New file.
30619         * doc/c-strtod.texi: New file.
30620         * doc/c-strtold.texi: New file.
30622 2008-01-10  Eric Blake  <ebb9@byu.net>
30624         * lib/relocatable.h: Fix a comment.
30626 2008-01-10  Eric Blake  <ebb9@byu.net>
30628         Share two-way algorithm.
30629         * lib/str-two-way.h: New file, merged from...
30630         * lib/memmem.c: ...here...
30631         * lib/strstr.c: ...and here.
30632         * modules/memmem (Files): Use it.
30633         * modules/strstr (Files): Likewise.
30635         Avoid quadratic strstr implementations.
30636         * lib/strstr.c: New file.
30637         * m4/strstr.m4: Likewise.
30638         * modules/strstr: Likewise.
30639         * modules/strstr-tests: Likewise.
30640         * tests/test-strstr.c: Likewise.
30641         * lib/string.in.h (rpl_strstr): Declare.
30642         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
30643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
30644         * modules/string (Makefile.am): Likewise.
30645         * MODULES.html.sh (string handling): Mention new module.
30646         * doc/functions/strstr.texi (strstr): Document the bug.
30648 2008-01-10  Bruno Haible  <bruno@clisp.org>
30650         * lib/relocatable.h (relocate): State whether result is freshly
30651         allocated or not.
30652         * lib/relocatable.c (relocate): Return a freshly allocated string
30653         instead of a pointer to a privately held string.
30654         Reported by Sylvain Beucler <beuc@gnu.org>.
30656 2008-01-10  Colin Watson  <cjwatson@debian.org>
30658         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
30659         s/S_ISNLK/S_ISLNK/.
30661 2008-01-09  Bruno Haible  <bruno@clisp.org>
30663         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
30664         and other files.
30665         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
30666         if it's only a guess.
30667         * modules/memmem: Simplify by depending on memmem-simple.
30669 2008-01-09  Bruno Haible  <bruno@clisp.org>
30671         Work around OpenBSD 4.0 tdelete() bug.
30672         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
30673         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
30674         macros and don't redefine the enum values.
30675         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
30676         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
30677         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
30679 2008-01-09  Bruno Haible  <bruno@clisp.org>
30681         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
30682         (main): Don't perform the tests if setlocale did not install a UTF-8
30683         locale. Needed on OpenBSD 4.0.
30684         * modules/wcwidth-tests (Depends-on): Add localcharset.
30686 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30688         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
30689         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
30690         * NEWS: announce this.
30691         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
30693 2008-01-09  Simon Josefsson  <simon@josefsson.org>
30694         and Eric Blake  <ebb9@byu.net>
30696         Add memmem-simple module.
30697         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
30698         (gl_FUNC_MEMMEM): Separate performance from presence checks.
30699         * modules/memmem-simple: New file.
30700         * modules/memmem (Description): Tweak.
30701         * MODULES.html.sh (string handling): Mention new module.
30702         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
30703         addressed by memmem-simple.
30704         * NEWS: Document the difference.
30706 2008-01-09  Eric Blake  <ebb9@byu.net>
30708         Give gcc some memmem optimization hints.
30709         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
30710         (strcasestr): Declare as pure.
30711         * modules/memmem (Maintainer): Claim my implementation.
30713 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30715         Support AIX 6.1 and higher.
30716         * build-aux/config.libpath: Likewise.
30717         * build-aux/config.rpath: Likewise.
30719 2008-01-08  Jim Meyering  <meyering@redhat.com>
30720             Bruno Haible  <bruno@clisp.org>
30722         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
30723         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
30724         Reported by Peter Fales in
30725         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
30727 2008-01-08  Bruno Haible  <bruno@clisp.org>
30729         * modules/unictype/category-of (Depends-on): Add
30730         unictype/category-none.
30731         * modules/unictype/category-and-tests (Depends-on): Add
30732         unictype/category-{L,N,Lu,Nd}.
30733         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
30734         * modules/unictype/category-or-tests (Depends-on): Add
30735         unictype/category-{L,N}.
30736         * modules/unictype/category-name-tests (Depends-on): Add
30737         unictype/category-{Z,Nl}.
30738         Reported by Simon Josefsson.
30740 2008-01-08  Bruno Haible  <bruno@clisp.org>
30742         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
30743         convention better.
30744         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
30745         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
30746         Reported by Peter Miller <millerp@canb.auug.org.au>.
30748 2008-01-08  Eric Blake  <ebb9@byu.net>
30750         Rewrite memmem to guarantee linear complexity without malloc.
30751         * lib/memmem.c (memmem): Use Two-Way rather than
30752         Knuth-Morris-Pratt, to allow O(1) space usage.
30753         (critical_factorization, two_way_short_needle)
30754         (two_way_long_needle): New functions.
30755         (knuth_morris_pratt): Delete.
30756         * modules/memmem (Depends-on): No longer need malloca or stdbool.
30757         Add stdint.
30758         * tests/test-memmem.c (main): Add tests for periodic needle and
30759         sublinear performance.
30760         * doc/functions/memmem.texi (memmem): Document other deficiencies
30761         in cygwin and older glibc.
30763 2008-01-08  Bruno Haible  <bruno@clisp.org>
30765         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
30766         augmentation.
30768 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
30770         Add a configure time option: --disable-acl.
30771         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
30772         AC_ARG_ENABLE(acl).
30774 2008-01-06  Simon Josefsson  <simon@josefsson.org>
30776         * tests/test-localename.c: Don't include obsolete "setenv.h".
30778         * modules/localename-tests (Depends-on): Need unsetenv.
30780 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30782         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
30784 2008-01-06  Colin Watson  <cjwatson@debian.org>
30786         * users.txt: Add man-db.
30788 2008-01-07  Bruno Haible  <bruno@clisp.org>
30790         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
30791         previous section name.
30793 2008-01-07  Bruno Haible  <bruno@clisp.org>
30795         * lib/progname.c (set_program_name): Don't strip off a leading
30796         "lt-" prefix outside a .libs directory.
30797         Suggested by Paul Eggert.
30799 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
30800             Bruno Haible  <bruno@clisp.org>
30802         Improve memory cleanup in 'relocatable' module.
30803         * lib/relocatable.h (compute_curr_prefix): Change return type to
30804         'char *'.
30805         * lib/relocatable.c (compute_curr_prefix): Change return type to
30806         'char *'. Free curr_installdir after use.
30807         (relocate): Free curr_prefix_better after use.
30808         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
30810 2008-01-01  Bruno Haible  <bruno@clisp.org>
30812         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
30813         failure on older glibc systems.
30814         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30816 2008-01-05  Eric Blake  <ebb9@byu.net>
30818         Avoid quadratic system memmem.
30819         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
30820         Reported by Ralf Wildenhues.
30822         Fix memmem test for mingw.
30823         * modules/memmem-tests (configure.ac): Check for alarm.
30824         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
30825         it.
30826         * doc/functions/memmem.texi: New file.
30827         * doc/gnulib.texi (Function Substitutes): Add memmem.
30828         Reported by Bruno Haible.
30830 2008-01-04  Bruno Haible  <bruno@clisp.org>
30832         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
30833         Require gl_HEADER_STRINGS_H_DEFAULTS, not
30834         gl_HEADER_STRING_H_DEFAULTS.
30836 2008-01-04  Eric Blake  <ebb9@byu.net>
30838         Shorten duration of memmem test.
30839         * tests/test-memmem.c (main): Use alarm to declare failure if test
30840         is taking too long.
30841         Reported by Ralf Wildenhues.
30843 2007-12-21  Simon Josefsson  <simon@josefsson.org>
30845         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
30846         string, needed by strerror.
30848 2008-01-03  Colin Watson  <cjwatson@debian.org>
30849             Bruno Haible  <bruno@clisp.org>
30851         * doc/gnulib-tool.texi (Localization): New section.
30853 2008-01-02  Bruno Haible  <bruno@clisp.org>
30855         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
30856         variables to 'unsigned char *' type.
30857         Reported by Paul Eggert.
30859 2008-01-02  Jim Meyering  <jim@meyering.net>
30861         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
30863 2007-12-31  Jim Meyering  <jim@meyering.net>
30865         Avoid use of private FTS type name.
30866         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
30868 2007-12-30  Karl Berry  <karl@gnu.org>
30870         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
30871         work around defect in Texinfo and/or the standalone Info browser.
30873 2007-12-30  Bruno Haible  <bruno@clisp.org>
30875         Unify 5 copies of the KMP code.
30876         * lib/str-kmp.h: New file.
30877         * lib/c-strcasestr.c: Include str-kmp.h.
30878         (knuth_morris_pratt): Remove function.
30879         (c_strcasestr): Update.
30880         * lib/c-strstr.c: Include str-kmp.h.
30881         (knuth_morris_pratt): Remove function.
30882         (c_strcasestr): Update.
30883         * lib/mbscasestr.c: Include str-kmp.h.
30884         (knuth_morris_pratt_unibyte): Remove function.
30885         * lib/mbsstr.c: Include str-kmp.h.
30886         (knuth_morris_pratt_unibyte): Remove function.
30887         * lib/strcasestr.c: Include str-kmp.h.
30888         (knuth_morris_pratt): Remove function.
30889         (strcasestr): Update.
30890         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
30891         * modules/c-strstr (Files): Likewise.
30892         * modules/mbscasestr (Files): Likewise.
30893         * modules/mbsstr (Files): Likewise.
30894         * modules/strcasestr (Files): Likewise.
30895         Suggested by Paul Eggert.
30897 2007-12-30  Bruno Haible  <bruno@clisp.org>
30899         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
30900         defined.
30902 2007-12-30  Bruno Haible  <bruno@clisp.org>
30904         * lib/xmalloca.h: Include xalloc.h.
30905         (xnmalloca): New macro.
30907 2007-12-30  Bruno Haible  <bruno@clisp.org>
30909         * lib/malloca.h (nmalloca): New macro.
30910         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
30911         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
30912         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
30913         knuth_morris_pratt_multibyte): Likewise.
30914         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
30915         knuth_morris_pratt_multibyte): Likewise.
30916         * lib/memmem.c (knuth_morris_pratt): Likewise.
30917         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
30919 2007-12-25  Bruno Haible  <bruno@clisp.org>
30921         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
30922         * lib/glob.c: Don't include openat.h.
30923         (link_exists2_p): Add back the code that deals with the
30924         !GLOB_ALTDIRFUNC case.
30925         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
30926         let it do the filename concatenation.
30927         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
30928         * modules/glob (Depends-on): Remove openat.
30930 2007-12-31  Bruno Haible  <bruno@clisp.org>
30932         * modules/dirfd (License): Change to LGPLv2+.
30933         Approved by Jim Meyering.
30935 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
30937         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
30938         when multiplying M by sizeof (size_t).
30940 2007-12-10  Martin Lambers  <marlam@marlam.de>
30942         Override getpagesize on mingw.
30943         * lib/getpagesize.c: New file.
30944         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
30945         * modules/getpagesize (Files): Add lib/getpagesize.c.
30946         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
30947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30948         REPLACE_GETPAGESIZE.
30949         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
30951 2007-12-25  Bruno Haible  <bruno@clisp.org>
30953         * modules/localcharset (Notice): New field.
30954         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
30955         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
30957 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
30958             Bruno Haible  <bruno@clisp.org>
30960         Avoid using the syntax symbol() in formatted documentation.
30961         * MODULES.html.sh (func_module): When replacing symbol() with a
30962         hyperlink, remove the parentheses. Show an error if some remain.
30963         Recognize and render the '...' syntax.
30964         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
30965         Rework. Add paragraph about GCC's inlining.
30966         * doc/alloca.texi: Likewise.
30967         * doc/error.texi: Remove parentheses from symbol reference.
30968         * doc/gnulib-intro.texi: Likewise.
30969         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
30970         * modules/fnmatch (Description): Reword to say "the ... function".
30971         * modules/full-read (Description): Likewise.
30972         * modules/full-write (Description): Likewise.
30973         * modules/safe-read (Description): Likewise.
30974         * modules/safe-write (Description): Likewise.
30975         * modules/strchrnul (Description): Likewise.
30976         * modules/trim (Description): Likewise.
30977         * modules/error (Description): Remove parentheses from symbol
30978         references.
30979         * modules/verror (Description): Likewise.
30980         Reported by Karl Berry.
30982 2007-12-25  Bruno Haible  <bruno@clisp.org>
30984         Fixup after 2007-10-16 commit.
30985         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
30987 2007-12-24  Bruno Haible  <bruno@clisp.org>
30989         Make --enable-relocatable work with DESTDIR.
30990         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
30991         to compute installdir from destprog.
30992         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
30993         also set the RELOC_DESTDIR variable.
30994         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
30996 2007-12-24  Bruno Haible  <bruno@clisp.org>
30998         Fix link error due to xalloc_die().
30999         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31000         of xreadlink.
31001         * lib/relocwrapper.c: Update comments.
31002         * build-aux/install-reloc: Remove xreadlink.c from file list.
31003         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31004         xreadlink.c.
31005         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31007 2007-12-24  Bruno Haible  <bruno@clisp.org>
31009         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31010         * lib/setenv.h: Remove file.
31011         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31012         lib/setenv.h.
31013         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31014         (Depends-on): Add stdlib.
31015         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31016         gl_FUNC_UNSETENV.
31017         (Include): Replace setenv.h with <stdlib.h>.
31018         * modules/unsetenv: New file.
31019         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31020         * lib/unsetenv.c: Include <stdlib.h> first.
31021         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31022         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31023         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31024         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31025         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31026         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31028         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31029         * doc/functions/unsetenv.texi: Update.
31030         * modules/xsetenv (Depends-on): Add unsetenv.
31031         * modules/getdate (Depends-on): Likewise.
31032         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31033         * lib/xsetenv.c: Don't include setenv.h.
31034         * lib/getdate.y: Likewise.
31035         * lib/relocwrapper.c: Likewise.
31036         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31037         (Depends-on): Add stdlib.
31038         * NEWS: Mention the changes.
31039         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31041 2007-12-23  Bruno Haible  <bruno@clisp.org>
31043         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31044         indentation.
31046 2007-12-23  Bruno Haible  <bruno@clisp.org>
31048         * lib/c-strcasestr.c: Add more comments.
31049         * lib/c-strstr.c: Likewise.
31050         * lib/mbscasestr.c: Likewise.
31051         * lib/mbsstr.c: Likewise.
31052         * lib/strcasestr.c: Likewise.
31053         * lib/memmem.c: Likewise.
31055 2007-12-23  Bruno Haible  <bruno@clisp.org>
31057         * tests/test-memmem.c: Include <string.h> first.
31059 2007-12-22  Bruno Haible  <bruno@clisp.org>
31061         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31062         the contents of $testsbase.
31063         Reported by Ralf Wildenhues.
31065 2007-12-22  Bruno Haible  <bruno@clisp.org>
31067         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31068         two variables local_ldadd_before, local_ldadd_last.
31070 2007-12-20  Eric Blake  <ebb9@byu.net>
31072         Work around circular library issue when cross-compiling.
31073         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31074         that progname.o does not need to pull in rpl_memcmp.
31076 2007-12-19  Eric Blake  <ebb9@byu.net>
31078         Fix memmem to avoid O(n^2) worst-case complexity.
31079         * lib/memmem.c (knuth_morris_pratt): New function.
31080         (memmem): Use it if first few naive iterations fail.
31081         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31082         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31083         * modules/memchr (License): Likewise.
31084         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31085         malloca.
31086         * tests/test-memmem.c: Rewrite, borrowing ideas from
31087         test-mbsstr1.c; the old version wouldn't even compile!
31088         * modules/memmem-tests: New file.
31089         * lib/string.in.h (rpl_memmem): Add declaration.
31090         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31092         REPLACE_MEMMEM.
31094 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31096         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31097         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31098         before any system include files, and undef after them all.  This
31099         should fix a problem on VMS reported by John E. Malmberg in
31100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31102 2007-12-17  Eric Blake  <ebb9@byu.net>
31104         Revert addition of verify, for BSD/OS.
31105         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31106         can't handle large files, for the sake of obsolete platforms.
31107         * modules/fseeko (Depends-on): Remove verify.
31108         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31109         * doc/functions/ftello.texi (ftello): Likewise.
31110         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31111         Reported by Larry Jones.
31113 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31115         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31116         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31118 2007-12-17  Jim Meyering  <meyering@redhat.com>
31120         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31121         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31122         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31123         * modules/getcwd (Depends-on): Add openat.
31124         Reported by Petr Salinger.
31126 2007-12-17  Bruno Haible  <bruno@clisp.org>
31128         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31129         avoid a segmentation fault of the configure test on x86_64 systems.
31131 2007-12-15  Jim Meyering  <meyering@redhat.com>
31133         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31135 2007-12-13  Eric Blake  <ebb9@byu.net>
31137         Another fseek test.
31138         * tests/test-fseek.c (main): Also test ungetc handling.
31139         * tests/test-fseeko.c (main): Likewise.
31140         * modules/fseeko (Depends-on): Add verify.
31141         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31142         large.
31143         Reported by Larry Jones.
31145         Fix fseeko on mingw.
31146         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31147         seek.
31149         Beef up fseek tests.
31150         * tests/test-fseek.c (main): Also test eof handling.
31151         * tests/test-fseeko.c (main): Likewise.
31152         Reported by Larry Jones.
31154 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31156         Fix fseeko on BSD-based platforms.
31157         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31158         successful seek.
31160 2007-12-12  Eric Blake  <ebb9@byu.net>
31162         Allow circular dependency of separate libtests.a
31163         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31164         when use_libtests.
31166 2007-12-11  Eric Blake  <ebb9@byu.net>
31168         Fix bug with -0.0L in previous patch.
31169         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31170         * tests/test-isnan.c (main): Also test on zeroes.
31171         * tests/test-isnanf.c (main): Likewise.
31172         * tests/test-isnanl.h (main): Likewise.
31174         Detect pseudo-denormals on x86 even when cross-compiling.
31175         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31176         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31177         invalid bit patterns that happen to satisfy ==.
31179         Avoid link failures with separate libtests.a.
31180         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31181         last, to satisfy circular dependencies.
31183 2007-12-11  Eric Blake  <ebb9@byu.net>
31184         and Bruno Haible  <bruno@clisp.org>
31186         Fix OpenBSD 4.0 <float.h> handling of long double.
31187         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31188         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31189         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31191 2007-12-11  Jim Meyering  <meyering@redhat.com>
31193         * users.txt: Add libvirt.
31195         Support versions of autoconf prior to 2.59c.
31196         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31197         if it is not already defined.
31199 2007-12-09  Bruno Haible  <bruno@clisp.org>
31201         Let 'gnulib-tool --import' collect sources needed for the tests in
31202         tests/ rather than in lib/.
31203         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31204         argument. If true, add rules to generate libtests.a, and put libtests.a
31205         into $(LDADD). Consider source files in subdirectories and set
31206         uses_subdirs.
31207         (func_emit_initmacro_start, func_emit_initmacro_end,
31208         func_emit_initmacro_done): Pass all arguments explicitly.
31209         (func_import): Determine two module lists main_modules,
31210         testsrelated_modules. Determine use_libtests. Determine two variables
31211         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31212         instead of just sed_transform_lib_file. Determine two variables
31213         main_files and testsrelated_files. Compute 'files' as the union of
31214         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31215         func_add_or_update. In the generated gnulib-comp.m4, collect the
31216         object files for tests/ in different variables than those for lib/.
31217         Substitute LIBTESTS_LIBDEPS.
31218         (func_create_testdir): Combine the uses_subdirs results from
31219         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31221 2007-12-09  Bruno Haible  <bruno@clisp.org>
31223         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31224         the build-aux directory.
31226 2007-12-09  Bruno Haible  <bruno@clisp.org>
31228         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31229         introduced on 2006-09-09.
31231 2007-12-07  Jim Meyering  <meyering@redhat.com>
31233         Let these macros work also with autoconf-2.59.
31234         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31235         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31238 2007-12-06  Jim Meyering  <meyering@redhat.com>
31240         Avoid a configure-time syntax error in gl_FUNC_ACL.
31241         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31242         function in each branch, before testing the cache variable.
31244 2007-12-04  Eric Blake  <ebb9@byu.net>
31246         Make scripts executable.
31247         * build-aux/config.guess: Add execute permissions.
31248         * build-aux/config.sub: Likewise.
31249         * build-aux/gendocs.sh: Likewise.
31251         Fix frexp on mingw.
31252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31253         cross-compiling.
31254         * doc/functions/frexp.texi (frexp): Document the bug.
31256         Make cygwin fseeko check more reliable.
31257         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31258         version numbers, rather than unrelated feature check.
31259         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31260         * doc/functions/ftello.texi (ftello): Likewise.
31261         Reported by Bruno Haible.
31263         * m4/strerror.m4: Bump version number.
31265 2007-12-03  Bruno Haible  <bruno@clisp.org>
31267         * doc/functions/mprotect.texi: Mention the mingw problem.
31269 2007-12-03  Eric Blake  <ebb9@byu.net>
31271         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31272         REPLACE_STRERROR is initialized before this macro.
31274 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31276         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31277         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31278         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31279         put -lsec in even for programs other than 'ls'.  This fixes a problem
31280         for gettext reported by Bruno Haible in
31281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31282         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31283         Add support for Solaris 10.  This isn't efficient, but should get the
31284         job done for now.
31286 2007-12-03  James Youngman  <jay@gnu.org>
31288         * doc/regexprops-generic.texi: change "an close-group" to "a
31289         close-group" and "illegal" to "not allowed".
31291 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31293         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31294         pr_byname.h. Needed for the rare case when the maintainer has done
31295         "make maintainer-clean" in the source directory and then attempts a
31296         build outside the source directory.
31297         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31298         scripts_byname.h.
31300 2007-12-02  Martin Lambers <marlam@marlam.de>
31301             Bruno Haible  <bruno@clisp.org>
31303         * lib/getpagesize.h: Remove file.
31304         * lib/unistd.in.h: Include declaration of getpagesize here.
31305         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
31306         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
31307         HAVE_SYS_PARAM_H.
31308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
31309         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31310         * modules/getpagesize (Files): Remove lib/getpagesize.h.
31311         (Depends-on): Add unistd.
31312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31313         (Include): Use <unistd.h> instead of getpagesize.h.
31314         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
31315         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31316         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
31317         gl_GETPAGESIZE invocation, already handled by module dependency.
31318         * lib/pagealign_alloc.c: Don't include getpagesize.h.
31320 2007-12-02  Bruno Haible  <bruno@clisp.org>
31322         * modules/strings-tests: New file.
31323         * tests/test-strings.c: New file.
31325         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
31326         * lib/strings.in.h: New file.
31327         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
31328         * m4/strings_h.m4: New file.
31329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
31330         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
31331         * modules/strings: New file.
31332         * modules/string (Makefile.am): Update.
31333         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
31334         Reported by Karl Berry.
31336 2007-12-01  Eric Blake  <ebb9@byu.net>
31338         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
31339         accomodate fix in cygwin 1.5.25.
31341 2007-12-01  Jim Meyering  <meyering@redhat.com>
31343         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
31344         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
31345         that would inhibit utf8-optimization of a regexp containing line-
31346         or buffer-anchors, e.g., `^', `$'.
31348 2007-11-30  Bruno Haible  <bruno@clisp.org>
31350         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
31351         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
31352         glthread_recursive_lock_init.
31353         * lib/lock.c (glthread_recursive_lock_init)
31354         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
31355         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31357 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31359         New function qset_acl, like set_acl but with syscall semantics.
31360         * lib/acl.h (qset_acl): New decl.
31361         * lib/acl.c (qset_acl): New function.
31362         (set_acl): Use new function.  Use more-consistent diagnostics.
31364 2007-11-28  Jim Meyering  <meyering@redhat.com>
31366         * modules/physmem (License): Change from GPL to LGPLv2+.
31368 2007-11-26  Bruno Haible  <bruno@clisp.org>
31370         * lib/vasnprintf.c (decode_long_double): Don't abort if the
31371         'long double' type has excess precision.
31372         Reported by Jim Meyering in
31373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
31375 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31377         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
31378         Sync from <http://gnu.org/licenses>.
31379         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
31380         with license text from same location.
31381         * doc/maintain.texi, doc/standards.texi:  Sync from
31382         <http://savannah.gnu.org/projects/gnustandards>.
31384 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
31385         and Jim Meyering  <meyering@redhat.com>
31387         Adjust getdate' grammar to accept a slightly more regular language.
31388         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
31389         Before, the former was rejected.
31390         * lib/getdate.y (digits_to_date_time): New function, factored
31391         out of ...
31392         (number): ...here.  Just call digits_to_date_time.
31393         (hybrid): New non-terminal to handle an <unsigned number,
31394         signed relative offset> sequence consistently.
31396 2007-11-18  Jim Meyering  <meyering@redhat.com>
31398         Pull my changes from coreutils:
31399         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
31400         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
31401         use of $gnulib_tool_option_extras, so that it's separated from the
31402         preceding argument.
31404         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
31405         * build-aux/bootstrap (cp_mark_as_generated): Create any required
31406         parent destination directories before copying a file into place.
31408 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31410         bootstrap: work also with 4-argument variant of AC_INIT
31411         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
31413 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31415         Port test-getaddrinfo to Solaris.
31416         Problem reported by Bruno Haible in
31417         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
31418         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
31419         explanation of setting 'hints'.
31420         Don't reject an implementation merely because it returns EAI_SERVICE.
31421         (EAI_SERVICE): Define to 0 if not defined.
31423 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31425         The license of gnu-make and posix-shell is now "GPLed build tool".
31426         * modules/gnu-make (License): Likewise.
31427         * modules/posix-shell (License): Likewise.
31429         New module posix-shell, for determining a POSIX shell
31430         or perhaps something that is close enough to a POSIX shell.
31431         * m4/posix-shell.m4: New file.
31432         * modules/posix-shell: New file.
31434         * MODULES.html.sh: Mention new module.
31436         New module gnu-make, for determining whether we're using GNU Make.
31437         * m4/gnu-make.m4: New file.
31438         * modules/gnu-make: New file.
31439         * MODULES.html.sh: Mention new module.
31441 2007-11-14  Jim Meyering  <meyering@redhat.com>
31443         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
31444         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
31445         use this macro to create a function _definition_.
31446         Remove useless "#undef ARGMATCH_DIE".
31448 2007-11-14  Bruno Haible  <bruno@clisp.org>
31450         * lib/config.charset: Update for OpenBSD 4.1.
31451         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
31453 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
31455         Document 64-bit #if problems in stdint.texi.
31456         * doc/headers/stdint.texi (stdint.h): Mention problems with
31457         64-bit-#if, and how to work around them.
31459         Don't insist on 'long long int' support in the preprocessor.  It
31460         breaks too many things.  For example, PRIdMAX still uses a 'long
31461         long int' format with the latest Sun compiler, even though
31462         HAVE_LONG_LONG_INT isn't defined due to that compiler's
31463         preprocessor problem.  This causes the latest coreutils to dump
31464         core on Solaris 10 sparc with the Sun C compiler.
31465         Instead, fix the 2007-10-16 problem in a different way, by evaluating
31466         the troublesome expressions at configure-time, not at #if-time.
31467         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
31468         preprocessor.
31469         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
31470         compile-time C checks, done at 'configure'-time.
31471         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
31472         * modules/inttypes (Makefile): Substitute the new symbols that
31473         gl_INTTYPES_H now generates.
31474         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
31476 2007-11-12  Bruno Haible  <bruno@clisp.org>
31478         Tests for Unicode character classification functions.
31480         * modules/unictype/bidicategory-byname-tests: New file.
31481         * modules/unictype/bidicategory-name-tests: New file.
31482         * modules/unictype/bidicategory-of-tests: New file.
31483         * modules/unictype/bidicategory-test-tests: New file.
31484         * modules/unictype/block-list-tests: New file.
31485         * modules/unictype/block-of-tests: New file.
31486         * modules/unictype/block-test-tests: New file.
31487         * modules/unictype/category-C-tests: New file.
31488         * modules/unictype/category-Cc-tests: New file.
31489         * modules/unictype/category-Cf-tests: New file.
31490         * modules/unictype/category-Cn-tests: New file.
31491         * modules/unictype/category-Co-tests: New file.
31492         * modules/unictype/category-Cs-tests: New file.
31493         * modules/unictype/category-L-tests: New file.
31494         * modules/unictype/category-Ll-tests: New file.
31495         * modules/unictype/category-Lm-tests: New file.
31496         * modules/unictype/category-Lo-tests: New file.
31497         * modules/unictype/category-Lt-tests: New file.
31498         * modules/unictype/category-Lu-tests: New file.
31499         * modules/unictype/category-M-tests: New file.
31500         * modules/unictype/category-Mc-tests: New file.
31501         * modules/unictype/category-Me-tests: New file.
31502         * modules/unictype/category-Mn-tests: New file.
31503         * modules/unictype/category-N-tests: New file.
31504         * modules/unictype/category-Nd-tests: New file.
31505         * modules/unictype/category-Nl-tests: New file.
31506         * modules/unictype/category-No-tests: New file.
31507         * modules/unictype/category-P-tests: New file.
31508         * modules/unictype/category-Pc-tests: New file.
31509         * modules/unictype/category-Pd-tests: New file.
31510         * modules/unictype/category-Pe-tests: New file.
31511         * modules/unictype/category-Pf-tests: New file.
31512         * modules/unictype/category-Pi-tests: New file.
31513         * modules/unictype/category-Po-tests: New file.
31514         * modules/unictype/category-Ps-tests: New file.
31515         * modules/unictype/category-S-tests: New file.
31516         * modules/unictype/category-Sc-tests: New file.
31517         * modules/unictype/category-Sk-tests: New file.
31518         * modules/unictype/category-Sm-tests: New file.
31519         * modules/unictype/category-So-tests: New file.
31520         * modules/unictype/category-Z-tests: New file.
31521         * modules/unictype/category-Zl-tests: New file.
31522         * modules/unictype/category-Zp-tests: New file.
31523         * modules/unictype/category-Zs-tests: New file.
31524         * modules/unictype/category-and-not-tests: New file.
31525         * modules/unictype/category-and-tests: New file.
31526         * modules/unictype/category-byname-tests: New file.
31527         * modules/unictype/category-name-tests: New file.
31528         * modules/unictype/category-none-tests: New file.
31529         * modules/unictype/category-of-tests: New file.
31530         * modules/unictype/category-or-tests: New file.
31531         * modules/unictype/category-test-withtable-tests: New file.
31532         * modules/unictype/combining-class-tests: New file.
31533         * modules/unictype/ctype-alnum-tests: New file.
31534         * modules/unictype/ctype-alpha-tests: New file.
31535         * modules/unictype/ctype-blank-tests: New file.
31536         * modules/unictype/ctype-cntrl-tests: New file.
31537         * modules/unictype/ctype-digit-tests: New file.
31538         * modules/unictype/ctype-graph-tests: New file.
31539         * modules/unictype/ctype-lower-tests: New file.
31540         * modules/unictype/ctype-print-tests: New file.
31541         * modules/unictype/ctype-punct-tests: New file.
31542         * modules/unictype/ctype-space-tests: New file.
31543         * modules/unictype/ctype-upper-tests: New file.
31544         * modules/unictype/ctype-xdigit-tests: New file.
31545         * modules/unictype/decimal-digit-tests: New file.
31546         * modules/unictype/digit-tests: New file.
31547         * modules/unictype/mirror-tests: New file.
31548         * modules/unictype/numeric-tests: New file.
31549         * modules/unictype/property-alphabetic-tests: New file.
31550         * modules/unictype/property-ascii-hex-digit-tests: New file.
31551         * modules/unictype/property-bidi-arabic-digit-tests: New file.
31552         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
31553         * modules/unictype/property-bidi-block-separator-tests: New file.
31554         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
31555         * modules/unictype/property-bidi-common-separator-tests: New file.
31556         * modules/unictype/property-bidi-control-tests: New file.
31557         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
31558         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
31559         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
31560         * modules/unictype/property-bidi-european-digit-tests: New file.
31561         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
31562         * modules/unictype/property-bidi-left-to-right-tests: New file.
31563         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
31564         * modules/unictype/property-bidi-other-neutral-tests: New file.
31565         * modules/unictype/property-bidi-pdf-tests: New file.
31566         * modules/unictype/property-bidi-segment-separator-tests: New file.
31567         * modules/unictype/property-bidi-whitespace-tests: New file.
31568         * modules/unictype/property-byname-tests: New file.
31569         * modules/unictype/property-combining-tests: New file.
31570         * modules/unictype/property-composite-tests: New file.
31571         * modules/unictype/property-currency-symbol-tests: New file.
31572         * modules/unictype/property-dash-tests: New file.
31573         * modules/unictype/property-decimal-digit-tests: New file.
31574         * modules/unictype/property-default-ignorable-code-point-tests: New file.
31575         * modules/unictype/property-deprecated-tests: New file.
31576         * modules/unictype/property-diacritic-tests: New file.
31577         * modules/unictype/property-extender-tests: New file.
31578         * modules/unictype/property-format-control-tests: New file.
31579         * modules/unictype/property-grapheme-base-tests: New file.
31580         * modules/unictype/property-grapheme-extend-tests: New file.
31581         * modules/unictype/property-grapheme-link-tests: New file.
31582         * modules/unictype/property-hex-digit-tests: New file.
31583         * modules/unictype/property-hyphen-tests: New file.
31584         * modules/unictype/property-id-continue-tests: New file.
31585         * modules/unictype/property-id-start-tests: New file.
31586         * modules/unictype/property-ideographic-tests: New file.
31587         * modules/unictype/property-ids-binary-operator-tests: New file.
31588         * modules/unictype/property-ids-trinary-operator-tests: New file.
31589         * modules/unictype/property-ignorable-control-tests: New file.
31590         * modules/unictype/property-iso-control-tests: New file.
31591         * modules/unictype/property-join-control-tests: New file.
31592         * modules/unictype/property-left-of-pair-tests: New file.
31593         * modules/unictype/property-line-separator-tests: New file.
31594         * modules/unictype/property-logical-order-exception-tests: New file.
31595         * modules/unictype/property-lowercase-tests: New file.
31596         * modules/unictype/property-math-tests: New file.
31597         * modules/unictype/property-non-break-tests: New file.
31598         * modules/unictype/property-not-a-character-tests: New file.
31599         * modules/unictype/property-numeric-tests: New file.
31600         * modules/unictype/property-other-alphabetic-tests: New file.
31601         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
31602         * modules/unictype/property-other-grapheme-extend-tests: New file.
31603         * modules/unictype/property-other-id-continue-tests: New file.
31604         * modules/unictype/property-other-id-start-tests: New file.
31605         * modules/unictype/property-other-lowercase-tests: New file.
31606         * modules/unictype/property-other-math-tests: New file.
31607         * modules/unictype/property-other-uppercase-tests: New file.
31608         * modules/unictype/property-paired-punctuation-tests: New file.
31609         * modules/unictype/property-paragraph-separator-tests: New file.
31610         * modules/unictype/property-pattern-syntax-tests: New file.
31611         * modules/unictype/property-pattern-white-space-tests: New file.
31612         * modules/unictype/property-private-use-tests: New file.
31613         * modules/unictype/property-punctuation-tests: New file.
31614         * modules/unictype/property-quotation-mark-tests: New file.
31615         * modules/unictype/property-radical-tests: New file.
31616         * modules/unictype/property-sentence-terminal-tests: New file.
31617         * modules/unictype/property-soft-dotted-tests: New file.
31618         * modules/unictype/property-space-tests: New file.
31619         * modules/unictype/property-terminal-punctuation-tests: New file.
31620         * modules/unictype/property-test-tests: New file.
31621         * modules/unictype/property-titlecase-tests: New file.
31622         * modules/unictype/property-unassigned-code-value-tests: New file.
31623         * modules/unictype/property-unified-ideograph-tests: New file.
31624         * modules/unictype/property-uppercase-tests: New file.
31625         * modules/unictype/property-variation-selector-tests: New file.
31626         * modules/unictype/property-white-space-tests: New file.
31627         * modules/unictype/property-xid-continue-tests: New file.
31628         * modules/unictype/property-xid-start-tests: New file.
31629         * modules/unictype/property-zero-width-tests: New file.
31630         * modules/unictype/scripts-tests: New file.
31631         * modules/unictype/syntax-c-ident-tests: New file.
31632         * modules/unictype/syntax-c-whitespace-tests: New file.
31633         * modules/unictype/syntax-java-ident-tests: New file.
31634         * modules/unictype/syntax-java-whitespace-tests: New file.
31635         * tests/unictype/test-bidi_byname.c: New file.
31636         * tests/unictype/test-bidi_name.c: New file.
31637         * tests/unictype/test-bidi_of.c: New file.
31638         * tests/unictype/test-bidi_test.c: New file.
31639         * tests/unictype/test-block_list.c: New file.
31640         * tests/unictype/test-block_of.c: New file.
31641         * tests/unictype/test-block_test.c: New file.
31642         * tests/unictype/test-categ_and.c: New file.
31643         * tests/unictype/test-categ_and_not.c: New file.
31644         * tests/unictype/test-categ_byname.c: New file.
31645         * tests/unictype/test-categ_name.c: New file.
31646         * tests/unictype/test-categ_none.c: New file.
31647         * tests/unictype/test-categ_of.c: New file.
31648         * tests/unictype/test-categ_or.c: New file.
31649         * tests/unictype/test-categ_test_withtable.c: New file.
31650         * tests/unictype/test-combining.c: New file.
31651         * tests/unictype/test-decdigit.c: New file.
31652         * tests/unictype/test-digit.c: New file.
31653         * tests/unictype/test-mirror.c: New file.
31654         * tests/unictype/test-numeric.c: New file.
31655         * tests/unictype/test-pr_byname.c: New file.
31656         * tests/unictype/test-pr_test.c: New file.
31657         * tests/unictype/test-predicate-part1.h: New file.
31658         * tests/unictype/test-predicate-part2.h: New file.
31659         * tests/unictype/test-scripts.c: New file.
31660         * tests/unictype/test-sy_c_ident.c: New file.
31661         * tests/unictype/test-sy_java_ident.c: New file.
31663         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
31664         for Unicode 5.0.0.
31665         * tests/unictype/test-categ_Cc.c: Likewise.
31666         * tests/unictype/test-categ_Cf.c: Likewise.
31667         * tests/unictype/test-categ_Cn.c: Likewise.
31668         * tests/unictype/test-categ_Co.c: Likewise.
31669         * tests/unictype/test-categ_Cs.c: Likewise.
31670         * tests/unictype/test-categ_L.c: Likewise.
31671         * tests/unictype/test-categ_Ll.c: Likewise.
31672         * tests/unictype/test-categ_Lm.c: Likewise.
31673         * tests/unictype/test-categ_Lo.c: Likewise.
31674         * tests/unictype/test-categ_Lt.c: Likewise.
31675         * tests/unictype/test-categ_Lu.c: Likewise.
31676         * tests/unictype/test-categ_M.c: Likewise.
31677         * tests/unictype/test-categ_Mc.c: Likewise.
31678         * tests/unictype/test-categ_Me.c: Likewise.
31679         * tests/unictype/test-categ_Mn.c: Likewise.
31680         * tests/unictype/test-categ_N.c: Likewise.
31681         * tests/unictype/test-categ_Nd.c: Likewise.
31682         * tests/unictype/test-categ_Nl.c: Likewise.
31683         * tests/unictype/test-categ_No.c: Likewise.
31684         * tests/unictype/test-categ_P.c: Likewise.
31685         * tests/unictype/test-categ_Pc.c: Likewise.
31686         * tests/unictype/test-categ_Pd.c: Likewise.
31687         * tests/unictype/test-categ_Pe.c: Likewise.
31688         * tests/unictype/test-categ_Pf.c: Likewise.
31689         * tests/unictype/test-categ_Pi.c: Likewise.
31690         * tests/unictype/test-categ_Po.c: Likewise.
31691         * tests/unictype/test-categ_Ps.c: Likewise.
31692         * tests/unictype/test-categ_S.c: Likewise.
31693         * tests/unictype/test-categ_Sc.c: Likewise.
31694         * tests/unictype/test-categ_Sk.c: Likewise.
31695         * tests/unictype/test-categ_Sm.c: Likewise.
31696         * tests/unictype/test-categ_So.c: Likewise.
31697         * tests/unictype/test-categ_Z.c: Likewise.
31698         * tests/unictype/test-categ_Zl.c: Likewise.
31699         * tests/unictype/test-categ_Zp.c: Likewise.
31700         * tests/unictype/test-categ_Zs.c: Likewise.
31701         * tests/unictype/test-ctype_alnum.c: Likewise.
31702         * tests/unictype/test-ctype_alpha.c: Likewise.
31703         * tests/unictype/test-ctype_blank.c: Likewise.
31704         * tests/unictype/test-ctype_cntrl.c: Likewise.
31705         * tests/unictype/test-ctype_digit.c: Likewise.
31706         * tests/unictype/test-ctype_graph.c: Likewise.
31707         * tests/unictype/test-ctype_lower.c: Likewise.
31708         * tests/unictype/test-ctype_print.c: Likewise.
31709         * tests/unictype/test-ctype_punct.c: Likewise.
31710         * tests/unictype/test-ctype_space.c: Likewise.
31711         * tests/unictype/test-ctype_upper.c: Likewise.
31712         * tests/unictype/test-ctype_xdigit.c: Likewise.
31713         * tests/unictype/test-decdigit.h: Likewise.
31714         * tests/unictype/test-digit.h: Likewise.
31715         * tests/unictype/test-numeric.h: Likewise.
31716         * tests/unictype/test-pr_alphabetic.c: Likewise.
31717         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
31718         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
31719         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
31720         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
31721         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
31722         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
31723         * tests/unictype/test-pr_bidi_control.c: Likewise.
31724         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
31725         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
31726         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
31727         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
31728         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
31729         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
31730         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
31731         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
31732         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
31733         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
31734         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
31735         * tests/unictype/test-pr_combining.c: Likewise.
31736         * tests/unictype/test-pr_composite.c: Likewise.
31737         * tests/unictype/test-pr_currency_symbol.c: Likewise.
31738         * tests/unictype/test-pr_dash.c: Likewise.
31739         * tests/unictype/test-pr_decimal_digit.c: Likewise.
31740         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
31741         * tests/unictype/test-pr_deprecated.c: Likewise.
31742         * tests/unictype/test-pr_diacritic.c: Likewise.
31743         * tests/unictype/test-pr_extender.c: Likewise.
31744         * tests/unictype/test-pr_format_control.c: Likewise.
31745         * tests/unictype/test-pr_grapheme_base.c: Likewise.
31746         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
31747         * tests/unictype/test-pr_grapheme_link.c: Likewise.
31748         * tests/unictype/test-pr_hex_digit.c: Likewise.
31749         * tests/unictype/test-pr_hyphen.c: Likewise.
31750         * tests/unictype/test-pr_id_continue.c: Likewise.
31751         * tests/unictype/test-pr_id_start.c: Likewise.
31752         * tests/unictype/test-pr_ideographic.c: Likewise.
31753         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
31754         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
31755         * tests/unictype/test-pr_ignorable_control.c: Likewise.
31756         * tests/unictype/test-pr_iso_control.c: Likewise.
31757         * tests/unictype/test-pr_join_control.c: Likewise.
31758         * tests/unictype/test-pr_left_of_pair.c: Likewise.
31759         * tests/unictype/test-pr_line_separator.c: Likewise.
31760         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
31761         * tests/unictype/test-pr_lowercase.c: Likewise.
31762         * tests/unictype/test-pr_math.c: Likewise.
31763         * tests/unictype/test-pr_non_break.c: Likewise.
31764         * tests/unictype/test-pr_not_a_character.c: Likewise.
31765         * tests/unictype/test-pr_numeric.c: Likewise.
31766         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
31767         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
31768         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
31769         * tests/unictype/test-pr_other_id_continue.c: Likewise.
31770         * tests/unictype/test-pr_other_id_start.c: Likewise.
31771         * tests/unictype/test-pr_other_lowercase.c: Likewise.
31772         * tests/unictype/test-pr_other_math.c: Likewise.
31773         * tests/unictype/test-pr_other_uppercase.c: Likewise.
31774         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
31775         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
31776         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
31777         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
31778         * tests/unictype/test-pr_private_use.c: Likewise.
31779         * tests/unictype/test-pr_punctuation.c: Likewise.
31780         * tests/unictype/test-pr_quotation_mark.c: Likewise.
31781         * tests/unictype/test-pr_radical.c: Likewise.
31782         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
31783         * tests/unictype/test-pr_soft_dotted.c: Likewise.
31784         * tests/unictype/test-pr_space.c: Likewise.
31785         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
31786         * tests/unictype/test-pr_titlecase.c: Likewise.
31787         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
31788         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
31789         * tests/unictype/test-pr_uppercase.c: Likewise.
31790         * tests/unictype/test-pr_variation_selector.c: Likewise.
31791         * tests/unictype/test-pr_white_space.c: Likewise.
31792         * tests/unictype/test-pr_xid_continue.c: Likewise.
31793         * tests/unictype/test-pr_xid_start.c: Likewise.
31794         * tests/unictype/test-pr_zero_width.c: Likewise.
31795         * tests/unictype/test-sy_c_whitespace.c: Likewise.
31796         * tests/unictype/test-sy_java_whitespace.c: Likewise.
31798 2007-11-12  Bruno Haible  <bruno@clisp.org>
31800         Unicode character classification functions.
31801         * lib/unictype.h: New file.
31802         * modules/unictype/base: New file.
31803         * modules/unictype/category-L: New file.
31804         * modules/unictype/category-Lu: New file.
31805         * modules/unictype/category-Ll: New file.
31806         * modules/unictype/category-Lt: New file.
31807         * modules/unictype/category-Lm: New file.
31808         * modules/unictype/category-Lo: New file.
31809         * modules/unictype/category-M: New file.
31810         * modules/unictype/category-Mn: New file.
31811         * modules/unictype/category-Mc: New file.
31812         * modules/unictype/category-Me: New file.
31813         * modules/unictype/category-N: New file.
31814         * modules/unictype/category-Nd: New file.
31815         * modules/unictype/category-Nl: New file.
31816         * modules/unictype/category-No: New file.
31817         * modules/unictype/category-P: New file.
31818         * modules/unictype/category-Pc: New file.
31819         * modules/unictype/category-Pd: New file.
31820         * modules/unictype/category-Ps: New file.
31821         * modules/unictype/category-Pe: New file.
31822         * modules/unictype/category-Pi: New file.
31823         * modules/unictype/category-Pf: New file.
31824         * modules/unictype/category-Po: New file.
31825         * modules/unictype/category-S: New file.
31826         * modules/unictype/category-Sm: New file.
31827         * modules/unictype/category-Sc: New file.
31828         * modules/unictype/category-Sk: New file.
31829         * modules/unictype/category-So: New file.
31830         * modules/unictype/category-Z: New file.
31831         * modules/unictype/category-Zs: New file.
31832         * modules/unictype/category-Zl: New file.
31833         * modules/unictype/category-Zp: New file.
31834         * modules/unictype/category-C: New file.
31835         * modules/unictype/category-Cc: New file.
31836         * modules/unictype/category-Cf: New file.
31837         * modules/unictype/category-Cs: New file.
31838         * modules/unictype/category-Co: New file.
31839         * modules/unictype/category-Cn: New file.
31840         * modules/unictype/category-or: New file.
31841         * modules/unictype/category-of: New file.
31842         * modules/unictype/category-test: New file.
31843         * modules/unictype/category-test-withtable: New file.
31844         * modules/unictype/category-byname: New file.
31845         * modules/unictype/category-none: New file.
31846         * modules/unictype/category-and: New file.
31847         * modules/unictype/category-and-not: New file.
31848         * modules/unictype/category-name: New file.
31849         * modules/unictype/combining-class: New file.
31850         * modules/unictype/category-all: New file.
31851         * modules/unictype/bidicategory-all: New file.
31852         * modules/unictype/bidicategory-byname: New file.
31853         * modules/unictype/bidicategory-name: New file.
31854         * modules/unictype/bidicategory-of: New file.
31855         * modules/unictype/bidicategory-test: New file.
31856         * modules/unictype/decimal-digit: New file.
31857         * modules/unictype/digit: New file.
31858         * modules/unictype/numeric: New file.
31859         * modules/unictype/mirror: New file.
31860         * modules/unictype/property-white-space: New file.
31861         * modules/unictype/property-alphabetic: New file.
31862         * modules/unictype/property-other-alphabetic: New file.
31863         * modules/unictype/property-not-a-character: New file.
31864         * modules/unictype/property-default-ignorable-code-point: New file.
31865         * modules/unictype/property-other-default-ignorable-code-point: New
31866         file.
31867         * modules/unictype/property-deprecated: New file.
31868         * modules/unictype/property-logical-order-exception: New file.
31869         * modules/unictype/property-variation-selector: New file.
31870         * modules/unictype/property-private-use: New file.
31871         * modules/unictype/property-unassigned-code-value: New file.
31872         * modules/unictype/property-uppercase: New file.
31873         * modules/unictype/property-other-uppercase: New file.
31874         * modules/unictype/property-lowercase: New file.
31875         * modules/unictype/property-other-lowercase: New file.
31876         * modules/unictype/property-titlecase: New file.
31877         * modules/unictype/property-soft-dotted: New file.
31878         * modules/unictype/property-id-start: New file.
31879         * modules/unictype/property-other-id-start: New file.
31880         * modules/unictype/property-id-continue: New file.
31881         * modules/unictype/property-other-id-continue: New file.
31882         * modules/unictype/property-xid-start: New file.
31883         * modules/unictype/property-xid-continue: New file.
31884         * modules/unictype/property-pattern-white-space: New file.
31885         * modules/unictype/property-pattern-syntax: New file.
31886         * modules/unictype/property-join-control: New file.
31887         * modules/unictype/property-grapheme-base: New file.
31888         * modules/unictype/property-grapheme-extend: New file.
31889         * modules/unictype/property-other-grapheme-extend: New file.
31890         * modules/unictype/property-grapheme-link: New file.
31891         * modules/unictype/property-bidi-control: New file.
31892         * modules/unictype/property-bidi-left-to-right: New file.
31893         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
31894         * modules/unictype/property-bidi-arabic-right-to-left: New file.
31895         * modules/unictype/property-bidi-european-digit: New file.
31896         * modules/unictype/property-bidi-eur-num-separator: New file.
31897         * modules/unictype/property-bidi-eur-num-terminator: New file.
31898         * modules/unictype/property-bidi-arabic-digit: New file.
31899         * modules/unictype/property-bidi-common-separator: New file.
31900         * modules/unictype/property-bidi-block-separator: New file.
31901         * modules/unictype/property-bidi-segment-separator: New file.
31902         * modules/unictype/property-bidi-whitespace: New file.
31903         * modules/unictype/property-bidi-non-spacing-mark: New file.
31904         * modules/unictype/property-bidi-boundary-neutral: New file.
31905         * modules/unictype/property-bidi-pdf: New file.
31906         * modules/unictype/property-bidi-embedding-or-override: New file.
31907         * modules/unictype/property-bidi-other-neutral: New file.
31908         * modules/unictype/property-hex-digit: New file.
31909         * modules/unictype/property-ascii-hex-digit: New file.
31910         * modules/unictype/property-ideographic: New file.
31911         * modules/unictype/property-unified-ideograph: New file.
31912         * modules/unictype/property-radical: New file.
31913         * modules/unictype/property-ids-binary-operator: New file.
31914         * modules/unictype/property-ids-trinary-operator: New file.
31915         * modules/unictype/property-zero-width: New file.
31916         * modules/unictype/property-space: New file.
31917         * modules/unictype/property-non-break: New file.
31918         * modules/unictype/property-iso-control: New file.
31919         * modules/unictype/property-format-control: New file.
31920         * modules/unictype/property-dash: New file.
31921         * modules/unictype/property-hyphen: New file.
31922         * modules/unictype/property-punctuation: New file.
31923         * modules/unictype/property-line-separator: New file.
31924         * modules/unictype/property-paragraph-separator: New file.
31925         * modules/unictype/property-quotation-mark: New file.
31926         * modules/unictype/property-sentence-terminal: New file.
31927         * modules/unictype/property-terminal-punctuation: New file.
31928         * modules/unictype/property-currency-symbol: New file.
31929         * modules/unictype/property-math: New file.
31930         * modules/unictype/property-other-math: New file.
31931         * modules/unictype/property-paired-punctuation: New file.
31932         * modules/unictype/property-left-of-pair: New file.
31933         * modules/unictype/property-combining: New file.
31934         * modules/unictype/property-composite: New file.
31935         * modules/unictype/property-decimal-digit: New file.
31936         * modules/unictype/property-numeric: New file.
31937         * modules/unictype/property-diacritic: New file.
31938         * modules/unictype/property-extender: New file.
31939         * modules/unictype/property-ignorable-control: New file.
31940         * modules/unictype/property-test: New file.
31941         * modules/unictype/property-byname: New file.
31942         * modules/unictype/property-all: New file.
31943         * modules/unictype/scripts: New file.
31944         * modules/unictype/scripts-all: New file.
31945         * modules/unictype/block-of: New file.
31946         * modules/unictype/block-test: New file.
31947         * modules/unictype/block-list: New file.
31948         * modules/unictype/block-all: New file.
31949         * modules/unictype/syntax-c-whitespace: New file.
31950         * modules/unictype/syntax-java-whitespace: New file.
31951         * modules/unictype/syntax-c-ident: New file.
31952         * modules/unictype/syntax-java-ident: New file.
31953         * modules/unictype/ctype-alnum: New file.
31954         * modules/unictype/ctype-alpha: New file.
31955         * modules/unictype/ctype-cntrl: New file.
31956         * modules/unictype/ctype-digit: New file.
31957         * modules/unictype/ctype-graph: New file.
31958         * modules/unictype/ctype-lower: New file.
31959         * modules/unictype/ctype-print: New file.
31960         * modules/unictype/ctype-punct: New file.
31961         * modules/unictype/ctype-space: New file.
31962         * modules/unictype/ctype-upper: New file.
31963         * modules/unictype/ctype-xdigit: New file.
31964         * modules/unictype/ctype-blank: New file.
31965         * lib/unictype/bidi_byname.c: New file.
31966         * lib/unictype/bidi_name.c: New file.
31967         * lib/unictype/bidi_of.c: New file.
31968         * lib/unictype/bidi_test.c: New file.
31969         * lib/unictype/bitmap.h: New file.
31970         * lib/unictype/block_test.c: New file.
31971         * lib/unictype/blocks.c: New file.
31972         * lib/unictype/categ_C.c: New file.
31973         * lib/unictype/categ_Cc.c: New file.
31974         * lib/unictype/categ_Cf.c: New file.
31975         * lib/unictype/categ_Cn.c: New file.
31976         * lib/unictype/categ_Co.c: New file.
31977         * lib/unictype/categ_Cs.c: New file.
31978         * lib/unictype/categ_L.c: New file.
31979         * lib/unictype/categ_Ll.c: New file.
31980         * lib/unictype/categ_Lm.c: New file.
31981         * lib/unictype/categ_Lo.c: New file.
31982         * lib/unictype/categ_Lt.c: New file.
31983         * lib/unictype/categ_Lu.c: New file.
31984         * lib/unictype/categ_M.c: New file.
31985         * lib/unictype/categ_Mc.c: New file.
31986         * lib/unictype/categ_Me.c: New file.
31987         * lib/unictype/categ_Mn.c: New file.
31988         * lib/unictype/categ_N.c: New file.
31989         * lib/unictype/categ_Nd.c: New file.
31990         * lib/unictype/categ_Nl.c: New file.
31991         * lib/unictype/categ_No.c: New file.
31992         * lib/unictype/categ_P.c: New file.
31993         * lib/unictype/categ_Pc.c: New file.
31994         * lib/unictype/categ_Pd.c: New file.
31995         * lib/unictype/categ_Pe.c: New file.
31996         * lib/unictype/categ_Pf.c: New file.
31997         * lib/unictype/categ_Pi.c: New file.
31998         * lib/unictype/categ_Po.c: New file.
31999         * lib/unictype/categ_Ps.c: New file.
32000         * lib/unictype/categ_S.c: New file.
32001         * lib/unictype/categ_Sc.c: New file.
32002         * lib/unictype/categ_Sk.c: New file.
32003         * lib/unictype/categ_Sm.c: New file.
32004         * lib/unictype/categ_So.c: New file.
32005         * lib/unictype/categ_Z.c: New file.
32006         * lib/unictype/categ_Zl.c: New file.
32007         * lib/unictype/categ_Zp.c: New file.
32008         * lib/unictype/categ_Zs.c: New file.
32009         * lib/unictype/categ_and.c: New file.
32010         * lib/unictype/categ_and_not.c: New file.
32011         * lib/unictype/categ_byname.c: New file.
32012         * lib/unictype/categ_name.c: New file.
32013         * lib/unictype/categ_none.c: New file.
32014         * lib/unictype/categ_of.c: New file.
32015         * lib/unictype/categ_or.c: New file.
32016         * lib/unictype/categ_test.c: New file.
32017         * lib/unictype/combining.c: New file.
32018         * lib/unictype/ctype_alnum.c: New file.
32019         * lib/unictype/ctype_alpha.c: New file.
32020         * lib/unictype/ctype_blank.c: New file.
32021         * lib/unictype/ctype_cntrl.c: New file.
32022         * lib/unictype/ctype_digit.c: New file.
32023         * lib/unictype/ctype_graph.c: New file.
32024         * lib/unictype/ctype_lower.c: New file.
32025         * lib/unictype/ctype_print.c: New file.
32026         * lib/unictype/ctype_punct.c: New file.
32027         * lib/unictype/ctype_space.c: New file.
32028         * lib/unictype/ctype_upper.c: New file.
32029         * lib/unictype/ctype_xdigit.c: New file.
32030         * lib/unictype/decdigit.c: New file.
32031         * lib/unictype/digit.c: New file.
32032         * lib/unictype/identsyntaxmap.h: New file.
32033         * lib/unictype/mirror.c: New file.
32034         * lib/unictype/numeric.c: New file.
32035         * lib/unictype/pr_alphabetic.c: New file.
32036         * lib/unictype/pr_ascii_hex_digit.c: New file.
32037         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32038         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32039         * lib/unictype/pr_bidi_block_separator.c: New file.
32040         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32041         * lib/unictype/pr_bidi_common_separator.c: New file.
32042         * lib/unictype/pr_bidi_control.c: New file.
32043         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32044         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32045         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32046         * lib/unictype/pr_bidi_european_digit.c: New file.
32047         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32048         * lib/unictype/pr_bidi_left_to_right.c: New file.
32049         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32050         * lib/unictype/pr_bidi_other_neutral.c: New file.
32051         * lib/unictype/pr_bidi_pdf.c: New file.
32052         * lib/unictype/pr_bidi_segment_separator.c: New file.
32053         * lib/unictype/pr_bidi_whitespace.c: New file.
32054         * lib/unictype/pr_byname.c: New file.
32055         * lib/unictype/pr_byname.gperf: New file.
32056         * lib/unictype/pr_combining.c: New file.
32057         * lib/unictype/pr_composite.c: New file.
32058         * lib/unictype/pr_currency_symbol.c: New file.
32059         * lib/unictype/pr_dash.c: New file.
32060         * lib/unictype/pr_decimal_digit.c: New file.
32061         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32062         * lib/unictype/pr_deprecated.c: New file.
32063         * lib/unictype/pr_diacritic.c: New file.
32064         * lib/unictype/pr_extender.c: New file.
32065         * lib/unictype/pr_format_control.c: New file.
32066         * lib/unictype/pr_grapheme_base.c: New file.
32067         * lib/unictype/pr_grapheme_extend.c: New file.
32068         * lib/unictype/pr_grapheme_link.c: New file.
32069         * lib/unictype/pr_hex_digit.c: New file.
32070         * lib/unictype/pr_hyphen.c: New file.
32071         * lib/unictype/pr_id_continue.c: New file.
32072         * lib/unictype/pr_id_start.c: New file.
32073         * lib/unictype/pr_ideographic.c: New file.
32074         * lib/unictype/pr_ids_binary_operator.c: New file.
32075         * lib/unictype/pr_ids_trinary_operator.c: New file.
32076         * lib/unictype/pr_ignorable_control.c: New file.
32077         * lib/unictype/pr_iso_control.c: New file.
32078         * lib/unictype/pr_join_control.c: New file.
32079         * lib/unictype/pr_left_of_pair.c: New file.
32080         * lib/unictype/pr_line_separator.c: New file.
32081         * lib/unictype/pr_logical_order_exception.c: New file.
32082         * lib/unictype/pr_lowercase.c: New file.
32083         * lib/unictype/pr_math.c: New file.
32084         * lib/unictype/pr_non_break.c: New file.
32085         * lib/unictype/pr_not_a_character.c: New file.
32086         * lib/unictype/pr_numeric.c: New file.
32087         * lib/unictype/pr_other_alphabetic.c: New file.
32088         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32089         * lib/unictype/pr_other_grapheme_extend.c: New file.
32090         * lib/unictype/pr_other_id_continue.c: New file.
32091         * lib/unictype/pr_other_id_start.c: New file.
32092         * lib/unictype/pr_other_lowercase.c: New file.
32093         * lib/unictype/pr_other_math.c: New file.
32094         * lib/unictype/pr_other_uppercase.c: New file.
32095         * lib/unictype/pr_paired_punctuation.c: New file.
32096         * lib/unictype/pr_paragraph_separator.c: New file.
32097         * lib/unictype/pr_pattern_syntax.c: New file.
32098         * lib/unictype/pr_pattern_white_space.c: New file.
32099         * lib/unictype/pr_private_use.c: New file.
32100         * lib/unictype/pr_punctuation.c: New file.
32101         * lib/unictype/pr_quotation_mark.c: New file.
32102         * lib/unictype/pr_radical.c: New file.
32103         * lib/unictype/pr_sentence_terminal.c: New file.
32104         * lib/unictype/pr_soft_dotted.c: New file.
32105         * lib/unictype/pr_space.c: New file.
32106         * lib/unictype/pr_terminal_punctuation.c: New file.
32107         * lib/unictype/pr_test.c: New file.
32108         * lib/unictype/pr_titlecase.c: New file.
32109         * lib/unictype/pr_unassigned_code_value.c: New file.
32110         * lib/unictype/pr_unified_ideograph.c: New file.
32111         * lib/unictype/pr_uppercase.c: New file.
32112         * lib/unictype/pr_variation_selector.c: New file.
32113         * lib/unictype/pr_white_space.c: New file.
32114         * lib/unictype/pr_xid_continue.c: New file.
32115         * lib/unictype/pr_xid_start.c: New file.
32116         * lib/unictype/pr_zero_width.c: New file.
32117         * lib/unictype/scripts.c: New file.
32118         * lib/unictype/sy_c_ident.c: New file.
32119         * lib/unictype/sy_c_whitespace.c: New file.
32120         * lib/unictype/sy_java_ident.c: New file.
32121         * lib/unictype/sy_java_whitespace.c: New file.
32123         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32124         Unicode 5.0.0.
32125         * lib/unictype/blocks.h: Likewise.
32126         * lib/unictype/categ_C.h: Likewise.
32127         * lib/unictype/categ_Cc.h: Likewise.
32128         * lib/unictype/categ_Cf.h: Likewise.
32129         * lib/unictype/categ_Cn.h: Likewise.
32130         * lib/unictype/categ_Co.h: Likewise.
32131         * lib/unictype/categ_Cs.h: Likewise.
32132         * lib/unictype/categ_L.h: Likewise.
32133         * lib/unictype/categ_Ll.h: Likewise.
32134         * lib/unictype/categ_Lm.h: Likewise.
32135         * lib/unictype/categ_Lo.h: Likewise.
32136         * lib/unictype/categ_Lt.h: Likewise.
32137         * lib/unictype/categ_Lu.h: Likewise.
32138         * lib/unictype/categ_M.h: Likewise.
32139         * lib/unictype/categ_Mc.h: Likewise.
32140         * lib/unictype/categ_Me.h: Likewise.
32141         * lib/unictype/categ_Mn.h: Likewise.
32142         * lib/unictype/categ_N.h: Likewise.
32143         * lib/unictype/categ_Nd.h: Likewise.
32144         * lib/unictype/categ_Nl.h: Likewise.
32145         * lib/unictype/categ_No.h: Likewise.
32146         * lib/unictype/categ_P.h: Likewise.
32147         * lib/unictype/categ_Pc.h: Likewise.
32148         * lib/unictype/categ_Pd.h: Likewise.
32149         * lib/unictype/categ_Pe.h: Likewise.
32150         * lib/unictype/categ_Pf.h: Likewise.
32151         * lib/unictype/categ_Pi.h: Likewise.
32152         * lib/unictype/categ_Po.h: Likewise.
32153         * lib/unictype/categ_Ps.h: Likewise.
32154         * lib/unictype/categ_S.h: Likewise.
32155         * lib/unictype/categ_Sc.h: Likewise.
32156         * lib/unictype/categ_Sk.h: Likewise.
32157         * lib/unictype/categ_Sm.h: Likewise.
32158         * lib/unictype/categ_So.h: Likewise.
32159         * lib/unictype/categ_Z.h: Likewise.
32160         * lib/unictype/categ_Zl.h: Likewise.
32161         * lib/unictype/categ_Zp.h: Likewise.
32162         * lib/unictype/categ_Zs.h: Likewise.
32163         * lib/unictype/categ_of.h: Likewise.
32164         * lib/unictype/combining.h: Likewise.
32165         * lib/unictype/ctype_alnum.h: Likewise.
32166         * lib/unictype/ctype_alpha.h: Likewise.
32167         * lib/unictype/ctype_blank.h: Likewise.
32168         * lib/unictype/ctype_cntrl.h: Likewise.
32169         * lib/unictype/ctype_digit.h: Likewise.
32170         * lib/unictype/ctype_graph.h: Likewise.
32171         * lib/unictype/ctype_lower.h: Likewise.
32172         * lib/unictype/ctype_print.h: Likewise.
32173         * lib/unictype/ctype_punct.h: Likewise.
32174         * lib/unictype/ctype_space.h: Likewise.
32175         * lib/unictype/ctype_upper.h: Likewise.
32176         * lib/unictype/ctype_xdigit.h: Likewise.
32177         * lib/unictype/decdigit.h: Likewise.
32178         * lib/unictype/digit.h: Likewise.
32179         * lib/unictype/mirror.h: Likewise.
32180         * lib/unictype/numeric.h: Likewise.
32181         * lib/unictype/pr_alphabetic.h: Likewise.
32182         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32183         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32184         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32185         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32186         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32187         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32188         * lib/unictype/pr_bidi_control.h: Likewise.
32189         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32190         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32191         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32192         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32193         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32194         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32195         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32196         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32197         * lib/unictype/pr_bidi_pdf.h: Likewise.
32198         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32199         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32200         * lib/unictype/pr_combining.h: Likewise.
32201         * lib/unictype/pr_composite.h: Likewise.
32202         * lib/unictype/pr_currency_symbol.h: Likewise.
32203         * lib/unictype/pr_dash.h: Likewise.
32204         * lib/unictype/pr_decimal_digit.h: Likewise.
32205         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32206         * lib/unictype/pr_deprecated.h: Likewise.
32207         * lib/unictype/pr_diacritic.h: Likewise.
32208         * lib/unictype/pr_extender.h: Likewise.
32209         * lib/unictype/pr_format_control.h: Likewise.
32210         * lib/unictype/pr_grapheme_base.h: Likewise.
32211         * lib/unictype/pr_grapheme_extend.h: Likewise.
32212         * lib/unictype/pr_grapheme_link.h: Likewise.
32213         * lib/unictype/pr_hex_digit.h: Likewise.
32214         * lib/unictype/pr_hyphen.h: Likewise.
32215         * lib/unictype/pr_id_continue.h: Likewise.
32216         * lib/unictype/pr_id_start.h: Likewise.
32217         * lib/unictype/pr_ideographic.h: Likewise.
32218         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32219         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32220         * lib/unictype/pr_ignorable_control.h: Likewise.
32221         * lib/unictype/pr_iso_control.h: Likewise.
32222         * lib/unictype/pr_join_control.h: Likewise.
32223         * lib/unictype/pr_left_of_pair.h: Likewise.
32224         * lib/unictype/pr_line_separator.h: Likewise.
32225         * lib/unictype/pr_logical_order_exception.h: Likewise.
32226         * lib/unictype/pr_lowercase.h: Likewise.
32227         * lib/unictype/pr_math.h: Likewise.
32228         * lib/unictype/pr_non_break.h: Likewise.
32229         * lib/unictype/pr_not_a_character.h: Likewise.
32230         * lib/unictype/pr_numeric.h: Likewise.
32231         * lib/unictype/pr_other_alphabetic.h: Likewise.
32232         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32233         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32234         * lib/unictype/pr_other_id_continue.h: Likewise.
32235         * lib/unictype/pr_other_id_start.h: Likewise.
32236         * lib/unictype/pr_other_lowercase.h: Likewise.
32237         * lib/unictype/pr_other_math.h: Likewise.
32238         * lib/unictype/pr_other_uppercase.h: Likewise.
32239         * lib/unictype/pr_paired_punctuation.h: Likewise.
32240         * lib/unictype/pr_paragraph_separator.h: Likewise.
32241         * lib/unictype/pr_pattern_syntax.h: Likewise.
32242         * lib/unictype/pr_pattern_white_space.h: Likewise.
32243         * lib/unictype/pr_private_use.h: Likewise.
32244         * lib/unictype/pr_punctuation.h: Likewise.
32245         * lib/unictype/pr_quotation_mark.h: Likewise.
32246         * lib/unictype/pr_radical.h: Likewise.
32247         * lib/unictype/pr_sentence_terminal.h: Likewise.
32248         * lib/unictype/pr_soft_dotted.h: Likewise.
32249         * lib/unictype/pr_space.h: Likewise.
32250         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32251         * lib/unictype/pr_titlecase.h: Likewise.
32252         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32253         * lib/unictype/pr_unified_ideograph.h: Likewise.
32254         * lib/unictype/pr_uppercase.h: Likewise.
32255         * lib/unictype/pr_variation_selector.h: Likewise.
32256         * lib/unictype/pr_white_space.h: Likewise.
32257         * lib/unictype/pr_xid_continue.h: Likewise.
32258         * lib/unictype/pr_xid_start.h: Likewise.
32259         * lib/unictype/pr_zero_width.h: Likewise.
32260         * lib/unictype/scripts.h: Likewise.
32261         * lib/unictype/scripts_byname.gperf: Likewise.
32262         * lib/unictype/sy_c_ident.h: Likewise.
32263         * lib/unictype/sy_c_whitespace.h: Likewise.
32264         * lib/unictype/sy_java_ident.h: Likewise.
32265         * lib/unictype/sy_java_whitespace.h: Likewise.
32267         * lib/unictype/Makefile: New file.
32268         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32269         glibc.
32270         * lib/unictype/3level.h: New file, copied from glibc.
32271         * lib/unictype/3levelbit.h: New file.
32273 2007-11-11  Bruno Haible  <bruno@clisp.org>
32275         * modules/gperf: New file.
32276         * modules/iconv_open (Depends-on): Add it.
32277         (Makefile.am): Remove the GPERF definition.
32279 2007-11-11  Bruno Haible  <bruno@clisp.org>
32281         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32282         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32284 2007-11-11  Bruno Haible  <bruno@clisp.org>
32286         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32287         (usage): Remove function.
32289 2007-11-11  Bruno Haible  <bruno@clisp.org>
32291         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32292         gl_FUNC_CEILF_LIBS.
32293         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32294         gl_FUNC_CEIL_LIBS.
32295         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32296         gl_FUNC_CEILL_LIBS.
32297         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32298         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32299         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32301 2007-11-11  Bruno Haible  <bruno@clisp.org>
32303         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32304         roundf were declared but do not exist on functions.
32305         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
32306         roundl were declared but do not exist on functions.
32307         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
32308         HAVE_FLOORL_AND_CEILL, respectively.
32309         Needed for Sun C on Solaris 10.
32311 2007-11-11  Bruno Haible  <bruno@clisp.org>
32313         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
32314         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
32315         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
32316         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
32317         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
32318         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
32319         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
32320         HAVE_DECL_ROUNDF.
32321         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
32322         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
32323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
32324         of HAVE_DECL_ROUND*.
32325         * modules/math (Makefile.am): Update.
32327 2007-11-10  Bruno Haible  <bruno@clisp.org>
32329         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
32330         ptrdiff_t as m4/intl.m4.
32332 2007-11-10  Jim Meyering  <meyering@redhat.com>
32334         Avoid link failure for the argmatch test.
32335         * tests/test-argmatch.c (usage): Define function to avoid a link
32336         failure: argmatch_die requires a usage function.
32338 2007-11-09  Bruno Haible  <bruno@clisp.org>
32340         * doc/functions/snprintf.texi: Mention BeOS deficiency.
32341         * doc/functions/vsnprintf.texi: Likewise.
32342         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
32343         with a size argument < 2.
32345 2007-11-09  Bruno Haible  <bruno@clisp.org>
32347         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
32348         buffer. Fixes an inefficiency introduced on 2007-11-03.
32350 2007-11-09  Bruno Haible  <bruno@clisp.org>
32352         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
32353         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
32355 2007-11-08  Jim Meyering  <meyering@redhat.com>
32357         Change cache variable name prefix "jm_" to "gl_" everywhere.
32358         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
32359         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
32360         * m4/uptime.m4: s/gl_/jm_/
32362 2007-11-07  Bruno Haible  <bruno@clisp.org>
32364         Update to GNU gettext 0.17.
32365         * m4/intl.m4: Update to GNU gettext 0.17.
32366         * m4/po.m4: Likewise.
32367         * modules/gettext (Files): Remove m4/ulonglong.m4.
32368         (configure.ac): Require gettext infrastructure from version 0.17.
32370 2007-11-06  Bruno Haible  <bruno@clisp.org>
32372         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
32373         symbolic values are not defined in a public header.
32374         * lib/freadable.c (freadable) [QNX]: Likewise.
32375         * lib/freadahead.c (freadahead) [QNX]: Likewise.
32376         * lib/freading.c (freading) [QNX]: Likewise.
32377         * lib/fseterr.c (fseterr) [QNX]: Likewise.
32378         * lib/fwritable.c (fwritable) [QNX]: Likewise.
32379         * lib/fwriting.c (fwriting) [QNX]: Likewise.
32380         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
32381         Reported by Alain Magloire.
32383         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
32385 2007-11-05  Bruno Haible  <bruno@clisp.org>
32387         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
32388         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
32389         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
32390         Reported by Eric Blake.
32392 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32393             Bruno Haible  <bruno@clisp.org>
32395         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
32396         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
32397         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
32398         (malloc): Undefine also before including <stdlib.h>.
32399         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
32400         Needed on OSF/1 4.0.
32402 2007-11-05  Jim Meyering  <meyering@redhat.com>
32404         git-version-gen: sync from coreutils.
32405         * build-aux/git-version-gen: Add comments.
32406         Change the first '-' to '.' in the snapshot version string,
32407         e.g., 6.9-377-08144 -> 6.9.377-08144
32408         Remove first parameter.
32409         Don't declare a version "-dirty" merely because a time
32410         stamp has changed.
32412 2007-11-04  Bruno Haible  <bruno@clisp.org>
32414         * lib/lock.h: Protect all macro definitions containing an 'if'
32415         statement through a "do { ... } while (0)".
32416         * lib/tls.h: Likewise.
32418 2007-11-04  Bruno Haible  <bruno@clisp.org>
32420         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
32422 2007-11-04  Bruno Haible  <bruno@clisp.org>
32424         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
32425         * modules/fprintf-posix (Depends-on): Add nocrash.
32426         * modules/snprintf-posix (Depends-on): Likewise.
32427         * modules/sprintf-posix (Depends-on): Likewise.
32428         * modules/vasnprintf-posix (Depends-on): Likewise.
32429         * modules/vasprintf-posix (Depends-on): Likewise.
32430         * modules/vfprintf-posix (Depends-on): Likewise.
32431         * modules/vsnprintf-posix (Depends-on): Likewise.
32432         * modules/vsprintf-posix (Depends-on): Likewise.
32433         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32434         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32435         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32436         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32437         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32438         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32439         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32441 2007-11-04  Bruno Haible  <bruno@clisp.org>
32443         * modules/nocrash: New file.
32444         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
32445         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
32447 2007-11-04  Bruno Haible  <bruno@clisp.org>
32449         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
32450         precision handling.
32451         * tests/test-vasprintf-posix.c (test_function): Likewise.
32452         * tests/test-snprintf-posix.h (test_function): Likewise.
32453         * tests/test-sprintf-posix.h (test_function): Likewise.
32455         Fix *printf behaviour for large precisions on mingw and BeOS.
32456         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
32457         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
32458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
32459         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32460         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32461         gl_PRINTF_PRECISION and test its result. Invoke
32462         gl_PREREQ_VASNPRINTF_PRECISION.
32463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32470         * doc/functions/fprintf.texi: Update.
32471         * doc/functions/printf.texi: Update.
32472         * doc/functions/snprintf.texi: Update.
32473         * doc/functions/sprintf.texi: Update.
32474         * doc/functions/vfprintf.texi: Update.
32475         * doc/functions/vprintf.texi: Update.
32476         * doc/functions/vsnprintf.texi: Update.
32477         * doc/functions/vsprintf.texi: Update.
32479 2007-11-04  Bruno Haible  <bruno@clisp.org>
32481         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
32483 2007-11-04  Bruno Haible  <bruno@clisp.org>
32485         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
32486         Reported by Sylvain Beucler <beuc@gnu.org>.
32488 2007-11-03  Bruno Haible  <bruno@clisp.org>
32490         * tests/test-fprintf-posix2.sh: New file.
32491         * tests/test-fprintf-posix2.c: New file.
32492         * modules/fprintf-posix-tests (Files): Add them.
32493         (TESTS): Add test-fprintf-posix2.sh.
32494         (configure.ac): Check for getrlimit and setrlimit.
32495         (check_PROGRAMS): Add test-fprintf-posix2.
32497         * tests/test-printf-posix2.sh: New file.
32498         * tests/test-printf-posix2.c: New file.
32499         * modules/printf-posix-tests (Files): Add them.
32500         (TESTS): Add test-printf-posix2.sh.
32501         (configure.ac): Check for getrlimit and setrlimit.
32502         (check_PROGRAMS): Add test-printf-posix2.
32504         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
32505         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
32506         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
32507         (decode_double): New function, copied from decode_long_double.
32508         (scale10_round_decimal_decoded): New function, extracted from
32509         scale10_round_decimal_long_double.
32510         (scale10_round_decimal_long_double): Use it.
32511         (scale10_round_decimal_double): New function.
32512         (floorlog10): New function.
32513         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
32514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
32515         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32517         gl_PRINTF_ENOMEM and test its result. Invoke
32518         gl_PREREQ_VASNPRINTF_ENOMEM.
32519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32526         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
32527         * modules/snprintf-posix (Depends-on): Likewise.
32528         * modules/sprintf-posix (Depends-on): Likewise.
32529         * modules/vasnprintf-posix (Depends-on): Likewise.
32530         * modules/vasprintf-posix (Depends-on): Likewise.
32531         * modules/vfprintf-posix (Depends-on): Likewise.
32532         * modules/vsnprintf-posix (Depends-on): Likewise.
32533         * modules/vsprintf-posix (Depends-on): Likewise.
32534         * doc/functions/fprintf.texi: Update.
32535         * doc/functions/printf.texi: Update.
32536         * doc/functions/snprintf.texi: Update.
32537         * doc/functions/sprintf.texi: Update.
32538         * doc/functions/vfprintf.texi: Update.
32539         * doc/functions/vprintf.texi: Update.
32540         * doc/functions/vsnprintf.texi: Update.
32541         * doc/functions/vsprintf.texi: Update.
32543 2007-11-03  Bruno Haible  <bruno@clisp.org>
32545         * modules/frexp-nolibm-tests: New file.
32547         * modules/frexp-nolibm: New file.
32548         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
32550 2007-11-03  Bruno Haible  <bruno@clisp.org>
32552         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
32553         value is C99 compliant.
32554         Needed for OSF/1 5.1.
32556 2007-11-03  Bruno Haible  <bruno@clisp.org>
32558         Fix out-of-memory handling of vasnprintf.
32559         * lib/printf-parse.c: Include <errno.h>.
32560         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
32561         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
32562         is already set.
32564 2007-11-02  Eric Blake  <ebb9@byu.net>
32566         Fix tests on cygwin.
32567         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
32569 2007-11-01  Bruno Haible  <bruno@clisp.org>
32571         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
32572         warning.
32573         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
32574         needed for POSIX compatibility.
32576 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32578         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
32579         for compatibility with GNU.
32581 2007-11-01  Bruno Haible  <bruno@clisp.org>
32583         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
32584         (putenv): Renamed from rpl_putenv. Change argument type from
32585         'const char *' to 'char *'.
32586         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
32587         of defining putenv in config.h, just set REPLACE_PUTENV.
32588         * modules/putenv (Depends-on): Add stdlib.
32589         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32590         (Include): Use <stdlib.h>.
32591         * lib/stdlib.in.h (putenv): New declaration.
32592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
32593         REPLACE_PUTENV.
32594         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
32595         REPLACE_PUTENV.
32596         Needed for MacOS X 10.5.0.
32597         Reported by Peter O'Gorman <peter@pogma.com>.
32599 2007-11-01  Jim Meyering  <meyering@redhat.com>
32601         Treat an empty date string exactly like "0".
32602         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
32603         if the remaining date string (to be parsed) is empty, use "0".
32604         Reported by Mischa Molhoek and discussed in this thread:
32605         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
32607 2007-10-31  Bruno Haible  <bruno@clisp.org>
32609         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
32610         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
32611         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
32612         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
32613         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
32614         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
32616 2007-10-31  Bruno Haible  <bruno@clisp.org>
32618         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
32619         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
32620         (AC_TYPE_LONG_LONG_INT): Use it.
32621         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
32622         it as well.
32623         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
32624         to m4/longlong.m4.
32625         * modules/stdint (Files): Remove m4/ulonglong.m4.
32626         * modules/strtoull (Files): Use m4/longlong.m4 instead of
32627         m4/ulonglong.m4.
32628         * modules/strtoumax (Files): Likewise.
32630 2007-10-30  Bruno Haible  <bruno@clisp.org>
32632         * modules/xvasprintf-posix: New file.
32633         Suggested by Eric Blake.
32635 2007-10-30  Bruno Haible  <bruno@clisp.org>
32637         * modules/xprintf-posix-tests: New file.
32638         * tests/test-xprintf-posix.sh: New file.
32639         * tests/test-xprintf-posix.c: New file.
32640         * tests/test-xfprintf-posix.c: New file.
32642         * modules/xprintf-posix: New file.
32644 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32646         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
32647         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
32648         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
32650 2007-10-29  Bruno Haible  <bruno@clisp.org>
32652         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
32653         contain the special marker '_cv_'.
32654         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32655         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32656         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32657         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
32658         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32659         Reported by Ralf Wildenhues.
32661 2007-10-29  Bruno Haible  <bruno@clisp.org>
32663         * gnulib-tool (func_import): When --lgpl is not specified, set
32664         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
32665         GPLv3.
32666         Reported by Simon Josefsson.
32668 2007-10-28  Bruno Haible  <bruno@clisp.org>
32670         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
32671         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
32672         HAVE_DECL_ISFINITE.
32673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
32674         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
32675         HAVE_DECL_ISFINITE.
32677 2007-10-28  Bruno Haible  <bruno@clisp.org>
32679         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
32680         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
32682 2007-10-28  Bruno Haible  <bruno@clisp.org>
32684         Fix link errors with Sun C 5.0 on Solaris 10.
32685         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
32686         function is declared but not present in the compiler's libm.
32687         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32688         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32689         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
32690         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
32691         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
32692         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
32693         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
32694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
32695         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
32696         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
32697         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
32698         HAVE_DECL_FLOORL.
32700 2007-10-28  Bruno Haible  <bruno@clisp.org>
32702         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
32703         gl_FUNC_FLOORL. Cache the result.
32704         (gl_FUNC_FLOORL): Use it.
32705         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
32706         gl_FUNC_CEILL. Cache the result.
32707         (gl_FUNC_CEILL): Use it.
32709         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
32710         gl_FUNC_FLOOR. Cache the result.
32711         (gl_FUNC_FLOOR): Use it.
32712         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
32713         gl_FUNC_CEIL. Cache the result.
32714         (gl_FUNC_CEIL): Use it.
32716         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
32717         gl_FUNC_FLOORF. Cache the result.
32718         (gl_FUNC_FLOORF): Use it.
32719         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
32720         gl_FUNC_CEILF. Cache the result.
32721         (gl_FUNC_CEILF): Use it.
32723 2007-10-28  Bruno Haible  <bruno@clisp.org>
32725         * gnulib-tool: Allow specifying the LGPL version number through
32726         --lgpl=2 or --lgpl=3.
32727         (func_usage): Document --lgpl with argument.
32728         Handle --lgpl=... arguments.
32729         (func_import): Recognize also gl_LGPL calls with an argument. When
32730         --lgpl=2 is used and the module's license is just LGPL, report an
32731         error. Set sed_transform_lib_file according to the lgpl variable. In
32732         the generated files, use --lgpl or gl_LGPL invocations with argument,
32733         if necessary.
32734         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
32735         an LGPv2+ license.
32736         * doc/gnulib-tool.texi (Modified imports): Update explanation of
32737         gl_LGPL macro.
32739 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32740             Bruno Haible  <bruno@clisp.org>
32742         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
32743         (u16_uctomb_aux): Likewise.
32744         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
32745         !HAVE_INLINE.
32746         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
32748 2007-10-28  Bruno Haible  <bruno@clisp.org>
32750         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
32751         Invoke AM_GETTEXT_OPTION if it exists.
32752         * modules/vasprintf: Likewise.
32753         * modules/verror: Likewise.
32754         * modules/xprintf: Likewise.
32755         * modules/xvasprintf: Likewise.
32757 2007-10-27  Ben Pfaff  <blp@gnu.org>
32759         * lib/math.in.h: Define isfinite macro and prototypes for
32760         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
32761         implementations.
32762         * m4/math_h.m4: New substitutions for isfinite module.
32763         * lib/isfinite.c: New file.
32764         * m4/isfinite.m4: New file.
32765         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
32766         * modules/isfinite: New file.
32767         * modules/isfinite-tests: New file.
32768         * tests/tests-isfinite.c: New file.
32769         * doc/functions/isfinite.texi: Mention isfinite module.
32770         * MODULES.html.sh: Mention new module.
32772 2007-10-27  Ben Pfaff  <blp@gnu.org>
32774         Ralf Wildenhues reported that Tru64 4.0D declares the round
32775         functions but does not have definitions.
32776         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
32777         cannot be found in any library, set the output variable to
32778         "missing" instead of "".
32779         * m4/round.m4: Also use our substitute if we cannot find round in
32780         any library, even if it is declared.
32781         * m4/roundf.m4: Likewise for roundf.
32782         * m4/roundl.m4: Likewise for roundl.
32783         * lib/math.in.h: Undefine roundf, round, roundl before defining
32784         their replacements, to allow for hypothetical systems where these
32785         may be defined as macros but not available in libraries.
32787 2007-10-27  Bruno Haible  <bruno@clisp.org>
32789         * doc/gnulib.texi: Invoke @firstparagraphindent.
32790         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
32791         changes in gnulib.
32792         (Source changes): New section.
32794 2007-10-26  Bruno Haible  <bruno@clisp.org>
32796         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
32797         borrowed from autoconf.
32799 2007-10-26  Bruno Haible  <bruno@clisp.org>
32801         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
32802         strerror returned the empty string. Needed on HP-UX 11.00.
32804 2007-10-24  Micah Cowan  <micah@cowan.name>
32806         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
32807         * build-aux/bootstrap: Remove support for now-unnecessary option,
32808         --cvs-user, and envvars CVS_USER, CVS_RSH.
32810 2007-10-24  Jim Meyering  <meyering@redhat.com>
32812         Avoid diagnostics from sha1sum when there is no cached checksum.
32813         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
32814         if the po.s1 file hasn't been created yet.
32816         * build-aux/bootstrap: Sync from coreutils:
32817         2007-10-24  Jim Meyering  <meyering@redhat.com>
32818         Get gnulib from the git repository, not from an obsolete cvs one.
32819         * build-aux/bootstrap: Suggestion from Micah Cowan.
32820         2007-10-04  Jim Meyering  <jim@meyering.net>
32821         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
32822         (update_po_files): Work also when there are no .po files in po/.
32824 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32826         * README: Append ".git" to git and cg examples.
32827         Problem reported by Benoit Sigoure.
32829 2007-10-23  Micah Cowan  <micah@cowan.name>
32831         * users.txt: Add wget.
32833 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32835         Fix linking of some unistdio tests on FreeBSD.
32836         * modules/unistdio/u16-vsnprintf-tests
32837         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
32838         * modules/unistdio/u16-vsprintf-tests
32839         (test_u16_vsnprintf1_LDADD): Likewise.
32840         * modules/unistdio/u32-vsnprintf-tests
32841         (test_u32_vsnprintf1_LDADD): Likewise.
32842         * modules/unistdio/u32-vsprintf-tests
32843         (test_u32_vsprintf1_LDADD): Likewise.
32844         * modules/unistdio/u8-vsnprintf-tests
32845         (test_u8_vsnprintf1_LDADD): Likewise.
32846         * modules/unistdio/u8-vsprintf-tests
32847         (test_u8_vsprintf1_LDADD): Likewise.
32848         * modules/unistdio/ulc-vsnprintf-tests
32849         (test_ulc_vsnprintf1_LDADD): Likewise.
32850         * modules/unistdio/ulc-vsprintf-tests
32851         (test_ulc_vsprintf1_LDADD): Likewise.
32853         Fix linking of some uniconv tests on FreeBSD.
32854         * modules/uniconv/u16-conv-from-enc-tests
32855         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
32856         * modules/uniconv/u16-conv-to-enc-tests
32857         (test_u16_conv_to_enc_LDADD): Likewise.
32858         * modules/uniconv/u16-strconv-from-enc-tests
32859         (test_u16_strconv_from_enc_LDADD): Likewise.
32860         * modules/uniconv/u16-strconv-to-enc-tests
32861         (test_u16_strconv_to_enc_LDADD): Likewise.
32862         * modules/uniconv/u32-conv-from-enc-tests
32863         (test_u32_conv_from_enc_LDADD): Likewise.
32864         * modules/uniconv/u32-conv-to-enc-tests
32865         (test_u32_conv_to_enc_LDADD): Likewise.
32866         * modules/uniconv/u32-strconv-from-enc-tests
32867         (test_u32_strconv_from_enc_LDADD): Likewise.
32868         * modules/uniconv/u32-strconv-to-enc-tests
32869         (test_u32_strconv_to_enc_LDADD): Likewise.
32870         * modules/uniconv/u8-conv-from-enc-tests
32871         (test_u8_conv_from_enc_LDADD): Likewise.
32872         * modules/uniconv/u8-conv-to-enc-tests
32873         (test_u8_conv_to_enc_LDADD): Likewise.
32874         * modules/uniconv/u8-strconv-from-enc-tests
32875         (test_u8_strconv_from_enc_LDADD): Likewise.
32876         * modules/uniconv/u8-strconv-to-enc-tests
32877         (test_u8_strconv_to_enc_LDADD): Likewise.
32879 2007-10-22  Bruno Haible  <bruno@clisp.org>
32881         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
32882         size.
32884 2007-10-22  Eric Blake  <ebb9@byu.net>
32886         Tweak x*printf documentation.
32887         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
32888         variable name and comments.
32889         Suggested by Bruno Haible.
32891 2007-10-22  Bruno Haible  <bruno@clisp.org>
32893         * lib/acl.c (copy_acl): Fix file name in comment.
32895 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32897         Fix Tru64 problem with stdbool.h.
32898         * lib/stdbool.in.h (false, true):
32899         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
32900         Don't declare as an enum in this situation; it runs afoul of Tru64.
32901         Problem reported by Steven M. Schweda in
32902         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
32904 2007-10-22  Eric Blake  <ebb9@byu.net>
32906         Also wrap vf?printf.
32907         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
32908         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
32909         (xvprintf, xvfprintf): New functions.
32911 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32913         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
32914         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
32916         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
32917         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
32919 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32921         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
32922         by Bruno Haible.
32924 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32926         * lib/getloadavg.c
32927         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
32928         Undef `sys' after including sys/table.h, for Tru64 4.0D.
32930         * tests/test-i-ring.c: Work for C89.
32932 2007-10-22  Bruno Haible  <bruno@clisp.org>
32934         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
32935         -1u, in preprocessor expression, so that we don't test for the bug
32936         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
32937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
32939 2007-10-22  Eric Blake  <ebb9@byu.net>
32941         * tests/test-yesno.sh: Silence stderr during test.
32943 2007-10-22  Simon Josefsson  <simon@josefsson.org>
32945         * modules/crypto/gc-camellia: New file.
32947         * m4/gc-camellia.m4: New file.
32949         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
32951         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
32953 2007-10-22  Simon Josefsson  <simon@josefsson.org>
32955         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
32956         --help to stdout.  Reported by sms@antinode.org (Steven
32957         M. Schweda).
32959 2007-10-22  Simon Josefsson  <simon@josefsson.org>
32961         * users.txt: Fix link to libksba.
32963 2007-10-21  Ben Pfaff  <blp@gnu.org>
32965         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
32966         round.c roundf implementation that depends on floorf and ceilf to
32967         be tested unconditionally.
32969 2007-10-21  Ben Pfaff  <blp@gnu.org>
32971         * m4/check-libm-func.m4: Removed.
32972         * m4/check-math-lib.m4: New file.
32973         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
32974         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
32975         definition and lack of AC_LIBOBJ([roundf]).
32976         * m4/roundl.m4: Ditto, and similarly for roundl.
32977         * modules/round: Reference new m4 file.
32978         * modules/roundf: Ditto.
32979         * modules/roundl: Ditto.
32980         * tests/test-round2.c (main): Use ROUND instead of round.
32981         Bug report from Bruno Haible.
32983 2007-10-21  Bruno Haible  <bruno@clisp.org>
32985         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
32986         context.
32988 2007-10-21  Bruno Haible  <bruno@clisp.org>
32990         * tests/test-wcwidth.c (main): Allow negative result for some control
32991         characters.
32993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
32994         Needed on OSF/1 5.1.
32996 2007-10-21  Bruno Haible  <bruno@clisp.org>
32998         * tests/test-floorf1.c: Include isnanf.h.
32999         (main): Use isnanf() instead of isnan().
33000         * tests/test-ceilf1.c: Include isnanf.h.
33001         (main): Use isnanf() instead of isnan().
33002         * tests/test-truncf1.c: Include isnanf.h.
33003         (main): Use isnanf() instead of isnan().
33004         * tests/test-roundf1.c: Include isnanf.h.
33005         (main): Use isnanf() instead of isnan().
33007 2007-10-21  Eric Blake  <ebb9@byu.net>
33009         * users.txt: Update URL for m4.
33011 2007-10-21  Bruno Haible  <bruno@clisp.org>
33013         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33015 2007-10-21  Bruno Haible  <bruno@clisp.org>
33017         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33018         Git's management files if the CVS files are not present.
33020 2007-10-20  Bruno Haible  <bruno@clisp.org>
33022         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33023         gcc-3.4.x.
33025 2007-10-20  Ben Pfaff  <blp@gnu.org>
33027         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33028         implementations.
33029         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33030         * lib/round.c: New file.
33031         * lib/roundf.c: New file.
33032         * lib/roundl.c: New file.
33033         * m4/round.m4: New file.
33034         * m4/roundf.m4: New file.
33035         * m4/roundl.m4: New file.
33036         * m4/check-libm-func-m4: New file.
33037         * modules/math: Replace round, roundf, roundl related @VARS@ in
33038         math.in.h.
33039         * modules/round: New file.
33040         * modules/round-tests: New file.
33041         * modules/roundf: New file.
33042         * modules/roundf-tests: New file.
33043         * modules/roundl: New file.
33044         * modules/roundl-tests: New file.
33045         * tests/test-round1.c: New file.
33046         * tests/test-round2.c: New file.
33047         * tests/test-roundf1.c: New file.
33048         * tests/test-roundf2.c: New file.
33049         * tests/test-roundl.c: New file.
33050         * doc/functions/round.texi: Mention round module.
33051         * doc/functions/roundf.texi: Mention roundf module.
33052         * doc/functions/roundl.texi: Mention roundl module.
33053         * MODULES.html.sh: Mention new modules.
33054         Thanks to Bruno Haible for suggestions.
33056 2007-10-20  Jim Meyering  <meyering@redhat.com>
33058         * lib/xprintf.c: Include <config.h> unconditionally.
33060         Change xprintf's license to GPL.
33061         * modules/xprintf (License): s/LGPL/GPL/, since this module
33062         depends on modules (exit and exitfail) which are GPL.
33063         Suggestion from Bruno Haible.
33065         xprintf fixes.
33066         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33067         Use a clearer diagnostic.
33068         Patch from Bruno Haible.
33070 2007-10-20  Bruno Haible  <bruno@clisp.org>
33072         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33073         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33076 2007-10-20  Bruno Haible  <bruno@clisp.org>
33078         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33079         precision in the comparison result > x - 1 or similar.
33080         * tests/test-ceilf2.c (correct_result_p): Likewise.
33081         * tests/test-truncf2.c (correct_result_p): Likewise.
33082         * tests/test-trunc2.c (correct_result_p): Likewise.
33083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33085 2007-10-20  Bruno Haible  <bruno@clisp.org>
33087         * modules/ceil: New file.
33088         * m4/ceil.m4: New file.
33089         * doc/functions/ceil.texi: Mention the 'ceil' module.
33091 2007-10-20  Bruno Haible  <bruno@clisp.org>
33093         * modules/floor: New file.
33094         * m4/floor.m4: New file.
33095         * doc/functions/floor.texi: Mention the 'floor' module.
33097 2007-10-20  Bruno Haible  <bruno@clisp.org>
33099         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33100         of %a.
33101         * modules/floorf-tests (Depends-on): Likewise.
33102         * modules/truncf-tests (Depends-on): Likewise.
33103         * modules/trunc-tests (Depends-on): Likewise.
33104         Reported by Ben Pfaff.
33106 2007-10-19  Jim Meyering  <meyering@redhat.com>
33108         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33109         Don't bother testing specific errno values.  Just test ferror.
33111         New module: xprintf
33112         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33114 2007-10-19  Bruno Haible  <bruno@clisp.org>
33116         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33117         syntax.
33118         * modules/javaexec (Makefile.am): Likewise.
33119         * modules/relocatable-prog (Makefile.am): Likewise.
33120         Suggested by Jim Meyering.
33122 2007-10-18  Bruno Haible  <bruno@clisp.org>
33124         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33125         Reported by Jim Meyering.
33127 2007-10-18  Eric Blake  <ebb9@byu.net>
33129         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33131 2007-10-18  Bruno Haible  <bruno@clisp.org>
33133         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33134         the format string into writable memory. Needed in Fortify conditions.
33136 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33137             Bruno Haible  <bruno@clisp.org>
33139         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33140         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33141         * modules/trim (Depends-on): Add mbchar.
33142         (configure.ac): Add gl_FUNC_MBRTOWC.
33143         (Makefile.am): Augment lib_SOURCES.
33145 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33147         Modify glob.c to use fstatat and dirfd, to simplify it.
33148         Suggested by Eric Blake.
33149         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33150         Don't include <stdbool.h>; not used.
33151         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33152         (link_exists_p): Simplify implementation, since we can now assume
33153         dirfd and fstatat.
33154         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33156 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33158         * gnulib-tool (func_get_dependencies): Fix sed script to
33159         match only tests.
33161 2007-10-17  Bruno Haible  <bruno@clisp.org>
33163         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33164         allow locale names without encoding suffix.
33165         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33166         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33168 2007-10-16  Bruno Haible  <bruno@clisp.org>
33170         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33171         * lib/getgroups.c (getgroups): Likewise.
33172         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33174 2007-10-16  Bruno Haible  <bruno@clisp.org>
33176         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33177         * modules/malloc-posix (License): Likewise.
33178         * modules/realloc-posix (License): Likewise.
33179         * modules/calloc-posix (License): Likewise.
33180         * modules/intprops (License): Change from GPL to LGPL, with
33181         Paul Eggert's approval.
33183 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33185         Merge glibc changes into lib/glob.c.
33187         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33188         2007-10-15 04:59:03 UTC.  Here are the changes:
33190         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33192         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33194         * lib/glob.c: Add some branch prediction throughout.
33196         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33198         [BZ #5103]
33199         * lib/glob.c (glob): Recognize patterns starting \/.
33201         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33203         [BZ #3996]
33204         * lib/glob.c (attribute_hidden): Define if not defined.
33205         (glob): Unescape dirname, filename or username when needed and not
33206         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33207         is NULL.  Handle unescaped [ in pattern without closing ].
33208         Don't pass GLOB_CHECK down to recursive glob for directories.
33209         (__glob_pattern_type): New function.
33210         (__glob_pattern_p): Implement using __glob_pattern_type.
33211         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33212         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33213         Remove unreachable code.
33215         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33217         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33218         explain why there are no leaks.
33220         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33222         [BZ #3253]
33223         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33224         time, rather allocate increasingly bigger arrays of pointers, if
33225         possible with alloca, if too large with malloc.
33227 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33229         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33230         Problem reported by H.Merijn Brand in
33231         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33232         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33233         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33235 2007-10-15  Bruno Haible  <bruno@clisp.org>
33237         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33238         with explicit rpl_ prefix.
33239         * lib/fopen.c (fopen): Likewise.
33240         * lib/freopen.c (freopen): Likewise.
33241         * lib/iconv.c (iconv): Likewise.
33242         * lib/iconv_close.c (iconv_close): Likewise.
33244 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33246         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33248 2007-10-15  Bruno Haible  <bruno@clisp.org>
33250         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33251         <stddef.h> instead of <stdlib.h> since we only need NULL.
33252         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33254 2007-10-15  Bruno Haible  <bruno@clisp.org>
33256         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33257         Replace paragraph talking about LIBOBJS.
33258         Reported by Colin Watson <cjwatson@debian.org>.
33260 2007-10-15  Bruno Haible  <bruno@clisp.org>
33262         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33263         <stdlib.h> before using NULL.
33265 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33267         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33268         Reported by Albert Chin <china@thewrittenword.com>.
33270 2007-10-14  Bruno Haible  <bruno@clisp.org>
33272         * modules/iconv_open-utf-tests: New file.
33273         * tests/test-iconv-utf.c: New file.
33275         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33276         * modules/iconv_open-utf: New file.
33277         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33278         (iconv, iconv_close): New declarations.
33279         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33280         be defined.
33281         (iconv_open): Add special handling of conversion between UTF-8 and
33282         UTF-{16,32}{BE,LE}.
33283         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33284         * lib/iconv_close.c: New file.
33285         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33286         gl_FUNC_ICONV_OPEN.
33287         (gl_FUNC_ICONV_OPEN): Use it.
33288         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33289         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33290         and REPLACE_ICONV_UTF.
33291         * modules/iconv_open (Depends-on): Add c-strcase.
33292         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33293         ICONV_CONST.
33294         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33296 2007-10-13  Albert Chin  <china@thewrittenword.com>
33297             Bruno Haible  <bruno@clisp.org>
33299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33300         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33302 2007-10-13  Bruno Haible  <bruno@clisp.org>
33304         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
33305         defined, use the ISO C99 inline semantics.
33306         * lib/argp.h (ARGP_EI): Likewise.
33308 2007-10-13  Bruno Haible  <bruno@clisp.org>
33310         Handle 'inline' change in gcc 4.3.0.
33311         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
33312         argp_fmtstream_write, argp_fmtstream_set_lmargin,
33313         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
33314         argp_fmtstream_point): Disable 'extern' declaration if the function
33315         definition is going to be provided inline.
33316         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
33317         semantics, not the ISO C99 inline semantics.
33318         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
33319         'extern' declaration if the function definition is going to be provided
33320         inline.
33321         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
33322         the GNU C inline semantics, not the ISO C99 inline semantics. With
33323         GCC 4.2, avoid a warning.
33325 2007-10-13  Bruno Haible  <bruno@clisp.org>
33327         * lib/freading.h (freading): Enable the use of __freading for
33328         glibc >= 2.7.
33329         * lib/freading.c (freading): Likewise.
33331 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33333         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
33334         "warning: C99 inline functions are not supported; using GNU89".
33336 2007-10-12  Bruno Haible  <bruno@clisp.org>
33338         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
33339         of 2.
33340         * tests/test-ceilf2.c: New file.
33341         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
33343         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
33344         * modules/ceilf-tests: Update.
33346 2007-10-12  Bruno Haible  <bruno@clisp.org>
33348         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
33349         of 2.
33350         * tests/test-floorf2.c: New file.
33351         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
33353         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
33354         * modules/floorf-tests: Update.
33356 2007-10-12  Bruno Haible  <bruno@clisp.org>
33358         * tests/test-trunc2.c: New file.
33359         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
33361         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
33362         * modules/trunc-tests: Update.
33364 2007-10-12  Bruno Haible  <bruno@clisp.org>
33366         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
33367         of 2.
33368         * tests/test-truncf2.c: New file.
33369         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
33371         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
33372         * modules/truncf-tests: Update.
33374 2007-10-11  Eric Blake  <ebb9@byu.net>
33376         Don't claim strerror is broken on Interix.
33377         * doc/functions/strerror.texi (strerror): Known broken systems are
33378         now Solaris 8, and not Interix.
33379         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
33380         Interix on cross-compile.
33381         Reported by Martin Koeppe in
33382         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
33384 2007-10-11  Bruno Haible  <bruno@clisp.org>
33386         * modules/i-ring-tests: New file.
33387         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
33388         instead of assert.
33390 2007-10-11  Bruno Haible  <bruno@clisp.org>
33392         * modules/filenamecat-tests: New file.
33393         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
33394         * lib/filenamecat.c: Remove test code.
33396 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33398         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
33400         * lib/strerror.c: Include <string.h> always, to test interface,
33401         and to remove the need for the dummy.
33402         Include intprops.h to compute width instead of doing it ourselves
33403         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
33404         (strerror): Define it to return NULL if there's no system strerror.
33405         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
33406         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
33407         ancient pre-strerror Unix systems well any more.  Saying "unknown
33408         system error" is enough.
33409         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
33410         simpler strerror.c implementation.
33411         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
33412         Simplify the tests to reflect the simpler strerror implementation.
33413         * modules/strerror (Depends-on): Add intprops.
33415 2007-10-09  Eric Blake  <ebb9@byu.net>
33417         Silence test-fpending.
33418         * modules/fpending-tests (Files): Add wrapper script.
33419         * tests/test-fpending.sh: New file.
33421 2007-10-09  Bruno Haible  <bruno@clisp.org>
33423         * MODULES.html.sh (func_module): Don't create a hyperlink for
33424         function names like 'printf_frexp'.
33425         (Misc): Add crc, memxor.
33426         (Characteristics of floating types): New section.
33427         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
33428         isnanf-nolibm, signbit, trunc, truncf, truncl.
33429         (Enhancements for ISO C 99 functions): New subsection Input/output.
33430         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
33431         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
33432         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
33433         (Compatibility checks for POSIX:2001 functions): Add clock-time.
33434         (Enhancements for POSIX:2001 functions): Add chdir-long.
33435         (File system functions): Add areadlink, chdir-safer, read-file.
33436         Remove cycle-check.
33437         (File system as inode set): New section.
33438         (Date and time): Add gethrxtime.
33439         (Multithreading): Add openmp.
33440         (Internationalization functions): Add localename.
33441         (Unicode string functions): Add unistr/u*-mbsnlen.
33442         (Support for maintaining and releasing projects): Add git-version-gen.
33443         (Lone files): Remove directories.
33445 2007-10-08  Ben Pfaff  <blp@gnu.org>
33447         * lib/xmalloca.h: Fix typo in comment.
33449 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33451         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
33452         when avoiding problems with integer overflow.  Use a portable test
33453         instead.
33455 2007-10-08  Simon Josefsson  <simon@josefsson.org>
33457         * modules/dummy (License): Change to LGPLv2+.
33458         * modules/float (License): Likewise
33459         * modules/realloc (License): Likewise
33460         * modules/stdlib (License): Likewise
33462 2007-10-07  Bruno Haible  <bruno@clisp.org>
33464         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
33465         * floor.c (TWO_MANT_DIG): Likewise.
33466         * ceil.c (TWO_MANT_DIG): Likewise.
33467         Reported by Ben Pfaff.
33469 2007-10-07  Bruno Haible  <bruno@clisp.org>
33471         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
33472         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
33473         * lib/frexp.c (FUNC): Likewise.
33474         * lib/printf-frexp.h (printf_frexp): Likewise.
33475         * lib/printf-frexpl.h (printf_frexpl): Likewise.
33476         * lib/printf-frexp.c (FUNC): Likewise.
33477         Suggested by Jim Meyering.
33479 2007-10-07  Jim Meyering  <meyering@redhat.com>
33481         Make xnanosleep's integer overflow test more robust.
33482         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
33483         so that gcc-4.3.0 doesn't optimize away this test for overflow.
33485 2007-10-07  Bruno Haible  <bruno@clisp.org>
33487         * NEWS: Mention the license change.
33489         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
33490         abbreviations in the modules files.
33492         Change copyright notice from GPLv2+ to GPLv3+.
33493         * README: Change copyright notice.
33494         * MODULES.html.sh: Likewise.
33495         * build-aux/bootstrap.conf: Likewise.
33496         * build-aux/config.libpath: Likewise.
33497         * build-aux/csharpcomp.sh.in: Likewise.
33498         * build-aux/csharpexec.sh.in: Likewise.
33499         * build-aux/install-reloc: Likewise.
33500         * build-aux/javacomp.sh.in: Likewise.
33501         * build-aux/javaexec.sh.in: Likewise.
33502         * build-aux/ldd.sh.in: Likewise.
33503         * build-aux/reloc-ldflags: Likewise.
33504         * build-aux/relocatable.sh.in: Likewise.
33505         * build-aux/x-to-1.in: Likewise.
33506         * check-module: Likewise.
33507         * config/srclistvars.sh: Likewise.
33508         * gnulib-tool: Likewise.
33509         * lib/acl-internal.h: Likewise.
33510         * lib/acl.c: Likewise.
33511         * lib/acl.h: Likewise.
33512         * lib/acl_entries.c: Likewise.
33513         * lib/areadlink-with-size.c: Likewise.
33514         * lib/areadlink.c: Likewise.
33515         * lib/areadlink.h: Likewise.
33516         * lib/argmatch.c: Likewise.
33517         * lib/argmatch.h: Likewise.
33518         * lib/argp-ba.c: Likewise.
33519         * lib/argp-eexst.c: Likewise.
33520         * lib/argp-fmtstream.c: Likewise.
33521         * lib/argp-fmtstream.h: Likewise.
33522         * lib/argp-fs-xinl.c: Likewise.
33523         * lib/argp-help.c: Likewise.
33524         * lib/argp-namefrob.h: Likewise.
33525         * lib/argp-parse.c: Likewise.
33526         * lib/argp-pin.c: Likewise.
33527         * lib/argp-pv.c: Likewise.
33528         * lib/argp-pvh.c: Likewise.
33529         * lib/argp-xinl.c: Likewise.
33530         * lib/argp.h: Likewise.
33531         * lib/at-func.c: Likewise.
33532         * lib/atanl.c: Likewise.
33533         * lib/backupfile.c: Likewise.
33534         * lib/backupfile.h: Likewise.
33535         * lib/basename.c: Likewise.
33536         * lib/binary-io.h: Likewise.
33537         * lib/byteswap.in.h: Likewise.
33538         * lib/c-stack.c: Likewise.
33539         * lib/c-stack.h: Likewise.
33540         * lib/c-strcasestr.c: Likewise.
33541         * lib/c-strcasestr.h: Likewise.
33542         * lib/c-strstr.c: Likewise.
33543         * lib/c-strstr.h: Likewise.
33544         * lib/c-strtod.c: Likewise.
33545         * lib/calloc.c: Likewise.
33546         * lib/canon-host.c: Likewise.
33547         * lib/canon-host.h: Likewise.
33548         * lib/canonicalize-lgpl.c: Likewise.
33549         * lib/canonicalize.c: Likewise.
33550         * lib/canonicalize.h: Likewise.
33551         * lib/ceil.c: Likewise.
33552         * lib/ceilf.c: Likewise.
33553         * lib/ceill.c: Likewise.
33554         * lib/chdir-long.c: Likewise.
33555         * lib/chdir-long.h: Likewise.
33556         * lib/chdir-safer.c: Likewise.
33557         * lib/chdir-safer.h: Likewise.
33558         * lib/chown.c: Likewise.
33559         * lib/classpath.c: Likewise.
33560         * lib/classpath.h: Likewise.
33561         * lib/clean-temp.c: Likewise.
33562         * lib/clean-temp.h: Likewise.
33563         * lib/cloexec.c: Likewise.
33564         * lib/close-stream.c: Likewise.
33565         * lib/closein.c: Likewise.
33566         * lib/closein.h: Likewise.
33567         * lib/closeout.c: Likewise.
33568         * lib/closeout.h: Likewise.
33569         * lib/concat-filename.c: Likewise.
33570         * lib/copy-file.c: Likewise.
33571         * lib/copy-file.h: Likewise.
33572         * lib/count-one-bits.h: Likewise.
33573         * lib/crc.c: Likewise.
33574         * lib/crc.h: Likewise.
33575         * lib/creat-safer.c: Likewise.
33576         * lib/csharpcomp.c: Likewise.
33577         * lib/csharpcomp.h: Likewise.
33578         * lib/csharpexec.c: Likewise.
33579         * lib/csharpexec.h: Likewise.
33580         * lib/cycle-check.c: Likewise.
33581         * lib/cycle-check.h: Likewise.
33582         * lib/diacrit.c: Likewise.
33583         * lib/diacrit.h: Likewise.
33584         * lib/diffseq.h: Likewise.
33585         * lib/dirchownmod.c: Likewise.
33586         * lib/dirent.in.h: Likewise.
33587         * lib/dirfd.c: Likewise.
33588         * lib/dirfd.h: Likewise.
33589         * lib/dirname.c: Likewise.
33590         * lib/dirname.h: Likewise.
33591         * lib/dummy.c: Likewise.
33592         * lib/dup-safer.c: Likewise.
33593         * lib/dup2.c: Likewise.
33594         * lib/eealloc.h: Likewise.
33595         * lib/error.c: Likewise.
33596         * lib/error.h: Likewise.
33597         * lib/euidaccess.c: Likewise.
33598         * lib/exclude.c: Likewise.
33599         * lib/exclude.h: Likewise.
33600         * lib/execute.c: Likewise.
33601         * lib/execute.h: Likewise.
33602         * lib/exitfail.c: Likewise.
33603         * lib/exitfail.h: Likewise.
33604         * lib/expl.c: Likewise.
33605         * lib/fatal-signal.c: Likewise.
33606         * lib/fatal-signal.h: Likewise.
33607         * lib/fbufmode.c: Likewise.
33608         * lib/fbufmode.h: Likewise.
33609         * lib/fchdir.c: Likewise.
33610         * lib/fchmodat.c: Likewise.
33611         * lib/fchownat.c: Likewise.
33612         * lib/fcntl--.h: Likewise.
33613         * lib/fcntl-safer.h: Likewise.
33614         * lib/fcntl.in.h: Likewise.
33615         * lib/fd-safer.c: Likewise.
33616         * lib/fflush.c: Likewise.
33617         * lib/file-has-acl.c: Likewise.
33618         * lib/file-set.c: Likewise.
33619         * lib/file-type.c: Likewise.
33620         * lib/file-type.h: Likewise.
33621         * lib/fileblocks.c: Likewise.
33622         * lib/filemode.c: Likewise.
33623         * lib/filemode.h: Likewise.
33624         * lib/filename.h: Likewise.
33625         * lib/filenamecat.c: Likewise.
33626         * lib/filenamecat.h: Likewise.
33627         * lib/findprog.c: Likewise.
33628         * lib/findprog.h: Likewise.
33629         * lib/float.in.h: Likewise.
33630         * lib/floor.c: Likewise.
33631         * lib/floorf.c: Likewise.
33632         * lib/floorl.c: Likewise.
33633         * lib/fopen-safer.c: Likewise.
33634         * lib/fopen.c: Likewise.
33635         * lib/fpending.c: Likewise.
33636         * lib/fpending.h: Likewise.
33637         * lib/fprintf.c: Likewise.
33638         * lib/fprintftime.h: Likewise.
33639         * lib/fpucw.h: Likewise.
33640         * lib/fpurge.c: Likewise.
33641         * lib/fpurge.h: Likewise.
33642         * lib/freadable.c: Likewise.
33643         * lib/freadable.h: Likewise.
33644         * lib/freadahead.c: Likewise.
33645         * lib/freadahead.h: Likewise.
33646         * lib/freading.c: Likewise.
33647         * lib/freading.h: Likewise.
33648         * lib/free.c: Likewise.
33649         * lib/freopen.c: Likewise.
33650         * lib/frexp.c: Likewise.
33651         * lib/frexpl.c: Likewise.
33652         * lib/fseek.c: Likewise.
33653         * lib/fseterr.c: Likewise.
33654         * lib/fseterr.h: Likewise.
33655         * lib/fstatat.c: Likewise.
33656         * lib/fstrcmp.c: Likewise.
33657         * lib/fstrcmp.h: Likewise.
33658         * lib/fsusage.c: Likewise.
33659         * lib/fsusage.h: Likewise.
33660         * lib/ftell.c: Likewise.
33661         * lib/ftello.c: Likewise.
33662         * lib/fts-cycle.c: Likewise.
33663         * lib/fts.c: Likewise.
33664         * lib/fts_.h: Likewise.
33665         * lib/full-read.c: Likewise.
33666         * lib/full-read.h: Likewise.
33667         * lib/full-write.c: Likewise.
33668         * lib/full-write.h: Likewise.
33669         * lib/fwritable.c: Likewise.
33670         * lib/fwritable.h: Likewise.
33671         * lib/fwriteerror.c: Likewise.
33672         * lib/fwriteerror.h: Likewise.
33673         * lib/fwriting.c: Likewise.
33674         * lib/fwriting.h: Likewise.
33675         * lib/gcd.c: Likewise.
33676         * lib/gcd.h: Likewise.
33677         * lib/getcwd.c: Likewise.
33678         * lib/getdate.h: Likewise.
33679         * lib/getdate.y: Likewise.
33680         * lib/getdomainname.c: Likewise.
33681         * lib/getdomainname.h: Likewise.
33682         * lib/getgroups.c: Likewise.
33683         * lib/gethostname.c: Likewise.
33684         * lib/gethrxtime.c: Likewise.
33685         * lib/gethrxtime.h: Likewise.
33686         * lib/getloadavg.c: Likewise.
33687         * lib/getndelim2.c: Likewise.
33688         * lib/getndelim2.h: Likewise.
33689         * lib/getnline.c: Likewise.
33690         * lib/getnline.h: Likewise.
33691         * lib/getopt.c: Likewise.
33692         * lib/getopt.in.h: Likewise.
33693         * lib/getopt1.c: Likewise.
33694         * lib/getopt_int.h: Likewise.
33695         * lib/getpagesize.h: Likewise.
33696         * lib/getsubopt.c: Likewise.
33697         * lib/gettime.c: Likewise.
33698         * lib/getugroups.c: Likewise.
33699         * lib/getugroups.h: Likewise.
33700         * lib/getusershell.c: Likewise.
33701         * lib/gl_anyavltree_list1.h: Likewise.
33702         * lib/gl_anyavltree_list2.h: Likewise.
33703         * lib/gl_anyhash_list1.h: Likewise.
33704         * lib/gl_anyhash_list2.h: Likewise.
33705         * lib/gl_anylinked_list1.h: Likewise.
33706         * lib/gl_anylinked_list2.h: Likewise.
33707         * lib/gl_anyrbtree_list1.h: Likewise.
33708         * lib/gl_anyrbtree_list2.h: Likewise.
33709         * lib/gl_anytree_list1.h: Likewise.
33710         * lib/gl_anytree_list2.h: Likewise.
33711         * lib/gl_anytree_oset.h: Likewise.
33712         * lib/gl_anytreehash_list1.h: Likewise.
33713         * lib/gl_anytreehash_list2.h: Likewise.
33714         * lib/gl_array_list.c: Likewise.
33715         * lib/gl_array_list.h: Likewise.
33716         * lib/gl_array_oset.c: Likewise.
33717         * lib/gl_array_oset.h: Likewise.
33718         * lib/gl_avltree_list.c: Likewise.
33719         * lib/gl_avltree_list.h: Likewise.
33720         * lib/gl_avltree_oset.c: Likewise.
33721         * lib/gl_avltree_oset.h: Likewise.
33722         * lib/gl_avltreehash_list.c: Likewise.
33723         * lib/gl_avltreehash_list.h: Likewise.
33724         * lib/gl_carray_list.c: Likewise.
33725         * lib/gl_carray_list.h: Likewise.
33726         * lib/gl_linked_list.c: Likewise.
33727         * lib/gl_linked_list.h: Likewise.
33728         * lib/gl_linkedhash_list.c: Likewise.
33729         * lib/gl_linkedhash_list.h: Likewise.
33730         * lib/gl_list.c: Likewise.
33731         * lib/gl_list.h: Likewise.
33732         * lib/gl_oset.c: Likewise.
33733         * lib/gl_oset.h: Likewise.
33734         * lib/gl_rbtree_list.c: Likewise.
33735         * lib/gl_rbtree_list.h: Likewise.
33736         * lib/gl_rbtree_oset.c: Likewise.
33737         * lib/gl_rbtree_oset.h: Likewise.
33738         * lib/gl_rbtreehash_list.c: Likewise.
33739         * lib/gl_rbtreehash_list.h: Likewise.
33740         * lib/gl_sublist.c: Likewise.
33741         * lib/gl_sublist.h: Likewise.
33742         * lib/group-member.c: Likewise.
33743         * lib/group-member.h: Likewise.
33744         * lib/hard-locale.c: Likewise.
33745         * lib/hard-locale.h: Likewise.
33746         * lib/hash-pjw.c: Likewise.
33747         * lib/hash-pjw.h: Likewise.
33748         * lib/hash-triple.c: Likewise.
33749         * lib/hash.c: Likewise.
33750         * lib/hash.h: Likewise.
33751         * lib/human.c: Likewise.
33752         * lib/human.h: Likewise.
33753         * lib/i-ring.c: Likewise.
33754         * lib/i-ring.h: Likewise.
33755         * lib/idcache.c: Likewise.
33756         * lib/imaxabs.c: Likewise.
33757         * lib/imaxdiv.c: Likewise.
33758         * lib/inet_pton.c: Likewise.
33759         * lib/inet_pton.h: Likewise.
33760         * lib/intprops.h: Likewise.
33761         * lib/inttostr.c: Likewise.
33762         * lib/inttostr.h: Likewise.
33763         * lib/inttypes.in.h: Likewise.
33764         * lib/isapipe.c: Likewise.
33765         * lib/isdir.c: Likewise.
33766         * lib/isnan.c: Likewise.
33767         * lib/isnan.h: Likewise.
33768         * lib/isnanf.c: Likewise.
33769         * lib/isnanf.h: Likewise.
33770         * lib/isnanl-nolibm.h: Likewise.
33771         * lib/isnanl.c: Likewise.
33772         * lib/isnanl.h: Likewise.
33773         * lib/javacomp.c: Likewise.
33774         * lib/javacomp.h: Likewise.
33775         * lib/javaexec.c: Likewise.
33776         * lib/javaexec.h: Likewise.
33777         * lib/javaversion.c: Likewise.
33778         * lib/javaversion.h: Likewise.
33779         * lib/javaversion.java: Likewise.
33780         * lib/lbrkprop.h: Likewise.
33781         * lib/lchmod.h: Likewise.
33782         * lib/lchown.c: Likewise.
33783         * lib/ldexpl.c: Likewise.
33784         * lib/linebreak.c: Likewise.
33785         * lib/linebreak.h: Likewise.
33786         * lib/linebuffer.c: Likewise.
33787         * lib/linebuffer.h: Likewise.
33788         * lib/locale.in.h: Likewise.
33789         * lib/logl.c: Likewise.
33790         * lib/long-options.c: Likewise.
33791         * lib/long-options.h: Likewise.
33792         * lib/lstat.c: Likewise.
33793         * lib/lstat.h: Likewise.
33794         * lib/math.in.h: Likewise.
33795         * lib/mbchar.c: Likewise.
33796         * lib/mbchar.h: Likewise.
33797         * lib/mbfile.h: Likewise.
33798         * lib/mbiter.h: Likewise.
33799         * lib/mbscasecmp.c: Likewise.
33800         * lib/mbscasestr.c: Likewise.
33801         * lib/mbschr.c: Likewise.
33802         * lib/mbscspn.c: Likewise.
33803         * lib/mbslen.c: Likewise.
33804         * lib/mbsncasecmp.c: Likewise.
33805         * lib/mbsnlen.c: Likewise.
33806         * lib/mbspbrk.c: Likewise.
33807         * lib/mbspcasecmp.c: Likewise.
33808         * lib/mbsrchr.c: Likewise.
33809         * lib/mbssep.c: Likewise.
33810         * lib/mbsspn.c: Likewise.
33811         * lib/mbsstr.c: Likewise.
33812         * lib/mbstok_r.c: Likewise.
33813         * lib/mbswidth.c: Likewise.
33814         * lib/mbswidth.h: Likewise.
33815         * lib/mbuiter.h: Likewise.
33816         * lib/memcasecmp.c: Likewise.
33817         * lib/memcasecmp.h: Likewise.
33818         * lib/memchr.c: Likewise.
33819         * lib/memcmp.c: Likewise.
33820         * lib/memcoll.c: Likewise.
33821         * lib/memcoll.h: Likewise.
33822         * lib/memcpy.c: Likewise.
33823         * lib/memrchr.c: Likewise.
33824         * lib/mkancesdirs.c: Likewise.
33825         * lib/mkdir-p.c: Likewise.
33826         * lib/mkdir-p.h: Likewise.
33827         * lib/mkdir.c: Likewise.
33828         * lib/mkdirat.c: Likewise.
33829         * lib/mkdtemp.c: Likewise.
33830         * lib/mkstemp-safer.c: Likewise.
33831         * lib/mkstemp.c: Likewise.
33832         * lib/modechange.c: Likewise.
33833         * lib/modechange.h: Likewise.
33834         * lib/mountlist.c: Likewise.
33835         * lib/mountlist.h: Likewise.
33836         * lib/mpsort.c: Likewise.
33837         * lib/nanosleep.c: Likewise.
33838         * lib/obstack.c: Likewise.
33839         * lib/obstack.h: Likewise.
33840         * lib/open-safer.c: Likewise.
33841         * lib/open.c: Likewise.
33842         * lib/openat-die.c: Likewise.
33843         * lib/openat-priv.h: Likewise.
33844         * lib/openat-proc.c: Likewise.
33845         * lib/openat.c: Likewise.
33846         * lib/openat.h: Likewise.
33847         * lib/pagealign_alloc.c: Likewise.
33848         * lib/pagealign_alloc.h: Likewise.
33849         * lib/physmem.c: Likewise.
33850         * lib/physmem.h: Likewise.
33851         * lib/pipe-safer.c: Likewise.
33852         * lib/pipe.c: Likewise.
33853         * lib/pipe.h: Likewise.
33854         * lib/posixtm.c: Likewise.
33855         * lib/posixtm.h: Likewise.
33856         * lib/posixver.c: Likewise.
33857         * lib/printf-frexp.c: Likewise.
33858         * lib/printf-frexp.h: Likewise.
33859         * lib/printf-frexpl.c: Likewise.
33860         * lib/printf-frexpl.h: Likewise.
33861         * lib/printf.c: Likewise.
33862         * lib/progname.c: Likewise.
33863         * lib/progname.h: Likewise.
33864         * lib/progreloc.c: Likewise.
33865         * lib/putenv.c: Likewise.
33866         * lib/quote.c: Likewise.
33867         * lib/quote.h: Likewise.
33868         * lib/quotearg.c: Likewise.
33869         * lib/quotearg.h: Likewise.
33870         * lib/raise.c: Likewise.
33871         * lib/readline.c: Likewise.
33872         * lib/readline.h: Likewise.
33873         * lib/readlink.c: Likewise.
33874         * lib/readtokens.c: Likewise.
33875         * lib/readtokens.h: Likewise.
33876         * lib/readtokens0.c: Likewise.
33877         * lib/readtokens0.h: Likewise.
33878         * lib/readutmp.c: Likewise.
33879         * lib/readutmp.h: Likewise.
33880         * lib/realloc.c: Likewise.
33881         * lib/relocwrapper.c: Likewise.
33882         * lib/rename-dest-slash.c: Likewise.
33883         * lib/rename.c: Likewise.
33884         * lib/rmdir.c: Likewise.
33885         * lib/rpmatch.c: Likewise.
33886         * lib/safe-read.c: Likewise.
33887         * lib/safe-read.h: Likewise.
33888         * lib/safe-write.c: Likewise.
33889         * lib/safe-write.h: Likewise.
33890         * lib/same-inode.h: Likewise.
33891         * lib/same.c: Likewise.
33892         * lib/same.h: Likewise.
33893         * lib/save-cwd.c: Likewise.
33894         * lib/save-cwd.h: Likewise.
33895         * lib/savedir.c: Likewise.
33896         * lib/savedir.h: Likewise.
33897         * lib/savewd.c: Likewise.
33898         * lib/savewd.h: Likewise.
33899         * lib/search.in.h: Likewise.
33900         * lib/setenv.c: Likewise.
33901         * lib/setenv.h: Likewise.
33902         * lib/settime.c: Likewise.
33903         * lib/sh-quote.c: Likewise.
33904         * lib/sh-quote.h: Likewise.
33905         * lib/sig2str.c: Likewise.
33906         * lib/sig2str.h: Likewise.
33907         * lib/signal.in.h: Likewise.
33908         * lib/signbitd.c: Likewise.
33909         * lib/signbitf.c: Likewise.
33910         * lib/signbitl.c: Likewise.
33911         * lib/sigprocmask.c: Likewise.
33912         * lib/sincosl.c: Likewise.
33913         * lib/sleep.c: Likewise.
33914         * lib/sprintf.c: Likewise.
33915         * lib/sqrtl.c: Likewise.
33916         * lib/stat-time.h: Likewise.
33917         * lib/stdio--.h: Likewise.
33918         * lib/stdio-safer.h: Likewise.
33919         * lib/stdlib--.h: Likewise.
33920         * lib/stdlib-safer.h: Likewise.
33921         * lib/stdlib.in.h: Likewise.
33922         * lib/stpcpy.c: Likewise.
33923         * lib/stpncpy.c: Likewise.
33924         * lib/strchrnul.c: Likewise.
33925         * lib/strcspn.c: Likewise.
33926         * lib/strerror.c: Likewise.
33927         * lib/strftime.c: Likewise.
33928         * lib/strftime.h: Likewise.
33929         * lib/striconveh.c: Likewise.
33930         * lib/striconveh.h: Likewise.
33931         * lib/striconveha.c: Likewise.
33932         * lib/striconveha.h: Likewise.
33933         * lib/stripslash.c: Likewise.
33934         * lib/strnlen1.c: Likewise.
33935         * lib/strnlen1.h: Likewise.
33936         * lib/strtod.c: Likewise.
33937         * lib/strtoimax.c: Likewise.
33938         * lib/strtok_r.c: Likewise.
33939         * lib/strtol.c: Likewise.
33940         * lib/strtoll.c: Likewise.
33941         * lib/strtoul.c: Likewise.
33942         * lib/strtoull.c: Likewise.
33943         * lib/sysexits.in.h: Likewise.
33944         * lib/tempname.c: Likewise.
33945         * lib/tempname.h: Likewise.
33946         * lib/timespec.h: Likewise.
33947         * lib/tls.c: Likewise.
33948         * lib/tls.h: Likewise.
33949         * lib/tmpdir.c: Likewise.
33950         * lib/tmpdir.h: Likewise.
33951         * lib/tmpfile-safer.c: Likewise.
33952         * lib/tmpfile.c: Likewise.
33953         * lib/trigl.c: Likewise.
33954         * lib/trigl.h: Likewise.
33955         * lib/trim.c: Likewise.
33956         * lib/trim.h: Likewise.
33957         * lib/trunc.c: Likewise.
33958         * lib/truncf.c: Likewise.
33959         * lib/truncl.c: Likewise.
33960         * lib/tsearch.c: Likewise.
33961         * lib/unicodeio.c: Likewise.
33962         * lib/unicodeio.h: Likewise.
33963         * lib/unistd--.h: Likewise.
33964         * lib/unistd-safer.h: Likewise.
33965         * lib/unistdio/ulc-fprintf.c: Likewise.
33966         * lib/unistdio/ulc-vfprintf.c: Likewise.
33967         * lib/unlinkdir.c: Likewise.
33968         * lib/unlinkdir.h: Likewise.
33969         * lib/unlocked-io.h: Likewise.
33970         * lib/unsetenv.c: Likewise.
33971         * lib/userspec.c: Likewise.
33972         * lib/utime.c: Likewise.
33973         * lib/utimecmp.c: Likewise.
33974         * lib/utimecmp.h: Likewise.
33975         * lib/utimens.c: Likewise.
33976         * lib/verify.h: Likewise.
33977         * lib/verror.c: Likewise.
33978         * lib/verror.h: Likewise.
33979         * lib/version-etc-fsf.c: Likewise.
33980         * lib/version-etc.c: Likewise.
33981         * lib/version-etc.h: Likewise.
33982         * lib/vfprintf.c: Likewise.
33983         * lib/vprintf.c: Likewise.
33984         * lib/vsprintf.c: Likewise.
33985         * lib/w32spawn.h: Likewise.
33986         * lib/wait-process.c: Likewise.
33987         * lib/wait-process.h: Likewise.
33988         * lib/wcwidth.c: Likewise.
33989         * lib/write-any-file.c: Likewise.
33990         * lib/xalloc-die.c: Likewise.
33991         * lib/xalloc.h: Likewise.
33992         * lib/xasprintf.c: Likewise.
33993         * lib/xgetcwd.c: Likewise.
33994         * lib/xgetcwd.h: Likewise.
33995         * lib/xgetdomainname.c: Likewise.
33996         * lib/xgetdomainname.h: Likewise.
33997         * lib/xgethostname.c: Likewise.
33998         * lib/xmalloc.c: Likewise.
33999         * lib/xmalloca.c: Likewise.
34000         * lib/xmalloca.h: Likewise.
34001         * lib/xmemcoll.c: Likewise.
34002         * lib/xnanosleep.c: Likewise.
34003         * lib/xreadlink.c: Likewise.
34004         * lib/xreadlink.h: Likewise.
34005         * lib/xsetenv.c: Likewise.
34006         * lib/xsetenv.h: Likewise.
34007         * lib/xstriconv.c: Likewise.
34008         * lib/xstriconv.h: Likewise.
34009         * lib/xstrndup.c: Likewise.
34010         * lib/xstrndup.h: Likewise.
34011         * lib/xstrtod.c: Likewise.
34012         * lib/xstrtod.h: Likewise.
34013         * lib/xstrtol-error.c: Likewise.
34014         * lib/xstrtol.c: Likewise.
34015         * lib/xstrtol.h: Likewise.
34016         * lib/xtime.h: Likewise.
34017         * lib/xvasprintf.c: Likewise.
34018         * lib/xvasprintf.h: Likewise.
34019         * lib/yesno.c: Likewise.
34020         * lib/yesno.h: Likewise.
34021         * posix-modules: Likewise.
34022         * tests/test-alloca-opt.c: Likewise.
34023         * tests/test-arcfour.c: Likewise.
34024         * tests/test-arctwo.c: Likewise.
34025         * tests/test-argmatch.c: Likewise.
34026         * tests/test-argp-2.sh: Likewise.
34027         * tests/test-argp.c: Likewise.
34028         * tests/test-arpa_inet.c: Likewise.
34029         * tests/test-array_list.c: Likewise.
34030         * tests/test-array_oset.c: Likewise.
34031         * tests/test-atexit.c: Likewise.
34032         * tests/test-avltree_list.c: Likewise.
34033         * tests/test-avltree_oset.c: Likewise.
34034         * tests/test-avltreehash_list.c: Likewise.
34035         * tests/test-base64.c: Likewise.
34036         * tests/test-binary-io.c: Likewise.
34037         * tests/test-byteswap.c: Likewise.
34038         * tests/test-c-ctype.c: Likewise.
34039         * tests/test-c-strcasecmp.c: Likewise.
34040         * tests/test-c-strcasestr.c: Likewise.
34041         * tests/test-c-strncasecmp.c: Likewise.
34042         * tests/test-c-strstr.c: Likewise.
34043         * tests/test-canonicalize-lgpl.c: Likewise.
34044         * tests/test-canonicalize.c: Likewise.
34045         * tests/test-carray_list.c: Likewise.
34046         * tests/test-ceilf.c: Likewise.
34047         * tests/test-ceill.c: Likewise.
34048         * tests/test-count-one-bits.c: Likewise.
34049         * tests/test-crc.c: Likewise.
34050         * tests/test-dirname.c: Likewise.
34051         * tests/test-fbufmode.c: Likewise.
34052         * tests/test-fcntl.c: Likewise.
34053         * tests/test-fflush.c: Likewise.
34054         * tests/test-floorf.c: Likewise.
34055         * tests/test-floorl.c: Likewise.
34056         * tests/test-fopen.c: Likewise.
34057         * tests/test-fprintf-posix.c: Likewise.
34058         * tests/test-fprintf-posix.h: Likewise.
34059         * tests/test-fpurge.c: Likewise.
34060         * tests/test-freadable.c: Likewise.
34061         * tests/test-freadahead.c: Likewise.
34062         * tests/test-freading.c: Likewise.
34063         * tests/test-freopen.c: Likewise.
34064         * tests/test-frexp.c: Likewise.
34065         * tests/test-frexpl.c: Likewise.
34066         * tests/test-fseek.c: Likewise.
34067         * tests/test-fseeko.c: Likewise.
34068         * tests/test-fseterr.c: Likewise.
34069         * tests/test-fstrcmp.c: Likewise.
34070         * tests/test-ftell.c: Likewise.
34071         * tests/test-ftello.c: Likewise.
34072         * tests/test-fwritable.c: Likewise.
34073         * tests/test-fwriting.c: Likewise.
34074         * tests/test-getaddrinfo.c: Likewise.
34075         * tests/test-getpass.c: Likewise.
34076         * tests/test-gettimeofday.c: Likewise.
34077         * tests/test-hmac-md5.c: Likewise.
34078         * tests/test-hmac-sha1.c: Likewise.
34079         * tests/test-iconv.c: Likewise.
34080         * tests/test-iconvme.c: Likewise.
34081         * tests/test-inttypes.c: Likewise.
34082         * tests/test-isnan.c: Likewise.
34083         * tests/test-isnanf.c: Likewise.
34084         * tests/test-isnanl-nolibm.c: Likewise.
34085         * tests/test-isnanl.c: Likewise.
34086         * tests/test-isnanl.h: Likewise.
34087         * tests/test-ldexpl.c: Likewise.
34088         * tests/test-linked_list.c: Likewise.
34089         * tests/test-linkedhash_list.c: Likewise.
34090         * tests/test-locale.c: Likewise.
34091         * tests/test-localename.c: Likewise.
34092         * tests/test-lock.c: Likewise.
34093         * tests/test-lseek.c: Likewise.
34094         * tests/test-malloca.c: Likewise.
34095         * tests/test-math.c: Likewise.
34096         * tests/test-mbscasecmp.c: Likewise.
34097         * tests/test-mbscasestr1.c: Likewise.
34098         * tests/test-mbscasestr2.c: Likewise.
34099         * tests/test-mbscasestr3.c: Likewise.
34100         * tests/test-mbscasestr4.c: Likewise.
34101         * tests/test-mbschr.c: Likewise.
34102         * tests/test-mbscspn.c: Likewise.
34103         * tests/test-mbsncasecmp.c: Likewise.
34104         * tests/test-mbspbrk.c: Likewise.
34105         * tests/test-mbspcasecmp.c: Likewise.
34106         * tests/test-mbsrchr.c: Likewise.
34107         * tests/test-mbsspn.c: Likewise.
34108         * tests/test-mbsstr1.c: Likewise.
34109         * tests/test-mbsstr2.c: Likewise.
34110         * tests/test-mbsstr3.c: Likewise.
34111         * tests/test-md5.c: Likewise.
34112         * tests/test-memmem.c: Likewise.
34113         * tests/test-netinet_in.c: Likewise.
34114         * tests/test-open.c: Likewise.
34115         * tests/test-printf-frexp.c: Likewise.
34116         * tests/test-printf-frexpl.c: Likewise.
34117         * tests/test-printf-posix.c: Likewise.
34118         * tests/test-printf-posix.h: Likewise.
34119         * tests/test-rbtree_list.c: Likewise.
34120         * tests/test-rbtree_oset.c: Likewise.
34121         * tests/test-rbtreehash_list.c: Likewise.
34122         * tests/test-read-file.c: Likewise.
34123         * tests/test-rijndael.c: Likewise.
34124         * tests/test-search.c: Likewise.
34125         * tests/test-signbit.c: Likewise.
34126         * tests/test-sleep.c: Likewise.
34127         * tests/test-snprintf-posix.c: Likewise.
34128         * tests/test-snprintf-posix.h: Likewise.
34129         * tests/test-snprintf.c: Likewise.
34130         * tests/test-sprintf-posix.c: Likewise.
34131         * tests/test-sprintf-posix.h: Likewise.
34132         * tests/test-stat-time.c: Likewise.
34133         * tests/test-stdbool.c: Likewise.
34134         * tests/test-stdint.c: Likewise.
34135         * tests/test-stdio.c: Likewise.
34136         * tests/test-stdlib.c: Likewise.
34137         * tests/test-stpncpy.c: Likewise.
34138         * tests/test-strcasestr.c: Likewise.
34139         * tests/test-striconv.c: Likewise.
34140         * tests/test-striconveh.c: Likewise.
34141         * tests/test-striconveha.c: Likewise.
34142         * tests/test-string.c: Likewise.
34143         * tests/test-sys_select.c: Likewise.
34144         * tests/test-sys_socket.c: Likewise.
34145         * tests/test-sys_stat.c: Likewise.
34146         * tests/test-sys_time.c: Likewise.
34147         * tests/test-sysexits.c: Likewise.
34148         * tests/test-time.c: Likewise.
34149         * tests/test-tls.c: Likewise.
34150         * tests/test-trunc.c: Likewise.
34151         * tests/test-truncf.c: Likewise.
34152         * tests/test-truncl.c: Likewise.
34153         * tests/test-unistd.c: Likewise.
34154         * tests/test-vasnprintf-posix.c: Likewise.
34155         * tests/test-vasnprintf-posix2.c: Likewise.
34156         * tests/test-vasnprintf.c: Likewise.
34157         * tests/test-vasprintf-posix.c: Likewise.
34158         * tests/test-vasprintf.c: Likewise.
34159         * tests/test-verify.c: Likewise.
34160         * tests/test-vfprintf-posix.c: Likewise.
34161         * tests/test-vprintf-posix.c: Likewise.
34162         * tests/test-vsnprintf-posix.c: Likewise.
34163         * tests/test-vsnprintf.c: Likewise.
34164         * tests/test-vsprintf-posix.c: Likewise.
34165         * tests/test-wchar.c: Likewise.
34166         * tests/test-wctype.c: Likewise.
34167         * tests/test-wcwidth.c: Likewise.
34168         * tests/test-xstrtol.c: Likewise.
34169         * tests/test-xvasprintf.c: Likewise.
34170         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34171         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34172         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34173         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34174         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34175         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34176         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34177         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34178         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34179         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34180         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34181         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34182         * tests/uniname/test-uninames.c: Likewise.
34183         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34184         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34185         * tests/unistdio/test-u16-printf1.h: Likewise.
34186         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34187         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34188         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34189         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34190         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34191         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34192         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34193         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34194         * tests/unistdio/test-u32-printf1.h: Likewise.
34195         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34196         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34197         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34198         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34199         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34200         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34201         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34202         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34203         * tests/unistdio/test-u8-printf1.h: Likewise.
34204         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34205         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34206         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34207         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34208         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34209         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34210         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34211         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34212         * tests/unistdio/test-ulc-printf1.h: Likewise.
34213         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34214         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34215         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34216         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34217         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34218         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34219         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34220         * tests/uniwidth/test-u16-width.c: Likewise.
34221         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34222         * tests/uniwidth/test-u32-width.c: Likewise.
34223         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34224         * tests/uniwidth/test-u8-width.c: Likewise.
34225         * tests/uniwidth/test-uc_width.c: Likewise.
34226         * config/srclist-update: Likewise.
34227         (fixlicense): Update to GPLv3+.
34229         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34230         * tests/test-tsearch.c: Change copyright notice.
34232         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34233         * lib/c-strcaseeq.h: Change copyright notice.
34234         * lib/streq.h: Likewise.
34235         * lib/uniconv.h: Likewise.
34236         * lib/uniconv/u-conv-from-enc.h: Likewise.
34237         * lib/uniconv/u-conv-to-enc.h: Likewise.
34238         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34239         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34240         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34241         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34242         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34243         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34244         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34245         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34246         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34247         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34248         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34249         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34250         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34251         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34252         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34253         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34254         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34255         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34256         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34257         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34258         * lib/uniname.h: Likewise.
34259         * lib/uniname/uniname.c: Likewise.
34260         * lib/unistdio.h: Likewise.
34261         * lib/unistdio/u-asnprintf.h: Likewise.
34262         * lib/unistdio/u-asprintf.h: Likewise.
34263         * lib/unistdio/u-printf-args.c: Likewise.
34264         * lib/unistdio/u-printf-args.h: Likewise.
34265         * lib/unistdio/u-printf-parse.h: Likewise.
34266         * lib/unistdio/u-snprintf.h: Likewise.
34267         * lib/unistdio/u-sprintf.h: Likewise.
34268         * lib/unistdio/u-vasprintf.h: Likewise.
34269         * lib/unistdio/u-vsnprintf.h: Likewise.
34270         * lib/unistdio/u-vsprintf.h: Likewise.
34271         * lib/unistdio/u16-asnprintf.c: Likewise.
34272         * lib/unistdio/u16-asprintf.c: Likewise.
34273         * lib/unistdio/u16-printf-parse.c: Likewise.
34274         * lib/unistdio/u16-snprintf.c: Likewise.
34275         * lib/unistdio/u16-sprintf.c: Likewise.
34276         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34277         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34278         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34279         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34280         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34281         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34282         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34283         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34284         * lib/unistdio/u16-vasnprintf.c: Likewise.
34285         * lib/unistdio/u16-vasprintf.c: Likewise.
34286         * lib/unistdio/u16-vsnprintf.c: Likewise.
34287         * lib/unistdio/u16-vsprintf.c: Likewise.
34288         * lib/unistdio/u32-asnprintf.c: Likewise.
34289         * lib/unistdio/u32-asprintf.c: Likewise.
34290         * lib/unistdio/u32-printf-parse.c: Likewise.
34291         * lib/unistdio/u32-snprintf.c: Likewise.
34292         * lib/unistdio/u32-sprintf.c: Likewise.
34293         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34294         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34295         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34296         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34297         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34298         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34299         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34300         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34301         * lib/unistdio/u32-vasnprintf.c: Likewise.
34302         * lib/unistdio/u32-vasprintf.c: Likewise.
34303         * lib/unistdio/u32-vsnprintf.c: Likewise.
34304         * lib/unistdio/u32-vsprintf.c: Likewise.
34305         * lib/unistdio/u8-asnprintf.c: Likewise.
34306         * lib/unistdio/u8-asprintf.c: Likewise.
34307         * lib/unistdio/u8-printf-parse.c: Likewise.
34308         * lib/unistdio/u8-snprintf.c: Likewise.
34309         * lib/unistdio/u8-sprintf.c: Likewise.
34310         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
34311         * lib/unistdio/u8-u8-asprintf.c: Likewise.
34312         * lib/unistdio/u8-u8-snprintf.c: Likewise.
34313         * lib/unistdio/u8-u8-sprintf.c: Likewise.
34314         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
34315         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
34316         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
34317         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
34318         * lib/unistdio/u8-vasnprintf.c: Likewise.
34319         * lib/unistdio/u8-vasprintf.c: Likewise.
34320         * lib/unistdio/u8-vsnprintf.c: Likewise.
34321         * lib/unistdio/u8-vsprintf.c: Likewise.
34322         * lib/unistdio/ulc-asnprintf.c: Likewise.
34323         * lib/unistdio/ulc-asprintf.c: Likewise.
34324         * lib/unistdio/ulc-printf-parse.c: Likewise.
34325         * lib/unistdio/ulc-snprintf.c: Likewise.
34326         * lib/unistdio/ulc-sprintf.c: Likewise.
34327         * lib/unistdio/ulc-vasnprintf.c: Likewise.
34328         * lib/unistdio/ulc-vasprintf.c: Likewise.
34329         * lib/unistdio/ulc-vsnprintf.c: Likewise.
34330         * lib/unistdio/ulc-vsprintf.c: Likewise.
34331         * lib/unistr.h: Likewise.
34332         * lib/unistr/u-cpy-alloc.h: Likewise.
34333         * lib/unistr/u-cpy.h: Likewise.
34334         * lib/unistr/u-endswith.h: Likewise.
34335         * lib/unistr/u-move.h: Likewise.
34336         * lib/unistr/u-set.h: Likewise.
34337         * lib/unistr/u-startswith.h: Likewise.
34338         * lib/unistr/u-stpcpy.h: Likewise.
34339         * lib/unistr/u-stpncpy.h: Likewise.
34340         * lib/unistr/u-strcat.h: Likewise.
34341         * lib/unistr/u-strcpy.h: Likewise.
34342         * lib/unistr/u-strcspn.h: Likewise.
34343         * lib/unistr/u-strdup.h: Likewise.
34344         * lib/unistr/u-strlen.h: Likewise.
34345         * lib/unistr/u-strncat.h: Likewise.
34346         * lib/unistr/u-strncpy.h: Likewise.
34347         * lib/unistr/u-strnlen.h: Likewise.
34348         * lib/unistr/u-strpbrk.h: Likewise.
34349         * lib/unistr/u-strspn.h: Likewise.
34350         * lib/unistr/u-strstr.h: Likewise.
34351         * lib/unistr/u-strtok.h: Likewise.
34352         * lib/unistr/u16-check.c: Likewise.
34353         * lib/unistr/u16-chr.c: Likewise.
34354         * lib/unistr/u16-cmp.c: Likewise.
34355         * lib/unistr/u16-cpy-alloc.c: Likewise.
34356         * lib/unistr/u16-cpy.c: Likewise.
34357         * lib/unistr/u16-endswith.c: Likewise.
34358         * lib/unistr/u16-mblen.c: Likewise.
34359         * lib/unistr/u16-mbsnlen.c: Likewise.
34360         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34361         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34362         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34363         * lib/unistr/u16-mbtouc.c: Likewise.
34364         * lib/unistr/u16-mbtoucr.c: Likewise.
34365         * lib/unistr/u16-move.c: Likewise.
34366         * lib/unistr/u16-next.c: Likewise.
34367         * lib/unistr/u16-prev.c: Likewise.
34368         * lib/unistr/u16-set.c: Likewise.
34369         * lib/unistr/u16-startswith.c: Likewise.
34370         * lib/unistr/u16-stpcpy.c: Likewise.
34371         * lib/unistr/u16-stpncpy.c: Likewise.
34372         * lib/unistr/u16-strcat.c: Likewise.
34373         * lib/unistr/u16-strchr.c: Likewise.
34374         * lib/unistr/u16-strcmp.c: Likewise.
34375         * lib/unistr/u16-strcpy.c: Likewise.
34376         * lib/unistr/u16-strcspn.c: Likewise.
34377         * lib/unistr/u16-strdup.c: Likewise.
34378         * lib/unistr/u16-strlen.c: Likewise.
34379         * lib/unistr/u16-strmblen.c: Likewise.
34380         * lib/unistr/u16-strmbtouc.c: Likewise.
34381         * lib/unistr/u16-strncat.c: Likewise.
34382         * lib/unistr/u16-strncmp.c: Likewise.
34383         * lib/unistr/u16-strncpy.c: Likewise.
34384         * lib/unistr/u16-strnlen.c: Likewise.
34385         * lib/unistr/u16-strpbrk.c: Likewise.
34386         * lib/unistr/u16-strrchr.c: Likewise.
34387         * lib/unistr/u16-strspn.c: Likewise.
34388         * lib/unistr/u16-strstr.c: Likewise.
34389         * lib/unistr/u16-strtok.c: Likewise.
34390         * lib/unistr/u16-to-u32.c: Likewise.
34391         * lib/unistr/u16-to-u8.c: Likewise.
34392         * lib/unistr/u16-uctomb-aux.c: Likewise.
34393         * lib/unistr/u16-uctomb.c: Likewise.
34394         * lib/unistr/u32-check.c: Likewise.
34395         * lib/unistr/u32-chr.c: Likewise.
34396         * lib/unistr/u32-cmp.c: Likewise.
34397         * lib/unistr/u32-cpy-alloc.c: Likewise.
34398         * lib/unistr/u32-cpy.c: Likewise.
34399         * lib/unistr/u32-endswith.c: Likewise.
34400         * lib/unistr/u32-mblen.c: Likewise.
34401         * lib/unistr/u32-mbsnlen.c: Likewise.
34402         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34403         * lib/unistr/u32-mbtouc.c: Likewise.
34404         * lib/unistr/u32-mbtoucr.c: Likewise.
34405         * lib/unistr/u32-move.c: Likewise.
34406         * lib/unistr/u32-next.c: Likewise.
34407         * lib/unistr/u32-prev.c: Likewise.
34408         * lib/unistr/u32-set.c: Likewise.
34409         * lib/unistr/u32-startswith.c: Likewise.
34410         * lib/unistr/u32-stpcpy.c: Likewise.
34411         * lib/unistr/u32-stpncpy.c: Likewise.
34412         * lib/unistr/u32-strcat.c: Likewise.
34413         * lib/unistr/u32-strchr.c: Likewise.
34414         * lib/unistr/u32-strcmp.c: Likewise.
34415         * lib/unistr/u32-strcpy.c: Likewise.
34416         * lib/unistr/u32-strcspn.c: Likewise.
34417         * lib/unistr/u32-strdup.c: Likewise.
34418         * lib/unistr/u32-strlen.c: Likewise.
34419         * lib/unistr/u32-strmblen.c: Likewise.
34420         * lib/unistr/u32-strmbtouc.c: Likewise.
34421         * lib/unistr/u32-strncat.c: Likewise.
34422         * lib/unistr/u32-strncmp.c: Likewise.
34423         * lib/unistr/u32-strncpy.c: Likewise.
34424         * lib/unistr/u32-strnlen.c: Likewise.
34425         * lib/unistr/u32-strpbrk.c: Likewise.
34426         * lib/unistr/u32-strrchr.c: Likewise.
34427         * lib/unistr/u32-strspn.c: Likewise.
34428         * lib/unistr/u32-strstr.c: Likewise.
34429         * lib/unistr/u32-strtok.c: Likewise.
34430         * lib/unistr/u32-to-u16.c: Likewise.
34431         * lib/unistr/u32-to-u8.c: Likewise.
34432         * lib/unistr/u32-uctomb.c: Likewise.
34433         * lib/unistr/u8-check.c: Likewise.
34434         * lib/unistr/u8-chr.c: Likewise.
34435         * lib/unistr/u8-cmp.c: Likewise.
34436         * lib/unistr/u8-cpy-alloc.c: Likewise.
34437         * lib/unistr/u8-cpy.c: Likewise.
34438         * lib/unistr/u8-endswith.c: Likewise.
34439         * lib/unistr/u8-mblen.c: Likewise.
34440         * lib/unistr/u8-mbsnlen.c: Likewise.
34441         * lib/unistr/u8-mbtouc-aux.c: Likewise.
34442         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34443         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34444         * lib/unistr/u8-mbtouc.c: Likewise.
34445         * lib/unistr/u8-mbtoucr.c: Likewise.
34446         * lib/unistr/u8-move.c: Likewise.
34447         * lib/unistr/u8-next.c: Likewise.
34448         * lib/unistr/u8-prev.c: Likewise.
34449         * lib/unistr/u8-set.c: Likewise.
34450         * lib/unistr/u8-startswith.c: Likewise.
34451         * lib/unistr/u8-stpcpy.c: Likewise.
34452         * lib/unistr/u8-stpncpy.c: Likewise.
34453         * lib/unistr/u8-strcat.c: Likewise.
34454         * lib/unistr/u8-strchr.c: Likewise.
34455         * lib/unistr/u8-strcmp.c: Likewise.
34456         * lib/unistr/u8-strcpy.c: Likewise.
34457         * lib/unistr/u8-strcspn.c: Likewise.
34458         * lib/unistr/u8-strdup.c: Likewise.
34459         * lib/unistr/u8-strlen.c: Likewise.
34460         * lib/unistr/u8-strmblen.c: Likewise.
34461         * lib/unistr/u8-strmbtouc.c: Likewise.
34462         * lib/unistr/u8-strncat.c: Likewise.
34463         * lib/unistr/u8-strncmp.c: Likewise.
34464         * lib/unistr/u8-strncpy.c: Likewise.
34465         * lib/unistr/u8-strnlen.c: Likewise.
34466         * lib/unistr/u8-strpbrk.c: Likewise.
34467         * lib/unistr/u8-strrchr.c: Likewise.
34468         * lib/unistr/u8-strspn.c: Likewise.
34469         * lib/unistr/u8-strstr.c: Likewise.
34470         * lib/unistr/u8-strtok.c: Likewise.
34471         * lib/unistr/u8-to-u16.c: Likewise.
34472         * lib/unistr/u8-to-u32.c: Likewise.
34473         * lib/unistr/u8-uctomb-aux.c: Likewise.
34474         * lib/unistr/u8-uctomb.c: Likewise.
34475         * lib/unitypes.h: Likewise.
34476         * lib/uniwidth.h: Likewise.
34477         * lib/uniwidth/cjk.h: Likewise.
34478         * lib/uniwidth/u16-strwidth.c: Likewise.
34479         * lib/uniwidth/u16-width.c: Likewise.
34480         * lib/uniwidth/u32-strwidth.c: Likewise.
34481         * lib/uniwidth/u32-width.c: Likewise.
34482         * lib/uniwidth/u8-strwidth.c: Likewise.
34483         * lib/uniwidth/u8-width.c: Likewise.
34484         * lib/uniwidth/width.c: Likewise.
34486 2007-10-07  Bruno Haible  <bruno@clisp.org>
34488         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
34489         The file is still under LGPL (see modules/inttypes).
34491 2007-10-06  Bruno Haible  <bruno@clisp.org>
34493         * modules/trunc (Dependencies): Add 'extensions'.
34494         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
34495         Reported by Ben Pfaff <blp@gnu.org>.
34497 2007-10-06  Bruno Haible  <bruno@clisp.org>
34499         * modules/freopen-tests: New file.
34500         * tests/test-freopen.c: New file.
34502         * modules/fopen-tests: New file.
34503         * tests/test-fopen.c: New file.
34505         * modules/fopen: New file.
34506         * lib/fopen.c: New file.
34507         * m4/fopen.m4: New file.
34508         * modules/freopen: New file.
34509         * lib/freopen.c: New file.
34510         * m4/freopen.m4: New file.
34511         * lib/stdio.in.h (fopen, freopen): New declarations.
34512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
34513         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34514         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
34515         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34516         * doc/functions/fopen.texi: Mention the 'fopen' module.
34517         * doc/functions/freopen.texi: Mention the 'freopen' module.
34519 2007-10-06  Bruno Haible  <bruno@clisp.org>
34521         * modules/open-tests: New file.
34522         * tests/test-open.c: New file.
34524         * modules/open: New file.
34525         * lib/open.c: New file.
34526         * m4/open.m4: New file.
34527         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
34528         lib/open.c does.
34529         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
34530         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
34531         macros.
34532         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
34533         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
34534         REPLACE_OPEN.
34535         * doc/functions/open.texi: Mention the 'open' module.
34537 2007-10-04  Bruno Haible  <bruno@clisp.org>
34539         * modules/ceill-tests: New file.
34540         * tests/test-ceill.c: New file.
34542         * modules/ceill: New file.
34543         * lib/ceill.c: Replace entire file.
34544         * m4/ceill.m4: New file.
34545         * lib/math.in.h (ceill): Replace declaration.
34546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
34547         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
34548         * doc/functions/ceill.texi: Mention the 'ceill' module.
34549         * modules/mathl (Files): Remove lib/ceill.c.
34550         (Depends-on): Add ceill.
34552 2007-10-04  Bruno Haible  <bruno@clisp.org>
34554         * modules/ceilf-tests: New file.
34555         * tests/test-ceilf.c: New file.
34557         * modules/ceilf: New file.
34558         * lib/ceil.c: New file.
34559         * lib/ceilf.c: New file.
34560         * m4/ceilf.m4: New file.
34561         * lib/math.in.h (ceilf): New declaration.
34562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
34563         HAVE_DECL_CEILF.
34564         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
34565         HAVE_DECL_CEILF.
34566         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
34568 2007-10-04  Bruno Haible  <bruno@clisp.org>
34570         * modules/floorl-tests: New file.
34571         * tests/test-floorl.c: New file.
34573         * modules/floorl: New file.
34574         * lib/floorl.c: Replace entire file.
34575         * m4/floorl.m4: New file.
34576         * lib/math.in.h (floorl): Replace declaration.
34577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
34578         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
34579         * doc/functions/floorl.texi: Mention the 'floorl' module.
34580         * modules/mathl (Files): Remove lib/floorl.c.
34581         (Depends-on): Add floorl.
34583 2007-10-04  Bruno Haible  <bruno@clisp.org>
34585         * modules/floorf-tests: New file.
34586         * tests/test-floorf.c: New file.
34588         * modules/floorf: New file.
34589         * lib/floor.c: New file.
34590         * lib/floorf.c: New file.
34591         * m4/floorf.m4: New file.
34592         * lib/math.in.h (floorf): New declaration.
34593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
34594         HAVE_DECL_FLOORF.
34595         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
34596         HAVE_DECL_FLOORF.
34597         * doc/functions/floorf.texi: Mention the 'floorf' module.
34599 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
34600             Bruno Haible  <bruno@clisp.org>
34602         Advertise for the Git server instead of the CVS server.
34603         * doc/gnulib-intro.texi (Steady Development): Mention the Git
34604         repository instead of the CVS one.
34605         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
34606         about all VCS systems generically.
34607         * doc/gnulib.texi (Introduction): Capitalize `Git'.
34609 2007-10-04  Bruno Haible  <bruno@clisp.org>
34611         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
34612         means.
34613         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
34615 2007-10-04  Bruno Haible  <bruno@clisp.org>
34617         * modules/truncl-tests: New file.
34618         * tests/test-truncl.c: New file.
34620         * modules/truncl: New file.
34621         * lib/truncl.c: New file.
34622         * m4/truncl.m4: New file.
34623         * lib/math.in.h (truncl): New declaration.
34624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
34625         HAVE_DECL_TRUNCL.
34626         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
34627         HAVE_DECL_TRUNCL.
34628         * doc/functions/truncl.texi: Mention the 'truncl' module.
34630 2007-10-04  Bruno Haible  <bruno@clisp.org>
34632         * modules/truncf-tests: New file.
34633         * tests/test-truncf.c: New file.
34635         * modules/truncf: New file.
34636         * lib/trunc.c: Make paramerizable through USE_* macros.
34637         * lib/truncf.c: New file.
34638         * m4/truncf.m4: New file.
34639         * lib/math.in.h (truncf): New declaration.
34640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
34641         HAVE_DECL_TRUNCF.
34642         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
34643         HAVE_DECL_TRUNCF.
34644         * doc/functions/truncf.texi: Mention the 'truncf' module.
34646 2007-10-03  Bruno Haible  <bruno@clisp.org>
34648         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34649         augmentation also for tests modules.
34650         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
34651         * modules/atexit-tests (Makefile.am): Likewise.
34652         * modules/binary-io-tests (Makefile.am): Likewise.
34653         * modules/c-strcase-tests (Makefile.am): Likewise.
34654         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
34655         * modules/canonicalize-tests (Makefile.am): Likewise.
34656         * modules/closein-tests (Makefile.am): Likewise.
34657         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34658         * modules/freadahead-tests (Makefile.am): Likewise.
34659         * modules/fseek-tests (Makefile.am): Likewise.
34660         * modules/fseeko-tests (Makefile.am): Likewise.
34661         * modules/ftell-tests (Makefile.am): Likewise.
34662         * modules/ftello-tests (Makefile.am): Likewise.
34663         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
34664         * modules/isnanl-tests (Makefile.am): Likewise.
34665         * modules/lseek-tests (Makefile.am): Likewise.
34666         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34667         * modules/mbscasestr-tests (Makefile.am): Likewise.
34668         * modules/mbschr-tests (Makefile.am): Likewise.
34669         * modules/mbscspn-tests (Makefile.am): Likewise.
34670         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34671         * modules/mbspbrk-tests (Makefile.am): Likewise.
34672         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34673         * modules/mbsrchr-tests (Makefile.am): Likewise.
34674         * modules/mbsspn-tests (Makefile.am): Likewise.
34675         * modules/mbsstr-tests (Makefile.am): Likewise.
34676         * modules/printf-posix-tests (Makefile.am): Likewise.
34677         * modules/snprintf-posix-tests (Makefile.am): Likewise.
34678         * modules/sprintf-posix-tests (Makefile.am): Likewise.
34679         * modules/tsearch-tests (Makefile.am): Likewise.
34680         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34681         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34682         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34683         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34684         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34685         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34686         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34687         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34688         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
34689         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
34690         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34691         * modules/xstrtol-tests (Makefile.am): Likewise.
34692         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34693         * modules/yesno-tests (Makefile.am): Likewise.
34695 2007-10-03  Bruno Haible  <bruno@clisp.org>
34697         * modules/trunc-tests: New file.
34698         * tests/test-trunc.c: New file.
34700         * modules/trunc: New file.
34701         * lib/trunc.c: New file.
34702         * m4/trunc.m4: New file.
34703         * lib/math.in.h (trunc): New declaration.
34704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
34705         HAVE_DECL_TRUNC.
34706         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
34707         HAVE_DECL_TRUNC.
34708         * doc/functions/trunc.texi: Mention the 'trunc' module.
34710 2007-10-03  Bruno Haible  <bruno@clisp.org>
34712         * tests/test-fpending.c: New file, mostly copied
34713         from coreutils/lib/t-fpending.c.
34714         * modules/fpending-tests: New file.
34716 2007-10-03  Bruno Haible  <bruno@clisp.org>
34718         Port the stdio extensions to QNX (untested).
34719         * lib/fseterr.c (fseterr): Add support for QNX.
34720         * lib/fbufmode.c (fbufmode): Likewise.
34721         * lib/freadable.c (freadable): Likewise.
34722         * lib/fwritable.c (fwritable): Likewise.
34723         * lib/freading.c (freading): Likewise.
34724         * lib/fwriting.c (fwriting): Likewise.
34725         * lib/freadahead.c (freadahed): Likewise.
34726         * lib/fpurge.c (fpurge): Likewise.
34727         * lib/fseeko.c (rpl_fseeko): Likewise.
34729 2007-10-03  Bruno Haible  <bruno@clisp.org>
34730             Jim Meyering  <jim@meyering.net>
34731             Eric Blake  <ebb9@byu.net>
34733         * doc/relocatable.texi: Use @command instead of @program.
34735 2007-10-02  Jim Meyering  <jim@meyering.net>
34737         Perform one more "_.h" -> ".in.h" substitution.
34738         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
34739         instead of unistd_.h here, too.
34741 2007-10-01  Bruno Haible  <bruno@clisp.org>
34743         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
34744         Needed for the alloca-opt module.
34746 2007-09-30  Bruno Haible  <bruno@clisp.org>
34748         * lib/alloca.in.h: Renamed from lib/alloca_.h.
34749         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
34750         alloca_.h.
34751         * lib/argz.in.h: Renamed from lib/argz_.h.
34752         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
34753         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
34754         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
34755         byteswap_.h.
34756         * lib/dirent.in.h: Renamed from lib/dirent_.h.
34757         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
34758         dirent_.h.
34759         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
34760         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
34761         fcntl_.h.
34762         * lib/float.in.h: Renamed from lib/float_.h.
34763         * modules/float (Files, Makefile.am): Use float.in.h instead of
34764         float_.h.
34765         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
34766         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
34767         fnmatch_.h.
34768         * lib/getopt.in.h: Renamed from lib/getopt_.h.
34769         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
34770         getopt_.h.
34771         * lib/glob.in.h: Renamed from lib/glob_.h.
34772         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
34773         * lib/iconv.in.h: Renamed from lib/iconv_.h.
34774         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
34775         iconv_.h.
34776         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
34777         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
34778         inttypes_.h.
34779         * lib/locale.in.h: Renamed from lib/locale_.h.
34780         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
34781         locale_.h.
34782         * lib/math.in.h: Renamed from lib/math_.h.
34783         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
34784         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
34785         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
34786         of netinet_in_.h. Add dependency.
34787         * lib/poll.in.h: Renamed from lib/poll_.h.
34788         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
34789         * lib/search.in.h: Renamed from lib/search_.h.
34790         * modules/search (Files, Makefile.am): Use search.in.h instead of
34791         search_.h.
34792         * lib/signal.in.h: Renamed from lib/signal_.h.
34793         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
34794         _signal.h.
34795         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
34796         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
34797         stdbool_.h.
34798         * lib/stdint.in.h: Renamed from lib/stdint_.h.
34799         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
34800         stdint_.h.
34801         * lib/stdio.in.h: Renamed from lib/stdio_.h.
34802         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
34803         stdio_.h.
34804         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
34805         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
34806         stdlib_.h.
34807         * lib/string.in.h: Renamed from lib/string_.h.
34808         * modules/string (Files, Makefile.am): Use string.in.h instead of
34809         string_.h.
34810         * doc/gnulib-tool.texi (Initial import): Update.
34811         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
34812         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
34813         of sys_select_.h. Add dependency.
34814         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
34815         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
34816         of sys_socket_.h.
34817         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
34818         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
34819         sys_stat_.h.
34820         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
34821         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
34822         sys_time_.h.
34823         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
34824         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
34825         sysexits_.h.
34826         * lib/time.in.h: Renamed from lib/time_.h.
34827         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
34828         * lib/unistd.in.h: Renamed from lib/unistd_.h.
34829         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
34830         unistd_.h.
34831         * lib/wchar.in.h: Renamed from lib/wchar_.h.
34832         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
34833         wchar_.h.
34834         * lib/wctype.in.h: Renamed from lib/wctype_.h.
34835         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
34836         wctype_.h.
34837         * build-aux/bootstrap (slurp): Update.
34838         * lib/.cppi-disable: Update.
34840 2007-09-30  Bruno Haible  <bruno@clisp.org>
34842         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
34843         Needed on BeOS.
34845 2007-09-30  Bruno Haible  <bruno@clisp.org>
34847         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
34849 2007-09-29  Bruno Haible  <bruno@clisp.org>
34851         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
34853 2007-09-29  Bruno Haible  <bruno@clisp.org>
34855         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
34856         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
34857         * build-aux/install-reloc: Compile also areadlink.c.
34858         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
34860 2007-09-29  Bruno Haible  <bruno@clisp.org>
34862         * gnulib-tool (func_emit_initmacro_done): Indentation.
34864 2007-09-29  Bruno Haible  <bruno@clisp.org>
34866         * README: Add CVS checkout update instructions.
34867         Info from Bob Proulx <bob@proulx.com>.
34869 2007-09-28  Eric Blake  <ebb9@byu.net>
34871         Provide move-if-change.
34872         * build-aux/move-if-change: New file, based on best practice
34873         rather than any canonical upstream location.
34875 2007-09-28  Jim Meyering  <jim@meyering.net>
34877         Fix canonicalize loop-detection corner case.
34878         Do not attempt to stat the symlink values stored via seen_triple.
34879         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
34880         on linux-2.6.18, (but not 2.6.22).
34881         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
34882         triple_compare.  The former compares dev,ino,filename, while the latter
34883         would actually stat dirname(filename) when dev and ino were equal.
34884         * lib/hash-triple.c: Install <string.h>.
34885         (STREQ): Define.
34886         (triple_compare_ino_str): New function.
34887         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
34889 2007-09-28  Eric Blake  <ebb9@byu.net>
34891         Enforce that AC_REPLACE_FUNCS files exist.
34892         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
34893         override check for typos.
34895         Fix test-closein on Solaris 10.
34896         * tests/test-closein.c (main): Don't assume stdin can be inherited
34897         closed on all systems.
34898         * tests/test-closein.sh: Likewise.
34899         Reported by Piotr Tarnowski.
34901 2007-09-28  Jim Meyering  <jim@meyering.net>
34903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
34905 2007-09-27  Jim Meyering  <jim@meyering.net>
34907         canonicalize: Avoid a false-positive cycle failure.
34908         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
34909         Sort.  Remove cycle-check.
34910         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
34911         not cycle-check.h.
34912         (seen_triple): New function.
34913         (canonicalize_filename_mode): Use it instead of cycle-check.
34914         * tests/test-canonicalize.c: Add a test for this bug.
34915         * tests/test-canonicalize.sh: Set up and run the test.
34917         New module, file-set, from coreutils.
34918         * modules/file-set: Define it.
34919         * lib/file-set.c, lib/file-set.h: Implement.
34921         New module, hash-triple, from coreutils.
34922         * modules/hash-triple: Define it.
34923         * lib/hash-triple.c, lib/hash-triple.h: Implement.
34925 2007-09-25  Eric Blake  <ebb9@byu.net>
34927         Fix strerror on Interix.
34928         * lib/string_.h (strerror): Declare replacement.
34929         * doc/functions/strerror.texi (strerror): Document the Interix
34930         shortcoming.
34931         * modules/string (Makefile.am): Support new hooks.
34932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
34933         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
34934         gl_FUNC_STRERROR_SEPARATE.
34935         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
34936         * lib/strerror.c (rpl_strerror): Provide replacement.
34937         * modules/strerror (Depends-on): Add string.
34938         (configure.ac): Detect use of module.
34939         * tests/test-strerror.c: New file.
34940         * modules/strerror-tests: New test module.
34941         * modules/argp (Depends-on): Add strerror.
34942         * modules/error (Depends-on): Likewise.
34943         Reported by Martin Koeppe.
34945 2007-09-24  Bruno Haible  <bruno@clisp.org>
34947         * README: Update git instructions.
34949 2007-09-24  Eric Blake  <ebb9@byu.net>
34951         Revert fpending breakage from 2007-09-08.
34952         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
34953         __fpending.c.
34955 2007-09-24  Jim Meyering  <jim@meyering.net>
34957         filenamecat.c: Add a test.
34958         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
34959         showing how the function works when DIR is the empty string.
34961 2007-09-21  Simon Josefsson  <simon@josefsson.org>
34963         * tests/test-canonicalize.sh: Turn on executable bit.
34965 2007-09-19  Eric Blake  <ebb9@byu.net>
34967         * README: Update CVS instructions.
34969 2007-09-18  Bruno Haible  <bruno@clisp.org>
34971         * modules/areadlink: New file.
34972         * lib/areadlink.h (areadlink): New declaration.
34973         * lib/areadlink.c: New file, based on lib/xreadlink.c.
34975 2007-09-17  Jim Meyering  <jim@meyering.net>
34977         * lib/savewd.c (ESTALE) [!defined]: Define.
34978         Reported to be required on Interix by Martin Koeppe.
34980 2007-09-17  Bruno Haible  <bruno@clisp.org>
34982         * gnulib-tool (func_version): Use $version.
34984 2007-09-16  Bruno Haible  <bruno@clisp.org>
34986         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
34987         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
34988         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
34989         Reported by Greg Schafer <gschafer@zip.com.au>.
34991 2007-09-15  Bruno Haible  <bruno@clisp.org>
34993         * gnulib-tool (sed): Try a little harder to make bash understand the
34994         alias.
34995         Reported by Bruce Korb <bruce.korb@gmail.com>.
34997 2007-09-13  Eric Blake  <ebb9@byu.net>
34999         * ChangeLog: Remove conflict markers.
35001 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35003         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35004         Reported by Bruno Haible <bruno@clisp.org>.
35006 2007-09-12  Bruno Haible  <bruno@clisp.org>
35008         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35009         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35010         is not defined.
35012 2007-09-12  Eric Blake  <ebb9@byu.net>
35014         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35015         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35016         Autoconf definition.
35017         * modules/euidaccess (Depends-on): Add extensions, for
35018         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35019         * modules/fnmatch (Depends-on): Likewise.
35020         * modules/getaddrinfo (Depends-on): Likewise.
35021         * modules/getdelim (Depends-on): Likewise.
35022         * modules/getline (Depends-on): Likewise.
35023         * modules/getsubopt (Depends-on): Likewise.
35024         * modules/gettext (Depends-on): Likewise.
35025         * modules/group-member (Depends-on): Likewise.
35026         * modules/mbchar (Depends-on): Likewise.
35027         * modules/memmem (Depends-on): Likewise.
35028         * modules/mempcpy (Depends-on): Likewise.
35029         * modules/memrchr (Depends-on): Likewise.
35030         * modules/pagealign_alloc (Depends-on): Likewise.
35031         * modules/readutmp (Depends-on): Likewise.
35032         * modules/stpcpy (Depends-on): Likewise.
35033         * modules/stpncpy (Depends-on): Likewise.
35034         * modules/strchrnul (Depends-on): Likewise.
35035         * modules/strndup (Depends-on): Likewise.
35036         * modules/strsep (Depends-on): Likewise.
35037         * modules/strverscmp (Depends-on): Likewise.
35038         * modules/vasprintf (Depends-on): Likewise.
35039         * modules/wcwidth (Depends-on): Likewise.
35040         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35041         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35042         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35044         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35045         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35046         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35047         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35048         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35049         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35050         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35051         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35053         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35054         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35055         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35056         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35057         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35058         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35060         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35061         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35062         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35063         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35064         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35066         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35067         so that lock.m4 can be used in gettext without extensions module.
35069 2007-09-11  Bruno Haible  <bruno@clisp.org>
35071         * m4/isc-posix.m4: Remove file.
35072         Suggested by Eric Blake.
35074 2007-09-11  Eric Blake  <ebb9@byu.net>
35076         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35078 2007-09-10  Bruno Haible  <bruno@clisp.org>
35080         * posix-modules: Fix typo in error message.
35081         Reported by Matt <mkraai@beckman.com>.
35083 2007-09-09  Bruno Haible  <bruno@clisp.org>
35085         * doc/functions/getdelim.texi: Update list of platforms lacking the
35086         function.
35087         * doc/functions/getline.texi: Likewise.
35089 2007-09-09  Jim Meyering  <jim@meyering.net>
35091         * lib/hash.c (hash_initialize): Detect calloc failure.
35092         Reported by Bruno Haible.
35094 2007-09-09  Bruno Haible  <bruno@clisp.org>
35096         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35097         malloc or realloc fails.
35099 2007-09-09  Bruno Haible  <bruno@clisp.org>
35101         * modules/getcwd (Depends-on): Add malloc-posix.
35102         * modules/glob (Depends-on): Likewise.
35103         * modules/putenv (Depends-on): Likewise.
35104         * modules/strdup (Depends-on): Likewise.
35105         * modules/getdelim (Depends-on): Add realloc-posix.
35106         * modules/read-file (Depends-on): Likewise.
35108 2007-09-09  Bruno Haible  <bruno@clisp.org>
35110         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35111         (gl_FUNC_MALLOC_POSIX): Require it.
35112         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35113         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35114         * modules/realloc (Files): Add m4/malloc.m4.
35115         * modules/calloc (Files): Likewise.
35117 2007-09-09  Bruno Haible  <bruno@clisp.org>
35119         * modules/malloc-posix: New file.
35120         * modules/malloc (Depends-on): Add malloc-posix.
35121         * lib/malloc.c: Include errno.h.
35122         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35123         and a POSIX-compatible malloc into a single function. Set ENOMEM
35124         when returning NULL.
35125         * m4/malloc.m4: New file.
35126         * doc/functions/malloc.texi: Mention the malloc-posix module.
35127         * lib/stdlib_.h (malloc): New declaration.
35128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35129         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35130         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35131         and HAVE_MALLOC_POSIX.
35133 2007-09-09  Bruno Haible  <bruno@clisp.org>
35135         * modules/realloc-posix: New file.
35136         * modules/realloc (Depends-on): Add realloc-posix.
35137         * lib/realloc.c: Include errno.h.
35138         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35139         and a POSIX-compatible realloc into a single function. Set ENOMEM
35140         when returning NULL.
35141         * m4/realloc.m4: New file.
35142         * doc/functions/realloc.texi: Mention the realloc-posix module.
35143         * lib/stdlib_.h (realloc): New declaration.
35144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35145         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35146         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35147         and HAVE_REALLOC_POSIX.
35149 2007-09-09  Bruno Haible  <bruno@clisp.org>
35151         * modules/calloc-posix: New file.
35152         * modules/calloc (Depends-on): Add calloc-posix.
35153         * lib/calloc.c: Include errno.h.
35154         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35155         and a POSIX-compatible calloc into a single function. Set ENOMEM
35156         when returning NULL.
35157         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35158         * doc/functions/calloc.texi: Mention the calloc-posix module.
35159         * lib/stdlib_.h (calloc): New declaration.
35160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35161         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35162         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35163         and HAVE_CALLOC_POSIX.
35165 2007-09-09  Bruno Haible  <bruno@clisp.org>
35167         Allow for modules to show an arbitrary notice.
35168         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35169         * gnulib-tool: New option --extract-notice.
35170         (func_usage): Document it.
35171         (sed_extract_prog): Update.
35172         (func_get_notice): New function.
35173         (func_modules_notice): New function.
35174         (func_import, func_create_testdir): Invoke it.
35175         Suggested by Jim Meyering.
35177 2007-09-09  Bruno Haible  <bruno@clisp.org>
35179         * gnulib-tool: New options --verbose, --quiet.
35180         (func_usage): Document them.
35181         (verbose): New variable.
35182         (func_execute_command): New function.
35183         (func_import): Don't show the module list and the file list if
35184         $verbose < 0.
35185         (func_create_testdir): Likewise. Use func_execute_command.
35186         (func_create_megatestdir): Use func_execute_command.
35188 2007-09-08  Bruno Haible  <bruno@clisp.org>
35190         * gnulib-tool (func_import): Prefer rsync over wget when available,
35191         for fetching the PO files.
35193 2007-09-08  Bruno Haible  <bruno@clisp.org>
35195         * posix-modules: New file. Portions copied from gnulib-tool.
35196         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35198 2007-09-08  Jim Meyering  <jim@meyering.net>
35200         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35201         * lib/fpending.h: Rename from __fpending.h.
35202         * lib/fpending.c: Rename from __fpending.c.
35203         Include "fpending.h", not "__fpending.h".
35204         * lib/__fpending.h, lib/__fpending.c: Remove files.
35205         * modules/fpending (Files): Reflect new file names.
35206         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35208 2007-09-08  Bruno Haible  <bruno@clisp.org>
35210         * m4/inttypes-h.m4: Remove stub file.
35212 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35214         * doc/headers/stdint.texi: Discuss #include_next issue.
35216 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35218         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35220 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35222         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35223         in variable name.
35225 2007-09-03  Jim Meyering  <jim@meyering.net>
35227         New module: git-version-gen.
35228         * modules/git-version-gen: New file.
35230         Import changes from coreutils for bootstrap script.
35232         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35234         bootstrap: uses rsync to download the .po files
35235         * build-aux/bootstrap (po_download_command_format): New global.
35236         (download_po_files): Use rsync.
35237         (update_po_files): Don't remove .po files after download,
35238         so future rsync runs can take advantage of the copies.
35240         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35242         Solve the unnecessary-.po-file-regeneration problem once and for all.
35243         * build-aux/bootstrap (download_po_files): New function, renamed from
35244         get_translations.  Now, downloads, but doesn't update LINGUAS.
35245         (update_po_files): New function.
35247         bootstrap: Ignore more.
35248         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35249         uniwidth to e.g., lib/.gitignore.
35250         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35252         * build-aux/bootstrap: New setting: vc_ignore.
35253         (insert_sorted_if_absent): Create $file if absent.
35254         Adapt to new, possibly empty, list: $vc_ignore.
35256         bootstrap: generate more ignorable names
35257         * build-aux/bootstrap (slurp): When generating ignorable names,
35258         also map .sin to .sed, .gperf to .c, and .y to .c.
35260 2007-09-03  Jim Meyering  <jim@meyering.net>
35262         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35263         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35265 2007-09-02  Bruno Haible  <bruno@clisp.org>
35267         Fix mis-recognition of 'mcs' on QNX 6.
35268         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35269         output contains the string "Mono".
35270         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35271         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35273 2007-09-01  Bruno Haible  <bruno@clisp.org>
35275         Fix collision between uniwidth/* and linebreak modules.
35276         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35277         u32_width): Remove declarations.
35278         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35279         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35280         streq3, streq2, streq1, streq0): Remove functions.
35281         (STREQ): Remove macro.
35282         (is_cjk_encoding): Remove function.
35283         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35284         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35285         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35286         * NEWS: Document the change.
35288 2007-09-01  Bruno Haible  <bruno@clisp.org>
35290         * lib/streq.h: Add double-inclusion guard.
35292 2007-09-01  Karl Berry  <karl@gnu.org>
35294         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35296 2007-08-28  Jim Meyering  <jim@meyering.net>
35298         Rename mreadlink_with_size to areadlink_with_size.
35299         * NEWS: Document the change.
35300         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35301         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35302         * lib/mreadlink.h: Rename this to...
35303         * lib/areadlink.h: ...this.
35304         * modules/mreadlink-with-size: Rename this to...
35305         * modules/areadlink-with-size: ...this.
35306         * lib/canonicalize.c: Reflect the renaming.
35307         * modules/canonicalize: Likewise.
35309 2007-08-26  Bruno Haible  <bruno@clisp.org>
35311         * gnulib-tool (func_import): When deciding which files to remove,
35312         consider also dangling symbolic links.
35313         Reported by Eric Blake.
35315 2007-08-26  Bruno Haible  <bruno@clisp.org>
35317         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
35319 2007-08-23  Simon Josefsson  <simon@josefsson.org>
35321         * lib/readline.c: Don't include getline.h, the prototype is now
35322         found in stdio.h.
35324 2007-08-23  Jim Meyering  <jim@meyering.net>
35326         Getdelim touchup.
35327         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
35328         around the funlockfile call, since funlockfile never sets errno.
35329         Don't set errno upon failed realloc.
35331 2007-08-22  Eric Blake  <ebb9@byu.net>
35333         Getline touchups.
35334         * lib/getdelim.c (getdelim): Revert regression that required *n to
35335         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
35336         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
35337         getdelim, rather than whether implementation is missing.
35338         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
35339         * lib/stdio_.h (getline): Also declare if replacement is
35340         required.
35341         * doc/functions/getdelim.texi: New file.
35342         * doc/functions/getline.texi: Likewise.
35343         * doc/gnulib.texi (Function Substitutes): Add new files.
35344         Reported by Bruno Haible.
35346 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
35348         * users.txt: Add Guile.
35350 2007-08-22  Eric Blake  <ebb9@byu.net>
35352         * tests/test-getdelim.c (main): Use remove, not unlink.
35353         * tests/test-getline.c (main): Likewise.
35355         Move getline and getdelim into stdio.h, per POSIX 200x.
35356         * modules/getline (Files): Remove getline.h.
35357         (Depends-on): Add stdio.
35358         (configure.ac): Add module indicator.
35359         * modules/getdelim (Files): Remove getdelim.h.
35360         (Depends-on): Add stdio.
35361         (configure.ac): Add module indicator.
35362         * modules/stdio (Makefile.am): Work with new indicators.
35363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35364         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
35365         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35366         * lib/getdelim.h: Delete.
35367         * lib/getline.h: Delete.
35368         * lib/stdio_.h (getdelim, getline): Declare.
35369         * modules/getdelim-tests: New module.
35370         * modules/getline-tests: Likewise.
35371         * tests/test-getdelim.c: New file.
35372         * tests/test-getline.c: Likewise.
35373         * NEWS: Document the change.
35374         * lib/getline.c: Update choice of header.
35375         * lib/csharpcomp.c: Likewise.
35376         * lib/getpass.c: Likewise.
35377         * lib/javacomp.c: Likewise.
35378         * lib/javaversion.c: Likewise.
35379         * lib/yesno.c: Likewise.
35380         * lib/getdelim.c: Likewise.
35381         (getdelim): Set errno on failure, and avoid memory leak.
35383 2007-08-19  Bruno Haible  <bruno@clisp.org>
35385         * modules/closein (Depends-on): Add freadahead.
35386         * lib/closein.c: Include freadahead.h.
35387         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
35388         is zero.
35390 2007-08-19  Bruno Haible  <bruno@clisp.org>
35392         * modules/freadahead-tests: New file.
35393         * tests/test-freadahead.sh: New file.
35394         * tests/test-freadahead.c: New file.
35396         * modules/freadahead: New file.
35397         * lib/freadahead.h: New file.
35398         * lib/freadahead.c: New file.
35399         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
35400         fbufmode, fpurge, freadable, fwritable.
35402 2007-08-19  Eric Blake  <ebb9@byu.net>
35404         Test yesno in combination with closein.
35405         * lib/yesno.c (yesno): Document use of stdin.
35406         * modules/yesno-tests (Files): New module.
35407         * tests/test-yesno.c (main): New file.
35408         * tests/test-yesno.sh: Likewise.
35410 2007-08-19  Bruno Haible  <bruno@clisp.org>
35412         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
35413         * lib/fseeko.c (rpl_fseeko): Likewise.
35414         * lib/fseterr.c (fseterr): Likewise.
35416 2007-08-19  Bruno Haible  <bruno@clisp.org>
35418         * tests/test-lseek.c (main): Disable a test for BeOS.
35419         * doc/functions/lseek.texi: Document the BeOS bug.
35421 2007-08-19  Bruno Haible  <bruno@clisp.org>
35422             Eric Blake  <ebb9@byu.net>
35424         * lib/lseek.c: Include <sys/stat.h>.
35425         (rpl_lseek): Add workaround code also for Unix platforms.
35426         Needed for BeOS.
35427         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
35428         * doc/functions/lseek.texi: Document BeOS definiency.
35430 2007-08-18  Bruno Haible  <bruno@clisp.org>
35432         * modules/fstrcmp-tests: New file.
35433         * tests/test-fstrcmp.c: New file.
35435 2007-08-18  Bruno Haible  <bruno@clisp.org>
35437         * modules/fstrcmp: New file, from GNU gettext with modifications.
35438         * lib/fstrcmp.h: New file, from GNU gettext.
35439         * lib/fstrcmp.c: New file, from GNU gettext.
35440         * MODULES.html.sh (String handling): Add fstrcmp.
35442 2007-08-18  Bruno Haible  <bruno@clisp.org>
35444         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
35445         'bool'.
35446         (diag, compareseq): Remove const from the ctxt argument.
35447         (USE_HEURISTIC): Undefine at the end.
35449 2007-08-18  Jim Meyering  <jim@meyering.net>
35451         New file: lib/idcache.h
35452         * NEWS: Mention the addition.
35453         * modules/idcache (Files): Add lib/idcache.h
35454         * lib/idcache.c: Include "idcache.h".
35455         Don't include <sys/types.h>.
35456         Add a FIXME comment.
35457         Move file-scoped "static" declarations to the top.
35458         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
35460 2007-08-17  Bruno Haible  <bruno@clisp.org>
35461         and Paul Eggert  <eggert@cs.ucla.edu>
35463         * MODULES.html.sh: Add diffseq.
35464         * modules/diffseq: New file.
35465         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
35466         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
35468 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35470         Import changes from coreutils for bootstrap script.
35472         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
35474         * build-aux/bootstrap (slurp): Work even in environments where
35475         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
35476         current code does not slurp files whose names start with ".", and
35477         this looks like it might be a troublesome area.
35479         2007-07-11  Jim Meyering  <jim@meyering.net>
35481         If there's a GPL vN copyright comment, require that N == 3.
35483         2007-07-08  Jim Meyering  <jim@meyering.net>
35485         Run the coreutils-specific code only if tests/Makefile.am.in exists.
35486         * build-aux/bootstrap (mam_template): Move definition out of loop.
35488         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
35490         * build-aux/bootstrap (symlink_to_dir): Rename function from
35491         symlink_to_gnulib.  Add a directory parameter.  Update all
35492         callers.
35493         (cp_mark_as_generated): Also check for -- and link to -- files in
35494         gl/.
35496         2007-07-08  Jim Meyering  <jim@meyering.net>
35498         Adapt to deeper hierarchy in gnulib.
35499         * build-aux/bootstrap (symlink_to_dir): If the destination
35500         directory doesn't exist, create it. This is required at least for
35501         "lib/uniwidth/cjk.h".
35503         2007-05-15  Jim Meyering  <jim@meyering.net>
35505         * build-aux/bootstrap: Now that generated Makefile.am files
35506         are no longer under version control, they must be created at
35507         bootstrap time.
35509 2007-08-14  Ben Pfaff  <blp@gnu.org>
35511         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
35513 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35515         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
35516         given the changes below.
35517         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
35518         even on hosts that have padding bits beyond the supported 64.
35520 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35522         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
35523         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
35524         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
35525         depends on it.
35526         (xstrtol_error): Remove.
35527         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
35528         but with a different signature.
35529         (ATTRIBUTE_NORETURN, __attribute__): New macros.
35530         * lib/xstrtol-error.c: Include exitfail.h.
35531         (xstrtol_fatal): New function, with a different signature from the
35532         old xstrtol_error, so that the caller need not worry about passing
35533         in an exit status, or about storage management of the option argument.
35534         (xstrtol_error): Now a static function.  Redo signature to
35535         implement xstrtol_fatal.  Output the correct number of hyphens in
35536         front of the option so that the caller need not worry about
35537         storage management.
35538         (N_): New macro.
35539         (_): Remove; not used now.
35540         * modules/xstrtol: Depend on getopt.
35541         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
35542         of old STRTOL_FATAL_ERROR macro.
35543         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
35544         of test program.
35545         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
35546         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
35548 2007-08-08  Eric Blake  <ebb9@byu.net>
35550         * lib/xstrtol-error.c: Add missing include.
35552         Move xstrtol messages into gnulib domain, when --pobase is used.
35553         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
35554         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
35555         * modules/xstrtol (Files): Distribute new file.
35556         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
35557         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
35558         * tests/test-xstrtol.c: ...into new file.
35559         * tests/test-xstrtoul.c: Also test xstrtoul.
35560         * tests/test-xstrtoimax.c: Also test xstrtoimax.
35561         * tests/test-xstrtoumax.c: Also test xstrtoumax.
35562         * tests/test-xstrtol.sh: Drive the tests.
35563         * tests/test-xstrtoimax.sh: Likewise.
35564         * tests/test-xstrtoumax.sh: Likewise.
35565         * modules/xstrtol-tests: New module.
35566         * modules/xstrtoimax-tests: Likewise.
35567         * modules/xstrtoumax-tests: Likewise.
35569 2007-08-08  Jim Meyering  <jim@meyering.net>
35571         New function: mfile_name_concat.
35572         * lib/filenamecat.c (mfile_name_concat): New function, just like
35573         file_name_concat, but return NULL upon failure rather than exiting
35574         with a diagnostic.
35575         * lib/filenamecat.h: Declare it.
35577 2007-08-07  Bruno Haible  <bruno@clisp.org>
35579         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
35580         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
35581         warning from gcc.
35582         Reported by Eric Blake.
35584 2007-08-07  Simon Josefsson  <simon@josefsson.org>
35586         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
35587         * modules/crypto/arcfour (License): Likewise.
35588         * modules/crypto/des-tests (License): Likewise.
35589         * modules/crypto/gc-arctwo-tests (License): Likewise.
35590         * modules/crypto/gc-des-tests (License): Likewise.
35591         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
35592         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
35593         * modules/crypto/gc-md2-tests (License): Likewise.
35594         * modules/crypto/gc-md4-tests (License): Likewise.
35595         * modules/crypto/gc-md5-tests (License): Likewise.
35596         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
35597         * modules/crypto/gc-rijndael-tests (License): Likewise.
35598         * modules/crypto/gc-sha1-tests (License): Likewise.
35599         * modules/crypto/gc-tests (License): Likewise.
35600         * modules/crypto/hmac-md5 (License): Likewise.
35601         * modules/crypto/hmac-sha1 (License): Likewise.
35602         * modules/crypto/md2-tests (License): Likewise.
35603         * modules/crypto/md4-tests (License): Likewise.
35604         * modules/crypto/md5 (License): Likewise.
35605         * modules/crypto/rijndael (License): Likewise.
35606         * modules/crypto/sha1 (License): Likewise.
35607         * modules/memxor (License): Likewise.
35609 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35610         and Bruno Haible  <bruno@clisp.org>
35612         * NEWS: Describe interface changes to human, xstrtol.
35613         * lib/human.h: Include <xstrtol.h>.
35614         (human_options): Return enum strtol_error, not int.  Remove
35615         bool arg; take int * instead.
35616         * lib/human.c: Don't include "gettext.h".
35617         (_): Remove; no longer used.
35618         Don't include <xstrtol.h>, since human.h does it.
35619         (human_options): Adjust to abovementioned interface changes.
35620         Do not report error to stderr; that's now the caller's
35621         responsibility.
35622         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
35623         interface change.
35624         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
35625         Str, Argument_type_string.  All uses changed.  Put " argument"
35626         in diagnostics to make them clearer.  Change wording of suffix
35627         message for clarity.
35628         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
35629         Argument_type_string.
35630         (STRTOL_FATAL_WARN): Remove; no longer used.
35631         * modules/human (Depends-on): Remove gettext-h.
35633 2007-08-06  Simon Josefsson  <simon@josefsson.org>
35635         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
35637 2007-07-31  Bruno Haible  <bruno@clisp.org>
35639         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
35640         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
35641         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
35643 2007-07-31  Bruno Haible  <bruno@clisp.org>
35645         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
35646         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
35648 2007-07-30  Bruno Haible  <bruno@clisp.org>
35650         * modules/base64 (License): Use the synonymous term "LGPLv2+".
35651         * modules/c-ctype (License): Likewise.
35652         * modules/c-strcase (License): Likewise.
35653         * modules/check-version (License): Likewise.
35654         * modules/iconv (License): Likewise.
35655         * modules/iconv_open (License): Likewise.
35656         * modules/read-file (License): Likewise.
35657         * modules/striconv (License): Likewise.
35658         * modules/strverscmp (License): Likewise.
35659         * modules/vasprintf (License): Likewise.
35660         * modules/crypto/des (License): Likewise.
35661         * modules/crypto/gc (License): Likewise.
35662         * modules/crypto/gc-arcfour (License): Likewise.
35663         * modules/crypto/gc-arctwo (License): Likewise.
35664         * modules/crypto/gc-des (License): Likewise.
35665         * modules/crypto/gc-hmac-md5 (License): Likewise.
35666         * modules/crypto/gc-hmac-sha1 (License): Likewise.
35667         * modules/crypto/gc-md2 (License): Likewise.
35668         * modules/crypto/gc-md4 (License): Likewise.
35669         * modules/crypto/gc-md5 (License): Likewise.
35670         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
35671         * modules/crypto/gc-random (License): Likewise.
35672         * modules/crypto/gc-rijndael (License): Likewise.
35673         * modules/crypto/gc-sha1 (License): Likewise.
35674         * modules/crypto/md2 (License): Likewise.
35675         * modules/crypto/md4 (License): Likewise.
35677 2007-07-30  Jim Meyering  <jim@meyering.net>
35679         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
35680         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
35681         it has valid stat data.  This bug would cause du not to count the
35682         sizes of inaccessible directories.
35683         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
35684         in <http://bugzilla.redhat.com/250077>.
35686 2007-07-25  Peter O'Gorman  <peter@pogma.com>
35687             Bruno Haible  <bruno@clisp.org>
35689         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
35690         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
35691         #include_next, gives a diagnostic about it, but reports no error in
35692         the exit code.
35693         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35695 2007-07-24  Ben Pfaff  <blp@gnu.org>
35697         Improve name: "count-one-bits" is better than "popcount".
35698         * MODULES.html.sh: Update name.
35699         * lib/popcount.h: Renamed lib/count-one-bits.h.
35700         (popcount): Renamed count_one_bits.
35701         (popcountl): Renamed count_one_bits_l.
35702         (popcountll): Renamed count_one_bits_ll.
35703         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
35704         * modules/popcount: Renamed module/count-one-bits.
35705         * modules/popcount-tests: Renamed module/count-one-bits-tests.
35706         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
35708 2007-07-23  Ben Pfaff  <blp@gnu.org>
35710         * lib/popcount.h (popcount32): Reduce size of constants, to allow
35711         better code generation, and add U to large constants to avoid
35712         warnings, in non-GCC case.
35713         Suggested by Bruno Haible.
35715 2007-07-23  Ben Pfaff  <blp@gnu.org>
35717         * lib/popcount.h: Use verify_true instead of if...abort.
35718         * modules/popcount: Depend on verify module.
35719         Suggested by Jim Meyering.
35721 2007-07-23  Bruno Haible  <bruno@clisp.org>
35723         * gnulib-tool (func_import): Create a .cvsignore file also when the
35724         directory is not yet in CVS but the toplevel directory is. When
35725         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
35726         Reported by Karl Berry.
35728 2007-07-22  Ben Pfaff  <blp@gnu.org>
35730         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
35731         case.
35732         Suggested by Eric Blake.
35734 2007-07-22  Ben Pfaff  <blp@gnu.org>
35736         New module: popcount.
35737         * MODULES.html.sh: Add popcount.
35738         * modules/popcount: New file.
35739         * modules/popcount-tests: New file.
35740         * tests/test-popcount.c: New file.
35741         * lib/popcount.h: New file.
35742         * m4/popcount.m4: New file.
35744 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
35746         * build-aux/announce-gen: Update to GPLv3.
35748         * build-aux/config.guess: Update from config.
35750 2007-07-21  Bruno Haible  <bruno@clisp.org>
35752         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
35753         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
35755 2007-07-20  Jim Meyering  <jim@meyering.net>
35757         * check-module: Diagnose a self-dependency.
35759 2007-07-19  Bruno Haible  <bruno@clisp.org>
35761         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
35762         empty.
35763         Reported by Eric Blake.
35765 2007-07-18  Bruno Haible  <bruno@clisp.org>
35767         * gnulib-tool: New options --po-base, --po-domain.
35768         (func_usage): Document them.
35769         (pobase, po_domain): New variables.
35770         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
35771         DEFAULT_TEXT_DOMAIN.
35772         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
35773         (func_import): Consider pobase and po_domain. Create a po/ directory.
35774         (func_create_testdir): Set pobase and po_domain to empty.
35775         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
35776         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
35778 2007-07-18  Bruno Haible  <bruno@clisp.org>
35780         * gnulib-tool (func_get_automake_snippet): Synthesize also an
35781         EXTRA_DIST augmentation for files in build-aux/.
35783 2007-07-16  Bruno Haible  <bruno@clisp.org>
35785         * modules/lseek (License): Use the synonymous term "LGPLv2+".
35786         * modules/getdelim (License): Likewise.
35788 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35790         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
35791         * modules/d-type (License): Likewise.
35792         * modules/extensions (License): Likewise.
35793         * modules/fnmatch (License): Likewise.
35794         * modules/fseeko (License): Likewise.
35795         * modules/getaddrinfo (License): Likewise.
35796         * modules/getline (License): Likewise.
35797         * modules/getlogin_r (License): Likewise.
35798         * modules/getpass (License): Likewise.
35799         * modules/gettimeofday (License): Likewise.
35800         * modules/glob (License): Likewise.
35801         * modules/inet_ntop (License): Likewise.
35802         * modules/malloc (License): Likewise.
35803         * modules/malloca (License): Likewise.
35804         * modules/memmem (License): Likewise.
35805         * modules/mempcpy (License): Likewise.
35806         * modules/memset (License): Likewise.
35807         * modules/minmax (License): Likewise.
35808         * modules/mktime (License): Likewise.
35809         * modules/netinet_in (License): Likewise.
35810         * modules/pathmax (License): Likewise.
35811         * modules/poll (License): Likewise.
35812         * modules/regex (License): Likewise.
35813         * modules/snprintf (License): Likewise.
35814         * modules/stdbool (License): Likewise.
35815         * modules/stdint (License): Likewise.
35816         * modules/stdio (License): Likewise.
35817         * modules/strcase (License): Likewise.
35818         * modules/strcasestr (License): Likewise.
35819         * modules/strdup (License): Likewise.
35820         * modules/string (License): Likewise.
35821         * modules/strndup (License): Likewise.
35822         * modules/strnlen (License): Likewise.
35823         * modules/strpbrk (License): Likewise.
35824         * modules/strptime (License): Likewise.
35825         * modules/strsep (License): Likewise.
35826         * modules/sys_select (License): Likewise.
35827         * modules/sys_socket (License): Likewise.
35828         * modules/sys_stat (License): Likewise.
35829         * modules/sys_time (License): Likewise.
35830         * modules/time (License): Likewise.
35831         * modules/time_r (License): Likewise.
35832         * modules/timegm (License): Likewise.
35833         * modules/unistd (License): Likewise.
35834         * modules/vsnprintf (License): Likewise.
35835         * modules/wctype (License): Likewise.
35837 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35839         * modules/argz (License): LGPLv2+.
35841 2007-07-15  Karl Berry  <karl@gnu.org>
35843         * doc/gnulib.texi: revise node structure per new fdl.texi.
35845 2007-07-14  Bruno Haible  <bruno@clisp.org>
35847         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
35848         the output file.
35849         * lib/uniname/uninames.h: Regenerated.
35851 2007-07-14  Karl Berry  <karl@gnu.org>
35853         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
35854         omitting sectioning and index commands.
35856 2007-07-13  Bruno Haible  <bruno@clisp.org>
35858         New gnulib-tool option --more-symlinks.
35859         * gnulib-tool (func_usage): Document --more-symlinks.
35860         (do_copyrights): New variable.
35861         Recognize option --more-symlinks.
35862         (func_import): Don't add a copyright notice transform to
35863         sed_transform_lib_file if do_copyrights is empty.
35865 2007-07-13  Bruno Haible  <bruno@clisp.org>
35867         * lib/vasnprintf.c (decimal_point_char): Define also if
35868         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
35869         && !NEED_PRINTF_DIRECTIVE_A.
35870         Reported by Clemens Koller <clemens.koller@anagramm.de> via
35871         Gary V. Vaughan <gary@gnu.org>.
35873 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
35875         * lib/inttypes_.h: Undo previous change, since it was fixed
35876         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
35878 2007-07-13  Bruno Haible  <bruno@clisp.org>
35880         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
35881         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
35883 2007-07-13  Jim Meyering  <jim@meyering.net>
35885         df: Don't fail for Tru64's "file-on-file mount".
35886         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
35887         so we fall through and use statfs instead.  Details here:
35888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
35889         Reported by Albert Chin.
35891 2007-07-13  Bruno Haible  <bruno@clisp.org>
35893         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
35894         * modules/configmake (License): Likewise.
35895         * modules/gettext (License): Likewise.
35896         * modules/gettext-h (License): Likewise.
35897         * modules/include_next (License): Likewise.
35898         * modules/link-warning (License): Likewise.
35899         * modules/localcharset (License): Likewise.
35900         * modules/localename (License): Likewise.
35901         * modules/lock (License): Likewise.
35902         * modules/relocatable-lib-lgpl (License): Likewise.
35903         * modules/size_max (License): Likewise.
35904         * modules/vasnprintf (License): Likewise.
35905         * modules/wchar (License): Likewise.
35906         * modules/xsize (License): Likewise.
35908 2007-07-13  Bruno Haible  <bruno@clisp.org>
35910         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
35911         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
35913 2007-07-12  Bruno Haible  <bruno@clisp.org>
35915         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
35916         in the modules files.
35918 2007-07-11  Karl Berry  <karl@gnu.org>
35920         * MODULES.html.sh (func_module): use
35921          sed -e '\|^'"${includefile}"'$|d'
35922          instead of /.../d, to avoid errors on $includefile's containing /.
35924 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
35926         * gnulib-tool (func_import): Avoid duplication of --avoid
35927         statements
35928         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
35929         names to `_' in variable names.
35931 2007-07-10  Eric Blake  <ebb9@byu.net>
35933         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
35934         * NEWS: Document this change.
35936 2007-07-08  Bruno Haible  <bruno@clisp.org>
35938         Update to Unicode 5.0.
35939         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
35940         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
35941         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
35942         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
35943         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
35944         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
35945         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
35946         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
35947         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
35948         U+10A3F, U+1D242..U+1D244.
35949         (nonspacing_table_ind): Update.
35950         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
35951         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
35953 2007-07-08  Bruno Haible  <bruno@clisp.org>
35955         Update to Unicode 5.0.
35956         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
35957         code transform. Extend the name index field of unicode_name_to_code and
35958         unicode_code_to_name from 16 to 24 bits.
35959         * lib/uniname/uniname.c (unicode_character_name,
35960         unicode_name_character): Add the range 0x12xxx to the code transform.
35961         * lib/uniname/uninames.h: Regenerated.
35962         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
35964 2007-07-07  Bruno Haible  <bruno@clisp.org>
35966         * modules/wcwidth-tests: New file.
35967         * tests/test-wcwidth.c: New file.
35969         Work around MacOS X wcwidth() bug.
35970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
35971         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
35972         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
35973         original wcwidth in non-UTF-8 locales.
35974         * modules/wcwidth (Depends-on): Add localcharset, streq,
35975         uniwidth/width.
35976         * doc/functions/wcwidth.texi: Update.
35978 2007-07-07  Bruno Haible  <bruno@clisp.org>
35980         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
35981         (wcwidth): New declaration.
35982         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
35983         macros.
35984         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
35985         here. Prepare for creating <wchar.h> unconditionally.
35986         * modules/wchar (Depends-on): Add link-warning.
35987         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
35988         REPLACE_WCWIDTH, and GL_LINK_WARNING.
35989         * lib/wcwidth.h: Remove file.
35990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
35991         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
35992         * modules/wcwidth (Files): Remove lib/wcwidth.h.
35993         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
35994         (Include): Replace wcwidth.h with <wchar.h>.
35995         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
35996         * lib/mbchar.h: Don't include wcwidth.h.
35997         * lib/mbswidth.c: Likewise.
35998         * NEWS: Mention the change.
36000 2007-07-07  Bruno Haible  <bruno@clisp.org>
36002         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36003         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36004         definition with an external declaration.
36005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36006         defined as a function. Remove AC_C_INLINE requirement.
36007         * modules/wcwidth (Files): Add lib/wcwidth.c.
36008         (Makefile.am): Remove redundant statement.
36010 2007-07-07  Bruno Haible  <bruno@clisp.org>
36012         * MODULES.html.sh (Unicode string functions): Add the new modules.
36014         * tests/uniwidth/test-u32-strwidth.c: New file.
36015         * modules/uniwidth/u32-strwidth-tests: New file.
36017         * lib/uniwidth/u32-strwidth.c: New file.
36018         * modules/uniwidth/u32-strwidth: New file.
36020         * tests/uniwidth/test-u16-strwidth.c: New file.
36021         * modules/uniwidth/u16-strwidth-tests: New file.
36023         * lib/uniwidth/u16-strwidth.c: New file.
36024         * modules/uniwidth/u16-strwidth: New file.
36026         * tests/uniwidth/test-u8-strwidth.c: New file.
36027         * modules/uniwidth/u8-strwidth-tests: New file.
36029         * lib/uniwidth/u8-strwidth.c: New file.
36030         * modules/uniwidth/u8-strwidth: New file.
36032         * tests/uniwidth/test-u32-width.c: New file.
36033         * modules/uniwidth/u32-width-tests: New file.
36035         * lib/uniwidth/u32-width.c: New file.
36036         * modules/uniwidth/u32-width: New file.
36038         * tests/uniwidth/test-u16-width.c: New file.
36039         * modules/uniwidth/u16-width-tests: New file.
36041         * lib/uniwidth/u16-width.c: New file.
36042         * modules/uniwidth/u16-width: New file.
36044         * tests/uniwidth/test-u8-width.c: New file.
36045         * modules/uniwidth/u8-width-tests: New file.
36047         * lib/uniwidth/u8-width.c: New file.
36048         * modules/uniwidth/u8-width: New file.
36050         * tests/uniwidth/test-uc_width.c: New file.
36051         * modules/uniwidth/width-tests: New file.
36053         * lib/uniwidth/width.c: New file, from GNU libiconv.
36054         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36055         * modules/uniwidth/width: New file.
36057         * lib/uniwidth.h: New file, from GNU libiconv.
36058         * modules/uniwidth/base: New file.
36060 2007-07-07  Bruno Haible  <bruno@clisp.org>
36062         * lib/uniname.h: New file, from GNU gettext.
36063         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36064         * lib/uniname/uninames.h: New file, from GNU gettext.
36065         * lib/uniname/uniname.c: New file, from GNU gettext.
36066         * tests/uniname/test-uninames.sh: New file.
36067         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36068         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36069         * modules/uniname/base: New file.
36070         * modules/uniname/uniname: New file.
36071         * modules/uniname/uniname-tests: New file.
36072         * MODULES.html.sh (Unicode string functions): Add the new modules.
36074 2007-07-06  Bruno Haible  <bruno@clisp.org>
36076         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36078 2007-07-06  Bruno Haible  <bruno@clisp.org>
36080         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36081         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36082         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36083         include <sys/time.h>.
36084         Reported by Eric Blake.
36086 2007-07-06  Eric Blake  <ebb9@byu.net>
36088         Fix testing canonicalize on cygwin.
36089         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36090         Revert patch from 2007-06-19.
36091         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36092         canonicalize module is also in use.
36093         * tests/test-canonicalize.c: New file.
36094         * tests/test-canonicalize.sh: Likewise.
36095         * modules/canonicalize-tests: Likewise.
36097 2007-07-06  Jim Meyering  <jim@meyering.net>
36099         * lib/getugroups.c (getugroups): Detect getgrent failure.
36100         Adjust comment to reflect reality: this function may return -1.
36102 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36104         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36105         the new TP address.
36106         (usage): Fix typo
36107         (gnulib_mk): New variable.
36109 2007-07-05  Jim Meyering  <jim@meyering.net>
36111         Don't let endgrent clobber errno, no matter how improbable.
36112         * lib/getugroups.c (getugroups): Save and restore errno around
36113         endgrent call.
36115         Close the group DB even when failing with 2^31 or more members.
36116         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36118 2007-07-04  Jim Meyering  <jim@meyering.net>
36120         * lib/getugroups.h: New file.
36121         * lib/getugroups.c: Include "getugroups.h".
36122         Remove uses of "register" keyword.
36123         Move local variable, "cp", down into scope where used.
36124         Give "username" parameter the "const" attribute.
36125         * modules/getugroups (Files): Add lib/getugroups.h
36127 2007-07-04  Karl Berry  <karl@gnu.org>
36129         * MODULES.html.sh (func_all_modules): Complete rename of
36130         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36132 2007-07-02  Bruno Haible  <bruno@clisp.org>
36134         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36135         mode, when inttypes.h comes from gnulib.
36136         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36138 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36140         * NEWS: Mention lgpl module name change.
36142         * modules/lgpl-2.1: Renamed from lgpl.
36144         * NEWS: Mention gpl module name change.
36146         * modules/gpl-3.0: New file, based on gpl-2.0.
36148         * modules/gpl-2.0: Renamed from gpl.
36150         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36151         doc/gpl-2.0.texi.
36153 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36155         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36156         #define __STDC_LIMIT_MACROS temporarily while including
36157         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36158         Problem reported by Joel E. Denny in
36159         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36161 2007-07-01  Bruno Haible  <bruno@clisp.org>
36163         * lib/unistdio.h: New file.
36164         * lib/unistdio/u-asnprintf.h: New file.
36165         * lib/unistdio/u-asprintf.h: New file.
36166         * lib/unistdio/u-printf-args.c: New file.
36167         * lib/unistdio/u-printf-args.h: New file.
36168         * lib/unistdio/u-printf-parse.h: New file.
36169         * lib/unistdio/u-snprintf.h: New file.
36170         * lib/unistdio/u-sprintf.h: New file.
36171         * lib/unistdio/u-vasprintf.h: New file.
36172         * lib/unistdio/u-vsnprintf.h: New file.
36173         * lib/unistdio/u-vsprintf.h: New file.
36174         * lib/unistdio/ulc-asnprintf.c: New file.
36175         * lib/unistdio/ulc-asprintf.c: New file.
36176         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36177         * lib/unistdio/ulc-printf-parse.c: New file.
36178         * lib/unistdio/ulc-snprintf.c: New file.
36179         * lib/unistdio/ulc-sprintf.c: New file.
36180         * lib/unistdio/ulc-vasnprintf.c: New file.
36181         * lib/unistdio/ulc-vasprintf.c: New file.
36182         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36183         * lib/unistdio/ulc-vsnprintf.c: New file.
36184         * lib/unistdio/ulc-vsprintf.c: New file.
36185         * lib/unistdio/u8-asnprintf.c: New file.
36186         * lib/unistdio/u8-asprintf.c: New file.
36187         * lib/unistdio/u8-printf-parse.c: New file.
36188         * lib/unistdio/u8-snprintf.c: New file.
36189         * lib/unistdio/u8-sprintf.c: New file.
36190         * lib/unistdio/u8-vasnprintf.c: New file.
36191         * lib/unistdio/u8-vasprintf.c: New file.
36192         * lib/unistdio/u8-vsnprintf.c: New file.
36193         * lib/unistdio/u8-vsprintf.c: New file.
36194         * lib/unistdio/u8-u8-asnprintf.c: New file.
36195         * lib/unistdio/u8-u8-asprintf.c: New file.
36196         * lib/unistdio/u8-u8-snprintf.c: New file.
36197         * lib/unistdio/u8-u8-sprintf.c: New file.
36198         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36199         * lib/unistdio/u8-u8-vasprintf.c: New file.
36200         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36201         * lib/unistdio/u8-u8-vsprintf.c: New file.
36202         * lib/unistdio/u16-asnprintf.c: New file.
36203         * lib/unistdio/u16-asprintf.c: New file.
36204         * lib/unistdio/u16-printf-parse.c: New file.
36205         * lib/unistdio/u16-snprintf.c: New file.
36206         * lib/unistdio/u16-sprintf.c: New file.
36207         * lib/unistdio/u16-vasnprintf.c: New file.
36208         * lib/unistdio/u16-vasprintf.c: New file.
36209         * lib/unistdio/u16-vsnprintf.c: New file.
36210         * lib/unistdio/u16-vsprintf.c: New file.
36211         * lib/unistdio/u16-u16-asnprintf.c: New file.
36212         * lib/unistdio/u16-u16-asprintf.c: New file.
36213         * lib/unistdio/u16-u16-snprintf.c: New file.
36214         * lib/unistdio/u16-u16-sprintf.c: New file.
36215         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36216         * lib/unistdio/u16-u16-vasprintf.c: New file.
36217         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36218         * lib/unistdio/u16-u16-vsprintf.c: New file.
36219         * lib/unistdio/u32-asnprintf.c: New file.
36220         * lib/unistdio/u32-asprintf.c: New file.
36221         * lib/unistdio/u32-printf-parse.c: New file.
36222         * lib/unistdio/u32-snprintf.c: New file.
36223         * lib/unistdio/u32-sprintf.c: New file.
36224         * lib/unistdio/u32-vasnprintf.c: New file.
36225         * lib/unistdio/u32-vasprintf.c: New file.
36226         * lib/unistdio/u32-vsnprintf.c: New file.
36227         * lib/unistdio/u32-vsprintf.c: New file.
36228         * lib/unistdio/u32-u32-asnprintf.c: New file.
36229         * lib/unistdio/u32-u32-asprintf.c: New file.
36230         * lib/unistdio/u32-u32-snprintf.c: New file.
36231         * lib/unistdio/u32-u32-sprintf.c: New file.
36232         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36233         * lib/unistdio/u32-u32-vasprintf.c: New file.
36234         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36235         * lib/unistdio/u32-u32-vsprintf.c: New file.
36236         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36237         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36238         * tests/unistdio/test-ulc-printf1.h: New file.
36239         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36240         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36241         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36242         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36243         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36244         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36245         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36246         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36247         * tests/unistdio/test-u8-asnprintf1.c: New file.
36248         * tests/unistdio/test-u8-asnprintf1.h: New file.
36249         * tests/unistdio/test-u8-printf1.h: New file.
36250         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36251         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36252         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36253         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36254         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36255         * tests/unistdio/test-u8-vasprintf1.c: New file.
36256         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36257         * tests/unistdio/test-u8-vsprintf1.c: New file.
36258         * tests/unistdio/test-u16-asnprintf1.c: New file.
36259         * tests/unistdio/test-u16-asnprintf1.h: New file.
36260         * tests/unistdio/test-u16-printf1.h: New file.
36261         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36262         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36263         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36264         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36265         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36266         * tests/unistdio/test-u16-vasprintf1.c: New file.
36267         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36268         * tests/unistdio/test-u16-vsprintf1.c: New file.
36269         * tests/unistdio/test-u32-asnprintf1.c: New file.
36270         * tests/unistdio/test-u32-asnprintf1.h: New file.
36271         * tests/unistdio/test-u32-printf1.h: New file.
36272         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36273         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36274         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36275         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36276         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36277         * tests/unistdio/test-u32-vasprintf1.c: New file.
36278         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36279         * tests/unistdio/test-u32-vsprintf1.c: New file.
36280         * modules/unistdio/base: New file.
36281         * modules/unistdio/u-printf-args: New file.
36282         * modules/unistdio/ulc-asnprintf: New file.
36283         * modules/unistdio/ulc-asprintf: New file.
36284         * modules/unistdio/ulc-fprintf: New file.
36285         * modules/unistdio/ulc-printf-parse: New file.
36286         * modules/unistdio/ulc-snprintf: New file.
36287         * modules/unistdio/ulc-sprintf: New file.
36288         * modules/unistdio/ulc-vasnprintf: New file.
36289         * modules/unistdio/ulc-vasprintf: New file.
36290         * modules/unistdio/ulc-vfprintf: New file.
36291         * modules/unistdio/ulc-vsnprintf: New file.
36292         * modules/unistdio/ulc-vsprintf: New file.
36293         * modules/unistdio/u8-asnprintf: New file.
36294         * modules/unistdio/u8-asprintf: New file.
36295         * modules/unistdio/u8-printf-parse: New file.
36296         * modules/unistdio/u8-snprintf: New file.
36297         * modules/unistdio/u8-sprintf: New file.
36298         * modules/unistdio/u8-vasnprintf: New file.
36299         * modules/unistdio/u8-vasprintf: New file.
36300         * modules/unistdio/u8-vsnprintf: New file.
36301         * modules/unistdio/u8-vsprintf: New file.
36302         * modules/unistdio/u8-u8-asnprintf: New file.
36303         * modules/unistdio/u8-u8-asprintf: New file.
36304         * modules/unistdio/u8-u8-snprintf: New file.
36305         * modules/unistdio/u8-u8-sprintf: New file.
36306         * modules/unistdio/u8-u8-vasnprintf: New file.
36307         * modules/unistdio/u8-u8-vasprintf: New file.
36308         * modules/unistdio/u8-u8-vsnprintf: New file.
36309         * modules/unistdio/u8-u8-vsprintf: New file.
36310         * modules/unistdio/u16-asnprintf: New file.
36311         * modules/unistdio/u16-asprintf: New file.
36312         * modules/unistdio/u16-printf-parse: New file.
36313         * modules/unistdio/u16-snprintf: New file.
36314         * modules/unistdio/u16-sprintf: New file.
36315         * modules/unistdio/u16-vasnprintf: New file.
36316         * modules/unistdio/u16-vasprintf: New file.
36317         * modules/unistdio/u16-vsnprintf: New file.
36318         * modules/unistdio/u16-vsprintf: New file.
36319         * modules/unistdio/u16-u16-asnprintf: New file.
36320         * modules/unistdio/u16-u16-asprintf: New file.
36321         * modules/unistdio/u16-u16-snprintf: New file.
36322         * modules/unistdio/u16-u16-sprintf: New file.
36323         * modules/unistdio/u16-u16-vasnprintf: New file.
36324         * modules/unistdio/u16-u16-vasprintf: New file.
36325         * modules/unistdio/u16-u16-vsnprintf: New file.
36326         * modules/unistdio/u16-u16-vsprintf: New file.
36327         * modules/unistdio/u32-asnprintf: New file.
36328         * modules/unistdio/u32-asprintf: New file.
36329         * modules/unistdio/u32-printf-parse: New file.
36330         * modules/unistdio/u32-snprintf: New file.
36331         * modules/unistdio/u32-sprintf: New file.
36332         * modules/unistdio/u32-vasnprintf: New file.
36333         * modules/unistdio/u32-vasprintf: New file.
36334         * modules/unistdio/u32-vsnprintf: New file.
36335         * modules/unistdio/u32-vsprintf: New file.
36336         * modules/unistdio/u32-u32-asnprintf: New file.
36337         * modules/unistdio/u32-u32-asprintf: New file.
36338         * modules/unistdio/u32-u32-snprintf: New file.
36339         * modules/unistdio/u32-u32-sprintf: New file.
36340         * modules/unistdio/u32-u32-vasnprintf: New file.
36341         * modules/unistdio/u32-u32-vasprintf: New file.
36342         * modules/unistdio/u32-u32-vsnprintf: New file.
36343         * modules/unistdio/u32-u32-vsprintf: New file.
36344         * modules/unistdio/ulc-asnprintf-tests: New file.
36345         * modules/unistdio/ulc-vasnprintf-tests: New file.
36346         * modules/unistdio/ulc-vasprintf-tests: New file.
36347         * modules/unistdio/ulc-vsnprintf-tests: New file.
36348         * modules/unistdio/ulc-vsprintf-tests: New file.
36349         * modules/unistdio/u8-asnprintf-tests: New file.
36350         * modules/unistdio/u8-vasnprintf-tests: New file.
36351         * modules/unistdio/u8-vasprintf-tests: New file.
36352         * modules/unistdio/u8-vsnprintf-tests: New file.
36353         * modules/unistdio/u8-vsprintf-tests: New file.
36354         * modules/unistdio/u16-asnprintf-tests: New file.
36355         * modules/unistdio/u16-vasnprintf-tests: New file.
36356         * modules/unistdio/u16-vasprintf-tests: New file.
36357         * modules/unistdio/u16-vsnprintf-tests: New file.
36358         * modules/unistdio/u16-vsprintf-tests: New file.
36359         * modules/unistdio/u32-asnprintf-tests: New file.
36360         * modules/unistdio/u32-vasnprintf-tests: New file.
36361         * modules/unistdio/u32-vasprintf-tests: New file.
36362         * modules/unistdio/u32-vsnprintf-tests: New file.
36363         * modules/unistdio/u32-vsprintf-tests: New file.
36364         * MODULES.html.sh (Unicode string functions): Add the new modules.
36366 2007-07-01  Bruno Haible  <bruno@clisp.org>
36368         * lib/sprintf.c (sprintf): Limit the available length estimation,
36369         to avoid address wraparound.
36370         * lib/vsprintf.c (vsprintf): Likewise.
36371         * modules/sprintf-posix (Dependencies): Add stdint.
36372         * modules/vsprintf-posix (Dependencies): Likewise.
36374 2007-07-01  Bruno Haible  <bruno@clisp.org>
36376         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
36377         Windows PATH as well. Conservative double-quoting. Comments.
36379 2007-07-01  Bruno Haible  <bruno@clisp.org>
36380             Eric Blake  <ebb9@byu.net>
36381             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36383         * gnulib-tool (self_abspathname): Fix algorithm to cope with
36384         empty components in $PATH, denoting '.'.
36386 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36388         * gnulib-tool: Fix indentation.
36389         (func_create_megatestdir): Likewise.
36390         Report by Bruno Haible.
36392 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36394         Sync from Automake.
36395         * build-aux/gnupload: Fix shell portability issues with for loops.
36396         Report by Karl Berry.
36398 2007-06-29  Simon Josefsson  <simon@josefsson.org>
36400         * build-aux/maint.mk (POURL): Use translationproject.org.
36402 2007-06-27  Simon Josefsson  <simon@josefsson.org>
36403             Bruno Haible  <bruno@clisp.org>
36405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
36406         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
36407         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
36408         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
36409         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
36411 2007-06-27  Bruno Haible  <bruno@clisp.org>
36413         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
36414         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
36416 2007-06-26  Karl Berry  <karl@gnu.org>
36418         * MODULES.html.sh: remove xreadlink-with-size.
36420 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36422         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
36423         method that I hope also handles the double-include problem noted
36424         by Bruno Haible in
36425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
36427 2007-06-23  Bruno Haible  <bruno@clisp.org>
36429         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36430         Don't let the 'mostlyclean' target fail if the last subdirectory could
36431         not be removed.
36432         Reported by Karl Berry.
36434 2007-06-23  Bruno Haible  <bruno@clisp.org>
36436         * gnulib-tool (echo): Add a speedier workaround for ksh.
36437         * tests/test-echo.sh: Likewise.
36439 2007-06-23  Bruno Haible  <bruno@clisp.org>
36441         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
36442         * tests/test-echo.sh: Likewise.
36444 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36446         * gnulib-tool (IFS): Initialize early, so we don't set it to
36447         empty later.
36448         (self_abspathname): Rewrite algorithm to set it, reindent.
36449         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
36450         (func_create_megatestdir): Merge some sed scripts.
36452 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36454         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
36455         exposed by Sun Studio 11 cc on Solaris 8.
36457 2007-06-22  Bruno Haible  <bruno@clisp.org>
36459         * gnulib-tool (echo): Ensure the echo primitive does not interpret
36460         backslashes.
36461         * tests/test-echo.sh: New file.
36463 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36465         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
36466         simplify `sed_replace_build_aux' scripts, they are portable but
36467         echoing them with `echo' is not.
36468         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
36470 2007-06-21  Karl Berry  <karl@gnu.org>
36472         * config/srclist.txt: guess we can't handle the licenses via
36473         srclist at the moment.
36475 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36477         * MODULES.html.sh: Add include_next.
36478         * modules/include_next: New file.
36480 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36482         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
36483         INCLUDE_NEXT.
36484         (gl_CHECK_NEXT_HEADERS): New macro.
36485         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
36486         the obsolescent gl_ABSOLUTE_HEADER.
36487         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
36488         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
36489         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36490         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36491         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36492         * m4/math_h.m4 (gl_MATH_H): Likewise.
36493         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36494         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36495         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36496         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36497         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36498         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36499         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36500         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36501         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36503         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36504         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36505         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
36506         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36507         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36508         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36509         * m4/inttypes.m4 (gl_INTTYPES_H): Define
36510         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
36511         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
36512         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
36513         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
36514         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
36515         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
36516         * lib/float_.h: Likewise.
36517         * lib/inttypes_.h: Likewise.
36518         * lib/math_.h: Likewise.
36519         * lib/search_.h: Likewise.
36520         * lib/signal_.h: Likewise.
36521         * lib/stdint_.h: Likewise.
36522         * lib/stdio_.h: Likewise.
36523         * lib/stdlib_.h: Likewise.
36524         * lib/string_.h: Likewise.
36525         * lib/sys_stat_.h: Likewise.
36526         * lib/sys_time_.h: Likewise.
36527         * lib/time_.h: Likewise.
36528         * lib/unistd_.h: Likewise.
36529         * lib/wchar_.h: Likewise.
36530         * lib/wctype_.h: Likewise.
36531         * lib/dirent_.h: Likewise.
36532         * lib/iconv_.h: Likewise.
36533         * lib/locale_.h: Likewise.
36534         * lib/netinet_in_.h: Likewise.
36535         * lib/sys_select_.h: Likewise.
36536         * lib/sys_socket_.h: Likewise.
36537         * lib/sysexits_.h: Likewise.
36538         * modules/fcntl (Depends-on): Depend on include_next, not
36539         absolute_header.
36540         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
36541         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
36542         * modules/fchdir: Likewise.
36543         * modules/float: Likewise.
36544         * modules/iconv_open: Likewise.
36545         * modules/inttypes: Likewise.
36546         * modules/locale: Likewise.
36547         * modules/math: Likewise.
36548         * modules/netinet_in: Likewise.
36549         * modules/search: Likewise.
36550         * modules/signal: Likewise.
36551         * modules/stdint: Likewise.
36552         * modules/stdio: Likewise.
36553         * modules/stdlib: Likewise.
36554         * modules/string: Likewise.
36555         * modules/sys_select: Likewise.
36556         * modules/sys_socket: Likewise.
36557         * modules/sys_stat: Likewise.
36558         * modules/sys_time: Likewise.
36559         * modules/sysexits: Likewise.
36560         * modules/time: Likewise.
36561         * modules/unistd: Likewise.
36562         * modules/wchar: Likewise.
36563         * modules/wctype: Likewise.
36564         * modules/sys_stat: Change maintainer to "all".
36565         * modules/unistd: Likewise.
36567 2007-06-20  Karl Berry  <karl@gnu.org>
36569         * config/srclist.txt: track www changes in license files.
36571 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
36573         * build-aux/bootstrap: Remove stray dot.
36574         Make sure build_aux settings are honored when linking
36575         gnulib_extra_files.
36577 2007-06-19  Eric Blake  <ebb9@byu.net>
36579         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36580         Allow compilation on cygwin.
36582 2007-06-19  Jim Meyering  <jim@meyering.net>
36584         xreadlink-with-size: Remove module.  No longer used.
36585         Ex-callers now use xreadlink or mreadlink-with-size.
36586         * modules/xreadlink-with-size: Remove module.
36587         * lib/xreadlink-with-size.c: Remove file.
36588         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
36589         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
36590         just before the function definition *is* accurate.
36592         Eliminate one way canonicalize_filename_mode could exit.
36593         * lib/canonicalize.c (canonicalize_filename_mode):
36594         Use mreadlink_with_size, not xreadlink_with_size.
36596 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
36598         Detect porting problems to FreeBSD/arm, which has time_t wider than
36599         long int.  Original problem reported for GNU diff by Xin Li in
36600         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
36601         * modules/getdate (Depends-on): Add intprops, verify.
36602         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
36603         is an integer type no wider than long int.
36605 2007-06-18  Jim Meyering  <jim@meyering.net>
36607         New module: mreadlink-with-size.
36608         * MODULES.html.sh: Add mreadlink-with-size.
36609         * modules/mreadlink-with-size: New module
36610         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
36611         not xreadlink-with-size.
36612         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
36614 2007-06-16  Bruno Haible  <bruno@clisp.org>
36616         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
36617         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
36618         Reported by Gary V. Vaughan <gary@gnu.org>.
36620 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36622         Revamp lchown so that it lives in unistd.h where it belongs.
36623         * lib/lchown.h: Remove.
36624         * lib/dirchownmod.c: Don't include lib/lchown.h.
36625         * lib/fchownat.c: Likewise.
36626         * lib/openat.c: Likewise.
36627         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
36628         does not follow symlinks.
36629         (EOPNOTSUPP): Define if not defined.
36630         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
36631         is defined to 0.
36632         (lchown): New decl.
36633         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
36634         Do not check for lchown decl.
36635         Set REPLACE_LCHOWN.
36636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
36637         REPLACE_LCHOWN.
36638         * modules/chown: Make it clear it follows symlinks.
36639         * modules/lchown: Make it clear it doesn't follow symlinks.
36640         (Files): Remove lib/lchown.h
36641         (Depends-on): Add unistd.
36642         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
36643         (Include): Include <unistd.h>, not "lchown.h".
36644         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
36645         REPLACE_LCHOWN.
36647 2007-06-15  Jim Meyering  <jim@meyering.net>
36649         Change license (GPL to LGPL) of fsusage and dependents.
36650         * modules/fsusage (License): Change to LGPL.
36651         * modules/full-read (License): Likewise.
36652         * modules/full-write (License): Likewise.
36653         * modules/safe-read (License): Likewise.
36654         * modules/safe-write (License): Likewise.
36656 2007-06-14  Ben Pfaff  <blp@gnu.org>
36658         Missing part of allocsa -> malloca transition.
36659         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
36660         gl_MALLOCA.
36662 2007-06-12  Bruno Haible  <bruno@clisp.org>
36664         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
36665         to ia64, x86_64, i386.
36666         Reported by Eric Blake.
36668 2007-06-12  Bruno Haible  <bruno@clisp.org>
36670         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
36671         cross-compiling to x86_64.
36673 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
36675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
36676         glitch reported by Ralf Wildenhues in
36677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
36679         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
36680         Vin Shelton.
36682 2007-06-11  Bruno Haible  <bruno@clisp.org>
36684         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
36685         replacement string.
36686         Reported by Eric Blake.
36688 2007-06-10  Bruno Haible  <bruno@clisp.org>
36690         Prepare vasnprintf code for use with Unicode strings.
36691         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
36692         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
36693         TYPE_U32_STRING.
36694         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
36695         a_u32_string variants.
36696         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
36697         * lib/printf-args.c: Don't include config.h and the specification
36698         header if PRINTF_FETCHARGS is already defined.
36699         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
36700         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
36701         TYPE_U16_STRING, TYPE_U32_STRING.
36702         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
36703         u16_directive, u16_directives, u32_directive, u32_directives): New
36704         types.
36705         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
36706         New declarations.
36707         * lib/printf-parse.c: Don't include config.h and the specification
36708         header if PRINTF_PARSE is already defined. Eliminate the set of
36709         parameters for WIDE_CHAR_VERSION; the user of this file must provide
36710         them now. Include c-ctype.h.
36711         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
36712         directive and CHAR_T_ONLY_ASCII.
36713         * lib/vasnprintf.c: Don't include config.h and the specification header
36714         if VASNPRINTF is already defined.
36715         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
36716         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
36717         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
36718         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
36719         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
36720         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
36721         code accordingly.
36722         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
36723         pad_ourselves also in this case, with the 'c' and 's' directives, and
36724         with a different notion of "width".
36725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
36727 2007-06-10  Bruno Haible  <bruno@clisp.org>
36729         * modules/unistr/u32-mbsnlen: New file.
36730         * lib/unistr/u32-mbsnlen.c: New file.
36732         * modules/unistr/u16-mbsnlen: New file.
36733         * lib/unistr/u16-mbsnlen.c: New file.
36735         * modules/unistr/u8-mbsnlen: New file.
36736         * lib/unistr/u8-mbsnlen.c: New file.
36738         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
36739         declarations.
36741 2007-06-10  Bruno Haible  <bruno@clisp.org>
36743         * lib/string_.h (mbsnlen): New declaration.
36744         * lib/mbsnlen.c: New file.
36745         * m4/mbsnlen.m4: New file.
36746         * modules/mbsnlen: New file.
36747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
36748         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
36749         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
36751 2007-06-10  Bruno Haible  <bruno@clisp.org>
36753         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
36755 2007-06-10  Bruno Haible  <bruno@clisp.org>
36757         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
36758         * lib/mbuiter.h: Likewise.
36760 2007-06-10  Bruno Haible  <bruno@clisp.org>
36762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
36763         declaration.
36765 2007-06-10  Karl Berry  <karl@gnu.org>
36767         * config/srclist.txt: remove gettext entries, Bruno prefers
36768         to update individually.
36770 2007-06-10  Bruno Haible  <bruno@clisp.org>
36772         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
36773         'maxlen'. Ensure only length + width bytes are allocated, not
36774         length + 1 + width.
36776 2007-06-09  Bruno Haible  <bruno@clisp.org>
36778         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
36779         (CHAR_T): Remove macro.
36780         (VASNPRINTF): Update.
36782 2007-06-09  Bruno Haible  <bruno@clisp.org>
36784         * MODULES.html.sh (Unicode string functions): Add the new modules.
36786         * modules/uniconv/u32-conv-to-enc: New file.
36787         * lib/uniconv/u32-conv-to-enc.c: New file.
36788         * modules/uniconv/u32-conv-to-enc-tests: New file.
36789         * tests/uniconv/test-u32-conv-to-enc.c: New file.
36791         * modules/uniconv/u16-conv-to-enc: New file.
36792         * lib/uniconv/u16-conv-to-enc.c: New file.
36793         * lib/uniconv/u-conv-to-enc.h: New file.
36794         * modules/uniconv/u16-conv-to-enc-tests: New file.
36795         * tests/uniconv/test-u16-conv-to-enc.c: New file.
36797         * modules/uniconv/u8-conv-to-enc: New file.
36798         * lib/uniconv/u8-conv-to-enc.c: New file.
36799         * modules/uniconv/u8-conv-to-enc-tests: New file.
36800         * tests/uniconv/test-u8-conv-to-enc.c: New file.
36802         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36803         u32_conv_to_encoding): New declarations.
36805 2007-06-09  Bruno Haible  <bruno@clisp.org>
36807         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
36809 2007-06-09  Bruno Haible  <bruno@clisp.org>
36811         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
36812         * modules/malloca: Renamed from modules/allocsa, updated.
36813         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
36814         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
36815         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
36816         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
36817         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
36818         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
36819         * modules/xmalloca: Renamed from modules/xallocsa, updated.
36820         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
36821         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
36822         * modules/c-strcasestr (Depends-on): Update.
36823         * lib/c-strcasestr.c: Update.
36824         * modules/c-strstr (Depends-on): Update.
36825         * lib/c-strstr.c: Update.
36826         * modules/canonicalize-lgpl (Depends-on): Update.
36827         * lib/canonicalize-lgpl.c: Update.
36828         * modules/clean-temp (Depends-on): Update.
36829         * lib/clean-temp.c: Update.
36830         * modules/csharpcomp (Depends-on): Update.
36831         * lib/csharpcomp.c: Update.
36832         * modules/csharpexec (Depends-on): Update.
36833         * lib/csharpexec.c: Update.
36834         * modules/javacomp (Depends-on): Update.
36835         * lib/javacomp.c: Update.
36836         * modules/javaexec (Depends-on): Update.
36837         * lib/javaexec.c: Update.
36838         * modules/mbscasestr (Depends-on): Update.
36839         * lib/mbscasestr.c: Update.
36840         * modules/mbsstr (Depends-on): Update.
36841         * lib/mbsstr.c: Update.
36842         * modules/setenv (Depends-on): Update.
36843         * lib/setenv.c: Update.
36844         * modules/strcasestr (Depends-on): Update.
36845         * lib/strcasestr.c: Update.
36846         * modules/striconveha (Depends-on): Update.
36847         * lib/striconveha.c: Update.
36848         * modules/relocatable-prog-wrapper (Files): Update.
36849         * lib/relocwrapper.c: Update.
36850         * build-aux/install-reloc: Update.
36851         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
36853 2007-06-08  Bruno Haible  <bruno@clisp.org>
36855         Port to uClibc.
36856         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
36857         * lib/fpurge.c (fpurge): Likewise.
36858         * lib/freading.c (freading): Likewise.
36859         * lib/fseeko.c (rpl_fseeko): Likewise.
36860         * lib/fseterr.c (fseterr): Likewise.
36861         * lib/fwriting.c (fwriting): Likewise.
36862         * tests/test-fflush.c (main): Avoid a failure on uClibc.
36864 2007-06-08  Bruno Haible  <bruno@clisp.org>
36866         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
36867         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
36868         * modules/gettext (Files): Add m4/intlmacosx.m4.
36870 2007-06-07  Bruno Haible  <bruno@clisp.org>
36872         * modules/localename-tests: New file.
36873         * tests/test-localename.c: New file.
36875         New module 'localename'.
36876         * lib/localename.h: New file.
36877         * lib/localename.c: New file, from GNU gettext.
36878         * m4/localename.m4: New file.
36879         * modules/localename: New file.
36881 2007-06-07  Bruno Haible  <bruno@clisp.org>
36883         Work around the lack of <wchar.h> on some builds of uClibc.
36884         * doc/headers/wchar.texi: Update.
36885         * lib/wchar_.h: Include <wchar.h> only if it exists.
36886         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
36887         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
36888         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
36889         doesn't exist.
36890         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
36891         * modules/mbfile (Depends-on): Add wchar.
36892         * modules/mbiter (Depends-on): Likewise.
36893         * modules/mbuiter (Depends-on): Likewise.
36894         Reported by Simon Josefsson.
36896 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
36898         Work around problem reported by Steven M. Schweda in
36899         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
36900         Tru64 5.1B with the Compaq compiler environment installed declares
36901         an 'isblank' function but does not define it in the C library.
36902         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
36903         * lib/regex_internal.h (isblank): Likewise.
36904         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
36905         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36907 2007-06-05  Bruno Haible  <bruno@clisp.org>
36909         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
36910         ia64.
36911         * modules/printf-safe: New file.
36912         * modules/fprintf-posix (Depends-on): Add printf-safe.
36913         * modules/printf-posix (Depends-on): Likewise.
36914         * modules/snprintf-posix (Depends-on): Likewise.
36915         * modules/sprintf-posix (Depends-on): Likewise.
36916         * modules/vasnprintf-posix (Depends-on): Likewise.
36917         * modules/vasprintf-posix (Depends-on): Likewise.
36918         * modules/vfprintf-posix (Depends-on): Likewise.
36919         * modules/vprintf-posix (Depends-on): Likewise.
36920         * modules/vsnprintf-posix (Depends-on): Likewise.
36921         * modules/vsprintf-posix (Depends-on): Likewise.
36922         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
36923         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
36924         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
36925         "no" on i386, x86_64, ia64.
36926         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
36927         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36928         on i386, x86_64, ia64.
36929         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
36930         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36931         on i386, x86_64, ia64.
36932         * tests/test-vasnprintf-posix.c: Include float.h.
36933         (LDBL80_WORDS): New macro.
36934         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36935         on i386, x86_64, ia64.
36936         * tests/test-vasprintf-posix.c: Include float.h.
36937         (LDBL80_WORDS): New macro.
36938         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
36939         on i386, x86_64, ia64.
36940         * tests/test-snprintf-posix.c: Include float.h.
36941         * tests/test-sprintf-posix.c: Likewise.
36942         * tests/test-vsnprintf-posix.c: Likewise.
36943         * tests/test-vsprintf-posix.c: Likewise.
36945 2007-06-05  Bruno Haible  <bruno@clisp.org>
36947         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
36948         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
36949         non-IEEE numbers on i386, x86_64, ia64.
36950         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
36951         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
36952         * tests/test-isnanl.h: Include float.h.
36953         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
36955 2007-06-05  Bruno Haible  <bruno@clisp.org>
36957         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
36958         also the %a / %A. Handle the %a / %A code before this extra handling.
36960 2007-06-05  Bruno Haible  <bruno@clisp.org>
36962         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
36963         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
36965 2007-06-05  Bruno Haible  <bruno@clisp.org>
36967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
36968         typo in variable name.
36970 2007-06-05  Eric Blake  <ebb9@byu.net>
36972         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
36973         Reported by Simon Josefsson.
36975 2007-06-04  Bruno Haible  <bruno@clisp.org>
36977         Avoid test failures on some PowerPC platforms.
36978         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
36979         Define differently for PowerPC.
36980         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
36981         Reported by Gary V. Vaughan <gary@gnu.org>.
36983 2007-06-02  Bruno Haible  <bruno@clisp.org>
36985         Fix test-stdint failure on FreeBSD/ia64.
36986         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
36987         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
36988         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
36989         * doc/headers/stdint.texi: Update.
36991 2007-06-01  Bruno Haible  <bruno@clisp.org>
36993         * tests/test-binary-io.c (main): Pass a third argument to open().
36994         Reported by Gary V. Vaughan <gary@gnu.org>.
36996 2007-06-01  Bruno Haible  <bruno@clisp.org>
36998         * doc/functions/frexpl.texi: Update for mingw.
37000 2007-06-01  Bruno Haible  <bruno@clisp.org>
37002         * tests/test-lseek.c (main): Disable test of errno for invalid third
37003         argument.
37004         * doc/functions/lseek.texi: Update.
37005         Reported by Gary V. Vaughan <gary@gnu.org>.
37007 2007-05-28  Bruno Haible  <bruno@clisp.org>
37009         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37011 2007-05-31  Eric Blake  <ebb9@byu.net>
37013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37014         cross compiling.
37016 2007-05-30  Eric Blake  <ebb9@byu.net>
37017         and Bruno Haible  <bruno@clisp.org>
37019         Work around mingw test failures exposed by m4-1.4.9b.
37020         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37021         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37022         moment.
37024 2007-05-30  Bruno Haible  <bruno@clisp.org>
37026         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37027         assuming that they are closed. Needed on HP-UX 11.
37029 2007-05-29  Bruno Haible  <bruno@clisp.org>
37031         Fix a problem with #include_next.
37032         * lib/dirent_.h: Split the double-inclusion guard.
37033         * lib/fcntl_.h: Likewise.
37034         * lib/float_.h: Likewise.
37035         * lib/iconv_.h: Likewise.
37036         * lib/inttypes_.h: Likewise.
37037         * lib/locale_.h: Likewise.
37038         * lib/math_.h: Likewise.
37039         * lib/netinet_in_.h: Likewise.
37040         * lib/search_.h: Likewise.
37041         * lib/signal_.h: Likewise.
37042         * lib/stdint_.h: Likewise.
37043         * lib/stdio_.h: Likewise.
37044         * lib/stdlib_.h: Likewise.
37045         * lib/string_.h: Likewise.
37046         * lib/sys_select_.h: Likewise.
37047         * lib/sys_socket_.h: Likewise.
37048         * lib/sys_stat_.h: Likewise.
37049         * lib/sys_time_.h: Likewise.
37050         * lib/sysexits_.h: Likewise.
37051         * lib/time_.h: Likewise.
37052         * lib/unistd_.h: Likewise.
37053         * lib/wchar_.h: Likewise.
37054         * lib/wctype_.h: Likewise.
37056 2007-05-29  Bruno Haible  <bruno@clisp.org>
37058         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37059         for the moment.
37061 2007-05-29  Bruno Haible  <bruno@clisp.org>
37063         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37064         invocation.
37065         Reported by Eric Blake.
37067 2007-05-29  Bruno Haible  <bruno@clisp.org>
37069         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37070         compiling case.
37072 2007-05-29  Eric Blake  <ebb9@byu.net>
37073             Bruno Haible  <bruno@clisp.org>
37075         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37076         cross compiles.
37078 2007-05-28  Eric Blake  <ebb9@byu.net>
37080         * modules/closein-tests (test_closein_LDADD): Support test on
37081         cygwin with libtool.
37083 2007-05-28  Bruno Haible  <bruno@clisp.org>
37085         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37086         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37087         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37088         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37089         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37090         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37091         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37092         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37093         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37095 2007-05-28  Eric Blake  <ebb9@byu.net>
37097         Unconditionally include <config.h> in unit tests.
37098         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37099         * tests/test-allocsa.c, tests/test-arcfour.c,
37100         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37101         tests/test-array_list.c, tests/test-array_oset.c,
37102         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37103         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37104         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37105         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37106         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37107         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37108         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37109         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37110         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37111         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37112         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37113         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37114         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37115         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37116         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37117         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37118         test-md5.c, test-memmem.c, test-printf-posix.c,
37119         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37120         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37121         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37122         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37123         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37124         test-vasnprintf-posix2.c, test-vasnprintf.c,
37125         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37126         test-vfprintf-posix.c, test-vprintf-posix.c,
37127         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37128         test-xvasprintf.c: Likewise.
37130 2007-05-28  Bruno Haible  <bruno@clisp.org>
37132         * gnulib-tool (func_import): Remember the --with-tests command-line
37133         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37134         Reported by Eric Blake.
37136 2007-05-28  Bruno Haible  <bruno@clisp.org>
37138         * modules/ftell-tests: New file.
37139         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37140         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37142         * lib/ftell.c: New file.
37143         * modules/ftell: New file.
37144         * m4/ftell.m4: New file.
37145         * doc/functions/ftell.texi: Update.
37146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37147         REPLACE_FTELL.
37148         * lib/stdio_.h (rpl_ftell): New declaration.
37149         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37150         REPLACE_FTELL.
37152 2007-05-28  Eric Blake  <ebb9@byu.net>
37154         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37156 2007-05-28  Bruno Haible  <bruno@clisp.org>
37158         * modules/fseek-tests: New file.
37159         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37160         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37162         * lib/fseek.c: New file.
37163         * modules/fseek: New file.
37164         * m4/fseek.m4: New file.
37165         * doc/functions/fseek.texi: Update.
37166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37167         REPLACE_FSEEK.
37168         * lib/stdio_.h (rpl_fseek): New declaration.
37169         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37170         REPLACE_FSEEK.
37172 2007-05-28  Bruno Haible  <bruno@clisp.org>
37174         * lib/stdio_.h (fflush): More comments.
37176 2007-05-28  Bruno Haible  <bruno@clisp.org>
37178         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37179         runtime test.
37181 2007-05-28  Eric Blake  <ebb9@byu.net>
37183         Improve lseek module.
37184         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37185         * lib/unistd_.h (lseek): Scale back link warning message.
37186         * tests/test-lseek.c: Beef up test.
37187         * tests/test-lseek.sh: Exercise more facets of lseek.
37188         Reported by Bruno Haible.
37190 2007-05-28  Bruno Haible  <bruno@clisp.org>
37192         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37193         to define.
37195 2007-05-27  Bruno Haible  <bruno@clisp.org>
37197         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37199 2007-05-27  Bruno Haible  <bruno@clisp.org>
37201         * modules/openmp: New file.
37202         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37203         Noah Misch.
37205 2007-05-26  Bruno Haible  <bruno@clisp.org>
37207         * modules/chdir-long (Depends-on): Add fchdir.
37208         * modules/chdir-safer (Depends-on): Likewise.
37209         * modules/fts (Depends-on): Likewise.
37210         * modules/fts-lgpl (Depends-on): Likewise.
37211         * modules/openat (Depends-on): Likewise.
37212         * modules/savewd (Depends-on): Likewise.
37214 2007-05-24  Eric Blake  <ebb9@byu.net>
37216         Fix lseek on mingw.
37217         * modules/lseek: New module.
37218         * m4/lseek.m4: New file.
37219         * lib/lseek.c: New file.
37220         * modules/lseek-tests: New file.
37221         * tests/test-lseek.c: New file.
37222         * tests/test-lseek.sh: New file.
37223         * MODULES.html.sh: Document lseek module.
37224         * modules/fflush (Depends-on): Add lseek, fseeko.
37225         * modules/fseeko (Depends-on): Likewise.
37226         * modules/ftello (Depends-on): Likewise.
37227         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37228         broken.
37229         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37230         broken.
37231         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37232         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37233         * lib/ftello.c (rpl_ftello): Likewise.
37234         * tests/test-fseeko.c (main): Test this.
37235         * tests/test-fseeko.sh: Likewise.
37236         * tests/test-ftello.c (main): Likewise.
37237         * tests/test-ftello.sh: Likewise.
37238         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37239         implies replacing fseek.
37240         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37241         HAVE_FTELLO.
37242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37243         * modules/unistd (Makefile.am): Likewise.
37244         * lib/unistd_.h (lseek): Declare a replacement.
37245         * doc/functions/lseek.texi (lseek): Document this fix.
37246         * doc/functions/fseek.texi (fseek): Likewise.
37247         * doc/functions/ftell.texi (ftell): Likewise.
37249 2007-05-24  Bruno Haible  <bruno@clisp.org>
37251         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37252         in the printed representation of a NaN.
37253         * tests/test-vasprintf-posix.c (test_function): Likewise.
37254         * tests/test-snprintf-posix.h (test_function): Likewise.
37255         * tests/test-sprintf-posix.h (test_function): Likewise.
37256         Reported by Eric Blake.
37258 2007-05-23  Eric Blake  <ebb9@byu.net>
37260         Fix fseeko/ftello on cygwin 1.5.24.
37261         * doc/functions/fseeko.texi (fseeko): Document the fix.
37262         * doc/functions/ftello.texi (ftello): Document the fix.
37263         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37264         * doc/functions/stdout.text (stdout): New file.
37265         * doc/functions/stderr.text (stderr): New file.
37266         * doc/gnulib.texi (Function Substitutes): Use new files.
37267         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37268         prior to 1.7.0.
37269         * tests/test-ftello.c (main): Likewise for ftello.
37270         * tests/test-fseeko.sh: New file.
37271         * tests/test-ftello.sh: New file.
37272         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37273         with seekable stdin.
37274         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37275         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37276         (gl_REPLACE_FSEEKO): New macro.
37277         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37278         * modules/fseeko (Files): Distribute fseeko.c.
37279         * modules/ftello (Files): Distribute ftello.c.
37280         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37281         mode.
37282         * lib/ftello.c (rpl_ftello): New file.
37283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37284         fseeko, ftello.
37285         (gl_STDIN_LARGE_OFFSET): New macro.
37286         * modules/stdio (Makefile.am): Perform the replacement.
37287         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37289 2007-05-23  Bruno Haible  <bruno@clisp.org>
37291         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37292         GNULIB_POSIXCHECK is defined.
37294 2007-05-21  Bruno Haible  <bruno@clisp.org>
37296         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37297         Check also the output for NaN arguments. When cross-compiling, guess
37298         no on IRIX.
37299         * lib/vasnprintf.c: Update comments.
37300         * tests/test-vasnprintf-posix.c (strisnan): New function.
37301         (test_function): Use it.
37302         * tests/test-vasprintf-posix.c (strisnan): New function.
37303         (test_function): Use it.
37304         * tests/test-snprintf-posix.h (strisnan): New function.
37305         (test_function): Use it.
37306         * tests/test-sprintf-posix.h (strisnan): New function.
37307         (test_function): Use it.
37308         Reported by Eric Blake.
37310 2007-05-20  Bruno Haible  <bruno@clisp.org>
37312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
37313         numbers that fails on BeOS.
37314         * doc/functions/frexpl.texi: Update.
37316 2007-05-20  Jim Meyering  <jim@meyering.net>
37318         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
37319         forced upon us by glibc-2.6.
37321 2007-05-20  Bruno Haible  <bruno@clisp.org>
37323         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
37324         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
37325         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
37326         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
37327         NEED_PRINTF_INFINITE.
37328         (is_infinitel): New function.
37329         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
37330         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
37331         gl_PREREQ_VASNPRINTF_INFINITE.
37332         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
37333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37334         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
37335         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
37336         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
37337         gl_PREREQ_VASNPRINTF_INFINITE.
37338         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37340         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37341         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37342         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37343         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37344         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37345         * doc/functions/fprintf.texi: Update.
37346         * doc/functions/printf.texi: Update.
37347         * doc/functions/snprintf.texi: Update.
37348         * doc/functions/sprintf.texi: Update.
37349         * doc/functions/vfprintf.texi: Update.
37350         * doc/functions/vprintf.texi: Update.
37351         * doc/functions/vsnprintf.texi: Update.
37352         * doc/functions/vsprintf.texi: Update.
37354 2007-05-20  Bruno Haible  <bruno@clisp.org>
37356         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
37357         was not found in libc.
37358         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37360 2007-05-20  Bruno Haible  <bruno@clisp.org>
37362         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37363         printed as "-nan" instead of "nan".
37364         * tests/test-vasprintf-posix.c (test_function): Likewise.
37365         * tests/test-snprintf-posix.h (test_function): Likewise.
37366         * tests/test-sprintf-posix.h (test_function): Likewise.
37367         Needed for HP-UX 11.
37369 2007-05-20  Jim Meyering  <jim@meyering.net>
37371         Fix buggy test for the fchownat-deref bug.
37372         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
37373         symlink required for the run-test.  Without it, this test would
37374         always declare that fchownat doesn't work, and client code would
37375         unnecessarily use the replacement function with fixed libc.
37376         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
37377         Reported by Greg Schafer.
37379 2007-05-19  Bruno Haible  <bruno@clisp.org>
37381         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
37382         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
37383         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
37384         Needed for IRIX 6.5 and Solaris 2.5.1.
37386 2007-05-19  Bruno Haible  <bruno@clisp.org>
37388         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
37389         (test_function): Skip tests involving -0.0 on platforms where
37390         -0.0 = 0.0.
37391         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
37392         (test_function): Skip tests involving -0.0 on platforms where
37393         -0.0 = 0.0.
37394         * tests/test-snprintf-posix.h (have_minus_zero): New function.
37395         (test_function): Skip tests involving -0.0 on platforms where
37396         -0.0 = 0.0.
37397         * tests/test-sprintf-posix.h (have_minus_zero): New function.
37398         (test_function): Skip tests involving -0.0 on platforms where
37399         -0.0 = 0.0.
37400         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
37401         tests.
37402         * tests/test-printf-posix.h (test_function): Likewise.
37403         * tests/test-printf-posix.output: Remove all -0.0 related results.
37404         Needed for IRIX 6.5.
37406 2007-05-19  Bruno Haible  <bruno@clisp.org>
37408         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37409         printed as "nan0x7fffffff" instead of "nan".
37410         * tests/test-vasprintf-posix.c (test_function): Likewise.
37411         * tests/test-snprintf-posix.h (test_function): Likewise.
37412         * tests/test-sprintf-posix.h (test_function): Likewise.
37413         * tests/test-fprintf-posix.h (NaN): Remove macro.
37414         (test_function): Remove all NaN related tests.
37415         * tests/test-printf-posix.h (NaN): Remove macro.
37416         (test_function): Remove all NaN related tests.
37417         * tests/test-printf-posix.output: Remove all NaN related results.
37418         Needed for IRIX 6.5.
37420 2007-05-19  Bruno Haible  <bruno@clisp.org>
37422         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
37423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37425 2007-05-19  Bruno Haible  <bruno@clisp.org>
37427         * lib/float_.h: New file.
37428         * m4/float_h.m4: New file.
37429         * modules/float: New file.
37430         * modules/isnanl (Dependencies): Add float.
37431         * modules/isnanl-nolibm (Dependencies): Likewise.
37432         * modules/mathl (Dependencies): Likewise.
37433         * modules/printf-frexpl (Dependencies): Likewise.
37434         * modules/signbit (Dependencies): Likewise.
37435         * modules/vasnprintf (Dependencies): Likewise.
37436         * doc/headers/float.texi: Update.
37438 2007-05-19  Jim Meyering  <jim@meyering.net>
37440         * lib/utimens.c (gl_futimens): Rename from futimens,
37441         now that glibc-2.6 declares futimens.
37442         * lib/utimens.h: Likewise.
37444 2007-05-19  Bruno Haible  <bruno@clisp.org>
37446         Avoid test failures on mingw.
37447         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
37448         * tests/test-printf-posix.sh: Likewise.
37449         * tests/test-vfprintf-posix.sh: Likewise.
37450         * tests/test-vprintf-posix.sh: Likewise.
37452 2007-05-19  Bruno Haible  <bruno@clisp.org>
37454         Fix *printf result for NaN, Inf, -0.0 on mingw.
37455         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
37456         * lib/vasnprintf.c: Include math.h and isnan.h.
37457         (is_infinite_or_zero): New function.
37458         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
37459         values in the %f, %F, %e, %E, %g, %G directives.
37460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
37461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37462         gl_PRINTF_INFINITE and test its result. Invoke
37463         gl_PREREQ_VASNPRINTF_INFINITE.
37464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37465         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37466         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37468         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37471         * doc/functions/fprintf.texi: Update.
37472         * doc/functions/printf.texi: Update.
37473         * doc/functions/snprintf.texi: Update.
37474         * doc/functions/sprintf.texi: Update.
37475         * doc/functions/vfprintf.texi: Update.
37476         * doc/functions/vprintf.texi: Update.
37477         * doc/functions/vsnprintf.texi: Update.
37478         * doc/functions/vsprintf.texi: Update.
37480 2007-05-19  Bruno Haible  <bruno@clisp.org>
37482         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
37483         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
37484         Instead of multiplying with 10^k, set extra_zeroes to k.
37485         (scale10_round_long_double): Remove function.
37487 2007-05-18  Bruno Haible  <bruno@clisp.org>
37489         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
37490         introduced on 2007-05-06.
37492 2007-05-18  Bruno Haible  <bruno@clisp.org>
37494         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
37495         %g directives.
37496         * tests/test-vasprintf-posix.c (test_function): Likewise.
37497         * tests/test-snprintf-posix.h (test_function): Likewise.
37498         * tests/test-sprintf-posix.h (test_function): Likewise.
37500 2007-05-18  Bruno Haible  <bruno@clisp.org>
37502         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
37503         (strmatch): New function.
37504         (test_function): Test the %f directive on numbers of various exponents.
37505         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
37506         (strmatch): New function.
37507         (test_function): Test the %f directive on numbers of various exponents.
37508         * tests/test-snprintf-posix.h (strmatch): New function.
37509         (test_function): Test the %f directive on numbers of various exponents.
37510         * tests/test-sprintf-posix.h (strmatch): New function.
37511         (test_function): Test the %f directive on numbers of various exponents.
37512         * tests/test-snprintf-posix.c (SIZEOF): New macro.
37513         * tests/test-sprintf-posix.c (SIZEOF): New macro.
37514         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
37515         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
37517 2007-05-18  Bruno Haible  <bruno@clisp.org>
37519         Add support for 'long double' number output.
37520         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
37521         * lib/vasnprintf.c: Include math.h and float+.h.
37522         (mp_limb_t): New type.
37523         (GMP_LIMB_BITS): New macro.
37524         (mp_twolimb_t): New type.
37525         (GMP_TWOLIMB_BITS): New macro.
37526         (mpn_t): New type.
37527         (multiply, divide, convert_to_decimal, decode_long_double,
37528         scale10_round_long_double, scale10_round_decimal_long_double,
37529         floorlog10l): New functions.
37530         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
37531         for the %f, %F, %e, %E, %g, %G directives.
37532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
37533         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37534         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
37535         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
37536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37542         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37543         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
37544         * modules/snprintf-posix (Depends-on): Likewise.
37545         * modules/sprintf-posix (Depends-on): Likewise.
37546         * modules/vasnprintf-posix (Depends-on): Likewise.
37547         * modules/vasprintf-posix (Depends-on): Likewise.
37548         * modules/vfprintf-posix (Depends-on): Likewise.
37549         * modules/vsnprintf-posix (Depends-on): Likewise.
37550         * modules/vsprintf-posix (Depends-on): Likewise.
37551         * modules/vasnprintf (Files): Add lib/float+.h.
37552         * doc/functions/fprintf.texi: Update.
37553         * doc/functions/printf.texi: Update.
37554         * doc/functions/snprintf.texi: Update.
37555         * doc/functions/sprintf.texi: Update.
37556         * doc/functions/vfprintf.texi: Update.
37557         * doc/functions/vprintf.texi: Update.
37558         * doc/functions/vsnprintf.texi: Update.
37559         * doc/functions/vsprintf.texi: Update.
37561 2007-05-18  Bruno Haible  <bruno@clisp.org>
37563         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
37565 2007-05-18  Bruno Haible  <bruno@clisp.org>
37567         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
37568         for printing 64-bit integers. Needed for mingw.
37570 2007-05-18  Bruno Haible  <bruno@clisp.org>
37572         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
37573         gl_FUNC_FREXPL_WORKS.
37574         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
37576 2007-05-18  Bruno Haible  <bruno@clisp.org>
37578         * modules/frexpl-nolibm-tests: New file.
37580         * modules/frexpl-nolibm: New file.
37581         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
37583 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37585         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
37586         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37587         GCC 4.2, which otherwise issues a lot of warnings.
37588         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
37589         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
37590         Likewise.
37591         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
37592         * modules/iconv_open (iconv.h): Likewise.
37593         * modules/locale (locale.h): Likewise.
37594         * modules/netinet_in (netinet/in.h): Likewise.
37595         * modules/sys_select (sys_select.h): Likewise.
37596         * modules/sys_socket (sys/socket.h): Likewise.
37597         * modules/sys_stat (sys/stat.h): Likewise.
37598         * modules/sysexits (sysexits.h): Likewise.
37599         * modules/unistd (unistd.h): Likewise.
37601 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37603         * modules/closein-tests (Makefile.am): Distribute
37604         `test-closein.sh'.
37606 2007-05-17  Bruno Haible  <bruno@clisp.org>
37608         * tests/test-printf-posix.output: Renamed from
37609         tests/test-fprintf-posix.out.
37610         * modules/fprintf-posix-tests: Update.
37611         * modules/printf-posix-tests: Update.
37612         * modules/vfprintf-posix-tests: Update.
37613         * modules/vprintf-posix-tests: Update.
37614         * tests/test-fprintf-posix.sh: Update.
37615         * tests/test-printf-posix.sh: Update.
37616         * tests/test-vfprintf-posix.sh: Update.
37617         * tests/test-vprintf-posix.sh: Update.
37618         Reported by Ralf Wildenhues.
37620 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37622         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
37623         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37624         GCC 4.2, which otherwise issues a lot of warnings.
37625         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
37626         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
37627         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
37628         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
37629         it should no longer be needed.
37630         * lib/string_.h: Likewise.
37631         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
37632         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
37633         * modules/inttypes (inttypes.h): Likewise.
37634         * modules/math (math.h): Likewise.
37635         * modules/search (search.h): Likewise.
37636         * modules/signal (signal.h): Likewise.
37637         * modules/stdint (stdint.h): Likewise.
37638         * modules/stdio (stdio.h): Likewise.
37639         * modules/stdlib (stdlib.h): Likewise.
37640         * modules/string (string.h): Likewise.
37641         * modules/sys_time (sys/time.h): Likewise.
37642         * modules/time (time.h): Likewise.
37643         * modules/wchar (wchar.h): Likewise.
37644         * modules/wctype (wtype.h): Likewise.
37646 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37648         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
37650 2007-05-13  Bruno Haible  <bruno@clisp.org>
37652         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
37653         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37654         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
37655         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37656         (gl_PREREQ_STRTOK_R): Don't require it here.
37658 2007-05-13  Bruno Haible  <bruno@clisp.org>
37660         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
37661         when used in C++ mode.
37663 2007-05-12  Bruno Haible  <bruno@clisp.org>
37665         * lib/linebuffer.h: Tweak doc.
37666         * lib/linebuffer.c: Likewise.
37668 2007-05-12  James Youngman  <jay@gnu.org>
37670         * lib/linebuffer.c (readlinebuffer_delim): New function,
37671         like readlinebuffer, but use a caller-specified delimiter.
37672         (readlinebuffer): Just call readlinebuffer_delim with '\n'
37673         as the delimiter.
37674         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
37676 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37678         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
37679         * modules/openat (Files): Remove openat-die.c.
37680         (Depends-on): Add openat-die.
37681         * modules/openat-die: New module.
37683 2007-05-06  Bruno Haible  <bruno@clisp.org>
37685         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
37686         Update with info about Cygwin.
37687         * doc/functions/fprintf.texi: Update.
37688         * doc/functions/printf.texi: Update.
37689         * doc/functions/snprintf.texi: Update.
37690         * doc/functions/sprintf.texi: Update.
37691         * doc/functions/vfprintf.texi: Update.
37692         * doc/functions/vprintf.texi: Update.
37693         * doc/functions/vsnprintf.texi: Update.
37694         * doc/functions/vsprintf.texi: Update.
37695         Reported by Eric Blake.
37697 2007-05-06  Bruno Haible  <bruno@clisp.org>
37699         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
37700         padding ourselves for the floating-point directives.
37701         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
37702         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
37703         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37704         gl_PRINTF_FLAG_ZERO and test its result. Invoke
37705         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
37706         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37707         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
37708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37713         * tests/test-snprintf-posix.h (test_function): Also check the width
37714         and some flags in the %f directive.
37715         * tests/test-sprintf-posix.h (test_function): Likewise.
37716         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37717         * tests/test-vasprintf-posix.c (test_function): Likewise.
37718         * doc/functions/fprintf.texi: Update.
37719         * doc/functions/printf.texi: Update.
37720         * doc/functions/snprintf.texi: Update.
37721         * doc/functions/sprintf.texi: Update.
37722         * doc/functions/vfprintf.texi: Update.
37723         * doc/functions/vprintf.texi: Update.
37724         * doc/functions/vsnprintf.texi: Update.
37725         * doc/functions/vsprintf.texi: Update.
37727 2007-05-06  Bruno Haible  <bruno@clisp.org>
37729         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
37730         pass the ' flag character to sprintf or snprintf.
37731         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
37732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
37733         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37734         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
37735         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
37736         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37737         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
37738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37743         * tests/test-snprintf-posix.h (test_function): Also check the grouping
37744         flag.
37745         * tests/test-sprintf-posix.h (test_function): Likewise.
37746         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37747         * tests/test-vasprintf-posix.c (test_function): Likewise.
37748         * doc/functions/fprintf.texi: Update.
37749         * doc/functions/printf.texi: Update.
37750         * doc/functions/snprintf.texi: Update.
37751         * doc/functions/sprintf.texi: Update.
37752         * doc/functions/vfprintf.texi: Update.
37753         * doc/functions/vprintf.texi: Update.
37754         * doc/functions/vsnprintf.texi: Update.
37755         * doc/functions/vsprintf.texi: Update.
37757 2007-05-01  Bruno Haible  <bruno@clisp.org>
37759         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
37761 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
37763         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
37764         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
37766 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
37768         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
37769         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
37770         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
37772 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
37774         * lib/argp-help.c (struct hol_entry): New member `ord'.
37775         (HOL_ENTRY_PTRCMP): Use ord for comparison
37776         (hol_sort): Initialize ord.
37778 2007-05-01  Bruno Haible  <bruno@clisp.org>
37780         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
37781         Reported by Eric Blake.
37782         * doc/gnulib.texi (Function Substitutes): Update.
37784 2007-05-01  Bruno Haible  <bruno@clisp.org>
37786         * doc/functions.texi: Remove file, now redundant through
37787         doc/functions/*.texi.
37789 2007-05-01  Bruno Haible  <bruno@clisp.org>
37791         * modules/argp (Depends-on): Add sleep.
37793 2007-05-01  Bruno Haible  <bruno@clisp.org>
37795         * modules/sleep-tests: New file.
37796         * tests/test-sleep.c: New file.
37798         * modules/sleep: New file.
37799         * lib/sleep.c: New file.
37800         * m4/sleep.m4: New file.
37801         * lib/unistd_.h (sleep): New declaration.
37802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
37803         HAVE_SLEEP.
37804         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
37805         * doc/functions/sleep.texi: Document the sleep module.
37807 2007-05-01  Bruno Haible  <bruno@clisp.org>
37809         * lib/sigprocmask.h: Remove file.
37810         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
37811         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
37812         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
37813         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
37814         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
37815         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
37816         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
37817         HAVE_SIGSET_T as a shell variable.
37818         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
37819         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
37820         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
37821         (Depends-on): Add signal. Remove verify.
37822         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
37823         (Include): Mention <signal.h> instead of sigprocmask.h.
37824         * NEWS: Mention the change.
37825         * lib/fatal-signal.c: Don't include sigprocmask.h.
37827 2007-05-01  Bruno Haible  <bruno@clisp.org>
37829         * modules/signal: New file.
37830         * lib/signal_.h: New file.
37831         * m4/signal_h.m4: New file.
37833 2007-05-01  Bruno Haible  <bruno@clisp.org>
37835         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
37836         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
37837         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
37838         HAVE_WCTYPE_CTMP_BUG into wctype.h.
37840 2007-05-01  Bruno Haible  <bruno@clisp.org>
37842         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
37843         configure time.
37844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
37845         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
37846         * modules/sys_stat (Makefile.am): Substitute their values into
37847         sys/stat.h.
37849 2007-05-01  Bruno Haible  <bruno@clisp.org>
37851         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
37852         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
37853         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
37855 2007-05-01  Bruno Haible  <bruno@clisp.org>
37857         * doc/header/assert.texi: Undo last change: don't mention the gnulib
37858         'assert' module here.
37860 2007-05-01  Bruno Haible  <bruno@clisp.org>
37862         * doc/functions/*.texi: New files.
37863         * doc/functions/google-ranking.txt: New file.
37864         * doc/gnulib.texi (Function Substitutes): New chapter.
37865         (ctime, inet_ntoa): Remove sections.
37866         * doc/ctime.texi: Remove file.
37867         * doc/inet_ntoa.texi: Remove file.
37868         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
37869         dependencies.
37870         (%.info): New rule, specifying a --reference-limit.
37872 2007-05-01  Bruno Haible  <bruno@clisp.org>
37874         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
37876 2007-05-01  Bruno Haible  <bruno@clisp.org>
37878         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
37879         the portability of 'mkdir' to mingw systems.
37881 2007-05-01  Bruno Haible  <bruno@clisp.org>
37883         * doc/headers/google-ranking.txt: New file.
37885 2007-04-30  Eric Blake  <ebb9@byu.net>
37887         Prefer fseeko to fseek.
37888         * modules/getpass (Depends-on): Add fseeko.
37889         * lib/getpass.c (getpass): Use fseeko, not fseek.
37891 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
37893         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
37894         assumes the sorting is stable, while most qsort implementations
37895         are not.  Use argument addresses to ensure they never compare as
37896         equal.
37898         * tests/test-argp-2.sh (usage-indent test): Fix output
37899         (func_compare): Restore diff options
37900         * tests/test-argp.c: Restore #include "progname.h"
37902 2007-04-29  Bruno Haible  <bruno@clisp.org>
37904         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
37905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37906         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
37907         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37908         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
37909         (configure.ac): Define CHECK_SNPRINTF_POSIX.
37910         (TESTS, check_PROGRAMS): Add test-snprintf.
37911         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
37912         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
37913         (TESTS, check_PROGRAMS): Add test-vsnprintf.
37914         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
37915         assertions that fail on HP-UX, OSF/1, or IRIX.
37916         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
37918 2007-04-29  Bruno Haible  <bruno@clisp.org>
37920         * MODULES.html.sh (posix_functions): Remove 'contents'.
37922 2007-04-29  Karl Berry  <karl@gnu.org>
37924         * config/srclist.txt (gendocs_template_min): new entry.
37926 2007-04-29  Bruno Haible  <bruno@clisp.org>
37928         Work around fpurge bug on BSD systems.
37929         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
37930         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
37931         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
37932         fpurge to rpl_fpurge if the system already has this function.
37933         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
37934         the case where the system already has this function. Correct invariants
37935         on BSD systems.
37936         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
37937         BSD systems.
37939 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37941         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
37942         proposed by Sven Verdoolaege.
37944         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
37945         options.
37946         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
37947         (usage and help tests): Update
37949 2007-04-29  Bruno Haible  <bruno@clisp.org>
37951         * tests/test-fflush.c (main): Use a file of size 17, not 10.
37952         Print more information in case of failure. Disable a test on BeOS.
37954 2007-04-29  Bruno Haible  <bruno@clisp.org>
37956         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
37957         This helps debugging on systems on which no gdb is available.
37959 2007-04-29  Bruno Haible  <bruno@clisp.org>
37961         * lib/freading.h: Improve comments.
37962         * lib/fwriting.h: Likewise.
37963         * tests/test-freading.c (main): Don't check freading immediately after
37964         repositioning. Needed for glibc.
37966 2007-04-29  Bruno Haible  <bruno@clisp.org>
37968         * lib/freading.c (freading): Trivial simplification.
37970 2007-04-28  Bruno Haible  <bruno@clisp.org>
37972         * tests/test-fwriting.c (main): Also test the interaction between
37973         fflush and fwriting.
37974         * modules/fwriting-tests (Depends-on): Add fflush.
37976         * tests/test-freading.c (main): Also test the interaction between
37977         fflush and freading.
37978         * modules/freading-tests (Depends-on): Add fflush.
37980 2007-04-28  Bruno Haible  <bruno@clisp.org>
37982         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
37983         fseeko and ftello.
37984         Suggested by Eric Blake.
37986 2007-04-28  Jim Meyering  <jim@meyering.net>
37988         Avoid false-negative in gl_STDINT_H's C99 conformance test.
37989         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
37990         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
37992 2007-04-27  Eric Blake  <ebb9@byu.net>
37994         * doc/headers/assert.texi (assert.h): Document assert module use.
37996 2007-04-27  Bruno Haible  <bruno@clisp.org>
37998         * doc/headers/*.texi: New files.
37999         * doc/gnulib.texi (Header File Substitutes): New chapter.
38000         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38001         dependencies.
38002         (standards.info ,standards.html, standards.dvi): Update dependencies.
38003         (mostlyclean, clean): New targets.
38005 2007-04-27  Bruno Haible  <bruno@clisp.org>
38007         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38008         * modules/sysexits (Files, Makefile.am): Update.
38010         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38011         * modules/sys_socket (Files, Makefile.am): Update.
38013         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38014         * modules/sys_stat (Files, Makefile.am): Update.
38016 2007-04-27  Eric Blake  <ebb9@byu.net>
38018         * lib/freading.h: Improve comments.
38019         * lib/fwriting.h: Likewise.
38020         * lib/fflush.c: Likewise.
38022         Fix closein for mingw.
38023         * modules/closein-tests: Add tests for closein.
38024         * tests/test-closein.c: New file.
38025         * tests/test-closein.sh: Likewise.
38026         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38027         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38029 2007-04-27  Bruno Haible  <bruno@clisp.org>
38031         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38032         version is < 6.
38033         * lib/math_.h [__DECC]: Likewise.
38034         * lib/stdio_.h [__DECC]: Likewise.
38035         * lib/stdlib_.h [__DECC]: Likewise.
38036         * lib/string_.h [__DECC]: Likewise.
38037         * lib/time_.h [__DECC]: Likewise.
38038         * lib/wchar_.h [__DECC]: Likewise.
38039         * lib/wctype_.h [__DECC]: Likewise.
38041 2007-04-27  Bruno Haible  <bruno@clisp.org>
38043         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38045 2007-04-27  Bruno Haible  <bruno@clisp.org>
38047         * lib/fflush.c: Add comments.
38048         * modules/fpurge-tests (Depends-on): Add fflush.
38049         * modules/freadable-tests (Depends-on): Likewise.
38050         * modules/fwritable-tests (Depends-on): Likewise.
38052 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38054         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38055         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38056         Report by Bruno Haible <bruno@clisp.org>.
38058 2007-04-26  Eric Blake  <ebb9@byu.net>
38060         Fix fflush on mingw.
38061         * modules/fflush (Depends-on): Add freading.
38062         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38063         but unread data.
38065 2007-04-26  Eric Blake  <ebb9@byu.net>
38066         and Bruno Haible  <bruno@clisp.org>
38068         Implement freading and fwriting.
38069         * lib/freading.c: New file.
38070         * lib/freading.h: Likewise.
38071         * m4/freading.m4: Likewise.
38072         * modules/freading: Likewise.
38073         * modules/freading-tests: Likewise.
38074         * tests/test-freading.c: Likewise.
38075         * lib/fwriting.c: New file.
38076         * lib/fwriting.h: Likewise.
38077         * m4/fwriting.m4: Likewise.
38078         * modules/fwriting: Likewise.
38079         * modules/fwriting-tests: Likewise.
38080         * tests/test-fwriting.c: Likewise.
38081         * MODULES.html.sh (File stream based Input/Output): Mention them.
38083 2007-04-26  Bruno Haible  <bruno@clisp.org>
38085         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38086         'long' when we assume it.
38087         Suggested by Eric Blake.
38089 2007-04-26  Bruno Haible  <bruno@clisp.org>
38091         Ensure fseeko, ftello are declared on glibc systems.
38092         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38093         * modules/fseeko (configure.ac-early): Likewise.
38094         * modules/ftello (configure.ac-early): Likewise.
38095         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38096         AC_FUNC_FSEEKO for this.
38097         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38098         (gl_CHECK_FSEEKO): Remove macro.
38100 2007-04-26  Bruno Haible  <bruno@clisp.org>
38102         * tests/test-fflush.c (main): Also check the ftell result after
38103         fflush and fseek/fseeko.
38104         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38105         file descriptor position cache in the stream.
38106         * lib/fseeko.c (rpl_fseeko): Likewise.
38108 2007-04-26  Bruno Haible  <bruno@clisp.org>
38110         * modules/fflush-tests (Depends-on): Add fseeko.
38112 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38113             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38115         * lib/argz_.h: ensure error_t definition is obtained in same
38116         mechanism system argz.h would have.
38117         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38118         argz facilities are known bad.  Err on the side of caution if
38119         cross-compiling.
38121 2007-04-25  Eric Blake  <ebb9@byu.net>
38123         * lib/fpurge.c (includes): Use stdlib.h for free.
38124         * tests/test-fflush.c (main): Also test fflush-fseeko.
38126 2007-04-25  Bruno Haible  <bruno@clisp.org>
38128         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38129         * lib/fseeko.c: New file.
38130         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38131         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38132         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38133         gl_FUNC_FSEEKO.
38134         (gl_FUNC_FSEEKO): Invoke it.
38135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38136         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38137         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38139 2007-04-25  Bruno Haible  <bruno@clisp.org>
38141         * modules/fflush (Depends-on): Add ftello.
38143 2007-04-25  Bruno Haible  <bruno@clisp.org>
38145         * modules/ftello-tests: New file.
38146         * tests/test-ftello.c: New file.
38148         * modules/ftello: New file.
38149         * m4/ftello.m4: New file.
38150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38151         HAVE_FTELLO.
38152         * lib/stdio_.h (ftello): New declaration.
38153         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38154         HAVE_FTELLO.
38156 2007-04-25  Bruno Haible  <bruno@clisp.org>
38158         * modules/fseeko-tests: New file.
38159         * tests/test-fseeko.c: New file.
38161         * modules/fseeko: New file.
38162         * m4/fseeko.m4: New file.
38163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38164         HAVE_FSEEKO.
38165         * lib/stdio_.h (fseeko): New declaration.
38166         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38167         HAVE_FSEEKO.
38169 2007-04-25  Bruno Haible  <bruno@clisp.org>
38171         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38173 2007-04-25  Bruno Haible  <bruno@clisp.org>
38175         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38176         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38177         * tests/test-unistd.c: Likewise.
38178         * tests/test-fcntl.c: Likewise.
38180 2007-04-23  Eric Blake  <ebb9@byu.net>
38182         * lib/fflush.c: Fix missing include.
38183         Reported by Bruno Haible.
38185 2007-04-23  Bruno Haible  <bruno@clisp.org>
38187         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38188         Reported by Eric Blake.
38190 2007-04-23  Bruno Haible  <bruno@clisp.org>
38192         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38194 2007-04-23  Bruno Haible  <bruno@clisp.org>
38196         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38198 2007-04-23  Bruno Haible  <bruno@clisp.org>
38200         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38201         Needed on HP-UX 11.
38203 2007-04-16  Eric Blake  <ebb9@byu.net>
38205         Make fflush rely on fpurge.
38206         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38207         open coding all variants.
38208         * modules/fflush (Depends-on): Add fpurge and unistd.
38209         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38210         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38212         Fix --with-tests compilation on cygwin.
38213         * modules/argmatch-tests (Makefile.am): List gnulib library first
38214         in LDADD.
38215         * modules/argp-tests (Makefile.am): Likewise.
38216         * modules/array-list-tests (Makefile.am): Likewise.
38217         * modules/array-oset-tests (Makefile.am): Likewise.
38218         * modules/avltree-list-tests (Makefile.am): Likewise.
38219         * modules/avltree-oset-tests (Makefile.am): Likewise.
38220         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38221         * modules/carray-list-tests (Makefile.am): Likewise.
38222         * modules/dirname-tests (Makefile.am): Likewise.
38223         * modules/frexp-tests (Makefile.am): Likewise.
38224         * modules/isnanl-tests (Makefile.am): Likewise.
38225         * modules/linked-list-tests (Makefile.am): Likewise.
38226         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38227         * modules/lock-tests (Makefile.am): Likewise.
38228         * modules/rbtree-list-tests (Makefile.am): Likewise.
38229         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38230         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38231         * modules/tls-tests (Makefile.am): Likewise.
38232         * modules/tsearch-tests (Makefile.am): Likewise.
38233         * modules/xvasprintf-tests (Makefile.am): Likewise.
38235         Fix fpurge for cygwin.
38236         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38237         value.
38238         * modules/fpurge-tests (Depends-on): Clean up trash.
38240 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38242         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38244         * m4/autobuild.m4: Re-indent.
38246 2007-04-13  Bruno Haible  <bruno@clisp.org>
38248         * modules/fpurge-tests: New file.
38249         * tests/test-fpurge.c: New file.
38251         * modules/fpurge: New file.
38252         * lib/fpurge.h: New file.
38253         * lib/fpurge.c: New file.
38254         * m4/fpurge.m4: New file.
38256 2007-04-13  Bruno Haible  <bruno@clisp.org>
38258         * modules/fbufmode-tests: New file.
38259         * tests/test-fbufmode.c: New file.
38261         * modules/fbufmode: New file.
38262         * lib/fbufmode.h: New file.
38263         * lib/fbufmode.c: New file.
38264         * m4/fbufmode.m4: New file.
38266 2007-04-13  Bruno Haible  <bruno@clisp.org>
38268         * modules/fwritable-tests: New file.
38269         * tests/test-fwritable.c: New file.
38271         * modules/fwritable: New file.
38272         * lib/fwritable.h: New file.
38273         * lib/fwritable.c: New file.
38274         * m4/fwritable.m4: New file.
38276 2007-04-13  Bruno Haible  <bruno@clisp.org>
38278         * modules/freadable-tests: New file.
38279         * tests/test-freadable.c: New file.
38281         * modules/freadable: New file.
38282         * lib/freadable.h: New file.
38283         * lib/freadable.c: New file.
38284         * m4/freadable.m4: New file.
38286 2007-04-13  Bruno Haible  <bruno@clisp.org>
38288         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38289         MOSTLYCLEANFILES.
38291 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38293         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38294         gzip bootstrap.conf to avoid dragging in i18n machinery.
38295         (gnulib_tool_option): Use it.
38297 2007-04-13  Bruno Haible  <bruno@clisp.org>
38299         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38300         %F directives.
38301         * tests/test-vasprintf-posix.c (test_function): Likewise.
38302         * tests/test-snprintf-posix.h (test_function): Likewise.
38303         * tests/test-sprintf-posix.h (test_function): Likewise.
38304         * tests/test-fprintf-posix.h (test_function): Likewise.
38305         * tests/test-printf-posix.h (test_function): Likewise.
38306         * tests/test-fprintf-posix.out: Likewise.
38308 2007-04-13  Bruno Haible  <bruno@clisp.org>
38310         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
38311         * modules/tls-tests (configure.ac): Likewise.
38312         Reported by Arto C. Nirkko <anirkko@insel.ch>.
38314 2007-04-13  Bruno Haible  <bruno@clisp.org>
38316         * lib/tls.c (glthread_tls_get): Fix return type.
38317         Patch by Arto C. Nirkko <anirkko@insel.ch>.
38319 2007-04-12  Eric Blake  <ebb9@byu.net>
38321         * modules/gettime (Depends-on): Remove gettime.
38322         Reported by Dmitry V. Levin.
38324 2007-04-12  Bruno Haible  <bruno@clisp.org>
38326         * modules/fflush (Include): Mention <stdio.h>.
38327         * modules/strtoimax (Include): Mention <inttypes.h>.
38328         * modules/strtoumax (Include): Likewise.
38330 2007-04-12  Eric Blake  <ebb9@byu.net>
38332         * .cvsignore: New file.
38333         * .gitignore: Likewise.
38335 2007-04-12  Bruno Haible  <bruno@clisp.org>
38337         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
38338         not before, since $(LDADD) often contains libgnu.a.
38339         * modules/striconv-tests (test_striconv_LDADD): Likewise.
38340         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
38341         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
38342         Needed on Cygwin.
38344 2007-04-12  Eric Blake  <ebb9@byu.net>
38346         Work around glibc's failure to flush stdin on fclose.
38347         * lib/closein.c (close_stdin): Flush stdin before closing.
38349         Work around glibc's failure to reset seekable stdin on exit.
38350         * modules/closein: New module.
38351         * lib/closein.c: New file.
38352         * lib/closein.h: Likewise.
38353         * m4/closein.m4: Likewise.
38354         * MODULES.html.sh (File stream based Input/Output): Document it.
38356 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38358         * gnulib-tool: Rename generated 'autobuild' script to
38359         'do-autobuild' in --create-megatestdir output.
38361         * doc/gnulib.texi (Build robot for gnulib): Fix.
38363 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38365         * modules/sysexits (Depends-on): Add absolute-header.
38367 2007-04-12  Eric Blake  <ebb9@byu.net>
38369         No need to preserve errno on success.
38370         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
38371         Reported by Bruno Haible.
38373 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38375         * MODULES.html.sh (Support for maintaining and releasing
38376         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
38378 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38380         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
38382 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38384         * modules/autobuild: New module.
38386         * m4/autobuild.m4: New file.
38388 2007-04-11  Bruno Haible  <bruno@clisp.org>
38390         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
38391         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
38392         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
38393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
38394         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38395         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38396         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38397         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38398         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38399         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38400         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
38401         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38402         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
38404         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38405         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
38407         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38408         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
38410         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38411         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38412         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
38413         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38414         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
38416         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38417         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38418         Reported by Eric Blake.
38420 2007-04-11  Bruno Haible  <bruno@clisp.org>
38422         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
38424 2007-04-10  Bruno Haible  <bruno@clisp.org>
38426         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
38427         for NaN and Infinity. Needed on FreeBSD 6.1.
38428         * tests/test-vasnprintf-posix.c (test_function): Undo last change
38429         regarding results for "%010a" of Infinity and NaN.
38430         * tests/test-vasprintf-posix.c (test_function): Likewise.
38431         * tests/test-snprintf-posix.h (test_function): Likewise.
38432         * tests/test-sprintf-posix.h (test_function): Likewise.
38433         * tests/test-fprintf-posix.h (test_function): Likewise.
38434         * tests/test-printf-posix.h (test_function): Likewise.
38435         * tests/test-fprintf-posix.out: Likewise.
38437 2007-04-10  Bruno Haible  <bruno@clisp.org>
38439         * modules/locale-tests: New file.
38440         * tests/test-locale.c: New file.
38442         * modules/locale: New file.
38443         * lib/locale_.h: New file.
38444         * m4/locale_h.m4: New file.
38446 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
38447             Bruno Haible  <bruno@clisp.org>
38449         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
38450         be determined, test for availability of the copysignf, copysign,
38451         copysignl functions.
38452         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
38453         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
38454         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
38456 2007-04-09  Eric Blake  <ebb9@byu.net>
38458         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
38459         * modules/stdio (Makefile.am): Support fflush.
38460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38461         * modules/fflush: New file.
38462         * lib/fflush.c: Likewise.
38463         * m4/fflush.m4: Likewise.
38464         * modules/fflush-tests: New test.
38465         * tests/test-fflush.c: Likewise.
38466         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
38468 2007-04-06  Bruno Haible  <bruno@clisp.org>
38470         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
38471         (VASNPRINTF): Use signbit for faster determination whether to print a
38472         minus sign.
38473         * modules/vasnprintf (Files): Remove lib/float+.h.
38474         * modules/fprintf-posix (Depends-on): Add signbit.
38475         * modules/snprintf-posix (Depends-on): Likewise.
38476         * modules/sprintf-posix (Depends-on): Likewise.
38477         * modules/vasnprintf-posix (Depends-on): Likewise.
38478         * modules/vasprintf-posix (Depends-on): Likewise.
38479         * modules/vfprintf-posix (Depends-on): Likewise.
38480         * modules/vsnprintf-posix (Depends-on): Likewise.
38481         * modules/vsprintf-posix (Depends-on): Likewise.
38483 2007-04-06  Bruno Haible  <bruno@clisp.org>
38485         * tests/test-frexp.c (main): Test also the sign bit of zero results.
38486         * tests/test-frexpl.c (main): Likewise.
38487         * tests/test-ldexpl.c (main): Likewise.
38488         * modules/frexp-tests (Depends-on): Add signbit.
38489         * modules/frexpl-tests (Depdends-on): Likewise.
38490         * modules/ldexpl-tests (Depdends-on): Likewise.
38492 2007-04-06  Bruno Haible  <bruno@clisp.org>
38494         * modules/signbit-tests: New file.
38495         * tests/test-signbit.c: New file.
38497         * modules/signbit: New file.
38498         * lib/signbitf.c: New file.
38499         * lib/signbitd.c: New file.
38500         * lib/signbitl.c: New file.
38501         * m4/signbit.m4: New file.
38502         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
38503         (signbit): New macro.
38504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
38505         REPLACE_SIGNBIT.
38506         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
38507         REPLACE_FREXPL into math.h.
38509 2007-04-06  Bruno Haible  <bruno@clisp.org>
38511         * modules/isnanf-nolibm-tests: New file.
38512         * tests/test-isnanf.c: New file.
38514         * modules/isnanf-nolibm: New file.
38515         * lib/isnanf.h: New file.
38516         * lib/isnanf.c: New file.
38517         * lib/isnan.c: Consider the USE_FLOAT macro.
38518         * m4/isnanf.m4: New file.
38520 2007-04-06  Bruno Haible  <bruno@clisp.org>
38522         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
38523         (Link): New section.
38525         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
38527 2007-04-06  Bruno Haible  <bruno@clisp.org>
38529         Assume the 'long double' type.
38530         * m4/longdouble.m4: Remove file.
38531         * config/srclist.txt: Don't mention longdouble.m4.
38532         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
38533         * lib/float+.h: Likewise.
38534         * lib/frexp.c: Likewise.
38535         * lib/printf-args.h: Likewise.
38536         * lib/printf-args.c: Likewise.
38537         * lib/printf-frexp.c: Likewise.
38538         * lib/printf-parse.c: Likewise.
38539         * lib/vasnprintf.c: Likewise.
38540         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
38541         * m4/intl.m4: Likewise.
38542         * m4/isnanl.m4: Likewise.
38543         * m4/printf.m4: Likewise.
38544         * m4/printf-frexpl.m4: Likewise.
38545         * m4/vasnprintf.m4: Likewise.
38546         * modules/allocsa (Files): Remove m4/longdouble.m4.
38547         * modules/gettext (Files): Likewise.
38548         * modules/relocatable-prog-wrapper (Files): Likewise.
38549         * modules/vasnprintf (Files): Likewise.
38550         * modules/isnanl (Files): Likewise.
38551         (Include): Simplify.
38552         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
38553         (Include): Simplify.
38554         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
38555         (Include): Simplify.
38556         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
38557         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38558         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
38559         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38560         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38561         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38562         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
38563         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38564         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38565         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38566         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
38567         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38568         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
38569         * tests/test-isnanl.c: Likewise.
38570         * tests/test-snprintf-posix.h: Likewise.
38571         * tests/test-sprintf-posix.h: Likewise.
38572         * tests/test-vasnprintf-posix.c: Likewise.
38573         * tests/test-vasnprintf-posix2.c: Likewise.
38574         * tests/test-vasprintf-posix.c: Likewise.
38576 2007-04-06  Bruno Haible  <bruno@clisp.org>
38578         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
38579         * lib/math_.h [__DECC]: Include the overridden include file through
38580         #include_next, outside the double-inclusion guard.
38581         * lib/stdio_.h [__DECC]: Likewise.
38582         * lib/stdlib_.h [__DECC]: Likewise.
38583         * lib/string_.h [__DECC]: Likewise.
38584         * lib/time_.h [__DECC]: Likewise.
38585         * lib/wchar_.h [__DECC]: Likewise.
38586         * lib/wctype_.h [__DECC]: Likewise.
38587         * lib/inttypes_.h [__DECC]: Likewise.
38588         Reported by Albert Chin <china@thewrittenword.com> in
38589         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
38591 2007-04-04  Eric Blake  <ebb9@byu.net>
38593         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
38594         1.5.x.
38596 2007-04-04  Bruno Haible  <bruno@clisp.org>
38598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
38599         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
38601 2007-04-04  Bruno Haible  <bruno@clisp.org>
38603         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
38604         results for "%010a" of Infinity and NaN.
38605         * tests/test-vasprintf-posix.c (test_function): Likewise.
38606         * tests/test-snprintf-posix.h (test_function): Likewise.
38607         * tests/test-sprintf-posix.h (test_function): Likewise.
38608         * tests/test-fprintf-posix.h (test_function): Remove these tests.
38609         * tests/test-printf-posix.h (test_function): Likewise.
38610         * tests/test-fprintf-posix.out: Update.
38611         Needed for FreeBSD 6.1.
38613 2007-04-04  Bruno Haible  <bruno@clisp.org>
38615         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
38616         directly used by the gnulib modules nor by gnulib-tool.
38618 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38620         * DEPENDENCIES: Give overall description of version dependency
38621         desirability.  Use more-typical names for apps.
38622         Add shell, coreutils, diffutils, grep, tar, gzip.
38624 2007-04-04  Simon Josefsson  <simon@josefsson.org>
38626         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
38628 2007-04-04  Karl Berry  <karl@gnu.org>
38630         * MODULES.html.sh (func_module): missing '.
38632 2007-04-03  Bruno Haible  <bruno@clisp.org>
38634         * modules/argmatch-tests (Makefile.am): New variable
38635         test_argmatch_LDADD.
38636         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
38637         * modules/array-list-tests (Makefile.am): New variable
38638         test_array_list_LDADD.
38639         * modules/array-oset-tests (Makefile.am): New variable
38640         test_array_oset_LDADD.
38641         * modules/avltree-list-tests (Makefile.am): New variable
38642         test_avltree_list_LDADD.
38643         * modules/avltree-oset-tests (Makefile.am): New variable
38644         test_avltree_oset_LDADD.
38645         * modules/avltreehash-list-tests (Makefile.am): New variable
38646         test_avltreehash_list_LDADD.
38647         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
38648         test_canonicalize_lgpl_LDADD.
38649         * modules/carray-list-tests (Makefile.am): New variable
38650         test_carray_list_LDADD.
38651         * modules/dirname-tests (Makefile.am): New variable
38652         test_dirname_LDADD.
38653         * modules/linked-list-tests (Makefile.am): New variable
38654         test_linked_list_LDADD.
38655         * modules/linkedhash-list-tests (Makefile.am): New variable
38656         test_linkedhash_list_LDADD.
38657         * modules/rbtree-list-tests (Makefile.am): New variable
38658         test_rbtree_list_LDADD.
38659         * modules/rbtree-oset-tests (Makefile.am): New variable
38660         test_rbtree_oset_LDADD.
38661         * modules/rbtreehash-list-tests (Makefile.am): New variable
38662         test_rbtreehash_list_LDADD.
38663         * modules/xvasprintf-tests (Makefile.am): New variable
38664         test_xvasprintf_LDADD.
38665         Reported by Eric Blake.
38667 2007-04-03  Eric Blake  <ebb9@byu.net>
38669         * DEPENDENCIES: Weaken m4 requirements.
38671 2007-04-03  Bruno Haible  <bruno@clisp.org>
38673         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
38674         * modules/isnanl-tests (configure.ac): Likewise.
38676 2007-04-03  Ben Pfaff  <blp@gnu.org>
38678         * modules/iconv_open: Add $(srcdir)/ to source directory
38679         references in Makefile fragments that call gperf, to fix VPATH
38680         builds.
38682 2007-04-03  Bruno Haible  <bruno@clisp.org>
38684         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
38685         * lib/ldexpl.c: Undo last change.
38687 2007-04-03  Bruno Haible  <bruno@clisp.org>
38689         * modules/printf-frexpl (Depends-on): Undo last change.
38690         (Files): Add m4/ldexpl.m4.
38692 2007-04-03  Bruno Haible  <bruno@clisp.org>
38694         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
38695         * modules/isnanl (Link): New section.
38697         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
38698         * modules/frexp (Link): New section.
38700         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
38701         * modules/frexpl (Link): New section.
38703         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
38704         * modules/ldexpl (Link): New section.
38706 2007-04-03  Bruno Haible  <bruno@clisp.org>
38708         * modules/TEMPLATE-EXTENDED: New file.
38709         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
38711 2007-04-03  Bruno Haible  <bruno@clisp.org>
38713         * DEPENDENCIES: New file.
38714         Suggested by Simon Josefsson.
38716 2007-04-03  Bruno Haible  <bruno@clisp.org>
38718         * doc/gnulib.texi: Escape @.
38720 2007-04-03  James Youngman  <jay@gnu.org>
38721         and Paul Eggert  <eggert@cs.ucla.edu>
38723         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
38724         birthtime on all systems that have birthtime, not just those which
38725         use st_birthtimensec rather than st_birthtim.  Putting zero in
38726         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
38727         that the birth time is not available for files on an NFS mount.
38729 2007-04-03  Simon Josefsson  <simon@josefsson.org>
38731         * modules/memxor: Move back from crypto/, suggested by Bruno.
38732         * modules/crypto/hmac-sha1: Fix memxor dependency.
38734         * modules/crypto/gc: Moved from ../.
38736 2007-04-02  Eric Blake  <ebb9@byu.net>
38738         * lib/ldexpl.c (includes): Avoid libm.
38740         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
38742 2007-04-02  Bruno Haible  <bruno@clisp.org>
38744         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
38745         on IRIX.
38747 2007-04-02  Bruno Haible  <bruno@clisp.org>
38749         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
38750         x86 or x86_64 platforms running MacOS X.
38751         Reported by Ryan Schmidt <@ryandesign.com>.
38753 2007-04-02  Bruno Haible  <bruno@clisp.org>
38755         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
38756         i386.
38758 2007-04-01  Simon Josefsson  <simon@josefsson.org>
38760         * modules/crypto/arcfour: Moved from ../.
38761         * modules/crypto/arcfour-tests: Moved from ../.
38762         * modules/crypto/arctwo: Moved from ../.
38763         * modules/crypto/arctwo-tests: Moved from ../.
38764         * modules/crypto/des: Moved from ../.
38765         * modules/crypto/des-tests: Moved from ../.
38766         * modules/crypto/gc-arcfour: Moved from ../.
38767         * modules/crypto/gc-arcfour-tests: Moved from ../.
38768         * modules/crypto/gc-arctwo: Moved from ../.
38769         * modules/crypto/gc-arctwo-tests: Moved from ../.
38770         * modules/crypto/gc-des: Moved from ../.
38771         * modules/crypto/gc-des-tests: Moved from ../.
38772         * modules/crypto/gc-hmac-md5: Moved from ../.
38773         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
38774         * modules/crypto/gc-hmac-sha1: Moved from ../.
38775         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
38776         * modules/crypto/gc-md2: Moved from ../.
38777         * modules/crypto/gc-md2-tests: Moved from ../.
38778         * modules/crypto/gc-md4: Moved from ../.
38779         * modules/crypto/gc-md4-tests: Moved from ../.
38780         * modules/crypto/gc-md5: Moved from ../.
38781         * modules/crypto/gc-md5-tests: Moved from ../.
38782         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
38783         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
38784         * modules/crypto/gc-random: Moved from ../.
38785         * modules/crypto/gc-rijndael: Moved from ../.
38786         * modules/crypto/gc-rijndael-tests: Moved from ../.
38787         * modules/crypto/gc-sha1: Moved from ../.
38788         * modules/crypto/gc-sha1-tests: Moved from ../.
38789         * modules/crypto/gc-tests: Moved from ../.
38790         * modules/crypto/hmac-md5: Moved from ../.
38791         * modules/crypto/hmac-md5-tests: Moved from ../.
38792         * modules/crypto/hmac-sha1: Moved from ../.
38793         * modules/crypto/hmac-sha1-tests: Moved from ../.
38794         * modules/crypto/md2: Moved from ../.
38795         * modules/crypto/md2-tests: Moved from ../.
38796         * modules/crypto/md4: Moved from ../.
38797         * modules/crypto/md4-tests: Moved from ../.
38798         * modules/crypto/md5: Moved from ../.
38799         * modules/crypto/md5-tests: Moved from ../.
38800         * modules/crypto/memxor: Moved from ../.
38801         * modules/crypto/rijndael: Moved from ../.
38802         * modules/crypto/rijndael-tests: Moved from ../.
38803         * modules/crypto/sha1: Moved from ../.
38805 2007-03-30  James Youngman  <jay@gnu.org>
38807         * tests/test-stat-time.c (prepare_test): use chmod() rather than
38808         rename() to change the ctime of a file (because ctime is unaffected
38809         by rename on jfs2 on AIX 5.1).
38810         (main): Start by doing cleanup, in case a previous run failed leaving
38811         test files behind.
38813 2007-03-31  Bruno Haible  <bruno@clisp.org>
38815         Support old proprietary implementations of iconv.
38816         * modules/iconv_open: New file.
38817         * lib/iconv_.h: New file.
38818         * m4/iconv_h.m4: New file.
38819         * lib/iconv_open.c: New file.
38820         * lib/iconv_open-aix.gperf: New file.
38821         * lib/iconv_open-hpux.gperf: New file.
38822         * lib/iconv_open-irix.gperf: New file.
38823         * lib/iconv_open-osf.gperf: New file.
38824         * m4/iconv_open.m4: New file.
38825         * modules/linebreak (Depends-on): Add iconv_open.
38826         * modules/striconv (Depends-on): Likewise.
38827         * modules/striconveh (Depends-on): Likewise.
38828         * modules/unicodeio (Depends-on): Likewise.
38829         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
38830         (iconv_t)(-1).
38831         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
38832         conversion if cd is (iconv_t)(-1).
38833         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
38834         is not possible.
38836 2007-03-31  Bruno Haible  <bruno@clisp.org>
38838         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
38839         work on Solaris either. Protect also second use of "autodetect_jp".
38841 2007-03-31  Bruno Haible  <bruno@clisp.org>
38843         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
38844         the function is not present.
38846 2007-03-31  Bruno Haible  <bruno@clisp.org>
38848         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
38849         the function is not present.
38851 2007-03-31  Bruno Haible  <bruno@clisp.org>
38853         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
38854         a bug in HP-UX iconv_open().
38856 2007-03-31  Bruno Haible  <bruno@clisp.org>
38858         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
38859         (Mathematics <math.h>): New section, add fpieee.
38860         (Input/output <stdio.h>): Add fseterr.
38861         (Mathematics <math.h>): New section, add printf-frexp.
38862         (Container data structures): Add sublist.
38863         (Core language properties): Add fpucw, inline.
38864         (Functions for greatest-width integer types <inttypes.h>): Add
38865         imaxabs, imaxdiv, inttypes.
38866         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
38867         isnanl-nolibm, ldexp.
38868         (Mathematics <math.h>): New section, add printf-frexpl.
38869         (Support for systems lacking POSIX:2001): Add fprintf-posix,
38870         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
38871         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
38872         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
38873         (Unicode string functions): Add unistr/u*-mbtoucr.
38874         (Java): Add javacomp-script, javaexec-script.
38875         (C#): Add csharpcomp-script, csharpexec-script.
38876         (Support for building libraries and executables): Add havelib,
38877         relocatable-*.
38878         (Support for maintaining and releasing projects): Renamed from
38879         'Support for maintaining and release projects'. Add announce-gen.
38881 2007-03-31  Bruno Haible  <bruno@clisp.org>
38883         * README: Talk primarily about git.
38884         (git and CVS): Renamed from CVS.
38885         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
38886         gnulib is available through git.
38887         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
38889 2007-03-30  Bruno Haible  <bruno@clisp.org>
38891         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
38892         * lib/poll_.h: Likewise.
38893         * lib/stat_.h: Likewise.
38894         * lib/sys_time_.h: Likewise.
38895         * lib/sysexit_.h: Likewise.
38896         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
38897         * lib/stdbool_.h: Likewise.
38898         * lib/byteswap_.h: Add double-inclusion guard.
38900 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
38902         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
38904 2007-03-30  Karl Berry  <karl@gnu.org>
38906         * config/srclist-update: double space after USA in the license
38907         substitution, since that's how it's usually (?) written.
38909 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38911         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
38912         reported by Bruno Haible.
38914 2007-03-29  Bruno Haible  <bruno@clisp.org>
38916         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
38917         a bug in AIX iconv().
38919 2007-03-29  Bruno Haible  <bruno@clisp.org>
38921         * modules/ldexpl-tests: New file.
38922         * tests/test-ldexpl.c: New file.
38924 2007-03-29  Bruno Haible  <bruno@clisp.org>
38926         * lib/ldexpl.c: Include fpucw.h.
38927         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
38928         multiplication.
38929         * modules/ldexpl (Depends-on): Add fpucw.
38931 2007-03-29  Bruno Haible  <bruno@clisp.org>
38933         * modules/ldexpl: New file.
38934         * m4/ldexpl.m4: New file.
38935         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
38936         set.
38937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
38938         REPLACE_LDEXPL.
38939         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
38940         REPLACE_LDEXPL.
38941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38942         gl_FUNC_LDEXPL_WORKS.
38943         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
38944         * modules/mathl (Files): Remove lib/ldexpl.c.
38945         (Depends-on): Add ldexpl.
38947 2007-03-29  Bruno Haible  <bruno@clisp.org>
38949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
38951 2007-03-29  Bruno Haible  <bruno@clisp.org>
38953         * tests/test-striconveh.c (main): Don't assume that a direct conversion
38954         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
38955         and possibly also HP-UX.
38956         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
38957         work on AIX, IRIX, HP-UX, OSF/1.
38958         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38959         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38960         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38961         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38962         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
38963         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38965 2007-03-29  Bruno Haible  <bruno@clisp.org>
38967         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
38969 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
38971         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
38972         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
38974 2007-03-29  Eric Blake  <ebb9@byu.net>
38976         * lib/acl-internal.h: Remove redundant include.
38977         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
38978         Cygwin when a file is locked.
38980 2007-03-29  Bruno Haible  <bruno@clisp.org>
38982         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
38983         file.
38984         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
38986 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
38988         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
38989         try to remove a parent directory if the child couldn't be removed
38990         (except for the first rmdir, which could fail because the child
38991         doesn't exist).  Problem reported by Jeff Blaine in
38992         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
38994 2007-03-28  Bruno Haible  <bruno@clisp.org>
38996         * lib/striconveh.c (utf8conv_carefully): New function.
38997         (mem_cd_iconveh_internal): Invoke it.
38999 2007-03-28  Bruno Haible  <bruno@clisp.org>
39001         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39002         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39003         input.
39004         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39005         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39006         unistr/u8-uctomb.
39008 2007-03-28  Bruno Haible  <bruno@clisp.org>
39010         * modules/unistr/u8-mbtoucr: New file.
39011         * lib/unistr/u8-mbtoucr.c: New file.
39012         * modules/unistr/u16-mbtoucr: New file.
39013         * lib/unistr/u16-mbtoucr.c: New file.
39014         * modules/unistr/u16-mbtoucr: New file.
39015         * lib/unistr/u16-mbtoucr.c: New file.
39016         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39018 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39019             Bruno Haible  <bruno@clisp.org>
39021         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39022         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39023         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39025         * m4/stdio_h.m4: Add stubs for vasprintf too.
39027         * modules/stdio: Support vasprintf in sed command.
39029         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39030         vasprintf.h.  Add stdio module indicator.
39032         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39033         vasprintf.h.
39035         * lib/vasprintf.h: File removed.
39037         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39038         * lib/vasprintf.c: Ditto.
39039         * lib/xvasprintf.c: Ditto.
39040         * tests/test-vasprintf-posix.c: Ditto.
39041         * tests/test-vasprintf.c: Ditto.
39043 2007-03-27  Bruno Haible  <bruno@clisp.org>
39045         Make vasnprintf multithread-safe.
39046         * lib/vasnprintf.c (decimal_point_char): New function.
39047         (VASNPRINTF): Use it.
39048         Suggested by Simon Josefsson.
39050 2007-03-27  Eric Blake  <ebb9@byu.net>
39052         Support sub-second birthtime on cygwin.
39053         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39054         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39055         (get_stat_birthtime): Also work with st_birthtim.
39057 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39059         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39060         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39061         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39062         (get_stat_birthtime_ns): Simplify compile-time tests.
39063         (get_stat_birthtime): Change the API to look like
39064         get_stat_mtime etc., except return a negative tv_nsec on error.
39065         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39066         Don't check for "spare" fields.
39067         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39068         or for struct stat.st_birthtime, as these tests aren't used.
39069         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39071 2007-03-27  Bruno Haible  <bruno@clisp.org>
39073         * lib/stat-time.h: Include <sys/stat.h>.
39075 2007-03-27  James Youngman  <jay@gnu.org>
39077         * lib/stat-time.h (get_stat_birthtime): New function for
39078           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39079         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39080           and its variants.
39081         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39082         * modules/stat-time-test: New file.
39083         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39085 2007-03-26  Bruno Haible  <bruno@clisp.org>
39087         Better support of signalling NaNs.
39088         * lib/atanl.c: Include isnanl.h.
39089         (atanl): Perform test for NaN at the beginning of the function and
39090         through a call to isnanl.
39091         * lib/cosl.c: Include isnanl.h.
39092         (cosl): Perform test for NaN at the beginning of the function and
39093         through a call to isnanl.
39094         * lib/ldexpl.c: Include isnanl.h.
39095         (ldexpl): Perform test for NaN through a call to isnanl.
39096         * lib/logl.c: Include isnanl.h.
39097         (logl): Perform test for NaN at the beginning of the function and
39098         through a call to isnanl.
39099         * lib/sinl.c: Include isnanl.h.
39100         (sinl): Perform test for NaN at the beginning of the function and
39101         through a call to isnanl.
39102         * lib/sqrtl.c: Include isnanl.h.
39103         (sqrtl): Perform test for NaN at the beginning of the function and
39104         through a call to isnanl.
39105         * lib/tanl.c: Include isnanl.h.
39106         (tanl): Perform test for NaN at the beginning of the function and
39107         through a call to isnanl.
39108         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39109         * modules/mathl (Depends-on): Add isnanl.
39111 2007-03-26  Eric Blake  <ebb9@byu.net>
39113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39114         regression in logic sense of previous patch.
39116 2007-03-26  Bruno Haible  <bruno@clisp.org>
39118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39119         unportable shell command "if ! ...".
39120         Reported by Ralf Wildenhues.
39122 2007-03-25  Bruno Haible  <bruno@clisp.org>
39124         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39125         <sysexits.h> file, and only add EX_CONFIG.
39126         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39127         absolute file name and whether it is sufficient. Substitute also
39128         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39129         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39130         ABSOLUTE_SYSEXITS_H into sysexits.h.
39132 2007-03-25  Bruno Haible  <bruno@clisp.org>
39134         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39135         hints is NULL.
39137 2007-03-25  Bruno Haible  <bruno@clisp.org>
39139         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39140         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39142 2007-03-25  Bruno Haible  <bruno@clisp.org>
39144         * lib/vasnprintf.c: Include langinfo.h.
39145         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39146         multithread-safe.
39147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39150         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39151         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39152         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39153         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39154         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39155         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39156         Reported by Simon Josefsson.
39158 2007-03-25  Bruno Haible  <bruno@clisp.org>
39160         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39161         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39162         * modules/vasnprintf (Depends-on): Add stdint.
39164 2007-03-25  Bruno Haible  <bruno@clisp.org>
39166         * modules/fpieee: New file.
39167         * m4/fpieee.m4: New file.
39168         * modules/isnan-nolibm (Depends-on): Add fpieee.
39169         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39170         * modules/isnanl (Depends-on): Add fpieee.
39172 2007-03-25  Bruno Haible  <bruno@clisp.org>
39174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39176 2007-03-25  Bruno Haible  <bruno@clisp.org>
39178         Avoid test failures on IRIX 6.5.
39179         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39180         (main): Use it.
39181         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39182         macros.
39183         (main): Use them.
39185 2007-03-25  Bruno Haible  <bruno@clisp.org>
39187         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39188         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39189         exists but doesn't work.
39190         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39191         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39193         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39195 2007-03-25  Bruno Haible  <bruno@clisp.org>
39197         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39198         returns inf. Needed on IRIX 6.5.
39200 2007-03-25  Bruno Haible  <bruno@clisp.org>
39202         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39203         (main): Use isnanl instead of x != x idiom.
39204         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39206         * tests/test-frexp.c: Include isnan.h.
39207         (main): Use isnan instead of x != x idiom.
39208         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39210 2007-03-25  Bruno Haible  <bruno@clisp.org>
39212         * tests/test-frexp.c (NaN): New function/macro.
39213         (main): Use it instead of 0.0 / 0.0.
39214         * tests/test-isnan.c (NaN): New function/macro.
39215         (main): Use it instead of 0.0 / 0.0.
39216         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39217         (test_function): Use it instead of 0.0 / 0.0.
39218         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39219         (test_function): Use it instead of 0.0 / 0.0.
39220         * tests/test-snprintf-posix.h (NaN): New function/macro.
39221         (test_function): Use it instead of 0.0 / 0.0.
39222         * tests/test-sprintf-posix.h (NaN): New function/macro.
39223         (test_function): Use it instead of 0.0 / 0.0.
39224         * tests/test-fprintf-posix.h (NaN): New function/macro.
39225         (test_function): Use it instead of 0.0 / 0.0.
39226         * tests/test-printf-posix.h (NaN): New function/macro.
39227         (test_function): Use it instead of 0.0 / 0.0.
39229         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39231 2007-03-25  Bruno Haible  <bruno@clisp.org>
39233         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39235 2007-03-25  Bruno Haible  <bruno@clisp.org>
39237         * lib/regexec.c (merge_state_with_log): Make static.
39239 2007-03-25  Bruno Haible  <bruno@clisp.org>
39241         * lib/trigl.c (kernel_rem_pio2): Make static.
39243 2007-03-25  Bruno Haible  <bruno@clisp.org>
39245         * lib/sincosl.c (sincosl_table): Make static.
39247 2007-03-25  Bruno Haible  <bruno@clisp.org>
39249         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39250         if the compiler does not support C99.
39252 2007-03-25  Bruno Haible  <bruno@clisp.org>
39254         * modules/time (Makefile.am): Ensure all rule action lines start with a
39255         tab.
39257 2007-03-24  Bruno Haible  <bruno@clisp.org>
39259         * modules/tsearch-tests: New file.
39260         * tests/test-tsearch.sh: New file.
39261         * tests/test-tsearch.c: New file, mostly copied from glibc.
39263         * modules/search-tests: New file.
39264         * tests/test-search.c: New file.
39266         * modules/search: New file.
39267         * lib/search_.h: New file, incorporating lib/tsearch.h.
39268         * m4/search_h.m4: New file.
39269         * lib/tsearch.h: Remove file.
39270         * lib/tsearch.c: Include search.h instead of tsearch.h.
39271         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39272         HAVE_TSEARCH.
39273         * modules/tsearch (Files): Remove lib/tsearch.h.
39274         (Depends-on): Add search.
39275         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39276         (Include): Change tsearch.h into search.h.
39278 2007-03-24  Bruno Haible  <bruno@clisp.org>
39280         * modules/fpucw: New file.
39281         * lib/fpucw.h: New file.
39282         * lib/frexp.c: Include fpucw.h.
39283         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39284         (FUNC): Use them.
39285         * lib/printf-frexp.c: Include fpucw.h.
39286         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39287         (FUNC): Use them.
39288         * lib/vasnprintf.c: Include fpucw.h.
39289         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39290         'long double' calculations.
39291         * tests/test-frexpl.c: Include fpucw.h.
39292         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39293         * tests/test-printf-frexpl.c: Include fpucw.h.
39294         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39295         * modules/frexpl (Depends-on): Add fpucw.
39296         * modules/printf-frexpl (Depends-on): Likewise.
39297         * modules/fprintf-posix (Depends-on): Likewise.
39298         * modules/snprintf-posix (Depends-on): Likewise.
39299         * modules/sprintf-posix (Depends-on): Likewise.
39300         * modules/vasnprintf-posix (Depends-on): Likewise.
39301         * modules/vasprintf-posix (Depends-on): Likewise.
39302         * modules/vfprintf-posix (Depends-on): Likewise.
39303         * modules/vsnprintf-posix (Depends-on): Likewise.
39304         * modules/vsprintf-posix (Depends-on): Likewise.
39305         * modules/frexpl-tests (Depends-on): Likewise.
39306         * modules/printf-frexpl-tests (Depends-on): Likewise.
39308 2007-03-24  Bruno Haible  <bruno@clisp.org>
39310         * lib/float+.h: New file.
39311         * lib/isnan.c: Include float+.h.
39312         (SIZE): New macro.
39313         (FUNC): Compare only SIZE bytes of the value.
39314         * lib/vasnprintf.c: Include float+.h.
39315         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
39316         SIZEOF_LDBL or SIZEOF_DBL bytes.
39317         * modules/isnan-nolibm (Files): Add lib/float+.h.
39318         * modules/isnanl-nolibm (Files): Add lib/float+.h.
39319         * modules/isnanl (Files): Add lib/float+.h.
39320         * modules/vasnprintf (Files): Add lib/float+.h.
39322 2007-03-24  Bruno Haible  <bruno@clisp.org>
39324         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
39325         include isnanl-nolibm.h.
39327 2007-03-24  Bruno Haible  <bruno@clisp.org>
39329         * tests/test-read-file.c (main): Don't produce spurious output for
39330         expected situations. Make the test fail if it encountered unexpected
39331         results.
39333 2007-03-24  Bruno Haible  <bruno@clisp.org>
39335         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
39336         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
39338 2007-03-24  Bruno Haible  <bruno@clisp.org>
39340         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
39342 2007-03-24  Bruno Haible  <bruno@clisp.org>
39344         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
39345         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
39347         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
39348         * modules/utf8-ucs4: Turn into a symbolic link to module
39349         unistr/u8-mbtouc.
39351         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
39352         utf8-ucs4-unsafe.
39353         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
39354         unistr/u8-mbtouc-unsafe.
39356         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
39357         * modules/utf16-ucs4: Turn into a symbolic link to module
39358         unistr/u16-mbtouc.
39360         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
39361         utf16-ucs4-unsafe.
39362         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
39363         unistr/u16-mbtouc-unsafe.
39365         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
39366         * modules/ucs4-utf8: Turn into a symbolic link to module
39367         unistr/u8-ubtomb.
39369         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
39370         * modules/ucs4-utf16: Turn into a symbolic link to module
39371         unistr/u16-ubtomb.
39373 2007-03-24  Bruno Haible  <bruno@clisp.org>
39375         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
39376         Enable the function only if HAVE_INLINE.
39377         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
39378         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39379         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
39380         Enable the function only if HAVE_INLINE.
39381         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
39382         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39383         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
39384         Enable the function only if HAVE_INLINE.
39385         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
39386         Enable the function only if HAVE_INLINE.
39387         * modules/utf8-ucs4: Update.
39388         * modules/utf8-ucs4-unsafe: Update.
39389         * modules/utf16-ucs4: Update.
39390         * modules/utf16-ucs4-unsafe: Update.
39391         * modules/ucs4-utf8: Update.
39392         * modules/ucs4-utf16: Update.
39394 2007-03-24  Bruno Haible  <bruno@clisp.org>
39396         * lib/utf8-ucs4.h: Remove file.
39397         * lib/utf8-ucs4-unsafe.h: Remove file.
39398         * lib/utf16-ucs4.h: Remove file.
39399         * lib/utf16-ucs4-unsafe.h: Remove file.
39400         * lib/ucs4-utf8.h: Remove file.
39401         * lib/ucs4-utf16.h: Remove file.
39402         * lib/unistr.h: Include their previous contents.
39403         * m4/utf-ucs4.m4: Remove file.
39404         * m4/ucs4-utf.m4: Remove file.
39405         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
39406         (Depends-on): Add unistr/base.
39407         (configure.ac): Remove gl_UTF_UCS4.
39408         (Makefile.am): Update.
39409         (Include): Change to unistr.h.
39410         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
39411         (Depends-on): Add unistr/base.
39412         (configure.ac): Remove gl_UTF_UCS4.
39413         (Makefile.am): Update.
39414         (Include): Change to unistr.h.
39415         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
39416         (Depends-on): Add unistr/base.
39417         (configure.ac): Remove gl_UTF_UCS4.
39418         (Makefile.am): Update.
39419         (Include): Change to unistr.h.
39420         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
39421         (Depends-on): Add unistr/base.
39422         (configure.ac): Remove gl_UTF_UCS4.
39423         (Makefile.am): Update.
39424         (Include): Change to unistr.h.
39425         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
39426         (Depends-on): Add unistr/base.
39427         (configure.ac): Remove gl_UCS4_UTF.
39428         (Makefile.am): Update.
39429         (Include): Change to unistr.h.
39430         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
39431         (Depends-on): Add unistr/base.
39432         (configure.ac): Remove gl_UCS4_UTF.
39433         (Makefile.am): Update.
39434         (Include): Change to unistr.h.
39435         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
39436         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
39437         utf8-ucs4-unsafe.h.
39438         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
39439         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
39440         utf16-ucs4-unsafe.h.
39441         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
39442         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
39443         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
39444         * lib/unistr/u8-strchr.c: Likewise.
39445         * lib/unistr/u8-strrchr.c: Likewise.
39446         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
39447         * lib/unistr/u16-strchr.c: Likewise.
39448         * lib/unistr/u16-strrchr.c: Likewise.
39449         * lib/striconveh.c: Update.
39450         * lib/linebreak.c: Update.
39452 2007-03-24  Bruno Haible  <bruno@clisp.org>
39454         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
39455         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
39457 2007-03-22  Bruno Haible  <bruno@clisp.org>
39459         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
39461 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39463         * MODULES.html.sh (File system functions): New module write-any-file.
39464         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
39465         * m4/write-any-file.m4: New files.
39467 2007-03-23  Eric Blake  <ebb9@byu.net>
39469         * gnulib-tool: Rearrange space-tab sequences, since some editors
39470         like to eat them.
39472 2007-03-23  Eric Blake  <ebb9@byu.net>
39474         * lib/version-etc.c (version_etc_va): Update license wording to
39475         be more concise.  Recommended by Richard Stallman.
39477 2007-03-22  Bruno Haible  <bruno@clisp.org>
39479         * lib/poll.c (MSG_PEEK): New fallback definition.
39481 2007-03-22  Bruno Haible  <bruno@clisp.org>
39483         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
39484         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
39485         (main): Update.
39486         Fixes a compilation error on BeOS.
39488 2007-03-22  Bruno Haible  <bruno@clisp.org>
39490         * modules/frexpl-tests: New file.
39491         * tests/test-frexpl.c: New file.
39493         * modules/frexpl: New file.
39494         * m4/frexpl.m4: New file.
39495         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
39496         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
39497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
39498         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
39499         (Depends-on): Add frexpl. Remove isnanl-nolibm.
39500         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
39502 2007-03-22  Bruno Haible  <bruno@clisp.org>
39504         * lib/frexpl.c: Share code with lib/frexp.c.
39505         * modules/mathl (Files): Add lib/frexp.c.
39506         (Depends-on): Add isnanl-nolibm.
39508 2007-03-22  Bruno Haible  <bruno@clisp.org>
39510         * modules/printf-frexp (Files): Add m4/frexp.m4.
39511         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
39512         only if the found frexp function actually works.
39514 2007-03-22  Bruno Haible  <bruno@clisp.org>
39516         * lib/frexp.c: Remove older implementation that uses divisions.
39518 2007-03-21  Bruno Haible  <bruno@clisp.org>
39520         * modules/frexp-tests: New file.
39521         * tests/test-frexp.c: New file.
39523         * modules/frexp: New file.
39524         * lib/frexp.c: New file.
39525         * m4/frexp.m4: New file.
39526         * lib/math_.h (frexp): New declaration.
39527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
39528         REPLACE_FREXP.
39529         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
39531 2007-03-21  Bruno Haible  <bruno@clisp.org>
39533         * modules/isnanl-tests: New file.
39534         * tests/test-isnanl.c: New file.
39536         * modules/isnanl: New file.
39537         * lib/isnanl.h: New file.
39538         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
39539         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
39540         gl_FUNC_ISNANL_WORKS.
39541         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
39542         New macros.
39544 2007-03-21  Bruno Haible  <bruno@clisp.org>
39546         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
39547         lib/isnanl.h.
39548         (Include): Update.
39549         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
39550         * lib/vasnprintf.c: Update.
39551         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
39552         tests/test-isnanl.h, remove tests/test-isnanl.c.
39553         (Makefile.am): Update.
39554         * tests/test-isnanl-nolibm.c: New file.
39555         * tests/test-isnanl.h: New file.
39556         * tests/test-isnanl.c: Remove file.
39558 2007-03-21  Jim Meyering  <jim@meyering.net>
39560         When trying to open ".", treat ESTALE like EACCES.
39561         * lib/savewd.c (savewd_save): Resort to forking not just upon
39562         failure with EACCES, but also when errno is ESTALE.
39564 2007-03-20  Bruno Haible  <bruno@clisp.org>
39566         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
39567         Needed on AIX 5.1. Reported by Matthew Woehlke.
39569 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39571         Suggestions by Bruno Haible:
39572         * lib/acl-internal.h: Include "gettext.h" rather than rolling
39573         our own.
39574         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
39575         * modules/acl (Depends-on): Add gettext.
39577 2007-03-19  Bruno Haible  <bruno@clisp.org>
39579         * modules/iconvme: Remove file.
39580         * lib/iconvme.h: Remove file.
39581         * lib/iconvme.c: Remove file.
39582         * m4/iconvme.m4: Remove file.
39584 2007-03-19  Bruno Haible  <bruno@clisp.org>
39586         * doc/relocatable-maint.texi: Break long shell script line.
39587         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39589 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39591         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
39592         handle file_has_acl.
39593         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
39594         * lib/acl.c: Move header inclusions and related macro defns into
39595         lib/acl-internal.h.
39596         (S_ISLNK): Remove defn, since that's now done for us.
39597         (file_has_acl): Move to lib/file-has-acl.c.
39598         Call acl_trivial if available.  This is the crucial part of the fix.
39599         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
39600         shared within the library.  Rewrite a bit, partly to make it compatible
39601         with the GNU coding style.
39602         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
39603         Remove unnecessary double-quotes.
39604         Don't test for acl_to_text; the build will catch that.
39605         Replace acl_entries if it doesn't exist and it is needed.
39606         Check for -lsec and acl_trivial (as used on Solaris 10).
39607         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
39608         lib/file-has-acl.c.
39609         (Depends-on): Add sys_stat, for S_ISLNK.
39611 2007-03-19  Ben Pfaff  <blp@gnu.org>
39613         * doc/gnulib.texi: Fix typos.
39614         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39616 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39618         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
39619         If size is zero here, buf must be zero.
39621 2007-03-19  Simon Josefsson  <simon@josefsson.org>
39623         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
39624         <bruno@clisp.org>.
39626 2007-03-18  Bruno Haible  <bruno@clisp.org>
39628         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
39629         Suggested by Eric Blake.
39631 2007-03-18  Ben Pfaff  <blp@gnu.org>
39633         * doc/relocatable.texi: Recommend using as prefix a directory
39634         that does not exist and will never be created.  Based on
39635         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
39636         and others.
39638 2007-03-17  Bruno Haible  <bruno@clisp.org>
39640         * lib/fchownat.c: Include lchown.h.
39642 2007-03-17  Bruno Haible  <bruno@clisp.org>
39644         Fix endless loop when the given allocated size was > INT_MAX.
39645         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
39646         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
39647         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
39648         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
39649         * lib/sprintf.c (sprintf): Likewise.
39651 2007-03-17  Bruno Haible  <bruno@clisp.org>
39653         * tests/test-argp-2.sh (func_compare): Output a context diff.
39655 2007-03-17  Bruno Haible  <bruno@clisp.org>
39657         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
39658         locale's decimal-point character.
39660 2007-03-17  Bruno Haible  <bruno@clisp.org>
39662         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
39663         before comparing it. Needed because on some platforms (e.g. x86) a
39664         'long double' occupies less bytes than sizeof (long double).
39666 2007-03-17  Bruno Haible  <bruno@clisp.org>
39668         * tests/test-crc.c (main): Make printf statements 64-bit clean.
39669         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
39670         * tests/test-getaddrinfo.c (simple): Likewise.
39671         * tests/test-read-file.c (main): Likewise.
39673 2007-03-17  Bruno Haible  <bruno@clisp.org>
39675         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
39677 2007-03-17  Bruno Haible  <bruno@clisp.org>
39679         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
39680         unused variable.
39682 2007-03-17  Bruno Haible  <bruno@clisp.org>
39684         * tests/test-c-strcasecmp.c: Include c-strcase.h.
39685         * tests/test-c-strncasecmp.c: Likewise.
39687 2007-03-17  Bruno Haible  <bruno@clisp.org>
39689         * modules/stdlib (Depends-on): Add unistd.
39690         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
39691         Needed for MacOS X 10.3.
39693 2007-03-17  Bruno Haible  <bruno@clisp.org>
39695         * lib/unistr/u-strdup.h: Include <stdlib.h>.
39697 2007-03-17  Bruno Haible  <bruno@clisp.org>
39699         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
39701 2007-03-17  Bruno Haible  <bruno@clisp.org>
39703         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
39704         to reflect files copied from gnulib (with or without modifications).
39705         Suggested by Jim Meyering.
39707 2007-03-17  Eric Blake  <ebb9@byu.net>
39709         * NEWS: Document stdlib change from 2007-02-18.
39711 2007-03-17  Jim Meyering  <jim@meyering.net>
39713         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
39714         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
39715         someone uses a name containing shell meta-characters.
39716         Reported by Alfred M. Szmidt.
39718         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
39720 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
39722         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
39723         and copy gettext configuration files only if configure.ac contains
39724         a use of AM_GNU_GETTEXT_VERSION.
39726 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
39728         * build-aux/bootstrap (gnulib_name): New variable.
39729         (gnulib_tool_options): Use it.
39731 2007-03-13  Simon Josefsson  <simon@josefsson.org>
39733         * tests/test-des.c: Use new namespace.
39735 2007-03-15  Bruno Haible  <bruno@clisp.org>
39737         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
39738         Reported by James Youngman <jay@gnu.org>.
39740 2007-03-15  Bruno Haible  <bruno@clisp.org>
39742         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
39743         declared prototype. Needed with cc on OSF/1 5.1.
39745 2007-03-15  Bruno Haible  <bruno@clisp.org>
39747         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
39748         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
39749         (struct gl_list_implementation): Add dispose_fn argument to the
39750         'create_empty', 'create' methods.
39751         (struct gl_list_impl_base): Add field 'dispose_fn'.
39752         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
39753         argument.
39754         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
39755         dispose_fn argument.
39756         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
39757         dispose_fn on the dropped values.
39758         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
39759         dispose_fn argument.
39760         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
39761         dropped values.
39762         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
39763         (gl_tree_remove_node): Call dispose_fn on the dropped value.
39764         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
39765         (gl_tree_remove_node): Call dispose_fn on the dropped value.
39766         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
39767         argument.
39768         (gl_tree_list_free): Call dispose_fn on the dropped values.
39769         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
39770         the dropped values.
39771         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39772         Add dispose_fn argument.
39773         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
39774         Call dispose_fn on the dropped values.
39775         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
39776         Add dispose_fn argument.
39777         (gl_sublist_create): Initialize the 'dispose_fn' field.
39778         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
39779         * tests/test-array_list.c (main): Update.
39780         * tests/test-carray_list.c (main): Update.
39781         * tests/test-avltree_list.c (main): Update.
39782         * tests/test-rbtree_list.c (main): Update.
39783         * tests/test-avltreehash_list.c (main): Update.
39784         * tests/test-rbtreehash_list.c (main): Update.
39785         * tests/test-linked_list.c (main): Update.
39786         * tests/test-linkedhash_list.c (main): Update.
39787         * tests/test-array_oset.c (main): Update.
39789 2007-03-15  Bruno Haible  <bruno@clisp.org>
39791         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
39792         (gl_oset_create_empty): Add dispose_fn argument.
39793         (struct gl_oset_implementation): Add dispose_fn argument to
39794         'create_empty' method.
39795         (struct gl_oset_impl_base): Add dispose_fn field.
39796         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
39797         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
39798         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
39799         values.
39800         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
39801         (gl_tree_oset_free): Call dispose_fn on the dropped values.
39802         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
39803         dropped value.
39804         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
39805         dropped value.
39806         * tests/test-array_oset.c (main): Update.
39807         * tests/test-avltree_oset.c (main): Update.
39808         * tests/test-rbtree_oset.c (main): Update.
39809         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
39811 2007-03-13  Bruno Haible  <bruno@clisp.org>
39813         * tests/test-stdbool.c (i): Update after last patch.
39815 2007-03-12  Bruno Haible  <bruno@clisp.org>
39817         * lib/quotearg.c: Include <wctype.h> early, before the definition of
39818         the iswprint macro. Needed on Solaris 2.5.1.
39820 2007-03-12  Bruno Haible  <bruno@clisp.org>
39822         * tests/test-printf-frexp.c (main): Declare x as volatile.
39824 2007-03-12  Simon Josefsson  <simon@josefsson.org>
39826         * doc/gnulib.texi (Build robot for gnulib): New section.
39828 2007-03-12  Jim Meyering  <jim@meyering.net>
39830         * build-aux/bootstrap: New file.
39831         * build-aux/bootstrap.conf: New file, from coreutils.
39833 2007-03-11  Bruno Haible  <bruno@clisp.org>
39835         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
39837 2007-03-12  Simon Josefsson  <simon@josefsson.org>
39839         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
39840         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
39841         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
39843 2007-03-11  Bruno Haible  <bruno@clisp.org>
39845         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
39846         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
39848 2007-03-11  Bruno Haible  <bruno@clisp.org>
39850         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
39851         formula. Needed for SunPRO C 5.0.
39853 2007-03-11  Bruno Haible  <bruno@clisp.org>
39855         * modules/long-options (Depends-on): Add getopt.
39857 2007-03-11  Bruno Haible  <bruno@clisp.org>
39859         * modules/modechange (Depends-on): Add stdbool.
39861 2007-03-11  Bruno Haible  <bruno@clisp.org>
39863         * modules/i-ring (Depends-on): Add stdbool.
39865 2007-03-11  Bruno Haible  <bruno@clisp.org>
39867         * modules/gc-des (Depends-on): Add stdbool.
39869 2007-03-11  Bruno Haible  <bruno@clisp.org>
39871         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
39873 2007-03-11  Bruno Haible  <bruno@clisp.org>
39875         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
39877 2007-03-11  Bruno Haible  <bruno@clisp.org>
39879         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
39881 2007-03-11  Bruno Haible  <bruno@clisp.org>
39883         * lib/vasnprintf.c (sprintf): Undefine.
39885 2007-03-11  Bruno Haible  <bruno@clisp.org>
39887         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
39888         initializers in SunPRO C and Compaq C compilers.
39890 2007-03-11  Bruno Haible  <bruno@clisp.org>
39892         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
39893         decrementing code ANSI C compliant.
39895 2007-03-11  Bruno Haible  <bruno@clisp.org>
39897         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
39898         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
39900 2007-03-11  Bruno Haible  <bruno@clisp.org>
39902         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
39903         <stdbool.h> substitute doesn't pass.
39905 2007-03-11  Bruno Haible  <bruno@clisp.org>
39907         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
39909 2007-03-11  Bruno Haible  <bruno@clisp.org>
39911         * gnulib-tool (func_create_megatestdir): Create also an autobuild
39912         script, for submission to autobuild.josefsson.org.
39914 2007-03-10  Bruno Haible  <bruno@clisp.org>
39916         * modules/canonicalize-lgpl-tests: New file.
39917         * tests/test-canonicalize-lgpl.sh: New file.
39918         * tests/test-canonicalize-lgpl.c: New file.
39920         * modules/c-strcase-tests: New file.
39921         * tests/test-c-strcase.sh: New file.
39922         * tests/test-c-strcasecmp.c: New file.
39923         * tests/test-c-strncasecmp.c: New file.
39925         * modules/atexit-tests: New file.
39926         * tests/test-atexit.sh: New file.
39927         * tests/test-atexit.c: New file.
39929 2007-03-10  Bruno Haible  <bruno@clisp.org>
39931         * tests/test-binary-io.sh: Use temporary filenames that are not so
39932         likely to clash with those of other tests (in a parallel make).
39933         * tests/test-binary-io.c: Likewise.
39935 2007-03-10  Bruno Haible  <bruno@clisp.org>
39937         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
39938         fallback; use #error instead.
39939         Suggested by Simon Josefsson.
39941 2007-03-10  Bruno Haible  <bruno@clisp.org>
39943         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
39944         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
39945         first and the last.
39947 2007-03-10  Bruno Haible  <bruno@clisp.org>
39949         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
39951 2007-03-10  Bruno Haible  <bruno@clisp.org>
39953         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
39954         "make distcheck".
39955         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
39956         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
39957         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
39959 2007-03-10  Bruno Haible  <bruno@clisp.org>
39961         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
39962         variable.
39963         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
39964         variable.
39966 2007-03-09  Eric Blake  <ebb9@byu.net>
39967         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
39969         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
39970         types are not being provided by gnulib.
39971         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
39972         types are supported.
39974 2007-03-10  Bruno Haible  <bruno@clisp.org>
39976         * lib/stdio_.h (__attribute__): New macro.
39977         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
39978         vsprintf): Specify __attribute__ __format__ for GCC.
39979         Suggested by Eric Blake.
39981 2007-03-09  Bruno Haible  <bruno@clisp.org>
39983         * modules/printf-posix-tests: New file.
39984         * tests/test-printf-posix.sh: New file.
39985         * tests/test-printf-posix.c: New file.
39987         * modules/printf-posix: New file.
39988         * lib/printf.c: New file.
39989         * m4/printf-posix-rpl.m4: New file.
39990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
39991         REPLACE_PRINTF.
39992         * lib/stdio_.h (printf): New declaration.
39993         (format, __format__, ____printf____, ____scanf____, ____strftime____,
39994         ____strfmon____): New macros.
39995         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
39996         REPLACE_PRINTF.
39998 2007-03-09  Bruno Haible  <bruno@clisp.org>
40000         * tests/test-vasnprintf-posix2.sh: New file.
40001         * tests/test-vasnprintf-posix2.c: New file.
40002         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40003         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40004         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40006         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40007         a locale dependent decimal point, rather than always '.'.
40009 2007-03-09  Eric Blake  <ebb9@byu.net>
40011         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40012         spite of platforms like Tandem/NSK that define it to -1.
40014 2007-03-08  Bruno Haible  <bruno@clisp.org>
40016         * modules/vprintf-posix-tests: New file.
40017         * tests/test-vprintf-posix.sh: New file.
40018         * tests/test-vprintf-posix.c: New file.
40019         * tests/test-printf-posix.h: New file.
40021         * modules/vprintf-posix: New file.
40022         * lib/vprintf.c: New file.
40023         * m4/vprintf-posix.m4: New file.
40024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40025         REPLACE_VPRINTF.
40026         * lib/stdio_.h (vprintf): New declaration.
40027         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40028         REPLACE_VPRINTF.
40030 2007-03-08  Bruno Haible  <bruno@clisp.org>
40032         * modules/fprintf-posix-tests: New file.
40033         * tests/test-fprintf-posix.sh: New file.
40034         * tests/test-fprintf-posix.c: New file.
40036         * modules/fprintf-posix: New file.
40037         * lib/fprintf.c: New file.
40038         * m4/fprintf-posix.m4: New file.
40039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40040         REPLACE_FPRINTF.
40041         * lib/stdio_.h (fprintf): New declaration.
40042         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40043         REPLACE_FPRINTF.
40045 2007-03-08  Bruno Haible  <bruno@clisp.org>
40047         * modules/vfprintf-posix-tests: New file.
40048         * tests/test-vfprintf-posix.sh: New file.
40049         * tests/test-vfprintf-posix.c: New file.
40050         * tests/test-fprintf-posix.h: New file.
40051         * tests/test-fprintf-posix.out: New file.
40053         * modules/vfprintf-posix: New file.
40054         * lib/vfprintf.c: New file.
40055         * m4/vfprintf-posix.m4: New file.
40056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40057         REPLACE_VFPRINTF.
40058         * lib/stdio_.h (vfprintf): New declaration.
40059         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40060         REPLACE_VFPRINTF.
40062 2007-03-08  Bruno Haible  <bruno@clisp.org>
40064         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40066 2007-03-08  Bruno Haible  <bruno@clisp.org>
40068         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40069         instead of 'expr' invocations.
40070         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40071         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40072         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40075         Suggested by Paul Eggert.
40077 2007-03-08  Bruno Haible  <bruno@clisp.org>
40079         * modules/fseterr-tests: New file.
40080         * tests/test-fseterr.c: New file.
40082         * modules/fseterr: New file.
40083         * lib/fseterr.h: New file.
40084         * lib/fseterr.c: New file.
40086 2007-03-08  Bruno Haible  <bruno@clisp.org>
40088         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40089         * lib/getopt_.h: Likewise.
40090         * lib/mbswidth.h: Likewise.
40091         * lib/setenv.h: Likewise.
40092         * lib/vasnprintf.h: Likewise.
40093         * lib/vasprintf.h: Likewise.
40094         * lib/verror.h: Likewise.
40095         * lib/xsetenv.h: Likewise.
40096         * lib/xvasprintf.h: Likewise.
40098 2007-03-08  Jim Meyering  <jim@meyering.net>
40100         * users.txt: Add parted.
40102         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40104 2007-03-07  Bruno Haible  <bruno@clisp.org>
40106         * m4/printf.m4: Make the shell script snippets copy&pastable.
40108 2007-03-02  Bruno Haible  <bruno@clisp.org>
40110         * lib/netinet_in_.h: New file.
40111         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40112         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40113         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40114         (Depends-on): Add absolute-header.
40115         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40116         into netinet/in.h.
40118 2007-03-03  Bruno Haible  <bruno@clisp.org>
40120         * lib/sys_select_.h: New file.
40121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40122         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40123         * modules/sys_select (Files): Add lib/sys_select_.h.
40124         (Depends-on): Add absolute-header.
40125         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40126         into sys/select.h.
40128 2007-03-02  Bruno Haible  <bruno@clisp.org>
40130         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40131         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40132         values.
40133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40134         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40135         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40136         * modules/sys_socket (Depends-on): Add absolute-header.
40137         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40138         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40139         (Include): Remove requirement of inclusion of <sys/types.h>.
40141 2007-03-02  Bruno Haible  <bruno@clisp.org>
40143         * lib/byteswap_.h (bswap_32): Fix formula.
40145 2007-03-06  Bruno Haible  <bruno@clisp.org>
40147         * modules/sprintf-posix-tests: New file.
40148         * tests/test-sprintf-posix.c: New file.
40150         * modules/sprintf-posix: New file.
40151         * lib/sprintf.c: New file.
40152         * m4/sprintf-posix.m4: New file.
40153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40154         REPLACE_SPRINTF.
40155         * lib/stdio_.h (sprintf): New declaration.
40156         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40157         REPLACE_SPRINTF.
40159 2007-03-06  Bruno Haible  <bruno@clisp.org>
40161         * modules/vsprintf-posix-tests: New file.
40162         * tests/test-vsprintf-posix.c: New file.
40163         * tests/test-sprintf-posix.h: New file.
40165         * modules/vsprintf-posix: New file.
40166         * lib/vsprintf.c: New file.
40167         * m4/vsprintf-posix.m4: New file.
40168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40169         REPLACE_VSPRINTF.
40170         * lib/stdio_.h (vsprintf): New declaration.
40171         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40172         REPLACE_VSPRINTF.
40174 2007-03-06  Bruno Haible  <bruno@clisp.org>
40176         * modules/vsnprintf (Depend-on): Remove minmax.
40178 2007-03-06  Bruno Haible  <bruno@clisp.org>
40180         * modules/snprintf-posix-tests: New file.
40181         * tests/test-snprintf-posix.c: New file.
40183         * modules/snprintf-posix: New file.
40184         * m4/snprintf-posix.m4: New file.
40185         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40186         gl_FUNC_SNPRINTF.
40187         (gl_FUNC_SNPRINTF): Invoke it.
40188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40189         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40190         is set.
40191         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40193 2007-03-06  Bruno Haible  <bruno@clisp.org>
40195         * modules/vsnprintf-posix-tests: New file.
40196         * tests/test-vsnprintf-posix.c: New file.
40197         * tests/test-snprintf-posix.h: New file.
40199         * modules/vsnprintf-posix: New file.
40200         * m4/vsnprintf-posix.m4: New file.
40201         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40202         gl_FUNC_VSNPRINTF.
40203         (gl_FUNC_VSNPRINTF): Invoke it.
40204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40205         * lib/stdio_.h (vsnprintf): Define as a replacement if
40206         REPLACE_VSNPRINTF is set.
40207         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40209 2007-03-06  Bruno Haible  <bruno@clisp.org>
40211         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40212         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40214 2007-03-06  Bruno Haible  <bruno@clisp.org>
40216         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40217         (asinl): Declare also if HAVE_DECL_ASINL is set.
40218         (atanl): Declare also if HAVE_DECL_ATANL is set.
40219         (ceill): Declare also if HAVE_DECL_CEILL is set.
40220         (cosl): Declare also if HAVE_DECL_COSL is set.
40221         (expl): Declare also if HAVE_DECL_EXPL is set.
40222         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40223         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40224         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40225         (logl): Declare also if HAVE_DECL_LOGL is set.
40226         (sinl): Declare also if HAVE_DECL_SINL is set.
40227         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40228         (tanl): Declare also if HAVE_DECL_TANL is set.
40229         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40231         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40232         declaration of frexpl, ldexpl.
40233         * modules/printf-frexpl (Depends-on): Add math.
40234         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40236 2007-03-05  Bruno Haible  <bruno@clisp.org>
40238         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40239         frexpl and ldexpl are declared.
40240         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40242 2007-03-05  Bruno Haible  <bruno@clisp.org>
40244         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40245         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40247 2007-03-05  Bruno Haible  <bruno@clisp.org>
40249         * lib/stdio_.h: Include <stddef.h>.
40251 2007-03-05  Bruno Haible  <bruno@clisp.org>
40253         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40255 2007-03-05  Bruno Haible  <bruno@clisp.org>
40257         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40258         NetBSD 4, from Ralf Wildenhues.
40260 2007-03-04  Bruno Haible  <bruno@clisp.org>
40262         * lib/vasprintf.h: Update #if logic for the case when the functions
40263         exist but are overridden.
40265 2007-03-04  Bruno Haible  <bruno@clisp.org>
40267         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40268         implementations: glibc-2.4 and MacOS X 10.3.
40269         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40270         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40271         * tests/test-vasprintf-posix.c (test_function): Likewise.
40273 2007-03-04  Bruno Haible  <bruno@clisp.org>
40275         * modules/vasprintf-posix-tests: New file.
40276         * tests/test-vasprintf-posix.c: New file.
40278         * modules/vasprintf-posix: New file.
40279         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40280         defined.
40281         * m4/vasprintf-posix.m4: New file.
40282         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40283         gl_FUNC_VASPRINTF.
40284         (gl_FUNC_VASPRINTF): Invoke it.
40285         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40286         here.
40287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40289 2007-03-04  Bruno Haible  <bruno@clisp.org>
40291         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40292         REPLACE_GETTIMEOFDAY.
40293         * modules/sys_time (Makefile.am): Likewise.
40294         * m4/sys_time_h.m4: Likewise.
40295         * m4/gettimeofday.m4: Likewise.
40297 2007-03-04  Bruno Haible  <bruno@clisp.org>
40299         * modules/vasnprintf-posix-tests: New file.
40300         * tests/test-vasnprintf-posix.c: New file.
40302         * modules/vasnprintf-posix: New file.
40303         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40304         printf-frexpl.h.
40305         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
40306         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
40307         REPLACE_VASNPRINTF is defined.
40308         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
40309         gl_FUNC_VASNPRINTF.
40310         (gl_FUNC_VASNPRINTF): Invoke it.
40311         * m4/vasnprintf-posix.m4: New file.
40312         * m4/printf.m4: New file.
40314 2007-03-04  Bruno Haible  <bruno@clisp.org>
40316         Compile progreloc.c only if --enable-relocatable is specified.
40317         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
40318         if --enable-relocatable was specified.
40319         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
40320         lib_SOURCES.
40322 2007-03-04  Jim Meyering  <jim@meyering.net>
40324         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
40325         Use it consistently, rather than enumerating errno constants.
40327 2007-03-04  Bruno Haible  <bruno@clisp.org>
40329         * modules/xvasprintf-tests: New file.
40330         * tests/test-xvasprintf.c: New file.
40332         * modules/vasprintf-tests: New file.
40333         * tests/test-vasprintf.c: New file.
40335         * modules/vasnprintf-tests: New file.
40336         * tests/test-vasnprintf.c: New file.
40338         * modules/vsnprintf-tests: New file.
40339         * tests/test-vsnprintf.c: New file.
40341         * modules/snprintf-tests: New file.
40342         * tests/test-snprintf.c: New file.
40344 2007-03-04  Bruno Haible  <bruno@clisp.org>
40346         Compile relocatable.c only if --enable-relocatable is specified.
40347         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
40348         gl_RELOCATABLE_LIBRARY.
40349         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
40350         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
40351         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
40352         gl_RELOCATABLE_LIBRARY.
40353         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
40354         (Makefile.am): Remove lib_SOURCES.
40355         * modules/relocatable-lib-lgpl (configure.ac): Invoke
40356         gl_RELOCATABLE_LIBRARY.
40357         (Makefile.am): Remove lib_SOURCES.
40358         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
40359         always.
40360         * modules/relocatable-prog-wrapper (configure.ac): Invoke
40361         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
40363 2007-03-04  Bruno Haible  <bruno@clisp.org>
40365         * modules/argmatch-tests: New file.
40366         * tests/test-argmatch.c: New file.
40368         * tests/test-allocsa.c (main): Halve the number of loop runs.
40370         * modules/alloca-opt-tests: New file.
40371         * tests/test-alloca-opt.c: New file.
40373 2007-03-04  Jim Meyering  <jim@meyering.net>
40375         Work around difference between Linux ACLs and Solaris 10 ZFS.
40376         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
40377         for EINVAL.
40379 2007-03-03  Bruno Haible  <bruno@clisp.org>
40381         * modules/relocatable-prog (Depends-on): Add back progreloc's
40382         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
40384 2007-03-03  Bruno Haible  <bruno@clisp.org>
40386         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
40387         * modules/relocatable-lib: New file.
40389 2007-03-03  Bruno Haible  <bruno@clisp.org>
40391         * modules/relocatable-prog: Renamed from modules/relocatable.
40392         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
40394 2007-03-03  Bruno Haible  <bruno@clisp.org>
40396         * modules/relocatable-script (Files): Add doc/relocatable.texi,
40397         m4/relocatable-lib.m4.
40398         (Depends-on): Remove 'relocatable'.
40399         (configure.ac): Add gl_RELOCATABLE_NOP.
40401 2007-03-03  Bruno Haible  <bruno@clisp.org>
40403         * modules/relocatable-prog-wrapper: New file.
40404         * modules/relocatable (Depends-on): Add it. Remove all other
40405         dependencies except progname.
40406         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
40408         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
40409         (gl_FUNC_STRERROR): Nop.
40410         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
40412         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
40413         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
40415         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
40416         (gl_FUNC_READLINK): Update.
40418         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
40420 2007-03-03  Bruno Haible  <bruno@clisp.org>
40422         * lib/xreadlink.c: Include <unistd.h> unconditionally.
40423         * modules/xreadlink (Depends-on): Add unistd.
40424         * modules/xreadlink-with-size (Depends-on): Likewise.
40426 2007-03-03  Bruno Haible  <bruno@clisp.org>
40428         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
40429         extracted from gt_FUNC_SETENV.
40430         (gt_FUNC_SETENV): Remove macro.
40431         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
40432         remove gt_FUNC_SETENV.
40434 2007-03-03  Bruno Haible  <bruno@clisp.org>
40436         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
40437         ENABLE_RELOCATABLE here.
40438         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
40440 2007-03-03  Bruno Haible  <bruno@clisp.org>
40442         * modules/rbtreehash-list-tests (Depends-on): Add progname.
40443         * tests/test-rbtreehash_list.c: Include progname.h.
40444         (main): Call set_program_name.
40446         * modules/rbtree-oset-tests (Depends-on): Add progname.
40447         * tests/test-rbtree_oset.c: Include progname.h.
40448         (main): Call set_program_name.
40450         * modules/rbtree-list-tests (Depends-on): Add progname.
40451         * tests/test-rbtree_list.c: Include progname.h.
40452         (main): Call set_program_name.
40454         * modules/linked-list-tests (Depends-on): Add progname.
40455         * tests/test-linked_list.c: Include progname.h.
40456         (main): Call set_program_name.
40458 2007-03-03  Bruno Haible  <bruno@clisp.org>
40460         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
40461         All uses of __restrict changed to _Restrict_.
40462         * lib/glob_.h (__restrict): Remove macro.
40464 2007-03-02  Bruno Haible  <bruno@clisp.org>
40466         * modules/gettext (configure.ac): Require gettext infrastructure
40467         from version 0.16.1.
40469 2007-03-02  Bruno Haible  <bruno@clisp.org>
40471         * modules/linkedhash-list-tests (Depends-on): Add progname.
40472         * tests/test-linkedhash_list.c: Include progname.h.
40473         (main): Call set_program_name.
40475         * modules/carray-list-tests (Depends-on): Add progname.
40476         * tests/test-carray_list.c: Include progname.h.
40477         (main): Call set_program_name.
40479         * modules/avltreehash-list-tests (Depends-on): Add progname.
40480         * tests/test-avltreehash_list.c: Include progname.h.
40481         (main): Call set_program_name.
40483         * modules/avltree-oset-tests (Depends-on): Add progname.
40484         * tests/test-avltree_oset.c: Include progname.h.
40485         (main): Call set_program_name.
40487         * modules/avltree-list-tests (Depends-on): Add progname.
40488         * tests/test-avltree_list.c: Include progname.h.
40489         (main): Call set_program_name.
40491         * modules/array-oset-tests (Depends-on): Add progname.
40492         * tests/test-array_oset.c: Include progname.h.
40493         (main): Call set_program_name.
40495         * modules/array-list-tests (Depends-on): Add progname.
40496         * tests/test-array_list.c: Include progname.h.
40497         (main): Call set_program_name.
40499         * modules/argp-tests (Depends-on): Add progname.
40500         * tests/test-argp.c: Include argp.h first. Include progname.h.
40501         (main): Call set_program_name.
40503 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
40505         * doc/gnulib-tool.texi (Initial import): Reword description of
40506         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
40507         limited effect even if defined after the first system include.
40509 2007-03-01  Bruno Haible  <bruno@clisp.org>
40511         * build-aux/config.libpath: Update to libtool-1.5.22.
40512         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40514 2007-03-01  Bruno Haible  <bruno@clisp.org>
40516         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
40517         foo_CFLAGS.
40518         Reported by Ralf Wildenhues.
40520 2007-03-01  Bruno Haible  <bruno@clisp.org>
40522         * build-aux/install-reloc: Remove object files left over by some
40523         compilers.
40524         Reported by Ralf Wildenhues.
40526 2007-03-01  Bruno Haible  <bruno@clisp.org>
40528         * build-aux/install-reloc: Break long lines.
40530 2007-03-01  Bruno Haible  <bruno@clisp.org>
40532         * doc/relocatable.texi: Document that it may not work on OpenBSD.
40533         Reported by Ralf Wildenhues.
40535 2007-03-01  Bruno Haible  <bruno@clisp.org>
40537         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
40538         include ordering constraints.
40540 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40542         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
40543         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
40544         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
40545         as another example.
40546         * lib/time_.h: Fix misspelling.
40547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40548         Require gl_HEADER_TIME_H_DEFAULTS.
40549         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
40550         * m4/time_r.m4 (gl_TIME_R): Likewise.
40551         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
40553 2007-03-01  Bruno Haible  <bruno@clisp.org>
40555         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
40556         * m4/utimens.m4 (gl_UTIMENS): Likewise.
40558 2007-03-01  Jim Meyering  <jim@meyering.net>
40560         * modules/xreadlink (Maintainer): Add my name.
40561         * modules/xreadlink-with-size (Depends-on): Alphabetize.
40563 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
40564             Bruno Haible  <bruno@clisp.org>
40566         * build-aux/install-reloc: Compile also c-ctype.c.
40567         * build-aux/relocatable.sh.in: New file.
40568         * doc/relocatable.texi: New file.
40569         * doc/relocatable-maint.texi: New file.
40570         * doc/gnulib.texi: Include relocatable-maint.texi.
40571         * lib/progreloc.c: Include unistd.h unconditionally.
40572         * lib/relocwrapper.c: Include unistd.h unconditionally.
40573         Include c-ctype.h.
40574         (add_dotbin): Use c_tolower.
40575         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
40576         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
40577         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
40578         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
40579         to m4/relocatable-lib.m4.
40580         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
40581         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
40582         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
40583         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
40584         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
40585         * modules/relocatable: New file.
40586         * modules/relocatable-lib: New file.
40587         * modules/relocatable-script: New file.
40589 2007-02-28  Bruno Haible  <bruno@clisp.org>
40591         Import --enable-relocatable infrastructure.
40592         * build-aux/config.libpath: New file, from GNU gettext.
40593         * build-aux/install-reloc: New file, from GNU gettext.
40594         * build-aux/reloc-ldflags: New file, from GNU gettext.
40595         * lib/relocatable.h: New file, from GNU gettext.
40596         * lib/relocatable.c: New file, from GNU gettext.
40597         * lib/relocwrapper.c: New file, from GNU gettext.
40598         * m4/relocatable.m4: New file, from GNU gettext.
40600 2007-02-28  Bruno Haible  <bruno@clisp.org>
40602         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
40604         * modules/xreadlink: New file, from GNU gettext with modifications.
40605         * lib/xreadlink.c: New file, from GNU gettext.
40606         * lib/xreadlink.h: Add comments.
40607         (xreadlink): New declaration.
40609         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
40610         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
40611         lib/xreadlink-with-size.c.
40612         (configure.ac): Remove gl_XREADLINK invocation.
40613         (Makefile.am): Augment lib_SOURCES.
40614         * m4/xreadlink.m4: Remove file.
40615         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
40616         (xreadlink_with_size): Renamed from xreadink.
40617         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
40618         * modules/canonicalize (Depends-on): Replace xreadlink with
40619         xreadlink-with-size.
40620         * lib/canonicalize.c (canonicalize_filename_mode): Update.
40622 2007-02-25  Jim Meyering  <jim@meyering.net>
40624         * build-aux/announce-gen: When complaining about excess arguments,
40625         list them.
40627 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40629         * README: Document signed integer overflow situation more
40630         accurately.
40632 2007-02-25  Bruno Haible  <bruno@clisp.org>
40634         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
40635         'a' or 'A' conversion.
40637 2007-02-25  Bruno Haible  <bruno@clisp.org>
40639         * modules/filename: Renamed from modules/pathname.
40640         (Files): Replace lib/pathname.h with lib/filename.h. Replace
40641         lib/concatpath.c with lib/concat-filename.c.
40642         (Makefile.am): Update.
40643         (Include): Replace pathname.h with filename.h.
40644         * lib/filename.h: Renamed from lib/pathname.h.
40645         (concatenated_filename): Renamed from concatenated_pathname.
40646         * lib/concat-filename.c: Renamed from lib/concatpath.c.
40647         (concatenated_filename): Renamed from concatenated_pathname.
40648         * lib/findprog.c: Include filename.h instead of pathname.h.
40649         (find_in_path): Update.
40650         * lib/javacomp.c: Include filename.h instead of pathname.h.
40651         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40652         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40653         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40654         is_oldgcj_14_13_usable, is_javac_usable): Update.
40655         * lib/javaexec.c: Include filename.h instead of pathname.h.
40656         (execute_java_class): Update.
40657         * modules/findprog: Update.
40658         * modules/javacomp: Update.
40659         * modules/javaexec: Update.
40660         * MODULES.html.sh (File system functions): Add 'filename', remove
40661         'pathname'.
40663 2007-02-25  Bruno Haible  <bruno@clisp.org>
40665         * modules/printf-frexpl-tests: New file.
40666         * tests/test-printf-frexpl.c: New file.
40668         * modules/printf-frexpl: New file.
40669         * lib/printf-frexpl.h: New file.
40670         * lib/printf-frexpl.c: New file.
40671         * m4/printf-frexpl.m4: New file.
40673 2007-02-25  Bruno Haible  <bruno@clisp.org>
40675         * modules/printf-frexp-tests: New file.
40676         * tests/test-printf-frexp.c: New file.
40678         * modules/printf-frexp: New file.
40679         * lib/printf-frexp.h: New file.
40680         * lib/printf-frexp.c: New file.
40681         * m4/printf-frexp.m4: New file.
40683 2007-02-25  Bruno Haible  <bruno@clisp.org>
40685         Assume automake >= 1.10 for the tests.
40686         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
40687         * modules/arctwo-tests: Likewise.
40688         * modules/argp-tests: Likewise.
40689         * modules/avltree-list-tests: Likewise.
40690         * modules/avltree-oset-tests: Likewise.
40691         * modules/avltreehash-list-tests: Likewise.
40692         * modules/carray-list-tests: Likewise.
40693         * modules/crc-tests: Likewise.
40694         * modules/des-tests: Likewise.
40695         * modules/gc-arcfour-tests: Likewise.
40696         * modules/gc-arctwo-tests: Likewise.
40697         * modules/gc-des-tests: Likewise.
40698         * modules/gc-hmac-md5-tests: Likewise.
40699         * modules/gc-hmac-sha1-tests: Likewise.
40700         * modules/gc-md2-tests: Likewise.
40701         * modules/gc-md4-tests: Likewise.
40702         * modules/gc-md5-tests: Likewise.
40703         * modules/gc-pbkdf2-sha1-tests: Likewise.
40704         * modules/gc-rijndael-tests: Likewise.
40705         * modules/gc-sha1-tests: Likewise.
40706         * modules/gc-tests: Likewise.
40707         * modules/getaddrinfo-tests: Likewise.
40708         * modules/hmac-md5-tests: Likewise.
40709         * modules/hmac-sha1-tests: Likewise.
40710         * modules/linked-list-tests: Likewise.
40711         * modules/linkedhash-list-tests: Likewise.
40712         * modules/lock-tests: Likewise.
40713         * modules/md2-tests: Likewise.
40714         * modules/md4-tests: Likewise.
40715         * modules/md5-tests: Likewise.
40716         * modules/rbtree-list-tests: Likewise.
40717         * modules/rbtree-oset-tests: Likewise.
40718         * modules/rbtreehash-list-tests: Likewise.
40719         * modules/read-file-tests: Likewise.
40720         * modules/rijndael-tests: Likewise.
40721         * modules/stdint-tests: Likewise.
40722         * modules/tls-tests: Likewise.
40724 2007-02-24  Bruno Haible  <bruno@clisp.org>
40726         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
40727         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
40728         function; instead check whether isnan with a double argument links.
40729         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
40730         function; instead check whether isnan with a 'long double' argument
40731         links.
40732         Reported by Eric Blake <ebb9@byu.net>.
40734 2007-02-24  Bruno Haible  <bruno@clisp.org>
40736         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
40737         defined.
40738         * lib/isnanl.c: Remove all code. Just include isnan.c.
40739         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
40741 2007-02-25  Jim Meyering  <jim@meyering.net>
40743         Avoid conflicting types for 'unsetenv' on FreeBSD.
40744         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
40745         conflicting with FreeBSD's (5.0 and 6.1) function declaration
40746         in stdlib.h.
40748 2007-02-24  Bruno Haible  <bruno@clisp.org>
40750         * modules/isnanl-nolibm-tests: New file.
40751         * tests/test-isnanl.c: New file.
40753         * modules/isnanl-nolibm: New file.
40754         * lib/isnanl.h: New file.
40755         * lib/isnanl.c: New file.
40756         * m4/isnanl.m4: New file.
40758 2007-02-24  Bruno Haible  <bruno@clisp.org>
40760         * modules/isnan-nolibm-tests: New file.
40761         * tests/test-isnan.c: New file.
40763         * modules/isnan-nolibm: New file.
40764         * lib/isnan.h: New file.
40765         * lib/isnan.c: New file.
40766         * m4/isnan.m4: New file.
40768 2007-02-24  Bruno Haible  <bruno@clisp.org>
40770         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
40771         assume that an exponent fits in 20 bits.
40773 2007-02-24  Jim Meyering  <jim@meyering.net>
40775         * m4/regex.m4: Update the description of the configure-time option,
40776         --without-included-regex, to state accurately what the defaults are,
40777         and perhaps to give people an idea why using this option is risky.
40779 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
40782         loops on small arguments.  This attempts to avoid the problem
40783         Bruno Haible reported for AIX 4.3.2 in
40784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
40786 2007-02-23  Bruno Haible  <bruno@clisp.org>
40788         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
40789         Needed for help2man.
40791 2007-02-23  Karl Berry  <karl@gnu.org>
40793         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
40794         exists, foo.h should be cvs-ignored, not committed.
40796 2007-02-23  Eric Blake  <ebb9@byu.net>
40798         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
40799         * lib/stat-time.h (includes): Likewise.
40800         * lib/utimecmp.c (includes): Likewise.
40801         * lib/utimens.h (includes): Likewise.
40802         * lib/getdate.y (includes): Also include "timespec.h" for use
40803         internal to the module.
40804         * modules/utimens (Depends-on): Revert yesterday's patch.
40805         * modules/nanosleep (Depends-on): Add missing dependency.
40807 2007-02-22  Bruno Haible  <bruno@clisp.org>
40809         * lib/glob.c: Don't include getlogin_r.h.
40811 2007-02-22  Jim Meyering  <jim@meyering.net>
40813         * modules/utimens (Depends-on): Add timespec, required for
40814         utimens.h's inclusion of timespec.h.
40816 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
40818         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
40819         long unreadable paths in GNU/Linux.  Problem reported by Andreas
40820         Schwab in
40821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
40822         I'll try to think of a better way to fix the Solaris problem.
40824         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
40825         like glibc; on Solaris 10, it fails with errno == EINVAL.
40826         POSIX says the behavior is unspecified if the first argument is NULL,
40827         so play it safe and never pass NULL to the system getcwd.
40829 2007-02-21  Jim Meyering  <jim@meyering.net>
40831         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
40832         of gettimeofday.  It would conflict with the one now always
40833         provided via sys_time_.h.  Reported by Matthew Woehlke, as
40834         an IRIX 6.5 build failure.
40836 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
40838         Minor fixups to port to Solaris 10 with Sun C 5.8.
40839         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
40840         * modules/getcwd (Depends-on): Add dirfd.
40841         * lib/putenv.c (putenv): #undef it.
40842         (rpl_putenv): New decl.
40843         (malloc, free): Include <stdlib.h> rather than prototyping separately.
40845 2007-02-20  Bruno Haible  <bruno@clisp.org>
40847         * modules/stdio-tests: New file.
40848         * tests/test-stdio.c: New file.
40850         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
40851         (Depends-on): Add stdio.
40852         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
40853         (Include): Use <stdio.h> instead of vsnprintf.h.
40854         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
40855         HAVE_DECL_VSNPRINTF.
40856         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
40858         * modules/snprintf (Files): Remove lib/snprintf.h.
40859         (Depends-on): Add stdio.
40860         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
40861         (Include): Use <stdio.h> instead of snprintf.h.
40862         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
40863         HAVE_DECL_SNPRINTF.
40864         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
40865         * lib/getaddrinfo.c: Likewise.
40867         * modules/stdio: New file.
40868         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
40869         * lib/snprintf.h: Remove file.
40870         * lib/vsnprintf.h: Remove file.
40871         * lib/.cppi-disable: Remove snprintf.h.
40872         * m4/stdio_h.m4: New file.
40873         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
40875 2007-02-20  Jim Meyering  <jim@meyering.net>
40877         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
40878         used by e.g., mingw.  From Bruno Haible.
40880 2007-02-19  Bruno Haible  <bruno@clisp.org>
40882         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
40883         warnings.
40884         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40886 2007-02-19  Bruno Haible  <bruno@clisp.org>
40888         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
40889         from mingw users.
40891 2007-02-19  Bruno Haible  <bruno@clisp.org>
40893         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
40894         warnings.
40895         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
40897 2007-02-19  Jim Meyering  <jim@meyering.net>
40899         Don't use FD after a successful "fdopendir (fd)".
40900         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
40901         Reset it by calling dirfd on the just-obtained DIR*.
40903         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
40904         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
40906 2007-02-18  Bruno Haible  <bruno@clisp.org>
40908         * lib/readlink.c: Include <unistd.h>.
40909         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
40910         HAVE_READLINK.
40911         * modules/readlink (Depends-on): Add unistd.
40912         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40913         (Include): Add <unistd.h>.
40915         * lib/getlogin_r.h: Remove file.
40916         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
40917         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
40918         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
40919         HAVE_DECL_GETLOGIN_R.
40920         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
40921         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40922         (Include): Use <unistd.h> instead of getlogin_r.h.
40924         * lib/getcwd.h: Remove file.
40925         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
40926         * lib/xgetcwd.c: Likewise.
40927         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
40928         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
40929         * modules/getcwd (Files): Remove lib/getcwd.h.
40930         (Depends-on): Add unistd.
40931         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40932         (Include): Use <unistd.h> instad of getcwd.h.
40934         * lib/ftruncate.c: Include <unistd.h> first.
40935         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
40936         Set HAVE_FTRUNCATE.
40937         * modules/ftruncate (Depends-on): Add unistd.
40938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40940         * lib/fchdir.c: Include <unistd.h> first.
40941         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
40942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
40943         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
40944         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40945         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
40947         * lib/dup2.c: Include <unistd.h> first.
40948         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
40949         HAVE_DUP2.
40950         * modules/dup2 (Depends-on): Add unistd.
40951         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40953         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
40954         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
40955         REPLACE_CHOWN. Don't define chown as a macro here.
40956         * modules/chown (Depends-on): Add unistd.
40957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40959         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
40960         Add definition for GL_LINK_WARNING.
40961         (chown, dup2): New declarations.
40962         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
40963         link warning.
40964         (ftruncate): New declaration.
40965         (getcwd): New declaration, taken from old getcwd.h.
40966         (getlogin_r): New declaration, taken from old getlogin_r.h.
40967         (readlink): New declaration.
40968         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
40969         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
40970         (gl_PREREQ_UNISTD): Remove macro.
40971         (gl_UNISTD_MODULE_INDICATOR): New macro.
40972         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
40973         many new variables. Don't set UNISTD_H.
40974         * modules/unistd (Description): Change.
40975         (Depends-on): Add link-warning.
40976         (configure.ac): Update.
40977         (Makefile.am): Create unistd.h always. Substitute many new variables
40978         into it.
40980 2007-02-18  Bruno Haible  <bruno@clisp.org>
40982         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
40983         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
40984         HAVE_GETSUBOPT.
40985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
40986         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
40987         * lib/getsubopt.h: Remove file.
40988         * modules/getsubopt (Files): Remove lib/getsubopt.h.
40989         (Depends-on): Add stdlib.
40990         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40991         (Includes): Use <stdlib.h> instead of getsubopt.h.
40992         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
40993         Set HAVE_GETSUBOPT.
40994         * lib/getsubopt.c: Don't include getsubopt.h.
40996 2007-02-18  Bruno Haible  <bruno@clisp.org>
40998         * modules/fchdir (Depends-on): Add dup2.
41000 2007-02-18  Bruno Haible  <bruno@clisp.org>
41002         * lib/stdlib_.h: Handle glibc's special invocation convention
41003         specially.
41005 2007-02-18  Bruno Haible  <bruno@clisp.org>
41007         * modules/stdlib-tests: New file.
41008         * tests/test-stdlib.c: New file.
41010         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41011         (Depends-on): Add stdlib.
41012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41013         (Includes): Use <stdlib.h> instead of mkstemp.h.
41014         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41015         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41016         * lib/mkstemp.c: Don't include mkstemp.h.
41017         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41018         * lib/stdlib--.h: Don't include mkstemp.h.
41020         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41021         (Depends-on): Add stdlib.
41022         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41023         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41024         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41025         HAVE_MKDTEMP.
41026         * lib/mkdtemp.c: Don't include mkdtemp.h.
41027         * lib/clean-temp.c: Don't include mkdtemp.h.
41029         * modules/exit (Files): Remove lib/exit.h.
41030         (Depends-on): Add stdlib.
41031         (Makefile.am): Remove lib_SOURCES.
41032         (Include): Use <stdlib.h> instead of exit.h.
41033         * lib/argmatch.c: Don't include exit.h.
41034         * lib/execute.c: Likewise.
41035         * lib/pagealign_alloc.c: Likewise.
41036         * lib/pipe.c: Likewise.
41037         * lib/wait-process.c: Likewise.
41038         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41039         * lib/exitfail.c: Likewise.
41040         * lib/savewd.c: Likewise.
41041         * lib/xsetenv.c: Likewise.
41043         * modules/stdlib: New file.
41044         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41045         and extra comments about mkstemp().
41046         * lib/exit.h: Remove file.
41047         * lib/mkdtemp.h: Remove file.
41048         * lib/mkstemp.h: Remove file.
41049         * m4/stdlib_h.m4: New file.
41050         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41052 2007-02-18  Bruno Haible  <bruno@clisp.org>
41054         * modules/math-tests: New file.
41055         * tests/test-math.c: New file.
41057         * modules/math: New file.
41058         * modules/mathl (Files): Remove lib/mathl.h.
41059         (Depends-on): Add math.
41060         (Makefile.am): Don't mention mathl.h.
41061         (Include): Use <math.h> instead of mathl.h.
41062         * lib/math_.h: New file.
41063         * lib/mathl.h: Remove file.
41064         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41065         mathl.h.
41066         * lib/asinl.c: Likewise.
41067         * lib/atanl.c: Likewise.
41068         * lib/ceill.c: Likewise.
41069         * lib/cosl.c: Likewise.
41070         * lib/expl.c: Likewise.
41071         * lib/floorl.c: Likewise.
41072         * lib/frexpl.c: Likewise.
41073         * lib/ldexpl.c: Likewise.
41074         * lib/logl.c: Likewise.
41075         * lib/sincosl.c: Likewise.
41076         * lib/sinl.c: Likewise.
41077         * lib/sqrtl.c: Likewise.
41078         * lib/tanl.c: Likewise.
41079         * lib/trigl.c: Likewise.
41080         * m4/math_h.m4: New file.
41081         * MODULES.html.sh (Mathematics): Add math.
41083 2007-02-17  Bruno Haible  <bruno@clisp.org>
41085         * modules/wctype-tests: New file.
41086         * tests/test-wctype.c: New file.
41088         * modules/wchar-tests: New file.
41089         * tests/test-wchar.c: New file.
41091         * modules/unistd-tests: New file.
41092         * tests/test-unistd.c: New file.
41094         * modules/time-tests: New file.
41095         * tests/test-time.c: New file.
41097         * modules/sysexits-tests: New file.
41098         * tests/test-sysexits.c: New file.
41100         * modules/sys_time-tests: New file.
41101         * tests/test-sys_time.c: New file.
41103         * modules/sys_stat-tests: New file.
41104         * tests/test-sys_stat.c: New file.
41106         * modules/sys_socket-tests: New file.
41107         * tests/test-sys_socket.c: New file.
41109         * modules/sys_select-tests: New file.
41110         * tests/test-sys_select.c: New file.
41112         * modules/string-tests: New file.
41113         * tests/test-string.c: New file.
41115         * modules/stdbool-tests: New file.
41116         * tests/test-stdbool.c: New file.
41118         * modules/netinet_in-tests: New file.
41119         * tests/test-netinet_in.c: New file.
41121         * modules/inttypes-tests: New file.
41122         * tests/test-inttypes.c: New file.
41124         * modules/fcntl-tests: New file.
41125         * tests/test-fcntl.c: New file.
41127         * modules/byteswap-tests: New file.
41128         * tests/test-byteswap.c: New file.
41130         * modules/arpa_inet-tests: New file.
41131         * tests/test-arpa_inet.c: New file.
41133 2007-02-17  Bruno Haible  <bruno@clisp.org>
41135         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41136         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41137         if the corresponding module is not enabled. Emit link warnings if
41138         the function is used nevertheless.
41139         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41140         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41141         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41142         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41143         * modules/inttypes (Depends-on): Add link-warning.
41144         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41145         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41146         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41147         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41148         * modules/imaxdiv (configure.ac): Likewise.
41149         * modules/strtoimax (configure.ac): Likewise.
41150         * modules/strtoumax (configure.ac): Likewise.
41152 2007-02-17  Bruno Haible  <bruno@clisp.org>
41154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41155         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41156         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41157         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41159 2007-02-17  Bruno Haible  <bruno@clisp.org>
41161         * modules/link-warning: New file.
41162         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41163         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41164         * modules/string (Depends-on): Add link-warning.
41165         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41166         string.h.
41167         * MODULES.html.sh (Support for building libraries and executables): Add
41168         link-warning.
41170 2007-02-17  Bruno Haible  <bruno@clisp.org>
41172         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41173         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41174         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41175         long lines.
41177 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41178             Bruno Haible  <bruno@clisp.org>
41180         * modules/tmpfile: New file.
41181         * lib/tmpfile.c: New file.
41182         * m4/tmpfile.m4: New file.
41183         * MODULES.html.sh (func_all_modules): New section "Input/output".
41185 2007-02-15  Bruno Haible  <bruno@clisp.org>
41187         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41188         (supports_delete_on_close): New function.
41189         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41191 2007-02-14  Bruno Haible  <bruno@clisp.org>
41193         * modules/mbspcasecmp-tests: New file.
41194         * tests/test-mbspcasecmp.sh: New file.
41195         * tests/test-mbspcasecmp.c: New file.
41197         New module mbspcasecmp.
41198         * modules/mbspcasecmp: New file.
41199         * lib/mbspcasecmp.c: New file.
41200         * lib/string_.h (strncasecmp): Change warning message.
41201         (mbspcasecmp): New declaration.
41202         * m4/mbspcasecmp.m4: New file.
41203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41204         GNULIB_MBSPCASECMP.
41205         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41206         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41208 2007-02-14  Bruno Haible  <bruno@clisp.org>
41210         * modules/mbsncasecmp-tests: New file.
41211         * tests/test-mbsncasecmp.sh: New file.
41212         * tests/test-mbsncasecmp.c: New file.
41214         New module mbsncasecmp.
41215         * modules/mbsncasecmp: New file.
41216         * lib/mbsncasecmp.c: New file.
41217         * lib/string_.h (mbsncasecmp): New declaration.
41218         * m4/mbsncasecmp.m4: New file.
41219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41220         GNULIB_MBSNCASECMP.
41221         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41222         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41224 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41226         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41227         Verify that it doesn't overlap with our flags.
41228         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41229         do not have the desired effect in multibyte locales; instead, use
41230         mbscasecmp.
41231         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41232         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41233         we don't require GNU fnmatch ourselves (if our users require it, they
41234         should do so explicitly).
41236         Fix regex code so it doesn't rely on strcasecmp.
41237         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41238         Otherwise, include gnulib's langinfo.h.
41239         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41240         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41241         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41242         * modules/regex (FILES): Remove m4/codeset.m4.
41243         (Depends-on): Add localcharset.  Remove strcase.
41245 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41247         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41248         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41250 2007-02-13  Bruno Haible  <bruno@clisp.org>
41252         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41255 2007-02-12  Bruno Haible  <bruno@clisp.org>
41257         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41258         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41259         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41260         time warning rather than a link error.
41262 2007-02-12  Bruno Haible  <bruno@clisp.org>
41264         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41266         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41268 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41270         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41271         args, not 2.
41273 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41275         New module 'time', so that apps can include <time.h> as per
41276         POSIX and GNU instead of separate include files like time_r.h
41277         and timegm.h.  This implementation tries out a simpler approach
41278         for replacing decls in standard include files (as compared to
41279         the string module), somewhat as an experiment.
41281         * config/srclist.txt: Comment out mktime.c for now.
41282         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41283         since it doesn't apply any more.  Use generic wording instead.
41284         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41285         'time'.
41286         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41287         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41288         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41289         Don't include <sys/types.h>; no longer needed since we assume C89.
41290         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41291         * lib/strftime.c: Likewise.
41292         * lib/time_r.c: Likewise.
41293         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41294         * lib/nanosleep.c: Include <time.h> first, to check interface.
41295         * lib/strptime.c: Likewise.
41296         * lib/time_r.c: Likewise.
41297         * lib/timegm.c: Likewise.
41298         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41299         needed.
41300         * lib/timegm.c: Don't include timegm.h; no longer needed.
41301         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41302         time.h now handles any problems in that area.
41303         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41304         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
41305         that time.h defines struct timespec.
41306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
41307         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
41308         handles that.
41309         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
41310         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
41311         needed.  Set REPLACE_LOCALTIME.
41312         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
41313         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
41314         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
41315         nanosleep; time_h.m4 now does that.  Don't require
41316         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
41317         module handles this now.
41318         * modules/getdate (Depends-on): Remove timespec.  Add time.
41319         * modules/nanosleep (Depends-on): Likewise.
41320         * modules/stat-time (Depends-on): Likewise.
41321         * modules/nanosleep (Include): Include time.h, not timespec.h.
41322         * modules/strptime (Files): Remove lib/strptime.h.
41323         (Depends-on): Add extensions, time.
41324         (Include): Include time.h, not strptime.h.
41325         * modules/time_r (Files): Remove lib/time_r.h.
41326         (Depends-on): Add time.
41327         (Include): Include time.h, not time_r.h.
41328         * modules/timegm: Likewise.
41329         * modules/timespec (Description): Now does timespec-related decls
41330         of our own, instead of struct timespec itself.
41331         (Depends-on): Add time; remove extensions.
41332         (Maintainer): Add self.
41333         * modules/utimecmp (Depends-on): Add time; remove timespec.
41334         * modules/utimens (Depends-on): Likewise.
41335         * modules/xnanosleep (Depends-on): Likewise.
41337 2007-02-11  Bruno Haible  <bruno@clisp.org>
41339         * lib/c-strstr.c: Include allocsa.h.
41340         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41341         * lib/c-strcasestr.c: Include allocsa.h.
41342         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41343         * lib/strcasestr.c: Include allocsa.h.
41344         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41345         * lib/mbsstr.c: Include allocsa.h.
41346         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41347         allocsa/freesa instead of malloc/free.
41348         * lib/mbscasestr.c: Include allocsa.h.
41349         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41350         allocsa/freesa instead of malloc/free.
41351         * modules/c-strstr (Depends-on): Add allocsa.
41352         * modules/c-strcasestr (Depends-on): Likewise.
41353         * modules/strcasestr (Depends-on): Likewise.
41354         * modules/mbsstr (Depends-on): Likewise.
41355         * modules/mbscasestr (Depends-on): Likewise.
41357 2007-02-11  Bruno Haible  <bruno@clisp.org>
41359         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
41361         * modules/mbsspn-tests: New file.
41362         * tests/test-mbsspn.sh: New file.
41363         * tests/test-mbsspn.c: New file.
41365 2007-02-11  Bruno Haible  <bruno@clisp.org>
41367         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
41369         * modules/mbspbrk-tests: New file.
41370         * tests/test-mbspbrk.sh: New file.
41371         * tests/test-mbspbrk.c: New file.
41373 2007-02-11  Bruno Haible  <bruno@clisp.org>
41375         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
41376         unneeded cast.
41378         * modules/mbscspn-tests: New file.
41379         * tests/test-mbscspn.sh: New file.
41380         * tests/test-mbscspn.c: New file.
41382 2007-02-11  Bruno Haible  <bruno@clisp.org>
41384         * modules/mbscasecmp-tests: New file.
41385         * tests/test-mbscasecmp.sh: New file.
41386         * tests/test-mbscasecmp.c: New file.
41388 2007-02-11  Bruno Haible  <bruno@clisp.org>
41390         Ensure O(n) worst-case complexity of mbscasestr.
41391         * lib/mbscasestr.c: Include stdbool.h.
41392         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41393         functions.
41394         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
41395         the bookkeeping indicates that it's worth it.
41396         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
41398         * modules/mbscasestr-tests: New file.
41399         * tests/test-mbscasestr1.c: New file.
41400         * tests/test-mbscasestr2.sh: New file.
41401         * tests/test-mbscasestr2.c: New file.
41402         * tests/test-mbscasestr3.sh: New file.
41403         * tests/test-mbscasestr3.c: New file.
41404         * tests/test-mbscasestr4.sh: New file.
41405         * tests/test-mbscasestr4.c: New file.
41406         * m4/locale-tr.m4: New file.
41408 2007-02-11  Bruno Haible  <bruno@clisp.org>
41410         Ensure O(n) worst-case complexity of mbsstr.
41411         * lib/mbsstr.c: Include stdbool.h.
41412         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41413         functions.
41414         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
41415         bookkeeping indicates that it's worth it.
41416         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
41418         * modules/mbsstr-tests: New file.
41419         * tests/test-mbsstr1.c: New file.
41420         * tests/test-mbsstr2.sh: New file.
41421         * tests/test-mbsstr2.c: New file.
41422         * tests/test-mbsstr3.sh: New file.
41423         * tests/test-mbsstr3.c: New file.
41424         * m4/locale-fr.m4: New file.
41426 2007-02-11  Bruno Haible  <bruno@clisp.org>
41428         * lib/mbsrchr.c (mbsrchr): Fix bug.
41430         * modules/mbsrchr-tests: New file.
41431         * tests/test-mbsrchr.sh: New file.
41432         * tests/test-mbsrchr.c: New file.
41434 2007-02-11  Bruno Haible  <bruno@clisp.org>
41436         * lib/mbschr.c (mbschr): Fix bug.
41438         * modules/mbschr-tests: New file.
41439         * tests/test-mbschr.sh: New file.
41440         * tests/test-mbschr.c: New file.
41441         * m4/locale-zh.m4: New file.
41443 2007-02-11  Bruno Haible  <bruno@clisp.org>
41445         Support for copying multibyte string iterators.
41446         * lib/mbiter.h: Include <string.h>.
41447         (mbiter_multi_copy): New function.
41448         (mbi_copy): New macro.
41449         * lib/mbuiter.h: Include <string.h>.
41450         (mbuiter_multi_copy): New function.
41451         (mbui_copy): New macro.
41453 2007-02-11  Bruno Haible  <bruno@clisp.org>
41455         New module mbslen.
41456         * modules/mbslen: New file.
41457         * lib/mbslen.c: New file.
41458         * lib/string_.h (mbslen): New declaration.
41459         * m4/mbslen.m4: New file.
41460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41461         GNULIB_MBSLEN.
41462         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
41463         * MODULES.html.sh (Internationalization functions): Add mbslen.
41465 2007-02-11  Bruno Haible  <bruno@clisp.org>
41467         Ensure O(n) worst-case complexity of strcasestr substitute.
41468         * lib/strcasestr.c: Include stdbool.h.
41469         (knuth_morris_pratt): New function.
41470         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41471         bookkeeping indicates that it's worth it.
41472         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
41474         * modules/strcasestr-tests: New file.
41475         * tests/test-strcasestr.c: New file.
41477 2007-02-11  Bruno Haible  <bruno@clisp.org>
41479         Ensure O(n) worst-case complexity of c_strcasestr.
41480         * lib/c-strcasestr.c: Include stdbool.h, string.h.
41481         (knuth_morris_pratt): New function.
41482         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
41483         the bookkeeping indicates that it's worth it.
41484         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
41486         * modules/c-strcasestr-tests: New file.
41487         * tests/test-c-strcasestr.c: New file.
41489 2007-02-11  Bruno Haible  <bruno@clisp.org>
41491         Ensure O(n) worst-case complexity of c_strstr.
41492         * lib/c-strstr.c: Include stdbool.h, string.h.
41493         (knuth_morris_pratt): New function.
41494         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41495         bookkeeping indicates that it's worth it.
41496         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
41498         * lib/c-strstr.c: Complete rewrite for maintainability.
41500         * modules/c-strstr-tests: New file.
41501         * tests/test-c-strstr.c: New file.
41503 2007-02-11  Bruno Haible  <bruno@clisp.org>
41505         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
41506         5.2.1 and earlier, whereby \055 was treated just like the range
41507         delimiter '-'.
41508         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41510 2007-02-08  Bruno Haible  <bruno@clisp.org>
41512         * modules/regex (Depends-on): Add stdbool.
41513         Reported by Dalibor Topic <robilad@kaffe.org>.
41515 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
41517         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
41518         Prefer returning from main to exiting from it.
41519         Remove unnecessary parens after sizeof.
41521 2007-02-05  Bruno Haible  <bruno@clisp.org>
41523         New module mbssep.
41524         * modules/mbssep: New file.
41525         * lib/mbssep.c: New file.
41526         * lib/string_.h (strsep): Add a conditional link warning.
41527         (mbssep): New declaration.
41528         * m4/mbssep.m4: New file.
41529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41530         GNULIB_MBSSEP.
41531         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
41532         * MODULES.html.sh (Internationalization functions): Add mbssep.
41534 2007-02-05  Bruno Haible  <bruno@clisp.org>
41536         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
41537         Optimize search in case of 1 delimiter.
41539 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41541         * lib/acl.h: Include sys/types.h before sys/acl.h.
41543 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41545         Merge upstream fix for glibc bugzilla #3957:
41547         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
41549         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
41550         bit for RE_HAT_LISTS_NOT_NEWLINE.
41551         (build_charclass_op): Remove bogus comment.
41553 2007-02-05  Simon Josefsson  <simon@josefsson.org>
41555         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
41557 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41559         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
41560         * lib/memmem.c [!defined _LIBC]: Include config.h.
41562 2007-02-04  Bruno Haible  <bruno@clisp.org>
41564         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
41565         warning message.
41567 2007-02-04  Bruno Haible  <bruno@clisp.org>
41569         New module mbstok_r.
41570         * modules/mbstok_r: New file.
41571         * lib/mbstok_r.c: New file.
41572         * lib/string_.h (strtok_r): Change argument names to match the
41573         comments. Add a conditional link warning.
41574         (mbstok_r): New declaration.
41575         * m4/mbstok_r.m4: New file.
41576         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41577         GNULIB_MBSTOK_R.
41578         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
41579         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
41581 2007-02-04  Bruno Haible  <bruno@clisp.org>
41583         New module mbsspn.
41584         * modules/mbsspn: New file.
41585         * lib/mbsspn.c: New file.
41586         * lib/string_.h (strspn): Add a conditional link warning.
41587         (mbsspn): New declaration.
41588         * m4/mbsspn.m4: New file.
41589         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41590         GNULIB_MBSSPN.
41591         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
41592         * MODULES.html.sh (Internationalization functions): Add mbsspn.
41594 2007-02-04  Bruno Haible  <bruno@clisp.org>
41596         New module mbspbrk.
41597         * modules/mbspbrk: New file.
41598         * lib/mbspbrk.c: New file.
41599         * lib/string_.h (strpbrk): Add a conditional link warning.
41600         (mbspbrk): New declaration.
41601         * m4/mbspbrk.m4: New file.
41602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41603         GNULIB_MBSPBRK.
41604         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
41605         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
41607 2007-02-04  Bruno Haible  <bruno@clisp.org>
41609         New module mbscspn.
41610         * modules/mbscspn: New file.
41611         * lib/mbscspn.c: New file.
41612         * lib/string_.h (strcspn): Add a conditional link warning.
41613         (mbscspn): New declaration.
41614         * m4/mbscspn.m4: New file.
41615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41616         GNULIB_MBSCSPN.
41617         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
41618         * MODULES.html.sh (Internationalization functions): Add mbscspn.
41620 2007-02-04  Bruno Haible  <bruno@clisp.org>
41622         New module mbscasestr, reduced goal of strcasestr.
41623         * modules/mbscasestr: New file.
41624         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
41625         (mbscasestr): Renamed from strcasestr.
41626         * lib/strcasestr.c: Don't include mbuiter.h.
41627         (strcasestr): Remove support for multibyte locales.
41628         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
41629         Change the conditional link warning.
41630         (mbscasestr): New declaration.
41631         * m4/mbscasestr.m4: New file.
41632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
41633         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
41634         REPLACE_STRCASESTR.
41635         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
41636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41637         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41638         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
41639         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
41640         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41641         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
41642         (Depends-on): Remove mbuiter.
41643         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
41645 2007-02-04  Bruno Haible  <bruno@clisp.org>
41647         Simplify handling of strncasecmp.
41648         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
41649         the conditional link warning.
41650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41651         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
41652         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
41653         * modules/strcase (configure.ac): Don't invoke
41654         gl_STRING_MODULE_INDICATOR.
41655         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
41657 2007-02-04  Bruno Haible  <bruno@clisp.org>
41659         New module mbscasecmp, reduced goal of strcasecmp.
41660         * modules/mbscasecmp: New file.
41661         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
41662         (mbscasecmp): Renamed from strcasecmp.
41663         * lib/strcasecmp.c: Don't include mbuiter.h.
41664         (strcasecmp): Remove support for multibyte locales.
41665         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
41666         Change the conditional link warning.
41667         (mbscasecmp): New declaration.
41668         * m4/mbscasecmp.m4: New file.
41669         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
41670         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
41671         REPLACE_STRCASECMP.
41672         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
41673         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41674         GNULIB_MBSCASECMP.
41675         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
41676         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
41677         * modules/strcase (Files): Remove m4/mbrtowc.m4.
41678         (Depends-on): Remove mbuiter.
41679         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
41681 2007-02-04  Bruno Haible  <bruno@clisp.org>
41683         New module mbsstr. Remove module strstr.
41684         * modules/mbsstr: New file.
41685         * modules/strstr: Remove file.
41686         * lib/mbsstr.c: Renamed from lib/strstr.c.
41687         (mbsstr): Renamed from strstr.
41688         * lib/string_.h (strstr): Remove declaration. Change the conditional
41689         link warning.
41690         (mbsstr): New declaration.
41691         * m4/mbsstr.m4: New file.
41692         * m4/strstr.m4: Remove file.
41693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
41694         REPLACE_STRSTR.
41695         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
41696         Don't initialize GNULIB_STRSTR.
41697         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
41698         substitute GNULIB_STRSTR and REPLACE_STRSTR.
41699         * MODULES.html.sh (Internationalization functions): Add mbsstr.
41700         (Support for systems lacking ANSI C 89): Remove strstr.
41702 2007-02-04  Bruno Haible  <bruno@clisp.org>
41704         New module mbsrchr.
41705         * modules/mbsrchr: New file.
41706         * lib/mbsrchr.c: New file.
41707         * lib/string_.h (strrchr): Add a conditional link warning.
41708         (mbsrchr): New declaration.
41709         * m4/mbsrchr.m4: New file.
41710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41711         GNULIB_MBSRCHR.
41712         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
41713         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
41715 2007-02-04  Bruno Haible  <bruno@clisp.org>
41717         New module mbschr.
41718         * modules/mbschr: New file.
41719         * lib/mbschr.c: New file.
41720         * lib/string_.h (strchr): Add a conditional link warning.
41721         (mbschr): New declaration.
41722         * m4/mbschr.m4: New file.
41723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41724         GNULIB_MBSCHR.
41725         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
41726         * MODULES.html.sh (Internationalization functions): Add mbschr.
41728 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41730         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
41732         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
41734 2007-02-04  Bruno Haible  <bruno@clisp.org>
41736         New module description section 'configure.ac-early'.
41737         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
41738         (func_get_autoconf_early_snippet): New function.
41739         (func_import, func_create_testdir): Use it. Remove special cases for
41740         modules 'extensions' and 'lock'.
41741         * modules/extensions (configure.ac-early): Require
41742         gl_USE_SYSTEM_EXTENSIONS.
41743         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
41745 2007-02-04  Bruno Haible  <bruno@clisp.org>
41747         Make use of gcj-4.3's -fsource and -ftarget option.
41748         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
41749         and if so try the options -fsource and -ftarget.
41750         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
41751         source_version, ftarget_option, target_version arguments.
41752         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
41753         (is_envjavac_oldgcj_14_14_usable): Renamed from
41754         is_envjavac_gcj_14_14_usable.
41755         (is_envjavac_oldgcj_14_13_usable): Renamed from
41756         is_envjavac_gcj_14_13_usable.
41757         (is_gcj_present): Update.
41758         (is_gcj_43, is_gcj43_usable): New functions.
41759         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
41760         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
41761         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
41762         try the options -fsource and -ftarget.
41764 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41766         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
41767         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
41768         larger value.
41770 2007-02-03  Jim Meyering  <jim@meyering.net>
41772         Give tools a better chance to allocate space for very large buffers.
41773         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
41775         Make pwd and readlink work also when run with an unreadable parent dir
41776         on systems with openat support.
41777         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
41778         provided getcwd function, even when we have openat support.
41779         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
41781 2007-02-02  Bruno Haible  <bruno@clisp.org>
41783         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41784         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
41785         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
41786         portability problems if one of these functions is only used on specific
41787         platforms.
41788         Reported by Paul Eggert.
41790 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
41792         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
41793         is causing more trouble than it's curing.
41794         * lib/regex_internal.h (__mempcpy): Remove.
41795         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
41796         (and make the code a tad smaller to boot).
41797         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
41799 2007-02-02  Jim Meyering  <jim@meyering.net>
41801         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
41802         section, not in the Makefile.am: one.
41804 2007-02-02  Eric Blake  <ebb9@byu.net>
41806         * lib/strchrnul.c: Always include config.h first.
41808         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
41809         gnulib strstr is not necessary here.
41811 2007-02-02  Simon Josefsson  <simon@josefsson.org>
41813         * m4/socklen.m4: Fix typo.
41815 2007-02-02  Eric Blake  <ebb9@byu.net>
41817         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
41818         * modules/netinet_in (Makefile.am): Likewise.
41820 2007-02-01  Bruno Haible  <bruno@clisp.org>
41822         * lib/string_.h (GL_LINK_WARNING): New macro.
41823         (strcasecmp, strstr, strcasestr): If provided by the system,
41824         conditionally define as a macro that leads to a warning instead of to
41825         an error.
41826         (strncasecmp): Conditionally define as a macro that leads to a warning.
41828 2007-02-01  Karl Berry  <karl@gnu.org>
41830         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
41832 2007-02-01  Bruno Haible  <bruno@clisp.org>
41834         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
41835         renamings.
41837 2007-02-01  Eric Blake  <ebb9@byu.net>
41839         * modules/regex (Depends-on): Revert dependence on mempcpy.
41840         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
41841         module's definition of mempcpy.
41842         Reported by Paul Eggert.
41844 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
41846         * lib/string_.h: If the gnulib module XYZ is not present, undefine
41847         the symbol XYZ before redefining it.  This fixes a problem with
41848         programs that don't use XYZ, when compiled on systems that define
41849         XYZ to something else.
41851 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
41853         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
41854         occurs when "mkdir -m foo" creates a setgid directory that is (1)
41855         writeable to group or other and (2) is intended to have a special
41856         mode bit that is set or cleared.  In such a case, the directory
41857         should be neither group- nor other-writeable until the special
41858         mode bits are right.
41860 2007-01-31  Eric Blake  <ebb9@byu.net>
41862         * modules/mountlist (Depends-on): Add strstr.
41864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
41865         bug.
41866         * modules/string (Makefile.am): Remove redundant replacement.
41867         * modules/regex (Depends-on): Add mempcpy.
41869 2007-01-31  Bruno Haible  <bruno@clisp.org>
41871         New module description field 'Link'.
41872         * gnulib-tool (func_usage): Document --extract-link-directive.
41873         (sed_extract_prog): Recognize 'Link' directive.
41874         (func_get_link_directive): New function.
41875         (func_import): Show summary of link directives.
41876         Handle --extract-link-directive option.
41877         * modules/acl (Link): New section.
41878         * modules/clock-time (Link): New section.
41879         * modules/euidaccess (Link): New section.
41880         * modules/gettext (Link): New section.
41881         * modules/iconv (Link): New section.
41882         * modules/lock (Link): New section.
41883         * modules/nanosleep (Link): New section.
41884         * modules/readline (Link): New section.
41886 2007-01-27  Bruno Haible  <bruno@clisp.org>
41888         Enforce the use of gnulib modules for unportable <string.h> functions.
41889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
41890         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
41891         (gl_HEADER_STRING_H_BODY): Require it.
41892         * lib/string_.h: If the gnulib module XYZ is not present, redefine
41893         the symbol XYZ to one that gives a link error.
41894         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
41895         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
41896         * modules/mempcpy (configure.ac): Likewise.
41897         * modules/memrchr (configure.ac): Likewise.
41898         * modules/stpcpy (configure.ac): Likewise.
41899         * modules/stpncpy (configure.ac): Likewise.
41900         * modules/strcase (configure.ac): Likewise.
41901         * modules/strcasestr (configure.ac): Likewise.
41902         * modules/strchrnul (configure.ac): Likewise.
41903         * modules/strdup (configure.ac): Likewise.
41904         * modules/strndup (configure.ac): Likewise.
41905         * modules/strnlen (configure.ac): Likewise.
41906         * modules/strpbrk (configure.ac): Likewise.
41907         * modules/strsep (configure.ac): Likewise.
41908         * modules/strstr (configure.ac): Likewise.
41909         * modules/strtok_r (configure.ac): Likewise.
41911 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
41913         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
41915 2007-01-30  Jim Meyering  <jim@meyering.net>
41917         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
41919 2007-01-29  Bruno Haible  <bruno@clisp.org>
41921         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
41922         * lib/execute.c: Likewise.
41923         * lib/pipe.c: Likewise.
41924         * lib/printf-args.h: Likewise.
41925         * lib/printf-args.c: Likewise.
41926         * lib/printf-parse.c: Likewise.
41927         * lib/vasnprintf.c: Likewise.
41929 2007-01-29  Eric Blake  <ebb9@byu.net>
41931         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
41932         declaration.
41934 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41936         * lib/strptime.h (strptime): Use 'restrict' for args where
41937         POSIX requires this.
41938         * lib/strptime.c (strptime): Likewise.
41939         Change license notice from LGPL to GPL, since gnulib-tool will
41940         change this as needed.
41941         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
41942         defined.
41943         Include "strptime.h" first, to check interface.
41944         Do not #undef _LIBC and _NL_CURRENT.
41945         Do not include <stdlib.h>; no longer needed.
41946         Include "time_r.h" and declare ptime_locale_status
41947         only if _LIBC is not defined.
41948         (__P): Remove unused macro.
41949         (match_string): Bring back glibc version, but use it only if _LIBC
41950         is defined.
41951         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
41952         Remove unnecessary assertion and abort() call.
41953         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
41954         * m4/strptime.m4: Fix serial number comment.
41955         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
41956         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
41957         (Depends-on): Add time_r.
41959 2007-01-29  Bruno Haible  <bruno@clisp.org>
41961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41962         strptime.
41963         * modules/strptime (Depends-on): Add stdbool.
41964         * lib/strptime.h: Include <time.h> always. Add comments.
41966 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41968         * modules/strptime: New file.
41969         * lib/strptime.h: New file.
41970         * lib/strptime.c: New file.
41971         * m4/strptime.m4: New file.
41973 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41975         * MODULES.html.sh: New module mpsort.
41976         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
41978         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
41979         a circularity problem with HP-UX ia64 reported by Bob Proulx in
41980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
41981         All uses changed.
41982         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
41983         All uses changed.
41984         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
41985         to _Restrict_.
41986         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
41987         the parameter matches the prototype.
41989 2007-01-28  Jim Meyering  <jim@meyering.net>
41991         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
41992         sys/time.h here, reverting that part of the previous patch:
41993         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
41995 2007-01-28  Bruno Haible  <bruno@clisp.org>
41997         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
41998         value of $(SYS_TIME_H).
41999         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42000         remove it conditionally, too. [added by Jim Meyering]
42001         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42003         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42004         GETTIMEOFDAY_REPLACEMENT to 1.
42006 2007-01-28  Bruno Haible  <bruno@clisp.org>
42008         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42009         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42010         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42011         Set UNISTD_H instead of UNISTD_H2.
42012         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42014 2007-01-28  Bruno Haible  <bruno@clisp.org>
42016         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42017         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42019 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42021         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42022         (func_create_testdir): Ensure C locale for `grep' and `tr'
42023         character ranges.
42024         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42025         ACLOCAL_AMFLAGS parsing state machine.
42027 2007-01-27  Bruno Haible  <bruno@clisp.org>
42029         * modules/unistr/base: Update.
42031 2007-01-27  Bruno Haible  <bruno@clisp.org>
42033         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42034         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42035         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42036         modules/unistr/u32-mbtouc.
42037         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42038         * lib/unistr.h: Update.
42039         * lib/linebreak.c: Update.
42040         * modules/unistr/u32-mbtouc: Renamed from
42041         modules/unistr/u32-mbtouc-safe.
42042         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42043         * lib/unistr.h: Update.
42044         * lib/unistr/u32-to-u8.c: Update.
42045         * lib/unistr/u32-to-u16.c: Update.
42047 2007-01-27  Bruno Haible  <bruno@clisp.org>
42049         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42050         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42051         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42052         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42053         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42054         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42055         modules/unistr/u16-mbtouc.
42056         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42057         * lib/unistr.h: Update.
42058         * lib/linebreak.c: Update.
42059         * modules/linebreak: Update.
42060         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42061         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42062         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42063         * modules/unistr/u16-mbtouc: Renamed from
42064         modules/unistr/u16-mbtouc-safe.
42065         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42066         * lib/unistr.h: Update.
42067         * lib/unistr/u16-to-u8.c: Update.
42068         * modules/unistr/u16-to-u8: Update.
42069         * lib/unistr/u16-to-u32.c: Update.
42070         * modules/unistr/u16-to-u32: Update.
42072 2007-01-27  Bruno Haible  <bruno@clisp.org>
42074         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42075         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42076         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42077         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42078         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42079         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42080         modules/unistr/u8-mbtouc.
42081         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42082         * lib/unistr.h: Update.
42083         * lib/striconveh.c: Update.
42084         * modules/striconveh: Update.
42085         * lib/linebreak.c: Update.
42086         * modules/linebreak: Update.
42087         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42088         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42089         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42090         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42091         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42092         * lib/unistr.h: Update.
42093         * lib/striconveh.c: Update.
42094         * modules/striconveh: Update.
42095         * lib/unistr/u8-to-u16.c: Update.
42096         * modules/unistr/u8-to-u16: Update.
42097         * lib/unistr/u8-to-u32.c: Update.
42098         * modules/unistr/u8-to-u32: Update.
42100 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42102         Sync from Libtool.
42103         * lib/argz.c: Do not include strings.h nor memory.h, include
42104         string.h unconditionally.  Patch by Simon Josefsson.
42106 2007-01-27  Bruno Haible  <bruno@clisp.org>
42108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42109         from gl_HEADER_STRING_H_BODY.
42110         (gl_HEADER_STRING_H_BODY): Require it.
42111         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42112         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42113         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42114         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42115         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42116         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42118         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42119         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42120         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42121         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42122         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42123         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42124         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42127 2007-01-27  Bruno Haible  <bruno@clisp.org>
42129         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42130         check_PROGRAMS into noinst_PROGRAMS.
42131         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42132         check_PROGRAMS in this case.
42133         (func_import): Set for_test to false.
42134         (func_create_testdir): Set for_test to true.
42136 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42137             Bruno Haible  <bruno@clisp.org>
42139         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42140         (Depends-on): Add string.
42141         (Includes): Use <string.h> instead of strcasestr.h.
42142         * modules/string (Makefile.am): Also substitute the value of
42143         REPLACE_STRCASESTR.
42144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42145         assume strcasestr is declared in <string.h> not <strings.h>. Also
42146         set REPLACE_STRCASESTR.
42147         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42148         REPLACE_STRCASESTR.
42149         * lib/strcasestr.h: Remove file.
42150         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42151         * lib/string_.h (strcasestr): New declaration.
42153 2007-01-27  Bruno Haible  <bruno@clisp.org>
42155         * lib/string_.h: Use 'extern'.
42157 2007-01-27  Jim Meyering  <jim@meyering.net>
42159         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42160         of set-but-not-used local, "q".
42162         * lib/mempcpy.c: Include <config.h> before <string.h>.
42163         This fixes a compilation error on HP-UX, due to the system's
42164         "restrict"-using mempcpy prototype.
42166 2007-01-26  Bruno Haible  <bruno@clisp.org>
42168         Small optimization.
42169         * lib/javacomp.c: Include c-strstr.h.
42170          (is_envjavac_gcj): Use c_strstr instead of strstr.
42171         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42173 2007-01-26  Bruno Haible  <bruno@clisp.org>
42175         * MODULES.html.sh (Unicode string functions): Add the new modules.
42177         * modules/uniconv/u32-strconv-to-locale: New file.
42178         * lib/uniconv/u32-strconv-to-locale.c: New file.
42180         * modules/uniconv/u16-strconv-to-locale: New file.
42181         * lib/uniconv/u16-strconv-to-locale.c: New file.
42183         * modules/uniconv/u8-strconv-to-locale: New file.
42184         * lib/uniconv/u8-strconv-to-locale.c: New file.
42186         * modules/uniconv/u32-strconv-from-locale: New file.
42187         * lib/uniconv/u32-strconv-from-locale.c: New file.
42189         * modules/uniconv/u16-strconv-from-locale: New file.
42190         * lib/uniconv/u16-strconv-from-locale.c: New file.
42192         * modules/uniconv/u8-strconv-from-locale: New file.
42193         * lib/uniconv/u8-strconv-from-locale.c: New file.
42195         * modules/uniconv/u32-strconv-to-enc: New file.
42196         * lib/uniconv/u32-strconv-to-enc.c: New file.
42197         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42198         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42200         * modules/uniconv/u16-strconv-to-enc: New file.
42201         * lib/uniconv/u16-strconv-to-enc.c: New file.
42202         * lib/uniconv/u-strconv-to-enc.h: New file.
42203         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42204         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42206         * modules/uniconv/u8-strconv-to-enc: New file.
42207         * lib/uniconv/u8-strconv-to-enc.c: New file.
42208         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42209         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42211         * modules/uniconv/u32-strconv-from-enc: New file.
42212         * lib/uniconv/u32-strconv-from-enc.c: New file.
42213         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42214         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42216         * modules/uniconv/u16-strconv-from-enc: New file.
42217         * lib/uniconv/u16-strconv-from-enc.c: New file.
42218         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42219         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42221         * modules/uniconv/u8-strconv-from-enc: New file.
42222         * lib/uniconv/u8-strconv-from-enc.c: New file.
42223         * lib/uniconv/u-strconv-from-enc.h: New file.
42224         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42225         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42227         * modules/uniconv/u32-conv-from-enc: New file.
42228         * lib/uniconv/u32-conv-from-enc.c: New file.
42229         * modules/uniconv/u32-conv-from-enc-tests: New file.
42230         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42232         * modules/uniconv/u16-conv-from-enc: New file.
42233         * lib/uniconv/u16-conv-from-enc.c: New file.
42234         * lib/uniconv/u-conv-from-enc.h: New file.
42235         * modules/uniconv/u16-conv-from-enc-tests: New file.
42236         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42238         * modules/uniconv/u8-conv-from-enc: New file.
42239         * lib/uniconv/u8-conv-from-enc.c: New file.
42240         * modules/uniconv/u8-conv-from-enc-tests: New file.
42241         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42243         * modules/uniconv/base: New file.
42244         * lib/uniconv.h: New file.
42246 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42248         * doc/gnulib-tool.texi (Initial import): Update to match current
42249         behavior with strdup module.
42250         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42251         * lib/memmem.h: Remove; all uses removed.  This is now done
42252         by <string.h>.
42253         * lib/mempcpy.h: Likewise.
42254         * lib/memrchr.h: Likewise.
42255         * lib/stpcpy.h: Likewise.
42256         * lib/stpncpy.h: Likewise.
42257         * lib/strcase.h: Likewise.
42258         * lib/strchrnul.h: Likewise.
42259         * lib/strdup.h: Likewise.
42260         * lib/strndup.h: Likewise.
42261         * lib/strnlen.h: Likewise.
42262         * lib/strpbrk.h: Likewise.
42263         * lib/strsep.h: Likewise.
42264         * lib/strstr.h: Likewise.
42265         * lib/strtok_r.h: Likewise.
42266         * lib/string_.h: New file.
42267         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42268         Rely on <string.h> instead.
42269         * lib/canon-host.c: Likewise.
42270         * lib/chdir-long.c: Likewise.
42271         * lib/concatpath.c: Likewise.
42272         * lib/exclude.c: Likewise.
42273         * lib/fchdir.c: Likewise.
42274         * lib/getaddrinfo.c: Likewise.
42275         * lib/getcwd.c: Likewise.
42276         * lib/getsubopt.c: Likewise.
42277         * lib/glob.c: Likewise.
42278         * lib/hard-locale.c: Likewise.
42279         * lib/iconvme.c: Likewise.
42280         * lib/javacomp.c: Likewise.
42281         * lib/mempcpy.c: Likewise.
42282         * lib/memrchr.c: Likewise.
42283         * lib/regex_internal.h: Likewise.
42284         * lib/stpncpy.c: Likewise.
42285         * lib/strcasecmp.c: Likewise.
42286         * lib/strchrnul.c: Likewise.
42287         * lib/strdup.c: Likewise.
42288         * lib/striconv.c: Likewise.
42289         * lib/striconveh.c: Likewise.
42290         * lib/striconveha.c: Likewise.
42291         * lib/strncasecmp.c: Likewise.
42292         * lib/strndup.c: Likewise.
42293         * lib/strnlen.c: Likewise.
42294         * lib/strsep.c: Likewise.
42295         * lib/strstr.c: Likewise.
42296         * lib/strtok_r.c: Likewise.
42297         * lib/userspec.c: Likewise.
42298         * lib/w32spawn.h: Likewise.
42299         * lib/xstrndup.c: Likewise.
42300         * lib/mountlist.c (strstr): Remove decl.
42301         * m4/string_h.m4: New file.
42302         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42303         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42304         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
42305         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
42306         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
42307         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
42308         Set REPLACE_STRCASECMP if necessary.
42309         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
42310         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
42311         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
42312         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
42313         HAVE_DECL_STRDUP if necessary.
42314         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
42315         since gl_FUNC_STRNDUP does that now.
42316         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
42317         Check for decl here...
42318         (gl_PREREQ_STRNLEN): ... not here.
42319         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
42320         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
42321         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
42322         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
42323         necessary.
42324         * modules/string: New file.
42325         * modules/memmem (Files): Remove special-purpose include file.
42326         (Depends-on): Add string.
42327         (Include): Include <string.h>, not the removed file.
42328         * modules/mempcpy: Likewise.
42329         * modules/memrchr: Likewise.
42330         * modules/stpcpy: Likewise.
42331         * modules/stpncpy: Likewise.
42332         * modules/strcase: Likewise.
42333         * modules/strchrnul: Likewise.
42334         * modules/strdup: Likewise.
42335         * modules/strndup: Likewise.
42336         * modules/strnlen: Likewise.
42337         * modules/strpbrk: Likewise.
42338         * modules/strsep: Likewise.
42339         * modules/strstr: Likewise.
42340         * modules/strtok_r: Likewise.
42341         * tests/test-dirname.c: Don't include "strdup.h", since
42342         <string.h> now suffices.
42343         * tests/test-memmem.c: Don't include "memmem.h", since
42344         <string.h> now suffices.
42346 2007-01-25  Bruno Haible  <bruno@clisp.org>
42348         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
42349         *resultp is 0.
42351         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
42352         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
42353         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
42354         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
42356         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
42357         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
42358         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
42359         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
42360         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
42361         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
42363 2007-01-24  Bruno Haible  <bruno@clisp.org>
42365         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
42366         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
42367         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
42368         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
42369         gl_FUNC_FTS_CORE.
42370         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
42371         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
42372         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42373         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
42374         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
42375         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
42376         gl_FUNC_FCHOWNAT.
42377         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
42378         gl_FUNC_STRFTIME.
42379         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
42380         Reported by Ralf Wildenhues.
42382 2007-01-24  Bruno Haible  <bruno@clisp.org>
42384         Drop AC_REQUIRE calls that are redundant with the module dependencies.
42385         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
42386         gl_GETADDRINFO.
42387         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
42388         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
42389         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
42391 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
42393         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
42394         Don't use 'exit'; just return from 'main'.
42395         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
42397         * lib/fnmatch_.h: Readjust white space and comments to match
42398         glibc, to avoid spurious diffs.
42400 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42402         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
42403         2004-12-01 change by Jakub Jelinek, since this code won't compile
42404         if !LIBC.  Problem reported by Bob Proulx.
42406 2007-01-23  Bruno Haible  <bruno@clisp.org>
42408         * lib/striconveh.c: Include c-strcaseeq.h.
42409         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
42410         * modules/striconveh (Depends-on): Add c-strcaseeq.
42412 2007-01-23  Bruno Haible  <bruno@clisp.org>
42414         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
42416         * modules/c-strcaseeq: New file.
42417         * lib/c-strcaseeq.h: New file.
42419         * modules/streq: New file.
42420         * lib/streq.h: New file.
42422 2007-01-23  Bruno Haible  <bruno@clisp.org>
42424         * modules/striconveha-tests: New file.
42425         * tests/test-striconveha.c: New file.
42427         * lib/striconveha.h: Include <stdbool.h>.
42428         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
42429         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
42430         (mem_iconveha_notranslit): Renamed from mem_iconveha.
42431         (mem_iconveha): New function.
42432         (str_iconveha_notranslit): Renamed from str_iconveha.
42433         (str_iconveha): New function.
42434         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
42435         c-strcase.
42437 2007-01-23  Bruno Haible  <bruno@clisp.org>
42439         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
42440         encodings without forgiving before trying any encoding with handler.
42441         (str_iconveha): Try all encodings without forgiving before trying any
42442         encoding with handler.
42444 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42446         Import the following changes from libc.
42448         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
42450         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
42452         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42454         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
42455         normal_bracket label.
42457         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
42459         [BZ #361]
42460         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
42461         to normal_bracket after fetching the next character.
42463 2007-01-22  Bruno Haible  <bruno@clisp.org>
42465         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
42466         argument.
42467         * lib/striconveh.c (iconv_carefully_1): New function.
42468         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
42469         argument.
42470         (str_cd_iconveh): Update.
42471         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
42472         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
42473         * tests/test-striconveh.c (MAGIC): New macro.
42474         (new_offsets): New function.
42475         (main): Test call with and without offsets.
42477 2007-01-22  Bruno Haible  <bruno@clisp.org>
42479         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
42480         * modules/sys_select (Makefile.am): Likewise.
42481         * modules/sys_socket (Makefile.am): Likewise.
42482         * modules/sys_time (Makefile.am): Likewise.
42484 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
42486         * modules/gettimeofday (License): Change from GPL to LGPL, since
42487         gettimeofday is a library function.
42489 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42491         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
42493 2007-01-21  Bruno Haible  <bruno@clisp.org>
42495         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
42497 2007-01-21  Bruno Haible  <bruno@clisp.org>
42499         * modules/striconveha: New file.
42500         * lib/striconveha.h: New file.
42501         * lib/striconveha.c: New file.
42502         * MODULES.html.sh (Internationalization functions): Add striconveha.
42503         * lib/striconv.c (str_iconv): Optimize the case of an empty input
42504         string.
42505         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
42507 2007-01-21  Bruno Haible  <bruno@clisp.org>
42509         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
42510         * lib/striconveh.c (str_iconveh): Likewise.
42512 2007-01-21  Bruno Haible  <bruno@clisp.org>
42514         * lib/striconveh.h (mem_iconveh): New declaration.
42515         * lib/striconveh.c (mem_iconveh): New function.
42516         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
42518 2007-01-21  Bruno Haible  <bruno@clisp.org>
42520         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
42522         * lib/striconveh.h (mem_cd_iconveh): Change specification.
42523         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
42524         original result buffer.
42525         (str_cd_iconveh): Update.
42526         * tests/test-striconveh.c (main): Update.
42528         * lib/striconv.h (mem_cd_iconv): Change specification.
42529         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
42530         result buffer.
42531         (str_cd_iconv): Update.
42532         * tests/test-striconv.c (main): Update.
42534 2007-01-21  Bruno Haible  <bruno@clisp.org>
42536         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
42538 2007-01-20  Jim Meyering  <jim@meyering.net>
42540         * lib/userspec.c (parse_with_separator): If a user or group string
42541         starts with "+", skip the corresponding name-to-ID look-up, since
42542         such a look-up must fail: user and group names may not include "+".
42544 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42546         * lib/poll.c: Include sys/time.h and time.h unconditionally,
42547         since we now assume the sys_time module.
42548         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
42549         check for sys/time.h; no longer needed.
42550         * modules/poll (Depends-on): Depend on sys_time.
42552 2007-01-18  Bruno Haible  <bruno@clisp.org>
42554         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
42555         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42557         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
42558         gettimeofday.
42560         * tests/test-gettimeofday.c: Include <time.h>.
42561         (dummy): Remove variable.
42563         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
42564         gl_HEADER_SYS_TIME_H.
42565         (gl_HEADER_SYS_TIME_H): New macro.
42567         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
42568         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42569         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
42570         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
42571         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42572         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
42573         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
42574         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42575         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
42576         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
42577         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42579         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
42580         last change; it caused a compilation error when cross-compiling to
42581         Cygwin.
42583 2007-01-18  Jim Meyering  <jim@meyering.net>
42585         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
42586         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
42587         than the race-prone "test -d sys || mkdir sys".
42588         (configure.ac): Use AC_PROG_MKDIR_P.
42589         * modules/sys_select: Likewise.
42590         * modules/sys_socket: Likewise.
42591         * modules/sys_time: Likewise.
42593 2007-01-18  Eric Blake  <ebb9@byu.net>
42595         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
42596         replace gettimeofday.
42597         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
42598         name, to avoid infinite recursion.
42600 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
42602         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
42603         module sys_time.
42604         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
42605         assume timespec.h defines struct timeval.
42606         * lib/settime.c: Likewise.
42607         * lib/utimens.c: Likewise.
42608         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
42609         since we now assume the gettimeofday module.
42610         * lib/tempname.c (__gen_tempname): Likewise.
42611         * lib/gettimeofday.h: Remove.
42612         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
42613         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
42614         Include <time.h>, for 'time()'.
42615         (localtime_buffer_addr): Also use this workaround if
42616         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
42617         to simplify the uses.  All uses changed.
42618         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
42619         that #undef is inside {}, and 'const' follows type name consistently.
42620         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
42621         (gettimeofday): Do not use the maximum possible value for
42622         tv->tv_usec, since that might break usages other than ls.c.
42623         Instead, we'll leave ls.c alone.  This undoes today's patch
42624         by Bruno.  Add a compile-time warning for 1s-clock resolution;
42625         we've never observed the problem but might as well keep the
42626         canary.
42627         * lib/nanosleep.c: Include timespec.h first, for interface check.
42628         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
42629         now assume the sys_time module.
42630         * lib/tempname.c: Likewise.
42631         * lib/timespec.h: Likewise.
42632         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
42633         needed.
42634         * lib/strftime.c: Likewise.
42635         * lib/timespec.h: Likewise.
42636         * lib/posixtm.c: Include posixtm.h first, for interface check.
42637         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
42638         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
42639         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
42640         * lib/sys_time_.h: New file.
42641         * lib/timespec.h (struct timespec): Use long int, not long.
42642         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42643         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
42644         Remove obsolescent call to AC_HEADER_TIME.
42645         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42647         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42648         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
42649         Likewise.
42650         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
42651         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
42652         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
42653         into the sys_time module.  Check for gettimeofday just once.
42654         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
42655         for gettimeofday signature to just check the signature.  Merely
42656         compile it, since linking doesn't test signature.  Improve test for
42657         whether gettimeofday.o is actually needed.
42658         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
42659         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
42660         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
42661         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42662         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
42663         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
42664         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
42665         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
42666         than worrying about sys/time.h.
42667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42668         Don't bother worrying about TIME_WITH_SYS_TIME.
42669         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42670         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
42671         * m4/sys_time_h.m4: New file.
42672         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
42673         Don't include sys/time.h.  Return from main rather than exiting.
42674         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
42675         all uses changed.
42676         * modules/gethrxtime (Depends-on): Add sys_time.
42677         * modules/gettime (Depends-on): Likewise.
42678         * modules/gettimeofday (Depends-on): Likewise.
42679         * modules/nanosleep (Depends-on): Likewise.
42680         * modules/settime (Depends-on): Likewise.
42681         * modules/tempname (Depends-on): Likewise.
42682         * modules/utimens (Depends-on): Likewise.
42683         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
42684         (Include:) Change back to <sys/time.h>.
42685         (Maintainer:) Add self.
42686         * modules/sys_time: New file.
42687         * modules/tempname (Depends-on): Add gettimeofday.
42688         * tests/test-gettimeofday.c: Include <sys/time.h>
42689         rather than gettimeofday.h.
42691 2007-01-17  Bruno Haible  <bruno@clisp.org>
42693         * gnulib-tool (func_get_license): Revert last patch. Instead, let
42694         the license default to GPL.
42695         (func_create_testdir): Don't complain if a module is LGPL and its
42696         tests module depends on GPLed modules.
42698 2007-01-17  Bruno Haible  <bruno@clisp.org>
42700         * lib/gettimeofday.c (gettimeofday): Add code for the case
42701         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
42702         maximum possible value for tv->tv_usec, rather than the minimum one.
42704 2005-10-08  Martin Lambers  <marlam@marlam.de>
42705 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42706 2007-01-16  Bruno Haible  <bruno@clisp.org>
42708         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
42709         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
42710         gl_FUNC_GETTIMEOFDAY.
42711         (Include): Add gettimeofday.h.
42712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
42713         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
42714         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
42715         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
42716         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
42717         * lib/gettimeofday.h: New file.
42718         * lib/gettimeofday.c: Include <sys/timeb.h>.
42719         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
42720         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42721         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
42722         fall back on time().
42724         * tests/test-gettimeofday.c: New file.
42725         * modules/gettimeofday-tests: New file.
42727 2007-01-16  Eric Blake  <ebb9@byu.net>
42729         * modules/fnmatch (Depends-on): Depend on wchar.
42730         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
42731         * m4/fnmatch.m4: Likewise.
42732         * modules/mbchar (Makefile.am): Assume <wchar.h>.
42733         * m4/mbchar.m4: Likewise.
42734         * modules/mbswidth (Depends-on): Depend on wchar.
42735         * lib/mbswidth.c: Assume <wchar.h>.
42736         * m4/mbswidth.m4: Likewise.
42737         * modules/quotearg (Depends-on): Depend on wchar.
42738         * lib/quotearg.c: Assume <wchar.h>.
42739         * m4/quotearg.m4: Likewise.
42740         * modules/regex (Depends-on): Depend on wchar.
42741         * lib/regex_internal.h: Assume <wchar.h>.
42742         * m4/regex.m4: Likewise.
42743         * modules/stdint (Depends-on): Depend on wchar.
42744         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
42745         * m4/stdint.m4: Likewise.
42746         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
42747         * modules/strftime (Depends-on): Depend on wchar.
42748         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
42749         * modules/strtol (Depends-on): Depend on wchar.
42750         * lib/strtol.c: Assume <wchar.h>.
42751         * modules/wcwidth (Depends-on): Depend on wchar.
42752         * lib/wcwidth.h: Assume <wchar.h>.
42753         * m4/wcwidth.m4: Likewise.
42755 2007-01-16  Bruno Haible  <bruno@clisp.org>
42757         * modules/csharpexec-script: New, created from...
42758         * modules/csharpexec: ... this.
42760 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42762         * modules/javaexec-script: New, created from...
42763         * modules/javaexec: ... this.
42765 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42767         * modules/poll (Dependencies): Add sys_select.
42769 2007-01-15  Jim Meyering  <jim@meyering.net>
42771         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
42772         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
42773         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
42774         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
42776 2007-01-15  Bruno Haible  <bruno@clisp.org>
42778         * modules/striconveh: New file.
42779         * lib/striconveh.h: New file.
42780         * lib/striconveh.c: New file.
42781         * MODULES.html.sh (Internationalization functions): Add striconveh.
42783         * modules/striconveh-tests: New file.
42784         * tests/test-striconveh.c: New file.
42786 2007-01-15  Bruno Haible  <bruno@clisp.org>
42788         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
42789         not from GNU libiconv or GNU libc.
42791 2007-01-15  Bruno Haible  <bruno@clisp.org>
42793         * doc/gnulib-intro.texi (Copyright): Explain the different license
42794         terms for module descriptions, autoconf macros, tests, documentation.
42796 2007-01-14  Bruno Haible  <bruno@clisp.org>
42798         * modules/striconv-tests: New file.
42799         * tests/test-striconv.c: New file.
42801 2007-01-14  Bruno Haible  <bruno@clisp.org>
42803         * modules/iconv-tests: New file.
42804         * tests/test-iconv.c: New file.
42806 2007-01-14  Bruno Haible  <bruno@clisp.org>
42808         * gnulib-tool (func_get_license): For test modules, use the license of
42809         the main module.
42811 2007-01-14  Bruno Haible  <bruno@clisp.org>
42813         * modules/iconv (Include): Clarify that <iconv.h> can only be included
42814         if iconv is found to exist.
42816 2007-01-14  Bruno Haible  <bruno@clisp.org>
42818         * modules/c-ctype-tests: New file.
42819         * tests/test-c-ctype.c: New file.
42821 2007-01-14  Bruno Haible  <bruno@clisp.org>
42823         * modules/binary-io-tests: New file.
42824         * tests/test-binary-io.sh: New file.
42825         * tests/test-binary-io.c: New file.
42827 2007-01-14  Bruno Haible  <bruno@clisp.org>
42829         * modules/array-oset-tests: New file.
42830         * tests/test-array_oset.c: New file.
42832 2007-01-14  Bruno Haible  <bruno@clisp.org>
42834         * modules/array-list-tests: New file.
42835         * tests/test-array_list.c: New file.
42837 2007-01-14  Bruno Haible  <bruno@clisp.org>
42839         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
42840         and make.
42841         Reported by Simon Josefsson in
42842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
42844 2007-01-14  Bruno Haible  <bruno@clisp.org>
42846         * modules/allocsa-tests: New file.
42847         * tests/test-allocsa.c: New file.
42849 2007-01-14  Bruno Haible  <bruno@clisp.org>
42851         * modules/fchdir (Depends-on): Add absolute-header.
42852         * modules/unistd (Depends-on): Likewise.
42854 2006-12-30  Bruno Haible  <bruno@clisp.org>
42856         * modules/fchdir: New file.
42857         * modules/unistd (Files): Add lib/unistd_.h.
42858         (Makefile.am): Generate unistd.h from unistd_.h.
42859         * lib/fchdir.c: New file.
42860         * lib/dirent_.h: New file.
42861         * lib/unistd_.h: New file.
42862         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
42863         * m4/fchdir.m4: New file.
42864         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
42865         (gl_HEADER_UNISTD): Invoke it.
42866         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
42867         function.
42868         * lib/backupfile.c (opendir, closedir): Undefine.
42869         * lib/chown.c (open, close): Undefine.
42870         * lib/clean-temp.c (open, close): Undefine.
42871         * lib/copy-file.c (open, close): Undefine.
42872         * lib/execute.c (open, close): Undefine.
42873         * lib/fsusage.c (open, close): Undefine.
42874         * lib/gc-gnulib.c (open, close): Undefine.
42875         * lib/getcwd.c (opendir, closedir): Undefine.
42876         * lib/glob.c (opendir, closedir): Undefine.
42877         * lib/javacomp.c (open, close): Undefine.
42878         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
42879         * lib/openat-proc.c (open, close): Undefine.
42880         * lib/pagealign_alloc.c (open, close): Undefine.
42881         * lib/pipe.c (open, close): Undefine.
42882         * lib/progreloc.c (open, close): Undefine.
42883         * lib/savedir.c (opendir, closedir): Undefine.
42884         * lib/utime.c (open, close): Undefine.
42885         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
42887 2007-01-10  Bruno Haible  <bruno@clisp.org>
42889         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
42891 2007-01-12  Eric Blake  <ebb9@byu.net>
42893         Provide a robust <wchar.h>.  Further simplifications are now
42894         possible in other modules, but not included here.
42895         * modules/wchar: New module.
42896         * m4/wchar.m4: New file.
42897         * lib/wchar_.h: Likewise.
42898         * modules/mbchar (Depends-on): Depend on wchar, as the first use
42899         of the new module.
42900         * MODULES.html.sh (Extended multibyte and wide character utilities):
42901         New section.
42903 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
42905         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
42906         to a reasonable default for memory allocation.
42907         (xreadlink): Don't allocate a huge buffer, to work around a buggy
42908         file system that reports garbage st_size values for symlinks.
42909         Problem reported by Liyang Hu.
42911 2007-01-11  Simon Josefsson  <simon@josefsson.org>
42913         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
42914         Emacs .#* auto-save files).
42916 2007-01-11  Bruno Haible  <bruno@clisp.org>
42918         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
42919         directory.
42921 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
42923         Use @...@ consistently in lib/wctype_.h.
42924         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
42925         on it being set to 1 or 0.
42926         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
42927         go back to AC_SUBSTing it.
42928         * modules/wctype (Makefile.am): Undo previous change.
42930 2007-01-10  Eric Blake  <ebb9@byu.net>
42932         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
42933         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
42934         * modules/wctype (Makefile.am): Likewise.
42935         Reported by Chris McGuire.
42937 2007-01-10  Jim Meyering  <jim@meyering.net>
42939         fts.c: a small readability/maintainability improvement
42940         * lib/fts.c (fts_read): Make this code slightly more readable and
42941         maintainable by hoisting the "sp->fts_cur = p" assignments to
42942         immediately follow the statements that set P.  Derived from
42943         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
42945 2007-01-10  Eric Blake  <ebb9@byu.net>
42947         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
42948         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
42949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42950         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42951         Reported by Chris McGuire.
42953 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42955         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
42956         in sed script.
42958 2007-01-09  Bruno Haible  <bruno@clisp.org>
42960         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
42961         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
42962         variables.
42963         (func_module): Use them.
42965 2007-01-09  Bruno Haible  <bruno@clisp.org>
42967         * modules/unistr/base: New file.
42968         * lib/unistr.h: New file.
42970         * modules/unistr/u8-to-u16: New file.
42971         * lib/unistr/u8-to-u16.c: New file.
42973         * modules/unistr/u8-to-u32: New file.
42974         * lib/unistr/u8-to-u32.c: New file.
42976         * modules/unistr/u16-to-u8: New file.
42977         * lib/unistr/u16-to-u8.c: New file.
42979         * modules/unistr/u16-to-u32: New file.
42980         * lib/unistr/u16-to-u32.c: New file.
42982         * modules/unistr/u32-to-u8: New file.
42983         * lib/unistr/u32-to-u8.c: New file.
42985         * modules/unistr/u32-to-u16: New file.
42986         * lib/unistr/u32-to-u16.c: New file.
42988         * modules/unistr/u8-check: New file.
42989         * modules/unistr/u16-check: New file.
42990         * modules/unistr/u32-check: New file.
42991         * lib/unistr/u8-check.c: New file.
42992         * lib/unistr/u16-check.c: New file.
42993         * lib/unistr/u32-check.c: New file.
42995         * modules/unistr/u8-chr: New file.
42996         * modules/unistr/u16-chr: New file.
42997         * modules/unistr/u32-chr: New file.
42998         * lib/unistr/u8-chr.c: New file.
42999         * lib/unistr/u16-chr.c: New file.
43000         * lib/unistr/u32-chr.c: New file.
43002         * modules/unistr/u8-cmp: New file.
43003         * modules/unistr/u16-cmp: New file.
43004         * modules/unistr/u32-cmp: New file.
43005         * lib/unistr/u8-cmp.c: New file.
43006         * lib/unistr/u16-cmp.c: New file.
43007         * lib/unistr/u32-cmp.c: New file.
43009         * modules/unistr/u8-cpy: New file.
43010         * modules/unistr/u16-cpy: New file.
43011         * modules/unistr/u32-cpy: New file.
43012         * lib/unistr/u8-cpy.c: New file.
43013         * lib/unistr/u16-cpy.c: New file.
43014         * lib/unistr/u32-cpy.c: New file.
43015         * lib/unistr/u-cpy.h: New file.
43017         * modules/unistr/u8-cpy-alloc: New file.
43018         * modules/unistr/u16-cpy-alloc: New file.
43019         * modules/unistr/u32-cpy-alloc: New file.
43020         * lib/unistr/u8-cpy-alloc.c: New file.
43021         * lib/unistr/u16-cpy-alloc.c: New file.
43022         * lib/unistr/u32-cpy-alloc.c: New file.
43023         * lib/unistr/u-cpy-alloc.h: New file.
43025         * modules/unistr/u8-endswith: New file.
43026         * modules/unistr/u16-endswith: New file.
43027         * modules/unistr/u32-endswith: New file.
43028         * lib/unistr/u8-endswith.c: New file.
43029         * lib/unistr/u16-endswith.c: New file.
43030         * lib/unistr/u32-endswith.c: New file.
43031         * lib/unistr/u-endswith.h: New file.
43033         * modules/unistr/u8-mblen: New file.
43034         * modules/unistr/u16-mblen: New file.
43035         * modules/unistr/u32-mblen: New file.
43036         * lib/unistr/u8-mblen.c: New file.
43037         * lib/unistr/u16-mblen.c: New file.
43038         * lib/unistr/u32-mblen.c: New file.
43040         * modules/unistr/u8-mbtouc: New file.
43041         * modules/unistr/u16-mbtouc: New file.
43042         * modules/unistr/u32-mbtouc: New file.
43043         * lib/unistr/u8-mbtouc.c: New file.
43044         * lib/unistr/u16-mbtouc.c: New file.
43045         * lib/unistr/u32-mbtouc.c: New file.
43047         * modules/unistr/u8-mbtouc-safe: New file.
43048         * modules/unistr/u16-mbtouc-safe: New file.
43049         * modules/unistr/u32-mbtouc-safe: New file.
43050         * lib/unistr/u8-mbtouc-safe.c: New file.
43051         * lib/unistr/u16-mbtouc-safe.c: New file.
43052         * lib/unistr/u32-mbtouc-safe.c: New file.
43054         * modules/unistr/u8-move: New file.
43055         * modules/unistr/u16-move: New file.
43056         * modules/unistr/u32-move: New file.
43057         * lib/unistr/u8-move.c: New file.
43058         * lib/unistr/u16-move.c: New file.
43059         * lib/unistr/u32-move.c: New file.
43060         * lib/unistr/u-move.h: New file.
43062         * modules/unistr/u8-next: New file.
43063         * modules/unistr/u16-next: New file.
43064         * modules/unistr/u32-next: New file.
43065         * lib/unistr/u8-next.c: New file.
43066         * lib/unistr/u16-next.c: New file.
43067         * lib/unistr/u32-next.c: New file.
43069         * modules/unistr/u8-prev: New file.
43070         * modules/unistr/u16-prev: New file.
43071         * modules/unistr/u32-prev: New file.
43072         * lib/unistr/u8-prev.c: New file.
43073         * lib/unistr/u16-prev.c: New file.
43074         * lib/unistr/u32-prev.c: New file.
43076         * modules/unistr/u8-set: New file.
43077         * modules/unistr/u16-set: New file.
43078         * modules/unistr/u32-set: New file.
43079         * lib/unistr/u8-set.c: New file.
43080         * lib/unistr/u16-set.c: New file.
43081         * lib/unistr/u32-set.c: New file.
43082         * lib/unistr/u-set.h: New file.
43084         * modules/unistr/u8-startswith: New file.
43085         * modules/unistr/u16-startswith: New file.
43086         * modules/unistr/u32-startswith: New file.
43087         * lib/unistr/u8-startswith.c: New file.
43088         * lib/unistr/u16-startswith.c: New file.
43089         * lib/unistr/u32-startswith.c: New file.
43090         * lib/unistr/u-startswith.h: New file.
43092         * modules/unistr/u8-stpcpy: New file.
43093         * modules/unistr/u16-stpcpy: New file.
43094         * modules/unistr/u32-stpcpy: New file.
43095         * lib/unistr/u8-stpcpy.c: New file.
43096         * lib/unistr/u16-stpcpy.c: New file.
43097         * lib/unistr/u32-stpcpy.c: New file.
43098         * lib/unistr/u-stpcpy.h: New file.
43100         * modules/unistr/u8-stpncpy: New file.
43101         * modules/unistr/u16-stpncpy: New file.
43102         * modules/unistr/u32-stpncpy: New file.
43103         * lib/unistr/u8-stpncpy.c: New file.
43104         * lib/unistr/u16-stpncpy.c: New file.
43105         * lib/unistr/u32-stpncpy.c: New file.
43106         * lib/unistr/u-stpncpy.h: New file.
43108         * modules/unistr/u8-strcat: New file.
43109         * modules/unistr/u16-strcat: New file.
43110         * modules/unistr/u32-strcat: New file.
43111         * lib/unistr/u8-strcat.c: New file.
43112         * lib/unistr/u16-strcat.c: New file.
43113         * lib/unistr/u32-strcat.c: New file.
43114         * lib/unistr/u-strcat.h: New file.
43116         * modules/unistr/u8-strchr: New file.
43117         * modules/unistr/u16-strchr: New file.
43118         * modules/unistr/u32-strchr: New file.
43119         * lib/unistr/u8-strchr.c: New file.
43120         * lib/unistr/u16-strchr.c: New file.
43121         * lib/unistr/u32-strchr.c: New file.
43123         * modules/unistr/u8-strcmp: New file.
43124         * modules/unistr/u16-strcmp: New file.
43125         * modules/unistr/u32-strcmp: New file.
43126         * lib/unistr/u8-strcmp.c: New file.
43127         * lib/unistr/u16-strcmp.c: New file.
43128         * lib/unistr/u32-strcmp.c: New file.
43130         * modules/unistr/u8-strcpy: New file.
43131         * modules/unistr/u16-strcpy: New file.
43132         * modules/unistr/u32-strcpy: New file.
43133         * lib/unistr/u8-strcpy.c: New file.
43134         * lib/unistr/u16-strcpy.c: New file.
43135         * lib/unistr/u32-strcpy.c: New file.
43136         * lib/unistr/u-strcpy.h: New file.
43138         * modules/unistr/u8-strcspn: New file.
43139         * modules/unistr/u16-strcspn: New file.
43140         * modules/unistr/u32-strcspn: New file.
43141         * lib/unistr/u8-strcspn.c: New file.
43142         * lib/unistr/u16-strcspn.c: New file.
43143         * lib/unistr/u32-strcspn.c: New file.
43144         * lib/unistr/u-strcspn.h: New file.
43146         * modules/unistr/u8-strdup: New file.
43147         * modules/unistr/u16-strdup: New file.
43148         * modules/unistr/u32-strdup: New file.
43149         * lib/unistr/u8-strdup.c: New file.
43150         * lib/unistr/u16-strdup.c: New file.
43151         * lib/unistr/u32-strdup.c: New file.
43152         * lib/unistr/u-strdup.h: New file.
43154         * modules/unistr/u8-strlen: New file.
43155         * modules/unistr/u16-strlen: New file.
43156         * modules/unistr/u32-strlen: New file.
43157         * lib/unistr/u8-strlen.c: New file.
43158         * lib/unistr/u16-strlen.c: New file.
43159         * lib/unistr/u32-strlen.c: New file.
43160         * lib/unistr/u-strlen.h: New file.
43162         * modules/unistr/u8-strmblen: New file.
43163         * modules/unistr/u16-strmblen: New file.
43164         * modules/unistr/u32-strmblen: New file.
43165         * lib/unistr/u8-strmblen.c: New file.
43166         * lib/unistr/u16-strmblen.c: New file.
43167         * lib/unistr/u32-strmblen.c: New file.
43169         * modules/unistr/u8-strmbtouc: New file.
43170         * modules/unistr/u16-strmbtouc: New file.
43171         * modules/unistr/u32-strmbtouc: New file.
43172         * lib/unistr/u8-strmbtouc.c: New file.
43173         * lib/unistr/u16-strmbtouc.c: New file.
43174         * lib/unistr/u32-strmbtouc.c: New file.
43176         * modules/unistr/u8-strncat: New file.
43177         * modules/unistr/u16-strncat: New file.
43178         * modules/unistr/u32-strncat: New file.
43179         * lib/unistr/u8-strncat.c: New file.
43180         * lib/unistr/u16-strncat.c: New file.
43181         * lib/unistr/u32-strncat.c: New file.
43182         * lib/unistr/u-strncat.h: New file.
43184         * modules/unistr/u8-strncmp: New file.
43185         * modules/unistr/u16-strncmp: New file.
43186         * modules/unistr/u32-strncmp: New file.
43187         * lib/unistr/u8-strncmp.c: New file.
43188         * lib/unistr/u16-strncmp.c: New file.
43189         * lib/unistr/u32-strncmp.c: New file.
43191         * modules/unistr/u8-strncpy: New file.
43192         * modules/unistr/u16-strncpy: New file.
43193         * modules/unistr/u32-strncpy: New file.
43194         * lib/unistr/u8-strncpy.c: New file.
43195         * lib/unistr/u16-strncpy.c: New file.
43196         * lib/unistr/u32-strncpy.c: New file.
43197         * lib/unistr/u-strncpy.h: New file.
43199         * modules/unistr/u8-strnlen: New file.
43200         * modules/unistr/u16-strnlen: New file.
43201         * modules/unistr/u32-strnlen: New file.
43202         * lib/unistr/u8-strnlen.c: New file.
43203         * lib/unistr/u16-strnlen.c: New file.
43204         * lib/unistr/u32-strnlen.c: New file.
43205         * lib/unistr/u-strnlen.h: New file.
43207         * modules/unistr/u8-strpbrk: New file.
43208         * modules/unistr/u16-strpbrk: New file.
43209         * modules/unistr/u32-strpbrk: New file.
43210         * lib/unistr/u8-strpbrk.c: New file.
43211         * lib/unistr/u16-strpbrk.c: New file.
43212         * lib/unistr/u32-strpbrk.c: New file.
43213         * lib/unistr/u-strpbrk.h: New file.
43215         * modules/unistr/u8-strrchr: New file.
43216         * modules/unistr/u16-strrchr: New file.
43217         * modules/unistr/u32-strrchr: New file.
43218         * lib/unistr/u8-strrchr.c: New file.
43219         * lib/unistr/u16-strrchr.c: New file.
43220         * lib/unistr/u32-strrchr.c: New file.
43222         * modules/unistr/u8-strspn: New file.
43223         * modules/unistr/u16-strspn: New file.
43224         * modules/unistr/u32-strspn: New file.
43225         * lib/unistr/u8-strspn.c: New file.
43226         * lib/unistr/u16-strspn.c: New file.
43227         * lib/unistr/u32-strspn.c: New file.
43228         * lib/unistr/u-strspn.h: New file.
43230         * modules/unistr/u8-strstr: New file.
43231         * modules/unistr/u16-strstr: New file.
43232         * modules/unistr/u32-strstr: New file.
43233         * lib/unistr/u8-strstr.c: New file.
43234         * lib/unistr/u16-strstr.c: New file.
43235         * lib/unistr/u32-strstr.c: New file.
43236         * lib/unistr/u-strstr.h: New file.
43238         * modules/unistr/u8-strtok: New file.
43239         * modules/unistr/u16-strtok: New file.
43240         * modules/unistr/u32-strtok: New file.
43241         * lib/unistr/u8-strtok.c: New file.
43242         * lib/unistr/u16-strtok.c: New file.
43243         * lib/unistr/u32-strtok.c: New file.
43244         * lib/unistr/u-strtok.h: New file.
43246         * modules/unistr/u8-uctomb: New file.
43247         * modules/unistr/u16-uctomb: New file.
43248         * modules/unistr/u32-uctomb: New file.
43249         * lib/unistr/u8-uctomb.c: New file.
43250         * lib/unistr/u16-uctomb.c: New file.
43251         * lib/unistr/u32-uctomb.c: New file.
43253         * MODULES.html.sh (Unicode string functions): Add the new modules.
43255 2007-01-08  Bruno Haible  <bruno@clisp.org>
43257         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43258         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43259         subdirectories.
43261 2007-01-08  Karl Berry  <karl@gnu.org>
43263         * doc/error.texi: mention that main() fns must set program_name
43264         when progname is used.
43266 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43268         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43269         WCTYPE_H is empty, for the benefit of builds from non-distclean
43270         directories.  Problem reported by Eric Blake in
43271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43273 2007-01-08  Bruno Haible  <bruno@clisp.org>
43275         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43276         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43277         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43278         PROVIDE_CANONICALIZE_FILENAME_MODE.
43279         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43281 2007-01-08  Bruno Haible  <bruno@clisp.org>
43283         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43284         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43285         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43286         * lib/fts.c: Likewise.
43287         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43289 2006-12-25  Bruno Haible  <bruno@clisp.org>
43291         * modules/utf8-ucs4-safe: New file.
43292         * lib/utf8-ucs4-safe.h: New file.
43293         * lib/unistr/utf8-ucs4-safe.c: New file.
43295         * modules/utf16-ucs4-safe: New file.
43296         * lib/utf16-ucs4-safe.h: New file.
43297         * lib/unistr/utf16-ucs4-safe.c: New file.
43299         * MODULES.html.sh (Unicode string functions): Add the new modules.
43301 2007-01-08  Bruno Haible  <bruno@clisp.org>
43303         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43304         (Depends-on): Add unitypes.
43305         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43306         (u8_mbtouc_aux): Move out to separate file.
43307         (u8_mbtouc): Use ucs4_t, uint8_t types.
43308         * lib/unistr/utf8-ucs4.c: New file.
43310         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
43311         (Depends-on): Add unitypes.
43312         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43313         (u16_mbtouc_aux): Move out to separate file.
43314         (u16_mbtouc): Use ucs4_t, uint16_t types.
43315         * lib/unistr/utf16-ucs4.c: New file.
43317         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
43318         (Depends-on): Add unitypes.
43319         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
43320         (u8_uctomb_aux): Move out to separate file.
43321         (u8_uctomb): Use ucs4_t, uint8_t types.
43322         * lib/unistr/ucs4-utf8.c: New file.
43324         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
43325         (Depends-on): Add unitypes.
43326         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
43327         (u16_uctomb_aux): Move out to separate file.
43328         (u16_uctomb): Use ucs4_t, uint16_t types.
43329         * lib/unistr/ucs4-utf16.c: New file.
43331 2006-12-25  Bruno Haible  <bruno@clisp.org>
43333         * modules/unitypes: New file.
43334         * lib/unitypes.h: New file.
43335         * MODULES.html.sh (func_all_modules): New section "Unicode string
43336         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
43337         this section. Add unitypes.
43339 2007-01-08  Bruno Haible  <bruno@clisp.org>
43341         Avoid variable names that conflict with those from libtool.
43342         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
43343         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
43344         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
43345         library_names_spec to acl_library_names_spec, hardcode_* to
43346         acl_hardcode_*.
43347         Reported by Ralf Wildenhues.
43349 2007-01-08  Bruno Haible  <bruno@clisp.org>
43351         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
43352         definition.
43353         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
43354         definition.
43355         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
43356         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
43357         definition.
43358         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
43359         definition.
43360         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
43361         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
43362         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
43363         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
43364         definition.
43365         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
43366         definition.
43367         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
43368         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
43369         GC_USE_<algorithm>.
43370         * lib/gc-libgcrypt.c: Likewise.
43371         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
43372         * modules/gc-arctwo (configure.ac): Likewise.
43373         * modules/gc-des (configure.ac): Likewise.
43374         * modules/gc-hmac-md5 (configure.ac): Likewise.
43375         * modules/gc-hmac-sha1 (configure.ac): Likewise.
43376         * modules/gc-md2 (configure.ac): Likewise.
43377         * modules/gc-md4 (configure.ac): Likewise.
43378         * modules/gc-md5 (configure.ac): Likewise.
43379         * modules/gc-random (configure.ac): Likewise.
43380         * modules/gc-rijndael (configure.ac): Likewise.
43381         * modules/gc-sha1 (configure.ac): Likewise.
43383 2007-01-08  Bruno Haible  <bruno@clisp.org>
43385         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
43386         macro definition.
43387         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
43388         definition.
43389         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
43390         definition.
43391         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
43392         * modules/fcntl-safer (configure.ac): Likewise.
43393         * modules/fopen-safer (configure.ac): Likewise.
43394         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
43395         GNULIB_FWRITEERROR macro definition.
43397 2007-01-08  Bruno Haible  <bruno@clisp.org>
43399         * m4/gnulib-common.m4: New file.
43400         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
43401         (func_get_filelist): Add m4/gnulib-common.m4.
43403 2007-01-08  Bruno Haible  <bruno@clisp.org>
43405         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
43406         command.
43408 2007-01-08  Jim Meyering  <jim@meyering.net>
43410         Use a more robust test for a "can't happen" condition.
43411         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
43412         narrowed the st_size value.  Presuming the "can't happen" condition
43413         is true, that narrowing could conceivably convert an invalid st_size
43414         value into a valid one.  Instead, use a change based on Matthew
43415         Woehlke's original patch.
43417         Slight readability improvement: use an assert-like macro
43418         in place of literal "abort ()" uses.
43419         * lib/fts.c (fts_assert): Define.
43420         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
43421         Use this macro instead of a bare 'abort'.
43423 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43425         Don't worry about using IRIX 5.3's wctype.h broken definitions;
43426         simply work around them.
43427         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
43428         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
43429         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
43430         declaring.
43431         Don't bother to define as macros, since the standard doesn't require it.
43432         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
43433         longer worry about IRIX 5.3.
43434         (HAVE_WCTYPE_CTMP_BUG): Remove.
43436 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43438         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
43439         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
43440         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43441         Problems reported by Georg Schwarz for IRIX 5.3.
43443         * gnulib-tool (autoconf_minversion): Take the maximum version number
43444         found, not the minimum.  Problem reported by James Youngman.
43446 2007-01-03  Karl Berry  <karl@gnu.org>
43448         * doc/error.texi: new file, explaining interaction with progname.
43449         * doc/gnulib.texi: include it.  Update copyright.
43451 2007-01-03  Simon Josefsson  <simon@josefsson.org>
43453         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
43454         AC_CANONICAL_HOST, to improve autobuild outputs.
43456 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
43457             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43459         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
43460         sockets, server sockets, and other file descriptors.  Count errors
43461         to compute the return value.  Reorder the code a bit to be easier
43462         to follow.  Don't set event bits that were not requested (except
43463         POLLERR and POLLHUP).
43465 2007-01-01  Bruno Haible  <bruno@clisp.org>
43467         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
43469 2007-01-03  Jim Meyering  <jim@meyering.net>
43471         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
43473 2007-01-02  Bruno Haible  <bruno@clisp.org>
43475         * modules/settime (Include): Require timespec.h.
43476         * modules/nanosleep (Include): Likewise.
43478 2007-01-01  Bruno Haible  <bruno@clisp.org>
43480         * gnulib-tool (func_emit_copyright_notice): Bump year.
43481         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
43483 2007-01-01  Bruno Haible  <bruno@clisp.org>
43485         Improve support for OpenBSD.
43486         * build-aux/config.rpath (libname_spec): Export.
43487         (library_names_spec): New variable. Export.
43488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
43489         library_names_spec from the config.rpath output. Locate shared library
43490         through the name pattern in library_names_spec.
43492 2007-01-01  Eric Blake  <ebb9@byu.net>
43494         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
43496 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
43498         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
43499         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
43500         assume the C locale, and avoid an "eval" that could cause trouble.
43501         Problem with SORT reported by Bob Proulx.
43503         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
43504         Define.  Trivial patch from Henning Nielsen Lund, originally
43505         sent to bug-grep@gnu.org today.
43507 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43509         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
43510         struct stat.  Problem reported by Henning Nielsen Lund.
43511         * lib/acl.c: Include acl.h first, to check interface.  Don't
43512         bother to include sys/types.h and sys/stat.h again.
43514 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43516         Import the following change from libc; problem reported by
43517         Sven Verdoolaege.
43519         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
43521         [BZ #1373]
43522         * lib/argp.h: Remove __NTH for __argp_usage inline function.
43524 2006-12-28  Jim Meyering  <jim@meyering.net>
43526         * build-aux/announce-gen: Do not assume that the package
43527         builds any of tar.gz, tar.bz2, and .xdelta files.
43528         Suggestion from Simon Josefsson.
43530 2006-12-28  Simon Josefsson  <simon@josefsson.org>
43532         * modules/announce-gen: New file.
43534 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43536         * lib/mbchar.h: Just include <wctype.h>; the wctype module
43537         handles its gotchas now.
43538         * lib/mbswidth.c: Likewise.
43539         * lib/wcwidth.h: Likewise.
43540         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
43541         and iswcntrl; the wctype module does this stuff now.
43542         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43544         * modules/mbchar (Depends-on): Add wctype.
43545         * modules/mbswidth (Depends-on): Likewise.
43546         * modules/wcwidth (Depends-on): Likewise.
43548 2006-12-27  Eric Blake  <ebb9@byu.net>
43550         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
43551         module uses more than what <wctype.h> is required to provide.
43553 2006-12-26  Eric Blake  <ebb9@byu.net>
43555         * gnulib-tool (sed_extract_prog): Avoid space-tab.
43557 2006-12-26  Eric Blake  <ebb9@byu.net>
43559         * modules/absolute-header: New module.
43560         * modules/fcntl (Depends-on): Depend on it.
43561         * modules/inttypes (Depends-on): Likewise.
43562         * modules/stdint (Depends-on): Likewise.
43563         * modules/sys_stat (Depends-on): Likewise.
43564         * modules/wctype (Depends-on): Likewise.
43565         * MODULES.html.sh (Support for building libraries and
43566         executables): Document it.
43568 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43570         * gnulib-tool (SED): Remove, undoing previous change.
43571         The problem was that it broke coreutils on Solaris, because
43572         "sed --posix" leaked into a makefile.
43573         (sed): New alias, if 'alias' and GNU sed.
43575 2006-12-24  Jim Meyering  <jim@meyering.net>
43577         Work around an fchownat bug in glibc-2.4:
43578         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
43579         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
43580         in spite of the -P option.
43581         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
43582         New macros.
43583         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
43584         * modules/openat (Files): Add lib/fchownat.c.
43585         * lib/openat.c (fchownat): Don't define here.  Move to...
43586         * lib/fchownat.c: ...this new file.
43588 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43590         Fix bug reported by Bruno Haible in
43591         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
43592         where quotearg.c didn't compile on Mac OS X 10.2 because it
43593         lacks <wchar.h> and wint_t.
43594         * lib/wctype_.h (__wctype_wint_t): New type.
43595         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
43596         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
43597         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
43598         Arg is now of type __wctype_wint_t, not wint_t.
43599         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
43600         substitute HAVE_WINT_T.
43601         * modules/wctype (Files): Add m4/wint_t.m4.
43602         (wctype.h): Substitute HAVE_WINT_T.
43604 2006-12-23  Bruno Haible  <bruno@clisp.org>
43606         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
43608 2006-12-23  Bruno Haible  <bruno@clisp.org>
43610         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
43611         S_ISLNK.
43612         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
43613         mingw.
43615 2006-12-22  Bruno Haible  <bruno@clisp.org>
43617         * lib/copy-file.c: Include acl.h.
43618         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
43619         Close the file descriptors only after being done with copy_acl.
43620         * modules/copy-file (Depends-on): Add acl.
43622 2006-12-22  Bruno Haible  <bruno@clisp.org>
43624         * gnulib-tool (SED): New variable.
43625         Use $SED instead of sed everywhere.
43627 2006-12-22  Bruno Haible  <bruno@clisp.org>
43629         * modules/no-c++: New file.
43630         * m4/no-c++.m4: New file.
43631         * MODULES.html.sh (Support for building libraries and executables):
43632         Add no-c++.
43634 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43636         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43637         Include <limits.h>, and use its INT_MAX to rewrite the
43638         j loop so that it does not overflow 'int'.  Problem reported by
43639         Ralf Wildenhues in
43640         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
43641         Play it safe by shifting left by 1 rather than multiplying by 2,
43642         as GCC is less likely to optimize this away when the value
43643         is signed (when it assumes overflow leads to undefined behavior).
43644         Also, don't assume time_t uses two's complement.
43646 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43648         * MODULES.html.sh: New module wctype.
43649         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
43650         * lib/fnmatch.c: Don't bother to include <wchar.h> before
43651         <wctype.h>, since the new wctype module should fix this.
43652         * lib/quotearg.c: Include <wctype.h> unconditionally, since
43653         the wctype module should arrange for it.
43654         * lib/regex_internal.h: Likewise.
43655         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
43656         since the wctype module should handle this now.
43657         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
43658         * modules/fnmatch (Depends-on): Add wctype.
43659         * modules/quotearg (Depends-on): Likewise.
43660         * modules/regex (Depends-on): Likewise.
43662 2006-12-19  Bruno Haible  <bruno@clisp.org>
43664         * lib/strdup.h [C++]: Wrap definitions in extern "C".
43665         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
43667 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43669         * modules/savewd (Depends-on): Fix dependency on fcntl.
43671 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43673         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
43674         conforms to C99, rather than relying on the user's environment
43675         setting of STDINT_H.
43677 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43678         and Eric Blake  <ebb9@byu.net>
43680         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
43681         This is more consistent with the other defines here.
43682         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
43683         Port to z/OS.  Problem reported by Paul Gilmartin.
43684         Change local vars to use gl_ prefix rather than ac_.
43685         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
43686         with other defines.
43687         * modules/double-slash-root: New module.
43688         * modules/dirname (Files): Remove m4/double-slash-root.m4.
43689         (Depends-on): Add double-slash-root.
43690         * MODULES.html.sh (File system functions): Mention new module.
43692 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
43694         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
43695         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
43696         This is for the benefit of gzip, which doesn't do i18n.
43698 2006-12-12  Jim Meyering  <jim@meyering.net>
43700         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
43701         Reported by Andreas Schwab <schwab@suse.de>.
43703 2006-12-12  Bruno Haible  <bruno@clisp.org>
43705         Merge these changes.
43706         2006-09-05  Bruno Haible  <bruno@clisp.org>
43707         * lib/iconvme.c (iconv_string): No need to save and restore errno when
43708         iconv_alloc succeeded.
43709         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
43710         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
43711         test for " && dest " at the end - dest is always != NULL there. Call
43712         iconv with 4xNULL arguments initially, to reset the state. Call iconv
43713         with 2xNULL arguments, also to flush the state storage. Handle the
43714         IRIX iconv behaviour. Realloc the final result, to throw away unused
43715         memory.
43717 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
43719         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
43720         and fchmodat unconditionally, since glibc 2.4 has them.
43721         Problem reported by Arkadiusz Miskiewicz.
43723 2006-12-10  Bruno Haible  <bruno@clisp.org>
43725         * gnulib-tool (func_import): Show the include files only for those
43726         modules that are copied and specified.
43727         Reported by Karl Berry.
43729 2006-12-08  Jim Meyering  <jim@meyering.net>
43731         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
43732         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
43734         * build-aux/announce-gen: Add two new options, both optional:
43735         --bootstrap-tools=TOOL_LIST
43736               a comma-separated list of tools, e.g.,
43737               autoconf,automake,bison,gnulib
43738         --gnulib-snapshot-date=DATE
43739               if gnulib is in the bootstrap tool list,
43740               then report this as the snapshot date.
43741               If not specified, use the current date/time.
43742               If you specify a date here, be sure it's UTC.
43744 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43746         * tests/test-argp-2.sh: Fix test to match actual output.
43747         (func_compare): Fix sed script to be portable.
43749 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
43751         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
43752         workaround for this case.  It is not autoconfigured now; offhand
43753         it's hard to see how to autoconfigure it.
43755 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43757         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
43758         a directory that is about to be chowned.  Such a directory's
43759         initial file permissions should permit the owner only and this
43760         should not be changed until after the chown, since the group and
43761         other bits would be incorrect if they granted permission before
43762         the chown.
43764         Fix porting problem for iswctype reported by Georg Schwarz in:
43765         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
43766         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
43767         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
43768         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
43769         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43771 2006-12-03  Jim Meyering  <jim@meyering.net>
43773         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
43774         p->fts_statp may not yet be defined.
43775         (fts_read): Instead, set it in the caller, once p->fts_statp is
43776         sure to be defined, and corresponds to a top-level directory.
43777         This bug made du -x fail.  Here's the coreutils test case:
43778         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
43779         Reported by Mike Frysinger.
43781 2006-12-01  Jim Meyering  <jim@meyering.net>
43783         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
43784         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
43785         Reported by Simon Josefsson.
43787 2006-11-30  Jim Meyering  <jim@meyering.net>
43789         * m4/warning.m4: Use the all-permissive copyright notice
43790         recommended by RMS (rather than LGPL).
43791         * m4/vararrays.m4: Likewise.
43792         * m4/flexmember.m4: Likewise.
43794 2006-11-29  Bruno Haible  <bruno@clisp.org>
43796         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43797         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
43798         using +=.
43799         Reported by Simon Josefsson <simon@josefsson.org>.
43801 2006-11-28  James Youngman <jay@gnu.org>
43803         * README: Advise users that they might find the bug-gnulib@gnu.org
43804         and autotools-announce@gnu.org mailing lists useful.
43806 2006-11-28  Bruno Haible  <bruno@clisp.org>
43808         * m4/ptrdiff_max.m4: Remove file.
43810 2006-11-21  Bruno Haible  <bruno@clisp.org>
43812         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
43813         _AC_COMPUTE_INT.
43814         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43815         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
43816         _AC_COMPUTE_INT.
43817         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43818         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
43819         _AC_COMPUTE_INT.
43820         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43822 2006-11-28  Jim Meyering  <jim@meyering.net>
43824         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
43825         warning from "gcc -Wshadow" about shadowing the builtin.
43827 2006-11-27  Bruno Haible  <bruno@clisp.org>
43829         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
43830         _AC_COMPUTE_INT.
43831         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
43833 2006-11-27  Bruno Haible  <bruno@clisp.org>
43834             Paul Eggert  <eggert@cs.ucla.edu>
43836         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
43838 2006-11-26  Bruno Haible  <bruno@clisp.org>
43840         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43841         noinst_LTLIBRARIES.
43843 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
43844             Bruno Haible  <bruno@clisp.org>
43846         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
43847         if compiling with "gcc -ansi".
43849 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
43851         Fix some incompatibilities with gcc -ansi -pedantic.
43852         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
43853         if compiling pedantically with GCC, unless it's C99 or later.
43854         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
43855         it mishandles gcc -ansi -pedantic as well.
43856         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
43857         if gcc -pedantic.
43858         * lib/regexec.c (check_node_accept_bytes): Don't use auto
43859         initializers for struct if -pedantic, unless it's C99 or later.
43861 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
43863         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
43864         Don't close an fd more than once. Identical atimes indicate
43865         success, not failure.
43867 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
43869         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
43871 2006-11-23  Jim Meyering  <jim@meyering.net>
43873         * build-aux/announce-gen: New file.  From coreutils.
43875 2006-11-22  Jim Meyering  <jim@meyering.net>
43877         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
43878         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
43879         (fts_read): Use a temporary to narrow the overused st_size member
43880         before using it in a switch statement.  Reported by Matthew Woehlke.
43882         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
43883         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43885 2006-11-20  Bruno Haible  <bruno@clisp.org>
43887         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
43888         changequote instead of pairs of brackets.
43889         Reported by Andreas Schwab <schwab@suse.de>.
43891 2006-11-21  Jim Meyering  <jim@meyering.net>
43893         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
43894         so as to remain compatible with older compilers.
43895         Patch from Michael Deutschmann.
43897 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
43899         * MODULES.html.sh (File system functions): Add openat.
43901         * lib/openat.h (rpl_fstatat): New macro, if
43902         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
43903         (fstatat): Define to rpl_fstatat under the same conditions,
43904         unless COMPILING_FSTATAT.
43905         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
43906         seems to have the bug.
43907         * lib/fstatat.c: New file.
43908         * modules/openat (Files): Add it.
43910 2006-11-20  Bruno Haible  <bruno@clisp.org>
43912         * Makefile: New file.
43914 2006-11-20  Jim Meyering  <jim@meyering.net>
43916         The beginnings of syntax-related checks for gnulib.
43917         * lib/Makefile: New file.
43918         * lib/t-idcache: New script.  Ensure that the two halves of
43919         idcache.c stay in sync.
43921         * lib/idcache.c: Adjust comments in user- and group- portions to
43922         be more accurate, and to be consistent with one another.
43924 2006-11-20  Jim Meyering  <jim@meyering.net>
43926         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
43927         continue using the flexible array member (thus, this module performs
43928         half as many malloc calls), with the addition that...
43929         (getgroup, getuser): Consistently record a non-match via an empty
43930         "name" string, and map an empty string match to a NULL return value.
43931         * modules/idcache (Depends-on): Re-add flexmember.
43933         * lib/idcache.c (getuser): Remove all uses of the register keyword.
43934         (getuidbyname, getgroup, getgidbyname): Likewise.
43936         Use cleaner syntax: NULL rather than 0.
43937         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
43939 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
43941         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
43942         It mishandled the case where the group was missing.
43943         Problem reported by Greg Schafer.
43944         * modules/idcache: Likewise.
43946 2006-11-18  Jim Meyering  <jim@meyering.net>
43948         * check-module (%exempt_header): Add exception for some
43949         conditionally-included headers.
43951         * modules/i-ring (Depends-on): Add verify.
43952         (License): Change to LGPL.
43954 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43956         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
43957         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
43958         and inttostr.h.  Use snprintf rather than uinttostr, so that
43959         LGPLed code doesn't depend on GPLed.
43961 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43963         * modules/inline (License): Change from GPL to LGPL.
43965 2006-11-17  Jim Meyering  <jim@meyering.net>
43967         * modules/d-type (License): Switch to LGPL.
43969 2006-11-15  Bruno Haible  <bruno@clisp.org>
43971         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
43973 2006-11-15  Eric Blake  <ebb9@byu.net>
43975         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
43976         the module dependency.
43978 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43979             Bruno Haible  <bruno@clisp.org>
43981         * gnulib-tool (func_create_testdir): Add license consistency check.
43983 2006-11-15  Eric Blake  <ebb9@byu.net>
43985         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
43986         random "(cached)" in configure output.
43988 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43990         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
43991         test for conforming inttypes.h is both announced and cached.
43993         * MODULES.html.sh (seen_modules, seen_files): New variables.
43994         (func_module): Rewrite to use a few less gnulib-tool and sed
43995         invocations.  Avoid a couple of quadratic algorithms for ...
43996         (missed_modules, missed_files): ... these, with ...
43997         (func_append, func_tmpdir): ... these new functions, from
43998         gnulib-tool.  Analogously, install traps for cleanup.
44000         * tests/test-gc.c (main): Remove unused variables.
44001         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44003 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44005         * modules/inttostr (License): Change to LGPL.
44007 2006-11-14  Eric Blake  <ebb9@byu.net>
44009         * modules/tempname (License): Change to LGPL.
44011 2006-11-14  Eric Blake  <ebb9@byu.net>
44013         * doc/functions.texi (Function Portability): *printf functions on
44014         Cygwin now understand all POSIX size specifiers.
44016 2006-11-14  Bruno Haible  <bruno@clisp.org>
44018         * modules/c-ctype (License): Change to LGPL.
44020 2006-11-12  Bruno Haible  <bruno@clisp.org>
44022         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44023         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44024         for GNOME libraries, for which the include files are installed in
44025         subdirectories of $prefix/include.
44027 2006-11-12  Bruno Haible  <bruno@clisp.org>
44029         * m4/lib-link.m4: Require at least autoconf-2.54.
44030         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44031         name to underscores for the --with option.
44033 2006-11-13  Bruno Haible  <bruno@clisp.org>
44035         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44036         the tests directory.
44037         Reported by Ralf Wildenhues.
44039 2006-11-13  Bruno Haible  <bruno@clisp.org>
44041         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44042         (func_emit_initmacro_end): Undo the override here.
44043         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44044         Works around the famous automake error in coreutils.
44046 2006-11-13  Eric Blake  <ebb9@byu.net>
44048         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44049         element, not its node.
44051 2006-11-12  Bruno Haible  <bruno@clisp.org>
44053         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44054         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44056 2006-11-12  Bruno Haible  <bruno@clisp.org>
44058         * gnulib-tool: New option --local-symlink.
44059         (func_usage): Document it.
44060         (lsymbolic): New variable.
44061         (func_import, func_create_testdir): If --symlink was not specified,
44062         test whether --local-symlink was specified and the file comes from
44063         the local_gnulib_dir.
44065 2006-11-12  Bruno Haible  <bruno@clisp.org>
44067         * gnulib-tool (func_ln): New function.
44068         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44070 2006-11-12  Bruno Haible  <bruno@clisp.org>
44072         Finish support for source files in subdirectories.
44073         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44074         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44075         AUTOMAKE_OPTIONS.
44076         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44078 2006-11-12  Bruno Haible  <bruno@clisp.org>
44080         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44081         EXTRA_lib_SOURCES augmentation.
44082         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44084 2006-11-12  Jim Meyering  <jim@meyering.net>
44086         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44087         file descriptors.  This also averts a failure on systems with
44088         native openat support when a traversed directory lacks "x" access.
44089         * lib/fts_.h: Include "i-ring.h"
44090         (struct FTS) [fts_fd_ring]: New member.
44091         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44092         (FCHDIR): Add parentheses.
44093         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44094         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44095         When descending, rather than simply closing the previous
44096         fts_cwd_fd value, push that file descriptor onto the ring.
44097         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44098         (fts_open): Initialize the new fd_ring member.
44099         (fts_close): Clear the ring.
44100         (fts_safe_changedir): When possible, use our new fd_ring to skip
44101         the diropen and fstat and dev/ino comparison that would normally
44102         accompany a virtual `chdir ("..")'.
44104         * modules/fts (Depends-on): Add i-ring.
44105         * modules/i-ring: New module.
44106         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44107         * m4/i-ring.m4: New file.
44109 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44111         * gnulib-tool (func_create_testdir): Fix replacement of
44112         `build-aux' in configure.ac.  Run autotools in gltests
44113         subdirectory.
44114         (func_create_testdir, func_create_megatestdir, test): There is
44115         no need for '--force' in most autotool invocations in a new
44116         tree.  Actually fail the whole test if any of the tools, or the
44117         configure or make stages fail.
44119         Sync from Automake.
44120         * build-aux/gnupload: Revert last change.  Add pointer to upload
44121         instructions of the GNU Maintenance Instructions.
44122         Suggestion by Karl Berry.
44124 2006-11-10  Jim Meyering  <jim@meyering.net>
44126         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44128 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44130         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44131         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44132         (bind_textdomain_codeset) [! ENABLE_NLS]:
44133         Evaluate all the arguments.  That way, callers get compatible behavior
44134         if the arguments have side effects.  Also, it avoids some GCC
44135         diagnostics in some cases; Joel E. Denny reported problems when Bison
44136         was configured with --enable-gcc-warnigs.
44138 2006-11-10  Jim Meyering  <jim@meyering.net>
44140         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44141         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44142         account.
44144 2006-11-10  Jim Meyering  <jim@meyering.net>
44146         * modules/inline: New file/module.
44147         * modules/xalloc (Files): Remove m4/inline.m4.
44148         (Depends-on): Add inline, instead.
44149         * modules/oset: Likewise.
44150         * modules/list: Likewise.
44152 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44154         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44155         Problem reported by Matthew Woehlke.
44157 2006-11-09  Bruno Haible  <bruno@clisp.org>
44159         * lib/tempname.c (gen_tempname): Remove variant that invokes
44160         __gen_tempname.
44161         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44162         __gen_tempname.
44164 2006-11-08  Bruno Haible  <bruno@clisp.org>
44166         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44167         to 'yes' instead of 'cross-compiling'.
44169 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44171         * lib/quotearg.h (quotearg_free): New decl.
44172         * lib/quotearg.c (quotearg_free): New function.
44173         (slot0, nslots, slotvec0, slotvec):
44174         Now file-scope so that quotearg_free can get at them.
44176 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44178         Sync from Automake.
44179         * build-aux/gnupload: Add missing 'gnu' to example URL.
44180         Report by Karl Berry.
44182 2006-11-08  Bruno Haible  <bruno@clisp.org>
44184         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44185         Suggested by Paul Eggert.
44187 2006-11-08  Jim Meyering  <jim@meyering.net>
44189         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44190         It's already included if !_LIBC.
44191         (fts_safe_changedir): Add a comment.
44193 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44195         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44196         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44197         Matthew Woehlke.
44199         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44200         definitions up, to avoid colliding with change below.
44201         (static_inline) [HAVE_INLINE]: New macro.
44202         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44203         Provide extern decls when !HAVE_INLINE.  Do not define unless
44204         static_inline is defined, either by us or by xmalloc.c.  Use
44205         static_inline rather than static inline.
44206         (XCALLOC): Optimize sizeof(T) = 1 case.
44207         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44209 2006-11-07  Bruno Haible  <bruno@clisp.org>
44211         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44212         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44213         AC_C_INLINE.
44214         * modules/xalloc (Files): Add m4/inline.m4.
44216 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44218         * README: Fix typo.
44219         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44220         (Miscellanous Notes): ...from this.
44222 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44224         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44225         Mention that offsetof should be used instead of sizeof.
44226         From Bruno Haible.
44228 2006-11-07  Bruno Haible  <bruno@clisp.org>
44230         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44232 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44234         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44235         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44236         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44237         (gl_tree_add_before, gl_tree_add_after):
44238         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44239         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44240         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44241         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44242         (gl_linked_add_after, gl_linked_add_at): Likewise.
44243         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44244         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44245         (gl_tree_add_before, gl_tree_add_after): Likewise.
44246         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44247         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44248         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44250 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44252         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44254 2006-11-06  Bruno Haible  <bruno@clisp.org>
44256         * m4/inline.m4: New file.
44257         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44258         * modules/list (Files): Add m4/inline.m4.
44259         * modules/oset (Files): Likewise.
44261 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44263         * lib/idcache.c: Include <stddef.h>, for offsetof.
44264         (struct userid.name): Change from char * to a flexible array member.
44265         All uses changed.
44266         * modules/idcache (Depends-on): Add flexmember.
44268         * MODULES.html.sh (Core language properties): New module flexmember.
44269         * modules/flexmember, m4/flexmember.m4: New files.
44271         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44272         inline functions that are identical with the old xnmalloc_inline,
44273         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44274         that we can avoid some unnecessary integer multiplications and
44275         divisions in the common case where the element size is known at
44276         compile time.
44277         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44278         needed.
44279         (xnboundedmalloc): Remove.
44280         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44281         arguments, for consistency with rest of this header.
44282         (xcharalloc): Rewrite using XNMALLOC.
44283         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44284         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44285         versions have been moved to lib/xalloc.h and renamed to be the
44286         non-*_inline versions.
44287         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44288         and xnrealloc functions, since those functions are now inline and
44289         now call us.
44290         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44291         renaming described above.
44292         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44293         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44294         captures the dependency in AC_C_INLINE.
44296         New module canonicalize-lgpl, proposed by Charles Wilson in
44297         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44298         with a few small changes afterwards.
44299         * MODULES.html.sh (File system functions): New module
44300         canonicalize-lgpl.
44301         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44302         and canonicalize_file_name.
44303         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44304         * modules/canonicalize-lgpl: New files.
44306 2006-11-05  Bruno Haible  <bruno@clisp.org>
44308         * gnulib-tool (func_import, func_create_testdir): Create directories
44309         also for files in subdirectories of lib/.
44311 2006-11-05  Bruno Haible  <bruno@clisp.org>
44313         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
44314         ANSI C compliant.
44316 2006-11-03  Bruno Haible  <bruno@clisp.org>
44318         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44319         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
44320         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
44321         (xnboundedmalloc): New inline function.
44322         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
44323         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
44324         xmalloc.
44325         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
44326         xmalloc.
44327         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
44328         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
44329         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
44330         xmalloc.
44331         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44332         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
44333         xmalloc.
44334         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
44335         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44336         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
44337         xmalloc.
44338         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44339         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
44340         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44341         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
44342         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
44343         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
44344         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
44346 2006-11-03  Bruno Haible  <bruno@clisp.org>
44348         * lib/c-ctype.h [C++]: Define functions without name mangling.
44349         * lib/fwriteerror.h [C++]: Likewise.
44350         * lib/gcd.h [C++]: Likewise.
44351         * lib/linebreak.h [C++]: Likewise.
44353 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
44355         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
44356         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
44357         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
44358         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44359         Check for functions and headers just once.
44360         Check for declaration of canonicalize_file_name.
44361         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
44363 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44365         * gnulib-tool (func_import): Fix typo in actioncmd.
44367 2006-11-02  Bruno Haible  <bruno@clisp.org>
44369         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
44370         newline sequence in the Makefile.am snippet as a space, like "make"
44371         does.
44372         Reported by Roger Persson <perrog@gmail.com>.
44374 2006-11-01  Bruno Haible  <bruno@clisp.org>
44376         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
44377         already declared in <string.h>.
44378         * lib/strcase.h (strncasecmp): Don't declare it if yes.
44380 2006-11-01  Bruno Haible  <bruno@clisp.org>
44382         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
44383         * lib/strcase.h: Include <string.h>.
44384         (strcasecmp): Define to rpl_strcasecmp here.
44386 2006-11-01  Bruno Haible  <bruno@clisp.org>
44388         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
44390 2006-11-01  Eric Blake  <ebb9@byu.net>
44392         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
44394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
44396 2006-10-29  Bruno Haible  <bruno@clisp.org>
44398         Make it compile in C++ mode.
44399         * lib/full-write.c (full_rw): Add a cast.
44401 2006-11-01  Bruno Haible  <bruno@clisp.org>
44403         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
44404         be POSIX compliant.
44405         Reported by Roger Persson <perrog@gmail.com>.
44407 2006-11-01  Eric Blake  <ebb9@byu.net>
44409         * lib/getopt_.h: Fix comments.
44411 2006-10-31  Eric Blake  <ebb9@byu.net>
44413         * modules/tmpdir (Depends-on): Add sys_stat.
44414         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
44415         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
44416         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
44417         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
44418         tempname.
44420 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44422         Avoid some C++ diagnostics reported by Bruno Haible.
44423         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
44424         xmalloc.
44425         (quotearg_alloc): Use xcharalloc rather than xmalloc.
44426         (struct slotvec): Move to top level.
44427         (quotearg_n_options): Rewrite to avoid xmalloc.
44428         * lib/xalloc.h (xcharalloc): New function.
44429         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
44430         [defined __cplusplus]: Add function template that provides result
44431         type propagation.  This part of the change is from Bruno Haible.
44433 2006-10-29  Bruno Haible  <bruno@clisp.org>
44435         Make it compile in C++ mode.
44436         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
44437         * lib/strnlen1.c (strnlen1): Cast memchr result.
44438         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
44439         * lib/clean-temp.c (string_equals, string_hash): Add casts.
44440         (create_temp_dir): Rename local variable 'template'.
44441         (compile_csharp_using_sscli): Add cast.
44442         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
44443         * lib/findprog.c (find_in_path): Likewise.
44444         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
44445         * lib/wait-process.c (register_slave_subprocess): Likewise.
44447 2006-10-22  Bruno Haible  <bruno@clisp.org>
44449         * modules/tsearch: New file.
44450         * lib/tsearch.h: New file.
44451         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
44452         * m4/tsearch.m4: New file.
44453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
44455 2006-10-29  Eric Blake  <ebb9@byu.net>
44457         * lib/arcfour.c: Assume config.h.
44458         * lib/arctwo.c: Likewise.
44459         * lib/base64.c: Likewise.
44460         * lib/check-version.c: Likewise.
44461         * lib/crc.c: Likewise.
44462         * lib/des.c: Likewise.
44463         * lib/gc-gnulib.c: Likewise.
44464         * lib/gc-libgcrypt.c: Likewise.
44465         * lib/gc-pbkdf2-sha1.c: Likewise.
44466         * lib/getaddrinfo.c: Likewise.
44467         * lib/getdelim.c: Likewise.
44468         * lib/getline.c: Likewise.
44469         * lib/hmac-md5.c: Likewise.
44470         * lib/hmac-sha1.c: Likewise.
44471         * lib/iconvme.c: Likewise.
44472         * lib/md2.c: Likewise.
44473         * lib/md4.c: Likewise.
44474         * lib/memxor.c: Likewise.
44475         * lib/read-file.c: Likewise.
44476         * lib/readline.c: Likewise.
44477         * lib/rijndael-alg-fst.c: Likewise.
44478         * lib/rijndael-api-fst.c: Likewise.
44479         * lib/xgetdomainname.c: Likewise.
44481 2006-10-28  Eric Blake  <ebb9@byu.net>
44483         * lib/xstrndup.c: Assume config.h.
44485 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44487         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
44488         stat-macros.h is now for our own macros, whereas stat_h is for
44489         macros in the <sys/stat.h> name space.
44490         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
44491         (STAT_MACROS_H): Remove.
44492         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
44493         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
44494         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
44495         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
44496         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
44497         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
44498         Move these macros to ...
44499         * lib/stat_.h: here.  Don't include stat-macros.h.
44500         * lib/canonicalize.c: Don't include stat-macros.h.
44501         * lib/chown.c: Likewise.
44502         * lib/euidaccess.c: Likewise.
44503         * lib/file-type.c: Likewise.
44504         * lib/filemode.c: Likewise.
44505         * lib/glob.c: Likewise.
44506         * lib/isapipe.c: Likewise.
44507         * lib/lchown.c: Likewise.
44508         * lib/lstat.c: Likewise.
44509         * lib/mkdir-p.c: Likewise.
44510         * lib/rmdir.c: Likewise.
44511         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
44512         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
44513         unless mkdir isn't declared, to speed up 'configure'.
44514         Always create sys/stat.h, since it's unlikely any real sys/stat.h
44515         would define all the S_* symbols.
44516         * modules/canonicalize (Depends-on):
44517         Depend on sys_stat, not stat-macros.
44518         * modules/chown: Likewise.
44519         * modules/euidaccess: Likewise.
44520         * modules/filemode: Likewise.
44521         * modules/file-type: Likewise.
44522         * modules/glob: Likewise.
44523         * modules/isapipe: Likewise.
44524         * modules/lchown: Likewise.
44525         * modules/lstat: Likewise.
44526         * modules/mkancesdirs: Likewise.
44527         * modules/rmdir: Likewise.
44528         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
44529         * modules/modechange: Likewise.
44530         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
44531         (configure.ac): Remove gl_STAT_MACROS.
44532         * modules/sys_stat (Depends-on): Remove stat-macros.
44534 2006-10-27  Bruno Haible  <bruno@clisp.org>
44536         * m4/signed.m4: Remove file.
44537         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
44538         invocation.
44539         * modules/vasnprintf (Files): Remove m4/signed.m4.
44541 2006-10-27  Bruno Haible  <bruno@clisp.org>
44543         Update to GNU gettext 0.16.
44544         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
44545         m4/inttypes-h.m4, m4/signed.m4.
44546         * m4/gettext.m4: Update to GNU gettext 0.16.
44547         * m4/intl.m4: New file, from GNU gettext.
44548         * m4/intldir.m4: New file, from GNU gettext.
44549         * config/srclist.txt: Update
44551 2006-10-27  Eric Blake  <ebb9@byu.net>
44553         * MODULES.html.sh: Document tempname.
44554         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
44555         dependencies.
44556         (Files): Move lib/tempname.c...
44557         * modules/tempname: ...to this new module.
44558         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
44559         (gl_PREREQ_TEMPNAME): Move...
44560         * m4/tempname.m4: ...to this new file.
44561         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
44562         * modules/sys_stat (Depends-on): Add stat-macros.
44563         * lib/stat_.h (includes): Pick up stat macros.
44564         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
44565         if stat macros are broken.
44566         * lib/tempname.c (includes): No need to include "stat-macros.h".
44567         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
44568         (direxists, __path_search) [!_LIBC]: Don't compile these in
44569         gnulib; the tmpdir module covers that.
44570         * lib/tempname.h: New file.
44572 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44574         * COPYING: Explain how gnulib-tool converts licence headers.
44575         Almost all wording by Eric Blake.
44577 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
44579         * lib/mbchar.h (is_basic_table): Make read-only.
44580         * lib/mbchar.c (is_basic_table): Likewise.
44581         Reported by John Darrington.
44583 2006-10-25  Bruno Haible  <bruno@clisp.org>
44585         * lib/progname.h (set_program_name): Undefine before defining.
44587 2006-10-25  Bruno Haible  <bruno@clisp.org>
44589         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
44590         false for non-gcc C++ compilers.
44591         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44593 2006-10-24  Bruno Haible  <bruno@clisp.org>
44595         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
44596         iconv implementations like Irix iconv.
44598 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44600         * modules/vararrays: New file.
44601         * m4/vararrays.m4: New file, taken from diffutils.
44602         * MODULES.html.sh: New module vararrays.
44604 2006-10-24  Karl Berry  <karl@gnu.org>
44606         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
44607         Don't call GNU Unix.
44609 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44611         * users.txt: Add Libtool.
44613         Sync from Libtool:
44615         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44617         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
44618         to gnulib's policy of including config.h unconditionally.
44620 2006-10-24  Bruno Haible  <bruno@clisp.org>
44622         * modules/wcwidth (Files): Add m4/wint_t.m4.
44623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
44624         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
44626 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44628         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
44629         to pacify GCC with some -W flags enabled.  Problem reported by
44630         Bruno Haible.
44632 2006-10-24  Jim Meyering  <jim@meyering.net>
44634         * MODULES.html.sh: Remove uinttostr.  It's not a module.
44635         Reported by Karl Berry.
44637 2006-10-23  Bruno Haible  <bruno@clisp.org>
44639         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
44641 2006-10-24  Bruno Haible  <bruno@clisp.org>
44643         * lib/gl_list.h: Use C comment style, not C++ comment style.
44645 2006-10-23  Eric Blake  <ebb9@byu.net>
44647         * lib/getaddrinfo.c (includes): Add missing include.
44649 2006-10-23  Bruno Haible  <bruno@clisp.org>
44650             Paul Eggert  <eggert@cs.ucla.edu>
44652         Ability to rename obstack_free.
44653         * lib/obstack.h (__obstack_free): New macro. Declare instead of
44654         obstack_free.
44655         (obstack_free): Invoke the __obstack_free macro.
44656         * lib/obstack.c (obstack_free): Use __obstack_free macro.
44658 2006-10-23  Bruno Haible  <bruno@clisp.org>
44659             Paul Eggert  <eggert@cs.ucla.edu>
44661         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
44662         __argc, __argv from the declaration. (They are defined as macros on
44663         mingw.)
44665 2006-10-22  Bruno Haible  <bruno@clisp.org>
44667         * doc/gnulib-intro.texi: New file.
44668         * doc/gnulib.texi: Include it.
44670 2006-10-21  Bruno Haible  <bruno@clisp.org>
44672         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
44673         "Introduction", "Miscellanous Notes", "Particular Modules".
44675 2006-10-21  Bruno Haible  <bruno@clisp.org>
44677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44678         Change mostlyclean-local rule to avoid sh syntax error from bash
44679         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
44681 2006-10-23  Jim Meyering  <jim@meyering.net>
44683         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
44684         in place of snprintf.
44686         * modules/inttostr (Files): Add lib/uinttostr.c.
44687         * lib/uinttostr.c (inttostr): New file/function.
44688         * lib/inttostr.h (uinttostr): Declare.
44689         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
44690         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44691         Add uinttostr.
44692         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
44694 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
44696         * lib/canonicalize.c (ELOOP): Define if not already defined.
44697         Problem reported by Bruno Haible in
44698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
44700 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
44702         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
44703         Problem reported by Perry Smith and Ville Laurikari.
44705         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
44706         uses.
44708 2006-10-19  Bruno Haible  <bruno@clisp.org>
44710         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
44711         for mingw.
44713 2006-10-19  Bruno Haible  <bruno@clisp.org>
44715         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
44716         Needed for mingw.
44718 2006-10-19  Bruno Haible  <bruno@clisp.org>
44720         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
44722 2006-10-19  Bruno Haible  <bruno@clisp.org>
44724         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
44725         it.
44727 2006-10-19  Bruno Haible  <bruno@clisp.org>
44729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
44730         invocation.
44732 2006-10-19  Bruno Haible  <bruno@clisp.org>
44734         * gnulib-tool (func_create_testdir): Don't include ftruncate and
44735         mountlist by default.
44737 2006-10-16  Bruno Haible  <bruno@clisp.org>
44739         * lib/c-strstr.c: Include c-strstr.h.
44741 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44743         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
44744         in a slash.
44746 2006-10-18  Bruno Haible  <bruno@clisp.org>
44748         * lib/lock.h [C++]: Wrap definitions in extern "C".
44750 2006-10-18  Bruno Haible  <bruno@clisp.org>
44752         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
44753         gl_LIBOBJS list.
44755 2006-10-18  Bruno Haible  <bruno@clisp.org>
44757         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
44759 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
44761         * lib/xstrtol.h: Include gettext.h.
44762         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
44763         Problem reported by Eric Blake.
44764         * modules/xstrtol (Depends-on): Add gettext-h.
44766 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
44768         * lib/strftime.c (advance): New macro.
44769         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
44770         incomplete type, so you can't add 0 to it.  Problem and patch
44771         reported by Eelco Dolstra for dietlibc.
44773 2006-10-18  Jim Meyering  <jim@meyering.net>
44775         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
44776         type for a local, and rename it: s/up/user_proc/.
44778 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44780         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
44781         READ_UTMP_USER_PROCESS.
44782         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
44784 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44786         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
44787         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
44789 2006-10-17  Eric Blake  <ebb9@byu.net>
44791         * lib/sigprocmask.c (sigprocmask): Fix typo.
44793         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
44795         * modules/clean-temp (Makefile.am): Don't add to make output...
44796         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
44797         config.h.
44799 2006-10-17  Bruno Haible  <bruno@clisp.org>
44801         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
44802         differently if DEFAULT_TEXT_DOMAIN is set.
44804 2006-10-16  Bruno Haible  <bruno@clisp.org>
44806         * lib/clean-temp.c: Include fwriteerror.h.
44808 2006-10-16  Bruno Haible  <bruno@clisp.org>
44810         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
44812 2006-10-16  Bruno Haible  <bruno@clisp.org>
44814         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
44815         * lib/sigprocmask.h: Include <sys/types.h>.
44816         (sigset_t): Use the system's definition if present.
44818 2006-10-17  Eric Blake  <ebb9@byu.net>
44820         * lib/xvasprintf.c (includes): Assume config.h.
44821         * lib/xasprintf.c (includes): Likewise.
44823 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44825         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
44826         at least as wide as intmax_t.
44828 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
44830         (Imported from Automake.)
44831         * build-aux/gnupload: Update to version 1.1 of directive file.
44833 2006-10-16  Eric Blake  <ebb9@byu.net>
44835         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
44836         match Automake 1.10a.
44838 2006-10-14  Bruno Haible  <bruno@clisp.org>
44840         * modules/sigprocmask: New file.
44841         * lib/sigprocmask.h: New file.
44842         * lib/sigprocmask.c: New file.
44843         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
44844         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
44845         request sigprocmask.o.
44846         (gl_PREREQ_SIGPROCMASK): New macro.
44847         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
44848         (Depends-on): Add sigprocmask.
44849         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
44850         gt_SIGNALBLOCKING. Test for 'raise' only once.
44851         * lib/fatal-signal.c: Include sigprocmask.h.
44852         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
44853         unblock_fatal_signals): Define always.
44854         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44855         sigprocmask.
44857 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
44859         Sync from Automake.
44860         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
44861         which incorrectly sets the mode of an existing destination
44862         directory.  In some cases the unpatched install-sh could do the
44863         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
44864         system.  We hope this is rare in practice, but it's clearly worth
44865         fixing.  Problem reported by Alex Unleashed in
44866         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
44867         Also, don't bother to check for -m bugs unless we're using -m;
44868         suggested by Stepan Kasal.
44870 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44872         Sync from Automake.
44873         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
44874         `-c' flag, so they appear at the same position as in %FASTDEP%
44875         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
44876         which ignores unknown options only after the first non-option.
44877         Bug report against M4 by Nelson H. F. Beebe.
44879 2006-10-13  Jim Meyering  <jim@meyering.net>
44881         Fix a bug in yesterday's change.
44882         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
44883         p->fts_statp->st_dev would be used uninitialized.
44884         Ensures that we always call fts_stat on the very first entry.
44885         Miklos Szeredi reported that find -xdev stopped working.
44887 2006-10-12  Bruno Haible  <bruno@clisp.org>
44889         * gnulib-tool (func_get_automake_snippet): Append an automatically
44890         computed EXTRA_DIST augmentation.
44891         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
44892         * modules/alloca-opt (Makefile.am): Likewise.
44893         * modules/allocsa (Makefile.am): Likewise.
44894         * modules/arcfour (Makefile.am): Likewise.
44895         * modules/arctwo (Makefile.am): Likewise.
44896         * modules/argmatch (Makefile.am): Likewise.
44897         * modules/argz (Makefile.am): Likewise.
44898         * modules/atexit (Makefile.am): Likewise.
44899         * modules/backupfile (Makefile.am): Likewise.
44900         * modules/byteswap (Makefile.am): Likewise.
44901         * modules/c-strtod (Makefile.am): Likewise.
44902         * modules/c-strtold (Makefile.am): Likewise.
44903         * modules/calloc (Makefile.am): Likewise.
44904         * modules/canon-host (Makefile.am): Likewise.
44905         * modules/canonicalize (Makefile.am): Likewise.
44906         * modules/chdir-long (Makefile.am): Likewise.
44907         * modules/chdir-safer (Makefile.am): Likewise.
44908         * modules/check-version (Makefile.am): Likewise.
44909         * modules/chown (Makefile.am): Likewise.
44910         * modules/cloexec (Makefile.am): Likewise.
44911         * modules/close-stream (Makefile.am): Likewise.
44912         * modules/closeout (Makefile.am): Likewise.
44913         * modules/crc (Makefile.am): Likewise.
44914         * modules/csharpexec (Makefile.am): Likewise.
44915         * modules/cycle-check (Makefile.am): Likewise.
44916         * modules/des (Makefile.am): Likewise.
44917         * modules/dev-ino (Makefile.am): Likewise.
44918         * modules/dirfd (Makefile.am): Likewise.
44919         * modules/dirname (Makefile.am): Likewise.
44920         * modules/dup2 (Makefile.am): Likewise.
44921         * modules/eealloc (Makefile.am): Likewise.
44922         * modules/error (Makefile.am): Likewise.
44923         * modules/euidaccess (Makefile.am): Likewise.
44924         * modules/exclude (Makefile.am): Likewise.
44925         * modules/exitfail (Makefile.am): Likewise.
44926         * modules/fcntl-safer (Makefile.am): Likewise.
44927         * modules/fcntl (Makefile.am): Likewise.
44928         * modules/file-type (Makefile.am): Likewise.
44929         * modules/fileblocks (Makefile.am): Likewise.
44930         * modules/filemode (Makefile.am): Likewise.
44931         * modules/filenamecat (Makefile.am): Likewise.
44932         * modules/fnmatch (Makefile.am): Likewise.
44933         * modules/fopen-safer (Makefile.am): Likewise.
44934         * modules/fpending (Makefile.am): Likewise.
44935         * modules/fprintftime (Makefile.am): Likewise.
44936         * modules/free (Makefile.am): Likewise.
44937         * modules/fsusage (Makefile.am): Likewise.
44938         * modules/ftruncate (Makefile.am): Likewise.
44939         * modules/fts (Makefile.am): Likewise.
44940         * modules/gc-arcfour (Makefile.am): Likewise.
44941         * modules/gc-des (Makefile.am): Likewise.
44942         * modules/gc-hmac-md5 (Makefile.am): Likewise.
44943         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
44944         * modules/gc-md4 (Makefile.am): Likewise.
44945         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
44946         * modules/gc-sha1 (Makefile.am): Likewise.
44947         * modules/gc (Makefile.am): Likewise.
44948         * modules/getaddrinfo (Makefile.am): Likewise.
44949         * modules/getcwd (Makefile.am): Likewise.
44950         * modules/getdelim (Makefile.am): Likewise.
44951         * modules/getdomainname (Makefile.am): Likewise.
44952         * modules/getgroups (Makefile.am): Likewise.
44953         * modules/gethostname (Makefile.am): Likewise.
44954         * modules/gethrxtime (Makefile.am): Likewise.
44955         * modules/getline (Makefile.am): Likewise.
44956         * modules/getloadavg (Makefile.am): Likewise.
44957         * modules/getlogin_r (Makefile.am): Likewise.
44958         * modules/getndelim2 (Makefile.am): Likewise.
44959         * modules/getopt (Makefile.am): Likewise.
44960         * modules/getpagesize (Makefile.am): Likewise.
44961         * modules/getpass-gnu (Makefile.am): Likewise.
44962         * modules/getpass (Makefile.am): Likewise.
44963         * modules/getsubopt (Makefile.am): Likewise.
44964         * modules/gettime (Makefile.am): Likewise.
44965         * modules/gettimeofday (Makefile.am): Likewise.
44966         * modules/getugroups (Makefile.am): Likewise.
44967         * modules/getusershell (Makefile.am): Likewise.
44968         * modules/glob (Makefile.am): Likewise.
44969         * modules/group-member (Makefile.am): Likewise.
44970         * modules/hard-locale (Makefile.am): Likewise.
44971         * modules/hash (Makefile.am): Likewise.
44972         * modules/hmac-md5 (Makefile.am): Likewise.
44973         * modules/hmac-sha1 (Makefile.am): Likewise.
44974         * modules/human (Makefile.am): Likewise.
44975         * modules/idcache (Makefile.am): Likewise.
44976         * modules/imaxabs (Makefile.am): Likewise.
44977         * modules/imaxdiv (Makefile.am): Likewise.
44978         * modules/inet_ntop (Makefile.am): Likewise.
44979         * modules/inet_pton (Makefile.am): Likewise.
44980         * modules/intprops (Makefile.am): Likewise.
44981         * modules/inttostr (Makefile.am): Likewise.
44982         * modules/inttypes (Makefile.am): Likewise.
44983         * modules/isapipe (Makefile.am): Likewise.
44984         * modules/javaversion (Makefile.am): Likewise.
44985         * modules/lchmod (Makefile.am): Likewise.
44986         * modules/lchown (Makefile.am): Likewise.
44987         * modules/localcharset (Makefile.am): Likewise.
44988         * modules/long-options (Makefile.am): Likewise.
44989         * modules/lstat (Makefile.am): Likewise.
44990         * modules/malloc (Makefile.am): Likewise.
44991         * modules/mathl (Makefile.am): Likewise.
44992         * modules/mbchar (Makefile.am): Likewise.
44993         * modules/md2 (Makefile.am): Likewise.
44994         * modules/md4 (Makefile.am): Likewise.
44995         * modules/md5 (Makefile.am): Likewise.
44996         * modules/memcasecmp (Makefile.am): Likewise.
44997         * modules/memchr (Makefile.am): Likewise.
44998         * modules/memcmp (Makefile.am): Likewise.
44999         * modules/memcoll (Makefile.am): Likewise.
45000         * modules/memcpy (Makefile.am): Likewise.
45001         * modules/memmem (Makefile.am): Likewise.
45002         * modules/memmove (Makefile.am): Likewise.
45003         * modules/mempcpy (Makefile.am): Likewise.
45004         * modules/memrchr (Makefile.am): Likewise.
45005         * modules/memset (Makefile.am): Likewise.
45006         * modules/memxor (Makefile.am): Likewise.
45007         * modules/mkancesdirs (Makefile.am): Likewise.
45008         * modules/mkdir-p (Makefile.am): Likewise.
45009         * modules/mkdir (Makefile.am): Likewise.
45010         * modules/mkdtemp (Makefile.am): Likewise.
45011         * modules/mkstemp (Makefile.am): Likewise.
45012         * modules/mktime (Makefile.am): Likewise.
45013         * modules/modechange (Makefile.am): Likewise.
45014         * modules/mountlist (Makefile.am): Likewise.
45015         * modules/nanosleep (Makefile.am): Likewise.
45016         * modules/obstack (Makefile.am): Likewise.
45017         * modules/openat (Makefile.am): Likewise.
45018         * modules/pagealign_alloc (Makefile.am): Likewise.
45019         * modules/pathmax (Makefile.am): Likewise.
45020         * modules/physmem (Makefile.am): Likewise.
45021         * modules/poll (Makefile.am): Likewise.
45022         * modules/posixtm (Makefile.am): Likewise.
45023         * modules/posixver (Makefile.am): Likewise.
45024         * modules/putenv (Makefile.am): Likewise.
45025         * modules/quote (Makefile.am): Likewise.
45026         * modules/quotearg (Makefile.am): Likewise.
45027         * modules/raise (Makefile.am): Likewise.
45028         * modules/read-file (Makefile.am): Likewise.
45029         * modules/readline (Makefile.am): Likewise.
45030         * modules/readlink (Makefile.am): Likewise.
45031         * modules/readtokens (Makefile.am): Likewise.
45032         * modules/readutmp (Makefile.am): Likewise.
45033         * modules/realloc (Makefile.am): Likewise.
45034         * modules/regex (Makefile.am): Likewise.
45035         * modules/rename-dest-slash (Makefile.am): Likewise.
45036         * modules/rename (Makefile.am): Likewise.
45037         * modules/rijndael (Makefile.am): Likewise.
45038         * modules/rmdir (Makefile.am): Likewise.
45039         * modules/rpmatch (Makefile.am): Likewise.
45040         * modules/safe-read (Makefile.am): Likewise.
45041         * modules/safe-write (Makefile.am): Likewise.
45042         * modules/same-inode (Makefile.am): Likewise.
45043         * modules/same (Makefile.am): Likewise.
45044         * modules/save-cwd (Makefile.am): Likewise.
45045         * modules/savedir (Makefile.am): Likewise.
45046         * modules/setenv (Makefile.am): Likewise.
45047         * modules/settime (Makefile.am): Likewise.
45048         * modules/sha1 (Makefile.am): Likewise.
45049         * modules/sig2str (Makefile.am): Likewise.
45050         * modules/snprintf (Makefile.am): Likewise.
45051         * modules/stat-macros (Makefile.am): Likewise.
45052         * modules/stat-time (Makefile.am): Likewise.
45053         * modules/stdbool (Makefile.am): Likewise.
45054         * modules/stdint (Makefile.am): Likewise.
45055         * modules/stdlib-safer (Makefile.am): Likewise.
45056         * modules/stpcpy (Makefile.am): Likewise.
45057         * modules/stpncpy (Makefile.am): Likewise.
45058         * modules/strcase (Makefile.am): Likewise.
45059         * modules/strcasestr (Makefile.am): Likewise.
45060         * modules/strchrnul (Makefile.am): Likewise.
45061         * modules/strcspn (Makefile.am): Likewise.
45062         * modules/strdup (Makefile.am): Likewise.
45063         * modules/strerror (Makefile.am): Likewise.
45064         * modules/strftime (Makefile.am): Likewise.
45065         * modules/strndup (Makefile.am): Likewise.
45066         * modules/strnlen (Makefile.am): Likewise.
45067         * modules/strpbrk (Makefile.am): Likewise.
45068         * modules/strsep (Makefile.am): Likewise.
45069         * modules/strstr (Makefile.am): Likewise.
45070         * modules/strtod (Makefile.am): Likewise.
45071         * modules/strtoimax (Makefile.am): Likewise.
45072         * modules/strtok_r (Makefile.am): Likewise.
45073         * modules/strtol (Makefile.am): Likewise.
45074         * modules/strtoll (Makefile.am): Likewise.
45075         * modules/strtoul (Makefile.am): Likewise.
45076         * modules/strtoull (Makefile.am): Likewise.
45077         * modules/strtoumax (Makefile.am): Likewise.
45078         * modules/strverscmp (Makefile.am): Likewise.
45079         * modules/sys_socket (Makefile.am): Likewise.
45080         * modules/sys_stat (Makefile.am): Likewise.
45081         * modules/sysexits (Makefile.am): Likewise.
45082         * modules/time_r (Makefile.am): Likewise.
45083         * modules/timegm (Makefile.am): Likewise.
45084         * modules/timespec (Makefile.am): Likewise.
45085         * modules/tmpfile-safer (Makefile.am): Likewise.
45086         * modules/trim (Makefile.am): Likewise.
45087         * modules/unistd-safer (Makefile.am): Likewise.
45088         * modules/unlinkdir (Makefile.am): Likewise.
45089         * modules/unlocked-io (Makefile.am): Likewise.
45090         * modules/userspec (Makefile.am): Likewise.
45091         * modules/utime (Makefile.am): Likewise.
45092         * modules/utimecmp (Makefile.am): Likewise.
45093         * modules/utimens (Makefile.am): Likewise.
45094         * modules/vasnprintf (Makefile.am): Likewise.
45095         * modules/vasprintf (Makefile.am): Likewise.
45096         * modules/vsnprintf (Makefile.am): Likewise.
45097         * modules/xalloc (Makefile.am): Likewise.
45098         * modules/xgetcwd (Makefile.am): Likewise.
45099         * modules/xnanosleep (Makefile.am): Likewise.
45100         * modules/xreadlink (Makefile.am): Likewise.
45101         * modules/xstrtod (Makefile.am): Likewise.
45102         * modules/xstrtol (Makefile.am): Likewise.
45103         * modules/xstrtold (Makefile.am): Likewise.
45104         * modules/yesno (Makefile.am): Likewise.
45105         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45107 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45109         * modules/error (Makefile.am): Distribute files through
45110         EXTRA_DIST, not lib_SOURCES.
45112 2006-10-12  Eric Blake  <ebb9@byu.net>
45114         * modules/error (Makefile.am): Distribute files in /lib.
45115         * modules/obstack (Makefile.am): Likewise.
45117 2006-10-12  Bruno Haible  <bruno@clisp.org>
45119         * modules/acl (Makefile.am): Distribute all files in lib/ through
45120         EXTRA_DIST.
45121         * modules/arcfour (Makefile.am): Likewise.
45122         * modules/arctwo (Makefile.am): Likewise.
45123         * modules/argmatch (Makefile.am): Likewise.
45124         * modules/argz (Makefile.am): Likewise.
45125         * modules/atexit (Makefile.am): Likewise.
45126         * modules/backupfile (Makefile.am): Likewise.
45127         * modules/c-strtod (Makefile.am): Likewise.
45128         * modules/c-strtold (Makefile.am): Likewise.
45129         * modules/calloc (Makefile.am): Likewise.
45130         * modules/canon-host (Makefile.am): Likewise.
45131         * modules/canonicalize (Makefile.am): Likewise.
45132         * modules/chdir-long (Makefile.am): Likewise.
45133         * modules/chdir-safer (Makefile.am): Likewise.
45134         * modules/check-version (Makefile.am): Likewise.
45135         * modules/chown (Makefile.am): Likewise.
45136         * modules/cloexec (Makefile.am): Likewise.
45137         * modules/close-stream (Makefile.am): Likewise.
45138         * modules/closeout (Makefile.am): Likewise.
45139         * modules/crc (Makefile.am): Likewise.
45140         * modules/cycle-check (Makefile.am): Likewise.
45141         * modules/des (Makefile.am): Likewise.
45142         * modules/dirfd (Makefile.am): Likewise.
45143         * modules/dirname (Makefile.am): Likewise.
45144         * modules/dup2 (Makefile.am): Likewise.
45145         * modules/euidaccess (Makefile.am): Likewise.
45146         * modules/exclude (Makefile.am): Likewise.
45147         * modules/exitfail (Makefile.am): Likewise.
45148         * modules/fcntl-safer (Makefile.am): Likewise.
45149         * modules/file-type (Makefile.am): Likewise.
45150         * modules/fileblocks (Makefile.am): Likewise.
45151         * modules/filemode (Makefile.am): Likewise.
45152         * modules/filenamecat (Makefile.am): Likewise.
45153         * modules/fnmatch (Makefile.am): Likewise.
45154         * modules/fopen-safer (Makefile.am): Likewise.
45155         * modules/fpending (Makefile.am): Likewise.
45156         * modules/fprintftime (Makefile.am): Likewise.
45157         * modules/free (Makefile.am): Likewise.
45158         * modules/fsusage (Makefile.am): Likewise.
45159         * modules/ftruncate (Makefile.am): Likewise.
45160         * modules/fts (Makefile.am): Likewise.
45161         * modules/gc (Makefile.am): Likewise.
45162         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45163         * modules/getaddrinfo (Makefile.am): Likewise.
45164         * modules/getcwd (Makefile.am): Likewise.
45165         * modules/getdelim (Makefile.am): Likewise.
45166         * modules/getdomainname (Makefile.am): Likewise.
45167         * modules/getgroups (Makefile.am): Likewise.
45168         * modules/gethostname (Makefile.am): Likewise.
45169         * modules/gethrxtime (Makefile.am): Likewise.
45170         * modules/getline (Makefile.am): Likewise.
45171         * modules/getloadavg (Makefile.am): Likewise.
45172         * modules/getlogin_r (Makefile.am): Likewise.
45173         * modules/getopt (Makefile.am): Likewise.
45174         * modules/getpass (Makefile.am): Likewise.
45175         * modules/getpass-gnu (Makefile.am): Likewise.
45176         * modules/getsubopt (Makefile.am): Likewise.
45177         * modules/gettime (Makefile.am): Likewise.
45178         * modules/gettimeofday (Makefile.am): Likewise.
45179         * modules/getugroups (Makefile.am): Likewise.
45180         * modules/getusershell (Makefile.am): Likewise.
45181         * modules/glob (Makefile.am): Likewise.
45182         * modules/group-member (Makefile.am): Likewise.
45183         * modules/hard-locale (Makefile.am): Likewise.
45184         * modules/hash (Makefile.am): Likewise.
45185         * modules/hmac-md5 (Makefile.am): Likewise.
45186         * modules/hmac-sha1 (Makefile.am): Likewise.
45187         * modules/human (Makefile.am): Likewise.
45188         * modules/idcache (Makefile.am): Likewise.
45189         * modules/imaxabs (Makefile.am): Likewise.
45190         * modules/imaxdiv (Makefile.am): Likewise.
45191         * modules/inet_ntop (Makefile.am): Likewise.
45192         * modules/inet_pton (Makefile.am): Likewise.
45193         * modules/inttostr (Makefile.am): Likewise.
45194         * modules/isapipe (Makefile.am): Likewise.
45195         * modules/lchown (Makefile.am): Likewise.
45196         * modules/long-options (Makefile.am): Likewise.
45197         * modules/lstat (Makefile.am): Likewise.
45198         * modules/malloc (Makefile.am): Likewise.
45199         * modules/mathl (Makefile.am): Likewise.
45200         * modules/mbchar (Makefile.am): Likewise.
45201         * modules/md2 (Makefile.am): Likewise.
45202         * modules/md4 (Makefile.am): Likewise.
45203         * modules/md5 (Makefile.am): Likewise.
45204         * modules/memcasecmp (Makefile.am): Likewise.
45205         * modules/memchr (Makefile.am): Likewise.
45206         * modules/memcmp (Makefile.am): Likewise.
45207         * modules/memcoll (Makefile.am): Likewise.
45208         * modules/memcpy (Makefile.am): Likewise.
45209         * modules/memmem (Makefile.am): Likewise.
45210         * modules/memmove (Makefile.am): Likewise.
45211         * modules/mempcpy (Makefile.am): Likewise.
45212         * modules/memrchr (Makefile.am): Likewise.
45213         * modules/memset (Makefile.am): Likewise.
45214         * modules/memxor (Makefile.am): Likewise.
45215         * modules/mkancesdirs (Makefile.am): Likewise.
45216         * modules/mkdir (Makefile.am): Likewise.
45217         * modules/mkdir-p (Makefile.am): Likewise.
45218         * modules/mkdtemp (Makefile.am): Likewise.
45219         * modules/mkstemp (Makefile.am): Likewise.
45220         * modules/mktime (Makefile.am): Likewise.
45221         * modules/modechange (Makefile.am): Likewise.
45222         * modules/mountlist (Makefile.am): Likewise.
45223         * modules/nanosleep (Makefile.am): Likewise.
45224         * modules/openat (Makefile.am): Likewise.
45225         * modules/pagealign_alloc (Makefile.am): Likewise.
45226         * modules/physmem (Makefile.am): Likewise.
45227         * modules/poll (Makefile.am): Likewise.
45228         * modules/posixtm (Makefile.am): Likewise.
45229         * modules/posixver (Makefile.am): Likewise.
45230         * modules/putenv (Makefile.am): Likewise.
45231         * modules/quote (Makefile.am): Likewise.
45232         * modules/quotearg (Makefile.am): Likewise.
45233         * modules/raise (Makefile.am): Likewise.
45234         * modules/read-file (Makefile.am): Likewise.
45235         * modules/readline (Makefile.am): Likewise.
45236         * modules/readlink (Makefile.am): Likewise.
45237         * modules/readtokens (Makefile.am): Likewise.
45238         * modules/readutmp (Makefile.am): Likewise.
45239         * modules/realloc (Makefile.am): Likewise.
45240         * modules/regex (Makefile.am): Likewise.
45241         * modules/rename (Makefile.am): Likewise.
45242         * modules/rename-dest-slash (Makefile.am): Likewise.
45243         * modules/rijndael (Makefile.am): Likewise.
45244         * modules/rmdir (Makefile.am): Likewise.
45245         * modules/rpmatch (Makefile.am): Likewise.
45246         * modules/safe-read (Makefile.am): Likewise.
45247         * modules/safe-write (Makefile.am): Likewise.
45248         * modules/same (Makefile.am): Likewise.
45249         * modules/save-cwd (Makefile.am): Likewise.
45250         * modules/savedir (Makefile.am): Likewise.
45251         * modules/setenv (Makefile.am): Likewise.
45252         * modules/settime (Makefile.am): Likewise.
45253         * modules/sha1 (Makefile.am): Likewise.
45254         * modules/sig2str (Makefile.am): Likewise.
45255         * modules/snprintf (Makefile.am): Likewise.
45256         * modules/stdlib-safer (Makefile.am): Likewise.
45257         * modules/stpcpy (Makefile.am): Likewise.
45258         * modules/stpncpy (Makefile.am): Likewise.
45259         * modules/strcase (Makefile.am): Likewise.
45260         * modules/strcasestr (Makefile.am): Likewise.
45261         * modules/strchrnul (Makefile.am): Likewise.
45262         * modules/strcspn (Makefile.am): Likewise.
45263         * modules/strdup (Makefile.am): Likewise.
45264         * modules/strerror (Makefile.am): Likewise.
45265         * modules/strftime (Makefile.am): Likewise.
45266         * modules/strndup (Makefile.am): Likewise.
45267         * modules/strnlen (Makefile.am): Likewise.
45268         * modules/strpbrk (Makefile.am): Likewise.
45269         * modules/strsep (Makefile.am): Likewise.
45270         * modules/strstr (Makefile.am): Likewise.
45271         * modules/strtod (Makefile.am): Likewise.
45272         * modules/strtoimax (Makefile.am): Likewise.
45273         * modules/strtok_r (Makefile.am): Likewise.
45274         * modules/strtol (Makefile.am): Likewise.
45275         * modules/strtoll (Makefile.am): Likewise.
45276         * modules/strtoul (Makefile.am): Likewise.
45277         * modules/strtoull (Makefile.am): Likewise.
45278         * modules/strtoumax (Makefile.am): Likewise.
45279         * modules/strverscmp (Makefile.am): Likewise.
45280         * modules/time_r (Makefile.am): Likewise.
45281         * modules/timegm (Makefile.am): Likewise.
45282         * modules/tmpfile-safer (Makefile.am): Likewise.
45283         * modules/unistd-safer (Makefile.am): Likewise.
45284         * modules/unlinkdir (Makefile.am): Likewise.
45285         * modules/userspec (Makefile.am): Likewise.
45286         * modules/utime (Makefile.am): Likewise.
45287         * modules/utimecmp (Makefile.am): Likewise.
45288         * modules/utimens (Makefile.am): Likewise.
45289         * modules/vasnprintf (Makefile.am): Likewise.
45290         * modules/vasprintf (Makefile.am): Likewise.
45291         * modules/vsnprintf (Makefile.am): Likewise.
45292         * modules/xalloc (Makefile.am): Likewise.
45293         * modules/xgetcwd (Makefile.am): Likewise.
45294         * modules/xnanosleep (Makefile.am): Likewise.
45295         * modules/xreadlink (Makefile.am): Likewise.
45296         * modules/xstrtod (Makefile.am): Likewise.
45297         * modules/xstrtol (Makefile.am): Likewise.
45298         * modules/xstrtold (Makefile.am): Likewise.
45299         * modules/yesno (Makefile.am): Likewise.
45301 2006-10-12  Jim Meyering  <jim@meyering.net>
45303         * m4/getloadavg.m4: Revert the change below.
45305         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
45306         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
45307         fail with a symlink, which is what coreutils' ./bootstrap now
45308         creates by default.
45310 2006-10-12  Bruno Haible  <bruno@clisp.org>
45312         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
45313         mingw.
45314         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
45315         MSVC and mingw explicitly.
45317 2006-10-11  Simon Josefsson  <jas@extundo.com>
45318             Bruno Haible  <bruno@clisp.org>
45320         Add support for multiple gnulib-tool invocations in the scope of a
45321         single configure.ac file.
45322         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
45323         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
45324         with the same contents as the _LIBADD variable.
45325         (func_emit_initmacro_start, func_emit_initmacro_end,
45326         func_emit_initmacro_done): New functions.
45327         (func_import, func_create_testdir): Invoke them. Allow the identifiers
45328         gl_LIBOBJS and gl_LTLIBOBJS.
45330 2006-10-11  Bruno Haible  <bruno@clisp.org>
45332         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
45333         (func_create_testdir): Don't create po/Makefile.am, don't invoke
45334         autoreconf. Instead, invoke autopoint explicitly but move back the
45335         *.m4 files from gnulib.
45337 2006-10-11  Bruno Haible  <bruno@clisp.org>
45339         * gnulib-tool (func_usage): Make module names after --create-testdir
45340         optional.
45341         (func_create_testdir): If no module was specified, use nearly all
45342         modules.
45344 2006-10-12  Jim Meyering  <jim@meyering.net>
45346         Big performance improvement for fts-based tools that use FTS_NOSTAT.
45347         Avoid spurious inode-mismatch problems on non-POSIX file systems.
45348         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
45349         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
45350         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
45351         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
45352         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
45353         (fts_set_stat_required): New function.
45354         (fts_open): Defer the calls to fts_stat, if possible or requested.
45355         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
45356         into fts_stat itself.
45357         (fts_read): Perform any required (deferred) fts_stat call.
45358         (fts_build): Likewise, for the directory we're about to open and read.
45359         In the readdir loop, carefully decide whether each entry will require
45360         an eventual call to fts_stat, using dirent.d_type info if available.
45361         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
45362         a command line argument into this function.  Update all callers.
45363         Map a return value of FTS_DOT to FTS_D for a command line argument.
45364         * modules/fts (Depends-on): Add d-type.  Alphabetize.
45365         Thanks to Miklos Szeredi for his tenacity and for the initial
45366         bug report about "find" failing on a FUSE-based file system.
45368         * lib/fts.c (fts_open): Use consistent indentation.
45370 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45372         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
45373         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
45374         reported by Jim Meyering.  All uses of cache variables renamed
45375         to match Autoconf's.
45376         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
45377         the other one.
45379         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45380         Fix misspelling in diagnostic.
45382 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45384         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
45385         defined.  Problem reported by Matthew Woehlke.
45387         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
45388         Add support for Tandem NonStop R series.
45389         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
45390         Use new macro.
45392         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
45393         (has_trailing_slash): Omit size arg; all callers changed.
45394         Omit 'inline', since it doesn't help performance and we'd
45395         need to configure it.
45396         Don't count //, ///, etc. as having a trailing slash.
45397         As a side effect, this removes a C99ism reported by Matthew Woehlke.
45398         (rpl_rename_dest_slash): On failure, use rename's errno rather
45399         than (in some cases) an incorrect or junk errno.
45400         Simplify code by removing need to compute length; this does
45401         cause it to make two passes instead of one over the file name,
45402         but it's worth it.
45404         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
45405         change, since Autoconf's version may no longer be appropriate now
45406         that we are using CVS Autoconf's version.  Add support for Tandem.
45408 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45409             Bruno Haible  <bruno@clisp.org>
45411         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
45412         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
45413         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
45414         gl_AC_TYPE_LONG_LONG.
45416         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
45417         instead of HAVE_LONG_LONG.
45418         * lib/printf-args.c (printf_fetchargs): Likewise.
45419         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45420         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45421         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
45422         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
45423         gl_AC_TYPE_LONG_LONG.
45425 2006-10-11  Bruno Haible  <bruno@clisp.org>
45427         * m4/longlong.m4: Add comments.
45428         * m4/ulonglong.m4: Likewise.
45430 2006-10-10  Bruno Haible  <bruno@clisp.org>
45432         Make it possible to #define stpcpy, strdup to aliases.
45433         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
45434         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
45436 2006-10-10  Bruno Haible  <bruno@clisp.org>
45438         Make it possible to #define gcd to an alias.
45439         * lib/gcd.c: Include config.h.
45441 2006-10-10  Bruno Haible  <bruno@clisp.org>
45443         Make it possible to #define c_isascii to an alias.
45444         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
45445         defined. Undefine the macros before defining them, to avoid gcc
45446         warnings.
45447         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
45448         define NO_C_CTYPE_MACROS early.
45450 2006-10-10  Bruno Haible  <bruno@clisp.org>
45452         Make it possible to #define set_program_name to an alias.
45453         * lib/progname.c: Don't undefine set_program_name; instead, undefine
45454         ENABLE_RELOCATABLE early.
45456 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45458         Port to Tandem NSK OSS, which has 64-bit signed int but at most
45459         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
45460         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
45461         More generally, don't assume that 64-bit signed int is available
45462         if unsigned int is, and vice versa.
45463         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
45464         unsigned symbols, not on their signed counterparts.
45465         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
45466         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
45467         (UINT64_C, UINTMAX_C):
45468         Likewise.
45469         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
45470         unsigned counterparts.
45471         (Have_long_long, Unsigned): New macros.
45472         (Int): Renamed from INT.
45473         (strtoimax): Use the new macros.
45474         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
45475         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
45476         * modules/inttypes (inttypes.h): Substitute
45477         HAVE_UNSIGNED_LONG_LONG_INT.
45478         * modules/stdint (stdint.h): Likewise.
45479         (Files): Add m4/ulonglong.m4.
45481 2006-10-10  Bruno Haible  <bruno@clisp.org>
45483         Fix a gcc -Wshadow warning.
45484         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
45485         to 'bucket'.
45486         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
45487         gl_linked_indexof_from_to): Likewise.
45488         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
45489         Likewise.
45490         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
45491         Likewise.
45492         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
45493         Reported by Eric Blake.
45495 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
45497         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
45498         for NetBSD.  Problem reported by Bruno Haible.
45500 2006-10-09  Jim Meyering  <jim@meyering.net>
45502         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
45503         Patch from Bruno Haible.
45505 2006-10-09  Jim Meyering  <jim@meyering.net>
45507         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
45508         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
45509         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
45511 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45513         Don't include <config.h> twice; this doesn't work in some cases,
45514         e.g., when config.h has "#define intmax_t long long int" and
45515         we include <config.h>, <inttypes.h>, <config.h> in that order.
45516         Problem reported by Matthew Woehlke in:
45517         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
45518         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
45519         * lib/fts-cycle.c: Don't include config.h.
45520         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
45521         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
45522         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
45523         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
45524         inttypes.h.
45525         * lib/xstrtoumax.c: Likewise.
45526         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
45527         __strtol and the like, so that this module is more like its siblings.
45528         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
45529         Remove; no longer needed now that we assume gnulib inttypes.h.
45531 2006-10-08  Bruno Haible  <bruno@clisp.org>
45533         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
45534         option.
45536 2006-10-07  Jim Meyering  <jim@meyering.net>
45538         * modules/inttypes (inttypes.h): Revert what seems to have been
45539         an inadvertent part of today's change: use "|", not "/" in the
45540         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
45542 2006-10-07  Bruno Haible  <bruno@clisp.org>
45544         * modules/sublist: New file.
45546 2006-10-07  Bruno Haible  <bruno@clisp.org>
45548         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
45549         * modules/argz (argz.h): Likewise.
45550         * modules/arpa_inet (arpa/inet.h): Likewise.
45551         * modules/byteswap (byteswap.h): Likewise.
45552         * modules/configmake (configmake.h): Likewise.
45553         * modules/fcntl (fcntl.h): Likewise.
45554         * modules/fnmatch (fnmatch.h): Likewise.
45555         * modules/getopt (getopt.h): Likewise.
45556         * modules/glob (glob.h): Likewise.
45557         * modules/inttypes (inttypes.h): Likewise.
45558         * modules/netinet_in (netinet/in.h): Likewise.
45559         * modules/poll (poll.h): Likewise.
45560         * modules/stdbool (stdbool.h): Likewise.
45561         * modules/stdint (stdint.h): Likewise.
45562         * modules/sys_select (sys/select.h): Likewise.
45563         * modules/sys_socket (sys/socket.h): Likewise.
45564         * modules/sys_stat (sys/stat.h): Likewise.
45565         * modules/sysexits (sysexits.h): Likewise.
45566         * modules/unistd (unistd.h): Likewise.
45567         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45568         Add a "DO NOT EDIT" comment to the generated file.
45569         (func_import): Likewise for gnulib-comp.m4.
45571 2006-10-07  Bruno Haible  <bruno@clisp.org>
45573         * lib/gl_sublist.h: New file.
45574         * lib/gl_sublist.c: New file.
45576 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45578         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
45579         name (relative to the original working directory) and the file
45580         name component (relative to the temporary working directory).  All
45581         callers changed.
45582         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
45583         * lib/mkdir-p.c (make_dir_parents): Likewise.
45584         * lib/mkdir-p.h (make_dir_parents): Likewise.
45586 2006-10-06  Eric Blake  <ebb9@byu.net>
45588         Define several macros for use by the clean-temp module.
45589         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
45590         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
45591         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
45593         * lib/clean-temp.h (close_stream_temp): New declaration.
45594         * lib/clean-temp.c (includes): Pull in headers according to what
45595         other modules are in use.
45596         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
45598 2006-10-06  Bruno Haible  <bruno@clisp.org>
45600         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
45601         instead of fopen, fwriteerror.
45603 2006-10-06  Bruno Haible  <bruno@clisp.org>
45605         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
45606         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
45607         int.
45608         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
45609         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
45610         Return an error indicator.
45611         Suggested by Eric Blake.
45613 2006-10-06  Bruno Haible  <bruno@clisp.org>
45615         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
45616         Reported by Eric Blake.
45618 2006-10-06  Bruno Haible  <bruno@clisp.org>
45620         * modules/closeout (Description): Mention stderr too.
45622 2006-10-06  Bruno Haible  <bruno@clisp.org>
45623         and Paul Eggert  <eggert@cs.ucla.edu>
45625         * lib/closeout.c (close_stdout): Also close stderr.
45626         * lib/closeout.h: Update comment.
45628 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45630         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
45631         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
45632         * lib/dirchownmod.c: Include lchown.h.
45633         * lib/lchown.c: Don't include files that lchown.h now includes.
45634         Don't declare chown, since lchown.h now does that.
45635         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
45636         (lchown): Define to rpl_chown if lchown is declared but
45637         does not exist.  Declare using a prototype if lchown is not
45638         declared.  Add a copyright notice.
45639         * lib/mkstemp.h: Include <unistd.h>.
45640         * lib/openat.c: Include lchown.h.
45642         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
45643         we now test for that separately.
45644         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
45645         rather than O_NOFOLLOW, when testing whether it's possible to
45646         avoid a race condition reliably.
45647         * lib/savewd.c (savewd_chdir): Likewise.
45649         Remove macros that are no longer needed now that stdint.h is
45650         reliable.
45651         * lib/fsusage.c (UINTMAX_MAX): Remove.
45652         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
45653         * lib/utimecmp.c (SIZE_MAX): Remove.
45655         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
45657         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
45658         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
45659         O_NOATIME works.
45661 2006-10-05  Bruno Haible  <bruno@clisp.org>
45663         * lib/gl_list.h (gl_sortedlist_search_from_to,
45664         gl_sortedlist_indexof_from_to): New declarations.
45665         (gl_list_implementation): New fields sortedlist_search_from_to,
45666         sortedlist_indexof_from_to.
45667         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
45668         inline functions.
45669         * lib/gl_list.c (gl_sortedlist_search_from_to,
45670         gl_sortedlist_indexof_from_to): New functions.
45671         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
45672         function.
45673         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
45674         (gl_array_sortedlist_search_from_to): New function.
45675         (gl_array_list_implementation): Update.
45676         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
45677         function.
45678         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
45679         (gl_carray_sortedlist_search_from_to): New function.
45680         (gl_carray_list_implementation): Update.
45681         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
45682         gl_linked_sortedlist_indexof_from_to): New functions.
45683         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45684         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45685         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
45686         gl_tree_sortedlist_indexof_from_to): New functions.
45687         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45688         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45689         Update.
45690         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45691         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
45692         Update.
45694 2006-10-05  Bruno Haible  <bruno@clisp.org>
45696         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
45697         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
45698         (struct gl_list_implementation): Add fields search_from_to,
45699         indexof_from_to. Remove fields search, indexof.
45700         (gl_list_search): Use the search_from_to method.
45701         (gl_list_search_from, gl_list_search_from_to): New functions.
45702         (gl_list_indexof): Use the indexof_from_to method.
45703         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
45704         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
45705         (gl_list_search_from, gl_list_search_from_to): New functions.
45706         (gl_list_indexof): Use the indexof_from_to method.
45707         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
45708         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
45709         gl_array_indexof. Add start_index, end_index arguments.
45710         (gl_array_search_from_to): Renamed from gl_array_search. Add
45711         start_index, end_index arguments.
45712         (gl_array_remove, gl_array_list_implementation): Update.
45713         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
45714         gl_carray_indexof. Add start_index, end_index arguments.
45715         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
45716         start_index, end_index arguments.
45717         (gl_carray_remove, gl_carray_list_implementation): Update.
45718         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
45719         gl_linked_search. Add start_index, end_index arguments.
45720         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
45721         start_index, end_index arguments.
45722         (gl_linked_remove): Update.
45723         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45724         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45725         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
45726         field to 'size_t'.
45727         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
45728         gl_tree_search. Add start_index, end_index arguments.
45729         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
45730         start_index, end_index arguments.
45731         (gl_tree_remove): Update.
45732         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45733         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45734         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
45735         function.
45736         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
45737         gl_tree_search. Add start_index, end_index arguments.
45738         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
45739         start_index, end_index arguments.
45740         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45741         Update.
45742         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45744 2006-10-05  Bruno Haible  <bruno@clisp.org>
45746         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
45748         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
45749         fwriteerror_temp): New declarations.
45750         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
45751         (descriptors): New variable.
45752         (cleanup): First, close the descriptors.
45753         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
45754         fclose_temp, fwriteerror_temp): New functions.
45756 2006-10-04  Jim Meyering  <jim@meyering.net>
45758         * lib/fts.c (fts_open): Tiny comment change.
45760 2006-10-04  Bruno Haible  <bruno@clisp.org>
45762         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
45763         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
45764         gl_LOCK_BODY.
45765         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
45766         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
45767         gl_LOCK_EARLY_BODY.
45768         (gl_LOCK): Require gl_LOCK_BODY.
45770 2006-10-04  Bruno Haible  <bruno@clisp.org>
45772         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
45773         (gl_oset_search_atleast): New declaration.
45774         (struct gl_oset_implementation): Add field 'search_atleast'.
45775         (gl_oset_search_atleast): New inline function.
45776         * lib/gl_oset.c (gl_oset_search_atleast): New function.
45777         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
45778         (gl_array_oset_implementation): Update.
45779         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
45780         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
45781         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
45783 2006-10-04  Bruno Haible  <bruno@clisp.org>
45785         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
45787 2006-10-03  Bruno Haible  <bruno@clisp.org>
45789         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
45790         from gl_avltreehash_list_implementation.
45792 2006-10-03  Bruno Haible  <bruno@clisp.org>
45794         * lib/gl_oset.c (gl_oset_add): Fix return type.
45796 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
45798         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
45800 2006-10-02  Eric Blake  <ebb9@byu.net>
45802         * modules/strnlen (Depends-on): Add extensions.
45804 2006-10-02  Eric Blake  <ebb9@byu.net>
45806         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
45807         definition in 2.60+.
45809 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
45811         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
45812         checks.
45814 2006-10-02  Bruno Haible  <bruno@clisp.org>
45816         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
45817         to the AUTOMAKE_OPTIONS.
45818         Reported by Jim Meyering.
45820 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
45822         Work around bug in Solaris 10 /proc file system:
45823         /proc/self/fd/NNN/.. isn't the parent directory of
45824         the directory whose file descriptor is NNN.  This needs to
45825         be worked around at run time, not compile time, since a
45826         program might be built on Solaris 8, where things work, and
45827         run on Solaris 10.
45828         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
45829         to use the following interface instead:
45830         (OPENAT_BUFFER_SIZE): New macro.
45831         (openat_proc_name): New function.
45832         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
45833         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
45834         Likewise.
45835         * lib/openat-proc.c: New file.
45836         * modules/openat (Files): Add lib/openat-proc.c.
45837         (Depends-on): Add same-inode, stdbool.
45838         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
45840 2006-09-29  Bruno Haible  <bruno@clisp.org>
45842         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
45843         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
45844         argument. Set stdout_closed before testing for ferror, not after.
45845         (fwriteerror, fwriteerror_no_ebadf): New functions.
45847 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45849         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
45851 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
45853         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
45854         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
45856 2006-09-28  Jim Meyering  <jim@meyering.net>
45858         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
45859         Include <unistd.h>.
45861 2006-09-28  Bruno Haible  <bruno@clisp.org>
45863         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
45864         * modules/linkedhash-list (Depends-on): Likewise.
45865         * modules/rbtreehash-list (Depends-on): Likewise.
45867 2006-09-28  Bruno Haible  <bruno@clisp.org>
45869         * lib/strndup.h: Simplify the redefinition of strndup.
45870         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
45871         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
45873 2006-09-28  Bruno Haible  <bruno@clisp.org>
45875         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
45876         * lib/gl_linkedhash_list.c: Likewise.
45877         * lib/gl_rbtreehash_list.c: Likewise.
45879 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
45881         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
45882         getaddrinfo.
45884         * lib/__fpending.h: Don't include <stdio_ext.h> unless
45885         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
45886         it causes <stdio_ext.h> to cause a compile-time error.
45887         Problem reported by Nelson H. F. Beebe.
45888         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
45889         of HAVE_DECL___PENDING.
45891         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
45892         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
45893         declaration.
45895 2006-09-27  Jim Meyering  <jim@meyering.net>
45897         This file could end up with a definition for a function
45898         named __strndup, rather than rpl_strndup on a system with
45899         incomplete weak_alias support.
45900         * lib/strndup.c (strndup): Rename from __strndup.
45901         Remove #defines that used to map __strndup to strndup.
45902         Don't use K&R prototypes.
45903         Remove LIBC-related code, since this file is not sync'd with glibc.
45904         * lib/strndup.h: Revamp, accordingly.
45905         * m4/strndup.m4: Modernize.
45907 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45909         * modules/savewd (Depends-on): Add 'raise'.
45910         * lib/savewd.c: Include <signal.h>, for 'raise'.
45912 2006-09-26  Jim Meyering  <jim@meyering.net>
45914         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
45915         when we detect Darwin 8.7.0's acl_get_file bug.
45916         Rearrange to perform the new (below) run-test while $LIBS
45917         contains any acl-related library.  Set USE_ACL at the end.
45918         (gl_ACL_GET_FILE): New function.
45920 2006-09-26  Eric Blake  <ebb9@byu.net>
45922         * lib/verror.c: Include <config.h> unconditionally.
45924 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
45926         * modules/clock-time (Maintainer): Add self.
45927         * modules/getlogin_r (Depends-on): Add extensions.
45929 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45931         * modules/clock-time: New module.
45932         * modules/nanosleep (Depends-on): Add clock-time.
45933         * modules/gethrxtime (Depends-on): Likewise.
45934         * modules/gettime (Depends-on): Likewise.
45935         * modules/settime (Depends-on): Likewise.
45937         * modules/fts-lgpl: Depend on openat.
45938         * modules/mkancesdirs: Depend on savewd.
45939         * modules/mkdir-p: Likewise.
45941 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45943         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
45945         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
45946         `gl_have_arbitrary_file_name_length_limit' to
45947         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
45948         actually works between configure runs.
45950 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45951             Bruno Haible  <bruno@clisp.org>
45953         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
45955 2006-09-25  Jim Meyering  <jim@meyering.net>
45957         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
45958         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
45960 2006-09-25  Eric Blake  <ebb9@byu.net>
45962         * gnulib-tool (func_import, func_create_testdir): Fix typos in
45963         exec's in 2006-09-18 patch when shuffling fds.
45965 2006-09-25  Bruno Haible  <bruno@clisp.org>
45967         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
45968         Reported by Jim Meyering.
45970 2006-09-24  Jim Meyering  <jim@meyering.net>
45972         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
45973         compare a pointer against a literal "0".  That caused failures with
45974         at least HP-UX's hpcc.
45976 2006-09-22  Simon Josefsson  <jas@extundo.com>
45978         * modules/gc-sha1:
45979         * modules/gc-md4:
45980         * modules/gc-hmac-sha1:
45981         * modules/gc-hmac-md5:
45982         * modules/gc-des:
45983         * modules/gc-arcfour: Distribute more files.
45985 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45987         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
45988         (gl_linked_iterator_from_to): Initialize struct completely.
45989         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
45990         (gl_tree_iterator_from_to): Likewise
45991         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
45992         * lib/gl_array_list.c [lint] (gl_array_iterator)
45993         (gl_array_iterator_from_to): Likewise.
45994         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
45995         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
45996         (gl_carray_iterator_from_to): Likewise.
45998         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
45999         * lib/md4.c (md4_process_block): Remove unused variable.
46000         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46001         parentheses for clarity.
46003 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46005         * modules/bison-i18n (Depends-on): Add gettext.
46007 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46009         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46010         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46011         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46012         also add missing comma that caused broken test.
46013         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46014         stdlib.h, for `abort'.
46015         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46016         variables.
46017         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46018         include unistd.h if present, for `rmdir'.
46019         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46020         variables.
46021         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46022         in the process include standard headers for prototypes.
46023         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46024         gets declared on GNU/Linux.
46025         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46026         unistd.h, for `rmdir'.
46027         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46029         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46030         always true.
46031         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46033         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46035 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46037         * gnulib-tool (func_version): Create output all at once.  This
46038         may help avoid triggering unnecessary SIGPIPEs, and at any
46039         rate it doesn't hurt.
46041 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46042             Bruno Haible  <bruno@clisp.org>
46044         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46045         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46046         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46048         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46049         (gl_FUNC_VASPRINTF): Invoke it.
46051 2006-09-22  Bruno Haible  <bruno@clisp.org>
46053         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46054         getloadavg.c as first argument.
46056 2006-09-22  Bruno Haible  <bruno@clisp.org>
46058         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46059         at the beginning of the gl_INIT macro.
46060         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46061         gl_GETLOADAVG.
46063 2006-09-22  Bruno Haible  <bruno@clisp.org>
46065         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46066         module.
46067         Suggested by Ralf Wildenhues.
46069 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46071         Import this patch from libc:
46073         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46075         * lib/regex_internal.c (re_string_reconstruct): Handle
46076         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46077         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46078         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46079         re_string_context_at.
46081         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46082         now requires it.
46083         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46084         gl_REGEX now does it for us.
46085         (gl_REGEX): Add test taken from
46086         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46088         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46089         Check that large offsets work.  Modernize Autoconf usages.
46090         Prefer "yes" to mean a good thing rather than a bad.
46091         Don't put "#define mkstemp" in config.h, as this might interfere
46092         with standard system headers that "#define mkstemp mkstemp64".
46094         * modules/mkstemp (Depends-on): Add extensions, so that
46095         mkstemp is visible on some platforms.
46096         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46097         (Include): Change to "mkstemp.h" from <stdlib.h>.
46098         (Files): Add mkstemp.h.
46100         * lib/mkstemp.h: New file, since some standard headers
46101         #define mkstemp.
46102         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46103         Include "mkstemp.h".
46104         Make the _LIBC code resemble glibc original more,
46105         e.g., use K&R style.
46106         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46107         (mkstemp): Remove, since mkstemp.h does this for us.
46108         * lib/stdlib--.h: Include mkstemp.h.
46110         Import this patch from libc:
46112         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46114         * lib/tempname.c (__gen_tempname): Change attempts_min
46115         into a macro.  Use preprocessor to decide how to initialize
46116         attempts [Coverity CID 67].
46118 2006-09-20  Bruno Haible  <bruno@clisp.org>
46120         * lib/mkdtemp.c: Import from libc.
46121         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46122                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46123                 attempts_min into a macro.  Use preprocessor to decide how to
46124                 initialize attempts [Coverity CID 67].
46125         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46126                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46127                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46129 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46131         * gnulib-tool (func_exit): New function, to allow to pass the
46132         exit status portably through the trap.  Use everywhere.
46133         (--help, --version): Signal a write error.
46134         (trap): catch SIGPIPE, for write errors.
46135         Exit at the end of the trap, with the correct exit status.
46137 2006-09-19  Karl Berry  <karl@gnu.org>
46139         * doc/gnulib.texi: note about the license texinfo files.
46141 2006-09-19  Eric Blake  <ebb9@byu.net>
46143         * gnulib-tool: Avoid space-tab.
46145 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46147         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46148         that prevented coreutils 6.1 from building.  Problem reported
46149         by Petter Reinholdtsen.
46151 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46153         * gnulib-tool (avoidlist): Fix typo that broke options like
46154         --avoid=lock that are used by coreutils bootstrap.
46156 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46158         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46159         more systematically.
46161 2006-09-18  Jim Meyering  <jim@meyering.net>
46163         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46165 2006-09-18  Bruno Haible  <bruno@clisp.org>
46167         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46169 2006-09-18  Bruno Haible  <bruno@clisp.org>
46171         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46172         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46173         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46174         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46175         * m4/gettext.m4: Require autoconf >= 2.52.
46176         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46177         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46178         of gl_cv_header_inttypes_h.
46180 2006-09-18  Bruno Haible  <bruno@clisp.org>
46182         * lib/javaversion.c: Include configmake.h.
46184 2006-09-18  Bruno Haible  <bruno@clisp.org>
46186         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46187         avoid that the while loops be executed in a subshell.
46189 2006-09-18  Bruno Haible  <bruno@clisp.org>
46191         * MODULES.html.sh (func_module): Break long lines.
46192         Suggested by Bruce Korb <bkorb@gnu.org>.
46194 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46196         Speed up by a factor of 1.12.
46197         * gnulib-tool (nl): New variable.
46198         (func_import): Rewrite include directive extraction to only read each
46199         directive once.
46201 2006-09-17  Bruno Haible  <bruno@clisp.org>
46203         * modules/javaversion (Makefile.am): Remove DEFS setting.
46204         (Depends-on): Add configmake, for PKGDATADIR definition.
46206 2006-09-17  Bruno Haible  <bruno@clisp.org>
46208         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46210 2006-09-17  Bruno Haible  <bruno@clisp.org>
46212         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46213         (func_modules_transitive_closure, func_modules_add_dummy,
46214         func_modules_to_filelist, func_import, func_create_testdir,
46215         func_create_megatestdir, ...): Use it wherever possible.
46216         Suggested by Ralf Wildenhues.
46218 2006-09-16  Karl Berry  <karl@gnu.org>
46220         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46221         to avoid sectioning errors.
46222         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46223         [ifinfo]: blank line after @center-ed titles.
46224         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46225         Spell FSF address consistently with others.
46226         (These changes approved by rms.)
46228 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46230         Speed up by a factor of 1.61.
46231         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46232         already checked module names again.
46234 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46236         Speed up by a factor of 1.13.
46237         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46238         for new_files, and the input to func_add_or_update.
46240 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46242         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46243         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46245 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46247         * modules/mkancesdirs (Depends-on): Add fcntl.
46248         * modules/savewd: New file.
46249         * MODULES.html.sh (File system functions): Add savewd.
46251         * modules/configmake (Makefile.am): Add support for the
46252         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46254 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46256         * m4/savewd.m4: New file.
46258 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46260         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46261         (dirchownmod): New arg FD.  All callers changed.
46262         Use FD rather than opening the directory ourself, as opening is
46263         now the caller's responsibility.
46264         * lib/dirchownmod.h: Likewise.
46265         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46266         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46267         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46268         (test_dir): Remove.
46269         (mkancesdirs): Return length of prefix of FILE that has already
46270         been made, or -2 if there is a child doing the work.  Redo
46271         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46272         ".", and treat ".." specially since it might stray back into
46273         already-created areas.  Use a subprocess if necessary.  New arg
46274         WD; all users changed.  MAKE_DIR function should now return 1
46275         if it creates a directory that is not readable.  Return -2 if
46276         a child process is spun off.
46277         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46278         Adjust signature to match code.
46279         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46280         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46281         all users changed.
46282         * lib/savewd.c, lib/savewd.h: New files.
46284 2006-09-15  Jim Meyering  <jim@meyering.net>
46286         * modules/rename-dest-slash: New module.
46287         * MODULES.html.sh (posix_compat): Add it here.
46289         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46291 2006-09-15  Jim Meyering  <jim@meyering.net>
46293         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46294         file.
46296         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46298 2006-09-15  Jim Meyering  <jim@meyering.net>
46300         * lib/rename-dest-slash.c (has_trailing_slash): Use
46301         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46302         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46303         test before testing whether SRC is a directory.
46304         Suggestions from Bruno Haible.
46306         Avoid a warning about an unused variable.
46307         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
46308         into the #ifdef block where it's used.
46310         * lib/rename-dest-slash.c: New file.
46312 2006-09-14  Bruno Haible  <bruno@clisp.org>
46314         * lib/allocsa.c: Include <config.h> unconditionally.
46315         * lib/asnprintf.c: Likewise.
46316         * lib/asprintf.c: Likewise.
46317         * lib/c-strcasecmp.c: Likewise.
46318         * lib/c-strcasestr.c: Likewise.
46319         * lib/c-strncasecmp.c: Likewise.
46320         * lib/c-strstr.c: Likewise.
46321         * lib/classpath.c: Likewise.
46322         * lib/clean-temp.c: Likewise.
46323         * lib/concatpath.c: Likewise.
46324         * lib/copy-file.c: Likewise.
46325         * lib/csharpcomp.c: Likewise.
46326         * lib/csharpexec.c: Likewise.
46327         * lib/execute.c: Likewise.
46328         * lib/fatal-signal.c: Likewise.
46329         * lib/findprog.c: Likewise.
46330         * lib/fwriteerror.c: Likewise.
46331         * lib/gl_array_list.c: Likewise.
46332         * lib/gl_array_oset.c: Likewise.
46333         * lib/gl_avltree_list.c: Likewise.
46334         * lib/gl_avltree_oset.c: Likewise.
46335         * lib/gl_avltreehash_list.c: Likewise.
46336         * lib/gl_carray_list.c: Likewise.
46337         * lib/gl_linked_list.c: Likewise.
46338         * lib/gl_linkedhash_list.c: Likewise.
46339         * lib/gl_list.c: Likewise.
46340         * lib/gl_oset.c: Likewise.
46341         * lib/gl_rbtree_list.c: Likewise.
46342         * lib/gl_rbtree_oset.c: Likewise.
46343         * lib/gl_rbtreehash_list.c: Likewise.
46344         * lib/imaxabs.c: Likewise.
46345         * lib/imaxdiv.c: Likewise.
46346         * lib/javacomp.c: Likewise.
46347         * lib/javaexec.c: Likewise.
46348         * lib/javaversion.c: Likewise.
46349         * lib/linebreak.c: Likewise.
46350         * lib/localcharset.c: Likewise.
46351         * lib/lock.c: Likewise.
46352         * lib/mbchar.c: Likewise.
46353         * lib/mbswidth.c: Likewise.
46354         * lib/mkdtemp.c: Likewise.
46355         * lib/pipe.c: Likewise.
46356         * lib/printf-args.c: Likewise.
46357         * lib/printf-parse.c: Likewise.
46358         * lib/progname.c: Likewise.
46359         * lib/progreloc.c: Likewise.
46360         * lib/readlink.c: Likewise.
46361         * lib/sh-quote.c: Likewise.
46362         * lib/stpcpy.c: Likewise.
46363         * lib/stpncpy.c: Likewise.
46364         * lib/strcasecmp.c: Likewise.
46365         * lib/strcasestr.c: Likewise.
46366         * lib/strcspn.c: Likewise.
46367         * lib/striconv.c: Likewise.
46368         * lib/strncasecmp.c: Likewise.
46369         * lib/strnlen1.c: Likewise.
46370         * lib/strstr.c: Likewise.
46371         * lib/strtok_r.c: Likewise.
46372         * lib/tls.c: Likewise.
46373         * lib/tmpdir.c: Likewise.
46374         * lib/unicodeio.c: Likewise.
46375         * lib/unsetenv.c: Likewise.
46376         * lib/vasnprintf.c: Likewise.
46377         * lib/vasprintf.c: Likewise.
46378         * lib/wait-process.c: Likewise.
46379         * lib/xallocsa.c: Likewise.
46380         * lib/xsetenv.c: Likewise.
46381         * lib/xstriconv.c: Likewise.
46383 2006-09-13  Simon Josefsson  <jas@extundo.com>
46385         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
46386         that internally, suggested by Ralf Wildenhues
46387         <Ralf.Wildenhues@gmx.de>.
46389 2006-09-13  Simon Josefsson  <jas@extundo.com>
46391         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
46392         @LIBOBJS@.
46393         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46395 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46397         * lib/_fpending.c: Include <config.h> unconditionally, since we no
46398         longer worry about uses that don't define HAVE_CONFIG_H.
46399         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
46400         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
46401         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
46402         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
46403         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
46404         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
46405         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
46406         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
46407         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
46408         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
46409         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
46410         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
46411         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
46412         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
46413         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
46414         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
46415         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
46416         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
46417         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
46418         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
46419         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
46420         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
46421         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
46422         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
46423         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
46424         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
46425         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
46426         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
46427         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
46428         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
46429         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
46430         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
46431         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
46432         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
46433         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
46434         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
46435         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
46436         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
46437         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
46438         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
46439         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
46440         Likewise.
46442 2006-09-13  Eric Blake  <ebb9@byu.net>
46444         * lib/getopt.c: Fix typo in last commit.
46446 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46448         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
46449         dgettext.
46451 2006-09-12  Jim Meyering  <jim@meyering.net>
46453         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
46454         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
46455         Reported by Nelson H. F. Beebe.
46457 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46459         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
46460         program_invocation_name and program_invocation_short_name are
46461         initialized.
46462         * lib/argp-namefrob.h: Move declarations of program_invocation_name
46463         and program_invocation_short_name to argp.h, so they are visible
46464         to user programs.
46465         * lib/argp.h: Likewise
46467 2006-09-10  Bruno Haible  <bruno@clisp.org>
46469         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
46470         m4/inttypes_h.m4, m4/uintmax_t.m4.
46472 2006-09-10  Bruno Haible  <bruno@clisp.org>
46474         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
46475         gl_AC_TYPE_UINTMAX_T.
46477 2006-09-10  Bruno Haible  <bruno@clisp.org>
46479         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
46481 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46483         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
46484         convention.  Text proposed by Bruno Haible.
46485         (struct argp_option): Document the use of N_() wrappers.
46487         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
46488         '\v', and translate the two parts separately, instead of feeding
46489         the whole string to gettext.  This allows to exclude
46490         '\v' from the strings visible to the translator by writing doc
46491         strings as N_("..") "\v" N_("..").
46493 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
46495         * config/srclist.txt: Undo latest change; the bug was fixed.
46497 2006-09-09  Bruno Haible  <bruno@clisp.org>
46499         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
46500         assignments if building a library without libtool.
46501         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
46502         in func_emit_lib_Makefile_am.
46503         (func_import): When building a static library libfoo.a, arrange to
46504         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
46505         (func_create_testdir): Likewise.
46506         * modules/gc (configure.ac, Makefile.am): If building statically,
46507         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
46508         * modules/iconvme (configure.ac, Makefile.am): Likewise.
46509         * modules/striconv (configure.ac, Makefile.am): Likewise.
46510         Based on a suggestion by Ralf Wildenhues.
46512 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46514         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46515         Check for unistd.h too, since Autoconf doesn't assume POSIX.
46516         Also:
46518         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46519         Add year_2050_test to catch glibc bug 2821
46520         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46522         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46523         Prefer #ifdef to #if.
46525         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
46526         Return from 'main' instead of calling 'exit'.
46528 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46530         * lib/mktime.c (guess_time_tm): Fix bug where mktime
46531         returned the maximum time_t value rather than (time_t) -1.
46532         Problem originally reported by William Bardwell
46533         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46535         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46536         Moved to here ...
46537         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46538         ... from here.
46540 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46542         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
46543         2821 is fixed.
46545 2006-09-08  Jim Meyering  <jim@meyering.net>
46547         Don't make generated files read-only.  That would bother too many
46548         people.  However, do retain the ability to work when targets are
46549         read-only: remove the destination and temporary files before writing
46550         them (when generated via sed or echo), or by using the -f option for
46551         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
46552         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46553         * modules/byteswap, modules/configmake, modules/fcntl:
46554         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46555         * modules/localcharset, modules/netinet_in, modules/poll:
46556         * modules/stdbool, modules/stdint, modules/sys_select:
46557         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46559 2006-09-08  Jim Meyering  <jim@meyering.net>
46561         Avoid new build failure on FreeBSD 6.0.
46562         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
46563         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
46564         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
46566 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46568         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
46570 2006-09-07  Jim Meyering  <jim@meyering.net>
46572         Fix global typo in last change: use chmod u-w, not chmod u-x.
46573         Spotted by Paul Eggert and Bruce Korb.
46574         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46575         * modules/byteswap, modules/configmake, modules/fcntl:
46576         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46577         * modules/localcharset, modules/netinet_in, modules/poll:
46578         * modules/stdbool, modules/stdint, modules/sys_select:
46579         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46581 2006-09-06  Jim Meyering  <jim@meyering.net>
46583         Make generated files be read-only.
46584         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
46585         Ensure that each generated file is now read-only.
46586         * modules/argz: Likewise.
46587         * modules/arpa_inet: Likewise.
46588         * modules/byteswap: Likewise.
46589         * modules/configmake: Likewise.
46590         * modules/fcntl: Likewise.
46591         * modules/fnmatch: Likewise.
46592         * modules/getopt: Likewise.
46593         * modules/glob: Likewise.
46594         * modules/inttypes: Likewise.
46595         * modules/netinet_in: Likewise.
46596         * modules/poll: Likewise.
46597         * modules/stdbool: Likewise.
46598         * modules/stdint: Likewise.
46599         * modules/sys_select: Likewise.
46600         * modules/sys_socket: Likewise.
46601         * modules/sys_stat: Likewise.
46602         * modules/sysexits: Likewise.
46603         * modules/localcharset: Same as above, but continue using temporary
46604         file named "t-$@" (why different?) rather than the "$@-t" used
46605         everywhere else.
46607         * modules/sysexits (Makefile.am): Replace literal occurrences
46608         of "sysexit.h" more readable, and more consistent, "$@".
46610 2006-09-06  Bruno Haible  <bruno@clisp.org>
46612         * modules/striconv: New file.
46613         * modules/xstriconv: New file.
46614         * MODULES.html.sh (Internationalization functions): Add striconv,
46615         xstriconv.
46617 2006-09-06  Bruno Haible  <bruno@clisp.org>
46619         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
46620         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
46621         not using libtool correctly.
46623 2006-09-06  Bruno Haible  <bruno@clisp.org>
46625         * lib/striconv.h: New file.
46626         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
46627         iconvstring.c.
46628         * lib/xstriconv.h: New file.
46629         * lib/xstriconv.c: New file.
46631 2006-09-06  Bruno Haible  <bruno@clisp.org>
46633         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46634         lib_..._LDFLAGS.
46636 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46638         * lib/argz_.h: Sync from Libtool.
46640         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
46641                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46643         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
46645 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46647         * modules/trim: New file.
46649 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46651         * lib/trim.h: New file.
46652         * lib/trim.c: New file.
46654 2006-09-05  Bruno Haible  <bruno@clisp.org>
46656         * MODULES.html.sh (String handling): Add trim.
46658 2006-09-04  Karl Berry  <karl@gnu.org>
46660         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
46661         until next release.
46663 2006-09-03  Bruno Haible  <bruno@clisp.org>
46665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
46666         correctly.
46668 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46670         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
46671         not gl_GETLOADAVG.  Omit unneeded semicolons.
46672         Problems reported by Ralf Wildenhues in
46673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
46674         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
46675         at the end, which is the usual gnulib style.
46677         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
46678         of doing all the work ourselves.
46679         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
46680         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
46682 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46684         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
46685         Problem reported by Ralf Wildenhues in
46686         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
46688         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
46689         HAVE_STRUCT_STATFS_F_FSTYPENAME.
46691 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46693         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
46694         yesterday's patch by changing test -n to test -z.
46696 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46698         * modules/getloadavg (Files): Add m4/getloadavg.m4.
46699         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
46700         the former is now obsolescent.
46702         * modules/chdir-long (Depends-on): Add fcntl.
46704 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46706         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
46707         obsolescent, and programs should use gnulib instead.
46708         * m4/getloadavg.m4: New file, with contents taken from Autoconf
46709         but with prefixes changed.
46711 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46713         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
46714         or stdbool.h, because they might not exist while configuring.
46716         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
46717         Don't include unistd.h or limits.h; not needed, since chdir-long.h
46718         does that for us.
46719         (O_DIRECTORY): Remove.
46721 2006-08-31  Eric Blake  <ebb9@byu.net>
46723         * gnulib-tool: Don't let emacs change spaces to TAB.
46725 2006-08-31  Bruno Haible  <bruno@clisp.org>
46727         * gnulib-tool: When calling func_import more than once, do it in a
46728         subshell.
46729         Reported by Eric Blake <ebb9@byu.net>.
46731 2006-08-31  Bruno Haible  <bruno@clisp.org>
46733         * gnulib-tool (nl): Remove variable.
46734         (sed_transform_lib_file): Use more robust test for config-h module.
46735         (func_import): Fix typo in 2006-08-25 patch.
46737 2006-08-31  Bruno Haible  <bruno@clisp.org>
46739         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
46740         specified, augment Makefile.am variables instead of assigning them.
46742 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46744         Work around a bug in both the Linux and SunOS 64-bit kernels:
46745         nanosleep mishandles sleeps for longer than 2**31 seconds.
46746         Problem reported by Frank v Waveren in
46747         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
46748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
46749         Check for nanosleep bug.
46750         (LIB_NANOSLEEP): Append clock_gettime library if needed.
46752 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46754         Work around a bug in both the Linux and SunOS 64-bit kernels:
46755         nanosleep mishandles sleeps for longer than 2**31 seconds.
46756         Problem reported by Frank v Waveren in
46757         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
46758         * lib/nanosleep.c (BILLION): New constant.
46759         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
46760         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
46761         implementation.
46763 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46765         * modules/nanosleep (Depends-on): Add gettime.
46767 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46768         and Simon Josefsson  <jas@extundo.com>
46769         and Oskar Liljeblad  <oskar@osk.mine.nu>
46771         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
46772         * gnulib-tool (func_import): New license type 'unmodifiable license
46773         text'.
46774         * modules/fdl: Use it.  Longer description.
46775         * module/gpl, module/lgpl: New files.
46777 2006-08-30  Jim Meyering  <jim@meyering.net>
46779         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
46780         shadowing the parameter.
46782 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46784         Sync from Libtool:
46786         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46788         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
46789         sharing with gnulib.  Report by Eric Blake.
46791 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46793         * modules/isapipe: New file.
46794         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
46796 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46798         * modules/configmake (Makefile.am): Add a comment, and omit
46799         the CONFIGMAKE_ prefix from generated macro names.  Suggested
46800         by Bruno Haible.
46802 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46804         * m4/isapipe.m4: New file.
46806 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
46808         * lib/isapipe.c, lib/isapipe.h: New files.
46810 2006-08-29  Jim Meyering  <jim@meyering.net>
46812         * modules/configmake (Makefile.am): Make configmake.h depend on
46813         Makefile.  Otherwise, a stale configmake.h could hang around.
46815 2006-08-29  Eric Blake  <ebb9@byu.net>
46817         * lib/error.c (error_at_line, print_errno_message): Match libc, after
46818         resolution of upstream bug 3044.
46820 2006-08-29  Bruno Haible  <bruno@clisp.org>
46822         * modules/localcharset (Depends-on): Add configmake.
46823         (Makefile.am): Remove setting of LIBDIR through DEFS.
46825 2006-08-29  Bruno Haible  <bruno@clisp.org>
46827         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
46828         defined.
46830 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46832         * modules/fcntl: New file.
46833         * modules/chdir-safer (Depends-on): Add fcntl.
46834         * modules/fts: Likewise.
46835         * modules/mkdir-p: Likewise.
46837         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
46838         This undoes the most recent change, since we're now addressing the
46839         problem in a different way.
46841         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
46842         into output, since the output might be called Makefile.am even
46843         if $makefile_name is something different.
46844         (func_import): Use $makefile_am rather than
46845         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
46846         empty.
46848         * modules/inttypes (Files): Add m4/inttypes-h.m4.
46850 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46852         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
46853         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
46854         recent change to stdint.m4, since we're now addressing the problem in a
46855         different way.
46857 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46859         * m4/fcntl_h.m4: New file.
46861 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
46863         * lib/fcntl_.h: New file.
46864         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
46865         the fcntl module.
46866         * lib/dirchownmod.c: Likewise.
46867         * lib/fts.c: Likewise.
46869         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
46870         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
46871         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
46872         just before including <inttypes.h>, to avoid circular inclusion.
46874 2006-08-28  Jim Meyering  <jim@meyering.net>
46876         * doc/visibility.texi: Actually read and correct the grammar of the
46877         sentence affected by yesterday's change.
46879 2006-08-28  Eric Blake  <ebb9@byu.net>
46881         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
46882         needs wrapper.
46884 2006-08-28  Eric Blake  <ebb9@byu.net>
46886         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
46888 2006-08-28  Eric Blake  <ebb9@byu.net>
46890         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
46892 2006-08-28  Bruno Haible  <bruno@clisp.org>
46894         * modules/c-strstr: New file, from GNU gettext.
46895         * MODULES.html.sh (String handling): Add c-strstr.
46897 2006-08-28  Bruno Haible  <bruno@clisp.org>
46899         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
46900         macros.
46901         Reported by Eric Blake.
46903 2006-08-28  Bruno Haible  <bruno@clisp.org>
46905         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
46906         (VASNPRINTF): Return a string of length > INT_MAX without failing.
46907         * lib/vasprintf.c: Include errno.h, limits.h.
46908         (EOVERFLOW): New fallback definition.
46909         (vasprintf): Test here whether the string length is > INT_MAX.
46910         * lib/vsnprintf.c: Include errno.h, limits.h.
46911         (EOVERFLOW): New fallback definition.
46912         (vsnprintf): Fix bug when generated string was too long for the buffer.
46913         Test here whether the string length is > INT_MAX.
46915 2006-08-28  Bruno Haible  <bruno@clisp.org>
46917         * lib/inttypes_.h (SCNX*): Remove definitions.
46918         Reported by Eric Blake.
46920 2006-08-28  Bruno Haible  <bruno@clisp.org>
46922         * lib/c-strstr.h: New file, from GNU gettext.
46923         * lib/c-strstr.c: New file, from GNU gettext.
46925 2006-08-28  Bruno Haible  <bruno@clisp.org>
46927         * gnulib-tool: Reorder some statements.
46929 2006-08-28  Bruno Haible  <bruno@clisp.org>
46931         * gnulib-tool: New option --makefile-name.
46932         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
46933         $makefile_name.
46934         (func_import): Write $makefile_name to the cache file, and read it from
46935         there unless explicitly specified. Use $makefile_name as file name
46936         instead of Makefile.am. Adjust the recommendations accordingly.
46938 2006-08-28  Bruno Haible  <bruno@clisp.org>
46940         * gnulib-tool (func_verify_module): Check against misapplying patch.
46942 2006-08-28  Bruno Haible  <bruno@clisp.org>
46944         * gnulib-tool (func_relativize, func_relconcat): New functions.
46945         Give an error if --local-dir is given with --update.
46946         Remove trailing slashes from $local_gnulib_dir.
46947         (func_import): Store the relativized $local_gnulib_dir in
46948         gnulib-cache.m4, and read it from there if not specified explicitly.
46950 2006-08-28  Bruno Haible  <bruno@clisp.org>
46952         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
46953         is the current directory. Respect also $local_gnulib_dir.
46955 2006-08-28  Bruno Haible  <bruno@clisp.org>
46956             Simon Josefsson  <jas@extundo.com>
46958         BeOS portability.
46959         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
46961 2006-08-27  Jim Meyering  <jim@meyering.net>
46963         * doc/visibility.texi: Remove duplicate word: "pointer".
46965 2006-08-26  Bruno Haible  <bruno@clisp.org>
46967         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
46968         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
46969         (Makefile.am): Create inttypes.h from inttypes_.h.
46970         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
46972         * modules/imaxabs: New file.
46974         * modules/imaxdiv: New file.
46976 2006-08-26  Bruno Haible  <bruno@clisp.org>
46978         * m4/inttypes.m4: New file.
46979         * m4/_inttypes_h.m4: Remove file.
46980         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
46981         PRI_MACROS_BROKEN.
46982         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
46984         * m4/imaxabs.m4: New file.
46986         * m4/imaxdiv.m4: New file.
46988 2006-08-26  Bruno Haible  <bruno@clisp.org>
46990         * lib/inttypes_.h: New file.
46991         * lib/inttypes.h: Remove file.
46992         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
46994         * lib/imaxabs.c: New file.
46996         * lib/imaxdiv.c: New file.
46998 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47000         New config-h module, so that "make" output needn't be cluttered
47001         by -DHAVE_CONFIG_H.
47002         * MODULES.html.sh (Support for building libraries and executables):
47003         Add config-h.
47004         * modules/config-h: New file.
47005         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47006         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47007         the config-h module is used.
47009         New configmake module, so that "make" output needn't be cluttered
47010         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47011         * MODULES.html.sh (Support for building libraries and executables):
47012         Add configmake.
47013         * modules/configmake: New file.
47015 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47017         * m4/config-h.m4: New file.
47019 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47021         * config/srclist.txt: Add elisp-comp.
47023 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47025         * MODULES.html.sh (Support for building libraries and executables):
47026         Add elisp-comp.
47027         * build-aux/elisp-comp: New file.
47028         * modules/elisp-comp: New file.
47030 2006-08-24  Bruno Haible  <bruno@clisp.org>
47032         * gnulib-tool (func_create_testdir): Use non-default values of
47033         sourcebase and m4base.
47035 2006-08-24  Bruno Haible  <bruno@clisp.org>
47037         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47038         HTML structure.
47040 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47042         * modules/openat (Depends-on): Add lchown.
47044 2006-08-23  Bruno Haible  <bruno@clisp.org>
47046         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47047         of gl_LOCK_EARLY instead of gl_LOCK.
47049 2006-08-23  Bruno Haible  <bruno@clisp.org>
47051         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47052         on OSF/1 to no.
47053         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47055 2006-08-23  Bruno Haible  <bruno@clisp.org>
47057         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47058         as unusable.
47060         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47061         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47062         (gl_LOCK): New macro.
47064 2006-08-22  Simon Josefsson  <jas@extundo.com>
47066         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47067         to md5 module.
47069 2006-08-22  Simon Josefsson  <jas@extundo.com>
47071         * MODULES.html.sh: Add "Support for maintaining and release
47072         projects".
47074         * build-aux/gnupload: New file, from coreutils.
47076 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47078         Avoid the need for AC_LIBSOURCES in m4 macros.
47079         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47080         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47081         * modules/check-version (EXTRA_DIST): Add check-version.h.
47082         * modules/crc (EXTRA_DIST): Add crc.h.
47083         * modules/des (EXTRA_DIST): Add des.h.
47084         * modules/gc (EXTRA_DIST): Add gc.h.
47085         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47086         * modules/getline (EXTRA_DIST): Add getline.h.
47087         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47088         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47089         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47090         * modules/md2 (EXTRA_DIST): Add md2.h.
47091         * modules/md4 (EXTRA_DIST): Add md4.h.
47092         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47093         * modules/read-file (EXTRA_DIST): Add read-file.h.
47094         * modules/readline (EXTRA_DIST): Add readline.h.
47095         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47096         rijndael-api-fst.h.
47098 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47100         * m4/rijndael.m4 (gl_ARCFOUR):
47101         * m4/arctwo.m4 (gl_ARCTWO):
47102         * m4/check-version.m4 (gl_CHECK_VERSION):
47103         * m4/crc.m4 (gl_CRC):
47104         * m4/des.m4 (gl_DES):
47105         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47106         * m4/gc.m4 (gl_GC):
47107         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47108         * m4/getline.m4 (gl_FUNC_GETLINE):
47109         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47110         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47111         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47112         * m4/md2.m4 (gl_MD2):
47113         * m4/md4.m4 (gl_MD4):
47114         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47115         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47116         * m4/readline.m4 (gl_FUNC_READLINE):
47117         * m4/rijndael.m4 (gl_RIJNDAEL):
47118         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47119         to get the necessary .h files and whatnot.
47121 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47123         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47124         gnulib rather than the other way around.
47125         * config/srclistvars.sh (COREUTILS): Remove.
47127 2006-08-22  Jim Meyering  <jim@meyering.net>
47129         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47131         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47133 2006-08-22  Eric Blake  <ebb9@byu.net>
47135         * modules/regexprops-generic: New file.
47136         * MODULES.html.sh (Support for building documentation): List it.
47138 2006-08-22  Eric Blake  <ebb9@byu.net>
47140         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47141         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47142         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47143         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47145 2006-08-22  Bruno Haible  <bruno@clisp.org>
47147         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47148         and lib_LTLIBRARIES like the other lib_* variables.
47150 2006-08-22  Bruno Haible  <bruno@clisp.org>
47152         * build-aux/x-to-1.in: New file, from GNU gettext.
47154 2006-08-22  Bruno Haible  <bruno@clisp.org>
47156         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47157         <utmpx.h> exists.
47159 2006-08-22  Bruno Haible  <bruno@clisp.org>
47161         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47162         <utmpx.h> exists.
47164 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47166         BeOS portability.
47167         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47168         exist.
47169         Problem reported by Bruno Haible.
47171 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47173         Avoid the need for AC_LIBSOURCES in m4 macros.
47174         * modules/acl (EXTRA_DIST): Add acl.h.
47175         * modules/argmatch (Files): Add m4/argmatch.m4.
47176         (configure.ac): Add gl_ARGMATCH.
47177         (EXTRA_DIST): Renamed from lib_SOURCES, for
47178         consistency with the other modules.  Remove argmatch.c.
47179         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47180         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47181         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47182         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47183         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47184         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47185         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47186         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47187         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47188         * modules/closeout (EXTRA_DIST): Add closeout.h.
47189         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47190         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47191         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47192         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47193         dirname.h; remove basename.c and stripslash.c.
47194         * modules/exclude (EXTRA_DIST): Add exclude.h.
47195         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47196         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47197         * modules/file-type (EXTRA_DIST): Add file-type.h.
47198         * modules/filemode (EXTRA_DIST): Add filemode.h.
47199         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47200         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47201         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47202         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47203         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47204         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47205         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47206         * modules/getdate (EXTRA_DIST): Add getdate.c.
47207         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47208         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47209         * modules/getpass (EXTRA_DIST): Add getpass.h.
47210         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47211         * modules/group-member (EXTRA_DIST): Add group-member.h.
47212         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47213         * modules/hash (EXTRA_DIST): Add hash.h.
47214         * modules/human (EXTRA_DIST): Add human.h.
47215         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47216         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47217         * modules/lchown (EXTRA_DIST): Add lchown.h.
47218         * modules/long-options (EXTRA_DIST): Add long-options.h.
47219         * modules/lstat (EXTRA_DIST): Add lstat.h.
47220         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47221         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47222         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47223         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47224         * modules/memxor (EXTRA_DIST): Add memxor.h.
47225         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47226         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47227         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47228         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47229         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47230         * modules/physmem (EXTRA_DIST): Add physmem.h.
47231         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47232         * modules/posixver (EXTRA_DIST): Add posixver.h.
47233         * modules/quote (EXTRA_DIST): Add quote.h.
47234         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47235         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47236         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47237         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47238         regex_internal.h regexec.c.
47239         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47240         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47241         * modules/same (EXTRA_DIST): Add same.h.
47242         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47243         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47244         * modules/savedir (EXTRA_DIST): Add savedir.h.
47245         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47246         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47247         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47248         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47249         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47250         * modules/strdup (EXTRA_DIST): Add strdup.h.
47251         * modules/strftime (EXTRA_DIST): Add strftime.h.
47252         * modules/strndup (EXTRA_DIST): Add strndup.h.
47253         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47254         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47255         * modules/time_r (EXTRA_DIST): Add time_r.h.
47256         * modules/timespec (EXTRA_DIST): Add timespec.h.
47257         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47258         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47259         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47260         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47261         * modules/userspec (EXTRA_DIST): Add userspec.h.
47262         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47263         * modules/utimens (EXTRA_DIST): Add utimens.h.
47264         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47265         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47266         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47267         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47268         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47269         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47270         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47271         * modules/yesno (EXTRA_DIST): Add yesno.h.
47273 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47275         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47277         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47278         * m4/dev-ino.m4, same-inode.m4: Remove.
47280         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47281         * m4/acl.m4 (AC_FUNC_ACL):
47282         * m4/backupfile.m4 (gl_BACKUPFILE):
47283         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47284         * m4/canon-host.m4 (gl_CANON_HOST):
47285         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47286         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47287         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47288         * m4/cloexec.m4 (gl_CLOEXEC):
47289         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47290         * m4/closeout.m4 (gl_CLOSEOUT):
47291         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47292         * m4/dirname.m4 (gl_DIRNAME):
47293         * m4/exclude.m4 (gl_EXCLUDE):
47294         * m4/exitfail.m4 (gl_EXITFAIL):
47295         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47296         * m4/file-type.m4 (gl_FILE_TYPE):
47297         * m4/filemode.m4 (gl_FILEMODE):
47298         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47299         * m4/fpending.m4 (gl_FUNC_FPENDING):
47300         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47301         * m4/fts.m4 (gl_FUNC_FTS):
47302         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47303         * m4/getdate.m4 (gl_GETDATE):
47304         * m4/gethrxtime.m4 (gl_GETHRXTIME):
47305         * m4/getpagesize.m4 (gl_GETPAGESIZE):
47306         * m4/getpass.m4 (gl_FUNC_GETPASS):
47307         * m4/gettime.m4 (gl_GETTIME):
47308         * m4/getugroups.m4 (gl_GETUGROUPS):
47309         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
47310         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
47311         * m4/hard-locale.m4 (gl_HARD_LOCALE):
47312         * m4/hash.m4 (gl_HASH):
47313         * m4/idcache.m4 (gl_IDCACHE):
47314         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
47315         * m4/lchown.m4 (gl_FUNC_LCHOWN):
47316         * m4/long-options.m4 (gl_LONG_OPTIONS):
47317         * m4/lstat.m4 (gl_FUNC_LSTAT):
47318         * m4/md5.m4 (gl_MD5):
47319         * m4/memcasecmp.m4 (gl_MEMCASECMP):
47320         * m4/memcoll.m4 (gl_MEMCOLL):
47321         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
47322         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
47323         * m4/memxor.m4 (gl_MEMXOR):
47324         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
47325         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
47326         * m4/modechange.m4 (gl_MODECHANGE):
47327         * m4/mountlist.m4 (gl_MOUNTLIST):
47328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47329         * m4/openat.m4 (gl_FUNC_OPENAT):
47330         * m4/pathmax.m4 (gl_PATHMAX):
47331         * m4/physmem.m4 (gl_PHYSMEM):
47332         * m4/posixtm.m4 (gl_POSIXTM):
47333         * m4/posixver.m4 (gl_POSIXVER):
47334         * m4/quote.m4 (gl_QUOTE):
47335         * m4/quotearg.m4 (gl_QUOTEARG):
47336         * m4/readtokens.m4 (gl_READTOKENS):
47337         * m4/readutmp.m4 (gl_READUTMP):
47338         * m4/regex.m4 (gl_REGEX):
47339         * m4/safe-read.m4 (gl_SAFE_READ):
47340         * m4/safe-write.m4 (gl_SAFE_WRITE):
47341         * m4/same.m4 (gl_SAME):
47342         * m4/save-cwd.m4 (gl_SAVE_CWD):
47343         * m4/savedir.m4 (gl_SAVEDIR):
47344         * m4/settime.m4 (gl_SETTIME):
47345         * m4/sha1.m4 (gl_SHA1):
47346         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
47347         * m4/stat-macros.m4 (gl_STAT_MACROS):
47348         * m4/stat-time.m4 (gl_STAT_TIME):
47349         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
47350         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
47351         * m4/strdup.m4 (gl_FUNC_STRDUP):
47352         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
47353         * m4/strndup.m4 (gl_FUNC_STRNDUP):
47354         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
47355         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
47356         * m4/time_r.m4 (gl_TIME_R):
47357         * m4/timespec.m4 (gl_TIMESPEC):
47358         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
47359         * m4/unlinkdir.m4 (gl_UNLINKDIR):
47360         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
47361         * m4/userspec.m4 (gl_USERSPEC):
47362         * m4/utimecmp.m4 (gl_UTIMECMP):
47363         * m4/utimens.m4 (gl_UTIMENS):
47364         * m4/xalloc.m4 (gl_XALLOC):
47365         * m4/xgetcwd.m4 (gl_XGETCWD):
47366         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
47367         * m4/xreadlink.m4 (gl_XREADLINK):
47368         * m4/xstrtod.m4 (gl_XSTRTOD):
47369         * m4/yesno.m4 (gl_YESNO):
47370         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47371         to get the necessary .h files and whatnot.
47373 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
47374             Bruno Haible  <bruno@clisp.org>
47376         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
47377         /bin/sh understanding of '!' conditional negation.
47379 2006-08-21  Jim Meyering  <jim@meyering.net>
47381         * modules/openat (Depends-on): Really alphabetize.
47383         * modules/acl (Depends-on): Add error and quote.
47385         * check-module (find_included_lib_files): Add at-func.c to the
47386         ok-to-include-more-than-once white list.
47388         * modules/openat (Depends-on): Add lstat.  Alphabetize.
47390 2006-08-21  Bruno Haible  <bruno@clisp.org>
47392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47393         Emit a pkgdata_DATA variable only if some snippets add contents to it.
47394         Reported by Martin Lambers <marlam@marlam.de>.
47396 2006-08-21  Bruno Haible  <bruno@clisp.org>
47398         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
47399         specify an installation location, don't emit a noinst_LIBRARIES or
47400         noinst_LTLIBRARIES assignment.
47402 2006-08-21  Bruno Haible  <bruno@clisp.org>
47404         BeOS portability.
47405         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
47406         BeOS has mbrtowc() but no <wctype.h>.
47408 2006-08-21  Bruno Haible  <bruno@clisp.org>
47410         BeOS portability.
47411         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
47412         exist.
47414 2006-08-21  Bruno Haible  <bruno@clisp.org>
47416         BeOS portability.
47417         * lib/mbchar.h: Include <wctype.h> only if it exists.
47419 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47421         Remove files that are no longer needed by their respective modules.
47422         * m4/obstack.m4: Remove.
47423         * m4/strerror_r.m4: Remove.
47424         * m4/uint32_t.m4: Remove.
47425         * m4/uintptr_t.m4: Remove.
47426         * m4/ullong_max.m4: Remove.
47427         * m4/xstrtoimax.m4: Remove.
47428         * m4/xstrtoumax.m4: Remove.
47430         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
47431         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
47432         dependencies now capture this.
47434         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
47435         Do not use AC_LIBSOURCES, since gnulib modules now do this.
47436         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
47437         * m4/human.m4 (gl_HUMAN): Likewise.
47438         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
47439         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
47441         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
47443         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
47444         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
47445         stdint.
47446         * m4/human.m4 (gl_HUMAN): Likewise.
47447         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
47448         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
47449         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47450         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47451         * m4/xstrtol (gl_XSTRTOL): Likewise.
47453         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
47454         AC_TYPE_LONG_LONG_INT.
47455         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47456         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
47457         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
47458         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47460         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
47461         on stdbool.
47463         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
47464         (gl_PREREQ_XSTRTOUL): Remove.
47466         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
47468         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
47469         mode.
47471 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47473         Add and change modules to make it easier for coreutils to use
47474         gnulib-tool.
47475         * modules/backupfile (Files): Remove m4/d-ino.m4.
47476         (Depends-on): Add d-ino.
47477         * modules/cycle-check (Depends-on): Add stdint.
47478         (lib_SOURCES): Add cycle-check.h.
47479         * modules/d-ino: New module.
47480         * modules/d-type: New module.
47481         * modules/error (Files): Remove m4/strerror_r.m4.
47482         * modules/filemode (Files): Add m4/st_dm_mode.m4.
47483         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47484         m4/inttypes_h.m4, m4/uintmax_t.m4.
47485         (Depends-on): Add stdint.
47486         (lib_SOURCES): Add fsusage.h.
47487         * modules/getcwd (Files): Remove d-ino.m4.
47488         (Depends-on): Add d-ino.
47489         * modules/getndelim2 (Depends-on): Add stdint.
47490         * modules/glob (Files): Remove m4/d-type.m4.
47491         (Depends-on): Add d-type.
47492         * modules/host-os: New module.
47493         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
47494         m4/inttypes_h.m4, m4/uintmax_t.m4.
47495         * Depends-on: Add stdint.
47496         (lib_SOURCES): Add human.h.
47497         * modules/inttostr (Files): Remove m4/intmax_t.m4,
47498         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
47499         m4/uintmax_t.m4, m4/ulonglong.m4.
47500         (Depends-on): Add stdint.
47501         (EXTRA_DIST): Add inttostr.h.
47502         * modules/lchmod: New module.
47503         * modules/link-follow: New module.
47504         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
47505         (Depends-on): Add lchmod.
47506         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
47507         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
47508         (Depends-on): Add stdint.
47509         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
47510         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
47511         (Depends-on): Add stdint.
47512         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
47513         * modules/perl: New module.
47514         * modules/regex (Depends-on): Add stdint.
47515         * modules/rmdir-errno: New module.
47516         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47517         m4/intmax_t.m4.
47518         (Depends-on): Add stdint.
47519         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47520         m4/uintmax_t.m4.
47521         (Depends-on): Add stdint.
47522         * modules/unlink-busy: New module.
47523         * modules/utimecmp (Depends-on): Add stdint.
47524         * modules/uptime: New module.
47525         * modules/winsz-ioctl: New module.
47526         * modules/winsz-termios: New module.
47527         * modules/xnanosleep (Depends-on): Add nanosleep.
47528         * modules/ullong_max: Remove.
47529         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
47530         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
47531         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
47532         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
47533         (Depends-on): Add inttypes.
47534         (lib_SOURCES): Add xstrtol.h.
47535         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
47536         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
47537         * MODULES.html.sh: Move 'assert' into the assert section.
47538         Move 'dummy' into the linking section.
47539         Remove ullong_max.
47540         Add section for compatibility checks for POSIX:2001 functions,
47541         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
47542         winsz-ioctl, and winsz-termios into it.
47543         Add lchmod.
47544         Add top-level Misc section and put host-os, perl, and uptime
47545         into it.
47547 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47549         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
47550         now assume the stdint module.  Do not include inttypes.h.
47551         * lib/fsusage.h: Likewise.
47552         * lib/getndelim2.c: Likewise.
47553         * lib/human.h: Likewise.
47554         * lib/inttostr.h: Likewise.
47555         * lib/obstack.c: Likewise.
47556         * lib/regex_internal.h: Likewise.
47557         * lib/tempname.c: Likewise.
47558         * lib/utimecmp.c: Likewise.
47559         * lib/xstrtol.h: Likewise.
47561         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
47563         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
47564         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
47565         * lib/xtime.h: Likewise.
47567 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47569         * modules/openat (Files): Add lib/fchmodat.c.
47570         Fixes problem reported by Jay Youngman.
47572 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47574         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
47575         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
47577 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
47578             Bruno Haible  <bruno@clisp.org>
47580         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
47581         and is a script that invokes bison. Tighten the code. Add comments.
47583 2006-08-18  Jim Meyering  <jim@meyering.net>
47585         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
47586         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
47587         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
47588         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
47590 2006-08-18  Bruno Haible  <bruno@clisp.org>
47592         * modules/bison-i18n: New file.
47593         * MODULES.html.sh (Internationalization functions): Add it.
47595 2006-08-18  Bruno Haible  <bruno@clisp.org>
47597         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
47598         sys/statvfs.h. When getmntinfo was found, check its declaration and
47599         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
47601 2006-08-18  Bruno Haible  <bruno@clisp.org>
47603         * m4/bison-i18n.m4: New file, from bison.
47605 2006-08-18  Bruno Haible  <bruno@clisp.org>
47607         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
47608         (ME_DUMMY): Treat "kernfs" as a dummy.
47609         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
47611 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47613         Update from coreutils.
47615         2006-08-15  Jim Meyering  <jim@meyering.net>
47617         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
47619         2006-01-17  Jim Meyering  <jim@meyering.net>
47621         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
47623         2006-01-11  Jim Meyering  <jim@meyering.net>
47625         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
47626         Check for the lchmod function.
47628 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47630         Update from coreutils.
47632         * lib/__fpending.h: Add copyright notice.
47633         * lib/fprintftime.h: Likewise.
47634         * lib/savedir.c: Use (C) in copyright notice.
47635         * lib/savedir.h: Likewise.
47637         2006-08-15  Jim Meyering  <jim@meyering.net>
47639         * lib/at-func.c: New file, with the logic of all emulated at-functions.
47640         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
47641         in support of the EXPECTED_ERRNO macro.
47642         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
47643         definitions.  Instead, define the appropriate symbols and include
47644         "at-func.c".
47645         * lib/mkdirat.c (mkdirat): Likewise.
47646         * lib/fchmodat.c (fchmodat): Likewise.
47647         (ENOSYS): Remove definition.
47648         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
47649         it.  Don't include "unistd--.h" -- it wasn't ever used.
47651         2006-01-17  Jim Meyering  <jim@meyering.net>
47653         Rewrite fts.c not to change the current working directory,
47654         by using openat, fstatat, fdopendir, etc..
47656         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
47657         (HAVE_OPENAT_SUPPORT): Define.
47658         [_LIBC] (fchdir): Don't undef or define; no longer used.
47659         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
47660         Now, this `function' always succeeds, and consumes its file descriptor
47661         parameter -- so callers must not close such FDs.  Update callers.
47662         (diropen_fd, opendirat, cwd_advance_fd): New functions.
47663         (diropen): Add parameter, SP.  Adjust all callers.
47664         Implement using diropen_fd, rather than open.
47665         (fts_open): Initialize new member, fts_cwd_fd.
47666         Remove fts_rft-setting code.
47667         (fts_close): Close fts_cwd_fd, if necessary.
47668         (__opendir2): Define in terms of opendir or opendirat,
47669         depending on whether the FST_NOCHDIR flag is set.
47670         (fts_build): Since fts_safe_changedir consumes its FD, and since
47671         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
47672         and close the dup'd file descriptor upon failure.
47673         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
47674         (fts_safe_changedir): Tweak semantics to reflect that this function
47675         now calls cwd_advance_fd and hence consumes its FD argument.
47676         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
47677         [struct FTS] (fts_rft): Remove now-unused member.
47678         [struct FTS] (fts_cycle.state): Improve comment.
47680         * lib/openat.c (openat_needs_fchdir): New function.
47681         * lib/openat.h (openat_needs_fchdir): Declare it.
47683 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47685         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
47686         Problem and fix reported by Pádraig Brady in
47687         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
47689 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47691         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
47693 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47695         * lib/memcoll.c (memcoll): Optimize for the common case where the
47696         arguments are bytewise equal.
47698 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47700         * doc/regexprops-generic.texi: Add a copyright notice.
47702 2006-08-15  Bruno Haible  <bruno@clisp.org>
47704         * modules/tmpdir (License): Change to LGPL.
47706 2006-08-15  Bruno Haible  <bruno@clisp.org>
47708         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
47709         module.
47711 2006-08-14  Simon Josefsson  <jas@extundo.com>
47713         * config/srclist.txt: Add gnupload.
47715 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47717         Change copyright notice from LGPL 2 to GPL 2, since that's the
47718         standard form used in the gnulib repository.
47719         * tests/test-lock.c: Likewise.
47720         * tests/test-stdint.c: Likewise.
47721         * tests/test-tls.c: Likewise.
47723         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
47724         prelude-manager.  User shorter URLs for GNU projects, without '?'.
47725         Add copyright notice.
47727         * check-module: Add copyright notice.  Output a copyright
47728         notice if "--version" is specified.
47729         * modules/COPYING: New file.
47730         * tests/test-getaddrinfo.c: Add copyright notice.
47731         * tests/test-verify.c: Likewise.
47733 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47735         Change copyright notice from LGPL 2 to GPL 2, since that's the
47736         standard form used in the gnulib repository.
47737         * lib/lock.c: LGPL -> GPL.
47738         * lib/lock.h: Likewise.
47739         * lib/strnlen1.c: Likewise.
47740         * lib/strnlen1.h: Likewise.
47741         * lib/tls.c: Likewise.
47742         * lib/tls.h: Likewise.
47743         * lib/tmpdir.c: Likewise.
47745         * lib/TODO: Remove; this belongs only in coreutils.
47747 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47749         Add copyright notices to long-enough files that lack them, since
47750         otherwise the files aren't clearly free.  Use the same notice that
47751         getdate.texi already uses.
47752         * doc/alloca-opt.texi: Add copyright notice.
47753         * doc/alloca.texi: Likewise.
47754         * doc/ctime.texi: Likewise.
47755         * doc/functions.texi: Likewise.
47756         * doc/gcd.texi: Likewise.
47757         * doc/gnulib-tool.texi: Likewise.
47758         * doc/inet_ntoa.texi: Likewise.
47759         * doc/visibility.texi: Likewise.
47761         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
47762         * doc/quote.texi: Add copyright notice.
47764         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
47765         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
47766         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
47767         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
47768         is now obsolete, and give a pointer to the Sun list.
47769         Add copyright notice.
47771 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47773         * config/srclistvars.sh: Add copyright notice.
47775 2006-08-14  Eric Blake  <ebb9@byu.net>
47777         Import the following change from libc:
47779         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
47781         Upstream bug 2997.
47782         * lib/misc/error.c: Add space between program name and message if file
47783         name is missing.
47785 2006-08-12  Karl Berry  <karl@gnu.org>
47787         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
47788         remove, these originate in gnulib now.
47790 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47792         * doc/Makefile (standards.info standards.html standards.dvi):
47793         Also depend on make-stds.texi.
47795 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
47797         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
47798         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
47800         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
47801         in wchar_t.  Problem reported by Eric Blake.
47803         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
47804         LEN is smaller than SIZE.  Suggested by Bruno Haible.
47805         Also, help the compiler to keep LEN in a register.
47807 2006-08-11  Eric Blake  <ebb9@byu.net>
47809         * users.txt: Sort.  Add tar.
47811 2006-08-11  Bruno Haible  <bruno@clisp.org>
47813         * users.txt: New file.
47815 2006-08-11  Bruno Haible  <bruno@clisp.org>
47817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
47818         before <wchar.h>. Needed for OSF/1 and BSD/OS.
47820 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47822         * modules/snprintf (Depends-on): Remove minmax.
47823         (Maintainer): Add self and Bruno.
47825 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47827         * lib/.cppi-disable: Add snprintf.h, socket_.h.
47828         * lib/snprintf.c: Include <errno.h> and <limits.h>.
47829         (EOVERFLOW): Define if the system does not.
47830         Do not include "minmax.h"; it wasn't used.
47831         (snprintf): Don't assume size_t promotes to an unsigned type.
47832         Fix bug when generated string was too long for the buffer: the
47833         buffer's contents are supposed to be the initial prefix of the
47834         output.  Don't assume vasnprintf returns EOVERFLOW if the size
47835         exceeds INT_MAX; do the check ourselves.
47837         Import the following changes from libc:
47839         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
47841         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
47842         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
47843         set wc to the byte which couldn't be converted.
47844         (re_string_reconstruct): Don't clear valid_raw_len before calling
47845         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
47846         tip_context using re_string_context_at.
47848         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
47850         * lib/posix/regex.h: g++ still cannot handled [restrict].
47852         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
47854         * lib/posix/regex.h: Remove special handling for VMS.
47856 2006-08-10  Jim Meyering  <jim@meyering.net>
47858         * modules/same-inode: New module.
47859         * modules/dev-ino: New module.
47860         * modules/cycle-check: Depend on these modules, rather than simply
47861         including their .h files.
47862         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
47863         required via m4/cycle-check.m4.
47864         * modules/same: Depend on new same-inode module, rather than
47865         including same-inode.h.
47866         * modules/chdir-safer: New file.
47868         * modules/chown (Depends-on): Add stat-macros.
47870 2006-08-10  Jim Meyering  <jim@meyering.net>
47872         * m4/cycle-check.m4: New file.
47873         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
47874         * m4/dev-ino.m4, m4/same-inode.m4: New files.
47876 2006-08-10  Eric Blake  <ebb9@byu.net>
47878         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
47879         in from original proposal.
47881 2006-08-10  Eric Blake  <ebb9@byu.net>
47882         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47884         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
47885         namespace.
47887 2006-08-10  Bruno Haible  <bruno@clisp.org>
47889         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
47890         as well.
47892 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47894         Sync from coreutils.
47896         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
47898         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
47899         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
47901 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47903         * modules/restrict: Remove; no longer needed now that we assume
47904         Autoconf 2.59 or later.
47905         * MODULES.html.sh: Remove 'restrict'.
47906         * modules/argp (Depends-on): Remove 'restrict'.
47907         * modules/base64 (Depends-on): Likewise.
47908         * modules/gc (Depends-on): Likewise.
47909         * modules/getaddrinfo (Depends-on): Likewise.
47910         * modules/glob (Depends-on): Likewise.
47911         * modules/inet_ntop (Depends-on): Likewise.
47912         * modules/inet_pton (Depends-on): Likewise.
47913         * modules/memxor (Depends-on): Likewise.
47914         * modules/regex (Depends-on): Likewise.
47915         * modules/strtok_r (Depends-on): Likewise.
47916         * modules/time_r (Depends-on): Likewise.
47918 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47920         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
47921         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
47922         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47923         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
47924         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
47925         * m4/memxor.m4 (gl_MEMXOR): Likewise.
47926         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
47927         gl_C_RESTRICT replaced by AC_C_RESTRICT.
47929         Merge from coreutils.
47930         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
47931         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
47932         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47933         * m4/time_r.m4 (gl_TIME_R): Likewise.
47935 2006-08-09  Karl Berry  <karl@gnu.org>
47937         * config/srclist.txt: no more gettext-tools, per Bruno.
47939 2006-08-08  Eric Blake  <ebb9@byu.net>
47941         * modules/verror: New module.
47942         * MODULES.html.sh: Document it.
47944 2006-08-08  Eric Blake  <ebb9@byu.net>
47946         * lib/verror.h, lib/verror.c: New files.
47948 2006-08-08  Eric Blake  <ebb9@byu.net>
47950         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
47951         verror_at_line output complies with GNU Coding Standards even when
47952         file is NULL.
47954 2006-08-07  Bruno Haible  <bruno@clisp.org>
47956         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
47957         versions of AIX.
47958         Reported by Ralf Wildenhues.
47960 2006-08-07  Bruno Haible  <bruno@clisp.org>
47962         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
47963         in an AC_DEFUN. Needed so that the autoconf snippets can use
47964         AC_REQUIRE.
47966 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47968         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47969         Initialize pkgdata_DATA.
47970         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
47971         overriding it.
47973 2006-08-06  Eric Blake  <ebb9@byu.net>
47975         * lib/error.h: Fold in some upstream changes from glibc.
47976         * lib/error.c: Likewise.
47978 2006-08-04  Bruno Haible  <bruno@clisp.org>
47980         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47981         Make the mostlyclean-local rule depend on mostlyclean-generic.
47982         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
47984 2006-07-31  Bruno Haible  <bruno@clisp.org>
47986         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
47987         <stdlib.h>, <string.h>.
47989 2006-07-30  Bruno Haible  <bruno@clisp.org>
47991         * modules/readlink (License): Change to LGPL.
47993 2006-07-30  Bruno Haible  <bruno@clisp.org>
47995         * modules/javaversion (Makefile.am): Distribute javaversion.java and
47996         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
47997         set PKGDATADIR to point to it.
47999 2006-07-30  Bruno Haible  <bruno@clisp.org>
48001         * modules/csharpexec (configure.ac): Comment out macro invocation.
48002         * modules/javaexec (configure.ac): Likewise.
48003         * modules/javacomp-script (configure.ac): Likewise.
48005         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48007 2006-07-30  Bruno Haible  <bruno@clisp.org>
48009         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48010         linked-list.
48012 2006-07-30  Bruno Haible  <bruno@clisp.org>
48014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48016 2006-07-30  Bruno Haible  <bruno@clisp.org>
48018         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48019         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48020         get removed.
48022 2006-07-29  Bruno Haible  <bruno@clisp.org>
48024         Make it possible for gnulib-tool to work with locally modified or
48025         augmented gnulib repositories.
48026         * gnulib-tool (func_usage): Document --local-dir option.
48027         (local_gnulib_dir): New variable.
48028         Handle --local-dir option.
48029         (func_lookup_file): New function.
48030         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48031         (func_get_description, func_get_filelist, func_get_description,
48032         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48033         func_get_automake_snippet, func_get_include_directive,
48034         func_get_license, func_get_maintainer): Use func_lookup_file.
48035         (func_import, func_create_testdir): Use func_lookup_file.
48037 2006-07-29  Bruno Haible  <bruno@clisp.org>
48039         * modules/setenv (Depends-on): Add unistd.
48041 2006-07-29  Bruno Haible  <bruno@clisp.org>
48043         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48045 2006-07-29  Bruno Haible  <bruno@clisp.org>
48047         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48049 2006-07-29  Bruno Haible  <bruno@clisp.org>
48051         * gnulib-tool (import, update): If there is no Makefile.am, look at
48052         aclocal.m4, instead of bailing out.
48054 2006-07-29  Bruno Haible  <bruno@clisp.org>
48056         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48057         Categorize the options by when they are useful.
48059 2006-07-29  Bruno Haible  <bruno@clisp.org>
48061         * gnulib-tool (func_usage): Document option --no-libtool.
48062         Handle option --no-libtool.
48063         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48064         for changed semantics of $libtool variable.
48065         (func_import): Likewise. If libtool is not used, show this through
48066         an option --no-libtool.
48067         (func_create_testdir): Update.
48069 2006-07-29  Bruno Haible  <bruno@clisp.org>
48071         * gnulib-tool (func_import): Extend error message about missing
48072         --doc-base.
48074 2006-07-29  Bruno Haible  <bruno@clisp.org>
48076         * gnulib-tool (func_import): Don't create the $docbase directory if
48077         there is no file to store there.
48079 2006-07-29  Bruno Haible  <bruno@clisp.org>
48081         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48082         relevant, look for configure.ac there, not in the current directory.
48083         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48085 2006-07-29  Bruno Haible  <bruno@clisp.org>
48087         * gnulib-tool (SORT): New variable.
48088         (func_usage): Undocument --assume-autoconf option.
48089         Remove --assume-autoconf option handling.
48090         (autoconf_minversion): Determine from the contents of configure.ac.
48091         (func_import): Remove autoconf_minversion handling.
48092         Suggested by Eric Blake.
48094 2006-07-29  Bruno Haible  <bruno@clisp.org>
48096         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48098 2006-07-29  Bruno Haible  <bruno@clisp.org>
48100         * config/srclist.txt (*setenv.[ch]): Remove rules.
48102 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48104         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48106 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48108         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48109         arpa/inet.h.
48111 2006-07-28  Simon Josefsson  <jas@extundo.com>
48113         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48114         * modules/inet_pton (Depends-on): Likewise.
48116 2006-07-28  Simon Josefsson  <jas@extundo.com>
48118         * m4/netinet_in_h.m4: New file.
48120 2006-07-28  Simon Josefsson  <jas@extundo.com>
48122         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48123         #include's.
48125 2006-07-28  Simon Josefsson  <jas@extundo.com>
48127         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48128         #include's.
48130 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48132         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48133         setgid on directories only if they set these bits.
48134         * lib/modechange.h: Remove obsolete comment about masks.
48136 2006-07-28  Eric Blake  <ebb9@byu.net>
48138         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48139         macro expansion.
48141 2006-07-28  Bruno Haible  <bruno@clisp.org>
48143         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48145 2006-07-28  Bruno Haible  <bruno@clisp.org>
48147         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48149 2006-07-28  Bruno Haible  <bruno@clisp.org>
48151         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48152         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48153         Define fallbacks.
48154         Avoids link error on FreeBSD 4.x.
48155         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48157         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48158         encoding.
48159         * lib/mbswidth.c (iswcntrl): Likewise.
48161 2006-07-27  Bruno Haible  <bruno@clisp.org>
48163         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48164         test.
48166 2006-07-27  Bruno Haible  <bruno@clisp.org>
48168         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48169         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48170         defined.
48172 2006-07-26  Eric Blake  <ebb9@byu.net>
48174         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48176 2006-07-26  Eric Blake  <ebb9@byu.net>
48178         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48179         like mingw that lack mkstemp.
48180         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48181         avoid compilation warning on mingw.
48183 2006-07-26  Bruno Haible  <bruno@clisp.org>
48185         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48186         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48187         INT_FAST*_MIN, INTPTR_MIN.
48189 2006-07-25  Bruno Haible  <bruno@clisp.org>
48191         * modules/version-etc (Depends-on): Add stdarg.
48193 2006-07-25  Bruno Haible  <bruno@clisp.org>
48195         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48196         complex commands.
48198 2006-07-25  Bruno Haible  <bruno@clisp.org>
48200         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48201         defined in <stdarg.h> or config.h.
48203 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48205         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48206         (gl_STDIO_SAFER): Remove.
48208 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48210         * MODULES.html.sh (File stream based Input/Output):
48211         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48212         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48213         * modules/fopen-safer, modules/tmpfile-safer: New files.
48214         * modules/stdio-safer: Remove.
48216 2006-07-24  Bruno Haible  <bruno@clisp.org>
48218         * modules/tmpdir: New file.
48219         * MODULES.html.sh (File system functions): Add it.
48221 2006-07-24  Bruno Haible  <bruno@clisp.org>
48223         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48224         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48226 2006-07-24  Bruno Haible  <bruno@clisp.org>
48228         * modules/clean-temp: New file.
48230 2006-07-24  Bruno Haible  <bruno@clisp.org>
48232         * m4/tmpdir.m4: New file, from GNU gettext.
48234 2006-07-24  Bruno Haible  <bruno@clisp.org>
48236         * lib/tmpdir.h: New file, from GNU gettext.
48237         * lib/tmpdir.c: New file, from GNU gettext.
48239 2006-07-24  Bruno Haible  <bruno@clisp.org>
48241         * lib/clean-temp.h: New file, from GNU gettext.
48242         * lib/clean-temp.c: New file, from GNU gettext.
48244 2006-07-23  Eric Blake  <ebb9@byu.net>
48246         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48247         (Depends-on): Add binary-io.
48249 2006-07-23  Eric Blake  <ebb9@byu.net>
48251         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48253 2006-07-23  Eric Blake  <ebb9@byu.net>
48255         * lib/tmpfile-safer.c: New file.
48256         * lib/stdio-safer.h (fopen_safer): Add prototype.
48257         * lib/stdio--.h (tmpfile): Make safer.
48259 2006-07-23  Bruno Haible  <bruno@clisp.org>
48261         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48262         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48263         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48264         gl_linked_remove_at): Use it.
48266 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48267         and Simon Josefsson <jas@extundo.com>
48269         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48271         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48273 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48275         * modules/close-stream: New file.
48276         * modules/closeout (Description): Make it clear that it exits
48277         with a diagnostic on error.
48278         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48279         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48281 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48283         * m4/close-stream.m4: New file.
48285 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48287         * lib/close-stream.c, lib/close-stream.h: New files.
48289 2006-07-22  Bruno Haible  <bruno@clisp.org>
48291         Merge from GNU gettext 0.15.
48293         2006-05-01  Bruno Haible  <bruno@clisp.org>
48295                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48297         2006-07-22  Bruno Haible  <bruno@clisp.org>
48299                 * modules/javaversion: New file.
48300                 * MODULES.html.sh (Java): Add javaversion.
48302         2006-03-12  Bruno Haible  <bruno@clisp.org>
48304                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
48306         2005-12-04  Bruno Haible  <bruno@clisp.org>
48308                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
48309                 (untested).
48311         2006-06-21  Bruno Haible  <bruno@clisp.org>
48313                 Avoid warnings from recent versions of mcs.
48314                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
48315                 -o, -L, -r any more. Use options documented since mcs-1.0
48316                 instead. Similarly for -g.
48318         2005-12-04  Bruno Haible  <bruno@clisp.org>
48320                 * build-aux/csharpcomp.sh.in: Suffix for resources is
48321                 .resources, not .resource.
48323         2005-07-09  Bruno Haible  <bruno@clisp.org>
48325                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
48326                 add a .dll suffix.
48327                 Reported by Mark Junker <mjscod@gmx.de>.
48329         2006-07-22  Bruno Haible  <bruno@clisp.org>
48331                 * modules/gettext: Upgrade to gettext-0.15.
48332                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
48333                 m4/visibility.m4.
48334                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
48336 2006-07-22  Bruno Haible  <bruno@clisp.org>
48338         Merge from GNU gettext 0.15.
48340         2006-03-25  Bruno Haible  <bruno@clisp.org>
48342                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
48344         2006-07-21  Bruno Haible  <bruno@clisp.org>
48346                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
48347                 "1.1".
48349         2006-05-09  Bruno Haible  <bruno@clisp.org>
48351                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
48352                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
48353                 for the conftestver execution.
48355         2006-05-01  Bruno Haible  <bruno@clisp.org>
48357                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
48358                 optional target-version argument. Verify that the compiler
48359                 groks source of the specified source-version, or add -source
48360                 option as necessary. Verify that the compiler produces
48361                 bytecode in the specified target-version, or add -target and
48362                 -source options as necessary. Make the result of the test
48363                 available as variable CONF_JAVAC. Also log error output in
48364                 config.log.
48366         2006-03-11  Bruno Haible  <bruno@clisp.org>
48368                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
48370         2006-05-09  Bruno Haible  <bruno@clisp.org>
48372                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
48373                 CLASSPATH_SEPARATOR to a semicolon.
48375         2006-03-12  Bruno Haible  <bruno@clisp.org>
48377                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
48378                 available as variable CONF_JAVA, for subsequent autoconf
48379                 tests. Also log error output in config.log.
48381         2006-07-19  Bruno Haible  <bruno@clisp.org>
48383                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
48384                 that getline works on glibc2 systems. Needed to avoid trouble
48385                 in relocatable.c.
48386                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
48388         2005-12-04  Bruno Haible  <bruno@clisp.org>
48390                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
48391                 launcher (untested).
48393         2005-12-04  Bruno Haible  <bruno@clisp.org>
48395                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
48397         2006-07-22  Bruno Haible  <bruno@clisp.org>
48399                 * gettext.m4: Update from GNU gettext-0.15.
48400                 * nls.m4: Likewise.
48401                 * po.m4: Likewise.
48402                 * inttypes-pri.m4: Likewise.
48403                 * inttypes-h.m4: Renamed from inttypes.m4.
48404                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
48406 2006-07-22  Bruno Haible  <bruno@clisp.org>
48408         Merge from GNU gettext 0.15.
48410         2005-07-05  Bruno Haible  <bruno@clisp.org>
48412                 * printf-args.c (printf_fetchargs): Work around broken
48413                 definition of wint_t on mingw.
48415         2005-02-12  Bruno Haible  <bruno@clisp.org>
48417                 * xallocsa.h: Add extern "C" for C++.
48419         2006-05-17  Bruno Haible  <bruno@clisp.org>
48421                 Cygwin portability.
48422                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
48424         2006-04-30  Bruno Haible  <bruno@clisp.org>
48426                 * progreloc.c: Include <mach-o/dyld.h> if available.
48427                 (find_executable): Use _NSGetExecutablePath when possible.
48429         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48431                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
48432                 function.
48434         2005-12-29  Bruno Haible  <bruno@clisp.org>
48436                 * progreloc.c (set_program_name_and_installdir): Fix
48437                 compilation error.
48439         2005-12-04  Bruno Haible  <bruno@clisp.org>
48441                 Cygwin portability.
48442                 * progreloc.c: Include <windows.h> also on Cygwin.
48443                 (find_executable): Add support for Cygwin.
48444                 (set_program_name_and_installdir): Handle also platforms with
48445                 nonempty EXEEXT.
48447         2006-07-11  Bruno Haible  <bruno@clisp.org>
48449                 * javacomp.c: Fix a comment.
48450                 Reported by Jim Meyering.
48452         2006-04-30  Bruno Haible  <bruno@clisp.org>
48454                 * javacomp.h (compile_java_class): Add source_version,
48455                 target_version arguments.
48456                 * javacomp.c: Rewritten to choose only a compiler that
48457                 respects the specified source_version and target_version.
48459         2006-06-27  Bruno Haible  <bruno@clisp.org>
48461                 Assume correct S_ISDIR macro.
48462                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
48464         2006-07-22  Bruno Haible  <bruno@clisp.org>
48466                 * javaversion.h: New file, from GNU gettext.
48467                 * javaversion.c: New file, from GNU gettext.
48468                 * javaversion.java: New file, from GNU gettext.
48469                 * javaversion.class: New file, from GNU gettext.
48471         2006-05-17  Bruno Haible  <bruno@clisp.org>
48473                 Cygwin portability.
48474                 * javaexec.c (execute_java_class): Test for jview program
48475                 also on Cygwin.
48477         2006-04-09  Bruno Haible  <bruno@clisp.org>
48479                 * fatal-signal.c: Don't include string.h.
48480                 (at_fatal_signal): Use a copying loop instead of memcpy.
48482         2005-12-04  Bruno Haible  <bruno@clisp.org>
48484                 * csharpexec.c: Add support for 'clix' launcher (untested).
48485                 (execute_csharp_using_sscli): New function.
48486                 (execute_csharp_program): Call it.
48488         2006-06-21  Bruno Haible  <bruno@clisp.org>
48490                 Avoid warnings from recent versions of mcs.
48491                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
48492                 -o, -L, -r any more. Use options documented since mcs-1.0
48493                 instead. Similarly for -g.
48495         2005-07-09  Bruno Haible  <bruno@clisp.org>
48497                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
48498                 add a .dll suffix.
48499                 Reported by Mark Junker <mjscod@gmx.de>.
48501         2006-06-17  Bruno Haible  <bruno@clisp.org>
48503                 * config.charset: Update for NetBSD 3.0.
48505         2006-05-17  Bruno Haible  <bruno@clisp.org>
48507                 Cygwin portability.
48508                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
48510         2006-05-16  Bruno Haible  <bruno@clisp.org>
48512                 * localcharset.c [CYGWIN]: Include <windows.h>.
48513                 (get_charset_aliases): For Cygwin, return the same CPxxx
48514                 aliases list as under WIN32.
48515                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
48516                 the environment variables. Fall back to GetACP().
48518         2006-04-05  Bruno Haible  <bruno@clisp.org>
48520                 * config.charset: Update Juan Manuel Guerrero's address.
48522         2005-02-12  Bruno Haible  <bruno@clisp.org>
48524                 * allocsa.h: Add extern "C" for C++.
48526         2005-02-10  Bruno Haible  <bruno@clisp.org>
48528                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
48529                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
48531         2006-07-22  Bruno Haible  <bruno@clisp.org>
48533                 * gettext.h: Update to GNU gettext-0.15.
48535 2006-07-22  Bruno Haible  <bruno@clisp.org>
48537         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
48538         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
48539         lib-prefix.m4, longdouble.m4, ssize_t.m4.
48541 2006-07-21  Eric Blake  <ebb9@byu.net>
48543         * modules/stdlib-safer: New file.
48544         * MODULES.html.sh (File stream based Input/Output): Add
48545         stdlib-safer.
48547 2006-07-21  Eric Blake  <ebb9@byu.net>
48549         * lib/stdlib-safer.h: New file from coreutils, required by
48550         stdlib--.h.
48552 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
48554         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
48556 2006-07-20  Bruno Haible  <bruno@clisp.org>
48558         * gnulib-tool: Recognize new option --assume-autoconf.
48559         (autoconf_minversion): New variable.
48560         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
48562 2006-07-20  Bruno Haible  <bruno@clisp.org>
48564         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
48566 2006-07-19  Derek R. Price  <derek@ximbiot.com>
48568         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
48569         Reindent and repaginate.
48571 2006-07-19  Derek Price  <derek@ximbiot.com>
48573         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
48574         Correct grammar.
48576 2006-07-17  Bruno Haible  <bruno@clisp.org>
48578         * modules/list: New file.
48579         * modules/array-list: New file.
48580         * modules/carray-list, modules/carray-list-tests: New files.
48581         * modules/linked-list, modules/linked-list-tests: New files.
48582         * modules/avltree-list, modules/avltree-list-tests: New files.
48583         * modules/rbtree-list, modules/rbtree-list-tests: New files.
48584         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
48585         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
48586         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
48587         * modules/oset: New file.
48588         * modules/array-oset: New file.
48589         * modules/avltree-oset, modules/avltree-oset-tests: New files.
48590         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
48591         * tests/test-carray_list.c: New file.
48592         * tests/test-linked_list.c: New file.
48593         * tests/test-avltree_list.c: New file.
48594         * tests/test-rbtree_list.c: New file.
48595         * tests/test-linkedhash_list.c: New file.
48596         * tests/test-avltreehash_list.c: New file.
48597         * tests/test-rbtreehash_list.c: New file.
48598         * tests/test-avltree_oset.c: New file.
48599         * tests/test-rbtree_oset.c: New file.
48600         * MODULES.html.sh (Container data structures): New section.
48602 2006-07-17  Bruno Haible  <bruno@clisp.org>
48604         * m4/gl_list.m4: New file.
48606 2006-07-17  Bruno Haible  <bruno@clisp.org>
48608         * lib/gl_list.h: New file.
48609         * lib/gl_list.c: New file.
48610         * lib/gl_array_list.h: New file.
48611         * lib/gl_array_list.c: New file.
48612         * lib/gl_carray_list.h: New file.
48613         * lib/gl_carray_list.c: New file.
48614         * lib/gl_linked_list.h: New file.
48615         * lib/gl_linked_list.c: New file.
48616         * lib/gl_anylinked_list1.h: New file.
48617         * lib/gl_anylinked_list2.h: New file.
48618         * lib/gl_avltree_list.h: New file.
48619         * lib/gl_avltree_list.c: New file.
48620         * lib/gl_anyavltree_list1.h: New file.
48621         * lib/gl_anyavltree_list2.h: New file.
48622         * lib/gl_rbtree_list.h: New file.
48623         * lib/gl_rbtree_list.c: New file.
48624         * lib/gl_anyrbtree_list1.h: New file.
48625         * lib/gl_anyrbtree_list2.h: New file.
48626         * lib/gl_anytree_list1.h: New file.
48627         * lib/gl_anytree_list2.h: New file.
48628         * lib/gl_linkedhash_list.h: New file.
48629         * lib/gl_linkedhash_list.c: New file.
48630         * lib/gl_anyhash_list1.h: New file.
48631         * lib/gl_anyhash_list2.h: New file.
48632         * lib/gl_avltreehash_list.h: New file.
48633         * lib/gl_avltreehash_list.c: New file.
48634         * lib/gl_rbtreehash_list.h: New file.
48635         * lib/gl_rbtreehash_list.c: New file.
48636         * lib/gl_anytreehash_list1.h: New file.
48637         * lib/gl_anytreehash_list2.h: New file.
48639         * lib/gl_oset.h: New file.
48640         * lib/gl_oset.c: New file.
48641         * lib/gl_array_oset.h: New file.
48642         * lib/gl_array_oset.c: New file.
48643         * lib/gl_avltree_oset.h: New file.
48644         * lib/gl_avltree_oset.c: New file.
48645         * lib/gl_rbtree_oset.h: New file.
48646         * lib/gl_rbtree_oset.c: New file.
48647         * lib/gl_anytree_oset.h: New file.
48649 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48651         * m4/mkancesdirs.m4: New file.
48652         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
48653         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
48654         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
48655         it.
48657 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48659         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
48660         * lib/mkancesdirs.h: New files.
48661         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
48662         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
48663         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
48664         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
48665         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
48666         callers changed.  Revamp internals significantly, by not
48667         attempting to create directories that are temporarily more
48668         permissive than the final results.  Do not attempt to use
48669         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
48670         This removes some race conditions, fixes some bugs, and simplifies
48671         things.  Use new dirchownmod function to do owner and mode changes.
48672         * lib/mkdir-p.h: Likewise.
48673         * lib/modechange.c (octal_to_mode): New function.
48674         (struct mode_change): New member mentioned.
48675         (make_node_op_equals): New arg mentioned.  All callers changed.
48676         (mode_compile): Keep track of which mode bits the user has explicitly
48677         mentioned.
48678         (mode_adjust): New arg DIR, so that we implement the X op correctly.
48679         New arg PMODE_BITS, to keep track of which mode bits the user
48680         mentioned; it treats S_ISUID and S_ISGID speciall.
48681         All callers changed.
48682         * lib/modechange.h: Likewise.
48684 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48686         * MODULES.html.sh: Add mkancestors.
48687         * modules/mkancesdirs: New module.
48688         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
48689         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
48690         The chdir-safer and afs files are now orphans; I'll remove them
48691         unless someone speaks up.
48692         Add lib/dirchownmod.c, lib/dirchownmod.h.
48693         (Depends-on): Remove alloca, chown, save-cwd, dirname.
48694         Add lchown, mkancesdirs.
48695         (Maintainer): Add self.
48697 2006-07-15  Karl Berry  <karl@gnu.org>
48699         * gnulib-tool: help message wording/arrangement.
48701 2006-07-14  Simon Josefsson  <jas@extundo.com>
48703         * doc/gnulib.texi (Libtool and Windows): New section.
48705 2006-07-12  Simon Josefsson  <jas@extundo.com>
48707         * modules/gendocs (License): Fix license, approved by Karl.
48709 2006-07-12  Eric Blake  <ebb9@byu.net>
48711         * MODULES.html.sh: Add gendocs.
48713 2006-07-11  Eric Blake  <ebb9@byu.net>
48715         * modules/fdl: New module, to install doc/fdl.texi.
48716         * MODULES.html.sh: Add new section for documentation modules.
48717         * gnulib-tool: Avoid space-tab.
48718         (--doc-base): New option, to manage files from doc.
48720 2006-07-11  Eric Blake  <ebb9@byu.net>
48722         * m4/absolute-header.m4: Fix comments to match recent change.
48724 2006-07-11  Eric Blake  <ebb9@byu.net>
48726         * gnulib-tool: List --doc-base before --tests-base.
48728 2006-07-11  Derek R. Price  <derek@ximbiot.com>
48730         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
48732 2006-07-11  Bruno Haible  <bruno@clisp.org>
48734         * README: Mention where to put documentation.
48736 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48738         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
48740 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
48742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
48743         to stdint.m4.
48745 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
48747         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
48748         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
48749         "no/such/file/stdint.h" when there is no such file, so that
48750         the resulting C code can be parsed by dodgy compilers.
48751         Problems reported by Bob Proulx.
48753 2006-07-10  Derek R. Price  <derek@ximbiot.com>
48755         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
48756         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
48757         macros into the GNU _D_EXACT_NAMLEN.
48758         * lib/savedir.c:  Likewise.
48759         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
48761 2006-07-10  Derek R. Price  <derek@ximbiot.com>
48762         and Paul Eggert  <eggert@cs.ucla.edu>
48764         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
48765         * m4/savedir.m4:
48766         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
48767         macros into the GNU _D_EXACT_NAMLEN.
48769 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
48772         around the absolute name, to work around a problem with the HP-UX
48773         11.23 native C compiler, reported by Bob Proulx.
48775 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48777         * doc/maintain.texi, make-stds.texi: Sync from
48778         <http://savannah.gnu.org/projects/gnustandards>.
48780 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48782         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
48784 2006-07-09  Jim Meyering  <jim@meyering.net>
48786         * m4/glob.m4: Remove a doubled word in a comment.
48788 2006-07-09  Jim Meyering  <jim@meyering.net>
48790         * lib/argp-pv.c: Remove a doubled word in a comment.
48791         * lib/check-version.c (check_version): Likewise.
48792         * lib/javacomp.c (compile_java_class): Likewise.
48794 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48796         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
48797         for the benefit of people using Autoconf 2.60.  If you want to
48798         support older Autoconf versions you can copy m4/onceonly_2_57.m4
48799         (or m4/onceonly.m4, if pre-2.57) manually.
48801 2006-07-08  Jim Meyering  <jim@meyering.net>
48803         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
48804         comment.
48805         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
48806         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
48807         comment.
48809 2006-07-08  Jim Meyering  <jim@meyering.net>
48811         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
48813 2006-07-07  Simon Josefsson  <jas@extundo.com>
48815         * tests/test-crc.c: Change expected crc value, the test vector
48816         were probably computed using the old broken crc.c?
48818 2006-07-06  Simon Josefsson  <jas@extundo.com>
48820         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
48821         now the canonical place for the M4 file).
48823         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
48824         from the sys_socket dependency now.
48826         * modules/inet_pton (Files): Ditto.
48828         * modules/inet_ntop (Files): Ditto.
48830 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48832         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
48833         not gl_PREREQ_GETUSERSHELL.
48835 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48837         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
48838         with only one argument, for Autoconf 2.60.
48839         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
48840         expand to nothing, so add a shell command to avoid syntax error.
48841         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48843 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48845         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
48847 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48849         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
48850         no longer needed.  Check for isblank decl.
48851         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
48852         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
48853         of existence.
48855 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48857         * lib/getloadavg.c: Use __VMS, not VMS.
48858         * lib/getopt.c: Likewise.
48859         * lib/getpagesize.h: Likewise.
48860         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
48861         and probably does not work.
48863 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48865         * lib/.cppi-disable: Add wcwidth.
48866         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
48867         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
48868         (ISGRAPH): Remove.  All uses changed to isgraph.
48869         (FOLD) [!defined _LIBC]: Remove special case.
48870         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
48871         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
48872         HAVE_ISBLANK.
48873         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
48874         case.
48876 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
48878         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
48879         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
48880         brackets.  Other minor changes to suppress some compiler
48881         warnings.
48883 2006-07-06  Derek R. Price  <derek@ximbiot.com>
48884         and Paul Eggert  <eggert@cs.ucla.edu>
48886         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
48887         of invoking obsolescent AC_HEADER_DIRENT macro.
48888         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
48889         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
48890         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48891         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
48892         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
48893         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48894         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
48895         * m4/readdir.m4: Remove; no longer needed.
48897 2006-07-06  Derek R. Price  <derek@ximbiot.com>
48898         and Paul Eggert  <eggert@cs.ucla.edu>
48900         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
48901         Don't worry about this obsolete case any more.
48902         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
48903         directories.
48904         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
48905         worry about this obsolete case any more.
48906         * lib/fts.c: Likewise.
48907         * lib/getcwd.c: Likewise.
48908         * lib/glob.h: Likewise.
48909         * lib/savedir.c: Likewise.
48911 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48913         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
48914         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
48915         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
48916         needed.
48917         All uses removed.
48918         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
48919         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
48920         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
48921         needed.
48922         * m4/getdate.m4 (gl_GETDATE): Likewise.
48923         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
48924         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
48925         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
48926         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
48927         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
48928         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48929         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
48930         needed.
48932 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48934         * lib/memcasecmp.c: Include <limits.h>.
48935         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
48936         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
48937         Don't assume isdigit succeeds only on '0' through '9'.
48939 2006-07-05  Eric Blake  <ebb9@byu.net>
48941         * modules/getaddrinfo (Depends-on): Add snprintf.
48943 2006-07-05  Eric Blake  <ebb9@byu.net>
48945         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
48946         to avoid 'header present but could not be compiled' on cygwin.
48948 2006-07-05  Eric Blake  <ebb9@byu.net>
48950         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
48951         missing from netdb.h.
48952         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
48954 2006-07-05  Derek R. Price  <derek@ximbiot.com>
48956         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
48957         no longer needed.
48958         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
48959         * m4/getdate.m4 (gl_GETDATE): Likewise.
48960         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
48961         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
48962         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
48963         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
48964         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48966 2006-07-05  Derek R. Price  <derek@ximbiot.com>
48968         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
48969         All uses of is_space replaced by isspace.
48970         * lib/exit.h: Don't talk about STDC_HEADERS.
48971         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
48972         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
48973         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
48974         replaced by isprint etc.
48975         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
48976         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
48977         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
48978         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
48979         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
48980         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
48982 2006-07-05  Bruno Haible  <bruno@clisp.org>
48984         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
48985         the function exists, before testing against AIX.
48986         Reported by Martin Lambers <marlam@marlam.de>.
48988 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
48990         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
48991         From Mark D. Baushke.
48993 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
48995         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
48996         to the absolute name, not just one, to bypass Sun C 5.8's
48997         "warning: #include of /usr/include/... may be non-portable".
48999 2006-07-04  Eric Blake  <ebb9@byu.net>
49001         * modules/dirname-tests: New test module.
49002         * tests/test-dirname.c: New file, replacing dirname.c
49003         TEST_DIRNAME section that was recently deleted.
49005 2006-07-04  Bruno Haible  <bruno@clisp.org>
49007         Assume ANSI C header files and <ctype.h> functions.
49008         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49009         (mbsnwidth): Use isprint, iscntrl instead.
49011 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49013         Merge from coreutils.
49014         * MODULES.html.sh: Add xstrtold.
49015         * modules/xstrtold: New file.
49016         * modules/cycle-check (Files): Add lib/same-inode.h.
49017         * modules/dirname (Files): Add m4/double-slash-root.m4.
49018         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49019         * modules/mkdir-p (Files): Add lib/same-inode.h.
49020         * modules/same (Files): Add lib/same-inode.h.
49022 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49024         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49025         This is to keep the terminology clean; POSIX talks about
49026         "absolute pathnames", not "full pathnames", but the GNU
49027         Coding Standards say to use "path" for something else;
49028         so use "absolute" to keep both sides happy.
49029         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49030         Set gl_absolute_header, not gl_full_header_path.
49031         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49032         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49033         All uses changed.
49035         Merge from coreutils.
49037         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49039         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49040         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49041         want to require the building of c-strtod.o.
49042         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49043         needs -lm directly.
49044         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49046         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49048         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49049         --as-needed option if available.  Problem reported by Albert Chin in
49050         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49051         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49052         cc merely issues a bunch of annoying warnings for --as-needed
49053         (this problem was reported by Bob Proulx).  Also, try linking with
49054         -lm to detect a bug in binutils 2.16 (this problem was reported
49055         by Ralf Wildenhues).
49057         2006-06-18  Jim Meyering  <jim@meyering.net>
49059         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49060         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49061         macro.
49062         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49063         also check for glibc-2.4's abort-inducing bug.
49065         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49066         Low-probability clean-up should be to use rmdir to get rid of
49067         the just-created directory, not unlink.
49069         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49070         configure fail, and request a bug report to inform us about it.
49071         Add a comment that, barring reports to the contrary, in 2007 we'll
49072         assume ftruncate is universally available.
49074         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49076         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49078         2006-03-12  Jim Meyering  <jim@meyering.net>
49080         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49081         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49082         * m4/same.m4 (gl_SAME): Likewise.
49083         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49085         2006-03-11  Eric Blake  <ebb9@byu.net>
49087         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49088         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49089         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49090         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49092 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49094         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49095         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49096         reported by Mark D. Baushke, one in
49097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49099         Merge from coreutils.
49101         * lib/.cppi-disable: Add stdint_.h.
49102         * lib/.cvsignore: Add stdint.h.
49104         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49106         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49107         both double and long double versions.
49108         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49109         * lib/xstrtold.c: New file.
49110         * lib/xstrtod.h (xstrtold): New decl.
49112         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49114         * lib/filemode.c (setst): Remove.
49115         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49116         (arguably) clearer, and the generated code is a bit smaller on my
49117         Debian GNU/Linux stable x86 host.
49119         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49121         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49122         Assume that filemode.h includes sys/types.h and sys/stat.h.
49123         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49124         (ftypelet): Reorder to put common cases first, for efficiency.
49125         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49126         to do 'M'.
49127         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49128         of 10, for compatibility with FreeBSD.  All callers changed.
49129         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49130         types that can't be deduced solely from st_mode.  First arg is now a
49131         const pointer.
49132         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49133         (strmode): Renamed from mode_string.
49134         (filemodestring): New decl.
49135         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49136         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49137         needed.
49138         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49140         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49142         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49143         fsusage.h now does that.  Include fsusage.h first, to test interface.
49144         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49145         at most one method (the old code could have generated decls that
49146         didn't conform to C89, not that this was ever exercised).
49147         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49149         2006-03-19  Jim Meyering  <jim@meyering.net>
49151         Work even in a chroot where d_ino values for entries in "/"
49152         don't match the stat.st_ino values for the same names.
49153         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49154         number, iterate through all entries again, using lstat instead.
49155         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49156         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49158         * lib/getcwd.c (__getcwd): Clarify a comment.
49159         Use memcpy in place of a call to strcpy.
49161         2006-03-12  Jim Meyering  <jim@meyering.net>
49163         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49164         matches that of the current directory (which we're about to chdir ".."
49165         out of), then save the dev-ino of the parent, instead.
49167         * lib/same-inode.h (SAME_INODE): New file/macro.
49168         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49169         Include "same-inode.h", instead.
49170         * lib/same.c: Likewise.
49171         * lib/cycle-check.h: Include "same-inode.h".
49172         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49173         * lib/cycle-check.c (SAME_INODE): Remove definition.
49174         * lib/root-dev-ino.h: Include "same-inode.h".
49176         2006-03-11  Eric Blake  <ebb9@byu.net>
49178         * lib/same.c (same_name): s/base_name/last_component/
49179         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49180         * lib/filenamecat.c (file_name_concat): Likewise.
49182         2006-03-11  Eric Blake  <ebb9@byu.net>,
49183                     Paul Eggert  <eggert@cs.ucla.edu>
49185         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49186         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49187         drive prefix.
49188         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49189         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49190         (last_component): New method.
49191         * lib/dirname.c (dir_len): Determine when drive letters need a
49192         subsequent slash.  Preserve // when it is special.
49193         (dir_name): Don't append dot when drive letter is absolute.
49194         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49195         * lib/basename.c (base_name): New semantics - malloc the result.
49196         Preserve // when it is special.  Preserve relative files that look
49197         like drive letters.
49198         (base_len): Preserve // when it is special.
49199         (last_component): New method, similar to old base_name semantics.
49200         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49201         base_name.  Strip redundant slashes from ///.
49203 2006-07-03  Jim Meyering  <jim@meyering.net>
49205         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49206         macro is used before the first cycle_check call.
49208 2006-07-03  Eric Blake  <ebb9@byu.net>
49210         * modules/dirname (Depends-on): Add xstrndup.
49212 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49214         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49215         test cases, so that config.log is a bit easier to follow.
49217 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49219         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49220         both are 64 bits, since this seems to be the tradition, and this
49221         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49222         we ever run into a host that prefers long long to long in this
49223         case, we'll need another configure-time test.  Problem reported by
49224         Jim Meyering.
49226 2006-07-02  Eric Blake  <ebb9@byu.net>
49228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49230 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49232         * modules/inttypes (Depends-on): No longer depends on stdint.
49233         * modules/stdint (Description): Say more about assumptions.
49234         Say that the fast types might differ.  Say macros are used.
49235         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49236         (Makefile.am): Revise list of substituted symbols to match
49237         new stdint.m4.
49238         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49239         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49240         * tests/test-stdint.c (verify_same_types)
49241         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49242         the code conforms to C99/C89.
49243         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49244         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49246 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49248         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49249         but fix a bug, by requiring at least 64 bits.
49250         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49251         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49252         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49253         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49255         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49256         changes.  Make 2.59 a prerequisite.  Check and substitute for
49257         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49258         inttypes.h.  Do not use special include files; just use the
49259         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49260         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49261         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49262         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49263         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49264         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49265         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49266         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49267         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49268         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49269         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49270         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49271         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49272         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49273         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49274         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49275         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49276         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49277         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49278         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49279         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49280         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49281         not check for things that C99 does not require, e.g., int8_t.  If
49282         a test isn't needed unless <stdint.h> isn't working, and is
49283         unlikely to be needed for any other reason, then don't do it
49284         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49285         size_t, since we assume C89 freestanding at least.  Do not check
49286         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49287         the right thing even if the types are not defined.  Instead use:
49288         (gl_STDINT_TYPE_PROPERTIES): New macro.
49289         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49290         testing whether <sys/types.h> clashes, as Autoconf does this for
49291         us now.  All uses removed.
49292         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49293         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49294         (gl_CHECK_TYPE_SAME):
49295         Remove; no longer needed.
49296         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49297         exists, since we'll return 0 anyway in that case.
49298         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49300 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49302         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49303         possible collision with system files.
49304         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
49305         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
49306         WCHAR_MIN and WCHAR_MAX in this case.
49307         (<stddef.h>): Do not include; no longer needed.
49308         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
49309         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
49310         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
49311         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
49312         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
49313         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
49314         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
49315         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
49316         !defined(__c99))]: Include in this case too, since it's harmless
49317         now.
49318         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
49319         dangerous to do so.
49320         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
49321         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
49322         (_STDINT_MIN, _STDINT_MAX): New macros.
49323         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
49324         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
49325         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
49326         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
49327         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
49328         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
49329         macros, not typedefs; this simplifies things quite a bit.
49330         Use long int for all types narrower than int64_t.
49331         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
49332         Define in terms of long long int or int64_t or long int,
49333         not int64_t or int32_t.  This saves some compile-time testing.
49334         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
49335         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
49336         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
49337         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
49338         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
49339         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
49340         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
49341         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
49342         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
49343         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
49344         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49345         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49346         undef any previous version and define our own version, for
49347         simplicity and consistency with the new macros for types.
49348         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49349         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49350         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
49351         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
49352         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
49353         @WINT_T_SUFFIX@ to keep things simple here.
49354         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
49355         Simplify by assuming typical 8/16/32/64 host, since we're
49356         already doing that elsewhere anyway.
49357         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
49358         and assume long long int is 64 bits if available.  This
49359         speeds up 'configure'.
49361 2006-07-01  Eric Blake  <ebb9@byu.net>
49363         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
49364         Reported by Andreas Buening.
49366 2006-07-01  Eric Blake  <ebb9@byu.net>
49368         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
49370 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49372         * lib/getaddrinfo.c: fixed typo
49374 2006-06-29  Jim Meyering  <jim@meyering.net>
49376         * modules/strftime (Maintainer): Add my name, since with the
49377         FPRINTFTIME changes strftime.c has forked from glibc.
49379 2006-06-29  Eric Blake  <ebb9@byu.net>
49381         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
49383 2006-06-29  Eric Blake  <ebb9@byu.net>
49385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
49387 2006-06-29  Eric Blake  <ebb9@byu.net>
49389         * lib/stat_.h: New file.
49391 2006-06-29  Eric Blake  <ebb9@byu.net>
49393         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
49394         unused static function.
49396 2006-06-29  Eric Blake  <ebb9@byu.net>
49398         * doc/functions.texi (Function Portability): Document missing lstat
49399         on mingw.
49401 2006-06-29  Eric Blake  <ebb9@byu.net>
49403         * MODULES.html.sh: Add sys_stat.
49404         * modules/sys_stat: New module.
49405         * modules/mkstemp (Depends-on): Add sys_stat.
49407 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49409         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
49411 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49413         * m4/c-bs-a.m4: Removed.
49415 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49417         * lib/strftime.c: Assume strftime() exists.
49419 2006-06-29  Derek Price  <derek@ximbiot.com>
49421         * modules/c-bs-a: Removed - \a is C89.
49422         * MODULES.html.sh: Remove c-bs-a.
49424 2006-06-29  Bruno Haible  <bruno@clisp.org>
49426         * modules/wcwidth (License): Change to LGPL.
49428 2006-06-28  Simon Josefsson  <jas@extundo.com>
49430         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
49431         on _WIN32.
49433         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
49434         getnameinfo.
49436 2006-06-28  Simon Josefsson  <jas@extundo.com>
49438         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
49440 2006-06-28  Simon Josefsson  <jas@extundo.com>
49442         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
49443         functions there.  It will succeed on Windows XP, but on Windows
49444         2000 and (presumably) earlier, it will fail, and use the internal
49445         re-implementation.
49446         (use_win32_p): New function.
49447         (getaddrinfo): Use strtoul on servname, to support numeric ports.
49448         Support AI_NUMERICSERV to disable getservbyname.
49449         (getnameinfo): New function, only supports
49450         NI_NUMERICHOST|NI_NUMERICSERV for now.
49452         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
49453         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
49454         getnameinfo.
49456 2006-06-28  Eric Blake  <ebb9@byu.net>
49458         * modules/wcwidth: New file.
49459         * modules/mbchar (Depends-on): Add wcwidth.
49460         * modules/mbswidth (Depends-on): Add wcwidth.
49461         * MODULES.html.sh: Add wcwidth.
49463 2006-06-28  Eric Blake  <ebb9@byu.net>
49465         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
49466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
49468 2006-06-28  Eric Blake  <ebb9@byu.net>
49470         * lib/xvasprintf.h: Fix comments.
49472 2006-06-28  Eric Blake  <ebb9@byu.net>
49474         * lib/mbchar.h (wcwidth): Include wcwidth.h.
49475         * lib/mbswidth.c (wcwidth): Move from here...
49476         * lib/wcwidth.h: ...to this new file.
49478 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49480         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
49482         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
49483         it's obsolete.
49484         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
49486 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49488         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
49489         Autoconf 2.60 says this stuff was obsolete.
49491 2006-06-28  Bruno Haible  <bruno@clisp.org>
49493         * modules/wcwidth (Files): Add m4/wchar_t.m4.
49495 2006-06-28  Bruno Haible  <bruno@clisp.org>
49497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
49498         gt_TYPE_WCHAR_T.
49500 2006-06-28  Bruno Haible  <bruno@clisp.org>
49502         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
49503         declaration for wcwidth.
49504         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
49506 2006-06-28  Bruno Haible  <bruno@clisp.org>
49508         * lib/mkdtemp.c [MINGW]: Include <io.h>.
49509         (mkdir): Define using _mkdir.
49511 2006-06-28  Bruno Haible  <bruno@clisp.org>
49513         * lib/getaddrinfo.h: Fix POSIX URL.
49514         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
49515         _WIN32.
49516         (use_win32_p): Make static.
49517         (getaddrinfo): Reject service name if it is empty or does not consist
49518         solely of decimal digits, or if its value is > 65535.
49519         (getnameinfo): Remove useless casts.
49521 2006-06-27  Simon Josefsson  <jas@extundo.com>
49523         * modules/sys_select: New file, suggested by Bruno Haible, Paul
49524         Eggert and Martin Lambers.
49526 2006-06-27  Simon Josefsson  <jas@extundo.com>
49528         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
49529         Eggert and Martin Lambers.
49531 2006-06-27  Bruno Haible  <bruno@clisp.org>
49533         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
49534         result to 0, not to empty.
49535         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
49537 2006-06-27  Bruno Haible  <bruno@clisp.org>
49539         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
49541 2006-06-26  Simon Josefsson  <jas@extundo.com>
49543         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
49544         present.
49546 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
49548         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
49549         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
49550         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
49552 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
49554         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
49556 2006-06-26  Bruno Haible  <bruno@clisp.org>
49558         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
49560 2006-06-26  Bruno Haible  <bruno@clisp.org>
49562         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
49564 2006-06-26  Bruno Haible  <bruno@clisp.org>
49566         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
49567         SGI C compiler in pre-C99 mode.
49568         Suggested by Mark D. Baushke and Larry Jones.
49570 2006-06-26  Bruno Haible  <bruno@clisp.org>
49572         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
49573         WCHAR_MAX.
49574         Reported by Mark D. Baushke and Larry Jones.
49576 2006-06-26  Bruno Haible  <bruno@clisp.org>
49578         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
49579         in pre-C99 mode.
49580         Suggested by Mark D. Baushke and Larry Jones.
49582 2006-06-23  Simon Josefsson  <jas@extundo.com>
49583             Bruno Haible  <bruno@clisp.org>
49585         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
49586         Emit mostlyclean-local rule.
49587         (func_emit_tests_Makefile_am): Likewise.
49588         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
49590 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
49592         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
49594 2006-06-23  Bruno Haible  <bruno@clisp.org>
49596         * tests/test-stdint.c: Update to match ISO C 99 Technical
49597         Corrigendum 1.
49599 2006-06-23  Bruno Haible  <bruno@clisp.org>
49601         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
49603 2006-06-23  Bruno Haible  <bruno@clisp.org>
49605         * lib/stdint_.h: Treat IRIX like OpenBSD.
49607 2006-06-23  Bruno Haible  <bruno@clisp.org>
49609         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
49610         ISO C 99 Technical Corrigendum 1.
49612 2006-06-22  Simon Josefsson  <jas@extundo.com>
49614         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
49615         MinGW.
49617 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49619         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
49620         needed.  Some compiler complained about some of them.  Problem reported
49621         by Larry Jones in
49622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
49624 2006-06-21  Simon Josefsson  <jas@extundo.com>
49626         * tests/test-getaddrinfo.c: New file.
49628         * modules/getaddrinfo-tests: New file.
49630         * MODULES.html.sh: Add inet_pton.
49632         * modules/inet_pton: New file.
49634 2006-06-21  Simon Josefsson  <jas@extundo.com>
49636         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
49637         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
49638         of using the (limited) gnulib implementation on Windows XP.
49640         * m4/inet_pton.m4: New file.
49642 2006-06-21  Simon Josefsson  <jas@extundo.com>
49644         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
49645         variable.
49647         * lib/socket_.h: Don't define WINVER.
49649         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
49650         slightly modified to work in gnulib.
49652 2006-06-21  Simon Josefsson  <jas@extundo.com>
49654         * doc/gnulib.texi (Windows sockets): Add.
49656 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49658         * lib/read-file.c (fread_file): Start with buffer allocation of
49659         0 bytes rather than 1 byte; this simplifies the code.
49660         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
49661         code to free buffer and save/restore errno.
49662         (internal_read_file): Remove unused local.
49664 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49666         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
49667         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
49668         Problem reported by Denis Excoffier in
49669         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
49671 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49673         * modules/sys_socket, modules/socklen: Include sys/types since
49674         FreeBSD 4.x's sys/socket.h needs it.
49676 2006-06-19  Simon Josefsson  <jas@extundo.com>
49678         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
49680 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49682         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
49684 2006-06-19  Bruno Haible  <bruno@clisp.org>
49686         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
49687         and FULL_PATH_INTTYPES_H in angle brackets.
49688         Reported by Mark D. Baushke <mdb@gnu.org>.
49690 2006-06-17  Eric Blake  <ebb9@byu.net>
49692         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
49693         errno.
49695 2006-06-17  Bruno Haible  <bruno@clisp.org>
49697         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
49698         <sys/inttypes.h>.
49700 2006-06-17  Bruno Haible  <bruno@clisp.org>
49702         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
49703         whether errno is declared. Assume <errno.h> declares errno.
49705 2006-06-17  Bruno Haible  <bruno@clisp.org>
49707         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
49709 2006-06-17  Bruno Haible  <bruno@clisp.org>
49711         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
49712         problem on Solaris 2.5.1.
49714 2006-06-16  Eric Blake  <ebb9@byu.net>
49716         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
49717         * lib/unicodeio.c [!defined errno]: Likewise.
49718         * lib/strtol.c [!defined errno]: Likewise.
49719         * lib/strtod.c [!defined errno]: Likewise.
49721 2006-06-15  Eric Blake  <ebb9@byu.net>
49723         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
49725 2006-06-15  Eric Blake  <ebb9@byu.net>
49727         * config/srclist.txt (ssize_t.m4): Lose sync.
49729 2006-06-15  Bruno Haible  <bruno@clisp.org>
49731         * modules/stdint (Files): Include m4/full-header-path.m4,
49732         m4/size_max.m4, m4/wchar_t.m4.
49733         (Makefile.am): Many more substitutions.
49734         * modules/stdint-tests: New file.
49735         * tests/test-stdint.c: New file.
49737 2006-06-15  Bruno Haible  <bruno@clisp.org>
49739         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
49740         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
49741         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
49742         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
49743         gl_CHECK_TYPE_SAME): New macros.
49745 2006-06-15  Bruno Haible  <bruno@clisp.org>
49747         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
49749 2006-06-15  Bruno Haible  <bruno@clisp.org>
49751         * lib/stdint_.h: Rewritten to be fully auto-configured.
49752         Fixes bug on HP-UX/IA64.
49754 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
49756         * lib/getdate.y (__attribute__): Don't define if already defined.
49757         Problem reported by Larry Jones.
49758         * lib/utimens.c (__attribute__): Likewise.
49760 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
49762         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
49763         reported by Andreas Schwab.
49765 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49766             Bruno Haible  <bruno@clisp.org>
49768         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
49769         check for the declaration of strnlen and a run test that exposes the
49770         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
49771         rpl_strndup.
49773 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49774             Bruno Haible  <bruno@clisp.org>
49776         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
49778 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49780         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
49781         compile test, for Tru64 4.0D.
49783 2006-05-28  Karl Berry  <karl@gnu.org>
49785         * config/srclist.txt (printf-args.c): lose sync.
49787 2006-05-26  Martin Lambers  <marlam@marlam.de>
49789         * lib/getpass.c: Updates the test for the native W32 API, and adds
49790         missing includes, thus fixing compilation warnings.
49792 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49794         * lib/exclude.c (exclude_fnmatch): New function.
49795         (excluded_file_name): Call exclude_fnmatch.
49796         * lib/exclude.h (excluded_file_name): New prototype
49798 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
49800         * lib/tempname.c (small_open, large_open): New macros.
49801         (__open, __open64) [!_LIBC]: Remove.
49802         (__gen_tempname): Use small_open and large_open instead of __open
49803         and __open64.  This fixes a portability bug on HP-UX 11.11i
49804         reported by Simon Wing-Tang in
49805         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
49807 2006-05-24  Bruno Haible  <bruno@clisp.org>
49809         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
49810         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
49811         Reported by Thorsten Maerz <torte@netztorte.de> via
49812         Aaron Stone <aaron@serendipity.cx>.
49814 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
49817         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
49818         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
49819         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
49820         not really conditional on the cache.
49821         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
49823 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49825         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
49826         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
49827         (my_usleep): Don't mishandle maximum value.
49829 2006-05-19  Jim Meyering  <jim@meyering.net>
49831         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
49833 2006-05-17  Bruno Haible  <bruno@clisp.org>
49835         Cygwin portability.
49836         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
49838 2006-05-17  Bruno Haible  <bruno@clisp.org>
49840         * lib/stdint_.h: Fix recognition of Cygwin.
49842 2006-05-15  Bruno Haible  <bruno@clisp.org>
49844         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
49845         on libtool patch by Ralf Wildenhues.
49847 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
49849         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
49850         test for C99 conformance; (bool) 0.5 is an integer constant
49851         expression, but (bool) -0.5 is not.  Problem reported by Fedor
49852         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
49854 2006-05-11  Simon Josefsson  <jas@extundo.com>
49856         * m4/xvasprintf.m4: Fix obvious typo.
49858 2006-05-11  Jim Meyering  <jim@meyering.net>
49860         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
49861         James Lemley.
49863 2006-05-10  Simon Josefsson  <jas@extundo.com>
49865         * lib/md4.c: Typo fix, update copyright years.
49866         (K1, K2): Don't use L because it turn computations into 64-bit on
49867         64-bit platforms.
49869 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
49871         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
49872         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
49873         unwanted sign propagation, e.g., on hosts with 64-bit int.
49874         There still are some problems with reeelly weird theoretical hosts
49875         (e.g., 33-bit int) but it's not worth worrying about now.
49876         * lib/sha1.c (rol): Likewise.
49877         (K1, K2, K3, K4): Remove unnecessary L suffix.
49879 2006-05-10  Bruno Haible  <bruno@clisp.org>
49881         * lib/des.c: Cast to avoid warnings.
49883 2006-05-09  Bruno Haible  <bruno@clisp.org>
49885         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
49886         (Depends-on): Depend also on xsize, stdarg.
49887         (configure.ac): Add gl_XVASPRINTF.
49889 2006-05-09  Bruno Haible  <bruno@clisp.org>
49891         * m4/xvasprintf.m4: New file.
49893 2006-05-09  Bruno Haible  <bruno@clisp.org>
49895         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
49896         (EOVERFLOW): Define fallback value.
49897         (xstrcat): New function.
49898         (xvasprintf): Recognize the special case of a string concatenation.
49900 2006-05-08  Eric Blake  <ebb9@byu.net>
49902         * gnulib-tool (func_version): Base copyright year on CVS date.
49903         (func_emit_copyright_notice): New function.
49904         (func_emit_lib_Makefile_am): Use it.
49905         (func_emit_tests_Makefile_am): Likewise.
49906         (func_import): Likewise.
49908 2006-05-08  Bruno Haible  <bruno@clisp.org>
49910         * modules/stdarg: New file.
49911         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
49913 2006-05-08  Bruno Haible  <bruno@clisp.org>
49915         * m4/stdarg.m4: New file, from GNU gettext.
49917 2006-05-08  Bruno Haible  <bruno@clisp.org>
49919         * config/srclist.txt (build-aux/config.rpath): different from latest
49920         release.
49922 2006-05-08  Bruno Haible  <bruno@clisp.org>
49924         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
49926 2006-05-05  Jim Meyering  <jim@meyering.net>
49928         * m4/warning.m4: New file, derived from bison's file by the same name.
49930 2006-05-03  Bruno Haible  <bruno@clisp.org>
49932         * lib/stdint_.h: Shorter URL.
49933         * lib/inttypes.h: Likewise.
49935 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49937         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
49939 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49941         * lib/verify.h: Document the internals better.  Most of this change
49942         was written by Bruno Haible.
49944 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49946         * doc/verify.texi: New file, partly based on a proposal by
49947         Bruno Haible.
49949 2006-05-02  Bruno Haible  <bruno@clisp.org>
49951         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
49952         test from here...
49953         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
49955 2006-04-29  Bruno Haible  <bruno@clisp.org>
49957         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
49958         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
49960 2006-04-29  Bruno Haible  <bruno@clisp.org>
49962         * gnulib-tool: Make --update option actually work.
49964 2006-04-29  Bruno Haible  <bruno@clisp.org>
49966         * doc/gcd.texi: New file.
49967         * doc/gnulib.texi: Include it.
49969 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
49971         * lib/getdate.y (get_date): When adding relative date, start with the
49972         initial time, not with the result of the first mktime call.
49974 2006-04-25  Bruno Haible  <bruno@clisp.org>
49976         * gnulib-tool (func_import): Output the include directives in three
49977         blocks, sorted separately.
49978         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49980 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
49982         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
49983         to define main with arguments, for C++.  Reported by Eric Blake.
49984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
49985         Prefer 'int main ()' to 'int main (void)', for C++.
49986         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49987         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
49988         for 'main', for C99 and C++.
49990 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
49992         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
49993         Don't assume that exit status -1 is valid.
49994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49995         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49996         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
49997         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
49998         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
49999         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50000         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50001         functions can be used without declaring them, or that you can
50002         exit with status -1.
50003         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50005 2006-04-24  Karl Berry  <karl@gnu.org>
50007         * config/srclist.txt (longdouble.m4): sync lost.
50009 2006-04-24  Eric Blake  <ebb9@byu.net>
50011         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50013 2006-04-24  Bruno Haible  <bruno@clisp.org>
50015         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50016         poll() implementation in AIX.
50017         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50019 2006-04-24  Bruno Haible  <bruno@clisp.org>
50021         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50022         assigned exactly once.
50024 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50025             Bruno Haible  <bruno@clisp.org>
50027         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50028         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50029         for AM_CPPFLAGS.
50031 2006-04-23  Bruno Haible  <bruno@clisp.org>
50033         * modules/copy-file: Depend on unistd.
50034         * modules/execute: Likewise.
50035         * modules/fatal-signal: Likewise.
50036         * modules/findprog: Likewise.
50037         * modules/mkdtemp : Likewise.
50038         * modules/pipe: Likewise.
50039         * modules/wait-process: Likewise.
50041 2006-04-23  Bruno Haible  <bruno@clisp.org>
50043         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50044         condition was already detected.
50045         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50047 2006-04-23  Bruno Haible  <bruno@clisp.org>
50049         * lib/copy-file.c: Include <unistd.h> unconditionally.
50050         * lib/execute.c: Likewise.
50051         * lib/fatal-signal.c: Likewise.
50052         * lib/findprog.c: Likewise.
50053         * lib/mkdtemp.c: Likewise.
50054         * lib/pipe.h: Likewise.
50055         * lib/pipe.c: Likewise.
50056         * lib/wait-process.h: Likewise.
50058 2006-04-23  Bruno Haible  <bruno@clisp.org>
50060         * gnulib-tool (func_usage): Fix --import description. Document
50061         --update.
50062         (func_import): Create temporary file in a temporary directory, if
50063         --dry-run is specified. Silence errors from 'grep' when there are no
50064         m4 files in $m4dir.
50065         (func_create_testdir): Silence errors from 'grep' when there are no
50066         m4 files in $m4dir.
50067         Reported by Karl Berry <karl@freefriends.org>.
50069 2006-04-20  Bruno Haible  <bruno@clisp.org>
50071         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50072         one argument, so that the code will be portable to Autoconf 2.60.
50073         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50074         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50075         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50077 2006-04-19  Derek Price  <derek@ximbiot.com>
50078             Eric Blake  <ebb9@byu.net>
50080         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50081         rather than "/full/path.h".  Update comment to match.  Shorten &
50082         generalize m4_translit call via AS_TR_CPP.
50084 2006-04-19  Derek Price  <derek@ximbiot.com>
50085             Eric Blake  <ebb9@byu.net>
50087         * lib/inttypes.h: Correct grammar in comment.
50089 2006-04-18  Derek Price  <derek@ximbiot.com>
50090             Paul Eggert  <eggert@cs.ucla.edu>
50092         * modules/inttypes: New file.
50093         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50095 2006-04-18  Derek Price  <derek@ximbiot.com>
50096             Paul Eggert  <eggert@cs.ucla.edu>
50098         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50099         New files.
50101 2006-04-18  Derek Price  <derek@ximbiot.com>
50102             Paul Eggert  <eggert@cs.ucla.edu>
50104         * lib/inttypes.h: New file.
50105         * lib/strtoimax.c: Assume <inttypes.h>.
50107 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50109         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50110         isn't mounted.  Problem reported by Kir Kolyshkin.
50112 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50114         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50115         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50116         Derek R. Price.
50117         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50118         implementation.
50120 2006-04-12  Eric Blake  <ebb9@byu.net>
50122         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50123         is now done automatically by the corresponding Autoconf macro.
50125 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50127         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50128         time_r.h.
50130 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50132         Merge regex changes from libc, removing some of our
50133         POSIX-conformance changes that were rejected and redoing them in a
50134         less-intrusive way.
50136         * lib/regcomp.c (re_compile_internal, init_dfa):
50137         Length arg is now size_t, not Idx.  All uses changed.
50138         (peek_token): Forward decl now says internal_function.
50139         (__re_error_msgid, __re_error_msgid_idx):
50140         Now static rather than extern with attribute_hidden.
50141         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50142         For some reason libc prefers K&R style defns for external functions.
50143         (regerror) [!defined _LIBC]: Likewise.
50144         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50145         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50146         (build_range_exp, build_collating_symbol):
50147         Use K&R-style defn.
50148         (re_compile_fastmap): Use '\0' to memset, not 0.
50149         (utf8_sb_map): Make the calculations more obvious.
50150         (init_dfa, parse_bracket_exp, build_charclass_op):
50151         Call calloc and cast result, as glibc does.
50152         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50153         (build_range_exp, build_collating_symbol):
50154         Now internal functions.
50156         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50158         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50159         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50160         Don't depend on VMS; depend on __VMS instead, for POSIX
50161         namespace cleanness.
50162         (regoff_t): Define to ssize_t, not long int.
50164         Remove the REG_ macros named below.  Instead, make the old names
50165         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50166         __USE_GNU_REGEX.
50167         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50168         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50169         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50170         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50171         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50172         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50173         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50174         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50175         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50176         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50177         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50178         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50179         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50180         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50181         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50182         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50183         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50184         (REG_NREGS):
50185         Remove.  All uses replaced by the old RE_* names.
50186         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50187         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50188         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50189         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50190         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50191         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50192         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50193         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50194         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50195         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50196         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50197         Don't bother having these macros be independent of each others'
50198         values, since they no longer exist in the POSIX name space.
50200         Rename the following member names back to their old names,
50201         unless !__USE_GNU_REGEX.  All uses changed back.
50202         (buffer): Renamed from re_buffer.
50203         (allocated): Renamed from re_allocated.
50204         (used): Renamed from re_used.
50205         (syntax): Renamed from re_syntax.
50206         (fastmap): Renamed from re_fastmap.
50207         (translate): Renamed from re_translate.
50208         (can_be_null): Renamed from re_can_be_null.
50209         (regs_allocated): Renamed from re_regs_allocated.
50210         (fastmap_accurate): Renamed from re_fastmap_accurate.
50211         (no_sub): Renamed from re_no_sub.
50212         (not_bol): Renamed from re_not_bol.
50213         (not_eol): Renamed from re_not_eol.
50214         (newline_anchor): Renamed from re_newline_anchor.
50215         (num_regs): Renamed from rm_num_regs.
50216         (start): Renamed from rm_start.
50217         (end): Renamed from rm_end.
50219         (free_state): Move up a bit.
50221         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50222         #define to be empty.
50223         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50224         when that is what is intended.
50225         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50226         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50227         (MAX): New macro.
50228         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50229         All uses changed back to re_malloc, etc.  It's now the caller's
50230         responsibility to check for overflow; all callers changed.
50231         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50232         (re_x2nrealloc): Remove.
50233         (free_state): Remove decl.
50235         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50236         (re_set_registers, re_exec):
50237         Use K&R-style defn.
50239         2006-01-31  Roland McGrath  <roland@redhat.com>
50241         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50242         Reported by Mike Frysinger <vapier@gentoo.org>.
50244         2006-01-15  Andreas Jaeger  <aj@suse.de>
50246         [BZ #1950]
50247         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50248         build_wcs_upper_buffer change.
50249         (build_wcs_upper_buffer): Change return type.
50251         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50253         * lib/regex_internal.h: Include <stdint.h> if available.
50255         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50257         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50259         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50261         * lib/regcomp.c: Adjust for changed secondary hash function.
50263         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50265         * lib/regex.h: Pretty printing.
50266         Clean up namespace a bit.
50268         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50270         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50271         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50273         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50274                     Ulrich Drepper  <drepper@redhat.com>
50276         [BZ #1302]
50277         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50278         changed.
50279         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50281         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50283         [BZ #281]
50284         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50285         * lib/regcomp.c: Remove unnecessary uses of
50286         unsigned RE_TRANSLATE_TYPE.
50287         * lib/regex_internal.h: Likewise.
50288         * lib/regex_internal.c: Likewise.
50289         * lib/regexec.c: Likewise.
50290         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50292         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50294         * lib/regexec.c (find_recover_state): Remove unnecessary
50295         initialization.
50296         (transit_state_bkref): Make DFA a const pointer.
50297         (get_subexp): Likewise.
50298         (check_arrival): Likewise.
50299         (update_cur_sifted_state): Likewise.
50300         (re_search_internal): Likewise.
50301         (prune_impossible_nodes): Likewise.
50302         (acquire_init_state_context): Likewise.
50303         (proceed_next_node): Likewise.
50304         (set_regs): Likewise.
50305         (free_fail_stack_return): Likewise.
50306         (check_arrival_expand_ecl): Mark DFA parameter as const.
50307         (check_arrival_expand_ecl_sub): Likewise.
50308         (check_subexp_limits): Likewise.
50309         (sub_epsilon_src_nodes):  Likewise.
50310         (add_epsilon_src_nodes):  Likewise.
50311         (merge_state_array): Likewise.
50312         (update_regs): Likewise.
50313         (build_trtable): Likewise.
50314         (sift_states_backward): Mark MCTX parameter as const.
50315         (build_sifted_states): Likewise.
50316         (update_cur_sifted_state): Likewise.
50317         (sift_states_mkref): Likewise.
50318         (check_arrival_expand_ecl): Mark eclosure as const.
50319         (check_dst_limits_calc_pos_1): Likewise.
50320         * lib/regex_internal.h (re_match_context_t): Make dfa a const
50321         pointer.
50323         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
50325         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
50326         (transit_state_sb): Likewise.
50327         (transit_state_mb): Likewise.
50328         (sift_states_iter_mb): Likewise.
50329         (check_arrival_add_next_nodes): Likewise.
50330         (check_node_accept_bytes): Change first parameter to pointer-to-const.
50331         [_LIBC] (re_search_2_stub): Use mempcpy.
50333         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
50334         mbrtowc for very simple UTF-8 case.
50336         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
50337         a pointer-to-const.
50338         (re_acquire_state_context): Likewise.
50339         * lib/regex_internal.h: Adjust prototypes.
50341         * lib/regex.c: Prevent using C++ compilers.
50343         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
50344         (re_acquire_state_context): Likewise.
50346 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50348         * modules/regex (Depends-on): Add ssize_t.
50350 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50352         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
50353         translation table.
50355 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50357         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
50359 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
50360             Bruno Haible  <bruno@clisp.org>
50362         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
50363         <sys/types.h> and <inttypes.h>.
50365 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50367         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
50368         `__error_t_defined', so argp.h will not typedef the former.
50370 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50372         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
50373         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
50374         glibc names.  Even if glibc is changed to conform to POSIX, the
50375         traditional names will be available anyway, since regex depends on
50376         the extensions module.  Also, fix a longstanding typo in the
50377         implementation of Spencer ERE test #75 from grep 2.3.  Problems
50378         reported by Emanuele Giaquinta.  Also, change sense of cached
50379         variable, so that the message makes sense.
50381 2006-03-24  Simon Josefsson  <jas@extundo.com>
50383         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
50384         including some doc fixes.
50385         (base64_encode_alloc): Fix +1 bug on allocation failures.
50387 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50389         * lib/base64.c (base64_encode): Do not read past end of array with
50390         unsanitized input on systems with CHAR_BIT > 8.
50392 2006-03-24  Eric Blake  <ebb9@byu.net>
50394         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
50396 2006-03-22  Karl Berry  <karl@gnu.org>
50398         * config/srclist.txt (*setenv.[ch]): get from coreutils.
50399         * config/srclistvars.sh (COREUTILS): new var.
50401 2006-03-17  Jim Meyering  <jim@meyering.net>
50403         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
50404         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
50406 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50408         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
50409         no longer needs it.  Instead, check that regoff_t is as least
50410         as wide as ptrdiff_t.
50412         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
50413         so that our regex.h stays compatible with the installed regex.
50414         This is helpful for installers who configure --without-included-regex.
50415         Problem reported by Emanuele Giaquinta.
50417 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50419         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
50420         Typedef to long int, not to off_, as POSIX will likely change
50421         in that direction.
50423 2006-03-15  Eric Blake  <ebb9@byu.net>
50425         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
50427 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50429         * lib/argp-help.c (validate_uparams): Fix typo
50430         * lib/argp-parse.c (argp_default_options): Consistently begin help
50431         messages with a lowercase letter.
50433 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
50435         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
50436         overrun buffers and shouldn't be used (much as gets shouldn't be
50437         used).
50438         * lib/time_r.c (asctime_r, ctime_r): Likewise.
50440 2006-03-08  Simon Josefsson  <jas@extundo.com>
50442         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
50443         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50445 2006-03-08  Simon Josefsson  <jas@extundo.com>
50447         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
50448         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50450 2006-03-08  Simon Josefsson  <jas@extundo.com>
50452         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
50453         signal that configure disabled the device.
50455 2006-03-08  Simon Josefsson  <jas@extundo.com>
50457         * build-aux/maint.mk: Fix refresh-po, to handle no translated
50458         languages.
50460 2006-03-07  Simon Josefsson  <jas@extundo.com>
50462         * modules/getopt (Depends-on): Add unistd.
50464         * modules/unistd: New file.
50466 2006-03-07  Simon Josefsson  <jas@extundo.com>
50468         * modules/gc-random: New file.
50470 2006-03-07  Simon Josefsson  <jas@extundo.com>
50472         * m4/unistd_h.m4: New file.
50474 2006-03-07  Simon Josefsson  <jas@extundo.com>
50476         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
50477         test to be side-effect free by storing the result in the cache
50478         variable gl_cv_lib_readline, and moving the assignment of
50479         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
50480         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50482 2006-03-07  Simon Josefsson  <jas@extundo.com>
50484         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
50485         error on missing devices (the functions will return an error).
50487         * m4/gc.m4: Move random stuff to gc-random.m4
50489 2006-03-07  Simon Josefsson  <jas@extundo.com>
50491         * lib/unistd_.h: New file.
50493 2006-03-07  Simon Josefsson  <jas@extundo.com>
50495         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
50497 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50499         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
50500         Problem reported by Juan Manuel Guerrero.
50502 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50504         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
50505         the unistd module.
50506         * lib/getlogin_r.c: Likewise.
50507         * lib/getlogin_r.h: Likewise.
50508         * lib/glob.c: Likewise.
50509         * lib/pagealign_alloc.c: Likewise.
50510         * lib/unistd_.h: Remove; no longer needed.
50512 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50514         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50515         Add unistd.
50516         * modules/c-stack (Depends-on): Add unistd.
50517         * modules/getlogin_r: Likewise.
50518         * modules/glob: Likewise.
50519         * modules/pagealign_alloc: Likewise.
50520         * modules/unistd (Files): Remove lib/unistd_.h.
50521         (EXTRA_DIST): Remove.
50522         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
50523         need unistd_.h.
50524         (MOSTLYCLEANFILES): Remove unistd.h-t.
50526 2006-03-03  Simon Josefsson  <jas@extundo.com>
50528         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
50530 2006-03-03  Simon Josefsson  <jas@extundo.com>
50532         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
50533         libidn and bison.
50535 2006-03-03  Simon Josefsson  <jas@extundo.com>
50537         * build-aux/maint.mk: Add indent target.
50539 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
50541         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
50542         our replacement poll.h in any case, to avoid a differing
50543         declaration from a system header.  Seen on AIX.
50545 2006-03-01  Simon Josefsson  <jas@extundo.com>
50547         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
50548         <kasal@ucw.cz>.
50550 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50552         * modules/gettime (Depends-on): Add extensions module.
50553         * modules/nanosleep (Depends-on): Likewise.
50554         * modules/settime (Depends-on): Likewise.
50556 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50558         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
50559         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
50560         pedantically.
50561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50562         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
50564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
50565         not "==".  Reported by Ralf Wildenhues.
50567 2006-03-01  Karl Berry  <karl@gnu.org>
50569         * doc/Copyright/request-*: new files, synced from gnuorg.
50571 2006-03-01  Karl Berry  <karl@gnu.org>
50573         * config/srclist.txt (Copyright/*): new entries.
50575 2006-02-28  Simon Josefsson  <jas@extundo.com>
50577         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
50579 2006-02-27  Simon Josefsson  <jas@extundo.com>
50581         * lib/base64.h: Indent #define's.  From Jim Meyering
50582         <jim@meyering.net>.
50584 2006-02-27  Jim Meyering  <jim@meyering.net>
50586         Revert the change of 2006-02-24, so these files can continue
50587         to be sync'd from gettext.
50588         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
50589         of `config.h'.
50591 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50593         * modules/intprops: New file.
50594         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50595         Add intprops.
50596         * modules/getloadavg (Files): Remove lib/intprops.h.
50597         (Depends-on): Add intprops.
50598         * modules/human: Likewise.
50599         * modules/inttostr: Likewise.
50600         * modules/openat: Likewise.
50601         * modules/sig2str: Likewise.
50602         * modules/userspec: Likewise.
50603         * modules/utimecmp: Likewise.
50604         * modules/xnanosleep: Likewise.
50605         * modules/xstrtol: Likewise.
50607 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
50609         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
50610         * modules/lock-tests (TESTS): Use $(EXEEXT).
50611         * modules/tls-tests: Likewise.
50612         * modules/argp-tests: Likewise.
50613         (check_PROGRAMS): New var, replacing...
50614         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
50616 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50618         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
50619         `config.h'.
50621 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50623         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
50625 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50627         Sync from coreutils.
50628         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
50629         gl_CHDIR_SAFER.
50631 2006-02-22  Jim Meyering  <jim@meyering.net>
50633         Sync from coreutils.
50634         * m4/chdir-safer.m4: New file.
50636 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50638         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
50639         AT_FDCWD exceeds INT_MAX.
50640         * lib/openat.h (AT_FDCWD): Likewise.
50642 2006-02-17  Eric Blake  <address@hidden>
50644         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
50646 2006-02-16  Simon Josefsson  <jas@extundo.com>
50648         * modules/getaddrinfo (Depends-on): Add sys_socket.
50650 2006-02-15  Simon Josefsson  <jas@extundo.com>
50652         * build-aux/maint.mk: Add dsyntax-check rule.
50654 2006-02-15  Eric Blake  <ebb9@byu.net>
50656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
50657         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
50658         'present but cannot compile' warnings on cygwin.
50659         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
50660         use ws2tcpip.h if sys/socket.h works.
50661         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
50662         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
50664 2006-02-14  Simon Josefsson  <jas@extundo.com>
50666         * modules/maintainer-makefile (Files): Rename.
50668         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
50669         and (the local) Makefile.cfg to maint-cfg.mk.
50671         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
50672         to the latter.
50674         * modules/maintainer-makefile: New module.
50676         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
50677         severaly stripped to make it possible to build it up from scratch
50678         with reliable tests.
50680         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
50681         fixes to permit overriding the default actions when configure and
50682         makefile are not available.
50684 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50686         Sync from coreutils.
50687         * modules/lstat (Depends-on): Don't depend on xalloc.
50688         (License): Change from GPL to LGPL, since this is now simply a
50689         replacement for a libc function.
50691 2006-02-14  Jim Meyering  <jim@meyering.net>
50693         Sync from coreutils.
50695         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
50696         failure on deficient systems, and simplify gnulib lgpl dependencies.
50697         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
50698         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
50700         * lib/xalloc-die.c: Remove unused definition of N_.
50702 2006-02-14  Jim Meyering  <jim@meyering.net>
50704         Sync from coreutils.
50705         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
50706         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
50707         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
50708         double-quote uses of that variable, to accommodate the rare case in
50709         which getmntent is available in none of the libraries checked.  This
50710         happens at least on FreeBSD 5.0.
50712 2006-02-13  Simon Josefsson  <jas@extundo.com>
50714         * gnulib-tool (Usage): Fix --import, from
50715         karl@freefriends.org (Karl Berry).
50717 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50719         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
50721 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
50723         * lib/argp-namefrob.h: Restore changes accidentally lost during the
50724         "autoupdate" on 2005-12-12.
50726 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
50728         * modules/closeout (Depends-on): Remove atexit.
50730 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
50732         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
50733         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
50735 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50737         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
50738         __EXTENSIONS__ if this causes compilation to fail.  Problem
50739         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
50740         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
50742 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
50744         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
50745         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
50746         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
50747         All uses changed.
50749 2006-01-26  Simon Josefsson  <jas@extundo.com>
50751         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
50752         prototype is visible on mingw32.
50754         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
50755         for mingw32.
50757         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
50758         mingw32).
50760 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
50762         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
50763         attempt to open for write; this always fails, at least on POSIX
50764         hosts.  This reinstates the 2006-01-09 change, which was
50765         inadvertently removed.
50767 2006-01-26  Bruno Haible  <bruno@clisp.org>
50769         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
50770         Reported by Paul Eggert.
50772 2006-01-26  Bruno Haible  <bruno@clisp.org>
50773             Paul Eggert  <eggert@cs.ucla.edu>
50775         * lib/stdbool_.h (_Bool)
50776         [(! (defined __cplusplus || defined __BEOS__)
50777           && !defined __GNUC__
50778           && !(defined __HP_cc || defined __xlc__
50779                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
50780                || defined __sgi))]:
50781         #define to signed char in these cases too; this simplifies
50782         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
50783         etc., separately) and makes it more conservative.
50785 2006-01-25  Simon Josefsson  <jas@extundo.com>
50787         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
50788         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
50789         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
50791 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50793         * lib/argp-namefrob.h: Bugfix. Remove stray #
50795 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
50798         so that we test the test.
50799         Check for yet another HP-UX cc bug involving *bool |= bool.
50801 2006-01-25  Karl Berry  <karl@gnu.org>
50803         * config/srclist.txt (vasnprintf.c): sync lost.
50805 2006-01-25  Jim Meyering  <jim@meyering.net>
50807         Sync from the stable (b5) branch of coreutils:
50809         * lib/fts.c (fts_children): Don't let close() clobber errno from
50810         failed fchdir().
50812         * lib/fts.c (fts_stat): When following a symlink-to-directory,
50813         don't necessarily interpret stat-fails+lstat-succeeds as indicating
50814         a dangling symlink.  That can also happen at least for ELOOP.
50815         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
50816         FYI, this bug predates the inclusion of fts.c in coreutils.
50818         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
50819         in their own block, so pre-c99 compilers don't object.
50821         Avoid the double-free (first in fts_read, second in fts_close) that
50822         would occur when an `active' directory is made inaccessible (e.g.,
50823         via chmod a-x) during a traversal.
50824         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
50825         before returning.  Reproduce this failure by
50826         mkdir -p a/b; cd a; chmod a-x . b
50827         Reported by Stavros Passas.
50829 2006-01-25  Jim Meyering  <jim@meyering.net>
50831         * lib/fileblocks.c: Remove more useless parentheses.
50832         * lib/readutmp.h: Likewise.
50834 2006-01-25  Bruno Haible  <bruno@clisp.org>
50836         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
50837         warnings.
50838         Reported by Paul Eggert.
50840 2006-01-25  Bruno Haible  <bruno@clisp.org>
50842         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
50843         rid of a trap command. For Solaris sh.
50844         Reported by Mark D. Baushke <mdb@gnu.org>.
50846 2006-01-24  Simon Josefsson  <jas@extundo.com>
50848         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
50849         Bruno.
50851 2006-01-24  Karl Berry  <karl@gnu.org>
50853         * config/srclist.txt (argp-namefrob.h): sync lost.
50855 2006-01-24  Jim Meyering  <jim@meyering.net>
50857         * modules/openat (Files): Add lib/intprops.h.
50858         From Mark D. Baushke.
50860 2006-01-24  Jim Meyering  <jim@meyering.net>
50862         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
50863         Reported by Mark D. Baushke.
50865 2006-01-24  Jim Meyering  <jim@meyering.net>
50867         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
50869 2006-01-24  Bruno Haible  <bruno@clisp.org>
50871         * modules/strnlen (Maintainer): Change from glibc to all.
50873 2006-01-24  Bruno Haible  <bruno@clisp.org>
50875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
50876         Patch by Paul Eggert.
50878 2006-01-24  Bruno Haible  <bruno@clisp.org>
50880         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
50881         already has it.
50882         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
50883         2005-11-26.
50885         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
50886         'signed char' to avoid problems with the built-in _Bool type.
50887         Reported by Paul Eggert on 2005-11-26.
50889 2006-01-24  Bruno Haible  <bruno@clisp.org>
50891         * gnulib-tool (func_import): Avoid constructing complicated sed
50892         expressions inside backquote.
50893         Report and solution by Mark D. Baushke <mdb@gnu.org>.
50895 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
50897         These changes imported from libc.
50898         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
50899         test and two separate function calls.
50900         * lib/strndup.c (__strndup): Add libc_hidden_def.
50902 2006-01-23  Simon Josefsson  <jas@extundo.com>
50904         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
50905         Remove the test_*_SOURCES variable: automake infers it by default.
50906         * modules/tls-tests: Likewise.
50908 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50910         Work around porting bugs reported by Dieter in
50911         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
50912         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
50913         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
50914         Include "getopt.h" first, to check interface.
50915         (getenv): Declare only if defined HAVE_DECL_GETENV &&
50916         !HAVE_DECL_GETENV.
50917         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
50918         (__strndup): Revert to K&R-style function dfns, the glibc style.
50919         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
50920         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
50921         Include strnlen.h first, to get prototype properly.
50922         (strnlen): Renamed from __strnlen.
50923         Remove weak alias.
50925 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50927         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
50929 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50931         * config/srclist.txt: Adjust to reflect glibc reorganization.
50932         This affects only comments.
50934 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50936          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
50937          Reported by Bruce Korb <bkorb@gnu.org>.
50939 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
50941         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
50942         to pacify gcc -Wswitch-default.
50944 2006-01-22  Bruno Haible  <bruno@clisp.org>
50946         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
50947         temporary buffer for sprintf, take into account the precision also
50948         for 'd', 'i', 'u', 'o', 'x', 'X'.
50950 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
50952         * modules/argp-tests: New module
50953         * tests/test-argp.c: New file
50954         * tests/test-argp-2.sh: New file
50956 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
50958         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
50959         (__argp_base_name): Removed
50960         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
50961         typo.
50962         (__argp_base_name): Provide macro definition or extern declaration
50963         depending on the configuration
50965 2006-01-20  Simon Josefsson  <jas@extundo.com>
50967         * modules/inet_ntop (Depends-on): Depend on sys_socket.
50969 2006-01-20  Simon Josefsson  <jas@extundo.com>
50971         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
50973 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50975         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
50976         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
50977         Suggested by Bruno Haible.
50979 2006-01-20  Karl Berry  <karl@gnu.org>
50981         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
50982         until changes propagate, I guess.
50984 2006-01-19  Simon Josefsson  <jas@extundo.com>
50986         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
50988 2006-01-19  Simon Josefsson  <jas@extundo.com>
50990         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
50992 2006-01-19  Simon Josefsson  <jas@extundo.com>
50994         * gnulib-tool: Set check_PROGRAMS.
50996         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
50997         modules/des-tests, modules/gc-arcfour-tests,
50998         modules/gc-arctwo-tests, modules/gc-des-tests,
50999         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51000         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51001         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51002         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51003         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51004         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51005         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51006         test_*_SOURCES.
51008 2006-01-18  Simon Josefsson  <jas@extundo.com>
51010         * modules/socklen (Depends-on): Depend on sys_socket.
51012 2006-01-18  Simon Josefsson  <jas@extundo.com>
51014         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51015         modules/des-tests, modules/gc-arcfour-tests,
51016         modules/gc-arctwo-tests, modules/gc-des-tests,
51017         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51018         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51019         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51020         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51021         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51022         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51023         $(EXEEXT) to automake TESTS variable, for mingw32.
51025 2006-01-17  Simon Josefsson  <jas@extundo.com>
51027         * modules/socklen (Include): Need sys/socket.h.
51029 2006-01-17  Bruno Haible  <bruno@clisp.org>
51031         * modules/ssize_t (Include): Add <sys/types.h>.
51033 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51035         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51036         it's not portable and it doesn't work with cross-compiles.
51037         Problem reported by Bruno Haible.  Fix missing-$ typo in
51038         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51039         -zignore from being used with Sun's C compiler.
51041 2006-01-12  Simon Josefsson  <jas@extundo.com>
51043         * lib/base64.c: Fix warning, reported by Bruno Haible
51044         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51046 2006-01-12  Bruno Haible  <bruno@clisp.org>
51048         * modules/ldd: New file.
51049         * build-aux/ldd.sh.in: New file.
51050         * MODULES.html.sh (Support for building libraries and executables): Add
51051         ldd.
51053 2006-01-12  Bruno Haible  <bruno@clisp.org>
51055         * m4/ldd.m4: New file.
51057 2006-01-12  Bruno Haible  <bruno@clisp.org>
51059         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51060         endless loop while replacing $auxdir with build-aux.
51062 2006-01-11  Simon Josefsson  <jas@extundo.com>
51064         * lib/stdint_.h (SIZE_MAX): Add missing (.
51066 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51068         Sync from coreutils.
51069         * lib/md5.c: Fix commentary typos.
51070         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51071         * lib/md5.h (__attribute__): Remove; unused.
51072         * lib/sha1.c: Fix commentary to match md5 better.
51073         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51074         so that we don't need to worry about alignment.  All uses changed.
51075         This merges the 2005-10-28 md5 change into sha1.
51077 2006-01-11  Jim Meyering  <jim@meyering.net>
51079         Sync from coreutils.
51080         * lib/md5.c (OP): Fix spacing.
51082 2006-01-11  Bruno Haible  <bruno@clisp.org>
51084         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51085         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51086         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51088 2006-01-11  Bruno Haible  <bruno@clisp.org>
51090         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51091         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51092         the "early" section as well.
51094 2006-01-11  Bruno Haible  <bruno@clisp.org>
51096         Avoid "ar: no archive members specified" error on MacOS X.
51097         * gnulib-tool (func_modules_add_dummy): New function.
51098         (func_import, func_create_testdir): Invoke it.
51100 2006-01-11  Bruno Haible  <bruno@clisp.org>
51102         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51103         with $auxdir in AC_CONFIG_FILES statements.
51105 2006-01-11  Bruno Haible  <bruno@clisp.org>
51107         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51108         Initialize also noinst_HEADERS to empty.
51110 2006-01-11  Bruno Haible  <bruno@clisp.org>
51112         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51113         variables.
51114         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51115         autoreconf.
51117 2006-01-11  Bruno Haible  <bruno@clisp.org>
51119         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51120         overridable by the user.
51121         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51123 2006-01-10  Simon Josefsson  <jas@extundo.com>
51125         * modules/sys_socket: New file.
51127 2006-01-10  Simon Josefsson  <jas@extundo.com>
51129         * m4/sys_socket_h.m4: New file.
51131 2006-01-10  Simon Josefsson  <jas@extundo.com>
51133         * lib/socket_.h: New file.
51135 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51137         * modules/readutmp (Maintainer): Add myself.
51139 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51141         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51142         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51143         People who are still concerned with buggy memcmp implementations
51144         can invoke gl_FUNC_MEMCMP themselves.
51146 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51148         * lib/regex_internal.h (BITSET_WORD_BITS):
51149         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51150         preprocessor mishandles large unsigned values as if they were signed.
51151         Problem reported by Claudio Fontana in
51152         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51154 2006-01-10  Jim Meyering  <jim@meyering.net>
51156         Avoid the double-free (first in fts_read, second in fts_close) that
51157         would occur when an `active' directory is made inaccessible (e.g.,
51158         via chmod a-x) during a traversal.
51159         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51160         before returning.  Reproduce this failure by
51161         mkdir -p a/b; cd a; chmod a-x . b
51162         Reported by Stavros Passas.
51164         Sync from coreutils.
51165         * lib/sha1.c: Tweak grammar in a comment.
51167 2006-01-10  Jim Meyering  <jim@meyering.net>
51169         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51170         Patch by Joerg Sonnenberger.
51172 2006-01-10  Bruno Haible  <bruno@clisp.org>
51174         * modules/readutmp: Depend on module free.
51175         * modules/strtok_r: Depend on module restrict.
51177 2006-01-10  Bruno Haible  <bruno@clisp.org>
51179         * modules/gettext (configure.ac): Add an invocation of
51180         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51182 2006-01-10  Bruno Haible  <bruno@clisp.org>
51184         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51185         Reported by Werner Lemberg <wl@gnu.org>.
51187 2006-01-10  Bruno Haible  <bruno@clisp.org>
51189         * lib/localcharset.c: Update from GNU gettext.
51191 2006-01-10  Bruno Haible  <bruno@clisp.org>
51193         * lib/argp.h (__const): Remove macro. Use const instead.
51194         * lib/argp-fmtstream.h (__const): Likewise.
51195         * lib/glob_.h (__const): Remove macro.
51196         * lib/glob-libc.h: Use const instead of __const.
51198 2006-01-10  Bruno Haible  <bruno@clisp.org>
51200         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51201         variable.
51202         Needed to avoid an automake error regarding the 'gettext' module.
51204 2006-01-09  Simon Josefsson  <jas@extundo.com>
51206         * modules/inet_ntop (Depends-on): Add restrict.
51208 2006-01-09  Simon Josefsson  <jas@extundo.com>
51210         * modules/gc-rijndael-tests (License): Put under LGPL.
51212         * modules/gc-des-tests (License): Likewise.
51214         * modules/gc-arcfour-tests (License): Likewise.
51216         * modules/gc-arctwo-tests (License): Likewise.
51218         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51220         * modules/gc-hmac-sha1-tests (Files): Likewise.
51222         * modules/gc-hmac-md5-tests (License): Likewise.
51224         * modules/gc-sha1-tests (License): Likewise.
51226         * modules/gc-md5-tests (License): Likewise.
51228         * modules/gc-md4-tests (License): Likewise.
51230         * modules/gc-md2-tests (License): Likewise.
51232         * modules/gc-tests (License): Likewise.
51234         * modules/des-tests (License): Likewise.
51236         * modules/md4-tests (License): Likewise.
51238         * modules/md2-tests (License): Likewise.
51240 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51242         Sync from coreutils:
51244         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51245         * modules/lib-ignore: New file.
51246         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51247         chdir-safer.m4, lchmod.m4.
51248         * modules/openat: Add mkdirat.c, openat-priv.h.
51250 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51252         Sync from coreutils.
51253         * m4/lib-ignore.m4: New file.
51254         * m4/lchmod.m4: New file.
51256 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51258         Sync from coreutils.
51259         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51260         for write access: POSIX says that must fail.
51261         * lib/fts.c (diropen): Likewise.
51262         * lib/save-cwd.c (save_cwd): Likewise.
51263         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51264         well, for minor improvements on hosts that lack O_DIRECTORY.
51265         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51266         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51267         Fall back on chown if open failed with EACCES.
51269         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51270         Report an error at compile-time if only a 1-second nominal clock
51271         resolution is found.
51273         * lib/lchmod.h: New file.
51274         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51275         (make_dir_parents): Use lchown rather than chown, and
51276         lchmod rather than chmod.
51278         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51279         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51280         "proc" reported by n0dalus.
51282         * lib/mountlist.c: Include <limits.h>.
51283         (dev_from_mount_options)
51284         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51285         New function.  It no longer assumes "dev=" has the System V meaning
51286         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51287         (read_file_system_list)
51288         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51289         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51290         dev= in that case.
51292         * lib/posixtm.h (PDS_PRE_2000): New macro.
51293         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51294         allow_century.  All usages changed.  Reject dates outside the range
51295         1969-1999 if PDS_PRE_2000 is used.
51297 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51299         Sync from coreutils.
51300         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51301         (Time of day items): Mention the possibility of leap seconds.
51302         Problem reported by Dr. David Alan Gilbert.
51304 2006-01-09  Jim Meyering  <jim@meyering.net>
51306         Sync from coreutils.
51308         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
51310         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
51312         * lib/modechange.c (mode_compile): Reject an invalid mode string
51313         that starts with an octal digit.  From Andreas Gruenbacher.
51315         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
51316         and dup to open_safer and dup_safer, respectively.
51317         (openat_permissive): Fix typo in comment.
51319         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
51320         "gettext.h"; either no longer needed or are guaranteed by openat.h.
51321         (_): Remove; no longer needed.
51322         (openat): Renamed from rpl_openat; no need for rpl_openat
51323         since openat.h renames openat for us.
51324         Replace most of the body with a call to openat_permissive,
51325         to avoid duplicate code.
51326         Port to (probably hypothetical) environments were mode_t is
51327         wider than int.
51328         (openat_permissive): Require mode arg, so that we can check
51329         types better.  Put it just after flags.  Change cwd failure
51330         indicator from pointer-to-bool to pointer-to-errno-value.
51331         All callers changed.
51332         Invoke openat_save_fail and/or openat_restore_fail if
51333         cwd_errno is null, so that openat can call us.
51334         (openat_permissive, fdopendir, fstatat, unlinkat):
51335         Simplify errno handling to avoid some duplicate code,
51336         as it's OK to set errno on success.
51337         * lib/openat.h: Revamp code so that function macros depend on
51338         __OPENAT_PREFIX only, not also on AT_FDCWD.
51339         (openat_ro): Remove.  Caller changed to use openat_permissive.
51340         (openat_permissive): Now a macro, if not a function.
51341         (openat_restore_fail, openat_save_fail): Now always functions,
51342         since mkdirat needs them even if __OPENAT_PREFIX is defined.
51344         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
51345         and openat.c.
51346         * lib/mkdirat.c: Include openat-priv.h.
51347         Remove definitions of macros defined therein.
51348         * lib/openat.c: Likewise.
51350         * lib/mkdirat.c (mkdirat): New file and function.
51351         * lib/openat.h (mkdirat): Declare.
51353         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
51355         * lib/openat.h (openat_permissive): Declare.
51356         (openat_ro): Define.
51358         * lib/openat.c (EXPECTED_ERRNO): New macro.
51359         (openat_permissive): New function -- used in remove.c rewrite.
51360         (all functions): Set errno just before returning, only if there
51361         was an actual failure.
51362         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
51364         Emulate openat-family functions using Linux's procfs, if possible.
51365         Idea and some code based on Ulrich Drepper's glibc changes.
51367         * lib/openat.c: (BUILD_PROC_NAME): New macro.
51368         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
51369         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
51370         before falling back on save_cwd and restore_cwd.
51371         (fdopendir, fstatat, unlinkat): Likewise.
51373         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
51374         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
51376         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
51377         as second argument to va_arg.  Otherwise, some versions of gcc
51378         warn that `if this code is reached, the program will abort'.
51380 2006-01-09  Jim Meyering  <jim@meyering.net>
51382         Sync from coreutils.
51383         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
51384         Require openat-priv.h.
51386 2006-01-09  Bruno Haible  <bruno@clisp.org>
51388         * modules/strnlen (Include): Use strnlen.h.
51390 2006-01-09  Bruno Haible  <bruno@clisp.org>
51392         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
51394 2006-01-09  Bruno Haible  <bruno@clisp.org>
51396         * lib/sysexit_.h (EX_OK): New macro.
51397         Suggested by Martin Lambers <marlam@marlam.de>.
51399 2006-01-09  Bruno Haible  <bruno@clisp.org>
51401         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
51402         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
51404 2006-01-09  Bruno Haible  <bruno@clisp.org>
51406         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
51407         numbers.
51409 2006-01-09  Bruno Haible  <bruno@clisp.org>
51411         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
51412         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
51413         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
51414         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
51416 2006-01-09  Bruno Haible  <bruno@clisp.org>
51418         * build-aux/javacomp.sh.in: New file, moved from lib/.
51419         * modules/javacomp-script (Files): Update.
51420         (configure.ac): Add AC_CONFIG_FILES invocation.
51421         (EXTRA_DIST): Remove variable.
51423         * build-aux/javaexec.sh.in: New file, moved from lib/.
51424         * modules/javaexec (Files): Update.
51425         (configure.ac): Add AC_CONFIG_FILES invocation.
51426         (EXTRA_DIST): Remove javaexec.sh.in.
51428         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
51429         * modules/csharpcomp-script (Files): Update.
51430         (configure.ac): Add AC_CONFIG_FILES invocation.
51431         (EXTRA_DIST): Remove variable.
51433         * build-aux/csharpexec.sh.in: New file, moved from lib/.
51434         * modules/csharpexec (Files): Update.
51435         (configure.ac): Add AC_CONFIG_FILES invocation.
51436         (EXTRA_DIST): Remove csharpexec.sh.in.
51438 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51440         Sync from coreutils.
51442         Add POSIX ACL support
51443         * lib/acl.h (copy_acl, set_acl): Add declarations.
51444         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
51445         systems other than Linux.
51446         (chmod_or_fchmod): New function: use fchmod when possible,
51447         and chmod otherwise.
51448         (file_has_acl): Add a POSIX ACL implementation, with a
51449         Linux-specific subcase.
51450         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
51451         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
51452         acls are unsupported.
51453         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
51454         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
51455         are unsupported.
51457 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51459         Sync from coreutils.
51460         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
51462 2006-01-07  Bruno Haible  <bruno@clisp.org>
51464         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
51465         gl_EARLY.
51467 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51469         * lib/strftime.c (tzname): Don't declare if it is already #defined.
51470         Problem reported for Mingw by Mark Junker.
51472 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51474         * README: Gnulib normally doesn't generate a tarball.
51476 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
51478         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
51479         long int, not int, for nanosecond counts, so that people who are
51480         used to POSIX struct timespec won't be surprised.  Reported by Jim
51481         Meyering.
51483 2005-12-28  Bruno Haible  <bruno@clisp.org>
51485         * build-aux/config.rpath: Update from GNU gettext.
51487 2005-12-16  Jim Meyering  <jim@meyering.net>
51489         * modules/fprintftime: New module.
51490         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
51492 2005-12-16  Jim Meyering  <jim@meyering.net>
51494         * m4/fprintftime.m4: New file.
51496 2005-12-16  Jim Meyering  <jim@meyering.net>
51498         * lib/fprintftime.c, lib/fprintftime.h: New files.
51500 2005-12-15  Simon Josefsson  <jas@extundo.com>
51502         * modules/socklen (configure.ac): Fix M4 macro name, to align with
51503         new m4/socklen.m4.
51505 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51507         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
51508         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
51510 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51512         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
51513         * lib/argp-help.c (fill_in_uparams): Check if the constructed
51514         struct uparams is valid. Fall back to the default values if it is
51515         not.
51517 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51519         * modules/argp (Files): Add argp-pin.c
51520         (Depends-on): dirname
51521         (lib_SOURCES): Add argp-pin.c
51523 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51525         * m4/argp.m4:  Check if program_invocation_name and
51526         program_invocation_short_name are declared and define appropriate
51527         macros if they are not.
51529 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51531         * lib/argp-help.c (__argp_base_name): New function
51532         (__argp_short_program_name): Rewrite using __argp_base_name
51533         * lib/argp-namefrob.h: Define program_invocation_name and
51534         program_invocation_short_name if requested
51535         (__argp_base_name): Add prototype
51536         * lib/argp-parse.c (argp_def): Use gettext wrappers
51537         (argp_default_parser): Use __argp_base_name
51538         * lib/argp-pin.c: New file. Defines program_invocation_name and
51539         program_invocation_short_name on systems that lack them.
51541 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51543         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
51544         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51545         porting problem reported by Georg Schwarz in
51546         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51548 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51550         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
51551         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51552         porting problem reported by Georg Schwarz in
51553         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51555 2005-12-05  Bruno Haible  <bruno@clisp.org>
51557         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
51558         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
51559         Reported by Mark Junker <mjscod@gmx.de>.
51561 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
51563         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
51564         Use implementation from Albert Chin, with some
51565         comments/corrections by Stepan Kasal and myself.
51567 2005-12-02  Bruno Haible  <bruno@clisp.org>
51569         * gnulib-tool (func_import): Accept GPLed build tool modules when
51570         --lgpl is given.
51571         * modules/csharpcomp-script: New file.
51572         * modules/csharpcomp: Depend on it.
51573         * modules/javacomp-script: New file.
51574         * modules/javacomp: Depend on it.
51575         Suggested by Simon Josefsson.
51577 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
51579         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
51580         statement, to work around an HP-UX 10.20 compiler bug reported by
51581         Peter O'Gorman.
51583 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51585         * modules/savedir (Depends-on): Add openat.
51587 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51589         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
51590         (uintmax_t) [defined uintmax_t]: Do not declare.
51591         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
51592         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
51593         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
51594         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
51595         sake of portability to weird hosts that C allows (though we don't
51596         know of any practical examples).
51598         * lib/savedir.h (fdsavedir): New decl.
51599         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
51600         contains most of the former guts of savedir.
51601         (savedir): Use savedirstream.
51602         Include "openat.h".
51604 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51606         * modules/obstack (Files): Add m4/ulonglong.m4.
51607         Problem reported by Davide Angelocola.
51609 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51611         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
51612         coreutils no longer futzes with rounding modes.
51614 2005-11-14  Jim Meyering  <jim@meyering.net>
51616         * lib/mkstemp-safer.c: Include <config.h>, required for possible
51617         replacement of mkstemp.
51619 2005-11-10  Simon Josefsson  <jas@extundo.com>
51621         * lib/readline.c: Remove EOL.
51623 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51625         * modules/gethrxtime (Depends-on): Add gettime.
51627 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51629         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
51630         or gettimeofday; no longer needed.
51632 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51634         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
51635         time business.
51636         (gethrxtime) [! (HAVE_NANOUPTIME
51637         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
51638         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
51639         our own approximation.
51641 2005-11-08  Eric Blake  <ebb9@byu.net>
51643         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51645 2005-11-08  Eric Blake  <ebb9@byu.net>
51647         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51649 2005-11-04  Bruno Haible  <bruno@clisp.org>
51651         * gnulib-tool: Implement --update mode.
51653 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51655         Fix porting problem reported by Theodoros V. Kalamatianos.
51656         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
51657         Don't assume that futimes failing means we must fail.
51659 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51661         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
51662         variables to suggest the intended function of the PATH_MAX check.
51664 2005-10-30  Kean Johnston  <jkj@sco.com>
51666         Trivial changes to support SCO systems.
51667         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
51668         as PATH_MAX.
51669         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
51670         where __ptr is null when no I/O is pending.
51672 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
51674         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
51675         leave errno alone.  Problem reported by Dmitry V. Levin.
51677 2005-10-28  Simon Josefsson  <jas@extundo.com>
51679         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
51680         Test more.
51682         * tests/test-gc-md2.c, tests/test-md2.c: New files.
51684         * modules/md2, modules/md2-tests: New files.
51686 2005-10-28  Simon Josefsson  <jas@extundo.com>
51688         * m4/inet_ntop.m4: More tests.
51690         * m4/gc-md2.m4, md2.m4: New file.
51692 2005-10-28  Simon Josefsson  <jas@extundo.com>
51694         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
51695         "restrict" keywords, as per POSIX.  Protect the function
51696         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
51697         Don't use K&R prototypes.  Check the sprintf return values.
51698         Re-define EAFNOSUPPORT if not present.  Indent.
51700         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
51701         suggested by Bruno Haible <bruno@clisp.org>.
51703         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
51705         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
51707         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
51708         libgcrypt).
51710         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
51712         * lib/md2.h, lib/md2.c: New files.
51714 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
51716         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
51717         errno alone.  Problem reported by Frederic Jolliton.
51719 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51721         * modules/verify (License): Change from GPL to LGPL.  This is a
51722         tiny module and there are apparently near-equivalents that are
51723         under the BSD license.
51725 2005-10-24  Simon Josefsson  <jas@extundo.com>
51727         * modules/sha1: Relicense to LGPL.
51729 2005-10-24  Simon Josefsson  <jas@extundo.com>
51731         * lib/md4.h: Shrink buffer size, now that we changed the type.
51733 2005-10-23  Simon Josefsson  <jas@extundo.com>
51735         * gnulib-tool (func_import): Fix --tests-base.
51737 2005-10-22  Simon Josefsson  <jas@extundo.com>
51739         * modules/arcfour (Depends-on): Need stdint.
51741 2005-10-22  Simon Josefsson  <jas@extundo.com>
51743         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
51744         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
51746 2005-10-22  Simon Josefsson  <jas@extundo.com>
51748         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
51749         suggested by Bruno Haible <bruno@clisp.org>.
51751 2005-10-22  Simon Josefsson  <jas@extundo.com>
51753         * lib/crc.h: Include stddef.h, for size_t.
51755 2005-10-22  Simon Josefsson  <jas@extundo.com>
51757         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
51758         arcfour_context struct (simplify test vector testing in GNU
51759         Shishi).
51761 2005-10-21  Simon Josefsson  <jas@extundo.com>
51763         * modules/des, modules/des-tests: New files.
51765         * modules/gc-des, modules/gc-des-tests: New files.
51767         * tests/test-des.c, tests/test-gc-des.c: New file.
51769 2005-10-21  Simon Josefsson  <jas@extundo.com>
51771         * modules/arctwo, modules/arctwo-tests: New files.
51773         * tests/test-arctwo.c: New file.
51775         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
51777         * tests/test-gc-arctwo.c: New file.
51779 2005-10-21  Simon Josefsson  <jas@extundo.com>
51781         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
51782         Bruno Haible <bruno@clisp.org>.
51784         * m4/gc-des.m4: New file.
51786 2005-10-21  Simon Josefsson  <jas@extundo.com>
51788         * m4/arctwo.m4: New file.
51790         * m4/gc-arctwo.m4: New file.
51792 2005-10-21  Simon Josefsson  <jas@extundo.com>
51794         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
51795         block.
51797 2005-10-21  Simon Josefsson  <jas@extundo.com>
51799         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
51800         <bruno@clisp.org>.
51802         * lib/hmac-sha1.c (hmac_sha1): Likewise.
51804         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
51805         Bruno Haible <bruno@clisp.org>.
51807         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
51808         <bruno@clisp.org>.
51810 2005-10-21  Simon Josefsson  <jas@extundo.com>
51812         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
51814 2005-10-21  Simon Josefsson  <jas@extundo.com>
51816         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
51818 2005-10-21  Simon Josefsson  <jas@extundo.com>
51820         * lib/des.h, lib/des.c: New files.
51822         * lib/gc-gnulib.c: Support DES.c
51824 2005-10-21  Simon Josefsson  <jas@extundo.com>
51826         * lib/arctwo.h, lib/arctwo.c: New files.
51828         * lib/gc-gnulib.c: Support ARCTWO.
51830 2005-10-21  Simon Josefsson  <jas@extundo.com>
51832         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
51833         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51835 2005-10-21  Simon Josefsson  <jas@extundo.com>
51837         * gnulib-tool (func_import, func_create_testdir): Define automake
51838         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
51839         Makefile.am snippet),
51840         suggested by Bruno Haible <bruno@clisp.org>.
51842         * modules/gc (Makefile.am): Use it.
51844 2005-10-21  Bruno Haible  <bruno@clisp.org>
51846         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
51847         patch.
51849 2005-10-19  Simon Josefsson  <jas@extundo.com>
51851         * tests/test-gc-rijndael.c: New file.
51853         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
51855 2005-10-19  Simon Josefsson  <jas@extundo.com>
51857         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
51858         interface too.
51860 2005-10-19  Simon Josefsson  <jas@extundo.com>
51862         * tests/test-gc-arcfour.c: New file.
51864         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
51866 2005-10-19  Simon Josefsson  <jas@extundo.com>
51868         * modules/gc-md4, modules/gc-md4-tests: New file.
51870         * tests/test-gc-md4.c: New file.
51872 2005-10-19  Simon Josefsson  <jas@extundo.com>
51874         * m4/gc-md4.m4: New file.
51876 2005-10-19  Simon Josefsson  <jas@extundo.com>
51878         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
51879         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
51880         <kasal@ucw.cz>.
51882 2005-10-19  Simon Josefsson  <jas@extundo.com>
51884         * m4/gc-arcfour.m4: New file.
51886         * m4/gc-rijndael.m4: New file.
51888 2005-10-19  Simon Josefsson  <jas@extundo.com>
51890         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
51892 2005-10-19  Simon Josefsson  <jas@extundo.com>
51894         * lib/gc-gnulib.c: Support ARCFOUR.
51896 2005-10-19  Simon Josefsson  <jas@extundo.com>
51898         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
51899         support.
51901         * lib/gc.h: Add ECB enum type.
51903         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
51905 2005-10-18  Simon Josefsson  <jas@extundo.com>
51907         * tests/test-md5.c: New file.
51909         * modules/md5-tests: New file.
51911 2005-10-18  Simon Josefsson  <jas@extundo.com>
51913         * tests/test-md4.c: New file.
51915         * modules/md4, modules/md4-tests: New files.
51917 2005-10-18  Simon Josefsson  <jas@extundo.com>
51919         * m4/md4.m4: New file.
51921 2005-10-18  Simon Josefsson  <jas@extundo.com>
51923         * lib/md4.h, lib/md4.c: New files, based on md5.?.
51925 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
51927         * gnulib-tool (func_create_testdir): Omit the second check whether
51928         BUILT_SOURCES in nonempty.
51930 2005-10-17  Simon Josefsson  <jas@extundo.com>
51932         * tests/test-rijndael.c: New file.
51934 2005-10-17  Simon Josefsson  <jas@extundo.com>
51936         * modules/sha1: Depend on stdint instead of md5.
51938         * modules/md5: Depend on stdint, remove uint32_t.
51940 2005-10-17  Simon Josefsson  <jas@extundo.com>
51942         * modules/gc-sha1-tests: New file.
51944         * tests/test-gc-sha1.c: New file.
51946 2005-10-17  Simon Josefsson  <jas@extundo.com>
51948         * m4/md5.m4: Remove call to uint32_t.m4.
51950 2005-10-17  Simon Josefsson  <jas@extundo.com>
51952         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
51954         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
51955         md5.h.
51957         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
51959         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
51961 2005-10-17  Simon Josefsson  <jas@extundo.com>
51963         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
51965 2005-10-17  Simon Josefsson  <jas@extundo.com>
51967         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
51969 2005-10-17  Simon Josefsson  <jas@extundo.com>
51971         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
51973         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
51975 2005-10-17  Bruno Haible  <bruno@clisp.org>
51977         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
51978         that it can also be used in a test.
51980 2005-10-16  Bruno Haible  <bruno@clisp.org>
51982         * gnulib-tool (func_emit_tests_Makefile_am): Also define
51983         TESTS_ENVIRONMENT, so that individual tests can augment it.
51985         * gnulib-tool (func_create_testdir): Use an intermediate target for
51986         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
51987         macros, like $(ALLOCA_H), which cannot be passed through the command
51988         line.
51990 2005-10-15  Simon Josefsson  <jas@extundo.com>
51992         * modules/rijndael-tests: New file.
51994         * modules/rijndael: New file.
51996 2005-10-15  Simon Josefsson  <jas@extundo.com>
51998         * m4/rijndael.m4: New file.
52000 2005-10-15  Simon Josefsson  <jas@extundo.com>
52002         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52004         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52006 2005-10-14  Simon Josefsson  <jas@extundo.com>
52008         * tests/test-arcfour.c: New file.
52010         * modules/arcfour, modules/arcfour-tests: New files.
52012 2005-10-14  Simon Josefsson  <jas@extundo.com>
52014         * m4/arcfour.m4: New file.
52016 2005-10-14  Simon Josefsson  <jas@extundo.com>
52018         * lib/arcfour.h, lib/arcfour.c: New files.
52020 2005-10-14  Roland McGrath  <roland@redhat.com>
52022         Import from libc.  [BZ #1331]
52023         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52024         macro argument.
52025         Reported by Matej Vela <vela@debian.org>.
52027 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52029         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52030         include <wchar.h>; no longer needed.
52032 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52034         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52036 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52037         and  Ulrich Drepper  <drepper@redhat.com>
52039         Import from libc.
52040         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52041         instead of inline stream orientation test and two separate
52042         function calls.  Pay no attention to USE_IN_LIBIO.
52044 2005-10-13  Simon Josefsson  <jas@extundo.com>
52046         * modules/gc-hmac-md5-tests: New file.
52048         * tests/test-gc-hmac-sha1.c: New file.
52050         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52052         * modules/gc-hmac-md5-tests: New file.
52054         * tests/test-gc-md5.c: New file.
52056         * modules/gc-md5-tests: New file.
52058 2005-10-13  Simon Josefsson  <jas@extundo.com>
52060         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52061         Move memory allocation outside of loop.
52063 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52065         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52066         intermediate directory is in a read-only file system.  Problem
52067         reported by Eric Blake.
52069 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52071         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52073 2005-10-12  Simon Josefsson  <jas@extundo.com>
52075         * tests/test-hmac-sha1.c: New file.
52077         * modules/hmac-sha1-tests: New file.
52079         * modules/hmac-sha1: New file.
52081 2005-10-12  Simon Josefsson  <jas@extundo.com>
52083         * modules/gc-sha1: New file.
52085 2005-10-12  Simon Josefsson  <jas@extundo.com>
52087         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52089         * tests/test-gc-pbkdf2-sha1.c: New file.
52091 2005-10-12  Simon Josefsson  <jas@extundo.com>
52093         * modules/gc-md5, modules/gc-hmac-md5: New files.
52095         * modules/gc (Files): Remove md5, memxor and hmac files.
52097 2005-10-12  Simon Josefsson  <jas@extundo.com>
52099         * m4/gc-pbkdf2-sha1.m4: New file.
52101         * m4/gc-hmac-sha1.m4: New file.
52103         * m4/gc-sha1: New file.
52105         * m4/hmac-sha1.m4: New file.
52107 2005-10-12  Simon Josefsson  <jas@extundo.com>
52109         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52111         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52113 2005-10-12  Simon Josefsson  <jas@extundo.com>
52115         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52116         suggested by Bruno Haible <bruno@clisp.org>.
52118 2005-10-12  Simon Josefsson  <jas@extundo.com>
52120         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52122 2005-10-12  Simon Josefsson  <jas@extundo.com>
52124         * lib/gc-pbkdf2-sha1.c: New file.
52126         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52128 2005-10-12  Simon Josefsson  <jas@extundo.com>
52130         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52132         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52134 2005-10-12  Simon Josefsson  <jas@extundo.com>
52136         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52137         GC_USE_HMAC_MD5, respectively.
52139         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52140         (gc_md5): Fix typo.
52142         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52144         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52146         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52148 2005-10-12  Bruno Haible  <bruno@clisp.org>
52150         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52151         Reported by Stepan Kasal <kasal@ucw.cz>.
52153 2005-10-11  Simon Josefsson  <jas@extundo.com>
52155         * tests/test-crc.c: New file.
52157         * modules/crc, modules/crc-tests: New files.
52159 2005-10-11  Simon Josefsson  <jas@extundo.com>
52161         * m4/crc.m4: New file.
52163 2005-10-11  Simon Josefsson  <jas@extundo.com>
52165         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52167         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52169         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52171 2005-10-11  Simon Josefsson  <jas@extundo.com>
52173         * lib/crc.h, lib/crc.c: New files.
52175         * lib/gc.h (gc_hash_buffer): Add doc.
52177 2005-10-11  Bruno Haible  <bruno@clisp.org>
52179         * modules/c-strcasestr: New file.
52180         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52182 2005-10-11  Bruno Haible  <bruno@clisp.org>
52184         * modules/c-strcase: New file.
52185         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52187 2005-10-11  Bruno Haible  <bruno@clisp.org>
52189         * lib/strcasecmp.c: Include limits.h.
52190         (strcasecmp): Avoid integer overflow on exotic platforms.
52191         * lib/strncasecmp.c: Include limits.h.
52192         (strncasecmp): Avoid integer overflow on exotic platforms.
52193         Reported by Paul Eggert.
52195 2005-10-11  Bruno Haible  <bruno@clisp.org>
52197         * lib/c-strcasestr.h: New file, from GNU gettext.
52198         * lib/c-strcasestr.c: New file, from GNU gettext.
52200 2005-10-11  Bruno Haible  <bruno@clisp.org>
52202         * lib/c-strcase.h: New file, from GNU gettext.
52203         * lib/c-strcasecmp.c: New file, from GNU gettext.
52204         * lib/c-strncasecmp.c: New file, from GNU gettext.
52206 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52208         * modules/mempcpy (License): GPL -> LGPL.
52209         * modules/strchrnul (License): Likewise.
52210         * modules/sysexits (License): Likewise.
52212 2005-10-08  Simon Josefsson  <jas@extundo.com>
52214         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52216 2005-10-07  Simon Josefsson  <jas@extundo.com>
52218         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52220 2005-10-06  Simon Josefsson  <jas@extundo.com>
52222         * tests/test-hmac-md5.c: New file.
52224         * modules/hmac-md5-tests: New file.
52226         * modules/hmac-md5: New file.
52228 2005-10-06  Simon Josefsson  <jas@extundo.com>
52230         * m4/hmac-md5.m4: New file.
52232         * m4/memxor.m4: Require gl_C_RESTRICT.
52234 2005-10-06  Simon Josefsson  <jas@extundo.com>
52236         * lib/memxor.c (memxor): Avoid casts and warnings.
52238 2005-10-06  Simon Josefsson  <jas@extundo.com>
52240         * lib/hmac-md5.c: New file.
52242         * lib/hmac.h: New file.
52244 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52247         promotes to int, not unsigned int, to catch the AIX 5.3
52248         compiler bug.
52250 2005-10-05  Simon Josefsson  <jas@extundo.com>
52252         * modules/memxor: New file.
52254         * modules/iconv (Files): Move config.rpath to havelib, it is used
52255         there.
52257         * modules/havelib (Files): Add config.rpath.
52259 2005-10-05  Simon Josefsson  <jas@extundo.com>
52261         * m4/memxor.m4: New file.
52263 2005-10-05  Simon Josefsson  <jas@extundo.com>
52265         * lib/memxor.c (memxor): Fix compiler error.
52267         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52268         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52270         * lib/memxor.h, lib/memxor.c: New files.
52272         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52273         we assume all systems have it, suggested by Jim Meyering
52274         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52275         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52276         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52277         same reasons.
52279 2005-10-05  Simon Josefsson  <jas@extundo.com>
52281         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52283 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52286         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52287         needed, since the source code now assumes these .h files.
52289 2005-10-05  Derek Price  <derek@ximbiot.com>
52291         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52293 2005-10-05  Bruno Haible  <bruno@clisp.org>
52295         * modules/stdint (License): Change to LGPL.
52297 2005-10-04  Simon Josefsson  <jas@extundo.com>
52299         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52300         D. Baushke" <mdb@gnu.org>.
52302 2005-10-04  Bruno Haible  <bruno@clisp.org>
52304         * lib/verify.h (verify_true): Provide alternative definition for C++.
52306 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
52308         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
52309         (SSIZE_MAX): New macro, if not already defined.
52310         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
52311         than 2 GiB.
52313 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52315         Sync from coreutils.
52316         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
52317         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
52318         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
52319         ULLONG_MAX doesn't work with 2.7.2.1.
52321 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52323         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
52324         From Ben Pfaff.
52326         * modules/exclude (Depends-on): Depend on verify.
52327         * modules/strtoimax (Depends-on): Likewise.
52328         * modules/utimecmp (Depends-on): Likewise.
52330 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52332         * lib/exclude.c: Include verify.h.
52333         (verify): Remove.  All callers changed to use verify.h's version.
52334         * lib/strtoimax.c: Likewise.
52335         * lib/utimecmp.c: Likewis.e
52337         Sync from coreutils.
52338         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
52339         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
52340         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
52341         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
52342         bother returning ENOSYS if settimeofday or stime fails; just let
52343         them return whatever errno they want to return.
52344         * lib/utimens.c: Include unistd.h, for dup2.
52345         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
52346         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
52348 2005-10-02  Jim Meyering  <jim@meyering.net>
52350         Sync from coreutils.
52351         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
52352         from glibc-2.2.5 that fails for read-only files.
52354 2005-10-02  Jim Meyering  <jim@meyering.net>
52356         Sync from coreutils.
52357         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
52358         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
52359         `#if HAVE_CONFIG_H'.
52360         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
52361         Remove AT_FDCWD test.
52362         Do not consume the fd unless successful.
52363         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
52364         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
52365         block, so that we don't even try to compile it if settimeofday is
52366         available.  This works around a compilation failure on OSF1 V5.1,
52367         due to stime requiring a `long int*' while tv_sec is `int'.
52369 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
52371         Sync from coreutils.
52372         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
52373         against `yes', rather than just testing for nonempty.
52375 2005-10-01  Simon Josefsson  <jas@extundo.com>
52377         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
52378         and Darwin.
52380         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
52381         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
52382         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
52383         freeaddrinfo and gai_strerror are declared by the POSIX headers.
52384         Check if struct addrinfo is declared.
52386 2005-10-01  Simon Josefsson  <jas@extundo.com>
52388         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
52389         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
52390         AI_* and EAI_* definitions.  Protect function declarations.
52392 2005-10-01  Jim Meyering  <jim@meyering.net>
52394         Sync from coreutils.
52396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
52397         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
52398         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
52399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52400         in the inet and nsl libraries.  Required on Solaris 5.7.
52402 2005-10-01  Jim Meyering  <jim@meyering.net>
52404         Sync from coreutils.
52405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52406         in the inet and nsl libraries.  Required on Solaris 5.7.
52408 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
52410         * lib/getdelim.c (getdelim): Remove unused variables.
52412 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52414         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
52415         so that the code works even with ancient cpp.  Portability problem
52416         with GCC 2.7.2.1 reported by Thomas M.Ott.
52418 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52420         * modules/regex (Depends-on): Add strcase.
52422         * modules/gethostname (Licence): Change from GPL to LGPL, since
52423         gethostname.c is a trivial implementation of a standard library
52424         function.
52425         * modules/poll (License): Change from GPL to LGPL, since it's
52426         derived from LGPL code.
52428 2005-09-27  Jim Meyering  <jim@meyering.net>
52430         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
52431         HAVE_CONFIG_H.
52433         * lib/intprops.h (signed_type_or_expr__): Define.
52434         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
52435         for unsigned types.
52437 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52439         * lib/verify.h (verify_expr): Remove, replacing with:
52440         (verify_true): New macro that returns true instead of void.
52441         (verify_type__): Remove.
52442         (verify): Use verify_true rather than verify_type__.
52444 2005-09-26  Bruno Haible  <bruno@clisp.org>
52446         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
52447         is necessary.
52448         (lib_SOURCES): Remove mbchar.c.
52449         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
52450         (Files): Add m4/mbrtowc.m4.
52451         * modules/mbiter: Likewise.
52452         * modules/mbuiter: Likewise.
52454 2005-09-26  Bruno Haible  <bruno@clisp.org>
52456         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
52457         compile mbchar.c if they are not both present.
52458         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
52459         * m4/mbiter.m4 (gl_MBITER): Likewise.
52460         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
52461         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
52462         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
52464 2005-09-25  Jim Meyering  <jim@meyering.net>
52466         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
52467         also uses socklen_t.
52469 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
52471         * lib/utimens.c (ENOSYS): Define if not already defined.
52472         (futimens): Support having a null PATH if the file descriptor
52473         is nonnegative.
52475         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
52476         Remove.
52477         (__attribute): Define to empty unless GCC 3.1 or later.
52478         This works around a core dump on OpenBSD 3.4, which has GCC
52479         2.95.3, which dumps core when given __attribute__(()).  It also
52480         simplifies other tests, since we really don't want to bother with
52481         worrying about which ancient version of GCC supported what.
52482         Original problem reported by Yoann Vandoorselaere, with part of
52483         the fix suggested by Derek Price.
52485 2005-09-24  Jim Meyering  <jim@meyering.net>
52487         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
52488         so we can once again use a positive bitfield width of 1 -- now we
52489         don't have to explain why we were using a bitfield width of 2.
52491 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52493         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
52494         and similarly for the other external symbols.  Problem reported
52495         by James Gallager.
52497         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
52498         bug reported by Jim Meyering.
52500         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
52501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
52502         not needed, since socklen is a prerequisite module.
52504 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52506         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
52507         Problem reported by Eric Blake.
52508         (getaddrinfo): Initialize se so that it's not garbage.
52509         Redo internal storage allocation so that it doesn't make unportable
52510         assumptions about alignment.
52511         Fix a memory leak.
52513         * lib/utimens.c (futimens): Use futimesat if available.
52514         Prefer it to futimes since it doesn't have the futimes bug.
52516         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
52517         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
52518         Instead, declare a function that returns a pointer to an array,
52519         and use verify_type__ to declare the size of the array.
52520         Problem and germ of a solution reported by Bruno Haible.
52521         (verify_type__): Use 2, not 1, for bitfield size, to avoid
52522         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
52524 2005-09-23  Jim Meyering  <jim@meyering.net>
52526         Sync from coreutils.
52527         Correct build failure (socklen_t not defined) on at least
52528         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
52529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
52531 2005-09-23  Jim Meyering  <jim@meyering.net>
52533         * modules/getaddrinfo (Depends-on): Add socklen.
52535 2005-09-23  Bruno Haible  <bruno@clisp.org>
52537         * tests/test-verify.c: New file.
52539 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52541         Sync from coreutils.
52543         * modules/argmatch (Depends-on): Add verify.
52544         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
52545         unistd-safer.
52546         * modules/save-cwd (Depends-on): Likewise.
52548         * modules/openat (Files): Add lib/openat-die.c.
52549         (Depends-on): Remove error, exitfail.
52550         Add dirname.
52552         * modules/verify: New file.
52553         * MODULES.html.sh (Diagnostics <assert.h>): New section,
52554         with "verify" module.
52556 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52558         Sync from coreutils.
52560         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
52561         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
52562         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
52563         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
52564         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
52565         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
52566         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
52567         Don't bother checking for string.h, stdlib.h, unistd.h.
52568         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
52569         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
52570         module's job.
52571         * m4/jm-macros.m4 (gl_MACROS): Likewise.
52572         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
52574         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
52575         (gl_GETDATE): Use it.
52577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
52579 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52581         Sync from coreutils.
52583         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
52584         stat-time.h.
52585         * lib/argmatch.h: Include verify.h
52586         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
52587         (ARGMATCH_ASSERT): Remove; unused.
52588         * lib/canonicalize.c: Assume STDC_HEADERS.
52589         * lib/exclude.c: Include "strcase.h".
52590         * lib/regex_internal.h [!defined _LIBC]: Likewise.
52591         * lib/getusershell.c: Include stdio--.h rather than stdio.h
52592         and stdio-safer.h.
52593         (getusershell): Call fopen, not fopen_safer.
52594         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
52595         Do not include unistd-safer.h.
52596         (save_cwd): Don't call fd_safer; no longer needed
52597         now that we include fcntl--.h.
52599         * lib/getdate.y (relative_time): New type.
52600         (RELATIVE_TIME_0): New constant.
52601         (parser_control): Use relative_time instead of doing it ourselves.
52602         (%union): Add new relative_time rel member.
52603         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
52604         Now typeless.
52605         (relunit, relunit_snumber): Now of type rel.
52606         (zone, rel, relunit, get_date): Adjust to above changes.
52608         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
52609         Do not include unistd-safer.h.
52610         (getloadavg): Don't call fd_safer; no longer needed
52611         now that we include fcntl--.h.
52613         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
52614         (make_dir_parents): Treat ENOSYS like EEXIST.
52616         Improve quality of diagnostics on restore_cwd failure.
52617         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
52618         (make_dir_parents): Last arg is now int * (for errno), not bool *.
52619         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
52620         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
52621         each time through the loop.  Do not diagnose restore_cwd failure;
52622         that is the caller's job (and perhaps the caller does not care).
52624         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
52625         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
52626         If the file already exists but is not a directory, don't bother
52627         to try to make its parents.
52628         Close potential file descriptor leak if we can't chdir("/") (!).
52629         Don't always return true if chdir($PWD) fails; return true only
52630         if the requested action was done successfully (except for the
52631         chdir($PWD)).
52632         Don't log final directory unless we actually made it.
52633         Refactor to avoid duplicate code to fix up permissions.
52634         Don't attempt to fix up parent permissions if chdir($PWD) fails.
52636         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
52637         to make it a bit faster and (I hope) clearer.
52638         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
52639         Fix bug in formats like %2N.
52641         * lib/verify.h: New file.
52643 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52645         Sync from coreutils.
52646         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
52648 2005-09-22  Jim Meyering  <jim@meyering.net>
52650         Sync from coreutils.
52652         * m4/lstat.m4 (gl_FUNC_LSTAT):
52653         Use AC_LIBSOURCES to require lstat.c and lstat.h.
52654         Remove obsolete comment.
52655         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
52656         * m4/xstrtod.m4: Likewise.
52658         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
52660 2005-09-22  Jim Meyering  <jim@meyering.net>
52662         Sync from coreutils.
52664         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
52666         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
52667         the .tm_year member, since otherwise gcc-4.0 would now warn about
52668         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
52670         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
52671         order to avoid an unsuppressible warning from gcc on 64-bit systems.
52673         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
52674         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
52675         when run in a time zone for which daylight savings time is in effect
52676         for the starting date.
52678         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
52679         stop us from restricting permissions of just-created absolute-named
52680         directories.
52681         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
52682         to restore initial working directory.
52683         * lib/mkdir-p.c (make_dir_parents): New parameter:
52684         different_working_dir, to tell caller if/when we change the working
52685         directory and are unable to return to the initial one.
52686         * lib/mkdir-p.h (make_dir_parents): Update prototype.
52687         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
52688         `return false'.  This fixes a bug introduced on 2004-07-30.
52690         * lib/openat.c (fdopendir): Be sure to close the supplied
52691         file descriptor before returning.  This makes our replacement
52692         implementation a little closer to Solaris's, where fdopendir
52693         ties the file descriptor to the returned DIR* pointer.
52694         * lib/openat.c (unlinkat): New function.
52695         * lib/openat.h (unlinkat): Add prototype.
52696         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
52697         (openat_restore_fail): Rename from openat_restore_die.
52698         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
52700         Provide an alternative to exiting immediately upon save_cwd or
52701         restore_cwd failure.  Now, an application can arrange e.g.,
52702         to perform a longjump in that case.
52703         * lib/openat.c: Include dirname.h.
52704         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
52705         (rpl_openat, fdopendir, fstatat): Call openat_save_die
52706         and openat_restore_die rather than calling error directly.
52707         Don't include "error.h" or "exitfail.h"; they're no longer needed.
52709         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
52710         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
52711         define.
52713         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
52714         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
52715                             int utc, int nanoseconds);
52716         Background:
52717         date should not have to allocate a megabyte of virtual memory to
52718         handle a format argument like +%1048575T.  When implemented with
52719         strftime, it must allocate such a buffer, use strftime to fill it
52720         in, print it, then free it.
52721         With fprintftime, it simply prints everything and exits.
52722         With no need for memory allocation, that's one fewer way to fail.
52723         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
52724         optional field width, not before, so we accept %9:z, not %:9z.
52725         (my_strftime): Be sure to use L_('x') for literals.
52727         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
52728         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
52729         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
52730         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
52731         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
52732         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
52733         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
52734         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
52735         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
52736         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
52737         * lib/xgethostname.c, lib/xreadlink.c:
52738         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
52740         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
52741         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
52742         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
52743         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52744         and don't include <sys/file.h>).
52746 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
52748         Sync from coreutils.
52750         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
52751         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
52752         [!LDAV_DONE]: Avoid unused variable warning.
52754 2005-09-21  Bruno Haible  <bruno@clisp.org>
52756         * lib/unicodeio.h (unicode_to_mb): New declaration.
52758 2005-09-20  Derek Price  <derek@ximbiot.com>
52760         * lib/getaddrinfo.c: Don't include <netdb.h> included from
52761         getaddrinfo.h.
52763 2005-09-20  Bruno Haible  <bruno@clisp.org>
52765         * gnulib-tool: Remove trailing slashes from the values specified for
52766         --source-base, --m4-base, --tests-base, --aux-dir.
52767         Suggested by Simon Josefsson <jas@extundo.com>.
52769 2005-09-20  Bruno Haible  <bruno@clisp.org>
52771         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
52772         func_modules_to_filelist, func_import, func_create_testdir): Make all
52773         sorting results locale-independent, so that gnulib-cache.m4 doesn't
52774         change when gnulib-tool is invoked in a different locale.
52776 2005-09-19  Simon Josefsson  <jas@extundo.com>
52778         * m4/socklen.m4: Fix typo.
52780 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52782         Use a consistent style for including <config.h>.
52783         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
52784         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
52785         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
52786         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
52787         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
52788         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
52789         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
52790         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
52791         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
52792         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
52793         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
52794         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
52795         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
52796         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
52797         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
52798         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
52799         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
52800         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
52801         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
52802         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
52803         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
52804         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
52805         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
52806         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
52807         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
52808         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
52809         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
52810         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
52811         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
52812         lib/xstrtoumax.c, lib/yesno.c:
52813         Standardize inclusion of config.h.
52814         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
52815         lib/inttostr.h:  Removed inclusion of config.h from header files.
52816         * lib/inttostr.c:  Adjusted in-tree users.
52817         * lib/timespec.h: Remove superfluous warning to include config.h.
52818         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
52819         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
52820         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
52821         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
52822         config.h with HAVE_CONFIG_H.
52824 2005-09-19  Jim Meyering  <jim@meyering.net>
52826         * modules/pathmax (License): Change to LGPL.
52828 2005-09-19  Derek Price  <derek@ximbiot.com>
52830         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
52832 2005-09-19  Bruno Haible  <bruno@clisp.org>
52834         * gnulib-tool (import): Provide default for --tests-base.
52836 2005-09-19  Bruno Haible  <bruno@clisp.org>
52838         * doc/quote.texi: New file, extracted from gnulib.texi.
52839         * doc/ctime.texi: New file, extracted from gnulib.texi.
52840         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
52841         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
52842         * doc/gnulib.texi: Include them.
52844 2005-09-18  Bruno Haible  <bruno@clisp.org>
52846         Portability fix.
52847         * gnulib-tool (func_readlink): New function.
52848         (func_ln_if_changed): Use it.
52850 2005-09-18  Bruno Haible  <bruno@clisp.org>
52852         * gnulib-tool: Support --with-tests also with --import.
52853         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
52854         (func_import): Use variables $testsbase and $inctests. Emit a
52855         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
52856         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
52857         SUBDIRS += $testsdir.
52858         (func_create_testdir): Update.
52860 2005-09-18  Bruno Haible  <bruno@clisp.org>
52862         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
52863         instead of $dry_run.
52864         (func_cp_if_changed, func_mv_if_changed): Remove functions.
52865         (func_ln_if_changed): Don't handle dry-run here.
52866         (func_import): In dry-run mode, detect more precisely which actions
52867         would be performed, and don't use "...ing" verbs.
52869 2005-09-18  Bruno Haible  <bruno@clisp.org>
52871         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
52872         (func_import): Use join on two temporary files instead of three nested
52873         loops, in order to determine which files are new or old.
52875 2005-09-18  Bruno Haible  <bruno@clisp.org>
52877         * gnulib-tool (func_import): Comment out code that spits out the
52878         new files with --dry-run.
52880 2005-09-18  Bruno Haible  <bruno@clisp.org>
52882         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
52884 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
52886         * lib/stat-time.h: New file.
52887         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
52888         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
52889         in a different way.
52890         (timespec_cmp): New function.
52891         * lib/utimecmp.c: Include stat-time.h.
52892         (SYSCALL_RESOLUTION): Depend on whether various struct stat
52893         members exist, not on the obsolescent ST_MTIM_NSEC.
52894         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
52896 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
52898         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
52900 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
52902         * MODULES.html.sh (File system functions): Add stat-time.
52903         * modules/stat-time: New file.
52904         * modules/timespec (Files): Remove m4/st_mtim.m4; this
52905         is now done in a different way, by the stat-time module.
52906         * modules/utimecmp (Depends-on): Add stat-time.
52908 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52910         * m4/st_mtim.m4: Remove.  Superseded by...
52911         * m4/stat-time.m4: New file.
52912         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
52913         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
52915 2005-09-15  Derek Price  <derek@ximbiot.com>
52917         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
52919 2005-09-15  Derek Price  <derek@ximbiot.com>
52921         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
52922         * lib/regex_internal.c: Ditto, using this...
52923         (__GNUC_PREREQ): ...new macro.
52924         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
52925         using...
52926         (__GNUC_PREREQ): ...this new macro.
52928         * lib/strstr.h: Include string.h. Define strstr as a macro here.
52930 2005-09-15  Derek Price  <derek@ximbiot.com>
52931             Paul Eggert  <eggert@cs.ucla.edu>
52933         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
52934         changes, consolidating in...
52935         * lib/regex_internal.h: ...this file.
52937 2005-09-13  Jim Meyering  <jim@meyering.net>
52939         * lib/canon-host.c: Filter through gnu indent and reword comments
52940         slightly.
52941         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
52943 2005-09-13  Derek Price  <derek@ximbiot.com>
52945         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
52946         failure.
52947         Reported by Jim Meyering  <jim@meyering.net>.
52949 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52951         * lib/base64.c: Typo.
52952         (base64_encode): Put b64str in initialized data section.
52954 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
52956         Merge glibc and coreutils changes into gnulib, plus a few
52957         extra fixes.
52958         * lib/md5.c: Use #error rather than a string.
52959         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
52960         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
52961         (__attribute__): Define to empty for non recent-GCC.
52962         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
52963         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
52964         Renamed from their non-__ counterparts, with new macros replacing
52965         them if not _LIBC.  Add __THROW attribute.
52966         (rol): Remove.
52967         (struct md5_ctx): Align buffer if using GCC.
52968         * lib/sha1.h (struct sha1_ctx): Likewise.
52969         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
52970         The old name was backwards.
52971         (NOTSWAP): Remove; not used.
52972         (rol): New macro, moved here from md5.h.
52973         (sha1_process_block): Remove a FIXME that doesn't make sense.
52975 2005-09-12  Derek Price  <derek@ximbiot.com>
52977         Return usable errors from canon-host.
52978         * lib/canon-host.h: New file.
52979         * lib/canon-host.c (canon_host): Wrap...
52980         (canon_host_r): ...this new function, which now relies exclusively on
52981         getaddrinfo.
52982         (ch_strerror): New function.
52983         (last_cherror): New global.
52984         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
52985         interface.
52986         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
52987         void *.
52988         (freeaddrinfo): Free ai->ai_canonname when set.
52990 2005-09-12  Derek Price  <derek@ximbiot.com>
52992         Make canon-host require getaddrinfo.
52993         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
52994         AC_LIBSOURCE canon-host.h.  Call...
52995         (gl_PREREQ_CANON_HOST): ...this new function, which requires
52996         gl_GETADDRINFO.
52997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
52999 2005-09-12  Derek Price  <derek@ximbiot.com>
53001         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53002         LGPL.
53003         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53005 2005-09-12  Derek Price  <derek@ximbiot.com>
53007         * lib/gai_strerror.c: Include config.h when available.  Include
53008         getaddrinfo.h before other headers to test interface.
53009         Reported by Larry Jones <lawrence.jones@ugs.com>.
53011 2005-09-12  Derek Price  <derek@ximbiot.com>
53012             Paul Eggert  <eggert@cs.ucla.edu>
53014         * modules/glob (Files): Add glob-libc.h.
53016 2005-09-12  Derek Price  <derek@ximbiot.com>
53017             Paul Eggert  <eggert@cs.ucla.edu>
53019         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53020         glob_.h, glob-libc.h.
53021         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53023 2005-09-12  Derek Price  <derek@ximbiot.com>
53024             Paul Eggert  <eggert@cs.ucla.edu>
53026         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53027         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53028         protecting things that should be done only in gnulib contexts.
53029         * lib/glob_.h: New file, containing only the glob things needed for
53030         gnulib.
53031         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53032         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53033         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53034         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53035         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53036         and to respect the namespace rules better.
53038 2005-09-08  Simon Josefsson  <jas@extundo.com>
53040         * modules/socklen: New file.
53042 2005-09-08  Simon Josefsson  <jas@extundo.com>
53044         * m4/socklen.m4: New file.
53046 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53048         * modules/utimens (Files): Add m4/utimbuf.m4, since
53049         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53050         Reported by Sergey Poznyakoff.
53052 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53054         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53055         definitions, since that's the preferred style in glibc.
53056         Fix a minor spacing issue, and update copyright notice to match
53057         glibc's.
53059 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53061         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53063 2005-09-06  Simon Josefsson  <jas@extundo.com>
53065         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53066         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53068 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53070         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53071         warning.
53073 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53075         * config/srclist.txt: Add glibc bug 1302.
53077 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53079         Change bitset word type from unsigned int to unsigned long int,
53080         as this has better performance on typical 64-bit hosts.
53081         Port bitset code to hosts with unusual word sizes.
53082         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53083         (build_collating_symbol):
53084         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53085         argument is a bitset.  This is merely a style issue, but it makes
53086         it clearer that an entire array is expected.
53087         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53088         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53089         Port to the case where bitset_word is not the same as unsigned int.
53090         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53091         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53092         Likewise.
53093         * lib/regexec.c (check_dst_limits_calc_pos_1,
53094         check_subexp_matching_top):
53095         (build_trtable, group_nodes_into_DFAstates):
53096         Likewise.
53097         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53098         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53099         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53100         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53101         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53102         * lib/regcomp.c (optimize_subexps, lower_subexp):
53103         Work even if bitset_word has holes in its bitwise representation.
53104         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53105         * lib/regexec.c (check_dst_limits_calc_pos_1,
53106         check_subexp_matching_top):
53107         Likewise.
53108         * lib/regex_internal.c (re_string_reconstruct):
53109         Don't assume UCHAR_MAX == 255.
53110         * lib/regex_internal.h (bitset_set_all): Likewise.
53111         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53112         All uses changed.
53113         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53114         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53115         All uses changed.
53116         (BITSET_WORD_MAX): New macro.
53117         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53118         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53119         (bitset_empty, bitset_copy):
53120         Prefer sizeof (bitset) to multiplying it out ourselves.
53121         (bitset_not_merge): Remove; unused.
53122         (bitset_contain): Return bool, not unsigned int with one bit on.
53123         All callers changed.
53124         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53125         alignment than re_node_set; do this by defining a new internal
53126         type struct dests_alloc and using it to allocate memory.
53128 2005-09-05  Bruno Haible  <bruno@clisp.org>
53130         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53131         links.
53133 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53135         * modules/size_max (Makefile.am): Add size_max.h
53137 2005-09-04  Derek Price  <derek@ximbiot.com>
53139         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53141 2005-09-03  Simon Josefsson  <jas@extundo.com>
53143         * gnulib-tool: Fix typo.
53145 2005-09-03  Simon Josefsson  <jas@extundo.com>
53147         * config/srclist.txt: Add glibc bug 1293.
53149 2005-09-03  Derek Price  <derek@ximbiot.com>
53151         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53152         From Larry Jones <lawrence.jones@ugs.com>.
53154 2005-09-02  Simon Josefsson  <jas@extundo.com>
53156         * modules/socklen: New file.
53158 2005-09-02  Simon Josefsson  <jas@extundo.com>
53160         * modules/havelib: New module.
53162         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53163         Use havelib.
53165 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53167         Check for arithmetic overflow when calculating sizes, to prevent
53168         some buffer-overflow issues.  These patches are conservative, in the
53169         sense that when I couldn't determine whether an overflow was possible,
53170         I inserted a run-time check.
53171         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53172         macros.
53173         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53174         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53175         (re_xnrealloc, re_x2nrealloc): New inline functions.
53176         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53177         parse_bracket_exp):
53178         (build_equiv_class, build_charclass): Check for arithmetic overflow
53179         in size expression calculations.
53180         * lib/regex_internal.c (re_string_realloc_buffers):
53181         (build_wcs_upper_buffer, re_node_set_add_intersect):
53182         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53183         (re_dfa_add_node, register_state): Likewise.
53184         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53185         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53186         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53187         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53189 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53191         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53192         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53194 2005-09-02  Bruno Haible  <bruno@clisp.org>
53196         Support for lib vs. lib64 distinction on biarch platforms.
53197         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53198         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53199         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53201 2005-09-02  Bruno Haible  <bruno@clisp.org>
53203         * gnulib-tool (import): In the other first-use case, provide defaults
53204         as well.
53206 2005-09-02  Bruno Haible  <bruno@clisp.org>
53208         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53209         patches not yet found in the latest gettext release.
53211 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53213         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53214         to avoid a collision with bits/local_lim.h in glibc.
53215         All uses changed.  Problem reported by Dmitry V. Levin in
53216         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53218         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53219         bugs in int versus size_t comparisons.
53220         (re_string_context_at): Fix bug where the code assumed that
53221         Idx is signed.
53223         Use bool where appropriate.
53224         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53225         All callers changed.
53226         (calc_eclosure_iter): Likewise, for ROOT arg.
53227         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53228         (build_charclass_op): Likewise, for NON_MATCH arg.
53229         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53230         (re_string_construct_common): Likewise, for ICASE arg.
53231         * lib/regexec.c (re_search_2_stub, re_search_stub):
53232         Likewise, for RET_LEN arg.
53233         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53234         (set_regs): Likewise, for FL_BACKTRACK arg.
53235         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53236         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53237         (calc_eclosure_iter, parse_bracket_exp):
53238         Use bool for internal variables that are booleans.
53239         * lib/regexec.c (re_search_internal, check_matching,
53240         proceed_next_node):
53241         (set_regs, build_sifted_states, sift_states_bkref):
53242         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53243         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53244         (find_collation_sequence_value):
53245         Likewise.
53246         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53247         (re_node_set_compare):
53248         Return bool, not int. All callers changed.
53249         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53250         (build_trtable, check_node_accept): Likewise.
53251         * lib/regex_internal.h: Include stdbool.h.
53253         Fix bugs uncovered when converting to bool.
53254         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53255         failure instead of charging ahead blindly.
53256         * lib/regex_internal.c (register_state): Likewise.
53257         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53258         for freeing internal storage.
53259         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53260         bitset pieces used as boolean, to avoid undefined behavior
53261         on hosts that do int overflow checking.
53263 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53265         * config/srclist.txt: Add glibc bugs 1285-1287.
53267 2005-09-01  Jim Meyering  <jim@meyering.net>
53269         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53270         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53271         Require gl_STAT_MACROS, too.
53273 2005-09-01  Bruno Haible  <bruno@clisp.org>
53275         * gnulib-tool (import): In the first-use case, provide defaults.
53277 2005-09-01  Bruno Haible  <bruno@clisp.org>
53279         * gnulib-tool (func_import): Remove the .tmp files.
53281 2005-09-01  Bruno Haible  <bruno@clisp.org>
53283         * gnulib-tool (func_import): Fix handling of symbolic links.
53285 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53287         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53288         old glibc regex code mishandles strings longer than 2**31 bytes.
53289         This patch fixes this when the regex code is used in gnulib
53290         (i.e., outside glibc).
53292         This patch should not affect the use of the regex code inside
53293         glibc.  No doubt this problem also needs to be handled for glibc
53294         as well, but the result will be an incompatible change to the
53295         glibc ABI, and the old ABI will have to be supported too.  That
53296         can be the the subject for another patch.
53298         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53299         governing whether the rest of this patch is active.  By default,
53300         the macro is disabled and the patch has no effect.
53301         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53302         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53303         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53304         (re_match_2, re_set_registers): Use the new types.
53305         * lib/regex_internal.h (Idx, re_hashval_t): New types.
53306         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
53307         New macros.
53308         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
53309         (re_string_context_at, bin_tree_t, re_dfastate_t):
53310         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
53311         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
53312         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
53313         (re_string_char_size_at, re_string_wchar_at):
53314         (re_string_elem_size_at):
53315         Use the new types and macros to port to 64-bit hosts.
53316         Use unsigned types for internal values, so that the code
53317         mostly works even for arrays larger than SSIZE_MAX.
53318         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
53319         (search_duplicated_node, calc_eclosure_iter, fetch_number):
53320         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
53321         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
53322         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
53323         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
53324         (calc_inveclosure, parse_dup_op, build_range_exp):
53325         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
53326         (fetch_number, create_token_tree, mark_opt_subexp):
53327         Likewise.
53328         * lib/regex_internal.c (re_string_construct_common,
53329         create_ci_newstate):
53330         (create_cd_newstate, re_string_allocate, re_string_construct):
53331         (re_string_realloc_buffers, build_wcs_upper_buffer):
53332         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53333         (re_string_reconstruct, re_string_peek_byte_case):
53334         (re_string_fetch_byte_case, re_string_context_at):
53335         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53336         (re_node_set_init_copy, re_node_set_add_intersect):
53337         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53338         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53339         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53340         (re_acquire_state, re_acquire_state_context, register_state):
53341         Likewise.
53342         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
53343         search_cur_bkref_entry):
53344         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
53345         (re_search_internal, re_search_2_stub, re_search_stub)
53346         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
53347         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
53348         (update_cur_sifted_state, check_dst_limits):
53349         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53350         (check_subexp_limits, sift_states_bkref, merge_state_array):
53351         (check_subexp_matching_top, get_subexp, get_subexp_sub):
53352         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
53353         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53354         (expand_bkref_cache, check_node_accept_bytes):
53355         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
53356         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
53357         (acquire_init_state_context, check_halt_node_context):
53358         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
53359         (sift_states_backward, clean_state_log_if_needed):
53360         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
53361         (find_recover_state, transit_state_sb, transit_state_mb):
53362         (transit_state_bkref, build_trtable, match_ctx_clean):
53363         Likewise.
53364         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
53365         to work around an assumption that REG_MISSING is negative.
53367         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
53368         (seek_collating_symbol_entry) [defined _LIBC]:
53369         (lookup_collation_sequence_value) [defined _LIBC]:
53370         (build_range_exp, build_collating_symbol) [defined _LIBC]:
53371         Use prototypes rather than old-style function definitions.
53372         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
53373         (transit_state_sb) [0]:
53374         (find_collation_sequence_value) [defined _LIBC]: Likewise.
53376         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
53377         rm_eo.
53379         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
53380         (optimize_subexps, lower_subexp):
53381         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
53382         since the signed shift might overflow.  Use 1u<<31 instead.
53383         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53384         Likewise.
53385         * lib/regexec.c (check_dst_limits_calc_pos_1,
53386         check_subexp_matching_top): Likewise.
53388         * lib/regcomp.c (optimize_subexps, lower_subexp):
53389         Use CHAR_BIT rather than 8, for clarity.
53390         * lib/regexec.c (check_dst_limits_calc_pos_1):
53391         (check_subexp_matching_top): Likewise.
53392         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
53393         have to worry about portability issues when shifting it left.
53394         Remove no-longer-needed test for table_size > 0.
53395         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
53396         in a word, as the resulting behavior is undefined.
53397         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
53398         in one case, a <= should have been an <, and in another case the
53399         whole test was missing.
53400         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
53401         the standard name CHAR_BIT.
53402         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
53403         this is not true on one's complement and signed-magnitude hosts.
53405         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
53406         next_last_offset.
53407         (struct re_dfa_t): Remove unused member states_alloc.
53408         * lib/regcomp.c (init_dfa): Don't initialize unused members.
53410 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53412         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
53413         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
53414         and large-file glibc and in 32-bit large-file Solaris.
53416 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53418         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
53419         lengths fit in regoff_t; this isn't true if regoff_t is the same
53420         width as size_t.
53421         * lib/regex.c (re_search_internal): 5th arg is LAST_START
53422         (= START + RANGE) instead of RANGE.  This avoids overflow
53423         problems when regoff_t is the same width as size_t.
53424         All callers changed.
53425         (re_search_2_stub): Check for overflow when adding the
53426         sizes of the two strings.
53427         (re_search_stub): Check for overflow when adding START
53428         to RANGE; if it occurs, substitute the extreme value.
53430 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53432         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
53434 2005-08-31  Jim Meyering  <jim@meyering.net>
53436         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
53437         a pointer-to-const.
53438         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
53439         (register_state): Likewise.
53440         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
53441         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53442         (group_nodes_into_DFAstates): Likewise.
53444 2005-08-31  Jim Meyering  <jim@meyering.net>
53446         * check-module: Add a FIXME comment.
53448 2005-08-31  Eric Blake  <ebb9@byu.net>
53450         * modules/unistd-safer (Files): Add unistd--.h.
53451         * modules/stdio-safer (Files): Add stdio--.h.
53453 2005-08-31  Derek Price  <derek@ximbiot.com>
53455         * lib/getdelim.c (getdelim): Return EOF on EOF.
53456         Reported by Larry Jones <lawrence.jones@ugs.com>.
53458 2005-08-31  Bruno Haible  <bruno@clisp.org>
53460         Avoid unnecessary diffs in the generated lib/Makefile.am.
53461         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
53462         the generated files.
53463         (func_import): Don't set cmd.
53465 2005-08-31  Bruno Haible  <bruno@clisp.org>
53467         * lib/strstr.c: Include <stddef.h>, for NULL.
53468         * lib/strcasestr.c: Likewise.
53469         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53471 2005-08-31  Bruno Haible  <bruno@clisp.org>
53473         * gnulib-tool: New option --macro-prefix.
53474         (func_import): Use macro_prefix.
53475         (import): Handle option --macro-prefix.
53477 2005-08-31  Bruno Haible  <bruno@clisp.org>
53479         * gnulib-tool (import): Rename most ac_* variables to cached_*.
53480         Also use new variables cached_lgpl, cached_libtool.
53482 2005-08-31  Bruno Haible  <bruno@clisp.org>
53484         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
53485         always instantiating them.
53487 2005-08-31  Bruno Haible  <bruno@clisp.org>
53489         * gnulib-tool (func_import): Read the previous cached settings
53490         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
53491         earlier added by gnulib but are now dropped. Warn when a gnulib file
53492         overwrites a non-gnulib file.
53494 2005-08-31  Bruno Haible  <bruno@clisp.org>
53496         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
53497         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
53498         projects that don't keep autogenerated files in CVS. Put into
53499         actioncmd only the specified modules, not the transitive closure.
53501 2005-08-31  Bruno Haible  <bruno@clisp.org>
53503         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
53504         Create directories that shall be filled.
53505         (import): Don't look for gl_* macros in configure.ac. Recurse across
53506         all directories containing a gnulib-cache.m4 files, if meaningful.
53508 2005-08-31  Bruno Haible  <bruno@clisp.org>
53510         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
53511         (import): Set seen_libtool when we see gl_LIBTOOL.
53513 2005-08-31  Bruno Haible  <bruno@clisp.org>
53515         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
53516         declaration macro definitions from generated gnulib.m4.
53518 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
53520         * lib/iconvme.h: Add prototype for iconv_alloc.
53522 2005-08-29  Simon Josefsson  <jas@extundo.com>
53524         * lib/iconvme.c: Fix errno.
53526 2005-08-29  Bruno Haible  <bruno@clisp.org>
53528         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
53529         that it works when the directory contains spaces.
53531 2005-08-29  Bruno Haible  <bruno@clisp.org>
53533         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
53535 2005-08-29  Bruno Haible  <bruno@clisp.org>
53537         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
53538         Emit more advice.
53540 2005-08-29  Bruno Haible  <bruno@clisp.org>
53541         and Stepan Kasal  <kasal@ucw.cz>
53543         * check-module: If more parameters are given, check each of them
53544         separately; add more exceptions, as noted by Jim Meyering.
53545         (check_module): New procedure.
53546         (%exempt_header): Now contains all exceptions.
53548 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
53550         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
53552 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53554         * lib/iconvme.c: Split iconv_string into iconv_alloc.
53556 2005-08-28  Bruno Haible  <bruno@clisp.org>
53558         * m4/gnulib-tool.m4: New file.
53560 2005-08-27  Jim Meyering  <jim@meyering.net>
53562         * modules/unistd-safer (Files): Add pipe-safer.c.
53563         * modules/fcntl-safer (Files): Add creat-safer.c.
53565 2005-08-27  Jim Meyering  <jim@meyering.net>
53567         * m4/stdlib-safer.m4: New file.  From coreutils.
53568         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
53569         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
53570         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
53571         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
53572         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
53574 2005-08-27  Jim Meyering  <jim@meyering.net>
53576         * lib/fopen-safer.c: Merge minor changes from coreutils.
53577         * lib/dup-safer.c: Likewise.
53578         * lib/fd-safer.c: Likewise.
53580         Merge from coreutils.
53581         * lib/stdio--.h: New file.
53582         * lib/stdlib--.h: New file.
53583         * lib/mkstemp-safer.c: New file.
53585         GNU tar needs these.
53586         * lib/pipe-safer.c: New file.
53587         * lib/creat-safer.c: New file.
53588         * lib/fcntl--.h (creat): Define to creat_safer.
53589         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
53590         * lib/unistd--.h (pipe): Define to pipe_safer.
53591         * lib/unistd-safer.h: Declare pipe_safer.
53593 2005-08-26  Simon Josefsson  <jas@extundo.com>
53595         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
53596         Haible <bruno@clisp.org>.
53598 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
53600         * lib/regex_internal.h: Remove all references to
53601         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
53602         or better.
53603         (bitset_not, bitset_merge, bitset_not_merge):
53604         (bitset_mask, re_string_allocate, re_string_construct):
53605         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
53606         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
53607         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
53608         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
53609         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53610         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53611         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
53612         (re_acquire_state_context):
53613         Remove unnecessary forward decls.
53614         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
53615         Put __attribute at function definition,
53616         now that the function decl has been removed.
53617         * lib/regex_internal.c (re_string_peek_byte_case):
53618         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
53619         Likewise.
53621 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
53623         * m4/regex.m4: Add AC_PREREQ(2.50).
53624         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
53626 2005-08-25  Simon Josefsson  <jas@extundo.com>
53628         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
53629         __fsetlocking.
53631 2005-08-25  Simon Josefsson  <jas@extundo.com>
53633         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
53634         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
53635         GLIBC specific code.
53637 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53639         Make regex safe for g++.  This fixes one real bug (an "err"
53640         that should have been "*err").  g++ problem reported by
53641         Sam Steingold.
53642         * lib/regex_internal.h (re_calloc): New macro, consistent with
53643         re_malloc etc.  All callers of calloc changed to use re_calloc.
53644         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
53645         not int.  All callers changed.
53646         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
53647         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
53648         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
53649         (find_recover_state): Change "err" to "*err"; this fixes what
53650         appears to be a real bug.
53651         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
53652         versus int.
53654 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53656         * modules/regex (Depends-on): Add malloc, since the code
53657         assumes that !malloc(0) means failure.
53659 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53661         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
53663         alloca modernization/simplification for regex.
53664         * lib/regex.c: Remove portability cruft for alloca.  This no longer
53665         needs to be at the start of the file, and can be moved into
53666         regex_internal.h and simplified.
53667         * lib/regex_internal.h: Include <alloca.h>.
53668         (__libc_use_alloca) [!defined _LIBC]: New macro.
53669         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
53670         now works outside glibc.
53672 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53674         * config/srclist.txt: Add glibc bugs 1241, 1245.
53676 2005-08-25  Jim Meyering  <jim@meyering.net>
53678         * lib/open-safer.c: Include <config.h>.
53679         Otherwise, we'd lose LARGEFILE support in any file using
53680         e.g. "fcntl--.h"
53682 2005-08-25  Bruno Haible  <bruno@clisp.org>
53684         * m4/minmax.m4: Require autoconf 2.52.
53685         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
53686         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
53687         alternatives of translit over the alphabet.
53688         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
53690 2005-08-24  Simon Josefsson  <jas@extundo.com>
53692         * tests/test-getpass.c: New file.
53694 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53696         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
53697         for GNU regex features.
53699 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53701         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
53702         * lib/regex.h (regerror): Likewise.
53704         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
53705         requires this.  (The code never needed it.)
53707         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
53708         All uses of recently-renamed identifiers changed to use the new,
53709         POSIX-compliant names.  The code will build and run just fine
53710         without these changes, but it's better to eat our own dog food
53711         and use the standard-conforming names.
53713         * lib/regex.h: Fix a multitude of POSIX name space violations.
53714         These changes have an effect only for programs that define
53715         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
53716         do not change anything for programs compiled in the normal way.
53717         Also, there is no effect on the ABI.
53719         (_REGEX_SOURCE): New macro.
53720         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
53721         defined and _GNU_SOURCE is not; this fixes a name space violation.
53723         Rename the following macros to obey POSIX requirements.
53724         The old names are still visible as macros if _REGEX_SOURCE is defined.
53725         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
53726         RE_BACKSLASH_ESCAPE_IN_LISTS.
53727         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
53728         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
53729         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
53730         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
53731         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
53732         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
53733         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
53734         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
53735         (REG_INTERVALS): renamed from RE_INTERVALS.
53736         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
53737         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
53738         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
53739         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
53740         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
53741         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
53742         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
53743         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
53744         RE_UNMATCHED_RIGHT_PAREN_ORD.
53745         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
53746         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
53747         (REG_DEBUG): renamed from RE_DEBUG.
53748         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
53749         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
53750         unusual, since we can't clash with the POSIX REG_ICASE.
53751         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
53752         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
53753         (REG_NO_SUB): renamed from RE_NO_SUB.
53754         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
53755         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
53756         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
53757         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
53758         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
53759         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
53760         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
53761         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
53762         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
53763         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
53764         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
53765         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
53766         RE_SYNTAX_POSIX_MINIMAL_BASIC.
53767         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
53768         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
53769         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
53770         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
53771         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
53772         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
53773         (REG_FIXED): Renamed from REGS_FIXED.
53774         (REG_NREGS): Renamed from RE_NREGS.
53776         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
53777         of other REG_* macros, since POSIX says the user is allowed to
53778         #undef these macros selectively.
53780         (reg_errcode_t): Update comment stating what other tables need
53781         to be consistent.
53783         Rename the following enum values to obey POSIX requirements.
53784         The old names are still visible as macros.
53785         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
53786         is not defined, since GNU is supposed to be a superset of POSIX as
53787         much as possible, and since we want reg_errcode_t to be a signed
53788         type for implementation consistency.
53789         (_REG_NOERROR): Renamed from REG_NOERROR.
53790         (_REG_NOMATCH): Renamed from REG_NOMATCH.
53791         (_REG_BADPAT): Renamed from REG_BADPAT.
53792         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
53793         (_REG_ECTYPE): Renamed from REG_ECTYPE.
53794         (_REG_EESCAPE): Renamed from REG_EESCAPE.
53795         (_REG_ESUBREG): Renamed from REG_ESUBREG.
53796         (_REG_EBRACK): Renamed from REG_EBRACK.
53797         (_REG_EPAREN): Renamed from REG_EPAREN.
53798         (_REG_EBRACE): Renamed from REG_EBRACE.
53799         (_REG_BADBR): Renamed from REG_BADBR.
53800         (_REG_ERANGE): Renamed from REG_ERANGE.
53801         (_REG_ESPACE): Renamed from REG_ESPACE.
53802         (_REG_BADRPT): Renamed from REG_BADRPT.
53803         (_REG_EEND): Renamed from REG_EEND.
53804         (_REG_ESIZE): Renamed from REG_ESIZE.
53805         (_REG_ERPAREN): Renamed from REG_ERPAREN.
53806         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
53807         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
53808         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
53809         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
53811         (_REG_RE_NAME, _REG_RM_NAME): New macros.
53812         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
53813         changed.  But support the old name if the new one is not defined
53814         and if _REGEX_SOURCE.
53816         Change the following member names in struct re_pattern_buffer.
53817         The old names are still supported if !_REGEX_SOURCE.
53818         The new names are always supported, regardless of _REGEX_SOURCE.
53819         (re_buffer): Renamed from buffer.
53820         (re_allocated): Renamed from allocated.
53821         (re_used): Renamed from used.
53822         (re_syntax): Renamed from syntax.
53823         (re_fastmap): Renamed from fastmap.
53824         (re_translate): Renamed from translate.
53825         (re_can_be_null): Renamed from can_be_null.
53826         (re_regs_allocated): Renamed from regs_allocated.
53827         (re_fastmap_accurate): Renamed from fastmap_accurate.
53828         (re_no_sub): Renamed from no_sub.
53829         (re_not_bol): Renamed from not_bol.
53830         (re_not_eol): Renamed from not_eol.
53831         (re_newline_anchor): Renamed from newline_anchor.
53833         Change the following member names in struct re_registers.
53834         The old names are still supported if !_REGEX_SOURCE.
53835         The new names are always supported, regardless of _REGEX_SOURCE.
53836         (rm_num_regs): Renamed from num_regs.
53837         (rm_start): Renamed from start.
53838         (rm_end): Renamed from end.
53840         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
53841         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
53842         Prepend __ to parameter names.
53844         Undo yesterday's changes.
53846 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53848         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
53849         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
53850         lib/regex.c.
53852 2005-08-24  Jim Meyering  <jim@meyering.net>
53854         Sync from coreutils.
53855         * m4/fcntl-safer.m4: New file.
53857         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
53858         and object files for this module.
53860 2005-08-24  Jim Meyering  <jim@meyering.net>
53862         Sync from coreutils.
53863         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
53865 2005-08-24  Jim Meyering  <jim@meyering.net>
53867         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
53868         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
53870 2005-08-24  Jim Meyering  <jim@meyering.net>
53872         * modules/fcntl-safer: New module.
53873         * modules/fts (Depends-on): Add fcntl-safer.
53874         * MODULES.html.sh (File descriptor based Input/Output):
53875         Add fcntl-safer.
53877 2005-08-24  Bruno Haible  <bruno@clisp.org>
53879         Support for unit test modules.
53880         * modules/README: Mention tests modules.
53881         * modules/TEMPLATE-TESTS: New file.
53882         * gnulib-tool: New options --extract-tests-module, --with-tests and
53883         --tests-base (unused for the moment).
53884         (testsbase, inctests): New variables.
53885         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
53886         (func_verify_module): Exclude TEMPLATE-TESTS.
53887         (func_verify_nontests_module, func_verify_tests_module): New functions.
53888         (func_get_dependencies): Add implicit dependency for tests modules.
53889         (func_get_tests_module): New function.
53890         (func_modules_transitive_closure): When --with-tests was specified,
53891         include the unit tests as well, unless explicitly avoided.
53892         (func_emit_lib_Makefile_am): Ignore the tests modules here.
53893         (func_emit_tests_Makefile_am): New function.
53894         (func_create_testdir): When --with-tests was specified, emit a
53895         tests/ directory.
53896         * MODULES.html.sh (Future developments): Update.
53898 2005-08-24  Bruno Haible  <bruno@clisp.org>
53900         * modules/tls-tests: New file.
53901         * tests/test-tls.c: New file, from GNU gettext.
53903 2005-08-24  Bruno Haible  <bruno@clisp.org>
53905         * modules/lock-tests: New file.
53906         * tests/test-lock.c: New file, from GNU gettext.
53908 2005-08-24  Bruno Haible  <bruno@clisp.org>
53910         * lib/lock.h: Add multiple inclusion guard.
53911         * lib/tls.h: Add multiple inclusion guard.
53913 2005-08-24  Bruno Haible  <bruno@clisp.org>
53915         * gnulib-tool: Add support for the --aux-dir option to
53916         --create-testdir, --create-megatestdir, --test, --megatest.
53917         (func_create_testdir, func_create_megatestdir): Optionally emit a
53918         AC_CONFIG_AUX_DIR directive.
53919         (create-testdir, create-megatestdir, test, megatest): Provide a
53920         default value for $auxdir.
53922 2005-08-24  Bruno Haible  <bruno@clisp.org>
53924         * gnulib-tool (import): Use compound statement instead of subshell
53925         where possible.
53927 2005-08-24  Bruno Haible  <bruno@clisp.org>
53929         * gnulib-tool (import): Change --aux-dir default to "build-aux".
53931 2005-08-24  Bruno Haible  <bruno@clisp.org>
53933         * gnulib-tool (func_version): Update.
53935 2005-08-24  Bruno Haible  <bruno@clisp.org>
53937         * gnulib-tool (func_import, func_create_testdir,
53938         func_create_megatestdir): Quote all autoconf macro arguments.
53940 2005-08-24  Bruno Haible  <bruno@clisp.org>
53942         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
53943         option --force, because --force causes the aclocal.m4 of each
53944         subdirectory to be newer than the corresponding config.h.in.
53946 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53948         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
53949         All contents moved to gl_REGEX.
53950         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
53951         assume that it does.
53953 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53955         * lib/regex.h (REG_NOSYS)
53956         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
53957         Define, since POSIX requires it as of 2001.
53958         (_REG_ENOSYS)
53959         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
53960         New private symbol, used to keep the enum signed in all cases.
53961         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
53962         Youngman in
53963         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
53965         * lib/regex_internal.c (re_string_skip_chars, register_state):
53966         (calc_state_hash):
53967         Remove forward decls; no longer needed now that we use prototypes.
53968         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
53969         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
53970         (clean_state_log_if_needed): Likewise.
53972 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53974         * config/srclist.txt: Add glibc bugs 1231-1233.
53976 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53978         Fix problems reported by Sam Steingold in
53979         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
53980         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
53981         assumed that reg_errcode_t is a signed type, which is not
53982         necessarily true if _XOPEN_SOURCE is not defined.
53983         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
53984         since some compilers warn about it otherwise.
53986 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53988         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
53989         (init_word_char, create_initial_state, duplicate_node_closure):
53990         (fetch_token, peek_token_bracket, build_range_exp):
53991         (build_collating_symbol): Remove forward decls; no longer needed
53992         now that we use prototypes.
53994         * lib/regcomp.c:
53995         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
53996         (re_compile_fastmap_iter, regcomp, regerror, regfree):
53997         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
53998         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
53999         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54000         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54001         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54002         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54003         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54004         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54005         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54006         (build_charclass, build_charclass_op, fetch_number, create_tree):
54007         (create_token_tree, mark_opt_subexp, duplicate_tree):
54008         Use prototypes rather than old-style definitions.
54010         * lib/regex_internal.c:
54011         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54012         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54013         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54014         (re_string_reconstruct, re_string_peek_byte_case):
54015         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54016         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54017         (re_node_set_init_copy, re_node_set_add_intersect):
54018         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54019         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54020         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54021         (re_acquire_state, re_acquire_state_context, register_state):
54022         (create_ci_newstate, create_cd_newstate, free_state):
54023         Likewise.
54024         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54025         re_search_2):
54026         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54027         (re_search_internal, prune_impossible_nodes):
54028         (acquire_init_state_context, check_matching, static):
54029         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54030         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54031         (update_regs, sift_states_backward, build_sifted_states):
54032         (clean_state_log_if_needed, merge_state_array):
54033         (update_cur_sifted_state, add_epsilon_src_nodes):
54034         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54035         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54036         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54037         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54038         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54039         (check_arrival, check_arrival_add_next_nodes):
54040         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54041         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54042         (check_node_accept_bytes, check_node_accept, extend_buffers):
54043         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54044         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54045         (sift_ctx_init):
54046         Likewise.
54048         * lib/regex_internal.h:
54049         (re_string_allocate, re_string_construct, re_string_reconstruct):
54050         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54051         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54052         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54053         (re_string_context_at, re_string_peek_byte_case):
54054         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54055         is defined, since we now use prototypes always.
54057         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54058         C89 or better.  All uses removed.
54060 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54062         * config/srclist.txt: Add glibc bugs 1220-1227.
54064 2005-08-20  Jim Meyering  <jim@meyering.net>
54066         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54067         of unused local, dfa.
54069 2005-08-20  Bruno Haible  <bruno@clisp.org>
54071         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54073 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54075         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54076         (re_node_set_insert_last, re_dfa_add_node):
54077         Rename local variables to avoid GCC shadowing warnings.
54079 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54081         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54082         [defined lint]: Suppress bogus uninitialized-variable warnings.
54084         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54085         and let the caller return REG_ESPACE if out of space.  This
54086         removes an uninitialied-variable warning with GCC 4.0.1, and also
54087         avoids taking the address of a local variable.  All callers
54088         changed.
54090 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54092         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54093         $LIBCSRC/posix/regexec.c.
54094         Add glibc bug 1217 for regcomp.c.
54096 2005-08-19  Jim Meyering  <jim@meyering.net>
54098         * lib/regexec.c (proceed_next_node): Redo local variables to
54099         avoid GCC shadowing warnings.
54101 2005-08-18  Bruno Haible  <bruno@clisp.org>
54103         * lib/strstr.c (strstr): Fix return value in multibyte case.
54104         * lib/strcasestr.c (strcasestr): Likewise.
54106 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54108         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54110 2005-08-17  Jim Meyering  <jim@meyering.net>
54112         Make the %s format (seconds since the epoch) work for a negative
54113         number and when used with a zero-padded field width, e.g. %015s.
54115         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54116         label so that it precedes the code to set `digits'.  Otherwise,
54117         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54118         print `00-22'.  Now, it prints `-0022', as it should.
54120 2005-08-17  Bruno Haible  <bruno@clisp.org>
54122         * modules/strstr (Files): Add m4/mbrtowc.m4.
54123         (Depends-on): Add mbuiter.
54125 2005-08-17  Bruno Haible  <bruno@clisp.org>
54127         * modules/strcasestr: New file.
54128         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54129         strcasestr.
54131 2005-08-17  Bruno Haible  <bruno@clisp.org>
54133         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54135 2005-08-17  Bruno Haible  <bruno@clisp.org>
54137         * modules/mbuiter: New file.
54138         * MODULES.html.sh (Extended multibyte and wide character utilities):
54139         Add mbuiter.
54141 2005-08-17  Bruno Haible  <bruno@clisp.org>
54143         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54144         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54146 2005-08-17  Bruno Haible  <bruno@clisp.org>
54148         * m4/strcasestr.m4: New file.
54150 2005-08-17  Bruno Haible  <bruno@clisp.org>
54152         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54153         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54155 2005-08-17  Bruno Haible  <bruno@clisp.org>
54157         * lib/strcasestr.h: New file.
54158         * lib/strcasestr.c: New file.
54160 2005-08-17  Bruno Haible  <bruno@clisp.org>
54162         * lib/strcasecmp.c: Use mbuiter.h.
54164 2005-08-17  Bruno Haible  <bruno@clisp.org>
54166         * lib/mbuiter.h: New file.
54168 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54171         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54172         and gl_GETOPT are both invoked via different paths (as happens
54173         with GNU tar CVS because it uses both argp and getopt), the former
54174         wins.
54176 2005-08-16  Bruno Haible  <bruno@clisp.org>
54178         * modules/tls: New file.
54179         * MODULES.html.sh (Multithreading): Add tls.
54181 2005-08-16  Bruno Haible  <bruno@clisp.org>
54183         * modules/strnlen1: New file.
54184         * MODULES.html.sh (String handling): Add strnlen1.
54186 2005-08-16  Bruno Haible  <bruno@clisp.org>
54188         * modules/strcase (Files): Add m4/mbrtowc.m4.
54189         (Depends-on): Add strnlen1, mbchar.
54191 2005-08-16  Bruno Haible  <bruno@clisp.org>
54193         * modules/mbiter: New file.
54194         * MODULES.html.sh (Extended multibyte and wide character utilities):
54195         Add mbiter.
54197 2005-08-16  Bruno Haible  <bruno@clisp.org>
54199         * modules/mbfile: New file.
54200         * MODULES.html.sh (Extended multibyte and wide character utilities):
54201         Add mbfile.
54203 2005-08-16  Bruno Haible  <bruno@clisp.org>
54205         * modules/mbchar: New file.
54206         * MODULES.html.sh (Extended multibyte and wide character utilities):
54207         New section.
54209 2005-08-16  Bruno Haible  <bruno@clisp.org>
54211         * m4/tls.m4: New file, from GNU gettext.
54213 2005-08-16  Bruno Haible  <bruno@clisp.org>
54215         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54216         always.
54217         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54219 2005-08-16  Bruno Haible  <bruno@clisp.org>
54221         * m4/mbiter.m4: New file.
54223 2005-08-16  Bruno Haible  <bruno@clisp.org>
54225         * m4/mbfile.m4: New file.
54227 2005-08-16  Bruno Haible  <bruno@clisp.org>
54229         * m4/mbchar.m4: New file.
54231 2005-08-16  Bruno Haible  <bruno@clisp.org>
54233         * lib/tls.h: New file, from GNU gettext.
54234         * lib/tls.c: New file, from GNU gettext.
54236 2005-08-16  Bruno Haible  <bruno@clisp.org>
54238         * lib/strnlen1.h: New file.
54239         * lib/strnlen1.c: New file.
54241 2005-08-16  Bruno Haible  <bruno@clisp.org>
54243         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54244         (mbi_init): Update.
54245         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54246         NUL byte, not after it.
54248 2005-08-16  Bruno Haible  <bruno@clisp.org>
54250         * lib/strcase.h (strcasecmp): Add note in comments.
54251         * lib/strncasecmp.c: Use code from strcasecmp.c.
54252         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54253         (strcasecmp): Work correctly in multibyte locales.
54255 2005-08-16  Bruno Haible  <bruno@clisp.org>
54257         * lib/mbiter.h: New file.
54259 2005-08-16  Bruno Haible  <bruno@clisp.org>
54261         * lib/mbfile.h: New file.
54263 2005-08-16  Bruno Haible  <bruno@clisp.org>
54265         * lib/mbchar.h: New file.
54266         * lib/mbchar.c: New file.
54268 2005-08-16  Bruno Haible  <bruno@clisp.org>
54270         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54271         the valid ones. Makes the comparison operations transitive:
54272         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54273         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54275 2005-08-15  Simon Josefsson  <jas@extundo.com>
54277         * modules/ssize_t (License): Change to 'unlimited'.
54279         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54281 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54283         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54284         Add comments for each pending glibc patch.
54286 2005-08-15  Bruno Haible  <bruno@clisp.org>
54288         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54289         __cplusplus is defined.
54291 2005-08-14  Jim Meyering  <jim@meyering.net>
54293         Sync from coreutils.
54295         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54296         Use the hash-table-based cycle-detection code not just when
54297         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54298         Reported by James Youngman in
54299         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54300         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54301         FTS_TIGHT_CYCLE_CHECK.
54302         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54303         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54304         once again.
54305         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
54306         * lib/fts.c (fd_safer): Remove decl.
54307         Include fcntl--.h rather than unistd-safer.h
54308         (fts_safe_changedir): Don't call fd_safer; no longer needed
54309         now that we include fcntl--.h.
54311 2005-08-12  Simon Josefsson  <jas@extundo.com>
54313         * modules/getndelim2: Use ssize_t module.
54314         * modules/getnline: Likewise.
54315         * modules/safe-read: Likewise.
54316         * modules/xreadlink: Likewise.
54318         * modules/ssize_t: New file.
54320 2005-08-12  Simon Josefsson  <jas@extundo.com>
54322         * m4/readline.m4: Look for termcap, curses or ncurses if required.
54324 2005-08-12  Simon Josefsson  <jas@extundo.com>
54326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54327         ssize_t.
54329 2005-08-12  Simon Josefsson  <jas@extundo.com>
54331         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
54332         readline, getdelim and check_version.
54333         (Support for systems lacking ISO C 99: Sizes of integer types):
54334         Add size_max.
54336 2005-08-12  Bruno Haible  <bruno@clisp.org>
54338         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
54340 2005-08-11  Simon Josefsson  <jas@extundo.com>
54342         * modules/readline: New file.
54344         * modules/strnlen (Files): Add strnlen.h.
54346 2005-08-11  Simon Josefsson  <jas@extundo.com>
54348         * m4/readline.m4: New file.
54350 2005-08-11  Simon Josefsson  <jas@extundo.com>
54352         * lib/readline.h, readline.c: New file.
54354 2005-08-11  Simon Josefsson  <jas@extundo.com>
54356         * doc/gnulib.texi (Initial import, Finishing touches): Mention
54357         gl_AVOID.
54359 2005-08-11  Bruno Haible  <bruno@clisp.org>
54361         * lib/strnlen.h (strnlen): Change parameter name to match comment.
54363 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
54365         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
54367 2005-08-10  Simon Josefsson  <jas@extundo.com>
54369         * tests/test-iconvme.c: New file.
54371 2005-08-10  Simon Josefsson  <jas@extundo.com>
54373         * m4/strnlen.m4: New file.
54375         * m4/strndup.m4: Don't check for strnlen declaration, done in
54376         strnlen.m4.
54378 2005-08-10  Simon Josefsson  <jas@extundo.com>
54380         * lib/strndup.c: Use strnlen.h.
54382         * lib/strnlen.h: New file.
54384 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54386         * README: Typos.
54388 2005-08-02  Simon Josefsson  <jas@extundo.com>
54390         * modules/readline: New file.
54392 2005-08-02  Simon Josefsson  <jas@extundo.com>
54394         * modules/getdelim: New file.
54396         * modules/getline: Rewrite, don't use getndelim2.
54398 2005-08-02  Simon Josefsson  <jas@extundo.com>
54400         * m4/getline.m4: Separate out getdelim stuff into separate module.
54402         * m4/getdelim.m4: New file.
54404 2005-08-02  Simon Josefsson  <jas@extundo.com>
54406         * lib/getline.h, getline.c: Rewrite.
54408         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
54410 2005-07-31  Bruno Haible  <bruno@clisp.org>
54412         * lib/lock.h (gl_lock_initializer): New macro.
54413         (gl_lock_define_initialized): Use it.
54414         (gl_rwlock_initializer): New macro.
54415         (gl_rwlock_define_initialized): Use it.
54416         (gl_recursive_lock_initializer): New macro.
54417         (gl_recursive_lock_define_initialized): Use it.
54419 2005-07-30  Karl Berry  <karl@gnu.org>
54421         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
54422         Report from Ben Pfaff, regarding getopt.
54424 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
54426         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
54427         normal way.
54428         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
54429         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
54430         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
54431         (gl_GETOPT): Use the new macros.  Most of the implementation
54432         is moved to the new macros.  This is for programs like Emacs
54433         that don't want all the functionality of gl_GETOPT.
54435 2005-07-26  Bruno Haible  <bruno@clisp.org>
54437         * m4/lock.m4: Update from GNU gettext.
54439 2005-07-26  Bruno Haible  <bruno@clisp.org>
54441         * lib/lock.h: Update from GNU gettext.
54442         * lib/lock.c: Update from GNU gettext.
54444 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
54446         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
54447         obsolescent AC_TRY_RUN.  Include the default includes files, for
54448         'exit'.
54450 2005-07-24  Bruno Haible  <bruno@clisp.org>
54452         * modules/visibility: New file.
54453         * MODULES.html.sh (Misc): Add visibility.
54455 2005-07-24  Bruno Haible  <bruno@clisp.org>
54457         * m4/visibility.m4: New file.
54459 2005-07-24  Bruno Haible  <bruno@clisp.org>
54461         * doc/visibility.texi: New file.
54463 2005-07-22  Bruno Haible  <bruno@clisp.org>
54465         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
54466         $(ALLOCA_H), redundant through BUILT_SOURCES.
54467         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
54468         redundant through BUILT_SOURCES.
54469         * modules/byteswap (Makefile.am): Remove explicit dependency on
54470         $(BYTESWAP_H), redundant through BUILT_SOURCES.
54471         * modules/fnmatch (Makefile.am): Remove explicit dependency on
54472         $(FNMATCH_H), redundant through BUILT_SOURCES.
54473         * modules/getopt (Makefile.am): Remove explicit dependency on
54474         $(GETOPT_H), redundant through BUILT_SOURCES.
54475         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
54476         redundant through BUILT_SOURCES.
54477         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
54478         redundant through BUILT_SOURCES.
54479         * modules/stdbool (Makefile.am): Remove explicit dependency on
54480         $(STDBOOL_H), redundant through BUILT_SOURCES.
54481         * modules/stdint (Makefile.am): Remove explicit dependency on
54482         $(STDINT_H), redundant through BUILT_SOURCES.
54483         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
54484         Remove explicit dependency on $(SYSEXITS_H).
54485         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
54487 2005-07-18  Simon Josefsson  <jas@extundo.com>
54489         * lib/check-version.c (check_version): Accept identical versions too.
54491 2005-07-18  Bruno Haible  <bruno@clisp.org>
54493         * modules/lock: New file.
54494         * MODULES.html.sh (Multithreading): New section.
54496 2005-07-18  Bruno Haible  <bruno@clisp.org>
54498         * m4/lock.m4: New file, from GNU gettext.
54500 2005-07-18  Bruno Haible  <bruno@clisp.org>
54502         * lib/lock.h: New file, from GNU gettext.
54503         * lib/lock.c: New file, from GNU gettext.
54505 2005-07-18  Bruno Haible  <bruno@clisp.org>
54507         * lib/lock.h (gl_once_t): New type.
54508         (gl_once_define, gl_once): New macros.
54509         * lib/lock.c (fresh_once): New variable.
54510         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
54511         functions.
54513 2005-07-16  Simon Josefsson  <jas@extundo.com>
54515         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
54516         workaround, suggested by Bruno.
54518 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54520         * modules/xalloc (Depends-on): Add xalloc-die.
54521         * modules/xvasprintf (Depends-on): Add xalloc-die.
54523 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54525         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
54526         with a minor change.
54528 2005-07-15  Bruno Haible  <bruno@clisp.org>
54530         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
54531         When using lib/poll.c, define poll as rpl_poll.
54533 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
54535         * modules/argp (Depends-on): Remove unlocked-io.
54537 2005-07-14  Derek Price  <derek@ximbiot.com>
54539         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
54540         for glob symlink bug.
54542 2005-07-14  Bruno Haible  <bruno@clisp.org>
54544         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
54545         Instead, test for *_unlocked function declarations directly.
54547 2005-07-11  Simon Josefsson  <jas@extundo.com>
54549         * modules/size_max: New file.
54551         * modules/xsize: Depend on size_max module for size_max.m4.
54553 2005-07-11  Simon Josefsson  <jas@extundo.com>
54555         * lib/size_max.h: New file.
54557 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
54559         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
54560         copyright symbol and the year.
54561         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
54562         (version_etc_va): Use parameterized copyright notice.
54563         Reword to conform to the current GNU coding standards.
54565 2005-07-11  Karl Berry  <karl@gnu.org>
54567         * doc/gnulib.texi (Quoting): new node.
54568         (Initial import): more info, from Patrice.
54570 2005-07-11  Bruno Haible  <bruno@clisp.org>
54572         * gnulib-tool (func_usage): Document option --avoid.
54573         (Command line options): Handle --avoid.
54574         (func_acceptable): New function.
54575         (func_modules_transitive_closure): Use it.
54577 2005-07-11  Bruno Haible  <bruno@clisp.org>
54579         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
54580         Reported by Jim Meyering.
54582 2005-07-10  Bruno Haible  <bruno@clisp.org>
54584         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
54585         Needed when size_t is smaller than 'unsigned int'.
54586         Reported by Paul Eggert.
54588 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54590         * modules/argp (Depends-on): Add unlocked-io
54592 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54594         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
54595         block of defines.
54597 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54599         * config/srclist.txt: Comment out regcomp.c, since we have a porting
54600         fix now.
54602 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
54603         and Paul Eggert  <eggert@cs.ucla.edu>
54605         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
54606         in wint_t, not wchar_t.  Remove now-unnecessary cast.
54608 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54610         * modules/regex (Files): Add lib/regex_internal.c,
54611         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
54612         (Depends-on): Add extensions.
54613         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
54615 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54617         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
54618         pathconf.
54619         * m4/same.m4 (gl_SAME): Likewise.
54620         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
54622         * m4/regex.m4: Adjust to new libc regex implementation.
54623         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
54624         all the .c and .h parts of (the new) regex.
54625         Quote the m4 stuff better.
54626         Check for RE_ICASE bug of old gnulib.
54627         Check for REG_STARTEND of recent libc.
54628         Rename local variables from jm_* to gl_*.
54629         Quote operand of "test -f".
54630         Say "recent enough" version of libc, not "version 2".
54631         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
54632         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
54633         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
54634         Remove check for btowc, isascii.
54635         Require AM_LANGINFO_CODESET.
54637 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54639         * lib/regex.c, regex.h: Sync from libc.
54640         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
54641         * lib/regexec.c:
54642         New files, synced from libc, except that regex_internal.h
54643         currently has a small porting fix.
54645 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54647         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
54648         regex_internal.c, regexec.c.
54649         Add regex_internal.h too, but as a comment, since the libc version
54650         is currently broken in gnulib mode.
54652 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54654         Support programs like Emacs that use gnulib but not gettext.
54655         * MODULES.html.sh (Internationalization functions): Add gettext-h.
54656         * modules/gettext-h: New file.
54657         * modules/gettext (Files): Remove lib/gettext.h.
54658         (Depends-on): Add gettext-h.
54659         (Makefile.am): Remove lib_SOURCES.
54660         * modules/argmatch, modules/c-stack, modules/closeout:
54661         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
54662         * modules/execute, modules/file-type, modules/getaddrinfo:
54663         * modules/getopt, modules/human, modules/javacomp:
54664         * modules/javaexec, modules/mkdir-p, modules/obstack:
54665         * modules/openat, modules/pagealign_alloc, modules/pipe:
54666         * modules/quotearg, modules/regex, modules/rpmatch:
54667         * modules/unicodeio, modules/userspec, modules/version-etc:
54668         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
54669         * modules/xsetenv:
54670         Depend on gettext-h, not gettext.
54672 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54674         * gnulib-tool (func_import): Add support for 'public domain' license.
54675         * modules/alloca, modules/atexit, modules/memmove:
54676         Now public domain, not GPL.
54677         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
54678         * modules/realloc, modules/strerror, modules/strtod:
54679         Now LGPL, not GPL.
54681 2005-07-05  Bruno Haible  <bruno@clisp.org>
54683         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
54684         autoconf CVS. Needed for mingw.
54686 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54688         Remove the dependency of the strftime module on the tzset module.
54689         * modules/strftime (Depends-on): Remove dependency on tzset.
54691 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54693         Remove the dependency of the strftime module on the tzset module.
54694         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
54695         gl_FUNC_TZSET_CLOBBER.
54697 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54699         Remove the dependency of the strftime module on the tzset module.
54700         * lib/strftime.c (my_strftime)
54701         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
54702         Copy the input structure, to work around some of the bug with
54703         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
54704         Solaris releases, you should also use the tzset module, but we won't
54705         require it as a dependency any more since we don't want LGPLed code
54706         to depend on GPLed code.
54708 2005-07-02  Jim Meyering  <jim@meyering.net>
54710         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
54711         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
54712         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
54713         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
54715 2005-07-02  Jim Meyering  <jim@meyering.net>
54717         * lib/backupfile.c (backup_args): Change a `0' to NULL.
54719 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54721         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
54722         declares only 'struct timespec;' (!).
54724 2005-07-01  Jim Meyering  <jim@meyering.net>
54726         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
54727         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
54728         * lib/save-cwd.c, tempname.c:
54729         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54730         and don't include <sys/file.h>).
54732 2005-06-29  Jim Meyering  <jim@meyering.net>
54734         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
54735         type name.  Use the variable name instead.
54736         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
54737         Likewise.
54739 2005-06-28  Simon Josefsson  <jas@extundo.com>
54741         * modules/check-version (Files): Add check-version.m4.
54743 2005-06-28  Simon Josefsson  <jas@extundo.com>
54745         * m4/check-version.m4: New file, suggested by Jim Meyering
54746         <jim@meyering.net>.
54748 2005-06-28  Simon Josefsson  <jas@extundo.com>
54750         * lib/check-version.h, lib/check-version.c: New files.
54752 2005-06-28  Simon Josefsson  <jas@extundo.com>
54754         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
54755         collision with global variable.  Better indentation.  Don't
54756         increment buffer pointer beyond buffer end.  Based on comments
54757         from Paul Eggert <eggert@cs.ucla.edu>.
54759         * lib/base64.h: Indent.
54761 2005-06-28  Simon Josefsson  <jas@extundo.com>
54763         * doc/gnulib.texi (Library version handling): New section.
54765 2005-06-28  Jim Meyering  <jim@meyering.net>
54767         * check-module (find_included_lib_files): Hard-code another
54768         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
54769         but modules/fts-lgpl (correctly) does not list those files.
54771         * modules/canonicalize (Files): Add lib/pathmax.h.
54773 2005-06-25  Simon Josefsson  <jas@extundo.com>
54775         * modules/check-version: New file.
54777 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
54779         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
54780         initializer of struct addrinfo, as an indication that we don't
54781         care how many members the structure has.
54783 2005-06-24  Derek Price  <derek@ximbiot.com>
54784         and Bruno Haible  <bruno@clisp.org>
54786         Remove stat module & update lstat.
54787         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
54788         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54789         * m4/stat.m4: Remove this file.
54791 2005-06-24  Derek Price  <derek@ximbiot.com>
54792         and Bruno Haible  <bruno@clisp.org>
54794         Remove stat module & update lstat.
54795         * lib/stat.c: Remove this file...
54796         (slash_aware_lstat): ...moving this content and its support...
54797         * lib/lstat.c (rpl_lstat): ...into here.
54798         * lib/lstat.h: New file.
54800 2005-06-24  Derek Price  <derek@ximbiot.com>
54801         and Bruno Haible  <bruno@clisp.org>
54803         Remove stat module & update lstat.
54804         * config/srclist.txt (libc sources): Remove stat.
54806 2005-06-24  Derek Price  <derek@ximbiot.com>
54807         and Bruno Haible  <bruno@clisp.org>
54809         Remove stat module & update lstat.
54810         * MODULES.html.sh (stat): Remove.
54811         * MODULES.html: Regenerated.
54812         * modules/lstat (Description): Correct function name.
54813         (Files): Add "lstat.h".
54814         (Depends-on): Remove stat, add xalloc, stat-macros.
54815         * modules/stat: Remove this file.
54816         (Include): Add "lstat.h", remove <sys/stat.h>.
54818 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54820         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
54821         (ranged_convert): Don't save conversion in a temporary struct.
54822         This causes a warning with GCC 4.0.0, and anyway in the typical
54823         case it's not worth the extra 100 bytes or so of code.
54824         (ranged_convert, __mktime_internal): When calling a function via a
54825         pointer P, use P () rather than (*P) (), as we now assume C89 or
54826         better.
54828 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54830         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
54831         "who -r" failed to give output.  Problem reported by Tim Waugh.
54833         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
54834         (xcalloc): Use it to avoid needless tests.
54835         Problem reported by Jim Meyering.
54837 2005-06-20  Derek Price  <derek@ximbiot.com>
54839         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
54840         unnecessary for Autoconfs > 2.59c.
54842 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54844         * lib/argp.h (__option_is_short): Check upper limit of
54845         __key. Isprint() requires its argument to have the value
54846         of an unsigned char or EOF.
54848 2005-06-16  Jim Meyering  <jim@meyering.net>
54850         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
54851         when either N or S is zero.
54853 2005-06-16  Derek Price  <derek@ximbiot.com>
54855         * m4/bison.m4: Declare YACC & YFLAGS precious.
54857 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
54859         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
54860         multibyte string or pattern, fall back on unibyte matching.
54861         Problem reported by James Youngman.
54863 2005-06-08  Bruno Haible  <bruno@clisp.org>
54865         * modules/csharpcomp: New file.
54866         * MODULES.html.sh (C#): Add csharpcomp.
54868 2005-06-08  Bruno Haible  <bruno@clisp.org>
54870         * m4/csharpcomp.m4: New file, from GNU gettext.
54872 2005-06-08  Bruno Haible  <bruno@clisp.org>
54874         * lib/csharpcomp.h: New file, from GNU gettext.
54875         * lib/csharpcomp.c: New file, from GNU gettext.
54876         * lib/csharpcomp.sh.in: New file, from GNU gettext.
54878 2005-06-08  Bruno Haible  <bruno@clisp.org>
54880         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
54881         warning on mingw.
54883 2005-06-07  Derek Price  <derek@ximbiot.com>
54885         Sync from CVS.
54886         * lib/glob_.h: Indent nested #ifdef.
54888 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54890         Sync from coreutils.
54891         Use "file name" when talking about file names, instead of "filename"
54892         or "path", as per the GNU coding standards.
54893         * lib/mkdir-p.c: Renamed from makepath.c.
54894         (make_dir_parents): Renamed from make_path.  All callers changed.
54895         * lib/mkdir-p.h: Likewise.  All includers changed.
54896         * lib/filenamecat.c: Renamed from path-concat.c.
54897         (file_name_concat): Renamed from path_concat.  All callers changed.
54898         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
54899         * lib/filenamecat.h: Likewise.  All includers changed.
54900         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
54901         in comments or local variable names.
54902         * lib/basename.c: Likewise.
54903         * lib/canonicalize.c, canonicalize.h: Likewise.
54904         * lib/dirname.c, dirname.h: Likewise.
54905         * lib/euidaccess.c: Likewise.
54906         * lib/exclude.c: Likewise
54907         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
54908         * lib/fsusage.c, fsuage.h: Likewise.
54909         * lib/fts.c, fts_.h: Likewise.
54910         * lib/getcwd.c: Likewise.
54911         * lib/getloadavg.c: Likewise.
54912         * lib/mkstemp.c: Likewise.
54913         * lib/mountlist.c, mountlist.h: Likewise.
54914         * lib/openat.c, openat.h: Likewise.
54915         * lib/readlink-stub.c: Likewise.
54916         * lib/readutmp.c, readutmp.h: Likewise.
54917         * lib/rename.c: Likewise.
54918         * lib/rmdir.c: Likewise.
54919         * lib/same.c: Likewise.
54920         * lib/savedir.c: Likewise.
54921         * lib/stripslash.c: Likewise.
54922         * lib/tempname.c: Likewise.
54923         * lib/xreadlink.c: Likewise.
54924         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
54925         All uses changed.
54926         * lib/exclude.h: Likewise.
54928         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
54929         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
54930         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
54931         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
54932         * lib/pathmax.h: Include <limits.h> unconditionally, since other
54933         files have been getting away with it for years (MORE/BSD 4.3
54934         is extinct now).
54935         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
54936         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
54938         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
54939         Define to 256, not 255, as per modern POSIX.
54941 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54943         Sync from coreutils.
54944         Use "file name" when talking about file names, instead of "filename"
54945         or "path", as per the GNU coding standards.
54946         * MODULES.html.sh: mkdir-p renamed from makepath.
54947         filenamecat renamed from path-concat.
54948         * modules/filenamecat: Renamed from modules/path-concat.
54949         (Files): filenamecat.h and filenamecat.c renamed from
54950         path-concat.h and path-concat.c.
54951         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
54952         (Include): filenamecat.h, not path-concat.h.
54953         * modules/mkdir-p: Renamed from modules/makepath.
54954         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
54955         makepath.c.
54956         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
54957         (Include): mkdir-p.h, not makepath.h.
54959 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54961         Sync from coreutils.
54962         * m4/mkdir-p.m4: Renamed from makepath.m4.
54963         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
54964         Rename files from makepath.c to mkdir-p.c, and from
54965         makepath.h to mkdir-p.h.
54966         * m4/filenamecat.m4: Renamed from path-concat.m4.
54967         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
54968         Rename files from path-concat.c to filenamecat.c,
54969         and from path-concat.h to filenamecat.h.
54970         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
54971         "file name" in local variables or comments.
54972         * m4/rename.m4: Likewise.
54974 2005-06-01  Bruno Haible  <bruno@clisp.org>
54976         * modules/csharpexec: New file.
54977         * MODULES.html.sh (C#): New section.
54979 2005-06-01  Bruno Haible  <bruno@clisp.org>
54981         * m4/csharp.m4: New file, from GNU gettext.
54982         * m4/csharpexec.m4: New file, from GNU gettext.
54984 2005-06-01  Bruno Haible  <bruno@clisp.org>
54986         * lib/csharpexec.h: New file, from GNU gettext.
54987         * lib/csharpexec.c: New file, from GNU gettext.
54988         * lib/csharpexec.sh.in: New file, from GNU gettext.
54990 2005-05-31  Derek Price  <derek@ximbiot.com>
54991             Paul Eggert  <eggert@cs.ucla.edu>
54993         Sync from cvs.
54994         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
54996 2005-05-31  Derek Price  <derek@ximbiot.com>
54997             Paul Eggert  <eggert@cs.ucla.edu>
54999         Sync from cvs.
55000         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55002 2005-05-29  Derek Price  <derek@ximbiot.com>
55004         * config/srclist.txt (glob_.h, glob.c): Add these files.
55006 2005-05-29  Derek Price  <derek@ximbiot.com>
55008         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55009         * modules/glob: New file.
55010         * modules/getlogin_r: Add link to POSIX spec in description.
55012 2005-05-29  Derek Price  <derek@ximbiot.com>
55013             Paul Eggert  <eggert@cs.ucla.edu>
55015         * m4/glob.m4: New file.
55017 2005-05-29  Derek Price  <derek@ximbiot.com>
55018             Paul Eggert  <eggert@cs.ucla.edu>
55020         * lib/glob_.h, lib/glob.c: New files.
55022 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55024         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55025         * modules/fts-lgpl (Depends-on): Remove gettext.
55027 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55029         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55030         and don't require gt_INTTYPES_PRI.
55032 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55034         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55036         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55037         the configuration hassle isn't worth it.
55038         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55039         (LONGEST_MODIFIER, PRIuMAX): Remove.
55041 2005-05-27  Bruno Haible  <bruno@clisp.org>
55043         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55045 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55048         _POSIX_PTHREAD_SEMANTICS for Solaris.
55050 2005-05-25  Derek Price  <derek@ximbiot.com>
55052         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55054 2005-05-25  Derek Price  <derek@ximbiot.com>
55055             Paul Eggert  <eggert@cs.ucla.edu>
55057         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55058         * lib/getlogin_r.c, getlogin_r.h: New files.
55060 2005-05-25  Bruno Haible  <bruno@clisp.org>
55061             Derek Price  <derek@ximbiot.com>
55063         * lib/getlogin_r.h: Simplify API documentation.
55065 2005-05-23  Derek Price  <derek@ximbiot.com>
55067         * modules/minmax (Files): Add m4/minmax.m4.
55068         (configure.ac): Add gl_MINMAX.
55070 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55072         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55073         so that unistd-safer.h (GPL'ed code) need not be included.
55075 2005-05-22  Bruno Haible  <bruno@clisp.org>
55077         * m4/minmax.m4: New file.
55078         Based on a patch by Derek Price <derek@ximbiot.com>.
55080 2005-05-22  Bruno Haible  <bruno@clisp.org>
55082         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55083         (INT64_MIN): Fix definition.
55084         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55086         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55087         NEED_SIGNED_INT_TYPES.
55089         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55090         HAVE_SYSTEM_INTTYPES.
55092 2005-05-22  Bruno Haible  <bruno@clisp.org>
55094         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55095         Also include <sys/param.h> if it defines MIN, MAX.
55096         Based on a patch by Derek Price <derek@ximbiot.com>.
55098 2005-05-21  Jim Meyering  <jim@meyering.net>
55100         * modules/fts (Files): Add m4/inttypes-pri.m4.
55101         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55103 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55105         New fts module.
55106         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55107         (setup_dir, free_dir): New functions.
55108         (enter_dir, leave_dir): Define trivial
55109         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55110         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55111         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55112         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55113         Move to fts-cycle.c.
55114         (fts_open): Use setup_dir.
55115         (fts_close): Use free_dir.
55116         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55117         This adds a label and some gotos, but the alternatives were messier.
55118         Check for memory allocation failure when entering a dir.
55119         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55120         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55121         (FTS): New member fts_cycle, that is a union that contains the
55122         old active_dir_ht and cycle_state.  All uses changed to mention
55123         fts_cycle.ht and fts_cycle.state.
55124         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55125         fts.c, with the following changes:
55126         (setup_dir, free_dir): New functions.
55127         (enter_dir): Now returns bool.  Return true if successful, false
55128         if memory exhausted.  All callers changed.
55129         Do not bother partly cleaning up on
55130         memory allocation failure; that is free_dir's job.
55131         However, free ad if hash_insert fails, to avoid memory leak.
55132         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55133         fts->fts_options to see which union member to use.
55135 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55138         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55140 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55142         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55144 2005-05-20  Jim Meyering  <jim@meyering.net>
55146         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55147         Now a macro, to pacify GCC.
55149 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55151         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55152         of -1.
55154 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55156         * lib/chown.c (rpl_chown): Return -1 on failure.
55158 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55160         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55161         Don't check for stddef.h.
55162         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55163         don't use its results.
55164         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55165         since we include them unconditionally.  Don't require
55166         AM_STDBOOL_H, since stdbool is a prerequisite.
55167         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55168         since we assume C89 or better.
55169         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55170         as we don't use their results.
55171         Don't check for fchdir, memmove, memset, strrchr, as we use
55172         them unconditionally.
55173         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55174         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55176 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55178         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55179         Include <stddef.h> unconditionally, since we assume C89 now.
55180         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55181         * lib/fts.c: Include fts_.h first, to check interface.
55182         Do not include intprops.h; no longer needed.
55183         Include cycle-check.h and hash.h, since fts_.h no longer does.
55184         Remove unnecessary casts of closedir to void.
55185         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55186         decide whether to decrement nlinks.
55187         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55188         (FTS): Use struct hash_table * instead of Hash_table, so that
55189         we no longer need to include hash.h here.
55191 2005-05-18  Jim Meyering  <jim@meyering.net>
55193         * modules/dirfd (License): Change to LGPL.  Most of the code
55194         is already in the public domain.
55196 2005-05-18  Jim Meyering  <jim@meyering.net>
55198         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55199         Reported by Yoann Vandoorselaere.
55201 2005-05-17  Jim Meyering  <jim@meyering.net>
55203         * m4/fts.m4: New file, from coreutils.
55205 2005-05-17  Jim Meyering  <jim@meyering.net>
55207         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55209 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55211         Sync from coreutils.
55212         * m4/unlinkdir.m4: New file.
55214 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55216         Sync from coreutils.
55217         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55218         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55219         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55220         White space changes only.
55221         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55222         special.
55223         * lib/yesno.c: Include getline.h, not ctype.h.
55224         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55225         Use getline to remove arbitrary restriction on response length.
55227 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55229         * config/srclist-update: Spell out "Street" in FSF postal
55230         mail address; this is the style the FSF seems to prefer.
55232         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55233         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55234         this updates FSF postal mail address.
55236         Sync from coreutils.
55237         * modules/unlinkdir: New file.
55238         * modules/yesno (Depends-on): Add getline.
55239         * MODULES.html.sh (File system functions): Add unlinkdir.
55241 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55243         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55244         lib/strsep.h:
55245         Change the initial comment to refer to GPL, not LGPL.
55246         gnulib-tool will change it to LGPL as needed.
55248         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55249         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55250         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55251         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55252         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55253         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55254         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55255         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55256         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55257         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55258         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55259         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55260         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55261         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55262         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55263         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55264         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55265         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55266         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55267         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55268         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55269         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55270         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55271         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55272         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55273         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55274         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55275         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55276         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55277         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55278         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55279         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55280         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55281         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55282         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55283         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55284         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55285         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55286         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55287         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55288         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55289         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55290         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55291         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55292         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55293         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55294         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55295         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55296         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55297         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55298         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55299         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55300         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55301         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55302         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55303         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55304         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
55305         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
55306         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
55307         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
55308         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
55309         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
55310         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
55311         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
55312         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
55313         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
55314         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
55315         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
55316         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
55317         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
55318         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
55319         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
55320         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
55321         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
55322         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
55323         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
55324         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
55325         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
55326         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
55327         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
55328         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
55329         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
55330         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
55331         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
55332         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
55333         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
55334         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
55335         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
55336         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
55337         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
55338         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
55339         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
55340         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
55341         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
55342         lib/yesno.c, lib/yesno.h:
55343         Update FSF postal mail address.
55345 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55347         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
55348         tests/test-memmem.c, tests/test-stpncpy.c:
55349         Update FSF postal mail address.
55351 2005-05-13  Bruno Haible  <bruno@clisp.org>
55353         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
55354         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
55355         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
55356         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
55357         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
55358         Add support for 64-bit integers in the MSVC compiler.
55360 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55362         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
55364 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
55366         * gnulib-tool (func_import): Sort and uniquify recommended includes.
55368 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
55370         * doc/getdate.texi (General date syntax): Don't say that date
55371         date --iso-8601=ns generates acceptable dates; it doesn't yet.
55372         Problem reported by Nic Ferrier.
55374 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55376         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
55377         specified in ai_socktype. Fix invalid ai_protocol
55378         check. ai_protocol is usually set to 0 or depending on
55379         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
55380         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
55381         ai_socktype / ai_protocol in the returned addrinfo structure.
55383 2005-05-10  Simon Josefsson  <jas@extundo.com>
55385         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
55386         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55388 2005-05-10  Karl Berry  <karl@gnu.org>
55390         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
55391         (from http://www.gnu.org/licenses).
55392         * doc/COPYING.LIB: also rename to COPYING.LESSER.
55393         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
55394         fdl.texi suffices.
55396 2005-05-10  Karl Berry  <karl@gnu.org>
55398         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
55399         (COPYING.DOC): remove.
55401         * config/srclist-update: new FSF address.
55403 2005-05-10  Derek Price  <derek@ximbiot.com>
55405         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
55406         possible.
55408 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55409             Bruno Haible  <bruno@clisp.org>
55411         * modules/inet_ntop: New file.
55412         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55413         inet_ntop.
55415 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55416             Bruno Haible  <bruno@clisp.org>
55418         * m4/inet_ntop.m4: New file.
55420 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55421             Bruno Haible  <bruno@clisp.org>
55423         * lib/inet_ntop.h: New file.
55424         * lib/inet_ntop.c: New file, from glibc with modifications.
55426 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
55428         * modules/time_r (License): Change to LGPL.
55429         * modules/extensions (License): Change to LGPL.  Actually,
55430         the license is more permissive than that, but currently gnulib-tool
55431         doesn't know how to handle more-permissive licenses.
55433         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
55434         Problem reported by Dave Love.
55436 2005-05-08  Jim Meyering  <jim@meyering.net>
55438         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
55439         blank.
55441 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55443         * modules/argmatch (Depends-on): Add stdbool.
55444         * modules/backupfile (Depends-on): Likewise.
55445         * modules/chdir-long (Depends-on): Likewise.
55446         * modules/closeout (Depends-on): Likewise.
55447         * modules/cycle-check (Depends-on): Likewise.
55448         * modules/dirname (Depends-on): Likewise.
55449         * modules/fnmatch (Depends-on): Likewise.
55450         * modules/fsusage (Depends-on): Likewise.
55451         * modules/fwriteerror (Depends-on): Likewise.
55452         * modules/getcwd (Depends-on): Likewise.
55453         * modules/getloadavg (Depends-on): Likewise.
55454         * modules/hard-locale (Depends-on): Likewise.
55455         * modules/makepath (Depends-on): Likewise.
55456         * modules/mountlist (Depends-on): Likewise.
55457         * modules/nanosleep (Depends-on): Likewise.
55458         * modules/posixtm (Depends-on): Likewise.
55459         * modules/quotearg (Depends-on): Likewise.
55460         * modules/readtokens (Depends-on): Likewise.
55461         * modules/readtokens0 (Depends-on): Likewise.
55462         * modules/readutmp (Depends-on): Likewise.
55463         * modules/save-cwd (Depends-on): Likewise.
55464         * modules/strftime (Depends-on): Likewise.
55465         * modules/userspec (Depends-on): Likewise.
55466         * modules/utimecmp (Depends-on): Likewise.
55467         * modules/xgetcwd (Depends-on): Likewise.
55468         * modules/xnanosleep (Depends-on): Likewise.
55469         * modules/xstrtod (Depends-on): Likewise.
55470         * modules/yesno (Depends-on): Likewise.
55472 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55474         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
55475         needless checks.
55477 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55479         Merge from coreutils.  Among other things,
55480         add bulletproofing for cases where stdin, stdout, or stderr are closed.
55481         * lib/fd-safer.c: New file.
55482         * lib/fcntl-safer.h, open-safer.c: Remove.
55483         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
55484         * lib/dup-safer.c: Include unistd-safer.h first.
55485         Don't include errno.h.
55486         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
55487         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
55488         * lib/file-type.c: Rely on file-type.h change.
55489         * lib/getloadavg.c: Include unistd-safer.h.
55490         (getloadavg): Use safer open.
55491         * lib/getusershell.c: Include "stdio-safer.h".
55492         (getusershell): Use safer fopen.
55493         * lib/long-options.c (long_options): Use NULL rather than 0.
55494         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
55495         'free'.
55496         * lib/modechange.c: Likewise.
55497         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
55498         (MODE_DONE): New constant.
55499         (struct mode_change): Remove 'next' member.
55500         (make_node_op_equals): New function; like the old one of the
55501         same name, except it allocates an array.
55502         (mode_compile, mode_create_from_ref): Use it.
55503         (mode_compile): Allocate result as an array, not a linked list.
55504         Parse octal string ourself, so that we catch mistakes like "+0".
55505         (mode_adjust): Arg is an array, not a linked list.
55506         * lib/modechange.c: Include stat-macros.h, xalloc.h.
55507         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
55508         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
55509         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
55510         Remove.  This is now stat-macros.h's job.
55511         (talloc): Remove.  All callers replaced by xalloc, so that
55512         our invokers don't have to worry about reporting memory failures.
55513         (make_node_op_equals): Remove.
55514         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55515         New constants.
55516         (struct mode_change): Moved here from modechange.h.
55517         (mode_append_entry): Remove.
55518         (mode_compile): Remove MASKED_OPS arg, since it encouraged
55519         apps to have incorrect behavior.  Use simpler algorithm for head
55520         and tail.  Don't futz with umask; that's now the job of mode_adjust.
55521         Detect more invalid usages rather than having somewhat-random behavior.
55522         Don't insert an "a=" action, as that leads to incorrect behavior.
55523         (mode_compile, mode_create_from_ref): Return NULL on error instead
55524         of an enum, since now there's only one way to have an error.  All
55525         callers changed.
55526         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
55527         at the correct time.  Simplify calculation of "+u" and its ilk.
55528         Don't mishandle "+X".
55529         (mode_free): Remove "register" and localize decls.
55530         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55531         (struct mode_change): Move to modechange.c; callers don't
55532         need to see this stuff.
55533         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
55534         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
55535         (mode_change, mode_adjust): Reflect the new signatures noted above.
55536         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
55537         that might redefine system include files.
55538         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
55539         (my_usleep): Use NULL rather than (void *) 0.
55540         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
55541         Use siginterrupt to specify that system calls should be interrupted.
55542         (rpl_nanosleep): Move initialization of suspended closer to call of
55543         my_usleep.
55544         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
55545         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
55546         (desirable_utmp_entry): New function.
55547         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
55548         using x2nrealloc, to simplify logic.
55549         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
55550         size calculation.  Do not assume utmp file is a regular file.
55551         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
55552         (READ_UTMP_CHECK_PIDS): New constant.
55553         * lib/save-cwd.c: Include unistd-safer.h.
55554         (save_cwd): Use fd_safer.
55555         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
55556         [!_LIBC] Include "stat-macros.h" instead.
55557         * lib/unistd-safer.h (fd_safer): New decl.
55559 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55561         * modules/getloadavg (Depends-on): Add unistd-safer.
55562         * modules/getusershell (Depends-on): Add stdio-safer.
55563         * modules/lstat (Depends-on): Remove xalloc.
55564         * modules/mkstemp (Depends-on): Add stat-macros.
55565         * modules/modechange (Depends-on): Remove xstrtol.
55566         Add stat-macros, xalloc.
55567         * modules/save-cwd (Depends-on): Add unistd-safer.
55568         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
55569         * modules/unistd-safer (Files): Add lib/fd-safer.c
55570         (Makefile.am): Remove lib_SOURCES.
55572         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
55573         Remove fcntl-safer; unistd-safer supersedes it.
55575 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55577         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
55578         AC_HEADER_STAT.
55579         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
55580         (gl_PREREQ_CHOWN): Remove.
55581         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
55582         it.  Don't require AC_HEADER_STAT.
55583         (gl_PREREQ_LSTAT): Remove.
55584         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
55585         Don't require AC_HEADER_STAT.
55586         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
55587         (gl_PREREQ_RMDIR): Remove.
55588         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
55589         mention stat-macros.h or AC_HEADER_STAT, since we'll make
55590         the stat-macros module a prerequisite.
55591         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
55592         * m4/filemode.m4 (gl_FILEMODE): Likewise.
55593         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
55594         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
55595         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
55596         variable names.
55597         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
55598         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
55599         variable prefixes.
55600         * m4/fcntl-safer.m4: Remove.
55601         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
55602         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
55603         Invoke gl_PREREQ_FD_SAFER.
55604         (gl_PREREQ_FD_SAFER): New macro.
55605         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
55606         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
55607         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
55608         Remove duplicate call to AC_LIBOBJ(readutmp).
55609         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
55611         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
55612         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
55614 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55616         * MODULES.html.sh (Misc): Add byteswap.
55618 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55620         * modules/getcwd (Depends-on): Add extensions.
55621         * modules/openat (Depends-on): Likewise.
55623 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55625         * modules/byteswap: New file.
55627 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55629         * m4/byteswap.m4: New file.
55631 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55633         * lib/byteswap_.h: New file.
55635 2005-04-25  Karl Berry  <karl@gnu.org>
55637         * m4/gettext.m4: Update from GNU gettext 0.14.4.
55639 2005-04-25  Albert Chin  <china@thewrittenword.com>
55641         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
55642         Toolkit C bug.
55644 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
55646         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
55647         (func_ln_if_changed) Remove forcibly for no error message
55648         in case file does not exist.
55650 2005-04-19  Simon Josefsson  <jas@extundo.com>
55652         * gnulib-tool (Options): Make --symlink mean --symbolic.
55654 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
55656         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
55658 2005-04-16  Simon Josefsson  <jas@extundo.com>
55660         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
55662 2005-04-15  Simon Josefsson  <jas@extundo.com>
55664         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
55666 2005-04-15  Simon Josefsson  <jas@extundo.com>
55668         * gnulib-tool: Rename --symlink to --symbolic.
55670 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
55672         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
55673         symbolic links to files instead of copying/moving.  Add --aux-dir,
55674         specifying directory relative --dir where auxiliary build tools
55675         are placed.
55677 2005-04-14  Bruno Haible  <bruno@clisp.org>
55679         * modules/allocsa (License): Change to LGPL.
55680         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55682 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55684         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
55685         that "UTC +1 second" continues to work.  Problem reported
55686         by Dmitry V. Levin.
55687         (relunit_snumber): New rule.
55688         (relunit): Use it.
55690 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55692         * lib/getdate.y (universal_time_zone_table): New constant.
55693         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
55694         universal_time_zone_table.
55695         (lookup_zone): Prefer universal_time_zone_table to
55696         local_time_zone_table, so that "GMT" time stamps are allowed in
55697         London during the summer.  Problem reported by Ian Abbott.
55699 2005-04-12  Jim Meyering  <jim@meyering.net>
55701         * lib/human.c (humblock): Set *options even when returning due to
55702         xstrtoumax conversion failure.  Thanks to a used-uninitialized
55703         warning from gcc-4.
55705 2005-04-09  Jim Meyering  <jim@meyering.net>
55707         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
55708         -Wuninitialized: initialize tm0.tm_year.
55710 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55712         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
55713         count, since there's no maximum.  All uses changed.
55714         Add member dsts_seen.
55715         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
55716         not being INT_MAX.
55717         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
55718         Use pc_rels_seen to decide whther a date is absolute.
55720         * lib/getdate.y (number): Don't overwrite year.
55721         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
55722         check.
55724 2005-04-02  Simon Josefsson  <jas@extundo.com>
55726         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
55727         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
55729 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
55731         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
55732         where no absolute path name can be longer than PATH_MAX.
55734 2005-03-27  Jim Meyering  <jim@meyering.net>
55736         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
55738 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
55740         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
55741         "one's complement" -> "ones' complement" in comment, as per Knuth.
55742         "value of type" -> "type or expression" in comment.
55743         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
55745 2005-03-26  Jim Meyering  <jim@meyering.net>
55747         Comment nits.
55748         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
55749         Correct typos: s/or/of/.
55751 2005-03-26  Jim Meyering  <jim@meyering.net>
55753         * modules/check-include-files: Move to ../ and rename to...
55754         * check-module: ...this.
55756 2005-03-25  Jim Meyering  <jim@meyering.net>
55758         * modules/xvasprintf (Files): Add xalloc.h.
55760 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55762         * modules/gettext (Files): config/config.rpath ->
55763         build-aux/config.rpath
55764         * modules/iconv (Files): Likewise.
55765         Problem reported by Oskar Liljeblad.
55767 2005-03-23  Jim Meyering  <jim@meyering.net>
55769         * modules/check-include-files: New script to check for
55770         missing dependencies, multiple includes, etc.
55772         * modules/c-strtold (Depends-on): Add xalloc.
55773         * modules/c-strtod (Depends-on): Add xalloc.
55774         * modules/hash (Depends-on): Add xalloc.
55775         (Files): Remove lib/xalloc.h.
55777         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
55778         * modules/userspec (Files): Add lib/inttostr.h.
55780 2005-03-23  Jim Meyering  <jim@meyering.net>
55782         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
55784 2005-03-22  Jim Meyering  <jim@meyering.net>
55786         * modules/stat-macros: New module.
55787         * modules/canonicalize, modules/euidaccess, modules/file-type,
55788         * modules/filemode, modules/lchown, modules/makepath,
55789         * modules/rmdir, modules/stat: Depend on new stat-macros module
55790         rather than listing lib/stat-macros.h manually.
55791         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
55793 2005-03-22  Jim Meyering  <jim@meyering.net>
55795         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
55797 2005-03-22  Bruno Haible  <bruno@clisp.org>
55799         * config/srclist.txt: Replace target directory 'config' with
55800         'build-aux'.
55801         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
55802         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
55803         ../build-aux/.
55805 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
55807         * modules/chdir-long (Depends-on): Add mempcpy.
55809         * modules/acl, modules/backupfile, modules/c-strtod,
55810         modules/c-strtold, modules/canon-host, modules/canonicalize,
55811         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
55812         modules/exclude, modules/exitfail, modules/file-type,
55813         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
55814         modules/getdate, modules/getline, modules/getpagesize,
55815         modules/getpass, modules/getugroups, modules/group-member,
55816         modules/hard-locale, modules/hash, modules/human, modules/idcache,
55817         modules/inttostr, modules/long-options, modules/makepath,
55818         modules/md5, modules/memcasecmp, modules/memcoll,
55819         modules/modechange, modules/mountlist, modules/path-concat,
55820         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
55821         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
55822         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
55823         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
55824         modules/strftime, modules/strndup, modules/strverscmp,
55825         modules/timespec, modules/unlocked-io, modules/userspec,
55826         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
55827         modules/yesno:
55828         Remove lib_SOURCES line from Makefile.am section, as this is now
55829         done automatically by the corresponding Autoconf macro.
55831 2005-03-21  Jim Meyering  <jim@meyering.net>
55833         Changes imported from coreutils.
55835         * lib/cycle-check.c: Don't include xalloc.h.
55837         * lib/path-concat.c: Don't include assert.h.
55838         (path_concat): Remove assertion that would have triggered
55839         for ABASE starting with more than one slash.
55840         Reported by Andreas Schwab.
55842         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
55843         properly when ABASE is an absolute file name.
55844         Correct the description of this function.
55845         Include <assert.h>.
55846         Add an assertion and a test driver.
55847         This fixes a bug introduced on 2004-07-02.
55848         Andreas Schwab reported the resulting failure of cp --parents:
55849         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
55851 2005-03-21  Jim Meyering  <jim@meyering.net>
55853         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
55854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
55856 2005-03-21  Jim Meyering  <jim@meyering.net>
55857         and  Paul Eggert  <eggert@cs.ucla.edu>
55859         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
55860         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
55861         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
55862         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
55863         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
55864         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
55865         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
55866         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
55867         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
55868         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
55869         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
55870         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
55871         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
55872         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
55873         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
55874         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
55875         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
55876         for these modules.
55878 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
55880         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
55881         (which shouldn't happen), generate nothing instead of returning 0
55882         immediately, so that nstrftime (NULL, ...) doesn't return 0.
55884 2005-03-16  Bruno Haible  <bruno@clisp.org>
55886         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
55887         HAVE_LONGLONG_64BIT.
55889 2005-03-16  Bruno Haible  <bruno@clisp.org>
55891         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
55892         HAVE_LONGLONG_64BIT.
55894 2005-03-16  Bruno Haible  <bruno@clisp.org>
55896         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
55897         HAVE_LONGLONG_64BIT.
55899 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
55901         * lib/strftime.c (my_strftime): Prepend space to format so that we can
55902         reliably distinguish strftime failure from empty output on POSIX
55903         hosts.
55905 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
55907         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
55908         (iconv_string): Don't guess a size-zero buffer, as that might cause
55909         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
55910         result would be 'too large', where 'too large' is (heuristically)
55911         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
55912         overflow concerns.  This will prevent some unwanted malloc failures
55913         when the inputs are very large.
55915 2005-03-15  Karl Berry  <karl@gnu.org>
55917         * config/srclist.txt (config.rpath): from gettext.
55918         * config/config.rpath: update.
55920 2005-03-15  Bruno Haible  <bruno@clisp.org>
55922         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
55923         to 'negate'.
55925         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
55926         variable.
55928         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
55929         results.
55931 2005-03-14  Simon Josefsson  <jas@extundo.com>
55933         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
55934         <fx@gnu.org>.
55936 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
55938         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
55939         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
55940         intprops.h.
55941         * lib/strtol.c: Likewise.
55943 2005-03-14  Jim Meyering  <jim@meyering.net>
55945         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
55946         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
55947         to be nonzero so that we (and caller) can detect the difference
55948         between a valid zero-length expansion and an error return, even
55949         when the underlying strftime fails before writing anything into
55950         that location.
55952 2005-03-14  Bruno Haible  <bruno@clisp.org>
55954         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
55955         Update from GNU gettext 0.14.3.
55957 2005-03-10  Jim Meyering  <jim@meyering.net>
55959         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
55961 2005-03-10  Jim Meyering  <jim@meyering.net>
55963         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
55964         so that this module works on systems without fchdir.
55966 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
55968         Factor int-properties macros into a single file, except for
55969         glibc-related files.
55970         * lib/intprops.h: New file.
55971         * lib/getloadavg.c: Include it instead of limits.h.
55972         (INT_STRLEN_BOUND): Remove.
55973         * lib/human.c: Include intprops.h.
55974         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
55975         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
55976         302/1000.
55977         * lib/inttostr.h: Include intprops.h instead of limits.h.
55978         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
55979         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
55980         for consistency with intprops.h.
55981         (time_t_is_integer, twos_complement_arithmetic): Use them.
55982         * lib/sig2str.h: Include <signal.h>, intprops.h.
55983         (INT_STRLEN_BOUND): Remove.
55984         * lib/strftime.c (TYPE_SIGNED): Remove.
55985         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
55986         * lib/strtol.c: Adjust comments to match intprops.h.
55987         * lib/userspec.c: Include intprops.h.
55988         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
55989         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
55990         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
55991         instead of rolling our own expressions.
55992         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
55994         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
55995         instead of int.
55996         (my_strftime): Do not mishandle years close to INT_MAX, by doing
55997         the right thing even if adding 1900 would overflow.  Similarly
55998         for tm_mon + 1 and tm_yday + 1.
55999         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56000         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56001         (DO_SIGNED_NUMBER): New macro.
56002         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56004 2005-03-07  Bruno Haible  <bruno@clisp.org>
56006         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56008 2005-03-07  Bruno Haible  <bruno@clisp.org>
56010         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56012 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56014         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56015         (func_import): Only replace files via --import when they have actually
56016         changed.
56018 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56020         * m4/mmap-anon.m4: New file.
56021         * m4/pagealign_alloc.m4: New file.
56023 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56024             Bruno Haible  <bruno@clisp.org>
56026         * modules/pagealign_alloc: New file.
56027         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56029 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56030             Bruno Haible  <bruno@clisp.org>
56032         * lib/pagealign_alloc.h: New file.
56033         * lib/pagealign_alloc.c: New file.
56035 2005-03-03  Bruno Haible  <bruno@clisp.org>
56037         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56038         Use an all-permissive copyright notice, recommended by RMS.
56040 2005-03-02  Bruno Haible  <bruno@clisp.org>
56042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56043         of AIX, the replacement has to be done only after <string.h> is
56044         included, therefore not in config.h. stpncpy.h does the replacement,
56045         and stpncpy.c uses it.
56047 2005-03-02  Bruno Haible  <bruno@clisp.org>
56049         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56050         stpncpy.c uses it.
56052 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56054         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56055         The workaround isn't strictly needed for POSIX conformance, and
56056         it's too much of a pain to configure and maintain.  We'll ask
56057         people to fix their kernels instead.
56058         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56059         (NANOSLEEP_BUG_WORKAROUND): Remove.
56060         (xnanosleep): Remove the workaround.
56062 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56064         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56065         Reported by Derek Price.
56066         (Include): Add "timespec.h".
56068         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56070 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56072         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56073         to detect nanosleep bug.
56075 2005-03-01  Bruno Haible  <bruno@clisp.org>
56077         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56079 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56081         * modules/gethrxtime: New file.
56082         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56083         (Depends-on): Add gethrxtime.
56084         (configure.ac): Add gl_XNANOSLEEP.
56085         (Makefile.am): Remove lib_SOURCES line.
56087 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56089         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56090         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56092 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56094         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56095         * lib/timespec.h (gettime): Return void, since it always
56096         succeeds now.  All uses changed.
56097         * lib/gettime.c (gettime) Likewise.
56098         [HAVE_NANOTIME]: Prefer nanotime.
56099         Assume gettimeofday succeeds, as POSIX requires.
56100         Assime time () succeeds, since other code already does.
56101         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56102         (timespec_subtract): Remove.
56103         (NANOSLEEP_BUG_WORKAROUND): New constant.
56104         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56105         things considerably.  Use it only on GNU/Linux hosts, since the
56106         workaround shouldn't be needed elsewhere.
56108 2005-02-24  Bruno Haible  <bruno@clisp.org>
56110         * modules/gettext (Files): Add m4/glibc2.m4.
56112 2005-02-24  Bruno Haible  <bruno@clisp.org>
56114         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56115         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56116         * m4/progtest.m4:
56117         Update from GNU gettext 0.14.2.
56118         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56120 2005-02-24  Bruno Haible  <bruno@clisp.org>
56122         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56123         * lib/config.charset: Update from GNU gettext 0.14.2.
56125 2005-02-24  Bruno Haible  <bruno@clisp.org>
56127         * lib/gettext.h: Update from GNU gettext 0.14.2.
56129 2005-02-23  Simon Josefsson  <jas@extundo.com>
56131         * m4/iconvme.m4: New file.
56133 2005-02-23  Jim Meyering  <jim@meyering.net>
56135         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56136         change.
56137         Thanks to Bruno Haible for catching it.
56139 2005-02-22  Simon Josefsson  <jas@extundo.com>
56141         * modules/iconvme: New file.
56143         * MODULES.html.sh: Add iconvme.
56145 2005-02-22  Simon Josefsson  <jas@extundo.com>
56147         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56149 2005-02-22  Simon Josefsson  <jas@extundo.com>
56151         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56153 2005-02-22  Jim Meyering  <jim@meyering.net>
56155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56156         s/ifndef/ifdef/.
56158 2005-02-20  Neil Conway  <neilc@samurai.com>
56160         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56161         returned by OSX/Darwin if the specified buffer is not large
56162         enough for the hostname.
56164 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56166         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56167         pass it to _help, otherwise the latter coredumps trying to
56168         dereference state.root_argp.
56170 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56172         * modules/chdir-long (Depends-on): Add memrchr.
56173         * modules/memrchr (Files): Add lib/memrchr.h.
56174         (Include): "memrchr.h".
56176 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56180 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56182         * lib/memrchr.h: New file.
56183         * lib/chdir-long.c: Include it.
56184         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56185         Don't bother including stddef.h.
56187 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56189         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56190         inclusion.
56191         Include <sys/types.h>, for dev_t.
56192         (ME_DUMMY, ME_REMOTE): Move from here....
56193         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56194         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56195         Dmitry V. Levin.
56196         Include mountlist.h first, to test the interface.
56198 2005-01-29  Bruno Haible  <bruno@clisp.org>
56200         * lib/progname.c (program_name): Initialize.
56201         Needed when linking statically on MacOS X.
56203 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56205         Sync from coreutils.
56206         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56207         (Depends-on): Add c-strtod.
56208         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56210 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56212         Sync from coreutils.
56213         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56215         Remove files that are specific to coreutils.
56216         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56218 2005-01-28  Bruno Haible  <bruno@clisp.org>
56220         * modules/javacomp: New file.
56221         * MODULES.html.sh (Java): Add javacomp.
56223 2005-01-28  Bruno Haible  <bruno@clisp.org>
56225         * m4/javacomp.m4: New file, from GNU gettext.
56227 2005-01-28  Bruno Haible  <bruno@clisp.org>
56229         * lib/javacomp.sh.in: New file, from GNU gettext.
56230         * lib/javacomp.h: New file, from GNU gettext.
56231         * lib/javacomp.c: New file, from GNU gettext.
56233 2005-01-26  Simon Josefsson  <jas@extundo.com>
56235         * lib/gai_strerror.c: Use GPL in header.
56237 2005-01-26  Bruno Haible  <bruno@clisp.org>
56239         * modules/javaexec: New file.
56240         * MODULES.html.sh (Java): Add javaexec.
56242 2005-01-26  Bruno Haible  <bruno@clisp.org>
56244         * m4/javaexec.m4: New file, from GNU gettext.
56246 2005-01-26  Bruno Haible  <bruno@clisp.org>
56248         * lib/javaexec.sh.in: New file, from GNU gettext.
56249         * lib/javaexec.h: New file, from GNU gettext.
56250         * lib/javaexec.c: New file, from GNU gettext.
56252 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56254         * modules/lchown (Depends-on): Remove lchown.h
56256 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56258         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56259         must be defined if the header file was not found, in order
56260         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56262 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56264         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56265         initializers for struct pentry_state.
56266         (__argp_error): Check return value of __asprintf
56267         (__argp_failure): Translate error message
56269         * lib/argp-parse.c: Removed braces around the expansion of N_()
56271 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56273         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56274         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56275         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56276         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56277         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56278         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56279         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56280         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56281         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56282         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56283         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56284         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56285         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56286         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56287         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56288         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56289         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56290         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56291         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56292         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56293         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56294         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56295         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56296         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56297         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56298         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56299         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56300         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56301         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56302         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56303         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56304         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
56305         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
56306         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
56307         xstrtol.m4, xstrtoumax.m4, yesno.m4:
56308         Use an all-permissive copyright notice, recommended by RMS.
56310 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56312         * modules/chdir-long (Depends-on): Remove mempcpy.
56314 2005-01-21  Jim Meyering  <jim@meyering.net>
56316         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
56317         same value as for Solaris 9.
56319         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
56320         component length.  This included changing the parameter to be
56321         of type `char *' rather than `char const *'.
56322         * lib/chdir-long.h (chdir_long): Update prototype.
56324         * lib/openat.c (fdopendir, fstatat): New functions.
56325         * lib/openat.h: Include headers required for use of DIR and struct
56326         stat.
56327         [AT_SYMLINK_NOFOLLOW]: Define.
56328         (fdopendir, fstatat): Add prototypes.
56330 2005-01-21  Bruno Haible  <bruno@clisp.org>
56332         * modules/classpath: New file.
56333         * MODULES.html.sh (Java): Add classpath.
56335 2005-01-21  Bruno Haible  <bruno@clisp.org>
56337         * lib/classpath.h: New file, from GNU gettext.
56338         * lib/classpath.c: New file, from GNU gettext.
56340 2005-01-20  Simon Josefsson  <jas@extundo.com>
56342         * modules/version-etc-fsf: New file.
56344 2005-01-20  Simon Josefsson  <jas@extundo.com>
56346         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
56347         * lib/version-etc.c: Remove version_etc_copyright.
56348         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
56349         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
56351 2005-01-20  Simon Josefsson  <jas@extundo.com>
56353         * lib/base64.h (isbase64): Add.
56355         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
56356         using a unsigned prototype, don't inline.
56357         (base64_decode): Use it.
56359 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56361         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
56362         it.
56364 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56366         * lib/save-cwd.c (save_cwd): Remove code to support the case
56367         where fchdir is missing or flaky.
56369 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56371         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
56373 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56375         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
56376         AC_LIBSOURCES now does this.
56377         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
56378         with new ullong_max module.
56380 2005-01-19  Bruno Haible  <bruno@clisp.org>
56382         * modules/sh-quote: New file.
56383         * MODULES.html.sh (Executing programs): Add sh-quote.
56385 2005-01-19  Bruno Haible  <bruno@clisp.org>
56387         * lib/sh-quote.h: New file, from GNU gettext.
56388         * lib/sh-quote.c: New file, from GNU gettext.
56390 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56392         Merge from coreutils.
56393         * m4/ullong_max.m4: New file.
56394         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
56395         (gl_MACROS): Assume localeconv exists.
56397 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56399         Merge changes from coreutils, as described below in several
56400         changelogs dated today.
56402         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
56403         (O_DIRECTORY): Remove; not needed here, since "." must be
56404         a directory.  All uses removed.
56405         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
56406         universal on Suns, and we also need to test for IRIX.
56407         Revamp code to use 'if' rather than '#if'.
56408         Avoid unnecessary comparison of cwd->desc to 0.
56410         * lib/utimens.c (futimens): Robustify the previous patch, by checking
56411         for known valid error numbers rather than observed invalid ones.
56413 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56415         * modules/ullong_max: New file.
56417         * modules/chdir-long, modules/openat: New files.
56418         * modules/save-cwd (Depends-on): Depend on chdir-long.
56419         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
56421 2005-01-18  Jim Meyering  <jim@meyering.net>
56423         Merge from coreutils.
56424         * m4/chdir-long.m4, m4/openat.m4: New files.
56425         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
56426         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
56427         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
56428         is sane and DOES follow symlinks.  Besides, testing 20 different
56429         systems found no broken chown implementations.
56430         Prompted by a change in rsync's copy of this macro.
56431         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
56433         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
56435         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
56436         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
56437         NULL-means-set-to-current-time semantics.
56438         Remove temporary file immediately, rather than waiting
56439         for configure's at-exit trap code to do it.
56441 2005-01-18  Jim Meyering  <jim@meyering.net>
56443         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56445         * lib/utimens.c (futimens): Account for the fact that futimes
56446         can also fail with errno == ENOSYS or errno == ENOENT.
56447         Patch from Dmitry V. Levin.
56449         Change the name of the robust chdir function from chdir to chdir_long.
56450         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
56451         (restore_cwd): Use chdir_long, not chdir.
56452         * lib/chdir-long.c: Renamed from chdir.c.
56453         * lib/chdir-long.h: Renamed from chdir.h.
56454         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
56455         Hurd.
56457 2005-01-18  Bruno Haible  <bruno@clisp.org>
56459         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
56460         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
56461         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
56462         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
56463         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
56464         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
56465         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
56466         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
56467         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
56468         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
56469         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
56470         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
56471         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
56472         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
56473         Use an all-permissive copyright notice, recommended by RMS.
56475 2005-01-18  Bob Proulx  <bob@proulx.com>
56477         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
56478         simplify offsetof() macro construct to avoid compile failure with
56479         native HP-UX 11.0 ANSI C compiler.
56481 2005-01-17  Bruno Haible  <bruno@clisp.org>
56483         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
56484         redundant because stpncpy.m4 takes care of it.
56486 2005-01-17  Bruno Haible  <bruno@clisp.org>
56488         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
56490 2005-01-17  Bruno Haible  <bruno@clisp.org>
56492         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
56493         used.
56495 2005-01-17  Bruno Haible  <bruno@clisp.org>
56497         * lib/fwriteerror.h (fwriteerror): Change specification to include
56498         fclose.
56499         * lib/fwriteerror.c: Include <stdbool.h>.
56500         (fwriteerror): At the end, close the file stream. Record whether
56501         stdout was already closed.
56503 2005-01-17  Bruno Haible  <bruno@clisp.org>
56505         * lib/execute.c (environ): Declare if needed.
56506         * lib/pipe.c (environ): Likewise.
56507         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
56509 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56511         * modules/argp: Depend on vsnprintf
56513 2005-01-10  Jim Meyering  <jim@meyering.net>
56515         * modules/closeout (Depends-on): Add atexit.
56517 2005-01-06  Bruno Haible  <bruno@clisp.org>
56519         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
56521 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56523         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
56524         definitions to be after all include files, to avoid collisions.
56525         Problem reported by Bob Proulx.
56527 2005-01-04  Jim Meyering  <jim@meyering.net>
56529         Changes imported from coreutils.
56530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
56531         as the mkstemp template, use a temporary directory and an
56532         8.3-friendly template to avoid trouble on systems like DJGPP.
56533         Reported by Juan M. Guerrero via Stepan Kasal.
56534         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
56535         close. Remove the temporary directory right away, rather than waiting
56536         for configure's at-exit trap code to do it.
56537         Suggestion from Stepan Kasal.
56539 2005-01-01  Simon Josefsson  <jas@extundo.com>
56541         * gnulib-tool: Print #include directives when --import'ing.
56543 2004-12-28  Simon Josefsson  <jas@extundo.com>
56545         * tests/test-base64.c: Include required header files.  Remove
56546         unused variables.
56548 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56550         * modules/error (Depends-on): Remove gettext.
56552 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56554         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
56555         not needed.  This removes a dependency on the gettext module.
56556         [defined _LIBC]: Do not include <libintl.h>; not needed.
56558 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56560         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
56561         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
56563 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56565         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
56566         HAVE_DECL_STRTOLD.
56568 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56570         * modules/getdate (Depends-on): Remove alloca-opt.
56572 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56574         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
56576 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56578         * lib/argp-parse.c: Include <stddef.h>.
56579         (alignof, alignto): New macros.
56580         (parser_init): Don't assume that void * is aligned sufficiently
56581         for struct option.
56583         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
56584         need to extend the stack.
56585         (YYINITDEPTH): New macro, so that the initial stack isn't overly
56586         large.
56588 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56590         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
56592 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56594         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
56595         (2004-10-24) change.  Apparently this was a false alarm.
56597         * modules/getdate: Depend on alloca-opt, not alloca.
56599 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56601         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
56602         Remove now-obsolete comment about AIX.
56603         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
56604         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
56605         (YYMAXDEPTH): New macro.
56607 2004-12-18  Simon Josefsson  <jas@extundo.com>
56609         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
56611 2004-12-18  Bruno Haible  <bruno@clisp.org>
56613         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
56615 2004-12-18  Bruno Haible  <bruno@clisp.org>
56617         * lib/fatal-signal.c (fatal_signals): Make non-const.
56618         (init_fatal_signals): New function.
56619         (uninstall_handlers, install_handlers): Ignore signals that were set to
56620         SIG_IGN.
56621         (at_fatal_signal): Call init_fatal_signals.
56622         (init_fatal_signal_set): Likewise. Ignore signals that were set to
56623         SIG_IGN.
56624         Reported by Paul Eggert.
56626 2004-12-18  Bruno Haible  <bruno@clisp.org>
56628         * doc/alloca.texi: New file.
56629         * doc/alloca-opt.texi: New file.
56631 2004-12-17  Jim Meyering  <jim@meyering.net>
56633         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
56634         Otherwise, install-sh could exit with improper exit status when
56635         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
56637 2004-12-16  Simon Josefsson  <jas@extundo.com>
56639         * tests/test-base64.c: Add license.
56641 2004-12-15  Stepan Kasal  <address@hidden>
56643         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
56645 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
56647         * modules/getcwd (Files): Add m4/d-ino.m4.
56648         Suggested by Mark D. Baushke.
56650 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56652         * lib/getdate.y (textint): New member "negative".
56653         (time_zone_hhmm): New function.
56654         Expect 14 shift-reduce conflicts, not 13.
56655         (o_colon_minutes): New rule.
56656         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
56657         (yylex): Set the "negative" member of signed numbers.
56659 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56661         * doc/getdate.texi (Time of day items, Time zone items):
56662         Describe new formats +00:00, UTC+00:00.
56664 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56666         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
56667         spurious "-l"s.  Problem reported by Stepan Kasal.
56669 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
56671         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
56672         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
56674 2004-12-04  Simon Josefsson  <jas@extundo.com>
56676         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
56677         Vandoorselaere <yoann@prelude-ids.org>.
56679 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56681         Changes imported from coreutils.
56682         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
56683         exist.
56684         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
56686 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56688         Changes imported from coreutils.
56689         * lib/hard-locale.c: Assume <locale.h> exists.
56690         Include "strdup.h".
56691         (GLIBC_VERSION): New macro.
56692         (hard_locale): Assume setlocale exists.
56693         Rewrite to avoid #ifdef.
56694         Use strdup rather than malloc + strcpy.
56695         * lib/human.c: Assume <locale.h> exists.
56696         (human_readable): Assume localeconv exists.
56698 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56700         * modules/hard-locale (Depends-on): Add strdup.
56702 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56704         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
56705         convert T2, not T.  (Imported from libc.)
56707 2004-11-30  Simon Josefsson  <jas@extundo.com>
56709         * modules/restrict (License): Change to LGPL.
56711 2004-11-30  Simon Josefsson  <jas@extundo.com>
56713         * m4/restrict.m4: Add copyright and copying conditions.
56715 2004-11-30  Simon Josefsson  <jas@extundo.com>
56717         * m4/base64.m4: New file.
56719 2004-11-30  Simon Josefsson  <jas@extundo.com>
56721         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
56722         base64.
56724         * tests/test-base64.c: New file.
56726         * modules/base64: New file.
56728 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
56730         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
56731         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
56733         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
56735 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
56737         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
56738         (__getcwd.c): Don't restore errno; glibc doesn't.
56739         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
56740         first, falling back to our code only if its results look suspicious.
56741         Ensure that the resulting buffer is only as large as necessary.
56743         * lib/readutmp.c: Include readutmp.h first.
56744         Include <errno.h>, since readutmp.h no longer does that.
56745         * lib/readutmp.h: Don't include <errno.h>,
56746         <sys/param.h>, <time.h>; not needed to establish interface.
56747         (errno): Remove decl.
56748         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
56749         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
56750         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
56752 2004-11-28  Simon Josefsson  <jas@extundo.com>
56754         * lib/base64.h, base64.c: New file.
56756 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56758         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
56760 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56762         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
56763         (Depends-on): Remove pathmax, same.  Add mempcpy.
56764         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
56765         (Makefile.am): Append getcwd.h to lib_SOURCES.
56766         (Include): Add getcwd.h.
56767         (Maintainer): Change from Jim Meyering to "all, glibc",
56768         since getdate now uses intended-for-glibc code.
56769         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
56770         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
56772 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56774         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
56775         HP's ANSI C compiler.
56776         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
56777         Declaring int functions causes warnings on some modern systems and
56778         shouldn't be needed to compile on ancient ones.
56779         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
56780         defined.
56782         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
56783         with the following changes.
56784         (__set_errno): Parenthesize properly.
56785         Include <stdbool.h>.
56786         (MIN, MAX, MATCHING_INO): New macros.
56787         (__getcwd): Define with prototype, not K&R form.
56788         Use heuristics to allocate default buffer on stack if possible.
56789         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
56790         behavior, and to avoid the PATH_MAX limit when computing
56791         ../../../../...
56792         Use MATCHING_INO to compare inode number to file.
56793         Check for arithmetic overflow in size calculations.
56794         Fix bug in reallocation of dot array that caused getcwd to fail
56795         on directories nested deeper than 75.
56796         Be more careful about saving errno on error.
56797         Do not use realloc; use only free+malloc, as this is a bit
56798         more flexible and avoids a needless copy operation.
56799         Do not inspect st_dev and st_ino for symbolic links; POSIX
56800         doesn't specify the latter.
56801         Check for closedir errors.
56802         Avoid needless casts.
56803         Use "#ifdef weak_alias" around weak_alias, to be like other
56804         glibc code.
56805         The following changes to getcwd.c have effect only when used in
56806         gnulib; they have no effect inside glibc proper.
56807         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
56808         as alloca isn't used.
56809         (alloca, __alloca): Likewise.
56810         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
56811         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56812         unconditionally, as gnulib assumes C89 or better.
56813         Do not include <sys/param.h>.
56814         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
56815         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
56816         better.
56817         (NULL) [!defined NULL]: Remove; we assume C89 or better.
56818         Include <dirent.h> in a way that is compatible with modern Autoconf.
56819         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
56820         New macros, if not already defined.
56821         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
56822         Use "_LIBC", not "defined _LIBC", for consistency.
56823         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
56824         a mempcpy module.
56825         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
56826         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
56827         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
56828         credit only to Jim Meyering and adjust the copyright dates.
56829         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
56830         <stdlib.h>, <unistd.h>, "pathmax.h".
56831         Instead, include "xgetcwd.h" (first) and "getcwd.h".
56832         (INITIAL_BUFFER_SIZE): Remove.
56833         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
56835 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
56838         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
56839         Use the _ONCE methods, for efficiency.
56840         Check for fcntl.h.  In test program, include <errno.h>
56841         and <fcntl.h> if available.  Remove old K&R cruft from
56842         test program.  Check for common errors in GNU/Linux,
56843         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
56844         don't do AC_LIBOBJ, as that's getcwd.m4's job.
56845         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
56846         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
56847         name accordingly.
56848         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
56849         accommodate new getcwd.c.
56850         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
56851         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
56852         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
56853         that's all we need now.
56855 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56857         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
56858         argp-parse.c depends on getopt internals, that means we should
56859         always use our getopt, to be on the safe side.
56860         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
56861         order not to spoil the result of an eventual previous invocation
56862         of gl_GETOPT_SUBSTITUTE.
56864 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56866         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
56867         redefinition warnings. To avoid them, include the defines
56868         in `#if !defined __need_getopt ... #endif'. The only place
56869         where __getopt_argv_const is used is in definitions
56870         of getopt_long and getopt_long_only below, which are as well
56871         protected by `#ifndef __need_getopt'.
56872         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
56873         __need_getopt after including <stdio.h> and <unistd.h> These
56874         headers might have defined it.
56876 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
56878         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
56880 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
56882         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
56883         (futimens): New function, which uses futimes if available.
56884         (futimens, utimens): Support timespec==NULL, with same semantics
56885         as utime and utimens.
56886         * lib/utimens.h (futimens): New decl.
56888 2004-11-23  Jim Meyering  <jim@meyering.net>
56890         * lib/getopt_.h: Remove trailing blanks.
56892 2004-11-23  Jim Meyering  <jim@meyering.net>
56894         * lib/__fpending.c: Add comment.
56896 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
56898         * modules/canonicalize (Depends-on): Add xreadlink.
56899         Problem reported by James Youngman.
56901 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56903         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
56904         New macros.
56905         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
56906         optopt): Use them instead of invoking ## directly; otherwise, the
56907         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
56909 2004-11-19  Bruno Haible  <bruno@clisp.org>
56911         * lib/strtok_r.c: Move comments from here...
56912         * lib/strtok_r.h: ... to here.
56914 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56916         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
56917         implementations that mishandle size_t overflow.
56919 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56921         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
56922         might fail.  Problem reported by Yoann Vandoorselaere.
56923         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
56924         implementations that mishandle size_t overflow.
56926 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56928         * modules/canon-host (Depends-on): Add strdup.
56930 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56932         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
56934 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56936         * lib/canon-host.c: Include "strdup.h".
56937         (canon_host): Use getaddrinfo if available, so that IPv6 works.
56938         Use strdup instead of malloc/strcpy to duplicate strings.
56940         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
56941         (human_space_before_unit): New constant.
56942         * lib/human.c (human_readable): Support it.
56944         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
56945         (xgetcwd): Set errno correctly when failing.
56946         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
56947         the failure is actually due to a PATH_MAX problem.
56949         Further getopt changes to make it more likely that glibc will
56950         buy the changes back.
56951         * lib/getopt.c (POSIXLY_CORRECT): New constant.
56952         (getopt): Use it, so to preserve glibc semantic
56953         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
56954         when compiling for libc.
56955         * lib/getopt_.h (__getopt_argv_const): Bring it back.
56956         (getopt_long, getopt_long_only): Use it.
56958         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
56959         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
56960         (getopt): Argv is now char * const *, as per standard.
56961         (_getopt_internal_r, _getopt_internal): Argv is now char **,
56962         not char *__getopt_argv_const *.
56963         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
56964         _getopt_long_only_r): Likewise.
56965         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
56966         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
56967         _getopt_long_r, _getopt_long_only_r): Likewise.
56968         * lib/getopt_.h (__getopt_argv_const): Remove.
56969         (getopt): Argv is now char * const *, as per standard.
56971         * lib/getdate.y (tORDINAL): New token.
56972         (day, relunit): Allow it for relative times.
56973         (relative_time_table): Use tORDINAL for ordinals.
56975 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56977         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
56978         Document that "second" isn't allowed as an ordinal number.
56980 2004-11-16  Jim Meyering  <jim@meyering.net>
56982         * modules/closeout (Depends-on): Add fpending.
56984 2004-11-15  Jim Meyering  <jim@meyering.net>
56986         * lib/closeout.c: Include "__fpending.h" once again.
56987         Include <stdbool.h>.
56988         (close_stdout): Don't fail just because stdout was closed initially,
56989         since some programs don't write to stdout in the normal course of
56990         operation (other than --version and --help), and we don't want this
56991         function to make e.g. `touch file >&-' fail.
56992         But do fail if it was closed and someone has tried to write to it.
56993         E.g., `printf foo >&-' must fail.
56995 2004-11-13  Jim Meyering  <jim@meyering.net>
56997         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
56999 2004-11-12  Simon Josefsson  <jas@extundo.com>
57001         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57002         small doc fix is still pending.
57004 2004-11-11  Simon Josefsson  <jas@extundo.com>
57006         * modules/strtok_r: New file.
57008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57009         strtok_r.
57011 2004-11-11  Simon Josefsson  <jas@extundo.com>
57013         * m4/strtok_r.m4: New file.
57015         * m4/getopt.m4: Replace opterr.
57017 2004-11-11  Simon Josefsson  <jas@extundo.com>
57019         * lib/strtok_r.h, strtok_r.c: New file.
57021 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57023         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57024         of replacing opterr, getopt, etc.  This should handle the
57025         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57027 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57029         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57030         we can stop lying to compilers about the constness of argv when we
57031         are compiled outside glibc.
57032         (getopt, getopt_long, getopt_long_only): Use it.
57033         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57034         _getopt_internal, getopt): Likewise.
57035         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57036         _getopt_long_only_r): Likewise.
57037         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57038         _getopt_long_r, _getopt_long_only_r): Likewise.
57040         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57041         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57042         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57043         the other external symbols.
57044         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57045         declaration, since the above renaming now works around collisions.
57047 2004-11-11  Jim Meyering  <jim@meyering.net>
57049         * lib/linebreak.c: Remove trailing blanks.
57050         * lib/alloca_.h: Likewise.
57051         * lib/acosl.c: Likewise.
57052         * lib/euidaccess.c: Likewise.
57053         * lib/allocsa.h: Likewise.
57055 2004-11-10  Simon Josefsson  <jas@extundo.com>
57057         * m4/getaddrinfo.m4: New file.
57059 2004-11-10  Simon Josefsson  <jas@extundo.com>
57061         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57063 2004-11-10  Simon Josefsson  <jas@extundo.com>
57065         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57066         getaddrinfo.
57068         * modules/getaddrinfo: New file.
57070 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57072         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57074 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57076         * lib/mktime.c (SHR): New macro, which is a portable
57077         substitute for >> that should work even on Crays.
57078         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57079         Problem reported by Mark D. Baushke in
57080         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57081         * lib/getdate.y (SHR): Likewise.
57082         (tm_diff): Use it.
57083         * lib/strftime.c (SHR): Likewise.
57084         (tm_diff): Use it.
57085         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57086         quote_these_too, so that right shifts are well defined.  All uses
57087         changed.
57089 2004-11-10  Jim Meyering  <jim@meyering.net>
57091         Ensure that no close failure goes unreported.
57092         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57093         return early when it seems there's nothing to flush.
57094         Don't include __fpending.h.
57096 2004-11-10  Jim Meyering  <jim@meyering.net>
57098         * modules/closeout (Depends-on): Remove fpending.
57100 2004-11-10  Jim Meyering  <jim@meyering.net>
57102         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57104 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57106         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57107         gl_FUNC_STRFTIME.
57108         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57109         and AC_REQUIRE when possible, to avoid duplicate checks.
57110         Check for <wchar.h>.
57112 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57114         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57116 2004-11-09  Bruno Haible  <bruno@clisp.org>
57118         * m4/sockpfaf.m4: New file.
57120 2004-11-05  Bruno Haible  <bruno@clisp.org>
57122         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57123         Reported by Mark D. Baushke <mdb@cvshome.org>.
57125 2004-11-04  Bruno Haible  <bruno@clisp.org>
57127         2004-09-11  Bruno Haible  <bruno@clisp.org>
57128                 * allocsa.valgrind: New file.
57129         2004-02-06  Bruno Haible  <bruno@clisp.org>
57130                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57131                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57132                 Reported by Christopher Seip <chris.seip@hp.com>.
57134 2004-11-04  Bruno Haible  <bruno@clisp.org>
57136         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57137         (Makefile.am): Distribute it.
57139 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57141         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57142         with errno == ERANGE if the buffer is too small.
57143         Problem reported by Mark D. Baushke.
57145 2004-11-03  Albert Chin  <china@thewrittenword.com>
57146             Paul Eggert  <eggert@cs.ucla.edu>
57148         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57149         equivalent, substitute $ac_type for equivalent type rather than
57150         blindly using uint32_t *always* which won't work if uint32_t is not
57151         available.  Define _UINT32_T to work around typedef of uint32_t if
57152         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57153         2.5.1.
57155 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57157         * m4/jm-macros.m4: Sync from coreutils.
57158         (gl_MACROS): Check for mbrlen, for pathchk.
57159         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57161 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57163         * lib/xreadlink.c (MAXSIZE): New macro.
57164         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57165         size does not exceed MAXSIZE.  Avoid cast.
57166         As suggested by Mark D. Baushke in
57167         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57168         if readlink fails with buffer size just under MAXSIZE, try again
57169         with MAXSIZE.
57171 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57173         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57175 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57176         and  Paul Eggert  <eggert@cs.ucla.edu>
57178         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57179         (get_date): Overparenthesize to avoid GCC warning.
57181 2004-11-02  Bruno Haible  <bruno@clisp.org>
57183         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57184         returns void.
57186 2004-11-02  Bruno Haible  <bruno@clisp.org>
57188         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57189         function returns void.
57191 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57193         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57194         fflush_unlocked, flockfile, funlockfile, funlockfile,
57195         fputs_unlocked, putc_unlocked.
57197 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57199         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57200         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57201         already declared.
57203 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57205         * modules/getdate (Files): Add doc/getdate.texi.
57206         (Depends-on): Add setenv, xalloc.
57208 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57210         * lib/getdate.y: Add support for TZ="foo" within a date string.
57211         Fix some bugs near time_t boundaries.  Reject dates with
57212         out-of-range components, e.g., "Sept 31".
57213         Include <stdlib.h>, "setenv.h", "xalloc.h".
57214         (ISDIGIT_LOCALE): Remove; unused.
57215         Note that the TZ and time functions used here are not reentrant.
57216         (mktime_ok, get_tz): New functions.
57217         (TZBUFSIZE): New constant.
57218         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57219         This requires that we sometimes generate our own TZ="XXX..." setting.
57221 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57223         * doc/getdate.texi: New file, from coreutils with modifications for
57224         the new TZ parsing.
57226 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57228         * lib/mktime.c (not_equal_tm): Remove redundant check.
57230 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57232         * modules/regex (lib_SOURCES): Add regex.c.
57233         Reported by James Youngman in
57234         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57236 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57238         * lib/getdate.y: Use Bison 1.875 features, and some minor
57239         code cleanups.  This change does not affect semantics.
57240         Don't include <stdlib.h>; no longer needed.
57241         Don't include unlocked-io.h; only the "#if TEST" code uses
57242         stdio, and performance isn't crucial there.
57243         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57244         Bison 1.875 features as described below.
57245         All uses of "PC." replaced by "pc->".
57246         (YYSTYPE): Add a forward declaration.
57247         (yylex, yyerror): Use full prototypes in forward decls.
57248         Use "%pure-parser" rather than obsolescent "%pure_parser".
57249         Use %parse-param and %lex-param instead of obsolescent
57250         YYPARSE_PARAM and YYLEX_PARAM.
57251         (meridian_table, month_and_day_table, time_units_table,
57252         relative_time_table, time_zone_table, military_table,
57253         lookup_zone, lookup_word, get_date):
57254         Use NULL instead of 0 where appropriate.
57255         (to_hour): Avoid abort (), to avoid a dependency on
57256         stdlib.h.
57257         (yyerror, yylex): Now accepts parser_control * arg.
57258         (main) [TEST]: Use '\0' rather than 0 for char.
57260 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57262         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57264 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57266         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57267         It's now the caller's responsibility to handle the case where
57268         !HAVE_GETPAGESIZE && !defined getpagesize.
57270         * lib/mktime.c (leapyear): Arg is long int, not int.
57272 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57274         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57276 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57278         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57279         missing.  Problem reported by James Youngman.
57281 2004-10-16  Simon Josefsson  <jas@extundo.com>
57283         * gnulib-tool: Fix comments.  Fix parse problem.
57284         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57286 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57288         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57289         implementation of getopt_long.  Problem reported by Alexander Taler in:
57290         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57292 2004-10-15  Bruno Haible  <bruno@clisp.org>
57294         * gnulib-tool: Untabify. Initialize supplied_libname.
57295         (func_usage): More homogenous output.
57296         (func_modules_transitive_closure, func_modules_to_filelist,
57297         func_emit_lib_Makefile_am): New functions.
57298         (func_import): New function, extracted from big case statement. Use
57299         func_get_license, func_modules_transitive_closure,
57300         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57301         opt_lgpl. Don't use test -a, as it's not portable.
57302         (func_create_testdir): Use func_modules_transitive_closure,
57303         func_modules_to_filelist, func_emit_lib_Makefile_am.
57305 2004-10-15  Bruno Haible  <bruno@clisp.org>
57307         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
57309 2004-10-15  Bruno Haible  <bruno@clisp.org>
57311         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
57312         the portions belonging to each module.
57313         Suggested by Derek Robert Price <derek@ximbiot.com>.
57315 2004-10-12  Simon Josefsson  <jas@extundo.com>
57317         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57318         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
57319         to real functions.
57321 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57323         * modules/vsnprintf: New file.
57325 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57327         * m4/vsnprintf.m4: New file.
57329 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57331         * lib/vsnprintf.h: New file.
57332         * lib/vsnprintf.c: New file.
57334 2004-10-11  Bruno Haible  <bruno@clisp.org>
57336         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
57337         vsnprintf.
57339 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57341         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
57343 2004-10-07  Bruno Haible  <bruno@clisp.org>
57345         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
57346         fits into the provided buffer.
57348 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57350         * lib/diacrit.c, diacrit.h: Add GPL notice.
57352         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
57353         notice.
57354         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
57355         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
57356         This avoids a potential constant-folding bug.
57358 2004-10-05  Bruno Haible  <bruno@clisp.org>
57360         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
57361         for the declaration of strsep.
57363 2004-10-05  Bruno Haible  <bruno@clisp.org>
57365         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
57367 2004-10-04  Simon Josefsson  <jas@extundo.com>
57369         * modules/memmem: New file.
57370         * tests/test-memmem.c: New file.
57371         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
57373 2004-10-04  Simon Josefsson  <jas@extundo.com>
57375         * m4/memmem.m4: New file.
57377 2004-10-04  Simon Josefsson  <jas@extundo.com>
57379         * lib/memmem.h: New file.
57380         * lib/memmem.c: New file, taken from glibc.
57382 2004-10-04  Simon Josefsson  <jas@extundo.com>
57384         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
57385         '#ifdef USE_UNLOCKED_IO'.
57387 2004-10-04  Simon Josefsson  <jas@extundo.com>
57389         * config/srclist.txt: Add memmem from glibc.
57391 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57393         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
57395         * modules/argmatch, modules/argp, modules/closeout, modules/error,
57396         modules/exclude, modules/getdate, modules/getline,
57397         modules/getndelim2, modules/getpass, modules/getpass-gnu,
57398         modules/getusershell, modules/linebuffer, modules/md5,
57399         modules/mountlist, modules/posixtm, modules/readtokens,
57400         modules/readutmp, modules/regex, modules/sha1,
57401         modules/version-etc, modules/yesno:
57402         Remove dependency on unlocked-io.
57404 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57406         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
57408         * m4/unlocked-io.m4: Add copyright notice.
57409         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
57411 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57413         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
57414         * lib/xmalloc.c (xmemdup): Likewise.
57415         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
57416         XFREE): Remove these long-obsolescent macros.
57417         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
57418         * lib/xstrdup.c: Remove.
57420         * lib/regex.c (re_comp): Cast gettext return value to char *,
57421         Problem reported by Martin Neitzel via Mark D. Baushke.
57423 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57425         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
57426         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
57427         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
57428         regex.c, sha1.c, version-etc.c, yesno.c:
57429         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
57430         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
57431         the includer's responsibility.
57433         Sync from coreutils.
57435         * lib/modechange.c (mode_compile): Don't decrement a pointer that
57436         points to the start of a string, as the C Standard says the
57437         resulting behavior is undefined.
57439         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
57440         simple -> simple_backups, numbered_existing ->
57441         numbered_existing_backups, numbered -> numbered_backups
57442         to avoid shadowing problems.  All uses changed.
57443         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
57444         * lib/backupfile.c (check_extension, numbered_backup):
57445         Rename locals to avoid shadowing 'basename'.
57446         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
57447         once.
57449         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
57450         * lib/.cvsignore: Add getopt.h.
57452 2004-10-04  Bruno Haible  <bruno@clisp.org>
57454         * modules/README: New file.
57455         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
57456         not a module.
57458 2004-10-02  Jim Meyering  <jim@meyering.net>
57460         * lib/dirfd.h, getpagesize.h: Add copyright notice.
57462 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57464         * modules/strsep: New file.
57466 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57468         * m4/strsep.m4: New file.
57470 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57472         * lib/strsep.h: New file.
57473         * lib/strsep.c: New file.
57475 2004-10-01  Simon Josefsson  <jas@extundo.com>
57477         * lib/snprintf.c (snprintf): Handle size==0.
57479 2004-10-01  Simon Josefsson  <jas@extundo.com>
57480             Bruno Haible  <bruno@clisp.org>
57482         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
57483         (snprintf): Declare 'args'.
57485 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
57487         * lib/snprintf.c: Remove comments as to why each header is needed.
57489 2004-10-01  Bruno Haible  <bruno@clisp.org>
57491         * MODULES.html.sh: Add strsep.
57493 2004-09-30  Simon Josefsson  <jas@extundo.com>
57495         * modules/snprintf: New file.
57497 2004-09-30  Simon Josefsson  <jas@extundo.com>
57499         * m4/snprintf.m4: New file.
57501 2004-09-30  Simon Josefsson  <jas@extundo.com>
57503         * lib/snprintf.h, lib/snprintf.c: New files.
57505 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57507         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
57508         (hol_entry_help): Never translate an empty string.
57509         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
57510         * lib/argp.h (OPTION_NO_TRANS): New option.
57512 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57514         * modules/argp (Maintainer): Replace Simon Josefsson
57515         by Sergey Poznyakoff.
57517 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57519         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
57520         changes merged back into glibc.
57522 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57524         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
57526 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57528         * lib/xvasprintf.c: Include xalloc.h.
57529         (xvasprintf): Use xalloc_die, not xmalloc_die.
57531 2004-09-29  Bruno Haible  <bruno@clisp.org>
57533         * modules/alloca-opt: New file, derived from modules/alloca.
57534         * modules/allocsa: Depend on alloca-opt instead of alloca.
57535         * modules/setenv: Likewise.
57536         * modules/vasnprintf: Likewise.
57537         * MODULES.html.sh: Add alloca-opt.
57539 2004-09-28  Simon Josefsson  <jas@extundo.com>
57541         * gnulib-tool: New parameter --lgpl, to asseert that modules are
57542         LGPL, and to replace license template from GPL to LGPL.
57544 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57546         * modules/dummy: Change license to LGPL.
57548 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57550         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
57552 2004-09-24  Simon Josefsson  <jas@extundo.com>
57554         * modules/minmax (License): Change from GPL to LGPL.
57556 2004-09-23  Simon Josefsson  <jas@extundo.com>
57558         * gnulib-tool (--import): Typo.
57560 2004-09-23  Simon Josefsson  <jas@extundo.com>
57562         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
57564 2004-09-22  Bruno Haible  <bruno@clisp.org>
57566         * modules/*: Add 'License' field.
57567         * gnulib-tool: Accept --extract-license option.
57568         (func_get_license): New function.
57570 2004-09-21  Bruno Haible  <bruno@clisp.org>
57572         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
57573         Reported by Simon Josefsson.
57575 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57577         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
57578         gl_AC_TYPE_LONG_LONG.
57580 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57582         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
57584 2004-09-18  Simon Josefsson  <jas@extundo.com>
57585         and  Paul Eggert  <eggert@cs.ucla.edu>
57587         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
57588         calls with autoreconf.  Define GL_LIB.
57590 2004-09-14  Karl Berry  <karl@gnu.org>
57592         * config/srclist.txt: unsync setenv.c, sigh.
57594 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57596         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
57597         Problem reported by Bruno Haible in:
57598         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
57600 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57602         * config/srclist.txt: Comment out argp-pvh.c.
57604 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
57606         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
57607         in case some system header has #define'd it.  Problem reported by
57608         Soeren D. Schulze in
57609         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
57611 2004-09-09  Karl Berry  <karl@gnu.org>
57613         * regex.[ch]: delete from the root.  These were supposed to be
57614                 synced with emacs cvs, but this has not happened for about
57615                 a year, and anyway nothing else uses emacs regex.[ch].
57616                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
57617                 lib/regex[.ch] is untouched.
57619 2004-09-09  Bruno Haible  <bruno@clisp.org>
57621         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
57623 2004-09-09  Bruno Haible  <bruno@clisp.org>
57625         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
57626         modifications.
57627         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
57629 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57631         * modules/xvasprintf: New file.
57632         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
57634 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57636         * lib/xvasprintf.h: New file.
57637         * lib/xvasprintf.c: New file.
57638         * lib/xasprintf.c: New file.
57640 2004-09-08  Bruno Haible  <bruno@clisp.org>
57642         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
57644 2004-09-08  Bruno Haible  <bruno@clisp.org>
57646         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
57647         length is > INT_MAX.
57648         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
57649         more.
57651 2004-09-08  Bruno Haible  <bruno@clisp.org>
57653         * lib/stdint_.h: New file, taken from GNU clisp.
57655 2004-09-08  Bruno Haible  <bruno@clisp.org>
57656             Oskar Liljeblad  <oskar@osk.mine.nu>
57658         * modules/stdint: New file.
57659         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
57661 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57663         Import from coreutils.
57664         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
57665         strings on unbounded length.  alloca's performance benefits aren't
57666         that important here.
57667         (V_STRDUP): Remove.
57668         (parse_with_separator): New function, with most of the internals
57669         of the old parse_user_spec.  Allow user to omit both user and group,
57670         for compatibility with FreeBSD.
57671         Clone only the user name, not the entire spec.
57672         Do not set *uid, *gid unless entirely successful.
57673         Avoid memory leak in some failing cases.
57674         Fix regression for USER.GROUP reported by Dmitry V. Levin in
57675         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
57676         (parse_user_spec): Rewrite to use parse_with_separator.
57678 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57680         * modules/userspec: Don't depend on alloca.
57682 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57684         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
57686 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57688         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
57689         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
57690         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
57692 2004-08-16  Simon Josefsson  <jas@extundo.com>
57694         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
57695         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
57696         Add --dry-run for --import.
57697         Let user provided command line parameters override configure.ac
57698         settings.
57700 2004-08-12  Simon Josefsson  <jas@extundo.com>
57702         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
57703         as discussed with Paul Eggert in threads rooted at
57704         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
57705         and
57706         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
57707         Before, the test was empty, and relied on ELIDE_CODE in source
57708         code.)
57709         (gl_PREREQ_GETOPT): New macro.
57710         (gl_GETOPT): Use them.
57712 2004-08-12  Simon Josefsson  <jas@extundo.com>
57714         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
57715         * lib/getopt_.h: Renamed from getopt.h.
57717 2004-08-12  Simon Josefsson  <jas@extundo.com>
57719         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
57720         Change default library name from libfoo to libgnu.
57721         Now, if you have a configure.ac that says:
57722                 gl_SOURCE_BASE(gl)
57723                 gl_M4_BASE(gl/m4)
57724                 gl_MODULES(error getopt etcetera)
57725                 gl_INIT
57726         you can import all you need by running:
57727                 ../gnulib/gnulib-tool --import
57729         * modules/getopt (Files): Rename getopt.h to getopt_.h.
57730         (Makefile.am): Rewrite, use logic from argz.
57731         (Include): Use <getopt.h> instead of "getopt.h".
57733 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57735         * modules/argp (Files): Add m4/unlocked-io.m4.
57736         (Depends-on): Add extensions.
57738 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57740         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
57741         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
57742         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
57743         Check for program_invocation_name, program_invocation_short_name,
57744         flockfile, funlockfile, features.h, _getopt_long_only_r.
57746 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57748         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
57749         its complicated substitute.
57750         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
57751         and program_invocation_name.
57752         (__argp_basename) [!_LIBC]: Remove; the only use was
57753         replaced by its body.
57754         (__argp_short_program_name): Change condition from
57755         !defined __argp_short_program_name to
57756         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
57757         to match argp-namefrob.h.
57758         (__argp_failure): Don't assume strerror_r returns char *.
57759         * lib/argp-parse.c (N_): Define unconditionally.
57760         (argp_default_options): Fill out initializers with 0 to avoid
57761         gcc warnings.
57763 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57765         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
57766         getopt1.c.
57768 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57770         Merge from coreutils.
57772         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
57774         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
57775         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
57777 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57779         Merge from coreutils.
57781         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
57782         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
57783         for Reliant Unix 5.43.
57785         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
57786         (union fooround): Use uintmax_t, not long int.
57787         The rest is a merge from libc:
57788         [defined _LIBC]: Include <shlib-compat.h>.
57789         (_obstack) [defined _LIBC]: Remove after 2.3.4.
57791         * lib/settime.c (settime): Recode to avoid warning with
57792         Sun Forte C 6U2.
57794         * lib/strverscmp.c: Convert to UTF-8.
57796 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57798         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57799         m4/uintmax_t.m4.
57801 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57803         * modules/xalloc-die: New file.
57804         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
57806         * modules/md5 (Files): Add m4/uint32_t.m4.
57807         * modules/sha1: Renamed from modules/sha.
57808         (Files):
57809         Rename lib/sha.h to lib/sha1.h.
57810         Rename lib/sha.c to lib/sha1.c.
57811         Rename m4/sha.m4 to m4/sha1.m4.
57812         (lib_SOURCES): Likewise.
57813         (configure.ac): Rename gl_SHA to gl_SHA1.
57814         (Include): sha.h -> sha1.h.
57816 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57818         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
57819         * m4/sha1.m4: Renamed from sha.m4.
57820         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
57822 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57824         * lib/obstack.h (obstack_empty_p):
57825         Don't assume that chunk->contents is suitably aligned.
57826         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
57827         Likewise. Problem reported by Benno in
57828         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
57830         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
57831         readable.  This could be improved further but it'd take some work.
57833 2004-08-08  Simon Josefsson  <jas@extundo.com>
57835         * modules/xgethostname (Depends-on): Remove exit and error (not
57836         used).
57838         * modules/getpass-gnu: Add getpass.h.
57839         (Depends-on): Add stdbool.
57840         * modules/getpass: Add getpass.h.
57842 2004-08-08  Simon Josefsson  <jas@extundo.com>
57844         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
57845         Check getpass declaration.
57847 2004-08-08  Simon Josefsson  <jas@extundo.com>
57849         * lib/xgethostname.c: Don't include error.h (not used).
57851         * lib/getpass.h: Add.
57852         * lib/getpass.c: Include getpass.h first.
57854 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
57856         * lib/xalloc-die.c: New file.
57857         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
57858         All uses removed.
57859         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
57860         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
57861         xalloc-die.c.
57862         (_, N_, xalloc_die): Move to xalloc-die.c.
57863         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
57864         so that we needn't mess with xalloc_msg_memory_exhausted.
57866         * lib/sha1.h: Renamed from sha.h.
57867         (SHA1_H): Renamed from _SHA_H.
57868         (sha1_ctx): Renamed from sha_ctx.
57869         (sha1_init_ctx): Renamed from sha_init_ctx.
57870         (sha1_process_block): Renamed from sha_process_block.
57871         (sha1_process_bytes): Renamed from sha_process_bytes.
57872         (sha1_finish_ctx): Renamed from sha_finish_ctx.
57873         (sha1_read_ctx): Renamed from sha_read_ctx.
57874         (sha1_stream): Renamed from sha_stream.
57875         (sha1_buffer): Renamed from sha_buffer.
57876         * lib/sha1.c: Likewise; renamed from sha.c.
57877         Do not include <sys/types.h>.
57878         Include <stddef.h> rather than <stdlib.h>.
57880 2004-08-08  Bruno Haible  <bruno@clisp.org>
57882         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
57883         FILESYSTEM_PREFIX_LEN.
57884         * lib/progreloc.c: Likewise.
57885         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
57887 2004-08-06  Simon Josefsson  <jas@extundo.com>
57889         * modules/progname (Depends-on): Don't depend on stdbool.
57891 2004-08-06  Simon Josefsson  <jas@extundo.com>
57893         * modules/getsubopt: New file.
57894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57895         getsubopt.
57897 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57899         More merge from coreutils.
57901         * m4/utimens.m4, m4/utimecmp.m4: New files.
57902         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
57903         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
57904         prereq.m4, sha.m4: Import changes from coreutils.
57906 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57908         More merge from coreutils.
57909         * modules/raise, modules/readtokens0, modules/utimens:
57910         * modules/utimecmp, module/xnanosleep: New files.
57911         * modules/strftime: Add lib/strftime.h.
57912         Change include from <time.h> to "strftime.h".
57913         * modules/yesno: Add lib/yesno.h.
57914         * modules/backupfile: Remove lib/addext.c.
57915         * modules/euidaccess: Add stat-macros.h.
57916         * modules/canonicalize, modules/euidaccess,
57917         modules/filemode, modules/lchown, modules/makepath,
57918         modules/rmdir, modules/stat: Likewise.
57920 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57922         Merge from tar.
57923         * lib/argp-help.c (make_hol, hol_append): Don't assume that
57924         SIZE_MAX is a valid preprocessor constant.
57925         (__argp_basename): Change from "#ifndef _LIBC"
57926         to "#ifndef __argp_short_program_name", so that
57927         we don't compile these functions for tar.
57929         More merges from coreutils.
57930         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
57931         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
57932         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
57933         * lib/addext.c: Remove; no longer needed.
57934         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
57935         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
57936         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
57937         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
57938         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
57939         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
57940         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
57941         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
57942         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
57943         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57944         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
57945         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
57946         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
57947         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
57948         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
57949         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
57950         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
57951         Import changes from coreutils.
57953 2004-08-05  Simon Josefsson  <jas@extundo.com>
57955         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
57957 2004-08-05  Simon Josefsson  <jas@extundo.com>
57959         * m4/getsubopt.m4: New file.
57961 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
57963         Merge from coreutils.
57965         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
57966         * m4/getcwd-path-max.m4: New files.
57968         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
57969         FILESYSTEM_PREFIX_LEN ->
57970         FILE_SYSTEM_PREFIX_LEN.
57971         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
57972         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
57973         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
57974         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
57976         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
57977         prerequisite modules now handle the DOS stuff.
57978         Don't check for unistd.h.
57980 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
57982         Merge from coreutils.
57984         * lib/.gdb-history: Remove; this doesn't belong here.
57986         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
57987         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
57988         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
57989         * lib/getcwd.c: New files.
57991         * lib/dirname.h: Include <stdbool.h>.
57992         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
57993         for consistency with POSIX terminology.  All uses changed.
57994         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
57995         (strip_trailing_slashes): Use bool for booleans.
57996         * lib/stripslash.c (strip_trailing_slashes): Likewise.
57998         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
57999         sometimes returns a positive errno value even when it succeeds.
58000         (print_errno_message) [!LIBC]: Fall back on strerror if
58001         __strerror_r fails.
58003         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58004         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58005         (longest_relative_suffix): New function.
58006         (path_concat): Use it.  Assume first argument is not NULL.
58007         Port to DOS.  Omit redundant separators.
58008         Report an error instead of returning NULL.
58009         Use mempcpy instead of memcpy.
58010         (xpath_concat): Remove: not declared or used.
58012         * lib/same.h: Include <stdbool.h>
58013         (same_name): Return bool, not int.
58014         * lib/same.c (same_name): Likewise.
58015         (errno): Don't declare; we assume C89 or better now.
58017         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58018         if not already defined.
58020         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58021         * lib/dup-safer.c (errno): Likewise.
58023 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58025         Merge from coreutils.
58026         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58027         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58028         * modules/path-concat: Don't depend on strdup.
58030 2004-08-03  Simon Josefsson  <jas@extundo.com>
58032         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58033         * lib/progname.h: Don't include stdbool.h.
58035 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58037         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58038         * MODULES.html.sh (func_all_modules): Remove fatal.
58040 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58042         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58044 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58046         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58047         working.
58049 2004-08-02  Simon Josefsson  <jas@extundo.com>
58051         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58052         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58053         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58055 2004-08-01  Simon Josefsson  <jas@extundo.com>
58057         * lib/xgetdomainname.c: Include stdlib.h, for free().
58059 2004-07-19  Bruno Haible  <bruno@clisp.org>
58061         * MODULES.html.sh (func_all_modules): Add dummy.
58063 2004-07-16  Simon Josefsson  <jas@extundo.com>
58065         * modules/dummy: New file.
58067 2004-07-16  Simon Josefsson  <jas@extundo.com>
58069         * lib/dummy.c: New file.
58071 2004-07-16  Bruno Haible  <bruno@clisp.org>
58073         * lib/backupfile.h: Add extern "C" for C++.
58074         * lib/closeout.h: Likewise.
58075         * lib/copy-file.h: Likewise.
58076         * lib/findprog.h: Likewise.
58077         * lib/full-write.h: Likewise.
58078         * lib/pathname.h: Likewise.
58079         * lib/progname.h: Likewise.
58080         * lib/stpcpy.h: Likewise.
58081         * lib/stpncpy.h: Likewise.
58082         * lib/strcase.h: Likewise.
58083         * lib/strstr.h: Likewise.
58084         * lib/xalloc.h: Likewise.
58086         * lib/mbswidth.h: Add extern "C" for C++.
58087         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58089 2004-07-13  Robert Millan  <robertmh@gnu.org>
58091         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58093 2004-07-09  Simon Josefsson  <jas@extundo.com>
58095         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58096         failed without this.)
58098 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58100         * modules/chown (Files): Add lib/fchown-stub.c, since
58101         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58103 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58105         * lib/fchown-stub.c: New file.
58107 2004-06-24  Jim Meyering  <jim@meyering.net>
58109         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58111 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58113         * modules/argz: Omit "#include".
58115         * MODULES.html.sh (func_all_modules): Add calloc, to match
58116         2004-06-01 addition of calloc module.
58118 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58120         * m4/argz.m4: New file, which is autoupdated from libtool.
58122 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58124         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58125         libtool.
58127 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58129         * config/srclist-update: Don't insist on "USA." before the
58130         close-comment, as libtool omits the period and puts the */ on a
58131         separate line.
58132         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58133         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58135 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58137         * modules/argz: New file.
58138         * MODULES.html.sh (func_all_modules): Add argz.
58140 2004-06-12  Jim Meyering  <jim@meyering.net>
58141         and  Paul Eggert  <eggert@cs.ucla.edu>
58143         * modules/hash (Files): Add lib/xalloc.h.
58144         * modules/pipe (Depends-on): Add wait-process.
58145         * modules/stat (Depends-on): Add xalloc.
58146         * modules/userspec (Files): Add lib/userspec.h.
58147         * modules/xstrto
58149         Upgrade from gettext-0.13.
58150         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58151         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58152         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58154 2004-06-10  Jim Meyering  <jim@meyering.net>
58156         * lib/calloc.c: New file.
58158 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58160         * lib/getdate.y (yylex): Allow space between sign and number.
58161         Problem reported by Dan Jacobson.
58163 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58165         Merge from coreutils CVS.
58167         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58168         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58169         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58170         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58171         xstrtol.m4: Fix copyright date and/or serial number.
58173         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58174         See if we need an fchown replacement.
58175         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58176         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58177         and use the replacement function if we detect either defect.
58179         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58180         gl_UTIMECMP.
58182 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58183         and  Jim Meyering  <jim@meyering.net>
58185         Merge from coreutils CVS.
58187         * lib/stat-macros.h: New file, with contents from file-type.h
58188         and coreutils' system.h.
58189         * lib/file-type.c: Include "stat-macros.h".
58190         * lib/file-type.h (file_type): Move all macro definitions to new file,
58191         stat-macros.h.
58193         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58194         Wrap old code with this conditional.
58195         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58196         function that does not dereference symlinks.
58197         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58199         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58200         dependency problems.
58201         (xreadlink): Accept new arg SIZE, for efficiency.
58202         All decls and uses changed.
58203         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58205         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58206         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58208         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58209         sysexits.h.
58211 2004-06-01  Jim Meyering  <jim@meyering.net>
58213         * m4/calloc.m4: New file.
58215 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58217         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58218         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58219         Also, fix a typo in a diagnostic.
58221 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58223         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58224         or AC_FUNC_REALLOC.
58226 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58228         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58229         macros to be defined.
58230         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58231         the allocator returns NULL because the requested size is zero.
58233 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58235         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58236         var.  Add comment explaining why libc still defines it.  This
58237         merges the following patch from glibc:
58238         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58240 2004-05-20  Andreas Schwab  <schwab@suse.de>
58242         * m4/free.m4: Replace free if it not known to work, not the other
58243         way round.
58245 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58247         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58248         present in glibc since revision 1.1 of this file.
58249         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58250         obstack_alignment_mask, obstack_alloc, obstack_base,
58251         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58252         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58253         obstack_grow0, obstack_init, obstack_int_grow,
58254         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58255         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58256         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58257         nonexistent functions.
58259 2004-05-18  Karl Berry  <karl@gnu.org>
58261         * config/srclist.txt: break link for vasnprintf.c.
58263 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58265         Port obstack to the AS/400, where pointers are 16 bytes wide and
58266         you cannot cast an integer to a valid pointer.  This patch is
58267         currently waiting to be integrated into glibc; see
58268         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58270         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58271         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58272         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58273         (struct obstack): temp member is now a union of a pointer and
58274         an integer, instead of an integer.  All integer uses changed.
58275         This does not affect the physical layout of struct obstack,
58276         except on hosts (like the AS/400) where the size or alignment of
58277         void * is greater than that of ptrdiff_t.
58278         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58279         __STDC__)]: Store temporary in pointer member of union, not
58280         integer member.
58281         * lib/obstack.c: Include <stddef.h>, for offsetof.
58282         (struct fooalign): Remove; it doesn't need a name.
58283         (union fooround): Change double to long double, and add void *.
58284         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58285         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58286         not a macro.  Hence the values are always int; so remove all
58287         casts-to-int in uses.
58289 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58291         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58292         we can get this patch merged into glibc.
58294 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58295             Paul Eggert  <eggert@cs.ucla.edu>
58297         * m4/argp: Depend on alloca.
58299 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58300             Paul Eggert  <eggert@cs.ucla.edu>
58302         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58303         freecoding.
58305 2004-05-17  Bruno Haible  <bruno@clisp.org>
58307         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
58308         precision that consists of a '.' followed by an empty digit string.
58309         Patch by Tor Lillqvist <tml@iki.fi>.
58311 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58313         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
58314         for backward compatibility with older code.  We need our own
58315         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
58316         it under some other name, and our alloca.h will define it.
58318 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58319             Derek Price  <derek@ximbiot.com>
58321         * lib/alloca.c: Include <alloca.h>, to get our interface.
58322         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
58323         include <alloca.h> first.  Use C89 prototype for alloca; this
58324         requires including <stddef.h> for size_t.  Use extern "C" if C++.
58325         Use #elif for simplicity, since we can assume C89 now.
58326         Don't try to source the system alloca.h since it will not be found
58327         and to prevent recursively including its replacement.
58328         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
58329         * lib/regex.c: Likewise.
58331 2004-05-16  Derek Price  <derek@ximbiot.com>
58332             Paul Eggert  <eggert@cs.ucla.edu>
58334         getline cleanup.  This changes the getndelim2 API: both order of
58335         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
58336         no delimiter).
58338         * lib/getline.c: Don't include stddef.h or stdio.h, since our
58339         interface does that.
58340         (getline): Always use getdelim, so that we don't have two
58341         copies of this code.
58342         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
58343         if available.
58344         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
58345         (GETNDELIM2_MAXIMUM): New macro.
58346         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
58347         instead of the old practice of delim2==0.  All callers changed.
58348         Return -1 on overflow, instead of returning junk.
58349         Do not set *linesize unless allocation succeeds.
58350         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
58351         that we include sys/types.h.
58352         * lib/getnline.h: Likewise.
58353         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
58354         (getndelim2): Reorder arguments.
58355         * lib/getnline.c (getnline, getndelim):
58356         Don't discard the NMAX argument.
58357         (getnline): Invoke getndelim, to avoid code duplication.
58358         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
58359         of (size_t) -1 by callers of the getnline family.
58361 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58363         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
58364         Check for gettimeofday.
58365         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
58366         Check for settimeofday, stime.
58368 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58370         * lib/nanosleep.c (suspended): Change its type from int to
58371         sig_atomic_t volatile.
58372         (first_call): Make it private to rpl_nanosleep, and have it
58373         be zero initially as that's a bit faster.
58374         (my_usleep): Round up fractional times instead of truncating them,
58375         as this is the usual meaning for 'sleep'.
58377         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
58378         doesn't work.
58379         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
58380         (ENOSYS): Define if not defined.
58381         (settime): Fall back on stime if it exists and settimeofday fails.
58382         But don't bother with fallbacks if a method fails with errno == EPERM.
58384 2004-05-11  Jim Meyering  <jim@meyering.net>
58386         Prior to this change, the save_cwd caller required read access to the
58387         current directory on most systems (ones with the fchdir function).
58389         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
58390         fails, try write-only, and finally, resort to using xgetcwd.
58392 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58394         * lib/obstack.c, obstack.h: Import changes from libc.
58396 2004-04-28  Bruno Haible  <bruno@clisp.org>
58398         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
58399         also implicitly appends .exe to executables.
58400         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
58401         accepts Windows pathnames.
58402         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58403         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58404         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58405         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58406         Reported by Derek Robert Price <derek@ximbiot.com>.
58408 2004-04-21  Karl Berry  <karl@gnu.org>
58410         * config/srclist.txt (localcharset.c): break sync.
58412 2004-04-20  Paul Eggert  <eggert@twinsun.com>
58414         * m4/host-os.m4: Add a copyright notice.
58416 2004-04-20  Jim Meyering  <jim@meyering.net>
58418         Change UTILS_ to gl_ in AC_DEFINE'd names.
58419         Change utils_- and jm_-prefixed variables, too.
58420         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
58421         UTILS_FUNC_MKDIR_TRAILING_SLASH.
58422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
58424         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
58425         Don't emit trailing blanks.
58426         Also rename jm_-prefixed variables to have gl_ prefix.
58428         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
58429         Also rename jm_-prefixed variables to have gl_ prefix.
58431         * m4/jm-macros.m4: Reflect the renamings.
58432         * m4/prereq.m4: Likewise.
58434 2004-04-20  Jim Meyering  <jim@meyering.net>
58436         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
58437         memory.
58439 2004-04-20  Jim Meyering  <jim@meyering.net>
58440             Bruno Haible  <bruno@clisp.org>
58442         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
58443         memory when realloc fails.
58445 2004-04-19  Jim Meyering  <jim@meyering.net>
58447         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
58448         now that readutmp.c may call `free (0)'.
58450 2004-04-19  Bruno Haible  <bruno@clisp.org>
58452         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
58453         * m4/inttypes_h.m4: Likewise.
58454         * m4/stdint_h.m4: Likewise.
58455         * m4/intmax_t.m4: Likewise.
58456         * m4/uintmax_t.m4: Likewise.
58458 2004-04-18  Jim Meyering  <jim@meyering.net>
58460         * m4/prereq.m4: Don't forbid jm_ prefix.
58462         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
58463         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
58464         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
58465         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
58466         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
58467         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
58468         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
58469         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
58470         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
58471         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
58472         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
58473         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
58474         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
58475         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
58476         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
58477         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
58478         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
58479         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
58480         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
58482 2004-04-18  Jim Meyering  <jim@meyering.net>
58484         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
58485         failure, don't leak memory and do call END_UTMP_ENT.
58487 2004-04-16  Jim Meyering  <jim@meyering.net>
58489         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
58490         coreutils' stat program.
58491         (gl_PREREQ): Don't require jm_PREREQ_STAT.
58493 2004-04-11  Paul Eggert  <eggert@twinsun.com>
58495         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
58496         C89.
58497         (CHAR_BIT): Remove, since we assume C89.
58498         Include <stdint.h> if available, as per current Autoconf CVS advice.
58500 2004-03-31  Jim Meyering  <jim@meyering.net>
58502         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
58503         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
58504         * m4/xalloc.m4: Likewise.
58506 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58508         Merge from coreutils.
58510         * m4/inttostr.m4: New file.
58511         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
58512         Require AM_STDBOOL_H and gl_TIMESPEC instead.
58513         Require gl_CLOCK_TIME.
58514         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
58516 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58518         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
58519         not bool, to be more consistent with Unix conventions.
58520         Suggested by Bruno Haible.
58522         Merge from coreutils.
58524         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
58525         * lib/umaxtostr.c: New files.
58527         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
58528         the usual <time.h> dance.
58529         (get_date): Change signature to support fractional time stamps.
58530         All callers changed.
58531         * lib/getdate.y: Include "getdate.h" first, as we can now
58532         assume C89 and don't need to worry about 'const'.
58533         Similarly, include "unlocked-io.h" near start, not in middle.
58534         Include <limits.h>.
58535         (textint.value): Use long int rather than int.
58536         (textint.digits): Use size_t rather than int.
58537         (BILLION, LOG10_BILLION): New constants.
58538         (parser_control): New member rel_ns.  Members day_ordinal,
58539         time_zone, month, day, hour, minutes, rel_year, rel_month,
58540         rel_day, rel_hour, rel_minutes, rel_seconds
58541         are now long int, not int.  Member seconds is now struct timespec,
58542         not int.  New member timespec_seen.  Members dates_seen, days_seen,
58543         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
58544         not int.
58545         (%union.intval): Now long int, not int.
58546         New member timespec.
58547         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
58548         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
58549         (spec): Now is a timespec or an item list.
58550         (timespec, items): New nonterminals.
58551         (time, rel, relunit, number, get_date):
58552         Add support for fractional seconds.
58553         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
58554         (gmtime, localtime, mktime): Remove decls; not needed with C89.
58555         (to_hour): First arg is now long int, not int.
58556         (to_year): Returns long int, not int.
58557         Don't treat year -70 like 70.
58558         (tm_diff): Returns long int, not int.
58559         (lookup_word): Use bool instead of int when appropriate.
58560         (yylex): Use size_t for count, not int.
58561         Detect overflow when parsing large integer constants.
58562         Add support for fractions.
58563         (get_date): Make pointers 'const' if possible.
58564         Use more-portable code to detect integer overflow.
58565         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
58566         Don't use ctime; it's not reliable if the year has >4 digits.
58568         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
58569         This is for compatibility with BSD.
58571         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
58572         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
58573         From coreutils' system.h.
58575         * lib/userspec.c: Don't include "posixver.h".
58576         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
58577         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
58578         compatible extension.  Simplify code by removing a boolean int
58579         that was always nonzero if a string was nonnull.
58581 2004-03-30  Jim Meyering  <jim@meyering.net>
58583         Merge from coreutils.
58585         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
58586         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
58587         on some systems one must include <grp.h> before it.
58588         Reported by Christian Krackowizer.
58590 2004-03-30  Jim Meyering  <jim@meyering.net>
58592         Merge from coreutils.
58594         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
58596         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
58597         an empty input stream.
58599         * lib/readtokens.c: Include <stdbool.h>.
58600         (readtoken): Use `size_t' rather than int/long.
58601         All callers adjusted.
58602         Use `bool' rather than `int' where appropriate.
58603         Use memset rather than an explicit loop.
58604         Use x2nrealloc rather than xrealloc.
58605         Allow the use of `\0' as a delimiter.
58606         (readtokens): Likewise.
58607         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
58609 2004-03-30  Jim Meyering  <jim@meyering.net>
58611         * m4/realloc.m4: Remove file, since now it does no more than
58612         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
58613         the `configure.ac' section of module/realloc.
58614         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
58616 2004-03-30  Bruno Haible  <bruno@clisp.org>
58618         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
58619         nonnull.
58621 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58623         Merge changes to getloadavg.c from coreutils and Emacs.
58625         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
58626         Define to an expression, not to the empty string.
58627         Include cloexec.h and xalloc.h.
58628         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
58629         Use set_cloexec_flag rather than rolling our own.
58630         * lib/cloexec.c, lib/cloexec.h: New files.
58632 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58634         * m4/cloexec.m4: New file.
58636 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58638         * lib/getopt.h: Sync with libc CVS.
58640 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58641             Bruno Haible  <bruno@clisp.org>
58643         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
58644         mbswidth.
58646 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58647             Bruno Haible  <bruno@clisp.org>
58649         * lib/mbswidth.h: Include <wchar.h> only if
58650         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
58651         <wchar.h>.
58652         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
58654 2004-03-09  Paul Eggert  <eggert@twinsun.com>
58656         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
58657         Sync with libc CVS.
58658         * lib/getopt_int.h: New file, also synced from libc.
58660 2004-03-09  Paul Eggert  <eggert@twinsun.com>
58662         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
58663         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
58664         Bring back getopt.c, getopt.h, getopt1.c.
58666 2004-03-07  Paul Eggert  <eggert@twinsun.com>
58668         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
58669         All uses changed.  Check for sa_sigaction member; this fixes
58670         a bug first reported by Jason Andrade in
58671         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
58673 2004-03-07  Paul Eggert  <eggert@twinsun.com>
58675         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
58676         '#if' expressions.  Unlike the code it replaces, it does not
58677         depend on (defined _SC_PAGESIZE).  However, it does depend on
58678         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
58679         first reported by Jason Andrade in
58680         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
58682 2004-02-25  Simon Josefsson  <jas@extundo.com>
58684         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
58686 2004-02-25  Simon Josefsson  <jas@extundo.com>
58688         * lib/strdup.h: New file.
58689         * lib/strdup.c: Include it.
58690         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
58691         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
58693 2004-02-23  Karl Berry  <karl@gnu.org>
58695         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
58696         (from fencepost.gnu.org:/gd/gnuorg).
58698 2004-02-23  Karl Berry  <karl@gnu.org>
58700         * config/srclistvars.sh (GNUORG) [karl]: redefine.
58701         * config/srclist.txt: add maintain/standards documents.
58703 2004-02-18  Bruno Haible  <bruno@clisp.org>
58705         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
58706         Reported by Derek Robert Price <derek@ximbiot.com>.
58708 2004-02-16  Karl Berry  <karl@gnu.org>
58710         * config/mkinstalldirs, install-sh: update from automake.
58712 2004-02-06  Karl Berry  <karl@gnu.org>
58714         * m4/po.m4: update from gettext 0.14.1.
58716 2004-02-06  Karl Berry  <karl@gnu.org>
58718         * lib/config.charset: update from gettext 0.14.1.
58720 2004-02-05  Paul Eggert  <eggert@twinsun.com>
58722         Add comments and code, prompted by suggestions from Bruno Haible
58723         for sh-quote.
58724         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
58725         describing the enum quoting_style values.
58726         * lib/quotearg.c (quotearg_alloc): New function.
58727         (quotearg_buffer_restyled): Treat lone { and } as special.
58728         Treat = as special.  Work around bug with older shells
58729         that "see" a '\' that is really the 2nd byte of a multibyte char.
58730         Quote empty string with shell_quoting_style.
58732 2004-02-03  Bruno Haible  <bruno@clisp.org>
58734         * m4/pipe.m4: New file, from GNU gettext.
58736 2004-02-03  Bruno Haible  <bruno@clisp.org>
58738         * lib/pipe.h: New file, from GNU gettext.
58739         * lib/pipe.c: New file, from GNU gettext.
58741 2004-01-27  Bruno Haible  <bruno@clisp.org>
58743         * m4/execute.m4: New file, from GNU gettext.
58745 2004-01-27  Bruno Haible  <bruno@clisp.org>
58747         * lib/execute.h: New file, from GNU gettext.
58748         * lib/execute.c: New file, from GNU gettext.
58749         * lib/w32spawn.h: New file, from GNU gettext.
58751 2004-01-24  Paul Eggert  <eggert@twinsun.com>
58753         Merge from diffutils.
58755         * lib/file-type.c (file_type): Add typed memory objects.
58756         * lib/file-type.h (S_TYPEISTMO): New macro.
58758         * lib/c-stack.h (c_stack_action): Remove argv argument.
58759         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
58760         (die): Don't calculate message unless segv_action returns.
58761         (get_stack_location, min_address_from_argv, max_address_from_argv,
58762         volatile stack_base, volatile_stack_size): Remove.
58763         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
58764         that every segmentation violation is a stack overflow.  (Ouch!)
58765         See Debian bug 136249 (still outstanding) for more info about why
58766         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
58768 2004-01-24  Paul Eggert  <eggert@twinsun.com>
58770         Exit-status fix from coreutils.
58772         Use exit_failure consistently in place of EXIT_FAILURE,
58773         so that program exit statuses are consistent on failure.
58775         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
58776         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
58777         * lib/argmatch.h: Comment fix to match the above.
58778         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
58779         Now a macro referring to exit_failure, instead of a separate
58780         variable.  Include "exitfail.h" to get it.
58781         * lib/xstrtol.h: Include "exitfail.h".
58782         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
58784         * lib/long-options.c (parse_long_options): Use prototype
58785         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
58786         for clarity.
58788 2004-01-21  Jim Meyering  <jim@meyering.net>
58790         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
58791         so as not to conflict with a different-sized __mktime_internal
58792         function in GNU libc.
58793         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
58794         Problem building statically-linked `ls' reported by Michael Brunnbauer.
58796 2004-01-20  Karl Berry  <karl@gnu.org>
58798         * config/config.guess: update from config.
58800         * config/srclistvars.sh: GNUWWWLICENSES for karl.
58802 2004-01-20  Bruno Haible  <bruno@clisp.org>
58804         Safer stack allocation.
58805         * lib/setenv.c: Include allocsa.h.
58806         (alloca): Remove fallback definition.
58807         (freea): Remove macro.
58808         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
58809         instead of freea.
58811 2004-01-20  Bruno Haible  <bruno@clisp.org>
58813         * m4/eealloc.m4: New file, from GNU gettext.
58815 2004-01-20  Bruno Haible  <bruno@clisp.org>
58817         * m4/allocsa.m4: New file, from GNU gettext.
58819 2004-01-20  Bruno Haible  <bruno@clisp.org>
58821         * lib/xallocsa.h: New file, from GNU gettext.
58822         * lib/xallocsa.c: New file, from GNU gettext.
58824 2004-01-20  Bruno Haible  <bruno@clisp.org>
58826         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
58828 2004-01-20  Bruno Haible  <bruno@clisp.org>
58830         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
58831         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
58832         specially.
58834 2004-01-20  Bruno Haible  <bruno@clisp.org>
58836         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
58837         patch.
58839 2004-01-20  Bruno Haible  <bruno@clisp.org>
58841         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
58843 2004-01-20  Bruno Haible  <bruno@clisp.org>
58845         * lib/eealloc.h: New file.
58847 2004-01-20  Bruno Haible  <bruno@clisp.org>
58849         * lib/binary-io.h: Avoid warnings on Cygwin.
58851 2004-01-20  Bruno Haible  <bruno@clisp.org>
58853         * lib/allocsa.h: New file, from GNU gettext.
58854         * lib/allocsa.c: New file, from GNU gettext.
58856 2004-01-18  Karl Berry  <karl@gnu.org>
58858         * doc/gpl.texi, doc/lgpl.texi: new files.
58860 2004-01-18  Karl Berry  <karl@gnu.org>
58862         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
58863         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
58865 2004-01-15  Paul Eggert  <eggert@twinsun.com>
58867         Merge from coreutils.
58869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
58870         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
58871         (gl_DEFAULT_POSIX2_VERSION): Move
58872         the documentation from 'configure' into 'config.hin',
58873         so that 'configure --help' isn't burdened by it and
58874         we don't have to worry about its formatting there.
58875         Reword the documentation so that it's more succinct
58876         and can be run together into a single paragraph.
58877         * m4/same.m4 (gl_SAME): Check for pathconf.
58879 2004-01-15  Paul Eggert  <eggert@twinsun.com>
58881         Merge from coreutils.
58883         * lib/posixver.c: Include posixver.h.
58885         * lib/same.c: Include <stdbool.h>, <limits.h>.
58886         (_POSIX_NAME_MAX): Define if not defined.
58887         (MIN): New macro.
58888         (same_name): If file names are silently truncated, report
58889         that the file names are the same if they are the same after
58890         the silent truncation.
58892         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
58893         conversion function.
58894         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
58895         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
58896         longer needed.
58898 2004-01-15  Jim Meyering  <jim@meyering.net>
58900         Merge from coreutils.
58902         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
58903         if no library is required.
58904         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
58905         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
58906         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
58907         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
58908         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
58909         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
58910         value, $ac_cv_search_crypt, if it's "none required".
58911         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
58912         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
58913         not gl_FUNC_GETLOADAVG.
58914         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
58915         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
58917 2004-01-15  Jim Meyering  <jim@meyering.net>
58919         Merge from coreutils.
58921         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
58922         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
58923         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
58925         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
58926         optional configure-time default.
58928         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58930         * lib/xreadlink.c (xreadlink): Correct outdated comment.
58932 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
58934         Merge from coreutils.
58936         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
58937         value, $ac_cv_search_nanosleep, if it's "none required".
58939 2004-01-14  Paul Eggert  <eggert@twinsun.com>
58941         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
58942         with like-named macro in fnmatch.c.
58943         (EXT): Use an internal constant instead.
58945         Merge fnmatch patches from glibc.
58946         * lib/fnmatch.c (mbsinit): Remove define.
58947         Add libc_hidden_ver (__fnmatch, fnmatch).
58948         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
58949         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
58951 2004-01-14  Karl Berry  <karl@gnu.org>
58953         * config/install-sh: update from automake.
58955 2004-01-13  Karl Berry  <karl@gnu.org>
58957         * config/install-sh: update from automake.
58959 2004-01-09  Karl Berry  <karl@gnu.org>
58961         * config/install-sh: update from automake.
58963 2004-01-05  Karl Berry  <karl@gnu.org>
58965         * config/config.{sub,guess}: update from config.
58967 2003-12-31  Karl Berry  <karl@gnu.org>
58969         * config/depcomp: update from automake.
58971 2003-12-14  Karl Berry  <karl@gnu.org>
58973         * lib/config.charset: update from gettext-runtime.
58975 2003-12-03  Paul Eggert  <eggert@twinsun.com>
58977         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
58978         Bug reported by Alfred M. Szmidt.
58980 2003-12-03  Bruno Haible  <bruno@clisp.org>
58982         * m4/gettext.m4: Upgrade from gettext-0.13.
58983         * m4/po.m4: Upgrade from gettext-0.13.
58984         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
58985         * m4/intmax.m4: New file, from gettext-0.13.
58986         * m4/printf-posix.m4: New file, from gettext-0.13.
58988 2003-11-29  Karl Berry  <karl@gnu.org>
58990         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
58992 2003-11-25  Paul Eggert  <eggert@twinsun.com>
58993             Bruno Haible  <bruno@clisp.org>
58995         * lib/printf-parse.h: Don't include sys/types.h.
58996         (ARG_NONE): New macro.
58997         (char_directive): Change type of *arg_index fields to size_t.
58998         * lib/printf-parse.c: Don't include sys/types.h.
58999         (SSIZE_MAX): Remove macro.
59000         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59001         Remove unnecessary overflow check.
59002         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59003         fields.
59005 2003-11-25  Bruno Haible  <bruno@clisp.org>
59007         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59009 2003-11-25  Bruno Haible  <bruno@clisp.org>
59011         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59012         gt_TYPE_SSIZE_T.
59014 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59016         * modules/alloca: Remove dependency on xalloc.
59018 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59020         * lib/alloca.c: Remove dependency on xalloc module.
59021         (xalloc_die): Remove.
59022         (memory_full) [!defined emacs]: New macro.
59023         [!defined emacs]: Don't include xalloc.h.
59024         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59025         address arithmetic overflows.  Change datatypes a bit to avoid
59026         unnecessary casts.
59028 2003-11-22  Jim Meyering  <jim@meyering.net>
59030         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59031         s/size/size_t/.
59033 2003-11-21  Karl Berry  <karl@gnu.org>
59035         * config/config.{sub,guess}: update from config.
59037 2003-11-18  Karl Berry  <karl@gnu.org>
59039         * config/config.{sub,guess}: update from config.
59041         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59043 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59045         * README: Mention that S+T cannot overflow if S is the size of
59046         an existing object and T is sufficiently small.
59048 2003-11-17  Jim Meyering  <jim@meyering.net>
59050         On systems without utime and without a utimes function capable of
59051         dealing with a NULL struct utimbuf* argument, this utime replacement
59052         could -- in unusual circumstances -- leak a file descriptor.
59053         * lib/utime.c: Include <unistd.h> and <errno.h>.
59054         (utime_null): Be sure to close `fd' and to preserve errno.
59055         Reported by Geoff Collyer via Arnold Robbins.
59057 2003-11-17  Bruno Haible  <bruno@clisp.org>
59059         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59060         (Depends-on): Add xsize.
59062 2003-11-17  Bruno Haible  <bruno@clisp.org>
59064         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59066 2003-11-17  Bruno Haible  <bruno@clisp.org>
59068         * lib/vasnprintf.c (alloca): Remove fallback definition.
59069         (freea): Remove definition.
59070         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59071         Reported by Paul Eggert.
59073 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59074             Bruno Haible  <bruno@clisp.org>
59076         Protect against address arithmetic overflow.
59077         * lib/printf-args.h: Include stddef.h.
59078         (arguments): Change type of field 'count' to size_t.
59079         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59080         'unsigned int' where appropriate.
59081         * lib/printf-parse.h: Include sys/types.h.
59082         (char_directive): Change type of *arg_index fields to ssize_t.
59083         (char_directives): Change type of fields 'count', max_*_length to
59084         size_t.
59085         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59086         (SSIZE_MAX): Define fallback value.
59087         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59088         instead of 'int' where appropriate. Check a_allocated, d_allocated
59089         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59090         * lib/vasnprintf.c: Include xsize.h.
59091         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59092         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59093         overflow. Avoid wraparound when converting a width or precision from
59094         decimal to binary.
59096 2003-11-16  Bruno Haible  <bruno@clisp.org>
59098         Update from GNU gettext.
59099         * lib/printf-parse.c: Generalize to it can be compiled for wide
59100         strings.
59101         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59102         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59103         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59104         SNPRINTF): New macros.
59105         Don't include <alloca.h> if the file is used inside libintl.
59106         (local_wcslen): New function, for Solaris 2.5.1.
59107         (VASNPRINTF): Use it instead of wcslen.
59109 2003-11-16  Bruno Haible  <bruno@clisp.org>
59111         * lib/xsize.h (xmax): New function.
59112         (xsum, xsum3, xsum4): Declare as "pure" functions.
59114 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59116         * modules/xalloc (Files): Undo latest change, since xalloc.h
59117         no longer needs SIZE_MAX or PTRDIFF_MAX.
59119 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59121         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59122         gl_PTRDIFF_MAX.
59124 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59126         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59127         "return", to pacify some unknown compiler.  Problem reported
59128         by Joerg Schilling.
59130 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59132         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59133         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59134         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59135         heuristic is just as accurate as far as we know, and it removes a
59136         dependency on size_max.m4 and ptrdiff_max.m4.
59138 2003-11-11  Bruno Haible  <bruno@clisp.org>
59140         * modules/xsize (Files): Add m4/size_max.m4.
59141         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59143 2003-11-11  Bruno Haible  <bruno@clisp.org>
59145         * m4/size_max.m4: New file.
59146         * m4/ptrdiff_max.m4: New file.
59147         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59148         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59149         (gl_XALLOC): Invoke it.
59151 2003-11-11  Bruno Haible  <bruno@clisp.org>
59153         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59154         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59155         defined.
59157 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59159         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59160         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59161         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59162         From Bruno Haible.
59163         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59164         not (size_t) -1, since it's defined here.
59166 2003-11-09  Karl Berry  <karl@gnu.org>
59168         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59170 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59172         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59173         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59174         Reject sizes of exactly SIZE_MAX bytes.
59175         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59176         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59178 2003-11-05  Bruno Haible  <bruno@clisp.org>
59180         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59181         SIZE_MAX defined in <limits.h> on Solaris.
59183 2003-11-04  Jim Meyering  <jim@meyering.net>
59185         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59186         variable names, rather than @VAR@.
59187         * modules/poll: Likewise.
59189 2003-11-04  Bruno Haible  <bruno@clisp.org>
59191         * modules/xsize: New file.
59192         * modules/linebreak: Depend on xsize.
59193         * MODULES.html.sh (func_all_modules): Add xsize.
59195 2003-11-04  Bruno Haible  <bruno@clisp.org>
59197         * m4/xsize.m4: New file.
59199 2003-11-04  Bruno Haible  <bruno@clisp.org>
59201         * lib/xsize.h: New file.
59202         * lib/linebreak.c: Include xsize.h.
59203         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59204         argument for overflow.
59205         Suggested by Paul Eggert.
59207 2003-11-03  Karl Berry  <karl@gnu.org>
59209         * config/config.{guess,sub}: update from config.
59211 2003-11-03  Jim Meyering  <jim@meyering.net>
59213         * modules/userspec (lib_SOURCES): Add userspec.h.
59214         (Include): Add "userspec.h".
59215         Improve description.
59217 2003-11-03  Jim Meyering  <jim@meyering.net>
59219         * lib/userspec.c: Include "userspec.h".
59220         * lib/userspec.h: New file.
59222 2003-11-03  Bruno Haible  <bruno@clisp.org>
59224         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59226 2003-11-03  Bruno Haible  <bruno@clisp.org>
59228         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59229         available, to avoid (extremely rare) race condition.
59230         Suggested by Paul Eggert.
59232 2003-11-02  Karl Berry  <karl@gnu.org>
59234         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59236 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59238         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59239         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59240         (read_filesystem_list): Set and use me_type_malloced.
59241         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59242         whatever the type happens to be), for brevity and consistency.
59243         Check for size calculation overflow on Alphas running OSF/1.
59245 2003-10-31  Jim Meyering  <jim@meyering.net>
59247         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59249         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59251 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59252             Bruno Haible  <bruno@clisp.org>
59254         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59255         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59257 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59259         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59260         netbsd*-gnu*.  Suggested by Robert Millan.
59262 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59264         * modules/group-member: Depend on stdbool.
59266 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59268         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59270 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59272         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59273         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59274         after the 'gnu' in these cases.  This fixes some bugs in the
59275         previous change, and is based on suggestions by Robert Millan.
59277 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59279         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59280         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59281         no longer needed.
59282         * lib/quotearg.c (quotearg_n_options): Use it.
59283         * lib/group-member.c: Include <stdbool.h>.
59284         (free_group_info): Arg is now const *; don't free arg.
59285         (get_group_info): Now returns bool and accepts struct group_info *,
59286         rather than returning a malloc'ed struct group_info *.
59287         All uses changed.  Check for overflow in internal size calculation.
59289         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59290         rather than xmalloc/xrealloc.
59291         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59292         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59293         conformance bug: the old code used a pointer after freeing the
59294         storage that it addressed.
59295         * lib/hash.c (hash_initialize): Simplify the code by using
59296         xalloc_oversized rather than doing it by hand.
59297         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59298         the buffer preserved.  Use free and xmalloc instead.
59299         * lib/quotearg.c (quotearg_n_options): Likewise.
59300         Use a simpler test for size overflow.  Don't use xalloc_oversized
59301         because unsigned int might be wider than size_t (!); this suggests
59302         that we should switch from unsigned int to size_t for slot numbers.
59304 2003-10-28  Paul Eggert  <eggert@twinsun.com>
59306         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
59307         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
59308         NetBSD kernels.  Requested by Richard Stallman.
59310 2003-10-27  Paul Eggert  <eggert@twinsun.com>
59312         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
59313         to allocate the returned structure.  Do not allocate a subarray,
59314         as x2nrealloc will do that.
59315         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
59316         instead of xnrealloc.
59317         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
59319 2003-10-27  Bruno Haible  <bruno@clisp.org>
59321         * lib/stdbool_.h: Better support for BeOS.
59323 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59325         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
59326         now uses inline.
59328 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59330         * lib/xalloc.h (xalloc_oversized): New static inline function, for
59331         callers that want to do their own size-overflow checking.  Include
59332         <stdbool.h>, since xalloc_oversized returns bool.
59333         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
59334         to use xalloc_oversized.
59336         Add two functions x2realloc, x2nrealloc, for programs that grow
59337         arrays dynamically by doubling their sizes.
59338         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
59339         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
59340         New functions.
59342         Port to C99 semantics for 'inline' of external functions.
59343         Bug reported by Bruno Haible.
59344         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
59345         with the old contents of xnmalloc.
59346         (xnmalloc, xmalloc): Use it.
59347         (xnrealloc_inline): New static inline function,
59348         with the old contents of xnrealloc.
59349         (xnrealloc, xrealloc): Use it.
59351         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
59352         that.
59354 2003-10-26  Karl Berry  <karl@gnu.org>
59356         * config/srclist.txt (COPYING.DOC): no longer available from
59357         /gd/gnuorg; don't know where the ultimate source is.
59359 2003-10-25  Paul Eggert  <eggert@twinsun.com>
59361         Fix several address-calculation bugs in the hash modules,
59362         plus some minor code cleanup.
59364         * lib/hash.h: Include <stdbool.h>, for bool.
59365         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
59366         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
59367         hash_get_n_entries, hash_get_max_bucket_length,
59368         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
59369         hash_rehash): Use size_t rather than unsigned.
59370         * lib/hash.c (struct hash_table, hash_get_n_buckets,
59371         hash_get_n_buckets_used, hash_get_n_entries,
59372         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
59373         hash_get_entries, hash_do_for_each, hash_string, is_prime,
59374         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
59375         Likewise.
59376         (SIZE_MAX): Define if not defined.
59377         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
59378         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
59379         hash_print):
59380         Use const * when possible.
59381         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
59382         (check_tuning): Fix bug: if tuning parameters were very close to
59383         0 or 1, rounding errors could have caused subscript violations.
59384         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
59385         (hash_initialize): Add 'fail:' label
59386         to free table and return NULL, and use it to simplify code.
59387         Use calloc rather than clearing the storage ourself.
59388         (hash_initialize, hash_rehash): Check for arithmetic overflow in
59389         buffer size calculations.
59390         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
59391         Include <stddef.h>, for size_t.
59392         * lib/hash-pjw.c (hash_pjw): Likewise.
59393         Switch to method described by Bruno Haible.
59394         Include <limits.h>, for CHAR_BIT.
59395         (SIZE_BITS): New macro.
59397 2003-10-23  Paul Eggert  <eggert@twinsun.com>
59399         * m4/getline.m4 (AM_FUNC_GETLINE):
59400         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
59401         hosts.  Problem reported by Derek Robert Price in
59402         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
59403         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
59404         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
59406 2003-10-21  Paul Eggert  <eggert@twinsun.com>
59408         * lib/getndelim2.c (getndelim2): When size calculation overflows,
59409         ceiling the allocation at NMAX bytes rather than silently
59410         discarding input bytes before NMAX is reached.  This makes
59411         a difference only if NMAX exceeds SIZE_MAX / 2.
59413         * lib/obstack.c: Merge from glibc.
59414         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
59415         Add libc_hidden_def (_obstack_newchunk).
59416         (_obstack_free) [! defined _LIBC]: Remove.
59417         [defined _LIBC]: Make a strong alias from obstack_free, rather than
59418         a clone of the function body.
59419         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
59420         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
59422         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
59423         glibc.
59424         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
59425         arg to memcpy.
59427         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
59428         (obstack_ptr_grow_fast, obstack_int_grow_fast):
59429         Don't use lvalue casts, as GCC plans to remove support for them
59430         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
59431         was also present in the non-GCC version, indicating that this
59432         code had always been buggy and had never been widely used.
59433         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
59434         Use the fast variant of each macro, rather than copying the
59435         definiens of the fast variant; that way, we'll be more likely to
59436         catch future bugs in the fast variants.
59438 2003-10-20  Bruno Haible  <bruno@clisp.org>
59440         * modules/wait-process: New file.
59441         * MODULES.html.sh (func_all_modules): Add wait-process.
59443 2003-10-20  Bruno Haible  <bruno@clisp.org>
59445         * m4/wait-process.m4: New file.
59447 2003-10-20  Bruno Haible  <bruno@clisp.org>
59449         * lib/wait-process.h: New file, from GNU gettext.
59450         * lib/wait-process.c: New file, from GNU gettext.
59452 2003-10-19  Jim Meyering  <jim@meyering.net>
59454         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
59455         HPUX 10.20.
59457 2003-10-18  Karl Berry  <karl@gnu.org>
59459         * config/config.guess: update from config.
59461 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59463         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
59464         (getgroups): First arg is int, not size_t.
59465         Don't let 'free' mangle errno.
59467 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59469         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
59471 2003-10-16  Karl Berry  <karl@gnu.org>
59473         * config/config.{guess,sub}: update from config.
59475 2003-10-16  Jim Meyering  <jim@meyering.net>
59477         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
59478         memcpy.
59480 2003-10-15  Paul Eggert  <eggert@twinsun.com>
59482         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
59483         (SIZE_MAX): Remove.
59484         (new_exclude, add_exclude_file): Initial size no longer needs to
59485         be a power of 2.
59486         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
59487         our own address arithmetic overflow checking.
59489         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
59490         (fnmatch): Do not alloca more than 2000 wide characters;
59491         instead, use malloc for large buffers.
59492         Check for address arithmetic overflow, and return -1
59493         with errno set to ENOMEM in that case.
59494         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
59495         (NEW_PATTERN): Do not alloca more than 8000 bytes;
59496         instead, return -1.  Check for address arithmetic overflow.
59498 2003-10-14  Paul Eggert  <eggert@twinsun.com>
59500         Handle invalid suffixes and overflow independently, so that
59501         callers can treat them independently as needed.  Fix some bugs in
59502         suffix handling, e.g., "100k@" was not diagnosed as an invalid
59503         suffix for a human-readable blocksize.  The major caller-visible
59504         change is the addition of a new
59505         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
59506         that both overflow and suffix chars were found.
59508         * lib/human.c (humblock): Don't check separately for invalid suffix
59509         char; that is xstrtoumax's job (now that its bug is fixed).
59510         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
59511         INTMAX_MAX]: New macros.
59512         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
59513         TYPE_MAXIMUM): New macros.
59514         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
59515         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
59516         if overflow occurs, as it's what __strtol does and it's more useful
59517         in practice.
59518         (__xstrtol): If __strtol reports some error other than ERANGE,
59519         reflect it to the caller as LONGINT_INVALID.  If it reports
59520         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
59521         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
59522         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
59523         value.
59524         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
59525         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
59526         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
59527         [defined UINTMAX_MAX]: New macros.
59529 2003-10-14  Bruno Haible  <bruno@clisp.org>
59531         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
59533 2003-10-14  Bruno Haible  <bruno@clisp.org>
59535         * m4/sig_atomic_t: New file, from GNU gettext.
59536         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
59538 2003-10-14  Bruno Haible  <bruno@clisp.org>
59540         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
59541         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
59542         Also use volatile where needed.
59544 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59546         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
59547         Change maintainer from Bruno Haible to 'all'.
59549 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59551         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
59553 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59555         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
59556         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
59557         and define in terms of the other primitives.
59558         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
59559         (SIZE_MAX): Define if not already defined.
59560         (array_size_overflow): New function.
59561         (xalloc_die): Abort instead of exiting if 'error' returns.
59562         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
59563         (xmalloc, xrealloc): Use them.
59564         (xcalloc): Check for address arithmetic overflow.
59565         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
59566         a bit faster than strcpy.
59568 2003-10-10  Simon Josefsson  <jas@extundo.com>
59570         * modules/argp (Depends-on): Add restrict and strcase.
59572 2003-10-10  Simon Josefsson  <jas@extundo.com>
59574         * m4/argp.m4: Add AC_C_INLINE.
59576 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59578         Merge getpass from libc, plus a few fixes.
59580         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
59581         Include <stdbool.h>.
59582         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
59583         __fsetlocking to empty.
59584         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
59585         do include <bits/libc-lock.h>.
59586         Do not include <fcntl.h>; not needed.
59587         [_LIBC]: Include <wchar.h>.
59588         (NOTCANCEL_MODE): New macro.
59589         (flockfile, funlockfile) [_LIBC]: New macros.
59590         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
59591         [!_LIBC]: New macros.
59592         (call_fclose): New function.
59593         (getpass): Use it.  Save tty stream separately; this simplifies the
59594         code and makes it more reliable if stdin happens to equal stdout.
59595         Invoke __fsetlocking on tty.
59596         Handle thread cancellation if needed.
59597         Namespace cleanup (use __tcgetattr, __getline).
59598         Use bool for Booleans.
59599         [USE_IN_LIBIO]: Handle wide streams.
59600         [!_LIBC]: Unconditionally do the fseek, since we don't know what
59601         stream might go where.
59603         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
59604         doesn't have to include <stdio.h> before us.
59605         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
59606         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
59607         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
59608         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
59609         if not declared, so that we can use getpass.c code from libc without
59610         rewriting it.
59611         (flockfile, ftrylockfile, funlockfile): New macros.
59613 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59615         * modules/getpass: Depend on stdbool.
59617 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59619         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
59621 2003-10-07  Karl Berry  <karl@gnu.org>
59623         * config/config.{guess,sub}: update from config.
59625 2003-10-06  Jim Meyering  <jim@meyering.net>
59626             Bruno Haible  <bruno@clisp.org>
59628         This lets translators provide better translations for the
59629         "Written by ..." part of --version output.
59630         * lib/version-etc.h: Include stdarg.h.
59631         (version_etc_copyright): Declare as readonly.
59632         (version_etc): Make this function variadic with a NULL-terminated list
59633         of author name strings.
59634         (version_etc_va): New declaration.
59635         * lib/version-etc.c: Include stdarg.h, stdlib.h.
59636         (version_etc_copyright): Declare as readonly.
59637         (version_etc_va): New function. Provide a different translatable string
59638         for each possible number of authors < 10. Abbreviate when there are 10
59639         authors or more.
59640         (version_etc): Make this function variadic. Call version_etc_va.
59641         Suggestion from Gary V. Vaughan.
59643         * lib/long-options.h (parse_long_options): Change prototype: the
59644         authors string is moved to the end and becomes variadic.
59645         * lib/long-options.c: Include stdarg.h.
59646         (parse_long_options): Make this function variadic, too.
59647         Call version_etc_va, not version_etc.
59649 2003-10-06  Bruno Haible  <bruno@clisp.org>
59651         * modules/version-etc-2: Remove file.
59652         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
59654 2003-10-06  Bruno Haible  <bruno@clisp.org>
59656         * modules/fatal-signal: New file.
59657         * MODULES.html.sh (func_all_modules): Add fatal-signal.
59659 2003-10-06  Bruno Haible  <bruno@clisp.org>
59661         * m4/fatal-signal.m4: New file.
59662         * m4/signalblocking.m4: New file, from GNU gettext.
59664 2003-10-06  Bruno Haible  <bruno@clisp.org>
59666         * lib/version-etc-2.h: Remove file.
59667         * lib/version-etc-2.c: Remove file.
59669 2003-10-06  Bruno Haible  <bruno@clisp.org>
59671         * lib/fatal-signal.h: New file, from GNU gettext.
59672         * lib/fatal-signal.c: New file, from GNU gettext.
59674 2003-10-05  Paul Eggert  <eggert@twinsun.com>
59676         * README: Rework advice for preventing empty .o files.
59677         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
59678         not <sys/types.h>.
59680 2003-10-04  Karl Berry  <karl@gnu.org>
59682         * lib/argp*: update from libc.
59684 2003-10-04  Karl Berry  <karl@gnu.org>
59686         * config/config.{guess,sub}: update from config.
59688 2003-10-02  Bruno Haible  <bruno@clisp.org>
59690         * modules/lchown (Include): Add lchown.h.
59691         * modules/time_r (Include): Use "..." syntax.
59692         * modules/xgetdomainname (Include): Add xgetdomainname.h.
59694 2003-10-01  Simon Josefsson  <jas@extundo.com>
59696         * MODULES.html.sh (func_all_modules): Move gethostname from section
59697         'based on' to section 'lacking' POSIX:2001.
59699 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
59701         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
59702         to output mode on the same stream.
59704 2003-09-29  Paul Eggert  <eggert@twinsun.com>
59706         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
59707         Fix arg typo in previous patch.
59709 2003-09-28  Jim Meyering  <jim@meyering.net>
59711         * lib/error.c: Correct cpp indentation.
59713 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59715         * modules/free: New file.
59717 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59719         * m4/free.m4: New file.
59721 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59723         * lib/minmax.h (MIN, MAX)
59724         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
59725         Omit the special code that used __typeof__, since we worry that
59726         it could be more trouble than it's worth.  See:
59727         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
59728         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
59730         * lib/free.c: New file.
59732 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
59734         Trivial fixes to Makefile.am parts of module listings.
59735         * modules/strstr: Append strstr.h to lib_SOURCES.
59736         * modules/strcase: Likewise, for strcase.h.
59738 2003-09-27  Karl Berry  <karl@gnu.org>
59740         * config/mkinstalldirs: update from automake.
59742 2003-09-26  Paul Eggert  <eggert@twinsun.com>
59744         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
59745         (error_tail): Do not loop, reallocating temporary buffer, since
59746         the output cannot contain more wide characters than the input
59747         contains bytes, the size must be big enough already.  This avoids
59748         one potential size overflow calculation.  Check for size overflow
59749         when calculating temporary buffer size.  Free temporary buffer
59750         when done, if it was allocated with malloc; this plugs a memory
59751         leak.  Remove casts from void * to pointers, that are no longer
59752         needed now that we're assuming C89 or better.
59754         Merge error changes from glibc.
59756         * lib/error.c, error.h: Update copyright notice header to match glibc.
59757         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
59758         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
59759         Disable cancellation while printing error.
59760         * lib/error.h: Prepend __ to parameter names.
59762 2003-09-26  Jim Meyering  <jim@meyering.net>
59764         * lib/error.c (error_tail): Move some declarations
59765         into inner scope where the local variables are used.
59767 2003-09-26  Bruno Haible  <bruno@clisp.org>
59769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
59770         stpncpy().
59771         Don't define stpncpy through config.h; it's now done through stpncpy.h.
59773 2003-09-26  Bruno Haible  <bruno@clisp.org>
59775         * lib/stpncpy.h (gnu_stpncpy): New declaration.
59776         (stpncpy): Define as alias for gnu_stpncpy.
59777         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
59779 2003-09-25  Simon Josefsson  <jas@extundo.com>
59781         * lib/xgetdomainname.h: New file.
59782         * lib/xgetdomainname.c: New file.
59784 2003-09-25  Simon Josefsson  <jas@extundo.com>
59785             Bruno Haible  <bruno@clisp.org>
59787         * modules/getdomainname: New file.
59788         * modules/xgetdomainname: New file.
59789         * MODULES.html.sh (func_all_modules): Add getdomainname,
59790         xgetdomainname.
59792 2003-09-25  Simon Josefsson  <jas@extundo.com>
59793             Bruno Haible  <bruno@clisp.org>
59795         * m4/getdomainname.m4: New file.
59797 2003-09-25  Simon Josefsson  <jas@extundo.com>
59798             Bruno Haible  <bruno@clisp.org>
59800         * lib/getdomainname.h: New file.
59801         * lib/getdomainname.c: New file.
59803 2003-09-25  Karl Berry  <karl@gnu.org>
59805         * lib/argp-fmtstream.c, argp-help.c: update from libc.
59807 2003-09-25  Karl Berry  <karl@gnu.org>
59809         * config/install-sh: update from automake.
59811 2003-09-25  Bruno Haible  <bruno@clisp.org>
59813         * modules/version-etc-2: New file, from modules/version-etc with
59814         modifications.
59815         * MODULES.html.sh (func_all_modules): Add version-etc-2.
59817 2003-09-25  Bruno Haible  <bruno@clisp.org>
59819         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
59820         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
59822 2003-09-24  Simon Josefsson  <jas@extundo.com>
59824         * modules/xgethostname: Add xgethostname.h.
59826 2003-09-24  Paul Eggert  <eggert@twinsun.com>
59828         * lib/linebuffer.c (freebuffer): Don't free the argument, just
59829         the buffer associated with the argument.  Bug reported by
59830         Simon Josefsson.
59832 2003-09-24  Paul Eggert  <eggert@twinsun.com>
59834         * README: Document assumptions that 'int' is at least 32 bits
59835         wide, that integer arithmetic is 2's complement without overflow,
59836         that there are no holes in integer values, that adding sizes of
59837         two nonoverlapping objects can't overflow, and that all-bits-zero
59838         yields scalar zero.  Fix spelling and capitalization typos.
59840 2003-09-19  Karl Berry  <karl@gnu.org>
59842         * lib/argp.h: update from libc.
59844 2003-09-17  Paul Eggert  <eggert@twinsun.com>
59846         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
59847         to avoid spurious warnings like "AC_RUN_IFELSE was called before
59848         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
59850 2003-09-17  Paul Eggert  <eggert@twinsun.com>
59852         * gnulib-tool: Use "test -h", not "test -L", for portability
59853         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
59854         (tags_regexp): Remove, since \| doesn't conform to POSIX.
59855         (sed_extract_prog): Issue s commands one-by-one, rather than
59856         using \| in one s command.
59858 2003-09-16  Paul Eggert  <eggert@twinsun.com>
59860         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
59861         input error, instead of returning NULL the next time we are called
59862         (and therefore losing track of errno).
59864 2003-09-16  Bruno Haible  <bruno@clisp.org>
59866         * gnulib-tool (func_create_testdir): Warn about duplicated
59867         dependencies.
59869 2003-09-15  Paul Eggert  <eggert@twinsun.com>
59871         * modules/argmatch, modules/fatal, modules/obstack,
59872         modules/xalloc, modules/xgethostname: Sort dependencies by
59873         importance, not alphabetically.
59875 2003-09-15  Paul Eggert  <eggert@twinsun.com>
59877         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
59878         fails, so that the caller gets the proper errno.
59880         * lib/readutmp.c (read_utmp): Likewise.
59881         Check for fstat error.  Close stream and free storage
59882         when failing.
59884 2003-09-14  Karl Berry  <karl@gnu.org>
59886         * config/srclist.txt (strdup.c): disable for c89 changes.
59888 2003-09-14  Jim Meyering  <jim@meyering.net>
59890         * lib/getloadavg.c: Correct cpp indentation.
59891         * lib/strdup.c: Likewise.
59892         * lib/vasnprintf.c: Likewise.
59894 2003-09-14  Bruno Haible  <bruno@clisp.org>
59896         * modules/fwriteerror: New file.
59897         * MODULES.html.sh (func_all_modules): Add fwriteerror.
59899 2003-09-14  Bruno Haible  <bruno@clisp.org>
59901         * lib/fwriteerror.h: New file.
59902         * lib/fwriteerror.c: New file.
59904 2003-09-12  Paul Eggert  <eggert@twinsun.com>
59906         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
59907         modules/xgethostname, modules/xalloc: Depend on exit.
59909 2003-09-12  Paul Eggert  <eggert@twinsun.com>
59911         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
59913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
59914         and AC_MINIX, too, so that their extensions are available.
59916         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
59917         This macro has been superseded by gl_BACKUPFILE.
59919         More patches to assume C89 or better.
59921         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
59923         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
59924         unconditionally.
59925         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
59926         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
59927         Include <string.h>, <stdlib.h> unconditionally.
59928         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
59929         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
59930         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
59931         headers or for string.h.
59932         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
59933         or strtoul.
59935         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
59936         headers.
59937         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
59938         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59939         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
59940         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
59941         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59942         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
59943         memcpy, memset.
59944         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
59945         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
59946         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
59947         strtol.
59948         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
59949         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
59950         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
59951         strtoul.
59953 2003-09-12  Paul Eggert  <eggert@twinsun.com>
59955         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
59956         * lib/obstack.c [!defined _LIBC]: Likewise.
59957         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
59958         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
59959         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
59961         More changes to assume C89 or better.
59963         * lib/error.c (error_tail): Assume vprintf.
59965         * lib/argmatch.c (getenv): Remove decl.
59966         * lib/progreloc.c (get_full_program_name): Define via prototype.
59967         * lib/setenv.c (clearenv): Likewise.
59968         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
59969         needed.
59970         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
59971         (malloc, memcpy): Remove decls.
59972         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
59973         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
59974         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
59975         (memcpy): Remove macro.
59976         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
59977         (__P): Remove.  All uses removed.
59978         (PTR): Remove.  All uses changed to void *.
59979         (CHAR_BIT, NULL): Remove.
59980         (spaces, zeros, memset_space, memset_zero)
59981         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
59982         Remove.
59983         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
59984         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
59985         Define with prototype.
59986         Remove now-unnecessary prototype decl.
59987         (extra_args_spec): Assume ANSI C.  All uses changed.
59988         (extra_args_spec_iso): Remove.
59989         (my_strftime, emacs_strftimeu): Define via prototype.
59990         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
59991         unconditionally.
59992         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
59993         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
59994         (strtoul, strtol): Remove decls.
59995         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
59996         LONG_MAX): Remove.
59997         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
59998         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
59999         (LOCALE_PARAM_PROTO): New macro.
60000         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60001         (INTERNAL (strtol), strtol): Define with a prototype.
60002         (PARAMS): Remove.  All uses removed.
60003         * lib/tempname.c: Include <string.h> unconditionally.
60004         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60005         * lib/xgethostname.c (main): Define with a prototype.
60006         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60007         Include <stdlib.h> unconditionally.
60008         (calloc, malloc, realloc, free): Remove decls.
60009         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60010         Include <stdlib.h> unconditionally.  Sort include file names.
60011         (strtod): Remove.
60012         (xstrtod): Define with a prototype.
60013         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60014         (strtol, strtoul): Remove decls.
60016 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60018         More patches to assume C89 or better.
60019         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60020         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60021         string.h, memchr, STDC_HEADERS.
60023 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60025         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60026         Include <stdlib.h>, <string.h> unconditionally.
60027         Remove now-unnecessary cast to char *.
60028         * lib/strnlen.c: Include <string.h> unconditionally.
60029         * lib/yesno.c (yesno): Define with a prototype.
60031 2003-09-11  Bruno Haible  <bruno@clisp.org>
60033         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60035 2003-09-10  Jim Meyering  <jim@meyering.net>
60037         * lib/error.c: Correct indentation of cpp directives.
60039 2003-09-10  Bruno Haible  <bruno@clisp.org>
60041         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60042         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60043         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60044         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60045         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60046         <stdlib.h> and <string.h> checks.
60047         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60048         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60050 2003-09-10  Bruno Haible  <bruno@clisp.org>
60052         * lib/strcspn.c: Include <string.h> unconditionally.
60053         * lib/strpbrk.c: Include <string.h> unconditionally.
60054         * lib/strstr.c: Include <string.h> unconditionally.
60055         * lib/unicodeio.c: Include <string.h> unconditionally.
60056         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60057         * lib/unsetenv.c: Likewise.
60058         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60059         * lib/yesno.c: Include <stdlib.h> unconditionally.
60060         (rpmatch): Add prototype.
60062 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60064         More patches to assume C89 or better.
60065         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60066         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60067         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60068         or for string.h.
60069         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60070         stdlib.h.
60071         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60072         C headers.
60073         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60074         string.h.
60075         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60076         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60077         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60078         or for string.h.
60079         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60080         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60081         C headers.
60082         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60083         memcpy.
60084         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60085         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60086         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60087         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60088         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60089         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60090         string.h, free.
60091         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60092         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60093         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60094         C headers, or for string.h.
60095         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60096         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60097         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60098         headers, memory.h, stdlib.h, string.h, strings.h.
60099         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60100         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60101         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60102         strchr.
60103         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60104         headers, memory.h, string.h.
60105         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60106         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60107         free.
60108         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60109         headers.
60110         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60111         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60112         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60113         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60114         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60116 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60118         More K&R removal.
60120         * lib/acosl.c (main): Use a prototype.
60121         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60122         tanl.c: Likewise.
60124         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60126         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60127         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60128         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60129         with a prototype.
60130         * lib/getopt.c (const): Remove macro.
60131         Include <string.h> unconditionally.
60132         (my_index): Remove; all uses changed to strchr.
60133         (strlen): Remove decl.
60134         (exchange): Remove forward decl; no longer needed.
60135         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60136         Define with prototype.
60137         * lib/getopt1.c (const): Remove macro.
60138         (getopt_long, getopt_long_only, main): Define with prototype.
60140         * lib/getugroups.c: Include <string.h> unconditionally.
60142         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60143         (getusershell, setusershell, endusershell, readname, main):
60144         Define with prototypes.
60146         * lib/group-member.c: Include group-member.h first.
60147         Include <stdlib.h> unconditionally.
60149         * lib/hard-locale.c: Include hard-locale.h first.
60150         Include <stdlib.h>, <string.h> unconditionally.
60152         * lib/hash.c (free, malloc): Remove decls.
60153         Include <stdlib.h> unconditionally.
60155         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60156         (getenv): Do not declare.
60158         * lib/idcache.c: Include <string.h> unconditionally.
60160         * lib/long-options.c: Include long-options.h first, to test interface.
60161         Include <stdlib.h> unconditionally.
60163         * lib/makepath.c: Include makepath.h first, to test interface.
60164         Include <stdlib.h> and <string.h> unconditionally.
60166         * lib/linebuffer.c: Include <stdlib.h>.
60167         (free): Remove decl.
60169         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60170         stddef.h. rpl_malloc returns void *, not char *.
60171         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60172         prototype.
60174         * lib/md5.h: Include <limits.h> unconditionally.
60175         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60176         (__P): Remove; all uses removed.
60177         * lib/md5.c: Include "md5.h" first.
60178         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60179         md5_buffer, md5_process_bytes, md5_process_block):
60180         Define with prototypes.
60181         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60182         * lib/sha.c: Include "sha.h" first.
60183         Include <stdlib.h>, <string.h> unconditionally.
60185         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60186         * lib/memcmp.c (__ptr_t): Likewise.
60187         * lib/memrchr.c (__ptr_t): Likewise.
60188         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60189         Include <string.h> unconditionally.
60190         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60191         * lib/memchr.c: Include <stdlib.h> unconditionally.
60192         * lib/memchr.c (LONG_MAX): Remove.
60193         * lib/memrchr.c (LONG_MAX): Likewise.
60194         * lib/memchr.c (__memchr): Define via a prototype.
60195         * lib/memrchr.c (__memrchr): Likewise.
60196         * lib/memcmp.c (__P): Remove, and remove all uses.
60197         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60198         Remove forward decls; no longer needed.
60199         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60200         Use types required by C89 in prototype.
60202         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60203         * lib/savedir.c: Likewise.
60204         * lib/mkdir.c (free): Remove decl.
60205         * lib/rmdir.c (rmdir): Define with a prototype.
60206         * lib/savedir.c: Include savedir.h first, to test interface.
60208         * lib/mktime.c (STDC_HEADERS): Remove.
60209         Include <stdlib.h>, <string.h> unconditionally.
60211         * lib/modechange.c: Include <stdlib.h> unconditionally.
60212         (malloc): Remove decl.
60214         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60215         (free): Remove decl.
60217         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60218         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60219         (This type really should be intptr_t, but that's a C99ism.)
60220         (_obstack_memcpy): Remove: all uses changed to memcpy.
60221         Include <string.h> unconditionally.
60222         (struct obstack): Assume __STDC__ for types of members
60223         chunkfun, freefun, extra_arg.
60224         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60225         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60226         obstack_begin, obstack_specify_allocation,
60227         obstack_specify_allocation_with_arg, obstack_chunkfun,
60228         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60229         Remove unprototyped decls and the macros that use them.
60230         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60231         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60232         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60233         (defined __STDC__ && __STDC__)]:
60234         Remove nonprototyped code.
60235         Include <stdlib.h> unconditionally.
60236         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60237         _obstack_allocated_p, _obstack_free, obstack_free,
60238         _obstack_memory_used, print_and_abort):
60239         Define using prototypes.
60240         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60241         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60242         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60243         obstack_next_free, obstack_object_size, obstack_room) [0]:
60244         Remove unused, unprototyped code.
60246         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60248         * lib/physmem.c (physmem_total, physmem_available, main): Define
60249         with prototypes.
60251         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60252         (main): Define with a prototype.
60254         * lib/posixver.c (getenv): Remove decl.
60256         * lib/putenv.c (malloc): Returns void *, not char *.
60257         Include <string.h> unconditionally.
60258         (strchr, memcpy, NULL): Do not define.
60260         * lib/readtokens.c: Include readtokens.h first, to test interface.
60261         Include <stdlib.h>, <string.h> unconditionally.
60262         (init_tokenbuffer): Define with a prototype.
60264         * lib/regex.c (PARAMS): Remove.  All uses removed.
60265         All uses of _RE_ARGS removed, too.
60266         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60267         unconditionally.
60268         (bzero): Assume memset exists.
60269         (memcmp, memcpy, NULL): Remove.
60270         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60271         char, or assignments to local vars of type signed char.
60272         (init_syntax_once, PREFIX(extract_number_and_incr),
60273         PREFIX(print_partial_compiled_pattern),
60274         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60275         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60276         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60277         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60278         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60279         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60280         wcs_compile_range, byte_compile_range, truncate_wchar,
60281         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60282         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60283         count_mbs_length, wcs_re_match_2_internal,
60284         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60285         PREFIX(alt_match_null_string_p),
60286         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60287         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60288         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60289         now-unnecessary declaration, if any.
60290         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60291         regcomp, regexec):
60292         Remove now-unnecessary casts among pointer types.
60293         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60295         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60296         (free): Remove decl.
60298         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60300         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60301         (free): Remove decl.
60303         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60304         * lib/xgetcwd.c: Likewise.
60306         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
60307         (free): Remove decl.
60309         * lib/strchrnul.c (strchrnul): Define with a prototype.
60310         Fix bug: c_in was not converted to char before searching.
60312         The following changes are not K&R related:
60314         * lib/group-member.h: Include <sys/types.h>, so that this file is
60315         self-contained.
60316         * lib/makepath.h: Likewise.
60318         * lib/getusershell.c (readname, default_index, line_size, readname):
60319         Use size_t, not int, for sizes.
60320         (readname): If the size overflows, report an error instead of
60321         looping forever.
60323 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60325         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
60326         libc.
60328 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60330         * README: New section: portability guidelines.
60332 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60334         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
60335         C89 spec.
60337 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60339         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
60341 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60343         Assume C89 or better; remove K&R cruft.
60344         A few of these changes were first proposed by Derek Robert Price
60345         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
60347         * lib/addext.c: Include <string.h> unconditionally.
60348         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
60349         Don't declare getenv or malloc.
60351         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
60352         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
60353         (NULL): Remove.
60354         (find_stack_direction, alloca): Use prototypes.
60356         * lib/atexit.c (atexit): Define using a prototype.
60358         * lib/basename.c, dirname.c, stripslash.c:
60359         Include <string.h> unconditionally.
60361         * lib/bcopy.c: Include <stddef.h>.
60362         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
60364         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
60366         * lib/error.h (error, error_at_line, error_print_progname)
60367         [! (defined (__STDC__) && __STDC__)]: Remove decls.
60368         * lib/error.c: Include error.h first, to check interface.
60369         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60370         (VA_START): Remove; all uses changeed to va_start.
60371         (exit, strerror): Remove decls.
60372         (error_print_progname): Prototype uncondionally.
60373         Don't include <errno.h>; no longer needed.
60374         (private_strerror): Remove.
60375         (error_tail): Always define.
60376         (error, error_at_line): Assume C89 or better; always use prototypes.
60377         * lib/fatal.c: Include "fatal.h" first, to test interface.
60378         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60379         (VA_START): Remove; all uses changed to va_start.
60380         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
60381         this case.
60382         (exit): Remove decl.
60383         (fatal): Prototype unconditionally.  Assume va_start works.
60384         Abort at end, to pacify gcc.
60386         * lib/euidaccess.c (main): Define with a prototype.
60388         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
60390         * lib/exitfail.c: Include <stdlib.h> unconditionally.
60392         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
60393         prototypes.
60394         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
60395         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
60396         (getenv): Remove decl.
60397         (fnmatch): Define using a prototype.
60398         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
60399         (FCT): Define using a prototype.
60401         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
60403         * lib/gethostname.c: Include <stddef.h>.
60404         (gethostname): Define with prototype.  Length is size_t, not int.
60406 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60408         Assume C89 or better; remove K&R cruft.
60409         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
60410         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
60411         string.h, getenv, malloc.
60412         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
60413         headers.
60414         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
60415         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
60416         do not check for strerror.
60417         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
60418         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
60419         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
60420         do not check for doprnt or vprintf.
60421         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
60422         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
60424 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60426         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
60427         getversion.c should have been removed then, but was accidentally
60428         preserved.
60430         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
60431         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
60433 2003-09-08  Karl Berry  <karl@gnu.org>
60435         * config/config.sub, config.guess, srclistvars.sh: update from savannah
60436                 config, forget about prep.
60438         * config/depcomp, missing: update from automake.
60440 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60442         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
60443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60445 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60447         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
60448         copy_tm_result.  Bug reported by Simon Josefsson in
60449         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60451 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60453         * m4/time_r.m4: New file.
60454         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
60455         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
60456         is. Check for timegm declaration.
60457         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
60458         Do not check for gmtime_r.
60459         Replace mktime if __mktime_internal does not exist and if mktime
60460         hasn't been replaced already.
60462 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60464         * lib/time_r.c, lib/time_r.h: New files.
60466         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
60467         __localtime_r.
60468         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
60469         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
60471         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
60472         __gmtime_r.
60473         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
60474         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
60475         Include <time_r.h>.
60477         * lib/timegm.c: Switch to glibc implementation, with the following
60478         changes:
60479         [defined HAVE_CONFIG_H]: Include <config.h>.
60480         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
60481         (__mktime_internal) [!defined _LIBC]: New decl.
60482         (__gmtime_r) [!defined _LIBC]: New macro and function.
60483         (timegm): Use a prototype, since gnulib assumes C89.
60484         Do not bother declaring tmp to be const, as it's not really usefu.
60485         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
60486         (timegm): Declare only if HAVE_DECL_TIMEGM.
60488 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60490         * MODULES.html.sh (func_all_modules): Add time_r.
60491         * modules/time_r: New file.
60492         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
60493         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
60495 2003-09-03  Paul Eggert  <eggert@twinsun.com>
60497         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
60498         Bug reported by Lute Kamstra in
60499         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
60501         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
60502         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
60503         course with correspondingly smaller numbers for tomorrow and
60504         yesterday.  From Tadayoshi Funaba.  Originally installed into
60505         sh-utils on 1999-08-07, but the patch got lost (I guess during the
60506         coreutils merge?).
60508 2003-08-31  Simon Josefsson  <jas@extundo.com>
60510         * modules/timegm: New file.
60511         * MODULES.html.sh (func_all_modules): Add timegm.
60513 2003-08-31  Simon Josefsson  <jas@extundo.com>
60515         * m4/timegm.m4: New file.
60517 2003-08-31  Simon Josefsson  <jas@extundo.com>
60519         * lib/timegm.h: New file.
60520         * lib/timegm.c: New file.  Based on
60521         wget-1.8.2/src/http.c:mktime_from_utc.
60523 2003-08-31  Karl Berry  <karl@gnu.org>
60525         * lib/argp.h: update from libc.
60527 2003-08-28  Bruno Haible  <bruno@clisp.org>
60529         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
60530         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
60531         followed by '#define fnmatch fnmatch_posix' gives an error.
60533 2003-08-28  Bruno Haible  <bruno@clisp.org>
60535         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
60536         warning on QNX, which defines O_BINARY to 000000.
60538 2003-08-27  Jim Meyering  <jim@meyering.net>
60540         * m4/mkstemp.m4: Require that the system mkstemp be able to create
60541         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
60542         would fail after 32.  Reported by Danny Levinson.  Details here:
60543         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
60545 2003-08-24  Bruno Haible  <bruno@clisp.org>
60547         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
60548         MSVC7 <stdio.h> is included later.
60550 2003-08-22  Simon Josefsson  <jas@extundo.com>
60552         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
60554 2003-08-20  Karl Berry  <karl@gnu.org>
60556         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
60558 2003-08-20  Bruno Haible  <bruno@clisp.org>
60560         * modules/progname: New file.
60561         * MODULES.html.sh (func_all_modules): Add progname.
60563 2003-08-20  Bruno Haible  <bruno@clisp.org>
60565         * lib/progname.h: New file, from GNU gettext.
60566         * lib/progname.c: New file, from GNU gettext.
60567         * lib/progreloc.c: New file, from GNU gettext.
60569 2003-08-19  Jim Meyering  <jim@meyering.net>
60571         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
60572         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
60574 2003-08-19  Bruno Haible  <bruno@clisp.org>
60576         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
60577         more.
60579 2003-08-19  Bruno Haible  <bruno@clisp.org>
60581         * lib/xstrdup.c: Assume <string.h> exists.
60583 2003-08-18  Paul Eggert  <eggert@twinsun.com>
60585         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
60586         in makefile rules.
60588 2003-08-18  Jim Meyering  <jim@meyering.net>
60590         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
60591         * m4/lib-ld.m4: Likewise.
60593 2003-08-18  Jim Meyering  <jim@meyering.net>
60595         * lib/setenv.h: Indent nested cpp directive.
60596         * lib/vasnprintf.c: Remove trailing blanks.
60598 2003-08-17  Simon Josefsson  <jas@extundo.com>
60600         * modules/xstrndup: New file.
60601         * MODULES.html.sh (func_all_modules): Add xstrndup.
60603 2003-08-17  Simon Josefsson  <jas@extundo.com>
60605         * modules/argp: Fix autoconf macro name. Add more dependencies.
60607 2003-08-17  Simon Josefsson  <jas@extundo.com>
60609         * m4/xstrndup.m4: New file.
60611 2003-08-17  Simon Josefsson  <jas@extundo.com>
60613         * m4/argp.m4: New file.
60615 2003-08-17  Simon Josefsson  <jas@extundo.com>
60616             Bruno Haible  <bruno@clisp.org>
60618         * lib/xstrndup.h: New file.
60619         * lib/xstrndup.c: New file.
60621 2003-08-17  Bruno Haible  <bruno@clisp.org>
60623         * modules/strndup (Files, Include): Add lib/strndup.h.
60625 2003-08-17  Bruno Haible  <bruno@clisp.org>
60627         * modules/euidaccess (Files): Add lib/euidaccess.h.
60629 2003-08-17  Bruno Haible  <bruno@clisp.org>
60631         * lib/strndup.h: New file.
60633 2003-08-17  Bruno Haible  <bruno@clisp.org>
60635         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
60636         like AC_GNU_SOURCE.
60637         * modules/extensions (configure.ac): Comment out the invocation of
60638         gl_USE_SYSTEM_EXTENSIONS.
60640 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60642         Merges from coreutils, etc.
60643         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
60644         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
60645         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
60646         fixing a typo.
60647         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
60648         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
60650 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60652         Document merge from coreutils.
60653         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
60654         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
60655         * modules/utime: Add m4/utimes-null.m4.
60657 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60659         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
60660         space, undoing this 2003-08-12 change:
60661         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
60663 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60665         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
60666         strtoul.c from libc, undoing this 2003-08-12 change:
60667         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
60669 2003-08-16  Jim Meyering  <jim@meyering.net>
60671         Merges from coreutils.
60672         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
60673         prefix.  Adjust cache variables similarly.  Create 500 rather than
60674         just 300 files, to exercise bug on Darwin6.5, too.
60675         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
60676         $missing_dir.
60677         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
60678         AM_SYS_POSIX_TERMIOS.
60679         Reported by mkc@mathdogs.com.
60680         Also change use of $am_cv_sys_posix_termios
60681         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
60682         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
60683         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
60684         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
60685         in /proc/mounts until it finds one with matching device number.  This
60686         is unnecessary when the FILE argument *is* a mount point.  No stat call
60687         is necessary in that case.  So, disable the statvfs-testing code on
60688         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
60689         as RedHat bug# 84846.
60690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
60691         to 1MB, so as not to render systems with no stack size limit (e.g.,
60692         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
60693         Include <unistd.h>.  On some systems,
60694         it is required for the definition of _SC_PAGESIZE.
60696 2003-08-16  Jim Meyering  <jim@meyering.net>
60698         Merge from coreutils.
60699         * lib/xstrtoimax.c: #else #if -> #elif.
60700         * lib/xstrtoumax.c: Likewise.
60702 2003-08-16  Jim Meyering  <jim@meyering.net>
60704         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
60705         * m4/utimes.m4: Removed.
60706         * m4/utimes-null.m4: Renamed from utimes.m4.
60708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
60709         to 1MB, so as not to render systems with no stack size limit (e.g.,
60710         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
60711         Include <unistd.h>.  On some systems,
60712         it is required for the definition of _SC_PAGESIZE.
60714 2003-08-16  Jim Meyering  <jim@meyering.net>
60715         and Paul Eggert  <eggert@cs.ucla.edu>
60717         Merges from coreutils, etc.
60719         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
60720         using the latest version from cvs.  This avoids problems with #line
60721         directives using a vendor (Sun) compiler.
60722         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
60723         Don't set GETGROUPS_LIB here; now it's
60724         done via getgroups.m4's wrapper function.
60725         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
60726         rather than just in sh-util/configure.in, so that the
60727         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
60728         same.
60729         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
60730         AC_FUNC_GETLOADAVG where to find getloadavg.c.
60731         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
60732         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
60733         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
60734         Remove code that is now done by the newly-required macros.
60735         Append $(EXEEXT) to DF_PROG.
60736         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
60737         Do not invoke or require the following here,
60738         since prereq.m4 or some gnulib .m4 now does this for us:
60739         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
60740         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
60741         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
60742         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
60743         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
60744         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
60745         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
60746         AC_FUNC_OBSTACK.
60747         Do not replace the following functions, as this is now the job
60748         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
60749         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
60750         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
60751         atexit getpass, strdup, getpagesize.
60752         Replace 'raise'.
60753         Do not check for the following functions, as this is now the job
60754         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
60755         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
60756         setregid.
60757         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
60758         Check for sys/sysctl.h.
60759         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
60760         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
60761         of checking for ssize_t ourselves.
60763         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
60764         Require every macro that gnulib/modules/* suggests for us.
60765         (jm_PREREQ_ADDEXT): New macro.
60766         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
60767         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
60769         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
60770         (gl_PHYSMEM): Use it.
60771         Also check for `table' function.
60772         Check for new headers and functions.
60773         Add check for sys/sysmp.h.
60774         With suggestions from Kaveh Ghazi.
60775         Ignore headers that are present but cannot be compiled.  This
60776         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
60777         C 5.4.
60779 2003-08-15  Paul Eggert  <eggert@twinsun.com>
60781         Document merge from coreutils.
60782         * modules/userspec: Depend on posixver.
60783         * modules/strftime: Depend on tzset.
60785 2003-08-15  Paul Eggert  <eggert@twinsun.com>
60787         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
60788         rather than tab, after '#' in shell-script copyright notices.
60789         Suggested by Bruno Haible.
60791 2003-08-15  Paul Eggert  <eggert@twinsun.com>
60793         * config/srclist-update: Use three spaces, rather than tab, after '#'
60794         in shell-script copyright notices.  Suggested by Bruno Haible.
60795         Remove unnecessary parenthesization in regular expression.
60797 2003-08-15  Jim Meyering  <jim@meyering.net>
60799         Merge from coreutils.
60800         * lib/xgethostname.c: Include <stdlib.h>.
60801         (xghostname): Don't exit for anything other than memory-related
60802         failure; just return NULL.
60803         * lib/userspec.c: Include "posixver.h".
60804         (parse_user_spec): Accept `.' as a separator only
60805         in pre-POSIX-200112 mode.
60806         * lib/strtoimax.c: Use #elif rather than #else #if.
60807         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
60808         Remove function, now that we can rely on a working tzset function.
60809         [!_LIBC]: Ensure that the required autoconf test has been run.
60810         [!defined _NL_CURRENT && HAVE_STRFTIME]:
60811         Use underlying_strftime for %r.
60812         * lib/sha.c: Merge in some clean-up and optimization changes from
60813         glibc.
60814         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
60815         Ensure that it is a multiple of 64.
60816         Rearrange loop exit tests so as to avoid performing an
60817         additional fread after encountering an error or EOF.
60818         * lib/realloc.c: Update copyright date.
60820 2003-08-15  Jim Meyering  <jim@meyering.net>
60821         and Paul Eggert  <eggert@twinsun.com>
60823         Merge from coreutils.
60824         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
60825         member but strut utmpx does not.  Needed for AIX 4.3.3.
60826         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
60828 2003-08-15  Jim Meyering  <jim@meyering.net>
60829         and Paul Eggert  <eggert@cs.ucla.edu>
60831         Merges from coreutils, etc.
60832         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
60833         Require gl_FUNC_TZSET_CLOBBER.
60834         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
60835         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
60836         members.
60838 2003-08-14  Paul Eggert  <eggert@twinsun.com>
60840         Help the merge from coreutils.
60841         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
60842         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
60843         * m4/tzset.m4: Use it too.
60845 2003-08-14  Paul Eggert  <eggert@twinsun.com>
60847         * modules/tzset: New file.
60849 2003-08-14  Jim Meyering  <jim@meyering.net>
60851         Merges from coreutils.
60852         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
60853         variable names, rather than @FNMATCH_H@.
60854         * modules/alloca: Likewise for $(ALLOCA_H).
60856         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
60857         the three copies of the literal target, `fnmatch.h'.
60858         * modules/alloca (alloca.h): Likewise.
60860 2003-08-14  Jim Meyering  <jim@meyering.net>
60862         Merge from coreutils.
60863         * m4/tzset.m4: New file.
60864         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
60865         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
60866         otherwise, AIX 5.1 systems would end up using the latter.
60867         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
60868         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
60869         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
60870         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
60872 2003-08-14  Jim Meyering  <jim@meyering.net>
60874         Merge from coreutils.
60875         * lib/obstack.h: Whitespace changes.
60876         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
60877         and xcalloc return values.
60878         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
60879         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
60880         hang on OSF/1 5.1 for DIR on both local and remote file systems.
60881         Reported by (and fix confirmed by) Nelson H. F. Beebe.
60882         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
60883         error from mntctl.
60884         Use mntctl's return value to drive the entry-processing loop, since
60885         we can't rely on the value of the vmt_length member in the last
60886         entry.  On some systems doing so could result in exhausting
60887         virtual memory.  Based in part on a patch from Mike Jetzer.
60889 2003-08-14  Jim Meyering  <jim@meyering.net>
60890         and Paul Eggert  <eggert@twinsun.com>
60892         Merges from coreutils, plus other fixes.
60893         * lib/physmem.c: Merge in portability changes from gcc/libiberty
60894         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
60895         for credits and details.  Thanks to Kaveh Ghazi for helping
60896         to keep these files in sync.
60897         (ARRAY_SIZE): Define it.
60898         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
60899         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
60900         (memcasecmp): Don't assume size_t fits in unsigned int.
60901         Remove casts and duplicate code.
60902         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
60903         (memcpy): Remove definition.
60904         Merge in some clean-up and optimization changes from glibc.
60905         [BLOCKSIZE]: Move definition to top of file.
60906         Ensure that it is a multiple of 64.
60907         Rearrange loop exit tests so as to avoid performing an
60908         additional fread after encountering an error or EOF.
60909         * lib/md5.h (md5_uintptr): Define.
60910         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
60911         return to the initial working directory.  Preserve errno
60912         for caller.
60913         * lib/idcache.c: Include "xalloc.h".
60914         (xmalloc, xrealloc): Remove decls.
60915         (getuser): Remove casts no longer required in C89.
60916         * lib/human.c: Include stdio.h, for sprintf.
60917         * lib/group-member.c: Include "xalloc.h".
60918         (xmalloc, xrealloc): Remove decls.
60919         (get_group_info): Remove casts no longer required in C89.
60920         * lib/getusershell.c (readname): Remove casts no longer required in
60921         C89.
60922         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
60923         * lib/getline.c: Whitespace fix, from coreutils.
60925 2003-08-13  Paul Eggert  <eggert@twinsun.com>
60927         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
60928         Check for isascii.
60930         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
60931         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
60932         Undo previous (whitespace-only) change.
60934 2003-08-13  Paul Eggert  <eggert@twinsun.com>
60936         * lib/exclude.c: Include <ctype.h>
60937         (IN_CTYPE_DOMAIN): New macro.
60938         (is_space): New fn.
60939         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
60940         and empty lines.
60942         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
60943         Undo previous (whitespace-only) change.
60945 2003-08-13  Paul Eggert  <eggert@twinsun.com>
60947         * config/srclist-update: Change update back to the old behavior,
60948         leaving whitespace alone.  Use one 'sed' command rather than a
60949         pipeline.
60950         (fixlicense): Now a variable, not a function.
60951         (remove_trailing_blanks): Remove.
60952         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
60953         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
60954         Undo previous (whitespace-only) change.
60956 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60958         Merge from coreutils.
60959         * modules/euidaccess: Add lib_SOURCES, include for new
60960         file euidaccess.h
60962 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60964         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
60965         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
60966         Normalize leading white space and remove trailing white space.
60968         Merge from coreutils
60969         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
60971         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
60972         0.12.1.  These files are now being upgraded automatically by
60973         ../config/srclist-update.
60975 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60977         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
60978         Normalize leading white space and remove trailing white space.
60979         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
60980         notice, as per ../config/srclist-update.
60982         Merge from coreutils.
60983         * lib/euidaccess.h: New file.
60984         * lib/euidaccess.c: Include it.
60985         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
60986         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
60987         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
60989 2003-08-12  Paul Eggert  <eggert@twinsun.com>
60991         * config/srclist-update: Add copyright notice.
60992         (remove_id_lines, remove_trailing_blanks): New constants.
60993         (fixfile): Use them to normalize spacing a bit in copied files.
60994         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
60995         Normalize leading white space and remove trailing white space.
60997         * config/texinfo.tex: Sync with texinfo.
60999         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61000         strtoul.c from libc, to merge coreutils whitespace changes.
61002         * config/srclist.txt: Get the following m4 files from gettext:
61003         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61004         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61005         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61006         wint_t.m4.
61008 2003-08-12  Karl Berry  <karl@gnu.org>
61010         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61011         been made.
61013 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61015         * modules/gnu-source, m4/gnu-source.m4:
61016         Remove; we're assuming Autoconf 2.54 or later now.
61017         Suggested by Bruno Haible.
61018         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61020 2003-08-11  Bruno Haible  <bruno@clisp.org>
61022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61024 2003-08-11  Bruno Haible  <bruno@clisp.org>
61026         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61027         (vasnprintf): Use it instead of wcslen.
61029 2003-08-11  Bruno Haible  <bruno@clisp.org>
61031         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61032         value to ensure that _Bool promotes to int. Use #define for _Bool when
61033         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61035 2003-08-10  Karl Berry  <karl@gnu.org>
61037         * lib/regex.h: update from libc (whitespace fix).
61039 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61041         Merge some files from coreutils.  These changes were
61042         originally made by Jim Meyering.
61043         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61044         many older Unixes require this.
61045         * lib/alloca.c (alloca): Remove cast to argument of free;
61046         no longer needed in C89.
61047         * lib/alloca_.h, regex.h: Fix white space to match
61048         what GNU indent does.
61050 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61052         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61053         apparently Emacs's Unicode mode got confused before my 2003-08-05
61054         checkin.
61056 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61058         * m4/extensions.m4: New file.
61059         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61060         Require gl_USE_SYSTEM_EXTENSIONS.
61061         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61062         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61064 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61066         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61067         * modules/extensions, modules/gnu-source: New files.
61068         * modules/timespec, modules/unlocked-io: Depend on extensions.
61070 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61072         * modules/restrict: New file.
61073         * MODULES.html.sh (func_all_modules): Add restrict.
61074         * modules/regex: Depend on restrict.
61076 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61078         * m4/restrict.m4: New file.
61079         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61081 2003-08-07  Bruno Haible  <bruno@clisp.org>
61083         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61084         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61086 2003-08-07  Bruno Haible  <bruno@clisp.org>
61088         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61089         makes the module 'getndelim2' compatible with the module 'getline'.
61091 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61093         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61094         byte with "\201" to avoid glitches when editing that source file
61095         with multi-gnome-terminal.
61097 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61099         * lib/bumpalloc.h: Remove.
61101 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61103         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61104         * modules/bumpalloc: Remove.
61106 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61108         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61109         GNU coding style.
61111         Merge from coreutils.
61112         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61113         1. From glibc.
61114         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61115         from Karl Berry, implemented by Jim Meyering.
61116         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61117         from Dmitry V. Levin.
61118         Remove anachronistic cast of xrealloc.
61119         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61120         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61121         type. Otherwise, it wouldn't compile with at least /bin/cc on
61122         ymp-cray-unicos9.0.2.X.
61123         Combine two mostly-identical uses of alloca into one.
61124         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61126 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61128         [From Emacs.]
61130         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61131         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61132         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61133         obsolete NLIST_NAME_UNION.
61134         [__GNU__]: Undef BSD and FSCALE.
61135         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61137 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61139         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61140         an enum type, so that it's guaranteed to promote to int.  See:
61141         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61143 2003-08-03  Karl Berry  <karl@gnu.org>
61145         * config/depcomp: update from automake.
61147 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61149         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61150         (strerror): Don't assume that a printable int fits in 14 bytes.
61152 2003-07-31  Bruno Haible  <bruno@clisp.org>
61154         * modules/getpass-gnu: New file.
61155         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61157 2003-07-31  Bruno Haible  <bruno@clisp.org>
61159         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61161 2003-07-24  Karl Berry  <karl@gnu.org>
61163         * config/missing: update from automake.
61165 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61166             Bruno Haible  <bruno@clisp.org>
61168         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61169         * lib/getline.c (getline, getdelim): Likewise.
61170         Remove _GNU_SOURCE define; now it's defined in config.h through
61171         m4/getline.m4.
61173 2003-07-23  Karl Berry  <karl@gnu.org>
61175         * config/config.sub: update from prep.
61177 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61179         * modules/xalloc (Depends-on): Add exitfail.
61180         * modules/xmemcoll: Likewise.
61182 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61184         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61185         over-parenthesization in macros.
61187         Sync with coreutils.
61189         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61190         required by C99.
61192         Use `exit_failure' for xalloc and xmemcoll instead of their own
61193         private exit-failure variables.
61194         * lib/xalloc.h (xalloc_exit_failure): Remove.
61195         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61196         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61197         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61198         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61199         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61201 2003-07-20  Jim Meyering  <jim@meyering.net>
61203         * modules/closeout (Depends-on): Add exitfail.
61204         Suggestion from Bruno Haible.
61206 2003-07-19  Karl Berry  <karl@gnu.org>
61208         * config/config.sub: update from prep.
61210 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61212         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61213         Remove.
61214         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61215         to test that it can stand by itself.  Include "exitfail.h".
61216         Clients should set exit_failure instead.
61217         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61219 2003-07-18  Bruno Haible  <bruno@clisp.org>
61221         * modules/getndelim2: New file.
61222         * modules/getline: Share files with module getndelim2.
61223         * modules/getnline: Depend on getndelim2 instead of sharing files with
61224         it. Add getnline.c to lib_SOURCES.
61225         * MODULES.html.sh (func_all_modules): Add getndelim2.
61227 2003-07-18  Bruno Haible  <bruno@clisp.org>
61229         * m4/getndelim2.m4: New file.
61230         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61231         invoke gl_PREREQ_GETNDELIM2.
61232         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61233         gl_PREREQ_GETNDELIM2.
61234         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61235         gl_GETNDELIM2.
61237 2003-07-18  Bruno Haible  <bruno@clisp.org>
61239         * lib/getndelim2.h: New file.
61240         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61241         getndelim2.h.
61242         (getndelim2): Make non-static. Change return type to ssize_t.
61243         * lib/getline.h: Change argument names.
61244         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61245         * lib/getnline.c: Include getndelim2.h.
61247 2003-07-18  Andreas Schwab  <schwab@suse.de>
61249         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61251 2003-07-17  Karl Berry  <karl@gnu.org>
61253         * config/config.sub: update from prep.
61255 2003-07-17  Bruno Haible  <bruno@clisp.org>
61257         * modules/getnline: New file.
61258         * modules/getline: Add lib/getndelim2.c to source file list.
61259         * MODULES.html.sh (func_all_modules): Add getnline.
61261 2003-07-17  Bruno Haible  <bruno@clisp.org>
61263         * m4/getnline.m4: New file.
61265 2003-07-17  Bruno Haible  <bruno@clisp.org>
61267         * m4/Makefile.am.in: Remove file.
61268         * m4/Makefile.am: Remove file.
61269         * m4/Makefile.in: Remove file.
61271 2003-07-17  Bruno Haible  <bruno@clisp.org>
61273         * lib/getnline.h: New file.
61274         * lib/getnline.c: New file.
61275         * lib/getndelim2.c: New file, extracted from getline.c.
61276         (getndelim2): Renamed from getdelim2, with added nmax argument.
61277         * lib/getline.c: Include getndelim2.c.
61278         (getdelim2): Moved out to getndelim2.c.
61279         (getline, getdelim): Update.
61281 2003-07-17  Bruno Haible  <bruno@clisp.org>
61283         * lib/Makefile.am: Remove file.
61284         * lib/Makefile.in: Remove file.
61286 2003-07-17  Bruno Haible  <bruno@clisp.org>
61288         * configure.in: Remove file.
61289         * Makefile.in: Remove file.
61291 2003-07-17  Bruno Haible  <bruno@clisp.org>
61293         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61295 2003-07-16  Karl Berry  <karl@gnu.org>
61297         * config/srclist-update: was running fixlicense twice, which caused
61298                 texinfo.tex to be nullified for some reason.  Simplify,
61299                 $gplsrc is no longer needed as far as I can see?
61301 2003-07-16  Jim Meyering  <jim@meyering.net>
61303         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61305 2003-07-15  Paul Eggert  <eggert@twinsun.com>
61307         * config/srclist.txt: Get the following files from gettext-runtime/intl
61308         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
61309         ref-del.sin.  From Bruno Haible.
61310         * config/srclist-update (fixfile): Change grep pattern again, since the
61311         previous fix didn't work (there was another trailing $).  Use
61312         '[$]' to escape the $s.
61314 2003-07-15  Karl Berry  <karl@gnu.org>
61316         * lib/vasnprintf.c: update from gettext.
61318 2003-07-15  Karl Berry  <karl@gnu.org>
61320         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
61321         gets expanded when surrounded by '$'.
61323 2003-07-15  Jim Meyering  <jim@meyering.net>
61325         * modules/save-cwd: Don't depend on error.  From Derek Price.
61327 2003-07-15  Jim Meyering  <jim@meyering.net>
61329         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
61331 2003-07-14  Simon Josefsson  <jas@extundo.com>
61333         * modules/mempcpy: New file.
61334         * MODULES.html.sh (func_all_modules): Add mempcpy.
61336 2003-07-14  Simon Josefsson  <jas@extundo.com>
61338         * m4/mempcpy.m4: New file.
61340 2003-07-14  Simon Josefsson  <jas@extundo.com>
61342         * lib/mempcpy.h: New file.
61343         * lib/mempcpy.c: New file.
61345 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61347         * modules/getdate, modules/posixtm: Depend on mktime.
61349 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61351         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
61352         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
61353         unicodeio.c, unicodeio.h, unlocked-io.h:
61354         Switch from LGPL to GPL.
61356 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61358         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
61359         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
61360         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
61361         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
61362         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
61363         updated automatically by ../config/srclist-update.  This changes
61364         their license from LPGL to GPL.
61366 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61368         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
61369         assumed to refer to the root of the most recent stable gettext version.
61370         * config/srclistvars.sh: Add defaults for eggert.
61371         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
61372         Match "This program" as well as "The program".  This is needed
61373         for gettext.
61375 2003-07-14  Jim Meyering  <jim@meyering.net>
61377         Don't emit diagnostics.  Let callers do that.
61378         * lib/save-cwd.c: Don't include "error.h".
61379         (save_cwd): Don't call error.  Ensure that errno is valid
61380         when returning nonzero.
61382         * lib/save-cwd.h (restore_cwd): Update prototype.
61383         * lib/save-cwd.c (restore_cwd): Remove two parameters.
61384         Simplify.  Don't call error upon failure.  Let callers do that.
61385         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
61386         when auditing is enabled.  But don't bother updating the #if.
61388 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
61390         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
61391         it breaks C++ compilation.
61392         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
61394 2003-07-10  Simon Josefsson  <jas@extundo.com>
61396         * modules/strchrnul (Makefile.am): Add strchrnul.h.
61398 2003-07-10  Jim Meyering  <jim@meyering.net>
61400         * m4/clock_time.m4: Remove trailing blank.
61401         * m4/intmax_t.m4: Likewise.
61403 2003-07-10  Jim Meyering  <jim@meyering.net>
61405         * lib/vasnprintf.c: Remove trailing blanks.
61406         Make cpp indentation consistent.
61408 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61410         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
61411         posixver.c, strftime.c, strnlen.c, strverscmp.c:
61412         Switch from LGPL to GPL.
61414 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61416         * config/srclist.txt: Sort sublists.  Add
61417         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
61418         that differ from gnulib for one reason or another; we'd like this list
61419         to be smaller but for now let's document what we have.
61421 2003-07-08  Paul Eggert  <eggert@twinsun.com>
61423         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
61424         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
61425         and sweeter "eval x=$x".
61426         * config/srclist.txt: Get lib/argp* from glibc.
61428 2003-07-07  Paul Eggert  <eggert@twinsun.com>
61430         * lib/mktime.c: Fix some boundary cases and remove need for floating
61431         point.
61433         Issue a compile-time diagnostic if time_t is floating point, or if
61434         two's complement arithmetic is not in effect, or if arithmetic
61435         right shift does not propagate the sign.  These assumptions were
61436         all in the original code but they weren't checked.
61438         (TIME_T_MIDPOINT, verify): New macros.
61439         (__isleap): Remove; it has integer overflow problems.
61440         (leapyear): New function, without those problems.
61441         (ydhms_tm_diff): Remove; splitting into two parts.
61442         (ydhms_diff): New function, containing the arithmetic part of
61443         the old ydhms_tm_diff function.  Issue a compile-time
61444         diagnostic if we are not using C99 integer division.
61445         Avoid casts when possible.
61446         (guess_time_tm): New function, containing the checking part of
61447         the old ydhms_tm_diff function.  Return the new value, rather than
61448         the difference between it and the old.  Accept a new argument T
61449         so that *T specifies the old value.  Check for overflow in the result.
61451         (__mktime_internal): Use a time_t offset, not a long int offset.
61452         This undoes the 2003-06-04 change, which is no longer needed now
61453         that we have better overflow checking.
61454         (localtime_offset): Likewise.
61456         (__mktime_internal): Avoid harmful overflow on hosts where time_t
61457         and long are 64-bit but int is only 32-bit.
61458         (ydhms_diff): Use long int to store year1 and yday1.
61459         Issue a compile-time diagnostic if long int is not wide enough.
61461         (__mktime_internal): Use long int to store adjusted year and yday.
61462         Use plain C rather than preprocessor commands, if that doesn't
61463         affect efficiency.
61464         Check for overflow (and try to repair) after each probe
61465         rather than checking only at the very end.  This avoids some bugs
61466         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
61467         does not equal GMT offset at maximum time).
61468         Use integer to check for overflow rather than floating point; this
61469         is more portable to non-IEEE hosts, and is a tad faster.
61470         When we detect that we are oscillating between two values,
61471         don't check whether tm_isdst has the requested value, since
61472         we already know the answer.  When tm_isdst has the wrong value,
61473         use a different heuristic to find the right one, based on the
61474         extreme values actually observed in practice in tz2003a,
61475         rather than the (overly optimistic) "previous 3 calendar quarters".
61477         (not_equal_tm, print_tm, check_result): Use "const T" rather than
61478         "T const" to accommodate glibc style.
61479         (check_result): Use less-confusing report format.  "long" -> "long int.
61480         (main): Likewise.
61481         Don't loop if the iteration overflows time_t.
61482         Allow a negative step in the iteration.
61484 2003-07-06  Karl Berry  <karl@gnu.org>
61486         * config/depcomp: update from automake.
61487         * config/config.sub: update from prep.
61489 2003-07-03  Karl Berry  <karl@gnu.org>
61491         * config/config.guess: update from prep.
61493 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61495         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
61496         xreadlink.c now includes it unconditionally.
61498 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61500         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
61501         having it depend on HAVE_SYS_TYPES_H.
61503 2003-07-01  Bruno Haible  <bruno@clisp.org>
61505         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
61506         <sys/types.h> should be sufficient.
61507         Reported by Paul Eggert.
61509 2003-06-26  Karl Berry  <karl@gnu.org>
61511         * config/depcomp: update from automake.
61513 2003-06-26  Bruno Haible  <bruno@clisp.org>
61515         * modules/human: Depend on module stdbool.
61517 2003-06-25  Bruno Haible  <bruno@clisp.org>
61519         * modules/readlink: New file.
61520         * modules/xreadlink: Depend on it.
61521         * MODULES.html.sh (func_all_modules): Add readlink.
61523 2003-06-25  Bruno Haible  <bruno@clisp.org>
61525         * m4/readlink.m4: New file.
61527 2003-06-25  Bruno Haible  <bruno@clisp.org>
61529         * lib/readlink.c: New file.
61531 2003-06-22  Karl Berry  <karl@gnu.org>
61533         * config/srclist.txt: update mkinstalldirs from automake.
61534         * config/mkinstalldirs: update.
61536 2003-06-22  Bruno Haible  <bruno@clisp.org>
61538         Portability to mingw32.
61539         * m4/ssize_t.m4: New file, from GNU gettext.
61540         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
61541         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
61543 2003-06-22  Bruno Haible  <bruno@clisp.org>
61545         * modules/safe-read: Add m4/ssize_t.m4.
61546         * modules/xreadlink: Add m4/ssize_t.m4.
61548 2003-06-20  Bruno Haible  <bruno@clisp.org>
61550         Assume C89, so PARAMS isn't needed.
61551         * lib/unicodeio.h (PARAMS): Remove.
61552         * lib/unicodeio.c: Don't use PARAMS.
61554 2003-06-18  Karl Berry  <karl@gnu.org>
61556         * config/config.{guess,sub}: update from prep.
61558 2003-06-18  Jim Meyering  <jim@meyering.net>
61560         Merge changes from coreutils.
61561         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
61562         Remove explicit declarations of xmalloc and realloc.
61563         Include xalloc.h.
61564         (read_utmp): Remove anachronistic cast of xmalloc.
61566 2003-06-17  Paul Eggert  <eggert@twinsun.com>
61568         Assume C89, so PARAMS isn't needed.
61569         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
61570         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
61571         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
61572         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
61573         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
61574         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
61575         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
61576         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
61577         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
61578         lib/xstrtod.h, lib/xstrtol.h: Likewise.
61579         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
61580         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
61581         no longer needed. Anyway, config.h should always be included before any
61582         other file.
61584 2003-06-11  Simon Josefsson  <jas@extundo.com>
61586         * modules/sysexits: New file.
61587         * MODULES.html.sh (func_all_modules): Add sysexits.
61589 2003-06-11  Simon Josefsson  <jas@extundo.com>
61591         * lib/sysexit_.h: New file.
61593 2003-06-11  Derek Price  <derek@ximbiot.com>
61595         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
61596         necessary.
61598 2003-06-11  Bruno Haible  <bruno@clisp.org>
61600         * m4/sysexits.m4: New file.
61602 2003-06-10  Simon Josefsson  <jas@extundo.com>
61604         * lib/argp.h: New file, from glibc.
61605         * lib/argp-ba.c: New file, from glibc.
61606         * lib/argp-eexst.c: New file, from glibc.
61607         * lib/argp-fmtstream.c: New file, from glibc.
61608         * lib/argp-fmtstream.h: New file, from glibc.
61609         * lib/argp-fs-xinl.c: New file, from glibc.
61610         * lib/argp-help.c: New file, from glibc.
61611         * lib/argp-namefrob.h: New file, from glibc.
61612         * lib/argp-parse.c: New file, from glibc.
61613         * lib/argp-pv.c: New file, from glibc.
61614         * lib/argp-pvh.c: New file, from glibc.
61615         * lib/argp-xinl.c: New file, from glibc.
61617 2003-06-10  Simon Josefsson  <jas@extundo.com>
61619         * modules/strchrnul: New file.
61621 2003-06-10  Simon Josefsson  <jas@extundo.com>
61623         * modules/argp: New file.
61625 2003-06-10  Simon Josefsson  <jas@extundo.com>
61627         * m4/strchrnul.m4: New file.
61629 2003-06-10  Simon Josefsson  <jas@extundo.com>
61631         * lib/strchrnul.h: New file.
61632         * lib/strchrnul.c: New file.
61634 2003-06-10  Bruno Haible  <bruno@clisp.org>
61636         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
61638 2003-06-07  Karl Berry  <karl@gnu.org>
61640         * config/config.{guess,sub}: update from prep.
61642 2003-06-07  Jim Meyering  <jim@meyering.net>
61644         * modules/strtod: Use $(...) notation, not @...@ for
61645         AC_REPLACE'd variables.
61646         * modules/localcharset: Likewise.
61648 2003-06-07  Jim Meyering  <jim@meyering.net>
61650         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
61651         in place of my name in the copyright comment.
61652         Remove definition and uses of __P.
61654         From coreutils.
61655         * lib/stat.c: Don't declare xmalloc explicitly.
61656         Instead, include "xalloc.h".
61657         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
61658         xrealloc, and xcalloc return values.
61659         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
61660         Improve comment.
61661         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
61663 2003-06-07  Bruno Haible  <bruno@clisp.org>
61665         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
61666         avoid AC_CONFIG_LINKS.
61667         * modules/fnmatch (Makefile.am): Use explicit creation rule for
61668         fnmatch.h, to avoid AC_CONFIG_LINKS.
61669         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
61671 2003-06-07  Bruno Haible  <bruno@clisp.org>
61673         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
61674         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
61675         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
61676         directory.
61677         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
61678         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
61679         directory.
61681 2003-06-06  Jim Meyering  <jim@meyering.net>
61683         Merge from coreutils.
61684         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
61685         Consolidate declarations and initializations of *_base* locals.
61687         Merge from coreutils.
61688         This avoids a core dump on systems without GNU putenv,
61689         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
61690         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
61691         (unsetenv): New static function, from GNU libc.
61692         (rpl_putenv): Use it.
61694         * lib/modechange.c: Remove trailing blanks.
61696         Merge from coreutils.
61697         * lib/fsusage.c: Remove declaration of statfs.
61698         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
61700         * lib/posixtm.c: Include <stdbool.h> unconditionally.
61702 2003-06-06  Jim Meyering  <jim@meyering.net>
61704         * lib/stdbool_.h: Renamed from stdbool.h.in.
61706 2003-06-06  Jim Meyering  <jim@meyering.net>
61707             Bruno Haible  <bruno@clisp.org>
61709         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
61710         Adjust Makefile.am snippet not to redirect directly to target.
61711         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
61713 2003-06-05  Paul Eggert  <eggert@twinsun.com>
61715         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
61716         mismatch, look in future quarters as well as past.  This fixes a
61717         bug when processing fall-backwards gaps immediately after a long
61718         period of daylight-saving time.
61720         * lib/mktime.c: Assume freestanding C89 or better.
61721         (HAVE_LIMITS_H): Remove.  Assume it's 1.
61722         (__P): Remove; not used.
61723         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
61724         (mktime, not_equal_tm, print_tm, check_result,
61725         main): Use prototypes.  Use const * where appropriate.
61726         (main): Fix typo in testing code that uncovered by above changes.
61727         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
61729 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61731         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
61732         locale.h, localeconv.  This merges changes from coreutils.
61734         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
61735         It can be removed after the next Autoconf is released.
61736         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
61737         needed.
61739 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61741         * lib/mktime.c: Fix Debian bug 177940
61742         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
61743         (localtime_offset): Now long int, not time_t, because we want it
61744         to be guaranteed to be signed.  All uses changed.
61745         (__mktime_internal): If overflow would occur when adding offset,
61746         don't add it.
61748         Merge 'human' changes from coreutils.  Rewrite to support
61749         locale-specific notations like thousands separators.
61750         * lib/human.c: Simplify authorship notice.
61751         Include human.h immediately after config.h.
61752         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
61753         <limits.h>: Do not include, since human.h does.
61754         (SIZE_MAX, UINTMAX_MAX): New macros.
61755         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
61756         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
61757         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
61758         (power_letter): Renamed from suffixes.
61759         (generate_suffix_backwards): Remove.
61760         (adjust_value): Now takes int style (because of human.h changes)
61761         and long double value (for greater precision on some platforms).
61762         (group_number): New function.
61763         (human_readable): Use it.  Use integer options, not enum.
61764         Put the options before the sizes in the arg list.
61765         Support all the new options.
61766         The old human_readable function has been removed;
61767         use inttostr.h instead.
61768         (human_readable, default_block_size, humblock):
61769         Use uintmax_t, not int, for block sizes.
61770         (human_readable_inexact, block_size_types): Remove.
61771         (block_size_opts): New constant.
61772         (human_options): Renamed from human_block_size, with new signature
61773         that allows block sizes up to UINTMAX_MAX.  All callers changed.
61774         * lib/human.h: Add copyright and authorship notice.
61775         Include <limits.h> and <stdbool.h> unconditionally.
61776         (PARAMS): Remove.  All uses removed.
61777         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
61778         (enum human_inexact_style): Remove tag; now a nameless enum.
61779         (human_floor, human_ceiling, human_round_to_even): Now have
61780         values 2, 0, 1 rather than -1, 1, 0.
61781         (human_group_digits, human_suppress_point_zero, human_autoscale,
61782         human_base_1024, human_SI, human_B): New constants.
61783         (human_readable_inexact, human_block_size): Remove.
61784         (human_readable): Size args are now uintmax_t, not int.
61785         (human_options): New decl.
61787         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
61788         unnecessary now that we assume C89 or better.  This change
61789         imported from coreutils.
61791         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
61792         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
61793         in the 2003-05-30 sync from glibc.
61795         .h files should stand alone, but we shouldn't include <sys/types.h>
61796         if we can get away with just <stddef.h>.
61798         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
61799         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
61800         rather than <sys/types.h>, as we merely need size_t.
61801         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
61802         to get size_t.
61803         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
61804         Include <stdio.h>, to get FILE.
61805         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
61806         memcasecmp.h has included <stddef.h> and all we need is size_t.
61807         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
61808         our interface, instead of including <sys/types.h>
61810 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61812         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
61813         now, as glibc mktime is buggy on non-glibc systems.
61815 2003-06-03  Karl Berry  <karl@gnu.org>
61817         * config/config.sub: update from prep.
61819 2003-06-02  Paul Eggert  <eggert@twinsun.com>
61821         [from coreutils]
61822         Fix some minor time-related bugs with POSIX time arguments.
61823         Some valid time stamps were being rejected (notably -1, and
61824         time stamps before 1900 on 64-bit hosts).  And some invalid
61825         time stamps were being accepted, e.g. September 31.
61827         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
61828         that we can return (time_t) -1 successfully.
61829         * lib/posixtm.c: Likewise.
61830         [HAVE_STDBOOL_H]: Include <stdbool.h>.
61831         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
61832         (t): Remove static var.
61833         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
61834         of static var.  All uses changed.
61835         (year): Do not reject years before 1900; they can occur with
61836         64-bit time_t.
61837         (posix_time_parse): Do not check for out-of-range components;
61838         that is now the caller's responsibility, since our checks were
61839         only approximations.
61840         (posixtime): Use mktime to check for out-of-range components,
61841         since it knows them exactly.
61842         If mktime returns (time_t) -1, check whether an error actually occurred
61843         by invoking localtime on -1.
61844         (main) [TEST_POSIXTIME]: Check for input data errors, and report
61845         posixtime failures better.
61846         Improve the test data (in comments only).
61848 2003-06-02  Karl Berry  <karl@gnu.org>
61850         * config/mkinstalldirs (version): new variable.
61851         (--version): new option.
61852         (usage): improve message.
61854 2003-05-30  Karl Berry  <karl@gnu.org>
61856         * lib/mktime.c: update from libc.
61858 2003-05-30  Bruno Haible  <bruno@clisp.org>
61860         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
61861         * config/config.rpath: Upgrade to gettext-0.12.1.
61863 2003-05-30  Bruno Haible  <bruno@clisp.org>
61865         * m4/gettext.m4: Upgrade to gettext-0.12.1.
61866         * m4/nls.m4: New file, from gettext-0.12.1.
61867         * m4/po.m4: New file, from gettext-0.12.1.
61868         * m4/progtest.m4: Upgrade to gettext-0.12.1.
61870 2003-05-30  Bruno Haible  <bruno@clisp.org>
61872         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
61873         * lib/localcharset.h: Likewise.
61874         * lib/localcharset.c: Likewise.
61876 2003-05-29  Karl Berry  <karl@gnu.org>
61878         * config/config.rpath: update from gettext.
61880 2003-05-28  Paul Eggert  <eggert@twinsun.com>
61882         Assume the headers required for C89 freestanding compilers.
61883         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
61884         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
61885         * m4/human.m4 (gl_HUMAN): Likewise.
61886         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
61887         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
61888         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61889         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
61890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61891         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
61893 2003-05-28  Paul Eggert  <eggert@twinsun.com>
61895         Assume the headers required for C89 freestanding compilers.
61896         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
61897         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
61898         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
61899         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
61900         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
61901         define, since <limits.h> is guaranteed to do that.
61902         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
61903         * lib/exclude.c: Include <stdbool.h> unconditionally.
61904         * lib/tempname.c: Include <stddef.h> unconditionally.
61905         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
61906         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
61907         <stddef.h> does that.
61908         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
61909         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
61910         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
61911         needed.
61912         * lib/xstrtol.c: Likewise.
61913         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
61914         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
61916         * lib/addext.c (addext): Use assignment rather than cast, to avoid
61917         warnings on some platforms.
61919         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
61920         arbitrarily.
61922 2003-05-26  Jim Meyering  <jim@meyering.net>
61924         Merge in a change from coreutils:
61925         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
61926         that is guaranteed to be `no'.  Use `no_such_member' to indicate
61927         that condition, rather than `-1' which is slightly misleading.
61928         Change the name of the cache variable to have the gl_ prefix.
61929         Prompted by a patch from Richard Dawe for DJGPP.
61931 2003-05-24  Karl Berry  <karl@gnu.org>
61933         * config/config.guess: update from prep.
61935 2003-05-22  Karl Berry  <karl@gnu.org>
61937         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
61939 2003-05-20  Karl Berry  <karl@gnu.org>
61941         * config/config.guess: update from prep.
61943 2003-05-18  Karl Berry  <karl@gnu.org>
61945         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
61946         might actually be set by the user.
61948         * config/depcomp, install-sh, mdate-sh: update from automake.
61950 2003-05-17  Bruno Haible  <bruno@clisp.org>
61952         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
61953         invalid expansion for AC_EGREP_CPP.
61954         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
61955         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
61956         Suggested by Akim Demaille <akim@epita.fr> in
61957         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
61959 2003-05-12  Jim Meyering  <jim@meyering.net>
61961         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
61962         the space-padded-by-default conversion specifiers, %e, %k, %l.
61964 2003-05-12  Bruno Haible  <bruno@clisp.org>
61966         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
61967         the string is longer than 4 KB.
61969 2003-05-11  Karl Berry  <karl@gnu.org>
61971         * config/config.{guess,sub}: update from prep.
61973 2003-05-09  Bruno Haible  <bruno@clisp.org>
61975         * modules/error: Add m4/strerror_r.m4 to file list.
61977 2003-05-03  Bruno Haible  <bruno@clisp.org>
61979         Upgrade to Unicode-4.0.
61980         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
61981         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
61982         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
61983         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
61984         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
61985         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
61986         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
61987         Change width of U+E0100..U+E01EF from 1 to 0.
61989 2003-04-25  Jim Meyering  <jim@meyering.net>
61991         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
61992         of type size_t, not int.
61994 2003-04-25  Bruno Haible  <bruno@clisp.org>
61996         * lib/copy-file.c: Include <stddef.h>, for size_t.
61998 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62000         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62001         code which expansion is under static control.  Patch imported from
62002         Akim Demaille's patch to Bison; see
62003         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62005 2003-04-14  Bruno Haible  <bruno@clisp.org>
62007         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62009 2003-04-11  Jim Meyering  <jim@meyering.net>
62011         Merge changes from Coreutils.
62013         2003-03-22  Jim Meyering  <jim@meyering.net>
62015         * lib/strftime.c (widen): Cast alloca return value to proper type.
62017         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62019         From GNU libc.
62020         * lib/strftime.c (my_strftime): Handle very large width
62021         specifications for numeric values correctly.  Improve checks for
62022         overflow.
62024         2003-01-19  Jim Meyering  <jim@meyering.net>
62026         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62027         definitions.
62028         (nl_get_alt_digit) [! defined my_strftime]: Define.
62029         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62030         _nl_get_alt_digit and _nl_get_walt_digit.
62032         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62033         libc. These changes have no effect outside of _LIBC.
62035 2003-04-10  Bruno Haible  <bruno@clisp.org>
62037         * modules/findprog: New file.
62038         * MODULES.html.sh (func_all_modules): Add it.
62040 2003-04-10  Bruno Haible  <bruno@clisp.org>
62042         * m4/findprog.m4: New file.
62043         * m4/eaccess.m4: New file.
62045 2003-04-10  Bruno Haible  <bruno@clisp.org>
62047         * lib/findprog.h: New file, from GNU gettext.
62048         * lib/findprog.c: New file, from GNU gettext.
62050 2003-04-05  Jim Meyering  <jim@meyering.net>
62052         Merge changes from Coreutils.
62054         * lib/exclude.h (PARAMS): Remove definition and uses.
62055         * lib/exclude.c: Remove uses of `PARAMS'.
62057         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62058         Add test-cases for DOS filenames. Declare program_name.
62059         (main): Set up program_name.  Patch by Rich Dawe.
62061         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62062         error from mntctl.
62063         Use mntctl's return value to drive the entry-processing loop, since
62064         we can't rely on the value of the vmt_length member in the last
62065         entry.  On some systems doing so could result in exhausting
62066         virtual memory.  Based in part on a patch from Mike Jetzer.
62068 2003-04-04  Bruno Haible  <bruno@clisp.org>
62070         * modules/linebreak: New file.
62071         * MODULES.html.sh (func_all_modules): Add it.
62073 2003-04-04  Bruno Haible  <bruno@clisp.org>
62075         * m4/linebreak.m4: New file.
62077 2003-04-04  Bruno Haible  <bruno@clisp.org>
62079         * lib/linebreak.h: New file, from GNU gettext.
62080         * lib/linebreak.c: New file, from GNU gettext with slight
62081         modifications.
62082         * lib/lbrkprop.h: New file, from GNU gettext.
62084 2003-04-03  Bruno Haible  <bruno@clisp.org>
62086         * modules/utf8-ucs4: New file.
62087         * modules/utf16-ucs4: New file.
62088         * modules/ucs4-utf8: New file.
62089         * modules/ucs4-utf16: New file.
62090         * MODULES.html.sh (func_all_modules): Add them.
62092 2003-04-03  Bruno Haible  <bruno@clisp.org>
62094         * m4/utf-ucs4.m4: New file.
62095         * m4/ucs4-utf.m4: New file.
62097 2003-04-03  Bruno Haible  <bruno@clisp.org>
62099         * lib/utf8-ucs4.h: New file, from GNU gettext.
62100         * lib/utf16-ucs4.h: New file, from GNU gettext.
62101         * lib/ucs4-utf8.h: New file, from GNU gettext.
62102         * lib/ucs4-utf16.h: New file, from GNU gettext.
62104 2003-04-02  Bruno Haible  <bruno@clisp.org>
62106         * modules/binary-io: New file.
62107         * MODULES.html.sh (func_all_modules): Add it.
62109 2003-04-02  Bruno Haible  <bruno@clisp.org>
62111         * lib/binary-io.h: New file, from GNU gettext.
62113 2003-04-01  Bruno Haible  <bruno@clisp.org>
62115         * modules/pathname: New file.
62116         * MODULES.html.sh (func_all_modules): Add it.
62118 2003-04-01  Bruno Haible  <bruno@clisp.org>
62120         * lib/pathname.h: New file, from GNU gettext.
62121         * lib/concatpath.c: New file, from GNU gettext.
62123 2003-03-30  Bruno Haible  <bruno@clisp.org>
62125         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62127 2003-03-30  Bruno Haible  <bruno@clisp.org>
62129         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62130         function chown() doesn't exist.
62132 2003-03-28  Bruno Haible  <bruno@clisp.org>
62134         * modules/copy-file: New file.
62135         * MODULES.html.sh (func_all_modules): Add it.
62137 2003-03-28  Bruno Haible  <bruno@clisp.org>
62139         * m4/copy-file.m4: New file.
62141 2003-03-28  Bruno Haible  <bruno@clisp.org>
62143         * lib/copy-file.h: New file, from GNU gettext.
62144         * lib/copy-file.c: New file, from GNU gettext.
62146 2003-03-18  Jim Meyering  <jim@meyering.net>
62148         * lib/quote.c (quote_n): Fix typo in comment.
62150 2003-03-18  Bruno Haible  <bruno@clisp.org>
62152         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62153         checking.
62154         * m4/onceonly_2_57.m4: Likewise.
62156 2003-03-17  Bruno Haible  <bruno@clisp.org>
62158         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62159         (m4_quote): Remove macro.
62160         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62162 2003-03-14  Jim Meyering  <jim@meyering.net>
62164         Merge changes from Coreutils.
62165         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62166         to be const, in order to avoid warnings.
62167         (obstack_room): Likewise.
62168         (obstack_empty_p): Likewise.
62170 2003-03-14  Bruno Haible  <bruno@clisp.org>
62172         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62173         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62175 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62177         Merge changes from Bison.
62178         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62179         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62180         when compiling Bison 1.875's `bitset bset = obstack_alloc
62181         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62182         * lib/hash.c: Include <stdbool.h> unconditionally.
62184 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62186         * m4/onceonly.m4 (m4_quote): New macro.
62187         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62188         Quote AC_FOREACH variable-expansions properly.
62190 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62192         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62194 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62196         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62197         Reported by Bruce Becker; see:
62198         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62200 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62201             Bruno Haible  <bruno@clisp.org>
62203         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62204         Reported by John Hughes, see
62205         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62207 2003-02-20  Bruno Haible  <bruno@clisp.org>
62209         * MODULES.html.sh (func_all_modules): Add poll.
62211 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62213         * modules/poll: New file.
62215 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62217         * lib/poll_.h: New file.
62218         * lib/poll.c: New file.
62220 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62222         * m4/poll.m4: New file.
62224 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62226         * modules/mathl: New file.
62228 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62230         * lib/mathl.h: New file.
62231         * lib/acosl.c: New file.
62232         * lib/asinl.c: New file.
62233         * lib/atanl.c: New file.
62234         * lib/ceill.c: New file.
62235         * lib/cosl.c: New file.
62236         * lib/expl.c: New file.
62237         * lib/floorl.c: New file.
62238         * lib/frexpl.c: New file.
62239         * lib/ldexpl.c: New file.
62240         * lib/logl.c: New file.
62241         * lib/sincosl.c: New file.
62242         * lib/sinl.c: New file.
62243         * lib/sqrtl.c: New file.
62244         * lib/tanl.c: New file.
62245         * lib/trigl.c: New file.
62246         * lib/trigl.h: New file.
62248 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62250         * m4/mathl.m4: New file.
62252 2003-02-18  Bruno Haible  <bruno@clisp.org>
62254         * MODULES.html.sh (func_all_modules): Add mathl.
62256 2003-02-17  Bruno Haible  <bruno@clisp.org>
62258         * modules/mkdtemp: New module.
62259         * MODULES.html.sh (func_all_modules): Add it.
62261 2003-02-17  Bruno Haible  <bruno@clisp.org>
62263         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62265 2003-02-17  Bruno Haible  <bruno@clisp.org>
62267         * lib/mkdtemp.h: New file, from GNU gettext.
62268         * lib/mkdtemp.c: New file, from GNU gettext.
62270 2003-02-02  Jim Meyering  <jim@meyering.net>
62272         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62273         e.g. glibc-2.2.93.
62275 2003-01-31  Bruno Haible  <bruno@clisp.org>
62277         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62278         'rpl_rename'.
62279         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62280         'rpl_strnlen'.
62281         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62282         'rpl_strtod'.
62283         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62284         'rpl_utime'.
62286 2003-01-31  Bruno Haible  <bruno@clisp.org>
62288         * lib/rename.c: #undef rename before defining rpl_rename.
62289         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62291 2003-01-30  Bruno Haible  <bruno@clisp.org>
62293         * modules/vasnprintf, modules/vasprintf: New modules.
62294         * MODULES.html.sh (func_all_modules): Add them.
62296 2003-01-30  Bruno Haible  <bruno@clisp.org>
62298         * m4/signed.m4: New file, from GNU gettext.
62299         * m4/longdouble.m4: New file, from GNU gettext.
62300         * m4/wchar_t.m4: New file, from GNU gettext.
62301         * m4/wint_t.m4: New file, from GNU gettext.
62302         * m4/vasnprintf.m4: New file.
62303         * m4/vasprintf.m4: New file.
62305 2003-01-30  Bruno Haible  <bruno@clisp.org>
62307         * lib/printf-args.h: New file, from GNU gettext.
62308         * lib/printf-args.c: New file, from GNU gettext.
62309         * lib/printf-parse.h: New file, from GNU gettext.
62310         * lib/printf-parse.c: New file, from GNU gettext.
62311         * lib/vasnprintf.h: New file, from GNU gettext.
62312         * lib/vasnprintf.c: New file, from GNU gettext.
62313         * lib/asnprintf.c: New file, from GNU gettext.
62314         * lib/vasprintf.h: New file, from GNU gettext with modifications.
62315         * lib/vasprintf.c: New file, from GNU gettext.
62316         * lib/asprintf.c: New file, from GNU gettext.
62318 2003-01-29  Bruno Haible  <bruno@clisp.org>
62320         * modules/stpncpy: New module.
62321         * MODULES.html.sh (func_all_modules): Add it.
62323 2003-01-29  Bruno Haible  <bruno@clisp.org>
62325         * m4/stpncpy.m4: New file.
62327 2003-01-29  Bruno Haible  <bruno@clisp.org>
62329         * lib/stpncpy.h: New file, from GNU gettext with modifications.
62330         * lib/stpncpy.c: New file, from GNU gettext with modifications.
62332 2003-01-28  Bruno Haible  <bruno@clisp.org>
62334         * modules/c-ctype: New module.
62335         * MODULES.html.sh (func_all_modules): Add it.
62337 2003-01-28  Bruno Haible  <bruno@clisp.org>
62339         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
62340         Paul Eggert.
62341         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
62342         Paul Eggert.
62344 2003-01-27  Bruno Haible  <bruno@clisp.org>
62346         * modules/xsetenv: New module.
62347         * MODULES.html.sh (func_all_modules): Add it.
62349 2003-01-27  Bruno Haible  <bruno@clisp.org>
62351         * lib/xsetenv.h: New file, from GNU gettext.
62352         * lib/xsetenv.c: New file, from GNU gettext.
62354 2003-01-23  Jim Meyering  <jim@meyering.net>
62356         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
62357         from working on systems without dirfd (at least Irix and OSF1/Tru64).
62359 2003-01-23  Bruno Haible  <bruno@clisp.org>
62361         * modules/minmax: New module.
62362         * MODULES.html.sh (func_all_modules): Add it.
62364 2003-01-23  Bruno Haible  <bruno@clisp.org>
62366         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
62367         Eggert.
62369 2003-01-22  Bruno Haible  <bruno@clisp.org>
62371         * modules/exit: New module.
62372         * MODULES.html.sh (func_all_modules): Add it.
62374 2003-01-22  Bruno Haible  <bruno@clisp.org>
62376         * lib/exit.h: New file, from GNU gettext.
62378 2003-01-19  Bruno Haible  <bruno@clisp.org>
62380         * gnulib-tool: Recognize option --extract-maintainer.
62381         (func_get_maintainer): New function.
62382         * modules/*: Add Maintainer entry.
62384 2003-01-16  Jim Meyering  <jim@meyering.net>
62386         * m4/regex.m4: The `regex' struct is both input and output.
62387         Initialize it before each use.  Patch by Tim Waugh.
62389 2003-01-16  Bruno Haible  <bruno@clisp.org>
62391         * MODULES.html.sh: Add a table of contents. Add the module name as
62392         leftmost column. Add hyperlinks.
62394 2003-01-15  Bruno Haible  <bruno@clisp.org>
62396         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
62398 2003-01-15  Bruno Haible  <bruno@clisp.org>
62400         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
62401         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
62402         suffix.
62404 2003-01-15  Bruno Haible  <bruno@clisp.org>
62406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
62408 2003-01-15  Bruno Haible  <bruno@clisp.org>
62410         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
62411         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
62413 2003-01-14  Jim Meyering  <jim@meyering.net>
62415         * lib/same.c (same_name): Tweak a comment.
62417 2003-01-14  Bruno Haible  <bruno@clisp.org>
62419         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
62420         when a string comparison is sufficient.
62422 2003-01-14  Bruno Haible  <bruno@clisp.org>
62424         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
62425         'unsigned int'.
62427 2003-01-14  Bruno Haible  <bruno@clisp.org>
62429         * lib/hash-pjw.c: Add comment about low quality of this function.
62431 2003-01-13  Bruno Haible  <bruno@clisp.org>
62433         * modules/stpcpy: Distribute lib/stpcpy.h.
62434         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
62436 2003-01-13  Bruno Haible  <bruno@clisp.org>
62438         * modules/*: Add a description.
62439         * modules/strpbrk: Fix Makefile.am snippet.
62440         * modules/strtoimax: Fix dependencies.
62441         * modules/strtoumax: Likewise.
62443 2003-01-13  Bruno Haible  <bruno@clisp.org>
62445         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
62446         * modules/alloca (Makefile.am): All object files depend on alloca.h.
62447         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
62449 2003-01-13  Bruno Haible  <bruno@clisp.org>
62451         * gnulib-tool (func_create_testdir): Store config/* files in the main
62452         directory.
62453         * config.rpath: Move to ...
62454         * config/config.rpath: ... here.
62455         * modules/gettext: Contains config/config.rpath, not config.rpath.
62456         * modules/iconv: Likewise.
62458 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62460         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62461         to avoid collisions with libcurses and libreadline.
62463         * m4/getstr.m4: Remove.
62464         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
62466 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62468         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62469         to avoid collisions with libcurses and libreadline.
62471         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
62472         * lib/getstr.h, getstr.c: Remove.
62473         * lib/getline.c: Include "getline.h", to check interface.
62474         Move body of old getstr.c here: this defines MIN_CHUNK and
62475         declares getdelim2, which is renamed from getstr.
62476         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
62478         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
62479         All uses changed.
62480         * lib/linebuffer.h: Likewise.
62481         (readline): Remove backward-compatibility macro.
62483 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62485         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62486         to avoid collisions with libcurses and libreadline.
62487         * getstr: Remove.
62488         * MODULES.html.sh: Remove getstr.
62489         * modules/getline: Depend on unlocked-io, not getstr.
62491 2003-01-12  Jim Meyering  <jim@meyering.net>
62493         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
62495 2003-01-10  Bruno Haible  <bruno@clisp.org>
62497         * modules/alloca: Change Makefile.am requirements. Simplify Include
62498         requirements. Add lib/alloca_.h to file list.
62500 2003-01-10  Bruno Haible  <bruno@clisp.org>
62502         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
62504 2003-01-10  Bruno Haible  <bruno@clisp.org>
62506         * lib/alloca_.h: New file.
62507         * lib/getdate.y: Unconditionally include alloca.h.
62508         * lib/makepath.c: Likewise.
62509         * lib/setenv.c: Likewise.
62510         * lib/userspec.c: Likewise.
62512 2003-01-09  Karl Berry  <karl@gnu.org>
62514         * MODULES.html.sh: include `dirname $0` in PATH, to find
62515         gnulib-tool.
62517 2003-01-09  Bruno Haible  <bruno@clisp.org>
62519         * modules/stdbool: Change configure.ac, Makefile.am requirements.
62520         Simplify Include requirements. Add lib/stdbool.h.in to file list.
62522 2003-01-09  Bruno Haible  <bruno@clisp.org>
62524         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
62526 2003-01-09  Bruno Haible  <bruno@clisp.org>
62528         * lib/stdbool.h.in: New file.
62530 2003-01-09  Bruno Haible  <bruno@clisp.org>
62532         * gnulib-tool (func_all_modules): Ignore files ending in ~.
62533         * MODULES.html.sh: Likewise.
62535 2003-01-08  Jim Meyering  <jim@meyering.net>
62537         * lib/full-write.c: Undefine and define-away `const' after inclusion
62538         of errno.h, not before.  Suggestion from Bruno Haible.
62540 2003-01-08  Bruno Haible  <bruno@clisp.org>
62542         * modules/full-read: Depend on full-write.
62544 2003-01-08  Bruno Haible  <bruno@clisp.org>
62546         * lib/safe-read.c: Include specification header first, to ensure its
62547         selfcontainedness.
62548         * lib/full-write.c: Likewise.
62550 2003-01-07  Jim Meyering  <jim@meyering.net>
62552         * lib/full-write.c: Rework so that it may serve to define full_read,
62553         too.
62554         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
62556 2003-01-07  Bruno Haible  <bruno@clisp.org>
62558         * lib/strtoimax.c: Include <stdint.h> as an alternative to
62559         <inttypes.h>.
62560         * lib/xstrtol.h: Likewise.
62561         * lib/xstrtoimax.c: Likewise.
62562         * lib/xstrtoumax.c: Likewise.
62563         * lib/human.h: Likewise.
62565         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
62566         on systems that have <inttypes.h> but not <stdint.h>.
62568 2003-01-07  Bruno Haible  <bruno@clisp.org>
62570         * MODULES.html.sh: Add copyright notice.
62571         (missed_files): Omit CVS directory entries.
62572         (func_module): Make it work with sed-3.02.
62573         * MODULES.txt: Remove file.
62575 2003-01-06  Jim Meyering  <jim@meyering.net>
62577         * lib/version-etc.c: Update year in translatable copyright string.
62579 2003-01-03  Karl Berry  <karl@gnu.org>
62581         * config/config.{guess,sub}: update from prep.
62583 2003-01-02  Karl Berry  <karl@gnu.org>
62585         * doc/COPYING.DOC: belatedly updated to 1.2.
62587 2003-01-01  Karl Berry  <karl@gnu.org>
62589         * gnulib-tool (func_verify_module): report module name $module in
62590         error message, not $1.
62591         * gnulib-tool (create-testdir): don't complain if destdir couldn't
62592         be created, only if it doesn't exist.
62593         * gnulib-tool (last_checkin_date): don't expand the $Date here.
62595 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62597         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
62599 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62601         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
62602         memcmp if strcoll doesn't work.
62604 2002-12-31  Bruno Haible  <bruno@clisp.org>
62606         * lib/utime.c (utime_null): No need to call ftruncate if the file was
62607         nonempty.
62609 2002-12-31  Bruno Haible  <bruno@clisp.org>
62611         * lib/memcoll.c (STRCOLL): New macro.
62612         (memcoll): Use it.
62614 2002-12-31  Bruno Haible  <bruno@clisp.org>
62616         * lib/localcharset.h: New file.
62617         * lib/localcharset.c: Include it.
62618         * lib/unicodeio.c: Likewise.
62620 2002-12-31  Bruno Haible  <bruno@clisp.org>
62622         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
62623         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
62625 2002-12-31  Bruno Haible  <bruno@clisp.org>
62627         * lib/getline.h: Include <stddef.h>, for size_t.
62629         * lib/unicodeio.h: Include <stddef.h>, for size_t.
62630         * lib/unicodeio.c: Don't include <stddef.h>.
62632 2002-12-31  Bruno Haible  <bruno@clisp.org>
62634         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
62635         HAVE_TM_ZONE.
62637 2002-12-24  Karl Berry  <karl@gnu.org>
62639         * config/config.guess: update from prep.
62641 2002-12-24  Bruno Haible  <bruno@clisp.org>
62643         General infrasructure.
62644         * m4/README: Rewritten.
62645         * m4/onceonly.m4: New file.
62646         * m4/onceonly_2_57.m4: New file.
62648         Module atexit.
62649         * m4/atexit.m4: New file.
62651         Module strtod.
62652         * m4/strtod.m4: New file.
62654         Module strtol.
62655         * m4/strtol.m4: New file.
62657         Module strtoul.
62658         * m4/strtoul.m4: New file.
62660         Module memchr.
62661         * m4/memchr.m4: New file.
62663         Module memcmp.
62664         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
62665         (jm_FUNC_MEMCMP): Invoke it.
62667         Module memcpy.
62668         * m4/memcpy.m4: New file.
62670         Module memmove.
62671         * m4/memmove.m4: New file.
62673         Module memset.
62674         * m4/memset.m4: New file.
62676         Module strcspn.
62677         * m4/strcspn.m4: New file.
62679         Module strpbrk.
62680         * m4/strpbrk.m4: New file.
62682         Module strstr.
62683         * m4/strstr.m4: New file.
62685         Module strerror.
62686         * m4/strerror.m4: New file.
62688         Module mktime.
62689         * m4/mktime.m4: Renamed from jm-mktime.m4.
62690         (gl_PREREQ_MKTIME): New macro.
62691         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
62693         Module malloc.
62694         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
62695         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
62696         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
62698         Module realloc.
62699         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
62700         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
62701         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
62703         Module strftime.
62704         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
62705         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
62706         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
62707         gl_TM_GMTOFF.
62708         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
62710         Module xalloc.
62711         * m4/xalloc.m4: New file.
62713         Module alloca.
62714         * m4/alloca.m4: New file.
62716         Module putenv.
62717         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
62718         (jm_FUNC_PUTENV): Invoke it.
62720         Module setenv.
62721         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
62722         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
62723         when invoked twice.
62724         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
62725         gt_FUNC_SETENV.
62727         Module memrchr.
62728         * m4/memrchr.m4: New file.
62730         Module stpcpy.
62731         * m4/stpcpy.m4: New file.
62733         Module strcase.
62734         * m4/strcase.m4: New file.
62736         Module strdup.
62737         * m4/strdup.m4: New file.
62739         Module strnlen.
62740         * m4/strnlen.m4: New file.
62742         Module strndup.
62743         * m4/strndup.m4: New file.
62745         Module xstrtod.
62746         * m4/xstrtod.m4: New file.
62748         Module xstrtol.
62749         * m4/xstrtol.m4: New file.
62751         Module getdate.
62752         * m4/getdate.m4: New file.
62754         Module unlocked-io.
62755         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
62756         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
62757         * m4/jm-glibc-io.m4n: Remove file.
62759         Module long-options.
62760         * m4/long-options.m4: New file.
62762         Module md5.
62763         * m4/md5.m4: New file.
62765         Module sha.
62766         * m4/sha.m4: New file.
62768         Module getstr.
62769         * m4/getstr.m4: New file.
62771         Module getline.
62772         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
62773         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
62774         <sys/types.h>, for size_t. Use the function name gnu_getline, not
62775         simply getline. Infoke gl_PREREQ_GETLINE.
62777         Module obstack.
62778         * m4/obstack.m4: New file.
62780         Module hash.
62781         * m4/hash.m4: New file.
62783         Module readtokens.
62784         * m4/readtokens.m4: New file.
62786         Module strverscmp.
62787         * m4/strverscmp.m4: New file.
62789         Module stdbool.
62790         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
62791         OSF/1.
62793         Module strtoll.
62794         * m4/strtoll.m4: New file.
62796         Module strtoull.
62797         * m4/strtoull.m4: New file.
62799         Module strtoimax.
62800         * m4/strtoimax.m4: New file.
62802         Module strtoumax.
62803         * m4/strtoumax.m4: New file.
62805         Module xstrtoimax.
62806         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
62807         jm_AC_PREREQ_XSTRTOIMAX.
62808         Moved the strtol prerequisites to strtol.m4.
62809         Moved the strtoll prerequisites to strtoll.m4.
62810         Moved the strtoimax prerequisites to strtoimax.m4.
62812         Module xstrtoumax.
62813         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
62814         jm_AC_PREREQ_XSTRTOUMAX.
62815         Moved the strtoul prerequisites to strtoul.m4.
62816         Moved the strtoull prerequisites to strtoull.m4.
62817         Moved the strtoumax prerequisites to strtoumax.m4.
62819         Module chown.
62820         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
62821         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
62823         Module dup2.
62824         * m4/dup2.m4: New file.
62826         Module ftruncate.
62827         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
62828         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
62830         Module getgroups.
62831         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
62832         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
62834         Module gettimeofday.
62835         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
62836         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
62837         gl_PREREQ_GETTIMEOFDAY.
62839         Module mkdir.
62840         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
62841         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
62843         Module mkstemp.
62844         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
62845         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
62846         jm_AC_TYPE_UINTMAX_T.
62847         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
62849         Module stat.
62850         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
62851         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
62853         Module lstat.
62854         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
62855         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
62857         Module timespec.
62858         * m4/timespec.m4 (gl_TIMESPEC): New macro.
62859         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
62860         * m4/st_mtim.m4: Indentation.
62862         Module nanosleep.
62863         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
62864         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
62865         gl_PREREQ_NANOSLEEP.
62867         Module regex.
62868         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
62869         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
62870         (gl_REGEX): New macro.
62872         Module rename.
62873         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
62874         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
62876         Module rmdir.
62877         * m4/rmdir.m4: New file.
62879         Module utime.
62880         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
62881         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
62882         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
62884         Module dirname.
62885         * m4/dirname.m4: New file.
62887         Module getopt.
62888         * m4/getopt.m4: New file.
62890         Module unistd-safer.
62891         * m4/unistd-safer.m4: New file.
62893         Module fnmatch.
62894         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
62895         declaration.
62896         (gl_PREREQ_FNMATCH_EXTRA): New macro.
62897         (gl_FUNC_FNMATCH_POSIX): New macro.
62898         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
62899         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
62900         simply fnmatch.
62902         Module exclude.
62903         * m4/exclude.m4: New file.
62905         Module human.
62906         * m4/human.m4: New file.
62908         Module acl.
62909         * m4/acl.m4: Nop.
62911         Module backupfile.
62912         * m4/backupfile.m4: New file.
62913         * m4/d-ino.m4: Indentation.
62915         Module fsusage.
62916         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
62917         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
62918         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
62920         Module dirfd.
62921         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
62922         requirements.
62924         Module euidaccess.
62925         * m4/euidaccess.m4: New file.
62927         Module file-type.
62928         * m4/file-type.m4: New file.
62930         Module fileblocks.
62931         * m4/fileblocks.m4: New file.
62933         Module filemode.
62934         * m4/filemode.m4: New file.
62936         Module isdir.
62937         * m4/isdir.m4: New file.
62939         Module lchown.
62940         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
62941         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
62943         Module makepath.
62944         * m4/makepath.m4: New file.
62946         Module modechange.
62947         * m4/modechange.m4: New file.
62949         Module mountlist.
62950         * m4/mountlist.m4: New file.
62951         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
62952         Indentation.
62954         Module path-concat.
62955         * m4/path-concat.m4: New file.
62957         Module pathmax.
62958         * m4/pathmax.m4: New file.
62960         Module same.
62961         * m4/same.m4: New file.
62963         Module save-cwd.
62964         * m4/save-cwd.m4: New file.
62966         Module savedir.
62967         * m4/savedir.m4: New file.
62969         Module xgetcwd.
62970         * m4/xgetcwd.m4: New file.
62971         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
62973         Module xreadlink.
62974         * m4/xreadlink.m4: New file.
62976         Module safe-read.
62977         * m4/safe-read.m4: New file.
62979         Module safe-write.
62980         * m4/safe-write.m4: New file.
62982         Module closeout.
62983         * m4/closeout.m4: New file.
62985         Module stdio-safer.
62986         * m4/stdio-safer.m4: New file.
62988         Module getpass.
62989         * m4/getpass.m4: New file.
62991         Module getugroups.
62992         * m4/getugroups.m4: New file.
62994         Module group-member.
62995         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
62996         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
62998         Module idcache.
62999         * m4/idcache.m4: New file.
63001         Module userspec.
63002         * m4/userspec.m4: New file.
63004         Module gettime.
63005         * m4/clock_time.m4: New file.
63006         * m4/gettime.m4: New file.
63008         Module settime.
63009         * m4/settime.m4: New file.
63011         Module posixtm.
63012         * m4/posixtm.m4: New file.
63014         Module gethostname.
63015         * m4/gethostname.m4: New file.
63017         Module canon-host.
63018         * m4/canon-host.m4: New file.
63020         Module gettext.
63021         * m4/codeset.m4: New file, from gettext-0.11.5.
63022         * m4/gettext.m4: New file, from gettext-0.11.5.
63023         * m4/glibc21.m4: New file, from gettext-0.11.5.
63024         * m4/iconv.m4: New file, from gettext-0.11.5.
63025         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63026         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63027         * m4/inttypes.m4: New file, from gettext-0.11.5.
63028         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63029         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63030         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63031         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63032         * m4/lib-link.m4: New file, from gettext-0.11.5.
63033         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63034         * m4/progtest.m4: New file, from gettext-0.11.5.
63035         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63036         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63037         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63039         Module localcharset.
63040         * m4/localcharset.m4: New file.
63042         Module hard-locale.
63043         * m4/hard-locale.m4: New file.
63045         Module mbswidth.
63046         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63047         onceonly macros.
63048         * m4/mbrtowc.m4: Add comment.
63050         Module memcasecmp.
63051         * m4/memcasecmp.m4: New file.
63053         Module memcoll.
63054         * m4/memcoll.m4: New file.
63056         Module unicodeio.
63057         * m4/unicodeio.m4: New file.
63059         Module rpmatch.
63060         * m4/rpmatch.m4: New file.
63062         Module yesno.
63063         * m4/yesno.m4: New file.
63065         Module exitfail.
63066         * m4/exitfail.m4: New file.
63068         Module c-stack.
63069         * m4/c-stack.m4 (gl_C_STACK): New macro.
63070         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63072         Module error.
63073         * m4/error.m4 (gl_ERROR): New macro.
63074         (jm_PREREQ_ERROR): Use onceonly macros.
63076         Module fatal.
63077         * m4/fatal.m4: New file.
63079         Module getloadavg.
63080         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63081         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63083         Module getpagesize.
63084         * m4/getpagesize.m4: New file.
63086         Module getusershell.
63087         * m4/getusershell.m4: New file.
63089         Module physmem.
63090         * m4/physmem.m4: New file.
63092         Module posixver.
63093         * m4/posixver.m4: New file.
63095         Module quotearg.
63096         * m4/quotearg.m4: New file.
63098         Module quote.
63099         * m4/quote.m4: New file.
63101         Module readutmp.
63102         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63104         Module sig2str.
63105         * m4/sig2str.m4: New file.
63107         Other.
63108         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63109         ulonglong.m4.
63110         * m4/intmax_t.m4: New file.
63111         * m4/d-type.m4: Indentation.
63112         * m4/jm-macros.m4: Update.
63113         * m4/prereq.m4 (jm_PREREQ): Update.
63114         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63115         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63116         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63117         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63118         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63119         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63120         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63121         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63122         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63123         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63124         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63125         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63126         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63127         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63128         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63129         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63130         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63131         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63132         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63134 2002-12-24  Bruno Haible  <bruno@clisp.org>
63136         * MODULES.txt: Update according to m4/ changes.
63138         Module gettext.
63139         * config.rpath: New file, from gettext-0.11.5.
63141         * modules/*: New module descriptions.
63142         * gnulib-tool: New file.
63143         * MODULES.html.sh: New file.
63145 2002-12-21  Karl Berry  <karl@gnu.org>
63147         * doc/fdl.texi: update to version 1.2.
63149 2002-12-19  Karl Berry  <karl@gnu.org>
63151         * config/config.guess: update from prep.
63153 2002-12-18  Bruno Haible  <bruno@clisp.org>
63155         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63156         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63158 2002-12-17  Bruno Haible  <bruno@clisp.org>
63160         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63161         stdlib.h, string.h.
63163 2002-12-17  Bruno Haible  <bruno@clisp.org>
63165         * lib/canon-host.c (strdup): Remove unused declaration.
63167         * lib/fsusage.c: Include full_read.h.
63168         (get_fs_usage): Use full_read instead of safe_read.
63170         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63172 2002-12-12  Karl Berry  <karl@gnu.org>
63174         * config/config.guess: update from prep.
63176 2002-12-11  Bruno Haible  <bruno@clisp.org>
63178         * m4/setenv.m4: New file, from gettext-0.11.5.
63180 2002-12-11  Bruno Haible  <bruno@clisp.org>
63182         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63183         not unsetenv().
63184         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63185         modifications:
63187         2002-12-11  Bruno Haible  <bruno@clisp.org>
63189                 * setenv.c (alloca): Fall back to malloc.
63190                 (freea): New macro.
63191                 (setenv): Use freea() to free memory allocated with alloca().
63193         2002-11-13  Bruno Haible  <bruno@clisp.org>
63195                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63196                 function declarations.
63197                 * unsetenv.c (unsetenv): Likewise.
63199         2002-03-04  Bruno Haible  <bruno@clisp.org>
63201                 Portability to AIX 4.3.3.
63202                 * unsetenv.c: New file, extracted from setenv.c.
63203                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63205         2001-12-20  Bruno Haible  <bruno@clisp.org>
63207                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63208                 use malloc instead. For SunOS 4.
63210         2001-12-11  Bruno Haible  <bruno@clisp.org>
63212                 * setenv.c: Declare alloca.
63213                 (compar_fn_t): New typedef.
63214                 (KNOWN_VALUE, STORE_VALUE): Use it.
63216         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63217         setenv.h.
63219 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63221         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63222         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63223         Choose values that are less likely to collide with system fnmatch
63224         options.
63225         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63226         defined (e.g., a pure POSIX system).
63227         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63228         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63230 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63232         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63233         a pain in practice to deal with generated m4 files.  This change
63234         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63236         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63237         and jm-glibc-io.m4, as they are no longer a special case.
63238         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63239         kludge and the auto-generation stuff.  Check only whether the
63240         functions are declared, not whether they exist, since older hosts
63241         that don't declare the functions can't use the optimization anyway.
63243 2002-12-06  Jim Meyering  <jim@meyering.net>
63245         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63247         Merge in changes from libc's misc/error.c, in preparation
63248         for the merge of gnulib's changes back into libc.
63250         * lib/error.c (_): Define only if not already defined.
63251         Move definition to follow all #include directives.
63252         Include unlocked-io.h only if !_LIBC.
63253         [_LIBC]: Include <libio/libioP.h>.
63254         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63255         (fflush): Tweak definition to use INTUSE.
63256         (putc): Define.
63258 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63260         * lib/alloca.c [defined emacs]: Include "lisp.h".
63261         (xalloc_die) [defined emacs]: New macro.
63262         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63263         [! defined emacs]: Include <xalloc.h>.
63264         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63265         (pointer): Typedef to POINTER_TYPE *.
63266         (malloc): Remove decl; we now always use xmalloc.
63267         (alloca): Use old-style definition, since Emacs needs this.
63268         Check for arithmetic overflow when computing combined size.
63270 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63272         Do not generate unlocked-io.h automatically, since it's easier to
63273         maintain it by hand.
63275         * lib/unlocked-io.h: New file, from GNU diffutils,
63276         but with proper copyright notice and attribution.
63277         * lib/gen-uio: Remove.
63278         * lib/Makefile.am: Add copyright notice.
63279         (libfetish_a_SOURCES): Add unlocked-io.h.
63280         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63281         (DISTCLEANFILES, io_functions): Remove macros.
63282         (EXTRA_DIST): Remove gen_uio.
63283         (unlocked-io.h): Remove rule.
63285 2002-12-04  Jim Meyering  <jim@meyering.net>
63287         Reflect the fact that stat.c and lstat.c are no longer generated.
63288         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63289         (DISTCLEANFILES): Likewise.
63290         (EXTRA_DIST): Likewise.
63291         (all_local): Don't depend on stat.c or lstat.c.
63292         (stat.c, lstat.c): Remove rules.
63293         (EXTRA_DIST): Remove xstat.in.
63295         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63296         * lib/stat.c: New file.  Contents mostly from xstat.in.
63297         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63298         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63300         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63301         too.
63302         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63304 2002-12-03  Jim Meyering  <jim@meyering.net>
63306         * lib/safe-read.c, safe-write.c: Change variable names and comments,
63307         but not semantics, to minimize the differences between these two files.
63308         (safe_read): Change comment to mention SAFE_READ_ERROR.
63310         * lib/safe-read.c (IS_EINTR): Define.
63311         (safe_read): Use IS_EINTR in place of in-function cpp directives.
63313 2002-12-02  Jim Meyering  <jim@meyering.net>
63315         * lib/safe-read.c (EINTR): Define.
63316         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63317         (INT_MAX): Provide fallback.
63318         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
63320         * lib/safe-read.h (SAFE_READ_ERROR): Define.
63322 2002-12-02  Bruno Haible  <bruno@clisp.org>
63324         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
63325         Define, taken from safe-read.c.
63326         (INT_MAX): Provide fallback.
63327         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
63328         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
63330         * lib/safe-read.c (EINTR): Remove definition.
63331         (safe_read): Don't use EINTR if it is absent.
63333 2002-12-01  Jim Meyering  <jim@meyering.net>
63335         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
63336         zero.
63337         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
63339 2002-11-27  Paul Eggert  <eggert@twinsun.com>
63341         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
63342         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
63343         with `if (! (value < limit)) abort ();', for readability.
63345 2002-11-26  Karl Berry  <karl@gnu.org>
63347         * lib/strdup.c: copy from libc again, with jim's ok.
63348         * lib/.cppi-disable: re-add strdup.c
63350 2002-11-25  Karl Berry  <karl@gnu.org>
63352         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
63353         instead of "strtol.c".
63355 2002-11-25  Karl Berry  <karl@gnu.org>
63357         * config/install-sh: update from automake for variable quoting, $0 in
63358         error msgs, etc.
63360         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
63361         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
63362         entry.
63364 2002-11-25  Jim Meyering  <jim@meyering.net>
63366         * lib/mktime.c: Sync from libc, now that it has the latest fix.
63368 2002-11-24  Karl Berry  <karl@gnu.org>
63370         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
63371         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
63373 2002-11-24  Jim Meyering  <jim@meyering.net>
63375         Update from coreutils:
63377         * lib/mktime.c: Merge in changes from libc.
63379         Avoid a link-time failure on some Linux systems.
63380         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
63381         (otherwise).
63382         (__mon_yday): Declare with the STATIC attribute.
63383         (__mktime_internal): Likewise.
63384         Based on a report from Greg Schafer.
63386 2002-11-23  Jim Meyering  <jim@meyering.net>
63388         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
63389         Use `unsigned', not `int', as type of index.
63391         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
63393         * lib/fsusage.c: Remove unneeded parentheses around operands of
63394         `defined'.
63396 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63398         * lib/quotearg.h: Allow multiple inclusion by surrounding with
63399         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
63400         so that we can be included first.
63401         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
63402         * lib/quotearg.c: Include quotearg.h immediately after config.h.
63403         No need to include stddef.h or sys/types.h any more.
63404         Surround local include files with "", not "<>".
63405         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
63406         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
63407         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
63408         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
63409         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
63410         (ISPRINT): Remove; no longer needed now that we assume C89.
63412         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
63413         Preserve errno.
63415         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
63416         quotearg_char): Use SIZE_MAX rather than
63417         (size_t) -1 when we are talking about "infinity".
63419         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
63421 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63423         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
63424         hint that one should use `if (! x) abort ();' rather than `assert
63425         (x);', and anyway it's one less thing to worry about configuring.
63426         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
63427         hash_rehash, hash_insert): Use abort rather than assert.
63429 2002-11-22  Bruno Haible  <bruno@clisp.org>
63431         * lib/safe-read.h: Assume C89. Add comments.
63432         (safe_read): Change return type to size_t.
63433         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
63434         byte counts > SSIZE_MAX correctly.
63435         * lib/safe-write.h: New file.
63436         * lib/safe-write.c: New file.
63437         * lib/full-read.h: New file.
63438         * lib/full-read.c: New file.
63439         * lib/full-write.h: Assume C89. Add comments.
63440         * lib/full-write.c: Include safe-write.h.
63441         (full_write): Rewritten to use safe_write.
63442         Suggested by Jim Meyering and Paul Eggert.
63444 2002-11-21  Jim Meyering  <jim@meyering.net>
63446         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
63448         Merge in changes from the coreutils.
63450         2002-09-25  Paul Eggert  <eggert@twinsun.com>
63451         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
63452         <stdint.h>.
63453         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
63454         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
63455         int.  Work more efficiently if X is the same width as uintmax_t.
63456         Do not compare X to -1, to avoid bogus compiler warning.
63457         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
63458         Don't assume that f_frsize and f_bsize are the same type.
63460         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
63461         warning on FreeBSD.
63463         * lib/makepath.c (make_path): Restore umask *before* creating the final
63464         component.
63465         (make_path): Minor reformatting.
63467         * lib/xmalloc.c: Adjust to work with new autoconf macros,
63468         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
63469         HAVE_MALLOC/HAVE_REALLOC.
63471         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
63472         dummy ones.  At least on GNU/Linux systems, `auto' means something
63473         else.
63474         From Michael Stone.
63476 2002-11-21  Bruno Haible  <bruno@clisp.org>
63478         Remove case insensitive option matching.
63479         * lib/argmatch.h (argcasematch): Remove declaration.
63480         (ARGCASEMATCH): Remove macro.
63481         (__xargmatch_internal): Remove case_sensitive argument.
63482         (XARGMATCH): Update.
63483         (XARGCASEMATCH): Remove macro.
63484         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
63485         case_sensitive argument.
63486         (argcasematch): Remove function.
63487         (__xargmatch_internal): Remove case_sensitive argument.
63488         (main): Use XARGMATCH instead of XARGCASEMATCH.
63490         * lib/xmalloc.c: Change compile-time error message. Add comment about
63491         required autoconf version.
63493 2002-11-20  Paul Eggert  <eggert@twinsun.com>
63495         Merge argmatch cleanups from Bison.  Assume C89.
63497         * lib/argmatch.c: Include config.h here, not in argmatch.h.
63498         Include stdlib.h, for EXIT_FAILURE.
63499         Always include <string.h>, since we assume C89.
63500         (EXIT_FAILURE): Remove pre-C89 bug workaround.
63501         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
63502         Include <stddef.h> instead, since it's all we need for size_t.
63503         (PARAMS): Remove.  All uses removed.
63504         (ARRAY_CARDINALITY): Do not bother to #undef.
63505         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
63506         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63507         Remove unnecessary parentheses.
63508         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63509         Insert necessary parentheses.
63510         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
63511         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
63513 2002-11-19  Bruno Haible  <bruno@clisp.org>
63515         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
63516         * lib/mbswidth.h: Include <stddef.h>, for size_t.
63518         * lib/mbswidth.h (PARAMS): Remove macro.
63519         (mbswidth, mbsnwidth): Use ANSI C function declarations.
63520         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
63522         * lib/gcd.h (PARAMS): Remove macro.
63523         (gcd): Use ANSI C function declarations.
63524         * lib/gcd.c (gcd): Likewise.
63526 2002-11-15  Bruno Haible  <bruno@clisp.org>
63528         * lib/strcspn.c: Include <stddef.h>.
63529         (strcspn): Use ANSI C function declaration. Change return type to
63530         size_t. Use NULL.
63531         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
63532         (strpbrk): Use NULL.
63533         * lib/strpbrk.h (PARAMS): Remove macro.
63534         (strpbrk): Use ANSI C function declaration.
63535         * lib/strstr.c: Don't include <sys/types.h>.
63536         * lib/strstr.h (PARAMS): Remove macro.
63537         (strstr): Use ANSI C function declarations.
63539 2002-11-14  Karl Berry  <karl@gnu.org>
63541         * config/mkinstalldirs: `do' on separate line, instead of
63542         `for var; do'.
63544 2002-11-06  Bruno Haible  <bruno@clisp.org>
63546         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
63547         * lib/gcd.c (gcd): Likewise.
63549 2002-11-05  Bruno Haible  <bruno@clisp.org>
63551         * lib/gcd.h: New file, from gettext-0.11.5.
63552         * lib/gcd.c: New file, from gettext-0.11.5.
63554 2002-11-05  Bruno Haible  <bruno@clisp.org>
63556         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63557         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63558         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63559         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63561         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
63562         <libintl.h>.
63563         * lib/makepath.c: Include gettext.h instead of <locale.h> and
63564         <libintl.h>.
63566         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
63567         * lib/human.c: Include gettext.h instead of <libintl.h>.
63568         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
63569         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
63570         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
63571         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
63572         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
63573         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
63574         (textdomain): Remove definition.
63575         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
63577         * lib/long-options.c: Remove include of <libintl.h> and definition of
63578         _.
63579         * lib/same.c: Remove include of <libintl.h> and definition of _.
63581 2002-11-04  Owen Taylor  <otaylor@redhat.com>
63583         * lib/config.charset: A few additions for Solaris.
63585 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63587         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
63588         * lib/localcharset.c (locale_charset): Declare as extern "C".
63590 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63592         * lib/config.charset: msdos in uk_UA uses CP1125.
63594 2002-11-04  Bruno Haible  <bruno@clisp.org>
63596         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
63597         * lib/strcase.h: New file, from GNU gettext-0.11.5.
63598         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
63599         * lib/strstr.h: New file, from GNU gettext-0.11.5.
63600         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
63602 2002-11-04  Bruno Haible  <bruno@clisp.org>
63604         * lib/localcharset.c (locale_charset): Don't return an empty string.
63606 2002-11-04  Bruno Haible  <bruno@clisp.org>
63608         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
63609         aliases.
63611 2002-11-04  Bruno Haible  <bruno@clisp.org>
63613         * lib/config.charset: Update for newest glibc. Add canonical names
63614         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
63616 2002-11-04  Bruno Haible  <bruno@clisp.org>
63618         * lib/config.charset: Add support for NetBSD.
63620 2002-11-04  Bruno Haible  <bruno@clisp.org>
63622         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
63624 2002-11-01  Bruno Haible  <bruno@clisp.org>
63626         * configure.in: Add AC_CONFIG_AUX_DIR call.
63627         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
63628         test/Makefile.
63629         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
63631 2002-09-28  Karl Berry  <karl@gnu.org>
63633         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
63634         installed automake until the next release, since changes have been
63635         made.
63637 2002-09-25  Karl Berry  <karl@gnu.org>
63639         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
63640         * lib/getopt*: copy from libc/posix.
63641         * lib/gettext.h: copy from gettext.
63642         * lib/.cppi-disable: add strdup.c, gettext.h.
63644 2002-09-25  Karl Berry  <karl@gnu.org>
63646         * config/srclist.txt: enable gettext.h check.
63647         * config/config.{guess,sub}: update from prep.
63648         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
63649                 from automake 1.6.3.
63650         See srclist*.
63652 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
63654         * regex.c (PATFETCH): Remove the translating fetch.
63655         (PATFETCH_RAW): Rename to PATFETCH.
63656         (set_image_of_range): New fun.
63657         (SET_RANGE_TABLE_WORK_AREA): Use it.
63658         (regex_compile): Don't translate the pattern chars so eagerly.
63659         Only do it when inserting an `exactn' bytecode or when handling
63660         a char-range.
63661         (mutually_exclusive_p): Avoid empty statement.
63663 2002-07-06  Jim Meyering  <meyering@lucent.com>
63665         * m4/README: Don't mention Makefile.am.in.
63666         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
63668 2002-07-01  Jim Meyering  <meyering@lucent.com>
63670         * lib/c-stack.c: Include sys/time.h.
63671         From Volker Borchert.
63673 2002-06-26  Paul Eggert  <eggert@twinsun.com>
63675         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
63677 2002-06-26  Paul Eggert  <eggert@twinsun.com>
63679         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
63680         New macro.  Use it uniformly instead of
63681         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
63682         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
63683         reported by Vin Shelton.
63685 2002-06-22  Paul Eggert  <eggert@twinsun.com>
63687         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
63688         Do not assume SA_SIGINFO behavior.
63689         Bug reported by Jim Meyering on NetBSD 1.5.2.
63691 2002-06-22  Jim Meyering  <meyering@lucent.com>
63693         * m4/c-stack.m4: New file, from diffutils-2.8.2.
63694         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
63696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
63697         now that configure.ac uses AC_GNU_SOURCE.
63698         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
63699         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
63701         Update to latest tools.  Suggestions from Paul Eggert.
63702         * m4/stdbool.m4: New file, from diffutils-2.8.2.
63703         * m4/gnu-source.m4: Update from diffutils-2.8.2.
63704         * m4/fnmatch.m4: Likewise.
63705         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
63706         to AC_HEADER_STDBOOL
63708 2002-06-22  Jim Meyering  <meyering@lucent.com>
63710         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
63711         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
63713 2002-06-22  Jim Meyering  <meyering@lucent.com>
63715         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
63717         * lib/exitfail.c, exitfail.h: Likewise.
63718         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
63720         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
63721         of fnmatch.h.
63722         (EXTRA_DIST): Add fnmatch_loop.c.
63723         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
63725         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
63726         * lib/fnmatch.c: Update from diffutils-2.8.2.
63727         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
63728         * lib/fnmatch.h: Remove file.
63730 2002-06-21  Jim Meyering  <meyering@lucent.com>
63732         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
63733         * m4/mbrtowc.m4: Likewise.
63735         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
63736         * m4/mbswidth.m4: Reflect name change:
63737         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
63738         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63740         * m4/lib-link.m4: Update from gettext-0.11.2.
63741         * m4/gettext.m4: Likewise.
63743         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
63744         From Alfred M. Szmidt.
63746 2002-06-18  Paul Eggert  <eggert@twinsun.com>
63748         * lib/file-type.h: Report an error if neither S_ISREG nor
63749         S_IFREG is defined, instead of using a test specific to glibc
63750         2.2.  This should be safe, since POSIX requires S_ISREG and
63751         Unix Version 7 had S_IFREG.  We don't need to check for
63752         <sys/types.h> since we don't use any symbols that it defines.
63754 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
63756         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
63757         $@-t, so that each temporary file name is unique and valid in the first
63758         8 characters, for operation under DOS.
63760 2002-06-15  Paul Eggert  <eggert@twinsun.com>
63762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
63764 2002-06-15  Jim Meyering  <meyering@lucent.com>
63766         Work even with DJGPP 2.03, which lacks support for symlinks.
63767         From Richard Dawe.
63768         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
63769         is defined.
63770         * lib/lchown.c (S_ISLNK): Likewise.
63772 2002-06-15  Jim Meyering  <meyering@lucent.com>
63774         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
63775         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
63776         have been included before this file.
63778 2002-06-14  Jim Meyering  <meyering@lucent.com>
63780         * lib/file-type.h: Use the version from diffutils-2.8.2.
63781         * lib/file-type.c: Likewise.
63783 2002-06-07  Jim Meyering  <meyering@lucent.com>
63785         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
63786         They're needed at least for NetBSD 1.5.2.
63787         ($statxfs_includes): Include those same headers.
63788         ($statxfs_includes): Include sys/vfs.h if available.
63789         ($statxfs_includes): Likewise for sys/statvfs.h.
63790         Check for the following members in both structs statfs and statvfs:
63791         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
63793 2002-06-01  Jim Meyering  <meyering@lucent.com>
63795         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
63796         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
63798 2002-05-28  Jim Meyering  <meyering@lucent.com>
63800         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
63801         Reported by Volker Borchert.
63803 2002-05-27  Jim Meyering  <meyering@lucent.com>
63805         Fix a problem seen only on nonconforming systems whereby ls.c's
63806         use of localtime, and then of gettimeofday would cause trouble:
63807         the localtime call used to initialize rpl_gettimeofday's save
63808         mechanism would clobber ls's current local time information so
63809         that in any long listing the first file would always be listed
63810         with date 1970-01-01.  Analysis by Volker Borchert.
63812         * lib/gettimeofday.c (localtime): Undefine.
63813         (rpl_localtime): New function.
63815 2002-05-27  Jim Meyering  <meyering@lucent.com>
63817         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
63818         localtime.
63820         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
63821         use the replacement function; it wouldn't resolve at link time.
63822         Reported by Volker Borchert.
63824 2002-05-22  Jim Meyering  <meyering@lucent.com>
63826         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
63827         file-type.h.
63828         * lib/file-type.h: New file.
63829         * lib/file-type.c (file_type): New file/function.  Extracted from
63830         diffutils.
63832 2002-04-30  Jim Meyering  <meyering@lucent.com>
63834         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
63836 2002-04-29  Paul Eggert  <eggert@twinsun.com>
63838         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
63840 2002-04-29  Paul Eggert  <eggert@twinsun.com>
63842         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
63843         Do not check for alloca.h (no longer used) or stdbool.h (was never
63844         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
63846 2002-04-29  Paul Eggert  <eggert@twinsun.com>
63848         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
63850 2002-04-29  Jim Meyering  <meyering@lucent.com>
63852         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
63853         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
63854         Use AC_FUNC_STRNLEN here instead.
63856         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
63857         With autoconf-2.53a, it's part of AC_PROG_CC.
63859 2002-04-28  Paul Eggert  <eggert@twinsun.com>
63861         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
63862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
63864 2002-04-28  Paul Eggert  <eggert@twinsun.com>
63866         * lib/sig2str.h, lib/sig2str.c: New files.
63867         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
63869 2002-04-28  Paul Eggert  <eggert@twinsun.com>
63871         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
63872         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
63873         of 127, since 64 is the largest conceivable number for ancient
63874         nonstandard hosts.
63875         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
63877 2002-04-28  Jim Meyering  <meyering@lucent.com>
63879         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
63881 2002-04-24  Jim Meyering  <meyering@lucent.com>
63883         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
63884         (jm_PREREQ): Use it.
63886         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
63887         mach/mach.h fcntl.h.
63888         Check for this function: setlocale.
63890 2002-04-24  Jim Meyering  <meyering@lucent.com>
63892         * lib/gettext.h: New file, from Gettext.
63893         * lib/Makefile.am (INCLUDES): Remove -I../intl.
63894         (libfetish_a_SOURCES): Add gettext.h.
63896 2002-04-16  Jim Meyering  <meyering@lucent.com>
63898         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
63899         ut_pid, ut_id, ut_exit.
63901 2002-04-16  Jim Meyering  <meyering@lucent.com>
63903         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
63904         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
63905         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
63907 2002-04-12  Jim Meyering  <meyering@lucent.com>
63909         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
63910         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
63911         existence of the getmntinfo function.  Needed for Darwin 5.3.
63913         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
63914         This is necessary at least on Darwin 5.3.
63916         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
63917         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
63918         strnlen.o in the library, and that makes some versions of ranlib
63919         object.
63921 2002-04-12  Jim Meyering  <meyering@lucent.com>
63923         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
63925 2002-04-09  Jim Meyering  <meyering@lucent.com>
63927         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
63928         to be more precise.  Rather than saying we're checking whether the
63929         function `works', say what we're testing.
63930         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
63931         Reported by Bruno Haible.
63933 2002-03-10  Jim Meyering  <meyering@lucent.com>
63935         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
63936         Suggestion from Santiago Vila.
63938 2002-03-08  Jim Meyering  <meyering@lucent.com>
63940         * lib/rename.c: Mention that this wrapper is needed also on
63941         mips-dec-ultrix4.4 systems.
63943 2002-03-02  Jim Meyering  <meyering@lucent.com>
63945         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
63946         not HAVE_CLOCK_SETTIME.
63948 2002-02-27  Paul Eggert  <eggert@twinsun.com>
63950         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
63951         Check for clock_settime.
63953 2002-02-27  Paul Eggert  <eggert@twinsun.com>
63955         * lib/nanosleep.h: Rename to....
63956         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
63958         * lib/gettime.c: New file.
63959         * lib/settime.c: New file.
63960         * lib/stime.c: Remove.
63962         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
63963         timespec.h.  Remove nanosleep.h.
63965 2002-02-25  Paul Eggert  <eggert@twinsun.com>
63967         * m4/acl.m4: New file.
63968         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
63969         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
63971 2002-02-25  Paul Eggert  <eggert@twinsun.com>
63973         * lib/acl.c, lib/acl.h: New files.
63974         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
63976 2002-02-24  Jim Meyering  <meyering@lucent.com>
63978         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
63979         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
63980         cause trouble.  Reported by Nelson Beebe.
63982 2002-02-23  Paul Eggert  <eggert@twinsun.com>
63984         * lib/path-concat.c (xpath_concat): Reorder code to pacify
63985         compilers that don't know that xalloc_die never returns.
63987 2002-02-20  Jim Meyering  <meyering@lucent.com>
63989         * lib/getdate.c: Regenerate using bison-1.33.
63991 2002-02-17  Jim Meyering  <meyering@lucent.com>
63993         * config/config.guess (main): Don't use `head -1'; it's no longer
63994         portable. Use `sed 1q' instead.
63996 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
63998         * m4/codeset.m4: Upgrade to gettext-0.11.
63999         * m4/gettext.m4: Upgrade to gettext-0.11.
64000         * m4/glibc21.m4: Upgrade to gettext-0.11.
64001         * m4/iconv.m4: Upgrade to gettext-0.11.
64002         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64003         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64004         * m4/lib-ld.m4: New file, from gettext-0.11.
64005         * m4/lib-link.m4: New file, from gettext-0.11.
64006         * m4/lib-prefix.m4: New file, from gettext-0.11.
64007         * m4/progtest.m4: Upgrade to gettext-0.11.
64009 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64011         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64012         (jm_PREREQ): Use it.
64014 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64016         * lib/posixver.c, lib/posixver.h: New files.
64017         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64019 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64020             Bruno Haible  <bruno@clisp.org>
64022         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64023         (fwrite_success_callback): New declaration.
64024         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64025         print_unicode_char. Call failure callback instead of error.
64026         (fwrite_success_callback): New function.
64027         (exit_failure_callback): New function.
64028         (fallback_failure_callback): New function.
64029         (print_unicode_char): Call unicode_to_mb.
64031 2002-01-26  Jim Meyering  <meyering@lucent.com>
64033         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64034         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64036 2002-01-26  Jim Meyering  <meyering@lucent.com>
64038         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64040 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64042         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64044 2002-01-22  Jim Meyering  <meyering@lucent.com>
64046         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64047         Otherwise, some versions of automake would omit the rule that makes
64048         Makefile from Makefile.in.
64050 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64052         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64053         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64054         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64055         (memcoll): Set errno to zero if there is no error.
64057         * lib/quotearg.c (quotearg_buffer_restyled):
64058         Fix bug with quoting buffers containing NUL when backslashing escapes.
64059         This bug was exposed by the other changes in this patch.
64060         (quotearg_n_options): New arg ARGSIZE.
64061         All callers changed.
64062         (quoting_options_from_style): New function.
64063         (quotearg_n_style): Use it.
64064         (quotearg_n_style_mem): New function.
64066         * lib/quotearg.h (quotearg_n_style_mem): New function.
64068 2002-01-19  Jim Meyering  <meyering@lucent.com>
64070         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64071         Remove useless quotes: DF_PROG="df".
64072         * m4/strnlen.m4: New file.
64074 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64076         * lib/backupfile.c (ISDIGIT): Comment fix.
64077         * lib/getdate.y (ISDIGIT): Likewise.
64078         * lib/posixtm.c (ISDIGIT, year): Likewise.
64079         * lib/strverscmp.c (ISDIGIT): Likewise.
64080         * lib/userspec.c (ISDIGIT): Likewise.
64082 2002-01-16  Jim Meyering  <meyering@lucent.com>
64084         * lib/getdate.y: Add three semicolons, each just before a closing
64085         brace. Bison (as of version 1.31) no longer papers over that mistake.
64087 2002-01-05  Jim Meyering  <meyering@lucent.com>
64089         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64091 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64093         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64094         not silently exit merely because the output buffer happens to
64095         have nothing pending.
64097 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64099         See the big note in ../ChangeLog.
64100         * lib/human.c (suffixes): Prefer K to k for 1024.
64101         (generate_suffix_backwards): New function.
64102         (human_readable_inexact): Use it.
64103         * lib/xstrtol.c (__xstrtol): If there is no number but there
64104         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64105         Accept 'K' as well as 'k'.
64107 2001-12-15  Jim Meyering  <meyering@lucent.com>
64109         * lib/regex.h (__restrict_arr): Update from libc.
64111         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64112         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64113         (STREQ): Define.
64115 2001-12-14  Jim Meyering  <meyering@lucent.com>
64117         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64118         Suggestion from Bruno Haible.
64120 2001-12-10  Jim Meyering  <meyering@lucent.com>
64122         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64123         xrealloc, Instead, include "xalloc.h".
64124         (initbuffer): Don't cast xmalloc return value to char*.
64125         (readline): Reword comment.
64126         Don't cast xrealloc return value to char*
64127         Return NULL, not 0.
64129 2001-12-09  Jim Meyering  <meyering@lucent.com>
64131         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64132         about `signed and unsigned type in conditional expression'.
64133         * lib/posixtm.c (posix_time_parse): Likewise.
64135         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64137         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64138         to avoid a pedantic warning.
64140         * lib/getstr.c: Don't include assert.h.
64141         (getstr): Remove warning-evoking assertions.
64142         Return -1 if offset parameter is out of bounds.
64143         Change the type of a local from int to size_t.
64145         * lib/strftime.c (my_strftime_localtime_r): Include this function
64146         definition in the `#if ! HAVE_TM_GMTOFF' block.
64148         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64149         Include xalloc.h instead.
64151 2001-12-02  Jim Meyering  <meyering@lucent.com>
64153         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64154         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64155         included.
64157         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64158         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64160 2001-11-30  Akim Demaille  <akim@epita.fr>
64162         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64163         before being defined.
64165 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64167         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64168         First arg is int, not unsigned.
64169         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64170         (SIZE_MAX, UINT_MAX): New macros.
64171         (quotearg_n_options): Abort if N is negative.
64172         Avoid overflow check on hosts where size_t is 64 bits and int
64173         is 32 bits, as overflow is impossible there.
64174         Fix off-by-one typo that caused unnecessary reallocation.
64176 2001-11-27  Jim Meyering  <meyering@lucent.com>
64178         * lib/tempname.c: Merge with version from libc.
64179         * lib/regex.c: Likewise.
64181         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64182         systems for which STDC_HEADERS is 0, it was not included, resulting in
64183         a warning about an integer-to-pointer conversion problem with getenv.
64184         Reported by Volker Borchert.
64186 2001-11-26  Jim Meyering  <meyering@lucent.com>
64188         * lib/gtod.h: Remove file.
64189         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64190         * lib/gettimeofday.c: Don't include gtod.h.
64191         (GTOD_init): Remove function.
64192         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64193         Suggestion from Volker Borchert.
64195 2001-11-23  Jim Meyering  <meyering@lucent.com>
64197         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64198         it.
64199         * lib/hash.c (struct hash_table): Define it here instead.
64201 2001-11-22  Jim Meyering  <meyering@lucent.com>
64203         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64205 2001-11-20  Jim Meyering  <meyering@lucent.com>
64207         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64208         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64210 2001-11-19  Jim Meyering  <meyering@lucent.com>
64212         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64213         directory.  Use "conftestXXXXXX" as the template.
64214         Suggestion from Paul Eggert.
64216         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64217         immediately, so the test doesn't mistakenly hit the max-open-files
64218         limit.
64220 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64222         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64223         (TEMPORARIES): New macro.
64224         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64225         removes an artificial limitation (e.g. HP-UX 10.20, where
64226         TMP_MAX is 17576).
64228 2001-11-18  Jim Meyering  <meyering@lucent.com>
64230         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64232 2001-11-18  Jim Meyering  <meyering@lucent.com>
64234         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64235         on SunOS 4.
64237         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64238         files will be created before anything else.
64240 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64242         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64243         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64245 2001-11-17  Jim Meyering  <meyering@lucent.com>
64247         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64248         Prompted by a report from Bob Proulx.
64250         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64251         Instead, require UTILS_FUNC_MKSTEMP.
64253 2001-11-17  Jim Meyering  <meyering@lucent.com>
64255         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64256         Now, that's done as part of AC_FUNC_STRTOD.
64258 2001-11-17  Jim Meyering  <meyering@lucent.com>
64260         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64261         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64262         rather than group writable.  Patch by Juan F. Codagnone.
64264         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64265         xrealloc, Instead, include "xalloc.h".
64267         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64268         Remove explicit declarations of xmalloc, xrealloc,
64269         and xstrdup.  Instead, include "xalloc.h".
64271         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64272         unlocked-io.h.
64273         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64274         Likewise.
64275         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64277         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64278         Reported by Padraig Brady.
64280         * lib/mkstemp.c: #undef mkstemp.
64281         Include config.h.
64282         (rpl_mkstemp): Rename from mkstemp.
64283         Protoize.
64285 2001-11-16  Jim Meyering  <meyering@lucent.com>
64287         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64288         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64289         determine the amount of total physical memory, use pstat_getstatic.
64290         HPUX-11 doesn't define _SC_PHYS_PAGES.
64291         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64292         If sysconf couldn't be used to determine the amount of available
64293         physical memory, use both pstat_getstatic and pstat_getdynamic.
64294         Based on a patch from Bob Proulx.
64296 2001-11-10  Jim Meyering  <meyering@lucent.com>
64298         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64299         (jm_PREREQ): Use it.
64301 2001-11-09  Jim Meyering  <meyering@lucent.com>
64303         * m4/jm-macros.m4: Require autoconf-2.52f.
64304         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
64305         Use these AC_-prefixed names, not the AM_-prefixed ones.
64307         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
64309 2001-11-05  Jim Meyering  <meyering@lucent.com>
64311         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
64313 2001-11-04  Jim Meyering  <meyering@lucent.com>
64315         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
64316         $DEFS.
64318 2001-11-03  Jim Meyering  <meyering@lucent.com>
64320         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
64321         of AC_DEFUN.
64323         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
64324         know the name of the variable in the macro definition.
64326 2001-11-03  Jim Meyering  <meyering@lucent.com>
64328         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
64329         in argmatch_to_argument call.
64331         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
64332         argument.
64334         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
64335         e.g., a fault due to an attempt to free a NULL pointer.
64337 2001-11-01  Jim Meyering  <meyering@lucent.com>
64339         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
64340         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
64342 2001-11-01  Jim Meyering  <meyering@lucent.com>
64344         * lib/dirfd.c, lib/dirfd.h: New files.
64345         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
64347         * lib/hash.c (hash_print) [TESTING]: Clean up.
64349 2001-10-22  Paul Eggert  <eggert@twinsun.com>
64351         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
64352         to avoid a warning if -Wall.
64354 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
64356         * README: New file
64357         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
64358         (per RMS's instructions, this is now the canonical source)
64359         * lgpl/, gpl/: New directories.
64361 2001-10-21  Paul Eggert  <eggert@twinsun.com>
64363         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
64365 2001-10-21  Jim Meyering  <meyering@lucent.com>
64367         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
64368         this code would end up calling gettext even in packages built
64369         with --disable-nls.
64370         * lib/getopt.c (_): Likewise.
64371         * lib/regex.c (_): Likewise.
64373 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64375         * m4/error.m4 (jm_PREREQ_ERROR):
64376         Do not invoke AC_CHECK_FUNCS with strerror_r, as
64377         AC_FUNC_STRERROR_R does that.
64378         Check for strerror declaration.
64380         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
64381         are supposed to have them these days.
64382         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
64383         Merge changes from latest Autoconf CVS.
64384         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
64385         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
64386         POSIX decided to standardize on the int flavor of strerror_r.
64388 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64390         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
64391         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
64392         Use strerror_r that is only a macro, even if it is not a function.
64393         (strerror): Check for HAVE_DECL_STRERROR before declaring.
64394         (private_strerror): Use prototypes, not old-style function definition.
64395         (print_errno_message): New function.
64396         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
64397         char*-flavored one.
64398         (error_tail, error, error_at_line): Use it.
64400 2001-10-11  Jim Meyering  <meyering@lucent.com>
64402         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
64403         and quote_n (1, ... to avoid clobbering a buffer.
64405 2001-10-05  Jim Meyering  <meyering@lucent.com>
64407         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
64408         hash-pjw.h.
64409         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
64410         * lib/hash-pjw.h: New file.
64412 2001-09-30  Jim Meyering  <meyering@lucent.com>
64414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
64415         `struct fsstat' has the `f_fstypename' member.
64416         Use that to define FS_TYPE, which is now used to make
64417         the getfsstat link test tighter.
64419 2001-09-30  Jim Meyering  <meyering@lucent.com>
64421         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
64422         Include <sys/ucred.h>, for Apple Darwin.
64423         Include sys/mount.h and sys/fs_types.h only if available.
64424         (FS_TYPE): Define.
64425         (read_filesystem_list): Use FS_TYPE.
64427 2001-09-29  Paul Eggert  <eggert@twinsun.com>
64429         * lib/exclude.c (excluded_filename): 0 -> false, since it's
64430         a boolean context.
64432 2001-09-29  Jim Meyering  <meyering@lucent.com>
64434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64435         [one-argument getmntent function]): Include stdio.h before mntent.h.
64436         SunOS 4.1.x needs it for the declaration of `FILE'.
64437         Patch by Volker Borchert.
64439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64440         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
64441         sys/fs_types.h, and make the link-test for getfsstat guard #include
64442         directives with appropriate #if HAVE_*_H tests so that we can
64443         detect getfsstat on Apple Darwin1.3.7 systems.
64444         Reported by Nelson Beebe.
64445         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
64447 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64449         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64450         #defines strtoimax.  Also treat the other strto* functions
64451         like strtoimax.
64453         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64454         Check for strtoul and strtoumax,
64455         as those declarations are made even in the signed case.
64456         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
64457         Likewise, for strtol and strtoimax.
64459 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64461         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64462         #defines strtoimax.  Also treat the other strto* functions
64463         like strtoimax.
64465         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
64466         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
64467         (strtoimax, strtoumax): Do not declare if already defined as a macro.
64469 2001-09-26  Jim Meyering  <meyering@lucent.com>
64471         Most macros in unlocked-io.h had the wrong number of arguments.
64472         * lib/gen-uio: New script.
64473         (USE_UNLOCKED_IO): Define to 1 if not already defined.
64474         * lib/unlocked-io.hin: Remove file.
64475         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
64476         rather than trying to embed it here.
64477         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
64478         Reported by Padraig Brady.
64480 2001-09-25  Volker Borchert  <bt@teknon.de>
64482         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
64483         `result'.
64485 2001-09-24  Jim Meyering  <meyering@lucent.com>
64487         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
64489 2001-09-23  Jim Meyering  <meyering@lucent.com>
64491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
64492         instead of the mere test for existence of mntent.h.  The latter
64493         would get a false-positive on AIX 3.4 systems.
64494         In the outer getmntent if-block, don't die if neither of the getmntent
64495         tests succeeds.  Instead, just fall through and continue with the
64496         remaining tests.
64498 2001-09-23  Jim Meyering  <meyering@lucent.com>
64500         * lib/mountlist.c: Remove useless parentheses in #if directives.
64501         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
64502         the deprecated MOUNTED symbol is no longer defined in mntent.h.
64504 2001-09-22  Jim Meyering  <meyering@lucent.com>
64506         * m4/gettext.m4: New file.  From gettext.
64507         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
64508         * m4/progtest.m4: Likewise
64509         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
64510         * m4/glibc21.m4: Likewise.
64512         * m4/libintl.m4: Remove.  No longer used.
64514 2001-09-22  Jim Meyering  <meyering@lucent.com>
64516         * lib/localcharset.c: Update from latest gettext.
64517         * lib/config.charset: Likewise.
64519 2001-09-20  Jim Meyering  <meyering@lucent.com>
64521         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
64522         strtoimax.
64523         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
64524         strtoumax.
64526 2001-09-20  Jim Meyering  <meyering@lucent.com>
64528         * lib/xstrtol.c (strtoimax): Guard declaration with
64529         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
64530         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
64531         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
64532         (strtoumax): Likewise, for completeness (it wasn't necessary).
64534 2001-09-17  Paul Eggert  <eggert@twinsun.com>
64536         * lib/strtoimax.c (HAVE_LONG_LONG):
64537         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
64538         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
64539         to work around bug in IBM C compiler.
64541 2001-09-17  Jim Meyering  <meyering@lucent.com>
64543         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
64544         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
64545         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
64546         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
64547         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
64548         whenever the right hand side need not be expanded by the shell.
64550 2001-09-16  Paul Eggert  <eggert@twinsun.com>
64552         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
64553         library.  It's not correct, as some older glibcs are buggy.
64554         fnmatch wasn't fixed until glibc 2.2.
64556         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
64557         special shell magic here.
64559 2001-09-16  Jim Meyering  <meyering@lucent.com>
64561         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
64562         * m4/jm-macros.m4: Require it.
64564 2001-09-16  Jim Meyering  <meyering@lucent.com>
64566         * lib/mkdir.c: New file.
64568 2001-09-15  Jim Meyering  <meyering@lucent.com>
64570         * m4/jm-macros.m4: Check for help2man.
64572 2001-09-11  Jim Meyering  <meyering@lucent.com>
64574         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
64575         The body, by Paul Eggert, was moved here from configure.in.
64576         * m4/jm-macros.m4: Require UTILS_HOST_OS.
64578 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64580         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
64581         (jm_PREREQ): Use it.
64583 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64585         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
64586         Use ssize_t, not int, to store result of readlink.
64587         Check for ssize_t overflow as well as size_t overflow,
64588         as POSIX says the result of readlink is implementation-defined
64589         when ssize_t overflows.
64590         Remove unnecessary cast to char*.
64591         Use free+malloc instead of realloc, as the storage doesn't need
64592         to be preserved and it's clearer and can be more efficient that way.
64593         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
64594         * lib/xreadlink.h (xreadlink): Update prototype.
64596 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64598         * lib/xgetcwd.c: Revert some of the previous change; intead,
64599         fix the HAVE_GETCWD_NULL code to behave more like the
64600         !HAVE_GETCWD_NULL code used to.
64602         Include "xalloc.h".
64603         (xgetcwd): Do not return NULL when memory is exhausted; instead,
64604         invoke xalloc_die.
64606 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64608         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
64609         sys/param.h, as pathmax.h includes them.
64611 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64613         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
64614         (jm_PREREQ_XGETCWD): New macro.
64616         * m4/getcwd.m4: New file.
64618 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64620         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
64621         like the HAVE_GETCWD_NULL code.
64622         Include pathmax.h if not HAVE_GETCWD.
64623         Do not include xalloc.h.
64624         (INITIAL_BUFFER_SIZE): New symbol.
64625         Do not use xmalloc / xrealloc, since the caller is responsible for
64626         handling errors.  Preserve errno around `free' during failure.
64627         Do not overrun buffer when using getwd.
64629 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64631         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
64632         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
64633         getcwd (NULL, 0).
64635 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64637         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
64638         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
64639         spotted by Jim Meyering.
64641 2001-09-03  Jim Meyering  <meyering@lucent.com>
64643         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
64644         failure.
64646 2001-09-02  Jim Meyering  <meyering@lucent.com>
64648         * lib/error.c: Update from GNU libc.
64650 2001-09-01  Jim Meyering  <meyering@lucent.com>
64652         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
64653         Used by df.
64655 2001-09-01  Jim Meyering  <meyering@lucent.com>
64657         * lib/xreadlink.c: New file.
64658         * lib/xreadlink.h: New file.
64659         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
64660         xreadlink.h.
64662         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
64663         doesn't conflict with sparc Solaris 7's definition in
64664         /usr/include/sys/int_types.h.
64666         * lib/exclude.c: Use `""', not `<>' to #include non-system header
64667         files.
64668         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
64669         and strncasecmp as r-values.  Unixware didn't have declarations.
64671 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64673         * lib/xstrtol.h: Add copyright notice.
64674         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
64675         LONGINT_INVALID_SUFFIX_CHAR.
64677 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64679         * lib/xstrtol.c (strtoimax): New decl.
64681 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64683         * lib/xgetcwd.c: Don't include pathmax.h.
64684         Include stdlib.h and unistd.h if available.
64685         Include xalloc.h.
64686         (xmalloc, xstrdup, free): Remove decls.
64687         (xgetcwd): Don't assume sizes fit in unsigned.
64688         Check for overflow when computing sizes.
64689         Simplify reallocation code.
64691 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64693         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
64694         a directory's st_size can have an arbitrary value, so the old
64695         usage could waste an arbitrary amount of memory.  All uses
64696         changed.
64697         * lib/savedir.h: Update prototype.
64699 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64701         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
64703         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
64704         old strtoimax.c.
64706         Also, make the following further changes to make this file's
64707         configuration more similar to that of strtol.c:
64708         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
64709         (strtoumax, uintmax_t, strtoull, strtol): Remove.
64710         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
64711         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
64712         changed to signed values.
64714         And make the following changes as well:
64715         Fix copyright notice, as 1999 was missing.
64716         (verify): New macro.
64717         (strtoimax): Check sizes at compile-time, not run-time.
64718         Prefer strtol to strtoll if both work.
64719         (main): Remove; it was not that useful and was a pain to maintain.
64721         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
64723 2001-08-31  Jim Meyering  <meyering@lucent.com>
64725         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
64726         Use an initial, malloc'd, buffer of length 128 rather than
64727         a statically allocated one of length 1024.
64729 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64731         Simplify code, partly by assuming autoconf 2.52 semantics.
64733         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
64735         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
64736         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
64737         All uses removed.
64738         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
64739         Move AC_REQUIRE to next-to-top level, to avoid confusion.
64740         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
64741         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
64742         jm_AC_HEADER_INTTYPES_H.
64743         * m4/jm-macros.m4 (jm_MACROS): Likewise.
64745         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
64747         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64748         Quote first arg of AC_DEFUN.
64749         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
64750         since they are needed to parse the include file even if we need
64751         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
64752         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
64753         but with opposite signedness.
64755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64757         Merge 'exclude' changes from tar 1.13.22.
64758         This fixes one or two unlikely storage allocation overflow bugs,
64759         but doesn't change user-visible behavior otherwise.
64761 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64763         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
64764         (jm_PREREQ_EXCLUDE): New macro.
64766 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64768         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
64769         tm to be declared.
64771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64773         * lib/hash.c: Remove '2001' from copyright notice.
64775 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64777         * lib/full-write.h: New file.
64778         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
64779         * lib/full-write.c: Correct credits, as cccp.c no longer
64780         exists and anyway it was so heavily changed from the old cccp
64781         code as to be unrecognizable.  Include full-write.h.
64782         (full_write) Return size_t, with short writes meaning failure.
64783         All callers changed.  This fixes a bug with large buffers
64784         on 64-bit hosts.
64785         * lib/utime.c: Include full-write.h.
64787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64789         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
64790         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
64791         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
64792         Include if available.
64793         (<xalloc.h>): Include
64794         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
64795         (verify): New macro.  Use it to verify that EXCLUDE macros do not
64796         collide with FNM macros.
64797         (struct patopts): New struct.
64798         (struct exclude): Use it, as exclude patterns now come with options.
64799         (new_exclude): Support above changes.
64800         (new_exclude, add_exclude_file):
64801         Initial size must now be a power of two to simplify overflow checking.
64802         (free_exclude, fnmatch_no_wildcards): New function.
64803         (excluded_filename): No longer requires options arg, as the options
64804         are determined by add_exclude.  Now returns bool, not int.
64805         (excluded_filename, add_exclude):
64806         Add support for the fancy new exclusion options.
64807         (add_exclude, add_exclude_file): Now takes int options arg.
64808         Check for arithmetic overflow when computing sizes.
64809         (add_exclude_file): xrealloc might modify errno, so don't
64810         realloc until after errno might be used.
64812         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
64813         New macros.
64814         (free_exclude): New decl.
64815         (add_exclude, add_exclude_file): Now takes int options arg.
64816         (excluded_filename): No longer requires options arg, as the options
64817         are determined by add_exclude.  Now returns bool, not int.
64819 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64821         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
64823 2001-08-27  Jim Meyering  <meyering@lucent.com>
64825         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
64827         * lib/version-etc.c (N_): Remove definition.
64828         Revert most of last change.
64829         Instead, simply don't mark the `Copyright...' string for translation.
64830         Based on advice from Paul Eggert.
64832         * lib/strtoxmax.c: Tweak comment.
64834 2001-08-26  Jim Meyering  <meyering@lucent.com>
64836         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
64838         * m4/xstrtoimax.m4: New file.
64839         * m4/xstrtoumax.m4: Add comments explaining why we
64840         AC_REPLACE_FUNCS(strtol).
64842 2001-08-26  Jim Meyering  <meyering@lucent.com>
64844         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
64845         of copyright with `%s' so translators don't get an untranslated
64846         message in 2002.
64847         (COPYRIGHT_YEAR): Define.
64848         (version_etc): Use fprintf rather than fputs.
64849         Suggestion from Ulrich Drepper.
64851         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
64853         * lib/strtoll.c: New file, from GNU libc.
64854         * lib/xstrtoimax.c: New file.
64856         * lib/xstrtol.h: Add xstrtoimax.
64857         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
64858         * lib/strtoimax.c: New file.  Likewise, but first define
64859         STRTOUXMAX_SIGNED.
64861         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
64862         ...
64863         * lib/strtoxmax.c: ... then renamed to this.
64865 2001-08-18  Paul Eggert  <eggert@twinsun.com>
64867         * m4/inttypes.m4: Add AC_PREREQ(2.13).
64868         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
64869         (jm_AC_TYPE_INTMAX_T): New macro.
64870         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
64872         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
64874         * m4/longlong.m4: Renamed from ulonglong.m4.
64875         * m4/inttypes.m4: Renamed from inttypes_h.m4.
64876         * m4/uintmax_t.m4: Removed.
64878 2001-08-13  Paul Eggert  <eggert@twinsun.com>
64880         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
64881         Port to Solaris 8, where 'sed' requires a space after the 'r'
64882         command, and where sh dislikes "$/".  Clean up the spacing a bit.
64883         Redirect output to $tmp just once.
64885 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
64887         * lib/addext.c (<errno.h>): Include.
64888         (errno): Declare if not defined.
64889         (addext): Work correctly when pathconf returns -1 and leaves
64890         errno alone because there is no limit.  Also, work even if
64891         pathconf returns a value greater than SIZE_MAX.
64893 2001-08-12  Jim Meyering  <meyering@lucent.com>
64895         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
64896         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
64897         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
64898         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
64899         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
64900         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
64901         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
64902         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
64903         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
64904         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
64905         utime.m4, utimes.m4, xstrtoumax.m4:
64906         Quote the first argument in each use of AC_DEFUN.
64908 2001-08-12  Jim Meyering  <meyering@lucent.com>
64910         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
64911         Simply `return getcwd (NULL, 0);'.
64912         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
64913         Use 1300 as initial value for length, not PATH_MAX.
64915         * lib/pathmax.h: Clean up cpp syntax.
64917 2001-08-12  Jim Meyering  <meyering@lucent.com>
64919         * lib/gettimeofday.c: New file.
64920         * lib/gtod.h: New file.
64921         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
64923 2001-08-05  Jim Meyering  <meyering@lucent.com>
64925         * m4/jm-macros.m4: Require autoconf-2.52.
64927 2001-08-04  Jim Meyering  <meyering@lucent.com>
64929         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
64930         stmt, to get in sync with glibc.
64932 2001-08-03  Paul Eggert  <eggert@twinsun.com>
64934         The following changes are from gettext 0.10.39 as maintained by
64935         Bruno Haible.
64937         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
64938         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
64939         with inverted sense.  All uses changed.
64941         * lib/mbswidth.c: Don't include <limits.h>.
64942         Include <stdlib.h> and <string.h> unconditionally.
64943         (iswcntrl, mbsinit, ISCNTRL): New macros.
64944         (mbsnwidth): Use K&R style function declarations.
64945         Don't bother checking for MB_LEN_MAX == 1, since the compiler
64946         can optimize it when MB_CUR_MAX == 1.
64947         The width of control characters is zero, not 1.
64949 2001-08-03  Paul Eggert  <eggert@twinsun.com>
64951         The following changes are from gettext 0.10.39 as maintained by
64952         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
64954         * m4/codeset.m4: Upgrade to serial AM1.
64955         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
64956         all uses changed.  Quote first arg of AC_DEFUN.
64957         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
64959         * m4/iconv.m4: Upgrade to serial AM2.
64960         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
64961         Add --with-libconv-prefix.
64962         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
64963         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
64964         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
64965         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
64966         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
64968         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
64969         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
64970         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
64971         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
64972         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
64973         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
64974         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64975         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
64976         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64978         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
64979         string.h any more.
64981         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
64982         not the default value.
64984         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
64985         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
64986         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
64987         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
64988         Also check for iswcntrl, used for wcwidth fallback.
64989         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
64990         to Autoconf 2.13.
64992 2001-08-03  Jim Meyering  <meyering@lucent.com>
64994         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
64995         as it was in the original.  Reported by Paul Eggert.
64997 2001-07-16  Jim Meyering  <meyering@lucent.com>
64999         * m4/gettimeofday.m4: New file.
65000         Prompted by a report from Bernhard Baehr.
65002 2001-07-15  Jim Meyering  <meyering@lucent.com>
65004         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65005         stuff. Now it's in ../Makefile.cfg.
65007 2001-07-15  Jim Meyering  <meyering@lucent.com>
65009         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65010         (BUILT_SOURCES): Add unlocked-io.h.
65011         (io_functions): Define.
65012         (unlocked-io.h): New rule.
65013         (DISTCLEANFILES): Add unlocked-io.h.
65014         (all-local): Depend on unlocked-io.h, to ensure it is created.
65016         * lib/unlocked-io.hin: New file
65018         * lib/regex.c: Update from glibc.
65020 2001-07-05  Jim Meyering  <meyering@lucent.com>
65022         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65023         recommendation.
65024         (libfetish_a_SOURCES): Put all .h files here instead.
65025         Remove a thus-exposed (better checks in automake) duplicate and
65026         two unnecessary .h files.
65028 2001-07-04  Jim Meyering  <meyering@lucent.com>
65030         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65031         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65032         distcheck failure.
65034 2001-07-02  Jim Meyering  <meyering@lucent.com>
65036         The following changes were prompted by suggestions from Bruno Haible.
65038         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65039         is now generated.
65040         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65041         definition of EXTRA_DIST.
65042         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65043         ensure that the generated file is created/updated whenever the list
65044         of $(unlocked_functions) is changed.
65045         (jm-glibc-io.m4): New rule.
65046         (unlocked-io.h): New rule -- currently unused.
65048 2001-06-24  Jim Meyering  <meyering@lucent.com>
65050         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65051         unmatched right bracket, rather than kludging it with an extra,
65052         falsely-matching quote in a comment.  Patch by Akim Demaille.
65054 2001-06-11  Jim Meyering  <meyering@lucent.com>
65056         * lib/regex.c: Update from GNU libc.
65058 2001-05-27  Jim Meyering  <meyering@lucent.com>
65060         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65061         Check for ut_type in struct utmp.
65063 2001-05-27  Jim Meyering  <meyering@lucent.com>
65065         * lib/readutmp.h (UT_TYPE): Define.
65067 2001-05-24  Jim Meyering  <meyering@lucent.com>
65069         * lib/argmatch.c: Include "quote.h".
65070         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65071         quote function.  Reported by Göran Uddeborg.
65073 2001-05-22  Jim Meyering  <meyering@lucent.com>
65075         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65076         now that we use the package-supplied version unconditionally.
65077         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65079 2001-05-21  Jim Meyering  <meyering@lucent.com>
65081         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65082         shell syntax errors.
65084 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65086         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65088 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65090         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65091         Don't bother to check library strftime, since
65092         we'll be using our own my_strftime function anyway.
65093         Define my_strftime instead of strftime.
65095 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65097         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65098         which is not yet declared.
65100 2001-05-15  Jim Meyering  <meyering@lucent.com>
65102         * m4/regex.m4: Use proper quoting so brackets appear in the test
65103         program.
65104         Reported by, and with help from, Bruno Haible.
65106 2001-05-13  Jim Meyering  <meyering@lucent.com>
65108         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65109         undefined.
65111 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65113         dirname code cleanup.  base_name now behaves more compatibly
65114         with POSIX basename when given file names that have trailing
65115         slashes, and similarly for dir_name.  Add new primitives
65116         base_len and dir_len.  Put the directory-name-related decls
65117         into dirname.h.
65119         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65120         * lib/backupfile.c (base_name): Likewise.
65121         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65122         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65123         * lib/makepath.c (strip_trailing_slashes): Likewise.
65124         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65125         ISSLASH): Likewise.
65126         * lib/rename.c (strip_trailing_slashes): Likewise.
65127         * lib/same.c (base_name): Likewise.
65128         * lib/stripslash.c (ISSLASH): Likewise.
65130         * lib/addext.c: Include <dirname.h> after size_t is defined.
65131         * lib/backupfile.c: Likewise.
65133         * lib/addext.c (addext): Use base_len to trim redundant
65134         trailing slashes instead of doing it ourselves.
65135         But do not trim the last slash if it is not redundant.
65137         * lib/backupfile.c (find_backup_file_name,
65138         max_backup_version): Use base_len instead of rolling it ourselves.
65139         Handle the case of "" and (on DOS) "C:" correctly.
65141         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65142         needed. Include <string.h>, <dirname.h>.
65143         (base_name): Allow file names ending in slashes, other than names
65144         that are all slashes.  In this case, return the basename followed
65145         by the slashes.  This is more general, and can be used in places
65146         where the original base_name purposely had an assertion failure.
65147         (base_len): New function.
65149         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65150         Do not include <assert.h>; no longer needed.
65151         Include xalloc.h.
65152         (memrchr): Remove decl.
65153         (dir_name_r): Remove.
65154         (dir_len): Renamed from dirlen.  All callers changed.
65155         Rewrite in terms of base_name, for simplicity and consistency.
65156         (dir_name): Never return NULL.  All callers changed.
65157         Do not include <stdlib.h> in test program; no longer needed.
65158         return 0; is fine for test program.
65160         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65161         New macros.
65162         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65164         * lib/path-concat.c (path_concat): Use base_len to compute
65165         base length, not strlen; this means we cannot rely on memcpy
65166         to null-terminate.
65168         * lib/same.c (STREQ): Remove.
65169         (same_name): Handle the case where the basename ends in trailing '/'.
65171         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65172         a slash was stripped.  Do not strip the last slash after a
65173         file system prefix.
65175 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65177         * lib/Makefile.am (libfetish_a_SOURCES):
65178         Add strftime.c, since we now compile it on all hosts.
65180         * lib/strftime.c (my_strftime):
65181         Define to nstrftime if emacs, but only if my_strftime is not defined.
65182         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65183         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65184         Add one more extra argument: a nanoseconds value.
65185         All uses changed.
65186         (ns): New macro.
65187         (my_strftime function): Add %N format.
65188         (emacs_strftimeu): Renamed from emacs_strftime,
65189         with extra ut argument.
65191 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65193         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65195 2001-04-21  Jim Meyering  <meyering@lucent.com>
65197         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65198         doesn't interfere.
65200 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65202         * m4/ftruncate.m4: Check for chsize.
65203         Link with ftruncate.o unconditionally if ftruncate is missing.
65204         This was required when cross-compiling to i586-mingw32msvc.
65206 2001-04-08  Jim Meyering  <meyering@lucent.com>
65208         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65209         recomputed; that's necessary when the offset spans a DST transition.
65210         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65212 2001-04-02  Jim Meyering  <meyering@lucent.com>
65214         * lib/regex.h, regex.c: Update from GNU libc.
65216 2001-03-24  Jim Meyering  <meyering@lucent.com>
65218         * m4/jm-macros.m4: Require autoconf-2.49d.
65220 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65222         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65224 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65226         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65228 2001-03-17  Jim Meyering  <meyering@lucent.com>
65230         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65231         now that the version in autoconf is equivalent.
65232         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65234         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65235         Suggestion from Akim Demaille.
65237         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65238         (jm_PREREQ_TEMPNAME): New function.
65240 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65242         * lib/tempname.c (uint64_t): Define to uintmax_t if
65243         not defined, and if UINT64_MAX is not defined.
65244         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65245         Reported by John David Anglin.
65247 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65249         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65250         resolve alias if codeset is empty.
65251         * lib/config.charset (BeOS): Use wildcard syntax.
65253 2001-03-13  Jim Meyering  <meyering@lucent.com>
65255         * lib/path-concat.c (path_concat)
65256         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65257         concatenating e.g., `C:' and `foo'.
65258         From Bruno Haible.
65260 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65262         * lib/localcharset.c (locale_charset): Don't use
65263         setlocale(LC_CTYPE,NULL). Don't return NULL.
65264         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65266 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65268         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65269         support for DOS/DJGPP.
65271 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65273         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65274         lacks mkstemp.  Compile our own tempname.c if we compile our own
65275         mkstemp.c, as mkstemp relies on tempname.
65277 2001-03-01  Jim Meyering  <meyering@lucent.com>
65279         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65280         AH_VERBATIM really does output its argument verbatim.
65282 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65284         * lib/Makefile.am (libfetish_a_SOURCES):
65285         Add dup-safer.c, fopen-safer.c.
65286         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65288         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65289         * lib/unistd-safer.h: New files.
65291 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65293         The mkstemp replacement is taken from glibc 2.2.2, with some
65294         portability fixes for use outside glibc, as follows:
65296         * lib/tempname.c (struct_stat64): New macro.
65297         (direxists, __gen_tempname): Use it.
65298         This avoids a portability problem with Solaris 8.
65300         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65301         (<stddef.h>, <stdint.h>, <string.h>):
65302         Include only if STDC_HEADERS || _LIBC.
65303         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65304         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
65305         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
65306         (__set_errno): Define this macro if <errno.h> doesn't.
65307         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
65308         Define these macros if <stdio.h> doesn't.
65309         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
65310         Define these macros if <sys/stat.h>
65311         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
65312         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
65313         __xstat64): Define if not _LIBC.
65314         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
65315         (__gen_tempname): Invoke gettimeofday only if
65316         HAVE_GETTIMEOFDAY || _LIBC;
65317         otherwise, fall back on plain "time".
65318         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
65320         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
65322         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
65324 2001-02-18  Paul Eggert  <eggert@twinsun.com>
65326         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
65328 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65330         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
65331         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
65332         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
65333         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65335 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65337         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
65338         Remove workaround macros for hosts that have mbrtowc but not
65339         mbstate_t, as we now insist on proper declarations for both
65340         before using mbrtowc.
65342 2001-02-17  Jim Meyering  <meyering@lucent.com>
65344         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
65345         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
65346         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
65347         UnixWare 7.1.1.
65349         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
65350         rather than AC_CACHE_VAL.
65352 2001-02-17  Jim Meyering  <meyering@lucent.com>
65354         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
65355         around included file name.
65357         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
65359         * lib/strftime.c: Update from GNU libc (the only changes were to
65360         comments).
65362 2001-02-17  Jim Meyering  <meyering@lucent.com>
65364         * lib/regex.c: Update from libc.
65366 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
65368         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
65369         clash.
65371 2001-02-16  Paul Eggert  <eggert@twinsun.com>
65373         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
65374         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
65375         Reported by Mark Hounschell via Paul Eggert.
65377 2001-02-07  Jim Meyering  <meyering@lucent.com>
65379         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
65381 2001-02-05  Jim Meyering  <meyering@lucent.com>
65383         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
65384         it includes the patch required for `large file' support with at least
65385         HP-UX's 10.20 /bin/cc.
65387 2001-02-03  Jim Meyering  <meyering@lucent.com>
65389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
65390         AS_IF, now that it works once again (mysteriously).
65391         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65393 2001-01-30  Jim Meyering  <meyering@lucent.com>
65395         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
65396         * m4/chown.m4: Rename conftestchown to conftest.chown.
65397         * m4/rename.m4: s/conftestdir/conftest.d1/ and
65398         s/conftestdir2/conftest.d2/.
65399         * m4/utimes.m4: s/conftestdata/conftest.data/
65400         Inspired by Pavel Roskin's change in autoconf.
65402 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
65404         * lib/config.charset: Update for FreeBSD 4.2.
65406 2001-01-27  Jim Meyering  <meyering@lucent.com>
65408         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
65409         a use of AS_IF.
65410         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65412 2001-01-26  Jim Meyering  <meyering@lucent.com>
65414         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
65415         quotearg.c includes it.
65417 2001-01-26  Jim Meyering  <meyering@lucent.com>
65419         * lib/quotearg.c: Include stddef.h.
65420         * lib/quote.c: Include stddef.h.
65421         Reported by Axel Kittenberger.
65423         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
65424         line in double quotes so that it evokes a better diagnostic.
65425         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
65426         Reported by Axel Kittenberger.
65428 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
65430         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
65431         as if it was a `charset'.
65433 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65435         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
65436         has const.
65438 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65440         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
65441         to avoid a warning.  Add back 'const' to inptr.
65443 2001-01-20  Jim Meyering  <meyering@lucent.com>
65445         Be sure that headers are checked before used in code compiled
65446         for the type checks.
65447         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
65448         In place of that, invoke jm_CHECK_ALL_TYPES.
65449         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
65450         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
65451         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
65452         The check for ssize_t was mistakenly run before the test for unistd.h.
65454         The configure-time check for stdbool.h was missing.
65455         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
65456         (jm_PREREQ_HASH): New function.
65458 2001-01-17  Jim Meyering  <meyering@lucent.com>
65460         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
65461         for autoconf-2.49c.
65462         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
65464 2001-01-16  Jim Meyering  <meyering@lucent.com>
65466         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
65467         From Bruno Haible.
65469 2001-01-14  Jim Meyering  <meyering@lucent.com>
65471         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
65472         foo and bar.  Create conftestdir/ in the script, not in the C code.
65473         Remove directories in the script, not in the C code.
65474         Remove conftestdir{,2} before trying to create the directory.
65475         Make the entire configure script fail if the mkdir fails.
65477 2001-01-14  Jim Meyering  <meyering@lucent.com>
65479         * lib/rename.c: New file.  From Volker Borchert.
65480         Include stdlib.h, string.h or strings.h, and xalloc.h.
65481         Use strip_trailing_slashes rather than open-coding it.
65483 2001-01-03  Paul Eggert  <eggert@twinsun.com>
65485         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
65487 2001-01-03  Jim Meyering  <meyering@lucent.com>
65489         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
65490         of local `inptr' to avoid warning with some system declarations of
65491         iconv.
65493 2001-01-02  Volker Borchert  <bt@teknon.de>
65495         * m4/rename.m4: New file.
65496         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
65498 2001-01-01  Jim Meyering  <meyering@lucent.com>
65500         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
65501         even on systems with utmpx.h.  It's necessary for the declaration of
65502         utmp's ut_user member.  Reported by Andreas Jaeger.
65504         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
65505         available. They are required for the declarations of getgrgid and
65506         getpwuid resp.
65507         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
65508         Reported by Andreas Jaeger.
65510 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
65512         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
65513         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
65514         so `make install' also works in VPATH builds.
65516 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
65518         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
65519         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
65520         can be used in subdirectories.
65522 2000-12-29  Paul Eggert  <eggert@twinsun.com>
65524         * lib/modechange.c: Do not assume that mode_t uses the
65525         traditional octal encoding.  E.g. "chmod 1 FOO" should set
65526         the other-execute bit of FOO even if S_IXOTH != 1.
65528         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
65529         WOTH, XOTH, ALLM): New macros.
65530         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
65531          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
65532         Use them.
65533         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
65534         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
65535         (mode_compile):
65536         No need to use uintmax_t; unsigned long is long enough.
65537         Don't bother to get suffix since we don't use it.
65539 2000-12-26  Jim Meyering  <meyering@lucent.com>
65541         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
65542         better with autoheader.
65544 2000-12-24  Jim Meyering  <meyering@lucent.com>
65546         * lib/hash.c (is_prime): Return explicit boolean values.
65547         (hash_get_first): Return NULL to appease Irix5.6's 89.
65548         Reported by Nelson Beebe.
65550 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
65552         * lib/localcharset.c (locale_charset): Add support for Win32.
65554 2000-12-18  Paul Eggert  <eggert@twinsun.com>
65556         * lib/physmem.h, lib/physmem.c: New files.
65558         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
65559         (noinst_HEADERS): Add physmem.h.
65561         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
65562         't' for compatibility with Solaris 8 sort.
65564 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
65566         * lib/config.charset: Add support for BeOS.
65568 2000-12-17  Jim Meyering  <meyering@lucent.com>
65570         * m4/dos.m4 (jm_AC_DOS): New file and macro.
65571         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
65573 2000-12-16  Jim Meyering  <meyering@lucent.com>
65575         This bug had a serious impact on chown: `chown N:M FILE' (for integer
65576         N and M) would have treated it like `chown N:N FILE'.
65578         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
65580 2000-12-16  Jim Meyering  <meyering@lucent.com>
65582         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
65583         SHELLS_FILE to a file name that's useful on djgpp systems.
65584         Include stdlib.h.
65585         (ADDITIONAL_DEFAULT_SHELLS): Define.
65586         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
65587         Based mostly on a patch from Prashant TR.
65589 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
65591         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
65592         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
65593         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
65595 2000-12-08  Andreas Schwab  <schwab@suse.de>
65597         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
65598         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
65600 2000-12-07  Jim Meyering  <meyering@lucent.com>
65602         * lib/stripslash.c (ISSLASH): Define.
65603         (strip_trailing_slashes): Use ISSLASH rather than comparing against
65604         `/'.
65605         From Prashant TR.
65607         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
65608         (dir_name_r): Declare this function as static.
65609         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
65610         manifest itself on a name containing a mix of slashes and
65611         backslashes.
65612         Make this function work with names starting with a DOS-style
65613         drive letter and colon prefix.
65614         (dir_name): Append `.' if necessary.
65615         Based mostly on patches from Prashant TR and Eli Zaretskii.
65617         * lib/dirname.h (dir_name_r): Remove prototype.
65619 2000-12-06  Paul Eggert  <eggert@twinsun.com>
65621         * m4/off_t-format.m4: Remove this file.
65622         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
65624 2000-12-06  Jim Meyering  <meyering@lucent.com>
65626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
65627         replacement strtoull, we may well need the replacement strtoul, too.
65628         Check for declarations of strtoul and strtoull.
65629         Check for strtol.  Mainly as a cue to cause automake to include
65630         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
65631         Check for limits.h -- strtol.c needs it.
65633 2000-12-05  Jim Meyering  <meyering@lucent.com>
65635         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
65637 2000-12-04  Jim Meyering  <meyering@lucent.com>
65639         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
65640         Also include memory.h, stdlib.h, unistd.h if appropriate.
65641         Reported by Andreas Jaeger (conflicting declaration of malloc).
65643 2000-12-02  Jim Meyering  <meyering@lucent.com>
65645         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
65646         * m4/jm-macros.m4 (jm_MACROS): require it.
65648 2000-12-02  Jim Meyering  <meyering@lucent.com>
65650         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
65652 2000-12-01  Paul Eggert  <eggert@twinsun.com>
65654         * lib/memrchr.c: Include <config.h> before any system include file.
65656 2000-11-30  Jim Meyering  <meyering@lucent.com>
65658         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
65660 2000-11-30  Jim Meyering  <meyering@lucent.com>
65662         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
65664 2000-11-29  Paul Eggert  <eggert@twinsun.com>
65666         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
65668 2000-11-26  Jim Meyering  <meyering@lucent.com>
65670         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
65672 2000-11-22  Paul Eggert  <eggert@twinsun.com>
65674         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
65675         size of (size_t) -1; it's not portable.
65677 2000-11-17  Jim Meyering  <meyering@lucent.com>
65679         * lib/strstr.c: Update from GNU libc.
65681 2000-11-17  Akim Demaille  <akim@epita.fr>
65683         * lib/obstack.h: Formatting changes.
65684         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
65685         prevent type checking.
65686         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
65687         cast the value to (void *): assigning a `foo *' to a `void *'
65688         variable is valid.
65689         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
65691 2000-11-16  Jim Meyering  <meyering@lucent.com>
65693         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
65695 2000-11-11  Jim Meyering  <meyering@lucent.com>
65697         * lib/error.c: Add a couple #includes, merging from GNU libc version.
65699 2000-11-10  Jim Meyering  <meyering@lucent.com>
65701         * lib/obstack.h: Update from GNU libc.
65702         * lib/obstack.c: Likewise.
65704 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
65706         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
65708 2000-11-06  Paul Eggert  <eggert@twinsun.com>
65710         * lib/getusershell.c (setusershell): Use rewind rather than
65711         fseek/fseeko, to avoid configuration hassles with fseeko.
65712         Don't bother opening SHELLS_FILE if shellstream is NULL;
65713         it's not necessary.
65715 2000-11-05  Jim Meyering  <meyering@lucent.com>
65717         * lib/makepath.h (make_dir): Declare.
65718         * lib/makepath.c (make_dir): Remove `static' attribute.
65719         Tweak a comment.
65721 2000-11-04  Jim Meyering  <meyering@lucent.com>
65723         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
65725 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
65727         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
65728         last one in a bucket, advance to the next bucket.
65730 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
65732         * lib/fnmatch.c: Do not comment out all the code if we are using
65733         the GNU C library, because in some cases we are replacing buggy
65734         code in the GNU C library itself.
65736 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
65738         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
65739         (regex_compile): Catch bogus \(\1\).
65741 2000-10-30  Paul Eggert  <eggert@twinsun.com>
65743         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
65744         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
65745         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
65747 2000-10-30  Paul Eggert  <eggert@twinsun.com>
65749         * lib/error.h, getline.h, modechange.h:
65750         Remove "2000" from Copyright line, as the file hasn't been
65751         changed this year other than in the copyright notice.
65753         * lib/xalloc.h: Add "2000" to Copyright line, as this file
65754         was changed this year.
65756 2000-10-29  Jim Meyering  <meyering@lucent.com>
65758         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
65759         renaming.
65760         * m4/ls-mntd-fs.m4: Likewise
65762 2000-10-29  Jim Meyering  <meyering@lucent.com>
65764         * lib/xstat.in: Fix grammar in comment.
65766 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
65768         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
65769         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
65770         doesn't define __restrict_arr.
65772 2000-10-28  Jim Meyering  <meyering@lucent.com>
65774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
65775         (jm_PREREQ_MEMCHR): New function.
65777 2000-10-28  Jim Meyering  <meyering@lucent.com>
65779         * lib/memchr.c: Update from libc.
65780         Adjust for portability:
65781         [HAVE_STDLIB_H]: Include stdlib.h.
65782         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
65783         Undef __memchr, too.
65784         [!weak_alias]: Define __memchr to memchr.
65786         * lib/regex.c: Update from libc.
65787         * lib/regex.h: Likewise.
65788         * lib/getopt1.c: Likewise.
65789         * lib/memcmp.c: Likewise.
65791         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
65792         Avoid using fseek, when possible -- it's broken by design.
65793         Patch by Ulrich Drepper.
65795 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
65797         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
65798         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
65799         Giving in to popular pressure to shut up the compiler with casts.
65801 2000-10-26  Jim Meyering  <meyering@lucent.com>
65803         * lib/strftime.c: Update from libc.
65805 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
65807         * regex.c: More `unsigned char' -> `re_char' changes.
65808         Also change several `int' into `re_wchar_t'.
65809         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
65810         (PUSH_FAILURE_POINTER): Don't cast any more.
65811         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
65812         We want GCC to complain, since this piece of code makes
65813         re_match non-reentrant, which *should* be fixed.
65814         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
65815         (EXTEND_BUFFER): Use RETALLOC.
65816         (SET_LIST_BIT): Don't cast.
65817         (re_wchar_t): New type.
65818         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
65819         that those two functions will always properly return.
65820         (IMMEDIATE_QUIT_CHECK): Cast to void.
65821         (analyse_first): Use recursion rather than an explicit stack.
65822         (re_compile_fastmap): Can't fail anymore.
65823         (re_search_2): Don't check re_compile_fastmap for failure.
65824         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
65825         Now also sets the new value (passed in a new argument).
65826         (re_match_2_internal): Use it.
65827         Also, use a new var `reg' of type size_t when looping through regs
65828         rather than reuse the inappropriate `mcnt'.
65830 2000-10-25  Jim Meyering  <meyering@lucent.com>
65832         * lib/obstack.c: Update from libc.
65834 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
65836         * regex.c (regex_compile): Change the way of handling a range from
65837         a char less than 256 to a char not less than 256.
65839 2000-10-24  Andrew Innes  <andrewi@gnu.org>
65841         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
65842         NT-Emacs only.
65843         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
65844         so that re_search functions only quit when callers expect them to.
65846 2000-10-23  Jim Meyering  <meyering@lucent.com>
65848         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
65849         wrong.  That set_locale call must not have any side effects.
65850         From Paul Eggert.
65852 2000-10-22  Jim Meyering  <meyering@lucent.com>
65854         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
65855         [CYCLIC]: Remove now-unused definition.
65857         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
65858         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
65859         Suggestion from Ulrich Drepper.
65861 2000-10-21  Jim Meyering  <meyering@lucent.com>
65863         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
65864         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
65865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
65867 2000-10-21  Jim Meyering  <meyering@lucent.com>
65869         * lib/dirname.c (memrchr): Declare if necessary.
65870         (dir_name): Remove the restriction that there be no
65871         trailing slashes.  Now, this code skips past them, effectively
65872         ignoring them.
65873         [TEST_DIRNAME] (main): New unit tests.
65875         * lib/memrchr.c: New file from GNU libc.
65876         Undef __memrchr, too.
65877         [!weak_alias]: Define __memrchr to memrchr.
65878         Guard weak_alias use with `#ifdef weak_alias'.
65880 2000-10-21  Jim Meyering  <meyering@lucent.com>
65882         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
65883         (dir_name): Use dir_name_r.
65884         * lib/dirname.h (dir_name_r): Declare it.
65886 2000-10-17  Jim Meyering  <meyering@lucent.com>
65888         * lib/quote.h (PARAMS): Define and use.
65889         Reported by Akim Demaille.
65891         * lib/getopt.c: Update from libc.
65893 2000-10-16  Jim Meyering  <meyering@lucent.com>
65895         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
65896         setlocale.
65897         From Jan Fedak.
65899 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
65901         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
65903 2000-09-25  Jim Meyering  <meyering@lucent.com>
65905         * lib/md5.h (rol): Define (from GnuPG).
65907         * lib/sha.c: Give credit (GnuPG) where due.
65908         (M): Use rol rather than open-coding it.
65909         Add a FIXME comment.
65911 2000-09-21  Jim Meyering  <meyering@lucent.com>
65913         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
65914         Reported by Michael Stone.
65916 2000-09-20  Jim Meyering  <meyering@lucent.com>
65918         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
65919         (noinst_HEADERS): Add sha.h.
65920         Based on code from Scott G. Miller and from GnuPG.
65922 2000-09-18  Jim Meyering  <meyering@lucent.com>
65924         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
65925         LIBS. Otherwise, everyone ends up linking with -lelf for some
65926         configurations.
65927         Reported by Mike Stone.
65929 2000-09-15  Jim Meyering  <meyering@lucent.com>
65931         * lib/regex.c: Update from libc.
65933 2000-09-10  Jim Meyering  <meyering@lucent.com>
65935         * lib/getopt.c (_getopt_internal): Update from glibc.
65937 2000-09-09  Jim Meyering  <meyering@lucent.com>
65939         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
65940         think it should be used as a general replacement for isascii.
65941         * lib/fnmatch.c: Likewise.
65942         * lib/mbswidth.c: Likewise
65943         * lib/regex.c: Likewise.
65945         Don't use atoi.
65946         * lib/userspec.c: Include sys/param.h and limits.h.
65947         Include xstrtol.h.
65948         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65949         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
65950         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
65951         UID, GID.  Check range.
65953 2000-09-06  Jim Meyering  <meyering@lucent.com>
65955         * lib/getopt.c (_getopt_internal): Update from glibc.
65957 2000-08-30  Jim Meyering  <meyering@lucent.com>
65959         * lib/strftime.c: Merge in changes from GNU libc.
65961 2000-08-26  Jim Meyering  <meyering@lucent.com>
65963         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
65964         * m4/fpending.m4: New file.
65966 2000-08-26  Jim Meyering  <meyering@lucent.com>
65968         * lib/closeout.c: Include "__fpending.h".
65969         (close_stdout_status): Return right away if there's nothing to flush.
65971         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
65972         * lib/__fpending.c: New file.
65973         * lib/__fpending.h: New file.
65975 2000-08-20  Jim Meyering  <meyering@lucent.com>
65977         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
65978         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
65979         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
65981 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
65983         Improve fileutils installation on systems where running
65984         programs (like install) can't be unlinked.
65985         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
65986         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
65988 2000-08-07  Paul Eggert  <eggert@twinsun.com>
65990         Standardize on "memory exhausted" instead of "Memory exhausted"
65991         or "virtual memory exhausted".
65992         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
65993         "virtual memory exhausted".
65994         * lib/same.c (same_name): Invoke xalloc_die instead of printing
65995         our own message.
65996         * lib/userspec.c (parse_user_spec): Likewise.
65997         * lib/bumpalloc.h: comment fix
65998         * lib/same.c, userspec.c: Include xalloc.h.
66000         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66001         not char *const and pointing to a constant array.
66002         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66003         (xrealloc): Comment fix.
66005         * lib/userspec.c (parse_user_spec):
66006         Don't translate a message until just before returning,
66007         to avoid unnecessary translation.
66009 2000-08-07  Jim Meyering  <meyering@lucent.com>
66011         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66012         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66013         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66014         getgroups.c, gethostname.c, getopt.h, group-member.c,
66015         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66016         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66017         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66018         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66019         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66020         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66021         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66022         yesno.c: Back out Copyright date changes for each file with no change
66023         this year.  This eases coordination with other programs using the same
66024         source code modules.  From Paul Eggert.
66026 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66028         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66029         not char, for compatibility with glibc 2.1.3 strftime.c.
66031 2000-08-03  Greg McGary  <greg@mcgary.org>
66033         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66034         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66035         (EXTEND_BUFFER): Use them.
66037 2000-08-01  Jim Meyering  <meyering@lucent.com>
66039         * lib/dirname.c (ISSLASH): Define.
66040         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66041         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66042         both `\' and `/' may be use as path separators.
66043         Based on a patch from Prashant TR.
66045 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66047         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66048         slot vector a constant, since it might get modified.
66050 2000-07-31  Jim Meyering  <meyering@lucent.com>
66052         * lib/xmalloc.c: Use `virtual memory exhausted', not
66053         `Memory exhausted'.
66054         * lib/obstack.c (print_and_abort): Likewise.
66056 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66058         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66059         buffer, so that the caller can always quote one small
66060         component of a "memory exhausted" message in slot 0.
66061         From a suggestion by Jim Meyering.
66063 2000-07-30  Jim Meyering  <meyering@lucent.com>
66065         * lib/makepath.c (make_path): Quote the other instance, too.
66067         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66068         (STATIC_BUF_SIZE): Define.
66069         (quotearg_n_options): Use only statically allocated storage when
66070         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66071         than STATIC_BUF_SIZE.
66073 2000-07-29  Jim Meyering  <meyering@lucent.com>
66075         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66076         * lib/dirname.c (dir_name): Likewise.
66078         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66079         `/'.
66081         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66082         (dir_name): Assert that there are no trailing slashes.
66084 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66086         * lib/mbswidth.h (mbswidth): Add a flags argument.
66087         (mbswidth): New declaration.
66088         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66089         * lib/mbswidth.c (mbswidth): Add a flags argument.
66090         (mbsnwidth): New function.
66092 2000-07-24  Jim Meyering  <meyering@lucent.com>
66094         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66096 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66098         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66100 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66102         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66103         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66104         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66105         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66106         invoke multibyte primitives.
66108 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66110         * lib/quotearg.c:
66111         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66112         so that mbstate_t is always defined.
66114         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66115         be 1 in at least one GCC installation, and this configuration
66116         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66117         performance on hosts that have mbrtowc but have only unibyte
66118         locales, but I assume these hosts are rare.
66120 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66122         * lib/mbswidth.c (_XOPEN_SOURCE):
66123         Don't define; this causes problems on Solaris 7.
66124         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66126 2000-07-23  Jim Meyering  <meyering@lucent.com>
66128         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66129         too: getgrgid, getpwuid, getuid.
66131 2000-07-23  Jim Meyering  <meyering@lucent.com>
66133         * lib/basename.c (base_name): Add an assertion.
66135 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66137         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66138         shadow its mbsinit function.
66140 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66142         * lib/mbswidth.h: New file.
66143         * lib/mbswidth.c: New file.
66144         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66145         (noinst_HEADERS): Add mbswidth.h.
66147 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66149         * lib/config.charset: Add support for FreeBSD. Improve support for
66150         HP-UX and IRIX 6.
66152 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66154         * m4/mbswidth.m4: New file.
66155         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66157 2000-07-15  Jim Meyering  <meyering@lucent.com>
66159         * lib/makepath.c: Include quote.h.
66160         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66161         corresponding argument in a `quote (...)' call.
66162         Give better diagnostics.
66164         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66165         (noinst_HEADERS): Add quote.h.
66167         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66168         from tar's src/misc.c.
66169         * lib/quote.h: New file.  Prototypes for same.
66171 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66173         From a suggestion by Bruno Haible.
66174         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66175         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66176         to decide whether to define the BeOS workaround macro;
66177         this adjusts to the change to AC_MBSTATE_T.
66179 2000-07-14  Jim Meyering  <meyering@lucent.com>
66181         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66182         jm_AC_TYPE_UINTMAX_T.
66184 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66186         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66188         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66189         quotearg_buffer_restyled): Add support for
66190         clocale_quoting_style.  Undo previous change to
66191         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66192         and "{RIGHT QUOTATION MARK}" msgids.
66194 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66196         From a suggestion by Bruno Haible.
66197         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66198         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66199         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66200         and mbstate_t, to a single-part test that simply defines mbstate_t.
66201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66202         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66204 2000-07-10  Jim Meyering  <meyering@lucent.com>
66206         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66208         * m4/gnu-source.m4: Output to confdefs.h directly.
66209         Suggestion from Akim Demaille.
66211 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66213         The old behavior of quoting `like this' doesn't look good with
66214         newer, ISO-style fonts.  See:
66215         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66217         Instead, quote "like this" by default.  Let the translator
66218         tailor the locale-specific quoting behavior by providing
66219         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66221         * lib/quotearg.c (N_): New macro.
66222         (gettext_default): New function.
66223         (quotearg_buffer_restyled): Use
66224         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66225         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66227 2000-07-09  Jim Meyering  <meyering@lucent.com>
66229         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66230         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66232         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66235 2000-07-09  Jim Meyering  <meyering@lucent.com>
66237         * lib/Most files: Update copyright dates to include 2000.
66239 2000-07-08  Jim Meyering  <meyering@lucent.com>
66241         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66242         if not defined.
66243         (xgethostname): Remove now-unnecessary #ifdef.
66244         Move declaration of `err' into loop where it's used.
66246 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66247         and Bruno Haible  <haible@clisp.cons.org>
66249         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66250         only if the test for an object-type mbstate_t fails.  This
66251         prevents us from mistakenly reporting that mbstate_t is a
66252         system object type after we "#define mbstate_t int" to work
66253         around its lack.
66255 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66256         and Bruno Haible  <haible@clisp.cons.org>
66258         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66260 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66262         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66263         to strerror_r.
66264         Include <ctype.h> for use of isalpha.
66266 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66268         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66269         by allocating a larger buffer. Test the gethostname return value for
66270         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66271         returns an error and ENAMETOOLONG isn't defined.
66273 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66275         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66276         dimension.
66278 2000-07-04  Jim Meyering  <meyering@lucent.com>
66280         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66281         of the deprecated AC_CHECKING.
66283 2000-07-04  Jim Meyering  <meyering@lucent.com>
66285         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66286         Reported by Bruno Haible.
66288 2000-07-04  Jim Meyering  <meyering@lucent.com>
66290         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66291         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66292         lacks mbrtowc.
66294 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66296         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66297         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66299 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66300         and Bruno Haible  <haible@clisp.cons.org>
66302         * lib/quotearg.c (mbrtowc):
66303         Assign to *pwc, and return 1 only if result is nonzero.
66304         (iswprint): Use ISPRINT when substituting our own mbrtowc.
66306 2000-07-03  Jim Meyering  <meyering@lucent.com>
66308         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
66310 2000-07-03  Jim Meyering  <meyering@lucent.com>
66312         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
66313         This is necessary to get a definition of e.g., UTMP_FILE on
66314         HP-UX 10.20.
66315         From Bob Proulx.
66317 2000-07-02  Jim Meyering  <meyering@lucent.com>
66319         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
66321         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
66322         AC_LIBOBJ(function_name).
66323         * m4/chown.m4: Likewise.
66324         * m4/fnmatch.m4: Likewise.
66325         * m4/ftruncate.m4: Likewise.
66326         * m4/getgroups.m4: Likewise.
66327         * m4/getline.m4: Likewise.
66328         * m4/group-member.m4: Likewise.
66329         * m4/jm-macros.m4: Likewise.
66330         * m4/lstat.m4: Likewise.
66331         * m4/malloc.m4: Likewise.
66332         * m4/memcmp.m4: Likewise.
66333         * m4/nanosleep.m4: Likewise.
66334         * m4/putenv.m4: Likewise.
66335         * m4/realloc.m4: Likewise.
66336         * m4/regex.m4: Likewise.
66337         * m4/stat.m4: Likewise.
66338         * m4/strftime.m4: Likewise.
66340 2000-07-02  Jim Meyering  <meyering@lucent.com>
66342         * lib/quotearg.c (mbstate_t): Don't define here.
66344 2000-07-02  Jim Meyering  <meyering@lucent.com>
66346         * lib/nanosleep.c (SIGCONT): Define if not already defined.
66348 2000-07-01  Jim Meyering  <meyering@lucent.com>
66350         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
66352 2000-07-01  Jim Meyering  <meyering@lucent.com>
66354         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
66355         problem.
66357 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
66360         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
66362 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66364         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
66365         per change in ../m4/ls-mntd-fs.m4.
66366         (read_filesystem_list): Ignore symbolic links.
66368 2000-06-29  Jim Meyering  <meyering@lucent.com>
66370         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
66371         for declaration of strcmp.
66373         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
66375         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
66376         Avoid warning by casting result to `char *' to remove `const'.
66378 2000-06-28  Jim Meyering  <meyering@lucent.com>
66380         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
66381         included by quotearg.c, for which we perform this test.  From
66382         Bruno Haible.
66384 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66386         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
66387         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
66388         <utmpx.h> exists, put readutmp.o into LIBOBJS.
66390 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66392         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
66394 2000-06-26  Paul Eggert  <eggert@twinsun.com>
66396         savedir now sets errno on failure and invokes xmalloc to get memory.
66397         Fix a couple of other minor bugs while we're at it.
66399         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
66400         (NAMLEN): Remove macro.
66401         (malloc, realloc): Remove decls.
66402         (stpcpy): Likewise.
66403         ("xalloc.h"): Include.
66404         (NAME_SIZE_DEFAULT): New macro.
66405         (savedir): Use xmalloc / xrealloc to allocate memory.
66406         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
66407         Skip "" directory entries.
66408         Use strlen to calculate directory entry length, since the old method
66409         is rarely used these days and isn't worth supporting.
66410         Don't use a pointer after freeing it.
66411         Check for integer overflow when calculating allocation size.
66412         Use memcpy to copy entries, instead of stpcpy.
66413         Set errno properly when returning NULL.
66414         Check for readdir error.
66416 2000-06-26  Jim Meyering  <meyering@lucent.com>
66418         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
66420 2000-06-25  Jim Meyering  <meyering@lucent.com>
66422         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
66423         Linux header bug when _XOPEN_SOURCE is defined to 500.
66425 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66427         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
66428         deficiency.
66430 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66432         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
66433         Include xalloc.h.
66434         Don't include <stdlib.h>.  Don't declare malloc, realloc.
66436 2000-06-24  Jim Meyering  <meyering@lucent.com>
66438         * m4/strerror_r.m4: Revive this file -- to try out an experimental
66439         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
66440         for which strerror does return char*, but which lacks a conveniently
66441         accessible declaration of the function.  If the compile-test says
66442         strerror_r doesn't work, then resort to a `run'-test that works on
66443         BeOS and segfaults on DEC Unix.
66445 2000-06-24  Jim Meyering  <meyering@lucent.com>
66447         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
66449 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66451         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
66452         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
66454 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66456         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
66457         (mbrtowc, mbstate_t): Define substitutes if
66458         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
66459         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
66460         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
66462 2000-06-23  Jim Meyering  <meyering@lucent.com>
66464         * m4/afs.m4: Add missing AC_MSG_RESULT.
66465         Reported by Bruno Haible.
66467         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
66468         Suggestion from Bruno Haible.
66470 2000-06-23  Jim Meyering  <meyering@lucent.com>
66472         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
66474 2000-06-21  Jim Meyering  <meyering@lucent.com>
66476         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
66478 2000-06-21  Jim Meyering  <meyering@lucent.com>
66480         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
66481         (noinst_HEADERS): Add getstr.h.
66483         * lib/getline.c (getstr): Move into a separate file.
66484         * lib/getstr.c (getstr): New file, extracted from getline.c, with
66485         the following changes: new parameter, delim2; both delim[12]
66486         parameters have type `int', not `char'.  The latter would lose
66487         with 8-bit delimiters.
66488         * lib/getstr.h: New file.
66490 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66492         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
66493         than 1024, return a memory chunk of least possible size, instead
66494         of size PATH_MAX + 2. In the loop, increment the size proportionally.
66495         Use free/xmalloc instead of xrealloc to avoid copying for very long
66496         paths.
66498 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66500         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
66501         the empty string.
66503 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66505         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
66506         address, not strdup.  Include <stdlib.h> and don't declare free().
66508 2000-06-19  Jim Meyering  <meyering@lucent.com>
66510         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
66512 2000-06-18  Jim Meyering  <meyering@lucent.com>
66514         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
66516         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
66517         `checking whether...' message to be consistent with that of the
66518         lstat test.
66520 2000-06-18  Jim Meyering  <meyering@lucent.com>
66522         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
66523         Besides, these days every porting target provides a mkdir function.
66525         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
66526         needed. (this snippet comes from src/system.h).
66528 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
66530         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
66532 2000-06-15  Paul Eggert  <eggert@twinsun.com>
66534         * lib/human.c (adjust_value): New function.
66535         (human_readable_inexact): Apply rounding style even when
66536         printing approximate values.
66538 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66540         * lib/human.c (human_readable_inexact): Allow an input block
66541         size that is not a multiple of the output block size, and vice versa.
66542         Reported by Piergiorgio Sartor.
66544 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66546         * lib/getdate.y (get_date): Apply relative times after time
66547         zone indicator, not before.  Reported by Todd A. Jacobs.
66549 2000-06-13  Jim Meyering  <meyering@lucent.com>
66551         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
66553         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
66555 2000-06-12  Paul Eggert  <eggert@twinsun.com>
66557         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
66559 2000-06-12  Jim Meyering  <meyering@lucent.com>
66561         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
66562         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
66563         optional argument.
66564         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
66565         the optional argument, `lib'.
66567 2000-06-08  Jim Meyering  <meyering@lucent.com>
66569         * m4/largefile.m4: Remove file (now that it's part of autoconf).
66571 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66573         Rewrite largefile configuration so that we don't need to run
66574         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
66575         AC_CANONICAL_HOST in configure.in -- jmm]
66577         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
66578         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
66579         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
66580         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
66581         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
66582         All uses changed.
66583         Instead of inspecting the output of getconf, try to compile the
66584         test program without and with the macro definition.
66585         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
66586         for getconf.  Instead, check for the needed flags by compiling
66587         test programs.
66589 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66591         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
66593 2000-06-04  Jim Meyering  <meyering@lucent.com>
66595         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
66596         SunOS 4.1.4 for which gid_t is an unsigned type.
66598 2000-06-03  Jim Meyering  <meyering@lucent.com>
66600         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
66601         now that autoconf requires that.
66603         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
66604         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
66605         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
66607 2000-06-03  Jim Meyering  <meyering@lucent.com>
66609         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
66611 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66613         * m4/glibc21.m4: New file.
66614         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
66616 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66618         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
66619         newer, don't install charset.alias.
66620         * lib/config.charset: Change the Linux/glibc rules so they become empty
66621         on glibc-2.1 or newer.
66623 2000-06-02  Jim Meyering  <meyering@lucent.com>
66625         * lib/mountlist.c: Back out last change.  Instead, do this...
66626         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
66627         me_dummy member using the same `ignore'-testing code.
66628         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
66629         fs_type strings.
66630         From Mark D. Roth.
66632 2000-05-29  Jim Meyering  <meyering@lucent.com>
66634         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
66635         mounts with the `ignore' attribute.  Based on a patch from
66636         Mark D. Roth.
66638 2000-05-28  Jim Meyering  <meyering@lucent.com>
66640         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
66641         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66642         * m4/stat.m4: Likewise.
66643         * m4/lstat.m4: Likewise.
66644         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
66646         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
66647         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
66649 2000-05-26  Jim Meyering  <meyering@lucent.com>
66651         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
66653 2000-05-24  Jim Meyering  <meyering@lucent.com>
66655         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
66656         autoconf requires that.
66657         * m4/lib-check.m4: Likewise.
66658         * m4/jm-macros.m4: Likewise.
66659         * m4/strftime.m4: Likewise.
66661         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
66662         AC_CHECK_DECLS, now that autoconf requires that.
66664 2000-05-22  Jim Meyering  <meyering@lucent.com>
66666         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66667         * m4/lstat.m4: Likewise.
66669 2000-05-22  Jim Meyering  <meyering@lucent.com>
66671         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
66673 2000-05-20  Jim Meyering  <meyering@lucent.com>
66675         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
66676         (jm_PREREQ): Use it.
66678 2000-05-18  Jim Meyering  <meyering@lucent.com>
66680         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
66681         back, too, since it may have been modified by allocate_entry.
66682         (hash_delete): Rewrite to use neither the assignment operator
66683         nor the comma operator in an if-expression.
66685 2000-05-15  Paul Eggert  <eggert@twinsun.com>
66687         * lib/closeout.c:
66688         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
66689         Remove; no longer needed.
66690         "quotearg.h": Add include.
66691         (file_name): Do not bother to explicitly initialize to NULL; it's less
66692         efficient on some hosts.
66693         (close_stdout_status): Remove test as to whether stdout was already
66694         closed; it breaks for the case "echo x | sort >&-".
66695         Quote file name colons.
66696         Do not assume that _("write error") lacks format strings.
66698 2000-05-15  Jim Meyering  <meyering@lucent.com>
66700         * lib/version-etc.c (version_etc_copyright): Update the copyright
66701         string used in all --version output.
66703 2000-05-14  Jim Meyering  <meyering@lucent.com>
66705         * lib/closeout.c (close_stdout_set_file_name): New function.
66706         (close_stdout_status): Use new file-scoped global.
66707         Return right away if fstat says the stdout file descriptor is invalid.
66708         * lib/closeout.h (close_stdout_set_file_name): Declare.
66710 2000-05-10  Jim Meyering  <meyering@lucent.com>
66712         * lib/closeout.c [default_exit_status]: New file-scoped variable.
66713         (close_stdout_set_status): New function.
66714         * lib/closeout.h (close_stdout_set_status): Declare.
66716 2000-05-09  Jim Meyering  <meyering@lucent.com>
66718         * m4/gettext.m4: Rename this...
66719         * m4/libintl.m4: ...to this.
66721 2000-05-08  Jim Meyering  <meyering@lucent.com>
66723         * lib/long-options.c: Don't include closeout.h.
66724         (parse_long_options): Don't call close_stdout for --version.
66726 2000-05-06  Paul Eggert  <eggert@twinsun.com>
66728         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
66729         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
66730         2.1.3 bug.  This avoids a clash when files like regex.c define
66731         _GNU_SOURCE.
66733 2000-05-06  Jim Meyering  <meyering@lucent.com>
66735         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
66736         (AC_REPLACE_FUNCS): Add strnlen.
66738         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
66739         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
66741         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
66742         AC_SEARCH_LIBS call for nanosleep.
66743         (LIB_NANOSLEEP): Set and AC_SUBST.
66745 2000-05-06  Jim Meyering  <meyering@lucent.com>
66747         * lib/strnlen.c: Undefine __strnlen and strnlen.
66748         [!weak_alias]: Define __strnlen to strnlen.
66750         * lib/atexit.c: New file, from libiberty.
66752 2000-05-06  Jim Meyering  <meyering@lucent.com>
66754         * lib/closeout.c (close_stdout_status): Also check for errors on the
66755         stderr stream.
66757 2000-05-05  Jim Meyering  <meyering@lucent.com>
66759         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
66760         AC_SEARCH_LIBS call for clock_gettime.
66761         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
66763         * m4/search-libs.m4: Update from autoconf.
66765         su doesn't work on Solaris 2.6.
66766         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
66767         <shadow.h>.  Reported by Dragos Harabor.
66769 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
66771         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
66772         memcpy instead of xmalloc, xrealloc, path_concat.
66773         (locale_charset): Treat empty environment variables as absent.
66774         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
66776 2000-05-04  Jim Meyering  <meyering@lucent.com>
66778         * lib/getopt.c: Update from glibc.
66779         * lib/obstack.c: Likewise.
66780         * lib/obstack.h: Likewise.
66781         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
66782         file
66784         * lib/regex.h: Likewise.
66785         * lib/strndup.c: Likewise.
66786         * lib/strnlen.c: New file, from glibc.
66788 2000-05-03  Jim Meyering  <meyering@lucent.com>
66790         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
66792 2000-05-02  Paul Eggert  <eggert@twinsun.com>
66794         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
66795         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
66796         compile-time test, rather than inspecting host and OS, to
66797         decide whether to define _LARGEFILE_SOURCE.
66799 2000-05-01  Jim Meyering  <meyering@lucent.com>
66801         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
66803         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
66804         Based on a patch from Bruno Haible.
66806 2000-05-01  Jim Meyering  <meyering@lucent.com>
66808         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
66810 2000-04-29  Jim Meyering  <meyering@lucent.com>
66812         * lib/path-concat.c: Declare strdup only if it's not defined.
66813         * lib/canon-host.c: Likewise.
66815 2000-04-28  Jim Meyering  <meyering@lucent.com>
66817         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
66818         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
66819         is included first, then limits.h is included by locale.h by libintl.h.
66820         From John David Anglin.
66822 2000-04-25  Jim Meyering  <meyering@lucent.com>
66824         * lib/makepath.c (S_IRWXUGO): Define.
66825         (make_path): Always perform explicit chmod if MODE specifies any
66826         of the `special' permission bits.  Prompted by a bug report against
66827         install from Mate Wierdl and Joost van Baal.
66829 2000-04-18  Jim Meyering  <meyering@lucent.com>
66831         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
66832         (jm_PREREQ): Use it.
66834 2000-04-18  Jim Meyering  <meyering@lucent.com>
66836         * lib/README: New file.
66838         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
66839         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
66841 2000-04-17  Jim Meyering  <meyering@lucent.com>
66843         Get it right :-)
66844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
66845         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
66846         Suggestion from Akim Demaille.
66848 2000-04-17  Jim Meyering  <meyering@lucent.com>
66850         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
66851         the definition of it to rpl_strftime also defined-away the system's
66852         declaration.
66854 2000-04-15  Jim Meyering  <meyering@lucent.com>
66856         Use `C' to denote so-called `contiguous' files, the same way
66857         that tar does.
66858         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
66859         (ftypelet): Use S_ISCTG.
66860         From Michael Deutschmann.
66862 2000-04-14  Jim Meyering  <meyering@lucent.com>
66864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
66865         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
66866         clobbered.
66868 2000-04-14  Jim Meyering  <meyering@lucent.com>
66870         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
66872 2000-04-13  Jim Meyering  <meyering@lucent.com>
66874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
66875         AH_VERBATIM to insert required #ifndef into config.h.in.
66876         Suggestion from Akim Demaille.
66878 2000-04-12  Jim Meyering  <meyering@lucent.com>
66880         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
66881         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
66882         Christian Krackowizer.
66884         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
66885         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
66886         (AC_SYS_LARGEFILE): Require.
66887         (AM_C_PROTOTYPES): Require.
66889 2000-04-08  Jim Meyering  <meyering@lucent.com>
66891         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
66892         names don't conflict.  Reported by Eli Zaretskii.
66894 2000-04-07  Jim Meyering  <meyering@lucent.com>
66896         * lib/putenv.c: Move inclusion of errno.h so it follows that of
66897         sys/types.h, to work around system header problems on AIX 3.2.5.
66898         From Bruno Haible.
66900 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
66902         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
66903         bug.  Deal with the different error behavior of Irix iconv.
66905 2000-04-05  Paul Eggert  <eggert@twinsun.com>
66907         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
66908         IRIX if the installer said otherwise.
66910 2000-04-05  Jim Meyering  <meyering@lucent.com>
66912         Portability tweaks required for ultrix4.3.
66913         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
66914         (jm_CHECK_DECLS): Add getutent to the list of functions.
66915         (_jm_DECL_HEADERS): Add utmpx.h.
66916         From John David Anglin.
66918         * m4/strftime.m4: Back out the 2000-04-02 change.
66919         Instead of that change, simply undefine putenv in the test program.
66921 2000-04-05  Jim Meyering  <meyering@lucent.com>
66923         Portability tweaks required for ultrix4.3.
66924         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
66925         getutent.
66926         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
66927         * lib/canon-host.c: Declare strdup.
66928         * lib/path-concat.c: Likewise.
66929         From John David Anglin.
66931 2000-04-04  Jim Meyering  <meyering@lucent.com>
66933         Be more DOS 8.3-friendly.
66934         * lib/ref-add.sin: Renamed from ref-add.sed.in.
66935         * lib/ref-del.sin: Renamed from ref-del.sed.in.
66936         * lib/Makefile.am: Reflect renaming.
66937         Reported by Eli Zaretskii.
66939         Use a temporary file name that won't clash with `charset.alias'
66940         in the DOS 8.3 name space.
66941         * lib/Makefile.am (charset_tmp): Define.
66942         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
66943         (uninstall-local): Likewise.
66944         Reported by Eli Zaretskii.
66946 2000-04-03  Jim Meyering  <meyering@lucent.com>
66948         * m4/gettext.m4: Fix typo in comment.
66950         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
66951         textutils/configure.in).  Suggestion from Paul Eggert.
66952         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
66954 2000-04-02  Paul Eggert  <eggert@twinsun.com>
66956         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
66957         variable in the shell rather than using putenv, which isn't
66958         portable.  This avoids the configure-time inter-test dependency
66959         on the potentially-renamed putenv function.
66961 2000-03-30  Paul Eggert  <eggert@twinsun.com>
66963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
66964         before checking struct stat.st_blksize, so that
66965         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
66967 2000-03-29  Paul Eggert  <eggert@twinsun.com>
66969         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
66970         since strftime.c uses HAVE_STRFTIME to decide whether to use
66971         the underlying strftime.
66973 2000-03-29  Paul Eggert  <eggert@twinsun.com>
66975         * lib/time/strftime.c (my_strftime): Make sure we call the system
66976         strftime, not ourselves, when invoking the underlying strftime.
66978 2000-03-24  Jim Meyering  <meyering@lucent.com>
66980         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
66981         (charset_alias): Define.
66982         (install-exec-local): Factor out common code.
66983         (uninstall-local): Split lines longer than 80.
66984         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
66985         (SUFFIXES): Define.
66986         (.sed.in.sed): New rule.  Don't redirect directly to $@.
66987         (CLEANFILES): Add ref-add.sed and ref-del.sed.
66989 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
66991         * lib/config.charset: Output a line containing "Packages using this
66992         file".
66993         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
66994         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
66995         ref-del.sed): New rules.
66997 2000-03-17  Jim Meyering  <meyering@lucent.com>
66999         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67000         Otherwise, include <strings.h>
67002 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67004         * lib/unicodeio.c (utf8_wctomb): New function.
67005         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67006         format instead of in UCS-4 with platform dependent endianness.
67008 2000-03-10  Jim Meyering  <meyering@lucent.com>
67010         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67011         From Marco Franzen.
67013 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67015         * lib/savedir.c (savedir): Work even if directory size is
67016         negative; this can happen with some screwy NFS configurations.
67018 2000-03-06  Jim Meyering  <meyering@lucent.com>
67020         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67021         if it's NULL (because we ran out of memory).  From Bruno Haible.
67023 2000-03-05  Jim Meyering  <meyering@lucent.com>
67025         * lib/localcharset.c ("path-concat.h"): Include.
67026         (get_charset_aliases): Use path_concat instead of ANSI string
67027         concatenation.
67029         * lib/unicodeio.h (PARAMS): Define.
67030         Use it to guard prototype.
67032 2000-03-04  Jim Meyering  <meyering@lucent.com>
67034         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67035         for lib/localcharset.c.
67037 2000-03-04  Jim Meyering  <meyering@lucent.com>
67039         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67040         installing into it.
67041         (uninstall-local): Uncomment this rule so `make distcheck' works
67042         once again.
67044         * lib/unicodeio.c (<errno.h>): Include it.
67045         (errno): Declare if not defined.
67047         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67049         * lib/config.charset: New version, incorporating remarks from a linux
67050         i18n mailing list.  From Bruno Haible.
67052 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67054         * m4/codeset.m4: New file.
67055         * m4/iconv.m4: New file.
67056         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67058 2000-03-03  Jim Meyering  <meyering@lucent.com>
67060         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67062 2000-03-02  Jim Meyering  <meyering@lucent.com>
67064         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67065         the messages come out on separate lines.
67067         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67068         rather than jm_CHECK_DECLARATIONS.
67069         * m4/decl.m4: Remove now-unused file.
67071         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67072         geteuid.
67074 2000-03-02  Jim Meyering  <meyering@lucent.com>
67076         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67078 2000-03-01  Jim Meyering  <meyering@lucent.com>
67080         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67081         * lib/unicodeio.c: Likewise.
67083 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67085         * lib/config.charset: New file.
67086         * lib/localcharset.c: New file.
67087         * lib/unicodeio.h, lib/unicodeio.c: New files.
67088         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67089         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67090         (noinst_HEADERS): Add unicodeio.h.
67091         (all-local, install-exec-local, charset.alias): New targets.
67093 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67095         * lib/quotearg.c (ALERT_CHAR): New macro.
67096         (quotearg_buffer_restyled): Use it.
67098 2000-02-27  Jim Meyering  <meyering@lucent.com>
67100         * m4/check-decl.m4: Add getenv to the list.
67102 2000-02-27  Jim Meyering  <meyering@lucent.com>
67104         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67105         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67107         * lib/backupfile.c: Guard inclusion of stdlib.h with
67108         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67109         Declare malloc if needed.
67111         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67112         `#ifndef HAVE_DECL..'
67113         now that autoconf always defines the HAVE_DECL_ symbols.
67114         * lib/human.c: Likewise.
67115         * lib/same.c: Likewise.
67116         * lib/strtoumax.c: Likewise.
67118         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67119         declaration check was not run.
67120         * lib/hash.c: Likewise.
67121         * lib/human.c: Likewise.
67122         * lib/same.c: Likewise.
67123         * lib/strtoumax.c: Likewise.
67125         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67126         `.', then first look up the entire `.'-containing string as a login
67127         name.
67129 2000-02-23  Jim Meyering  <meyering@lucent.com>
67131         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67132         in place of my hack.
67134 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67136         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67137         (textint): New typedef.
67138         (parser_control): Member year changed from int to textint.
67139         All uses changed.
67140         (YYSTYPE): Removed; replaced by %union with int and textint members.
67141         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67142         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67143         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67144         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67145         (date, number, to_year): Use width of number in digits, not its value,
67146         to determine whether it's a 2-digit year, or a 2-digit time.
67147         (yylex): Store number of digits of numeric tokens.
67148         Reported by John Kendall.
67150         (parser_control): Changed from struct parser_control to typedef (for
67151         consistency).  All uses changed.
67153         (tID): Removed; not used.
67154         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67156 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67158         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67159         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67161 2000-02-12  Jim Meyering  <meyering@lucent.com>
67163         * lib/userspec.c (ISDIGIT): Define it.
67164         (isdigit): Remove definition.
67165         (is_number): Use ISDIGIT, not isdigit.
67166         <libintl.h>: Include.
67167         (_ and N_): Define.
67168         (parse_user_spec): Mark translatable strings.
67170 2000-02-10  Jim Meyering  <meyering@lucent.com>
67172         With these changes, nanosleep.[ch] are finally enough like the other
67173         lib/* replacement files to compile on a few more losing systems.
67175         * lib/nanosleep.h: Don't include config.h.
67176         Remove prototype from declaration of nanosleep.
67177         (PARAMS): Remove now-unneeded definition.
67178         * lib/nanosleep.c: #undef nanosleep.
67179         (rpl_nanosleep): Rename from nanosleep.
67181 2000-02-10  Jim Meyering  <meyering@lucent.com>
67183         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67184         gnu_nanosleep to rpl_nanosleep.
67186 2000-02-09  Jim Meyering  <meyering@lucent.com>
67188         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67189         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67191 2000-02-08  Akim Demaille  <akim@epita.fr>
67193         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67194         `[' and `]' and remove uses of `changequote'.
67195         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67196         (AC_SYS_LARGEFILE): Likewise.
67197         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67198         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67199         of changequote.
67200         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67201         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67202         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67203         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67205 2000-02-05  Jim Meyering  <meyering@lucent.com>
67207         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67208         Remove explicit use of AC_HEADER_TIME.  It is required by
67209         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67210         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67211         in autoconf whereby the expansion of the latter ended up preceding
67212         the expansion of its prerequisite, AC_HEADER_TIME.
67213         Reported by Volker Borchert.
67215 2000-02-03  Jim Meyering  <meyering@lucent.com>
67217         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67219 2000-02-03  Jim Meyering  <meyering@lucent.com>
67221         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67222         rather than with `#if HAVE_UTMPNAME'.
67224 2000-02-02  Jim Meyering  <meyering@lucent.com>
67226         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67227         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67228         Reported by Eli Zaretskii.
67230 2000-02-01  Jim Meyering  <meyering@lucent.com>
67232         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67234 2000-01-31  Jim Meyering  <meyering@lucent.com>
67236         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67237         functions.  Add the time.h and sys/time.h headers along with the
67238         AC_REQUIRE'ment of AC_HEADER_TIME.
67240 2000-01-31  Jim Meyering  <meyering@lucent.com>
67242         * lib/nanosleep.h (nanosleep): Guard declaration with
67243         `#if ! HAVE_DECL_NANOSLEEP'.
67244         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67245         the declaration in that vendor's sys/timers.h.
67246         Reported by Christian Krackowizer.
67248         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67249         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67250         (ISPRINT): Likewise.
67251         Reported by Tom Tromey.
67253 2000-01-30  Jim Meyering  <meyering@lucent.com>
67255         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67257         * m4/prereq.m4 (utmp_includes): Define.
67258         Check for ut_user and ut_name members in both struct utmpx
67259         and struct utmp.
67261 2000-01-30  Jim Meyering  <meyering@lucent.com>
67263         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67264         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67265         header files where only utmpx.ut_user is declared.
67267         * lib/readutmp.h (UT_USER): Define.
67269 2000-01-29  Jim Meyering  <meyering@lucent.com>
67271         * m4/lib-check.m4: New file containing library-related checks from
67272         fileutils and sh-utils (textutils had none).
67274 2000-01-28  Jim Meyering  <meyering@lucent.com>
67276         * m4/perl.m4: Change format of warning message to look more like that
67277         from the missing script.  Suggestion from François Pinard.
67279 2000-01-25  Jim Meyering  <meyering@lucent.com>
67281         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67282         well as time.h in the compile check.
67283         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67284         Fix typo in cross-compiling case: s/yes/no/.
67286 2000-01-23  Jim Meyering  <meyering@lucent.com>
67288         * m4/jm-macros.m4: Move df-related tests here from
67289         fileutils/configure.in
67291         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67292         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67294         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67295         s/space/ac_fsusage_space/.
67296         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67298         * m4/ftruncate.m4: New file (derived from part of
67299         fileutils/configure.in).
67300         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67301         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67303         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67304         AC_SUBST these here, rather than just in sh-util/configure.in, so
67305         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
67306         all the same.
67307         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
67308         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
67309         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
67310         (AC_SUBST(POW_LIBM)): Likewise.
67311         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
67313 2000-01-23  Jim Meyering  <meyering@lucent.com>
67315         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
67316         obstack.c.
67318 2000-01-22  Jim Meyering  <meyering@lucent.com>
67320         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
67322         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
67324         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
67325         configure.in
67326         (AC_CHECK_HEADERS): Likewise for sh-utils.
67327         (AC_CHECK_HEADERS): Likewise for textutils.
67328         Merge the three lists of headers.
67330         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
67331         from fileutils' configure.in.
67333         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
67334         code. Moved tests into their own function (_jm_DECL_HEADERS) in
67335         check-decl.m4.
67337         * m4/check-decl.m4: Use #if rather than #ifdef.
67338         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
67339         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
67340         (_jm_DECL_HEADERS): Define new function.
67341         (jm_CHECK_DECLARATIONS): Require it.
67343 2000-01-22  Jim Meyering  <meyering@lucent.com>
67345         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
67346         [! HAVE_DECL_STRTOULL]: Declare strtoull.
67347         Required for some AIX systems.  Reported by Christian Krackowizer.
67348         [TESTING] (main): New function.
67350         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
67351         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
67352         letters.
67354         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
67355         iswprint.
67357         * lib/strverscmp.c (ISDIGIT): Define.
67358         (strverscmp): Use ISDIGIT, not isdigit.
67360 2000-01-19  Jim Meyering  <meyering@lucent.com>
67362         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
67363         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
67364         defines `struct timespec' in <sys/time.h>
67366         * m4/c-bs-a.m4: Remove uses of changequote altogether.
67367         Thanks to Akim for explaining.
67369 2000-01-17  Paul Eggert  <eggert@twinsun.com>
67371         * lib/nanosleep.c (nanosleep):
67372         Don't use SA_INTERRUPT to decide whether to call sigaction, as
67373         POSIX.1 doesn't require SA_INTERRUPT and some systems
67374         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
67375         it's been part of POSIX.1 since day 1 (in 1988).
67377 2000-01-17  Jim Meyering  <meyering@lucent.com>
67379         * lib/interlock: Remove unused file.  Reported by François Pinard.
67381 2000-01-16  Paul Eggert  <eggert@twinsun.com>
67383         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
67384         alert, backslash, formfeed, and vertical tab unnecessarily in
67385         shell quoting style.
67387 2000-01-16  Jim Meyering  <meyering@lucent.com>
67389         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
67390         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
67391         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
67392         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
67394 2000-01-16  Jim Meyering  <meyering@lucent.com>
67396         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
67397         because the latter didn't work.
67399 2000-01-15  Jim Meyering  <meyering@lucent.com>
67401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
67402         (AC_REPLACE_FUNCS): Add memcpy and memset.
67403         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
67404         Add strpbrk.
67405         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
67407 2000-01-12  Jim Meyering  <meyering@lucent.com>
67409         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
67410         (jm_PREREQ): Use it.
67411         (jm_PREREQ_READUTMP): New macro.
67412         (jm_PREREQ): Use it.
67414 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67416         Quote multibyte characters correctly.
67417         * m4/c-bs-a.m4: New file.
67418         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
67419         (jm_PREREQ): Use it.
67421 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67423         * m4/uintmax_t.m4: Port to autoconf 2.13.
67425 2000-01-08  Jim Meyering  <meyering@ascend.com>
67427         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
67428         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
67430 2000-01-04  Jim Meyering  <meyering@ascend.com>
67432         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
67433         jm_STRUCT_DIRENT_D_TYPE.
67434         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
67435         jm_STRUCT_DIRENT_D_INO.
67436         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
67437         jm_STRUCT_UTIMBUF.
67438         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
67439         renamings.
67440         * m4/utime.m4: Likewise.
67442         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
67443         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
67445 2000-01-03  Paul Eggert  <eggert@twinsun.com>
67447         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
67448         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
67450 2000-01-02  Jim Meyering  <meyering@ascend.com>
67452         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
67453         remember if this is necessary.
67455 1999-12-26  Jim Meyering  <meyering@ascend.com>
67457         * m4/jm-macros.m4: Use it here.
67458         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
67460 1999-12-23  Jim Meyering  <meyering@ascend.com>
67462         * m4/jm-macros.m4: Check for clock_gettime (moved from
67463         fileutils/configure.in)
67464         Check for gettimeofday.
67466 1999-12-20  Jim Meyering  <meyering@ascend.com>
67468         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
67469         autoconf-2.14a-1999-12-20.
67471 1999-12-19  Jim Meyering  <meyering@ascend.com>
67473         * m4/lstat-slash.m4: New file.
67474         * m4/jm-macros.m4: Use the new macro:
67475         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67477 1999-12-07  Jim Meyering  <meyering@ascend.com>
67479         * m4/perl.m4: Require that File::Compare be available, too.
67480         Too many systems seem to lack it.
67482         * m4/strftime.m4: Add checks for most of the cpp macros tested in
67483         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
67485 1999-11-18  Paul Eggert  <eggert@twinsun.com>
67487         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
67488         problem with the QNX 4.25 shell, which doesn't propagate exit
67489         status of failed commands inside shell assignments.
67491 1999-11-17  Jim Meyering  <meyering@ascend.com>
67493         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
67495 1999-11-07  Jim Meyering  <meyering@ascend.com>
67497         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
67499 1999-11-06  Jim Meyering  <meyering@ascend.com>
67501         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
67502         * m4/jm-macros.m4 (jm_MACROS): Use it here.
67504 1999-11-05  Jim Meyering  <meyering@ascend.com>
67506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
67507         configure.in of textutils, fileutils, and sh-utils into this one
67508         (shared between those packages) file.
67509         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
67510         AC_STRUCT_ST_BLKSIZE.
67512 1999-11-03  Jim Meyering  <meyering@ascend.com>
67514         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
67515         of AC_CHECK_TYPE checks includes unistd.h.
67516         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
67517         Suggestion from Akim Demaille.
67519 1999-10-30  Jim Meyering  <meyering@ascend.com>
67521         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
67522         m4-quoted string.
67523         * m4/ls-mntd-fs.m4: Likewise.
67524         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
67525         * m4/jm-winsz1.m4: Likewise.
67527         * m4/const.m4: Remove file, since the fix made it into the experimental
67528         version of autoconf.
67529         * m4/mktime.m4: Likewise.
67531         * m4/check-type.m4: Remove file, now that the latest version of
67532         AC_CHECK_TYPE takes a third arg to specify additional #includes.
67534         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
67535         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
67536         AC_CHECK_TYPE.
67538 1999-10-04  Jim Meyering  <meyering@ascend.com>
67540         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
67542 1999-09-22  Paul Eggert  <eggert@twinsun.com>
67544         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
67545         2.95.1 bug with HP-UX 10.20.
67547 1999-09-17  Jim Meyering  <meyering@ascend.com>
67549         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
67550         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
67551         due to missing strdup (against sh-utils-2.0).
67553 1999-08-29  Jim Meyering  <meyering@ascend.com>
67555         * m4/jm-macros.m4: Require jm_BISON.
67556         * m4/bison.m4: New file.
67558 1999-08-17  Paul Eggert  <eggert@twinsun.com>
67560         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
67561         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
67563 1999-08-05  Jim Meyering  <meyering@ascend.com>
67565         * m4/getline.m4: Rename test file from conftestdata to conftest.data
67566         to avoid conflicts with `conftest' on 8+3 filesystems.
67567         Suggestion from Eli Zaretskii.
67569 1999-08-04  Jim Meyering  <meyering@ascend.com>
67571         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
67572         fileutils and sh-utils (textutils's getline test was inadequate).
67573         (AM_FUNC_GETLINE): Run this test.
67574         (AC_CHECK_FUNCS): Check for getdelim.
67575         Reported by Bob Proulx.
67577 1999-08-02  Jim Meyering  <meyering@ascend.com>
67579         * m4/jm-macros.m4: Add a comment.
67581 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67583         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
67584         <inttypes.h> defines strtoumax as a macro (and not as a
67585         function).
67587 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67589         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
67590         that we can shift, multiply and divide unsigned long long
67591         values; Ultrix cc can't do it.
67593 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67595         * m4/mktime.m4: New file, which is a preview of what should appear
67596         in the next public autoconf release.
67598 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67600         * m4/lfs.m4: Remove this file.
67601         * m4/largefile.m4: New file.  It contains the old contents of
67602         lfs.m4, except that all names with prefix AC_LFS have been
67603         changed to use the prefix AC_SYS_LARGEFILE instead, to be
67604         compatible with future autoconf versions.  Also, some minor m4
67605         quoting problems have been fixed.
67607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67609         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
67610         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
67611         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
67612         and simplify the shell code.
67614 1999-08-01  Jim Meyering  <meyering@ascend.com>
67616         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
67617         m4.
67619 1999-07-20  Jim Meyering  <meyering@ascend.com>
67621         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
67623 1999-07-15  Jim Meyering  <meyering@ascend.com>
67625         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
67627 1999-05-22  Jim Meyering  <meyering@ascend.com>
67629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
67631 1999-05-20  Jim Meyering  <meyering@ascend.com>
67633         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
67634         Add a colon after each `then' in case $4 is empty.
67636 1999-05-16  Jim Meyering  <meyering@ascend.com>
67638         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
67640 1999-05-10  Jim Meyering  <meyering@ascend.com>
67642         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
67644         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
67645         AC_FUNC_MKTIME.
67647 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
67649         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
67651 1999-05-04  Paul Eggert  <eggert@twinsun.com>
67653         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
67654         not CPPFLAGS, so that linking works correctly in IRIX.
67656 1999-04-30  Paul Eggert  <eggert@twinsun.com>
67658         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
67660 1999-04-20  Paul Eggert  <eggert@twinsun.com>
67662         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
67663         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
67664         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
67665         jm_AC_TYPE_UNSIGNED_LONG_LONG.
67666         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
67668         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
67670 1999-04-20  Jim Meyering  <meyering@ascend.com>
67672         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
67673         AC_REPLACE xstroull if necessary.  From Paul Eggert.
67674         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
67676 1999-04-18  Jim Meyering  <meyering@ascend.com>
67678         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
67679         * m4/jm-macros.m4: Use it.
67681 1999-04-06  Jim Meyering  <meyering@ascend.com>
67683         * m4/strftime.m4: Remove test for %f.
67685 1999-03-29  Jim Meyering  <meyering@ascend.com>
67687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
67688         superset of the AC_TYPE_* checks in the textutils, fileutils,
67689         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
67690         AC_TYPE_PID_T.
67692 1999-03-28  Jim Meyering  <meyering@ascend.com>
67694         * m4/jm-macros.m4: Define GNU_PACKAGE here.
67695         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
67696         replaced e.g., in the *.sh files of the sh-utils.
67698 1999-03-20  Jim Meyering  <meyering@ascend.com>
67700         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
67701         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
67702         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
67704 1999-03-19  Jim Meyering  <meyering@ascend.com>
67706         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
67708 1999-03-12  Jim Meyering  <meyering@ascend.com>
67710         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
67712 1999-03-07  Jim Meyering  <meyering@ascend.com>
67714         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
67715         declared.
67717 1999-02-17  Jim Meyering  <meyering@ascend.com>
67719         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
67720         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
67722 1999-02-07  Jim Meyering  <meyering@ascend.com>
67724         * m4/group-member.m4: New file -- extracted from sh-utils'
67725         configure.in.
67727         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
67728         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
67730 1999-02-06  Jim Meyering  <meyering@ascend.com>
67732         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
67733         * m4/fnmatch.m4: Likewise.
67734         * m4/getgroups.m4: Likewise.
67735         * m4/lstat.m4: Likewise.
67736         * m4/malloc.m4: Likewise.
67737         * m4/putenv.m4: Likewise.
67738         * m4/realloc.m4: Likewise.
67739         * m4/regex.m4: Likewise.
67740         * m4/stat.m4: Likewise.
67741         * m4/strftime.m4: Likewise.
67742         Suggestion from Alain Magloire.
67744         * m4/chown.m4: Use `.$ac_objext', not `.o'.
67745         * m4/fnmatch.m4: Likewise.
67746         * m4/getgroups.m4: Likewise.
67747         * m4/getline.m4: Likewise.
67748         * m4/lstat.m4: Likewise.
67749         * m4/malloc.m4: Likewise.
67750         * m4/memcmp.m4: Likewise.
67751         * m4/putenv.m4: Likewise.
67752         * m4/realloc.m4: Likewise.
67753         * m4/regex.m4: Likewise.
67754         * m4/stat.m4: Likewise.
67755         * m4/strftime.m4: Likewise.
67756         Suggestion from Alain Magloire.
67758         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
67759         an argument.
67761         * m4/regex.m4: Add a run-time Test for proper operation of
67762         re_compile_pattern.
67764 1999-01-31  Jim Meyering  <meyering@ascend.com>
67766         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
67768 1999-01-30  Jim Meyering  <meyering@ascend.com>
67770         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
67772         * m4/jm-mktime.m4: Make this a wrapper around the official
67773         AM_FUNC_MKTIME rather than my private copy, now that the official one
67774         is up to date.
67775         * m4/mktime.m4: Remove file.
67777         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
67778         * m4/uptime.m4: Likewise.
67779         * m4/uintmax_t.m4: Likewise.
67781 1999-01-28  Jim Meyering  <meyering@ascend.com>
67783         * m4/jm-macros.m4: Use jm_AFS.
67784         * m4/afs.m4: New file (from fileutils' configure.in).
67786         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
67787         * m4/chown.m4: Likewise.
67788         * m4/d-ino.m4: Likewise.
67789         * m4/d-type.m4: Likewise.
67790         * m4/fnmatch.m4: Likewise.
67791         * m4/getgroups.m4: Likewise.
67792         * m4/gettext.m4: Likewise.
67793         * m4/jm-mktime.m4: Likewise.
67794         * m4/jm-winsz2.m4: Likewise.
67795         * m4/lcmessage.m4: Likewise.
67796         * m4/ls-mntd-fs.m4: Likewise.
67797         * m4/malloc.m4: Likewise.
67798         * m4/memcmp.m4: Likewise.
67799         * m4/putenv.m4: Likewise.
67800         * m4/realloc.m4: Likewise.
67801         * m4/st_mtim.m4: Likewise.
67802         * m4/strftime.m4: Likewise.
67804 1999-01-16  Jim Meyering  <meyering@ascend.com>
67806         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
67807         (ARGMATCH_DIE_DECL): Define.
67809 1999-01-12  Jim Meyering  <meyering@ascend.com>
67811         * m4/Makefile.am.in: Rewrite to avoid using fmt.
67812         Reported by Lars Hecking.
67814 1999-01-10  Jim Meyering  <meyering@ascend.com>
67816         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
67817         gross kludge.
67818         * m4/inttypes_h.m4: Likewise.
67819         * m4/lstat.m4: Likewise.
67820         * m4/malloc.m4: Likewise.
67821         * m4/readdir.m4: Likewise.
67822         * m4/realloc.m4: Likewise.
67823         * m4/st_dm_mode.m4: Likewise.
67824         * m4/stat.m4: Likewise.
67825         * m4/utimbuf.m4: Likewise.
67826         * m4/utimes.m4: Likewise.
67828         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
67829         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
67830         comments in config.h.in are meaningful.
67832         * m4/jm-macros.m4: Require autoconf-2.13 here.
67834         * m4/regex.m4: By default, don't use the included regex.c on systems
67835         with glibc 2.  Suggestion from Uli Drepper.
67837 1999-01-02  Jim Meyering  <meyering@ascend.com>
67839         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
67841 1998-12-18  Jim Meyering  <meyering@ascend.com>
67843         * m4/Makefile.am.in (Makefile.am): Simplify rule.
67844         Based on a suggestion from Lars Hecking.
67846 1998-11-16  Paul Eggert  <eggert@twinsun.com>
67848         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
67850 1998-11-16  Jim Meyering  <meyering@ascend.com>
67852         * m4/lfs.m4: Double-quote the `uname...` expression.
67854 1998-11-14  Jim Meyering  <meyering@ascend.com>
67856         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
67857         * m4/stat.m4: Likewise.
67859 1998-11-03  Jim Meyering  <meyering@ascend.com>
67861         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
67862         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
67864 1998-10-18  Jim Meyering  <meyering@ascend.com>
67866         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
67868 1998-10-17  Jim Meyering  <meyering@ascend.com>
67870         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
67871         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
67872         calls for those previously hard-coded headers.  Instead, take a new
67873         parameter.
67874         (jm_CHECK_DECLARATIONS): Reflect interface change.
67875         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
67876         (jm_CHECK_DECL_LOCALTIME_R): New macro.
67878         * m4/mktime.m4: Test for spring-forward gap before long-running test.
67880 1998-10-14  Jim Meyering  <meyering@ascend.com>
67882         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
67883         instead of "TZ=America/Vancouver".  From Paul Eggert.
67885 1998-10-11  Jim Meyering  <meyering@ascend.com>
67887         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
67888         This adds a test for a recently added compatibility fix for mktime.c.
67889         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
67891 1998-09-27  Jim Meyering  <meyering@ascend.com>
67893         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
67895         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
67896         ../configure.in, including a change from Gordon Matzigkeit to allow
67897         cross-compiling for the Hurd.
67899         * m4/glibc.m4: New file/macro to test for the GNU C Library
67900         versions 1 and 2.  From Gordon Matzigkeit.
67901         Indent.
67903 1998-09-21  Jim Meyering  <meyering@ascend.com>
67905         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
67907 1998-08-18  Paul Eggert  <eggert@twinsun.com>
67909         Port nanosecond-resolution times to UnixWare 2.1.2 and
67910         pedantic Solaris 2.6.
67912         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
67913         AC_STRUCT_ST_MTIM.
67914         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
67915         Generate name of ns member, instead of just 1 or undef.
67916         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
67918 1998-08-15  Jim Meyering  <meyering@ascend.com>
67920         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
67921         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
67922         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
67923         instead of jm_TYPE_SSIZE_T.
67925 1998-08-12  Jim Meyering  <meyering@ascend.com>
67927         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
67929 1998-08-02  Jim Meyering  <meyering@ascend.com>
67931         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
67932         in acconfig.h manually.
67934 1998-07-31  Paul Eggert  <eggert@twinsun.com>
67936         * m4/st_mtim.m4: New file.
67938 1998-07-28  Jim Meyering  <meyering@ascend.com>
67940         * m4/utimes.m4: Undef stat.
67942 1998-07-25  Jim Meyering  <meyering@ascend.com>
67944         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
67945         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
67947 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
67949         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
67950         uid and gid actually remain unchanged.
67952 1998-07-07  Jim Meyering  <meyering@ascend.com>
67954         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
67956 1998-07-04  Jim Meyering  <meyering@ascend.com>
67958         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
67959         to prove that this macro can be used in packages without regex.c.
67961 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
67963         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
67964         is to be used.
67966 1998-07-03  Jim Meyering  <meyering@ascend.com>
67968         * m4/gettext.m4: Add -lintl if it's found to be necessary.
67970         * m4/gettext.m4: New file -- from gettext-0.10.35.
67971         * m4/lcmessage.m4: Likewise.
67972         * m4/progtest.m4: Likewise.
67974         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
67975         * m4/jm-macros.m4: Require the new macro.
67977 1998-06-29  Jim Meyering  <meyering@ascend.com>
67979         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
67980         for the definition of NGROUPS (used in a system header included
67981         by sys/mount.h).
67983 1998-06-28  Jim Meyering  <meyering@ascend.com>
67985         * m4/ls-mntd-fs.m4: New file.
67986         * m4/fstypename.m4: New file.
67988         * m4/jm-macros.m4: Require the new macro.
67989         * m4/jm-glibc-io.m4: New file.
67991 1998-05-19  Jim Meyering  <meyering@ascend.com>
67993         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
67994         * m4/lchown.m4: New file.
67996         * m4/Makefile.am.in: New file.
67997         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
67999 1998-05-14  Jim Meyering  <meyering@ascend.com>
68001         * m4/Makefile.am (EXTRA_DIST): Add them.
68002         * m4/jm-macros.m4: New file.
68003         * m4/utimbuf.m4: New file.
68005 1998-05-12  Jim Meyering  <meyering@ascend.com>
68007         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68009 1998-05-11  Jim Meyering  <meyering@ascend.com>
68011         * m4/isc-posix.m4: New file.
68013 1998-05-10  Jim Meyering  <meyering@ascend.com>
68015         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68017 1998-05-09  Jim Meyering  <meyering@ascend.com>
68019         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68020         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68021         with automake.
68023         * m4/ssize_t.m4: New file.
68024         * m4/mktime.m4: Remove file -- the new automake has this now.
68026 1998-04-26  Jim Meyering  <meyering@ascend.com>
68028         * m4/assert.m4: New file.
68029         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68031 1998-04-05  Jim Meyering  <meyering@ascend.com>
68033         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68034         (jm_PREREQ): Use it here.
68036 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68038         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68039         in acconfig.h.
68041 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68043         * m4/prereq.m4: New file.
68044         * m4/error.m4: New file.
68045         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68047 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68049         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68050         cache-check for the same variable -- that defeated the purpose of
68051         the test; the test program was never run.  This was a problem only
68052         on systems with losing getline functions -- HP-UX 10.20 is one.
68053         Reported by Bjorn Helgaas.
68055 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68057         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68059 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68061         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68063         * m4/const.m4: New file.  Use an initializer in this declaration
68064         typedef int charset[2]; const charset x;
68065         Reported by Bob Glickstein.
68067 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68069         * m4/chown.m4: Fix reversed types on -1 args to chown.
68070         From Kaveh Ghazi.
68072 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68074         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68075         Add lseek and memchr.
68077         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68078         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68079         have a 20-character limit on names.
68081 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68083         * m4/inttypes_h.m4: New file.
68084         * m4/uintmax_t.m4: New file.
68085         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68088         -----
68090         Local Variables:
68091         coding: utf-8
68092         End:
68094         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68096         Copying and distribution of this file, with or without
68097         modification, are permitted provided the copyright notice
68098         and this notice are preserved.