README-release: capitalize a word and split a line
[gnulib/ericb.git] / ChangeLog
blobf0e6b31e5c41f1b4e75798fe12f929b1bd75f788
1 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3         README-release: capitalize a word and split a line
4         * top/README-release: Fix punctuation and spacing.
6 2012-02-08  Akim Demaille  <demaille@gostai.com>
8         fatal-signal: use C prototypes (with explicit void).
9         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
10         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
12 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14         regex: spelling fix
15         * lib/regexec.c: spelling fix
17         regex: rely on stdint.h for SIZE_MAX
18         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
20 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22         regex: merge glibc changes
24         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
25         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
26         (init_word_char): Work even if bitset words are not exactly 32 or
27         64 bits wide.  Don't assume there are no padding bits.
28         * lib/regex.c [_LIBC]: Do not include <config.h>.
29         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
30         and -Wtype-limits.
31         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
32         needless disagreement with glibc.  All uses changed.  Define it to
33         1 only if _GNU_SOURCE, to match glibc.
34         (_REG_RM_NAME): Remove; no longer needed, since the names in
35         question are now all protected by __USE_GNU.
36         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
37         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
38         * lib/regex_internal.h (MIN): New macro.
40         2012-01-03 Ulrich Drepper <drepper@gmail.com>
41         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43         2011-12-30 Jakub Jelinek <jakub@redhat.com>
44         * lib/regex_internal.c (re_string_fetch_byte_case):
45         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
46         is miscompiled, and it turns out it is because of an incorrect
47         attribute on re_string_fetch_byte_case.  Unlike
48         re_string_peek_byte_case, this one is really not pure, it modifies
49         memory (increments pstr->cur_idx), and with the pure attribute GCC
50         assumed it doesn't and it cached the presumed value of
51         regexp->cur_idx in a variable across the
52          for (;; ++i)
53            {
54              if (i >= BRACKET_NAME_BUF_SIZE)
55                return REG_EBRACK;
56              if (token->type == OP_OPEN_CHAR_CLASS)
57                ch = re_string_fetch_byte_case (regexp);
58              else
59                ch = re_string_fetch_byte (regexp);
60              if (re_string_eoi(regexp))
61                return REG_EBRACK;
62              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
63                break;
64              elem->opr.name[i] = ch;
65            }
67         2011-11-29 Andreas Schwab <schwab@redhat.com>
68         * lib/regcomp.c (build_equiv_class):
69         Fix access after end of search string in regex matcher.
71         2011-11-12 Ulrich Drepper <drepper@redhat.com>
72         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
74         2011-10-12 Ulrich Drepper <drepper@redhat.com>
75         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
77         2011-10-11 Ulrich Drepper <drepper@redhat.com>
78         * lib/regcomp.c (parse_branch, parse_sub_exp):
79         More regex memory leak fixes and tests.
80         (parse_sub_exp, parse_bracket_exp):
81         Fix memory leak for some invalid regular expressions.
83         2011-05-28 Ulrich Drepper <drepper@gmail.com>
84         * lib/regex_internal.c, lib/regexec.c:
85         Fix unnecessary overallocation due to incomplete character.  When
86         incomplete characters are found at the end of a string the code
87         ran amok and allocated lots of memory.  Stricter limits are now in
88         place.
90         2011-05-20 Reuben Thomas <rrt@sc3d.org>
91         * lib/regex.h: Update documentation.
93         2011-05-16 Aharon Robbins <arnold@skeeve.com>
94         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
96         2010-05-05 Andreas Schwab <schwab@redhat.com>
97         * lib/regexec.c (find_collation_sequence_value):
98         Fix lookup of collation sequence value during regexp matching.
100         2010-01-22 Ulrich Drepper <drepper@redhat.com>
101         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
103         2008-01-16 Ulrich Drepper <drepper@redhat.com>
104         * lib/regex.h: Cleanup namespace.
106         2007-11-26 Ulrich Drepper <drepper@redhat.com>
107         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
109         2007-08-26 Ulrich Drepper <drepper@redhat.com>
110         * lib/regex_internal.h: Prevent some declarations and definitions
111         to be seen when used in tests.
113         2005-05-06 Ulrich Drepper <drepper@redhat.com>
114         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
115         __libc_lock_* macros if not _LIBC.
116         (struct re_dfa_t): Add lock.
118 2012-02-07  Eric Blake  <eblake@redhat.com>
120         maint.mk: also prohibit lower-case @var@
121         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
122         lower case, like @top_srcdir@.
124 2012-02-04  Eric Blake  <eblake@redhat.com>
126         canonicalize: avoid uninitialized memory use
127         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
128         random '/' left in dest.
129         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
131 2012-02-04  Bruno Haible  <bruno@clisp.org>
133         isatty: Fix test failure of ptsname_r on native Windows.
134         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
135         and don't set errno.
136         (isatty): Test first whether fd is valid. Set errno when returning 0.
138 2012-02-04  Bruno Haible  <bruno@clisp.org>
140         spawn-pipe tests: Fix a NULL program name in a diagnostic.
141         * tests/test-spawn-pipe-main.c: Include progname.h.
142         (main): Invoke set_program_name.
143         * modules/spawn-pipe-tests (Depends-on): Add progname.
145         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
146         * tests/test-nonblocking-socket-main.c: Include progname.h.
147         (main): Invoke set_program_name.
148         * modules/nonblocking-socket-tests (Depends-on): Add progname.
150         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
151         * tests/test-nonblocking-pipe-main.c: Include progname.h.
152         (main): Invoke set_program_name.
153         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
155 2012-02-04  Eric Blake  <eblake@redhat.com>
157         canonicalize-lgpl: fix // handling
158         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
160         canonicalize: fix // handling
161         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
162         /// to //, since only // is special.
164 2012-02-04  Bruno Haible  <bruno@clisp.org>
166         ioctl: Fix test failure on native Windows.
167         * lib/ioctl.c: Include msvc-nothrow.h.
168         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
170 2012-02-04  Bruno Haible  <bruno@clisp.org>
172         fsync: Avoid test failure on native Windows.
173         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
174         read-only.
176 2012-02-04  Bruno Haible  <bruno@clisp.org>
178         sys_select: Avoid syntax error on OpenBSD 5.0.
179         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
180         currently being included, just include the system's <sys/select.h>.
182 2012-02-04  Bruno Haible  <bruno@clisp.org>
184         sys_select: Avoid syntax error on OpenBSD 5.0.
185         * lib/sys_select.in.h: Include <signal.h> only after the include_next
186         <sys/select.h>, not before.
187         Reported by Jiri B <jirib@devio.us>.
189 2012-02-04  Bruno Haible  <bruno@clisp.org>
191         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
192         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
193         global variables.
194         * tests/test-get-rusage-data.c (main): Likewise.
195         Reported by Jim Meyering.
197 2012-02-04  Bruno Haible  <bruno@clisp.org>
199         stdioext: Fix last commit.
200         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
202 2012-02-03  Bruno Haible  <bruno@clisp.org>
204         stdioext: Add tentative support for Plan9.
205         * lib/stdio-impl.h: Include <errno.h>.
206         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
207         * lib/freadable.c (freadable): Likewise.
208         * lib/fwritable.c (fwritable): Likewise.
209         * lib/fbufmode.c (fbufmode): Likewise.
210         * lib/freading.c (freading): Likewise.
211         * lib/fwriting.c (fwriting): Likewise.
212         * lib/freadptr.c (freadptr): Likewise.
213         * lib/freadseek.c (freadptrinc): Likewise.
214         * lib/freadahead.c (freadahead): Likewise.
215         * lib/fpurge.c (fpurge): Likewise.
216         * lib/fseeko.c (rpl_fseeko): Likewise.
217         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
218         Reported by Jens Staal <staal1978@gmail.com>.
220 2012-02-02  Jim Meyering  <meyering@redhat.com>
222         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
223         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
224         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
225         not even to try to add the attribute.  Instead, add a pragma to suppress
226         the suggestion/warning.
228 2012-01-31  Karl Berry  <karl@gnu.org>
230         setstate doc: typo.
231         * doc/posix-functions/setstate.texi (setstate): { not (.
233 2012-01-31  Bruno Haible  <bruno@clisp.org>
235         popen: Make more robust on Windows.
236         * lib/popen.c: On native Windows, use the _popen based code even if
237         HAVE_POPEN is set.
238         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
239         environment variable on native Windows.
241 2012-01-30  Bruno Haible  <bruno@clisp.org>
243         pclose: Fix typo.
244         * lib/stdio.in.h (pclose): Fix typo in warning message.
246 2012-01-30  Bruno Haible  <bruno@clisp.org>
248         doc about getlogin_r, setstate.
249         * doc/posix-functions/getlogin_r.texi: List the incompatible
250         declaration problem under "not fixed by gnulib".
251         * doc/posix-functions/setstate.texi: Mention incompatible declaration
252         problem on Solaris 11 and other platforms.
254 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
255             Bruno Haible  <bruno@clisp.org>
257         poll tests: Make test more robust.
258         * tests/test-poll.c: Include macros.h.
259         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
260         return value of various I/O operations.
261         * modules/poll-tests (Files): Add tests/macros.h.
263 2012-01-30  Bruno Haible  <bruno@clisp.org>
265         sys_stat: Fix support for mingw64 and MSVC.
266         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
267         header files already do it.
268         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
269         stat itself.
270         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
272 2012-01-30  Bruno Haible  <bruno@clisp.org>
274         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
276         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
278 2012-01-29  Bruno Haible  <bruno@clisp.org>
280         quotearg: Fix test failure on MacOS X 10.5.
281         * tests/test-quotearg-simple.c: Include localcharset.h.
282         (main): If the locale encoding is not ASCII, bypass the tests of
283         locale_quoting_style and clocale_quoting_style.
284         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
286 2012-01-29  Jim Meyering  <meyering@redhat.com>
288         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
289         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
290         detect uses of canonicalize_file_name.
292 2012-01-28  Bruno Haible  <bruno@clisp.org>
294         test-framework-sh: Fix test failure with AIX 7.1 diff.
295         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
296         in column 1, like 'diff -c' does.
297         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
298         whether 'diff -u' is used. Instead, test whether the output contains
299         some '@' character.
301 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
303         strtoimax: eliminate need for stdint.h, inttypes.h checks
304         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
305         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
306         the prerequisites for a recently-introduced strtoimax test.
307         I guess this might cause strtoimax to be replaced when not
308         strictly necessary on older hosts, but this shouldn't introduce
309         any bugs and it should make Emacs 'configure' faster on typical
310         modern hosts.  Problem discovered when importing the latest gnulib
311         to an Emacs test version.
312         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
314 2012-01-28  Bruno Haible  <bruno@clisp.org>
316         sys_time: Override 'struct timeval' on some native Windows platforms.
317         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
318         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
319         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
320         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
321         needs to be overridden.
322         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
323         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
324         * tests/test-sys_select.c: Check that the tv_sec member has the same
325         size as a 'time_t'.
326         * tests/test-sys_time.c: Likewise.
327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
328         is set, set also REPLACE_GETTIMEOFDAY.
329         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
330         convert the resulting 'struct timeval' before returning.
331         * lib/select.c: Include <sys/time.h>.
332         (select, timeval): Undefine at the right place.
333         * modules/select (Depends-on): Add sys_time.
334         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
335         some Windows platforms.
336         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
338 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
340         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
341         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
342         an integer.
343         * lib/fcntl.c (dupfd): Likewise.
344         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
346 2012-01-28  Bruno Haible  <bruno@clisp.org>
348         fcntl: Avoid compilation error on native Windows.
349         * modules/fcntl (Depends-on): Add 'close'.
351 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
353         select, poll, isatty: Avoid warnings on x86_64 mingw64.
354         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
355         pointer to an integer.
356         * lib/poll.c (IsConsoleHandle): Likewise.
357         * lib/isatty.c (IsConsoleHandle): Likewise.
359 2012-01-28  Jim Meyering  <meyering@redhat.com>
361         doc: clarify README-release
362         * top/README-release: Clarify: you should make a point to have
363         the latest stable versions of build tools in your PATH, and the
364         reference to buildreq is solely for its list of tool names, not
365         for its minimal-functional version numbers.
366         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
368         maint.mk: use more readable (yet functionally equivalent) quoting
369         It is common to quote a single quote in a single quoted string like
370         this:  '...'\''...'.  Unless you know the idiom, that looks like
371         gibberish, so prefer to double-quote the string when possible.
372         Then you can use a more readable, lone single quote: "...'..."
373         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
374         "don't" is more readable than the equivalent 'don'\''t'.
375         (sc_cast_of_x_alloc_return_value): Likewise.
376         (sc_cast_of_alloca_return_value): Likewise.
377         (sc_makefile_path_separator_check): Similar: use ":" in '...',
378         rather than '\'':'\''.
380 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
382         stdalign: relax _Alignof and tighten _Alignas test
383         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
384         as it was too strict: alignof must divide offsetof, but it need
385         not equal offsetof.  Inspired by Joseph S. Myers's comment
386         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
387         Conversely, tighten the _Alignas test a bit, as the resulting
388         alignment must be exactly 8.
390 2012-01-27  Bruno Haible  <bruno@clisp.org>
392         stdalign: Document the last change.
393         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
395 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
397         stdalign: check that alignof and offsetof are consistent
398         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
399         Problem reported for gnulib by Richard W.M. Jones in
400         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
402 2012-01-27  Jim Meyering  <meyering@redhat.com>
404         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
405         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
406         convert a sequence with gaps to the minimal containing range.
407         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
408         * tests/test-update-copyright.sh: Test for this.
409         The FSF confirmed it is ok to do this, assuming there is at
410         least one significant change per year in the affected range:
411         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
413 2012-01-26  Bruno Haible  <bruno@clisp.org>
415         pipe2: refine doc about thread-safety
416         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
417         multithread-safety problem.
418         * doc/glibc-functions/accept4.texi: Likewise.
420 2012-01-26  Bruno Haible  <bruno@clisp.org>
422         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
423         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
424         In the test program, include <fcntl.h>, for O_RDONLY.
426 2012-01-26  Eric Blake  <eblake@redhat.com>
428         pipe2: document lack of thread-safety in replacement
429         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
430         issue in replacement.
431         * doc/glibc-functions/accept4.texi (accept4): Likewise.
432         Based on a report by Eric Wong.
434 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
435             Bruno Haible  <bruno@clisp.org>
437         malloca: Avoid warnings on x86_64 mingw64.
438         * lib/malloca.c: Include <stdint.h>.
439         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
440         * modules/malloca (Depends-on): Add stdint.
441         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
443 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
445         obstack: remove __STDC__ conditionals
446         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
447         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
448         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
449         m4/include_next.m4 as the only gnulib-maintained places that still
450         refer to __STDC__.
452 2012-01-24  Bruno Haible  <bruno@clisp.org>
454         havelib: Modern quoting.
455         * build-aux/config.rpath: Quote 'like this', not `like this', as per
456         the recent change to the GNU coding standards.
458 2012-01-24  Bruno Haible  <bruno@clisp.org>
460         stdint: Improve support for Android.
461         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
462         Reported by Simon Josefsson <simon@josefsson.org>.
464 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
466         doc: omit trailing empty lines from INSTALL etc.
467         * doc/Makefile (INSTALL): Omit trailing empty lines.
468         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
469         omit trailing empty lines.  This simplifies the build procedure.
471 2012-01-23  Jim Meyering  <meyering@redhat.com>
473         tests: avoid spurious warnings about gl_sockets_startup
474         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
475         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
476         reporting a "statement with no effect".
477         * tests/test-accept.c (main): Mark as "(void)".
478         * tests/test-accept4.c (main): Likewise.
479         * tests/test-bind.c (main): Likewise.
480         * tests/test-connect.c (main): Likewise.
481         * tests/test-getpeername.c (main): Likewise.
482         * tests/test-getsockname.c (main): Likewise.
483         * tests/test-getsockopt.c (main): Likewise.
484         * tests/test-listen.c (main): Likewise.
485         * tests/test-recv.c (main): Likewise.
486         * tests/test-recvfrom.c (main): Likewise.
487         * tests/test-send.c (main): Likewise.
488         * tests/test-sendto.c (main): Likewise.
489         * tests/test-setsockopt.c (main): Likewise.
490         * tests/test-shutdown.c (main): Likewise.
492 2012-01-21  Bruno Haible  <bruno@clisp.org>
494         locale-fr.m4: Fix for Android.
495         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
496         failure of the test program on Bionic libc.
498 2012-01-21  Jim Meyering  <meyering@redhat.com>
500         bootstrap: fail when bootstrap_post_import_hook fails
501         Otherwise, it's far too easy to miss diagnostics emitted
502         between gnulib-tool's output and that of running configure.
503         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
505 2012-01-17  Jim Meyering  <meyering@redhat.com>
507         maint: enable sc_trailing_blank
508         * build-aux/pmccabe.css: Remove trailing blanks.
509         * doc/acl-cygwin.txt: Likewise.
510         * doc/gnu-oids.texi: Likewise
511         * cfg.mk: Enable sc_trailing_blank.
512         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
514 2012-01-17  Jim Meyering  <meyering@redhat.com>
516         maint: enable sc_prohibit_openat_without_use
517         * cfg.mk: Enable sc_prohibit_openat_without_use.
518         Exempt lib/selinux-at.c.
520 2012-01-17  Jim Meyering  <meyering@redhat.com>
522         maint: enable sc_prohibit_cloexec_without_use
523         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
524         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
526 2012-01-17  Jim Meyering  <meyering@redhat.com>
528         maint: enable sc_prohibit_intprops_without_use
529         * cfg.mk: Enable sc_prohibit_intprops_without_use
530         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
532 2012-01-17  Jim Meyering  <meyering@redhat.com>
534         maint: enable sc_prohibit_hash_pjw_without_use
535         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
536         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
537         to match any use of \<hash_pjw\>, i.e., not necessarily with a
538         following " (".
540 2012-01-17  Jim Meyering  <meyering@redhat.com>
542         maint: enable double-word-prohibiting rule
543         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
544         Exempt three files.
546 2012-01-17  Jim Meyering  <meyering@redhat.com>
548         maint: remove empty lines at EOF, but excluding modules/*
549         Apply syntax rules at home as well as abroad.  Most changes
550         were induced by running this:
551           make srcdir=. _build-aux=build-aux -f top/maint.mk \
552             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
553             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
554         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
555         Exempt modules/* and two binary files.
556         Also exempt doc/INSTALL*, per request from Bruno Haible.
557         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
558         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
559         * doc/Copyright/request-assign.future: Likewise.
560         * doc/Copyright/request-disclaim.changes: Likewise.
561         * doc/INSTALL: Likewise.
562         * doc/INSTALL.ISO: Likewise.
563         * doc/INSTALL.UTF-8: Likewise.
564         * doc/acl-cygwin.txt: Likewise.
565         * doc/acl-resources.txt: Likewise.
566         * doc/fdl-1.2.texi: Likewise.
567         * doc/fdl-1.3.texi: Likewise.
568         * doc/fdl.texi: Likewise.
569         * lib/argp-pin.c: Likewise.
570         * lib/round.c: Likewise.
571         * lib/unicase/u16-totitle.c: Likewise.
572         * lib/unictype/block_test.c: Likewise.
573         * lib/uninorm/canonical-decomposition.c: Likewise.
574         * m4/README: Likewise.
575         * m4/relocatable-lib.m4: Likewise.
576         * tests/test-isnand-nolibm.c: Likewise.
577         * tests/test-isnand.c: Likewise.
578         * tests/uninorm/NormalizationTest.txt: Likewise.
580 2012-01-17  Jim Meyering  <meyering@redhat.com>
582         maint: add framework to run syntax-check rules against gnulib sources
583         * cfg.mk: New file, to disable all currently-failing tests.
584         We'll enable them one by one, as they are made to pass.
585         * Makefile (sc_maint): New rule.
587 2012-01-21  Bruno Haible  <bruno@clisp.org>
589         stdint: Add support for Android.
590         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
591         include the system's <stdint.h>.
592         Reported by Simon Josefsson <simon@josefsson.org>.
594 2012-01-19  Jim Meyering  <meyering@redhat.com>
596         bootstrap: add bootstrap_post_import_hook
597         Bison does still need something like the gnulib_mk_hook whose
598         invocation I had to remove along with slurp in commit 767ccd40.
599         Technically, we could get along without it, but doing so would
600         have required living with a warning and a mandatory post-bootstrap
601         automake rerun.
602         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
603         (bootstrap_post_import_hook): New function.
604         Invoke it after gnulib-tool --import and before autoreconf.
606 2012-01-18  Jim Meyering  <meyering@redhat.com>
608         gitlog-to-changelog: don't use "no_"-prefixed variable name
609         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
610         to enable both --cluster and --no-cluster.  Change variable name,
611         s/\$no_cluster/$cluster/, and reverse usage to match.
613         gitlog-to-changelog: use "||", not "or" in expressions
614         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
615         expressions.
617 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
619         gitlog-to-changelog: new option --no-cluster
620         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
621         clustering of adjacent commit messages.
623 2012-01-17  Jim Meyering  <meyering@redhat.com>
625         maint: spell file systems with two words, not one
626         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
627         two words, not one.
629 2012-01-16  Jim Meyering  <meyering@redhat.com>
631         bootstrap: add a FIXME comment to ensure we eventually remove the hack
632         * build-aux/bootstrap (gnulib_tool_options): Add comment.
634 2012-01-16  Eric Blake  <eblake@redhat.com>
636         bootstrap: cater to autoconf 2.59
637         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
638         is not available.
640         bootstrap: properly check for libtool
641         * build-aux/bootstrap (libtoolize): Also run libtool when older
642         usage is detected.
644 2012-01-15  Bruno Haible  <bruno@clisp.org>
646         Improve support for MSVC 9.
647         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
648         clashes on MSVC.
649         * lib/fcntl.in.h: Likewise.
650         * lib/stdlib.in.h: Likewise.
651         * lib/sys_stat.in.h: Likewise.
653 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
655         gnupload: we hold the master copy of this script now
656         For motivation and more information, see:
657         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
658         * build-aux/gnupload: Make it clear in the heading comments that the
659         master copy of this file is maintained by gnulib.  Since we are at
660         it, bump its copyright year and ...
661         ($scriptversion): ... the date in its version.
662         ($usage): Patches and bug reports should be sent to the gnulib list,
663         not the automake one.
664         * config/srclist.txt: Don't try to sync 'gnupload' from automake
665         anymore.
667 2012-01-15  Bruno Haible  <bruno@clisp.org>
669         Fix module 'random'.
670         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
671         initstate, setstate are declared.
673 2012-01-14  Bruno Haible  <bruno@clisp.org>
675         Tests for module 'random'.
676         * modules/random-tests: New file.
677         * tests/test-random.c: New file, based on tests/test-random_r.c.
679         New module 'random'.
680         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
681         declarations.
682         * lib/random.c: New file, based on glibc/stdlib/random.c.
683         * m4/random.m4: New file.
684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
685         HAVE_RANDOM.
686         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
687         * modules/random: New file.
688         * config/srclist.txt: Add an entry for random.c.
689         * doc/posix-functions/random.texi: Mention the 'random' module.
690         * doc/posix-functions/initstate.texi: Likewise.
691         * doc/posix-functions/setstate.texi: Likewise.
692         * doc/posix-functions/srandom.texi: Likewise.
694 2012-01-12  Bruno Haible  <bruno@clisp.org>
696         random_r: Use common idioms.
697         * lib/random_r.c: Include <stdlib.h> first.
699         random_r: Override incompatible API on AIX, OSF/1.
700         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
701         Override the system function if REPLACE_RANDOM_R is 1.
702         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
703         and OSF/1, set REPLACE_RANDOM_R.
704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
705         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
706         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
707         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
708         * doc/glibc-functions/random_r.texi: Likewise.
709         * doc/glibc-functions/setstate_r.texi: Likewise.
711         random_r: Support for MSVC 9.
712         * lib/random_r.c: Include stdint.h, not inttypes.h.
714 2012-01-12  Eric Blake  <eblake@redhat.com>
716         inet_ntop: guard extra work by IF_LINT
717         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
718         better code generation when not checking for warnings.
719         Suggested by Paul Eggert and Jim Meyering.
721         strptime: fix regression on mingw
722         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
723         Fix regression.  Reported by Bruno Haible.
725 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
726             Bruno Haible  <bruno@clisp.org>
728         copy-file: add error-code-returning variant.
729         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
730         (qcopy_file_preserving): New declaration.
731         * lib/copy-file.c (qcopy_file_preserving): Renamed from
732         copy_file_preserving. Change return type to 'int'. Don't emit an error
733         message here.
734         (copy_file_preserving): New function.
735         * tests/test-copy-file.c: Include <stdlib.h>.
736         (main): Test qcopy_file_preserving if the environment variable
737         NO_STDERR_OUTPUT is set.
738         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
739         with NO_STDERR_OUTPUT
740         * tests/test-copy-file-2.sh: Likewise.
742 2012-01-10  Bruno Haible  <bruno@clisp.org>
744         copy-file: Use 'quote' module consistently.
745         * lib/copy-file.c (copy_file_preserving): Use quote().
747         copy-file: Refactor.
748         * lib/copy-file.c: Include quote.h.
749         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
750         message here.
751         * modules/copy-file (Depends-on): Add quote.
753         acl: Export qcopy_acl.
754         * lib/acl.h (qcopy_acl): New declaration.
755         * lib/copy-acl.c (qcopy_acl): Make non-static.
757         acl: Rename a local variable.
758         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
760         acl: Align return values of copy_acl and qcopy_acl.
761         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
762         maybe < -1.
764 2012-01-11  Eric Blake  <eblake@redhat.com>
766         strptime: silence gcc warnings
767         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
768         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
769         Reported by Daniel P. Berrange.
771         inet_ntop: silence gcc warning
772         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
773         Reported by Daniel P. Berrange.
775 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
777         getloadavg test: skip the test on GNU/Linux without /proc mounted
778         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
779         file.  When /proc is not mounted, it always fails with ENOENT.
780         * tests/test-getloadavg.c (main): Treat ENOENT return code from
781         getloadavg(3) the same way as ENOSYS and ENOTSUP.
783 2012-01-10  Bruno Haible  <bruno@clisp.org>
785         regex: Avoid link error on MSVC 9.
786         * modules/regex (Depends-on): Add wctype.
788 2012-01-10  Bruno Haible  <bruno@clisp.org>
790         doc: Mention --with-tests option.
791         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
792         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
793         --with-tests.
794         Reported by Reuben Thomas.
796 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
798         users.txt: order package names lexicographically.
799         * users.txt: Order package names lexicographically.
801 2012-01-10  Jim Meyering  <meyering@redhat.com>
803         maint.mk: fix description in comment
804         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
806         ignore-value: remove deprecated ignore_ptr function
807         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
808         * NEWS: Note this.
810 2012-01-09  Jim Meyering  <meyering@redhat.com>
812         test-init.sh: avoid a subshell
813         * tests/test-init.sh: Remove protective subshell.
814         Suggested by Bernhard Voelker.  While a subshell is normally
815         required to protect against older shells (Solaris, FreeBSD) that
816         warn about a missing program before performing redirection, the
817         shell-selection tests performed by init.sh probably exclude any
818         offending shell.
820 2012-01-08  Bruno Haible  <bruno@clisp.org>
822         setlocale tests: Avoid test failure on Solaris 11 2011-11.
823         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
824         variable.
826 2012-01-08  Bruno Haible  <bruno@clisp.org>
828         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
829         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
830         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
831         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
832         macro.
833         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
834         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
835         * lib/spawn_faction_addopen.c: Add workaround implementation if
836         HAVE_WORKING_POSIX_SPAWN.
837         * modules/spawn (Makefile): Substitute
838         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
839         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
840         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
841         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
842         (Depends-on): Update conditions.
843         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
844         the Solaris 11 bug.
846 2012-01-08  Bruno Haible  <bruno@clisp.org>
848         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
849         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
850         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
851         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
852         macro.
853         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
855         * lib/spawn_faction_adddup2.c: Add workaround implementation if
856         HAVE_WORKING_POSIX_SPAWN.
857         * modules/spawn (Makefile): Substitute
858         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
859         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
860         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
861         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
862         (Depends-on): Update conditions.
863         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
864         the Solaris 11 bug.
866 2012-01-08  Bruno Haible  <bruno@clisp.org>
868         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
869         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
870         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
871         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
872         HAVE_WORKING_POSIX_SPAWN.
873         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
874         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
875         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
876         * lib/spawn_faction_addclose.c: Add workaround implementation if
877         HAVE_WORKING_POSIX_SPAWN.
878         * modules/spawn (Makefile): Substitute
879         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
880         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
881         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
882         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
883         (Depends-on): Update conditions.
884         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
885         the Solaris 11 bug.
887 2012-01-08  Bruno Haible  <bruno@clisp.org>
889         doc: Update for Solaris 11 2011-11.
890         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
891         * m4/printf.m4: Update comments.
893 2012-01-08  Bruno Haible  <bruno@clisp.org>
895         mktime: Avoid compilation error on Solaris 11.
896         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
898 2012-01-08  Bruno Haible  <bruno@clisp.org>
900         doc: Small fix.
901         * doc/posix-headers/nl_types.texi: Correct platforms list.
903 2012-01-08  Simon Josefsson  <simon@josefsson.org>
905         Add lgpl-3.0 module.
906         * MODULES.html.sh (Support for building documentation): Add
907         lgpl-3.0.
908         * modules/lgpl-3.0: New file.
910 2012-01-08  Jim Meyering  <meyering@redhat.com>
912         select.c: indent with spaces, not TABs
913         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
915 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
917         quotearg: do not use grave accent for left quote
918         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
919         locale_quoting_style.
920         (quotearg_buffer_restyled): Fix example.
921         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
923 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
925         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
926         Most programs do not have translation catalogs for English and much
927         less separate catalogs for British and American English.  Drop the
928         suggestion to translators about these two, and provide it
929         automatically for Unicode locales.  Like most programs, even those
930         using American English, we use single quotation marks.  This conflicts
931         with the American typographic convention, but works better when you
932         cite the entire error message within double quotes.  It also tries not
933         to clash with established practice and with what non-gnulib programs
934         will usually do.
935         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
936         using an UTF-8 or GB-18030 locale.  The list of other locales with
937         quotes was provided by Bruno Haible.
938         (quotearg_buffer_restyled): Adjust instructions to translators.
939         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
940         text, since this would be wrong when using Unicode.
941         * modules/quotearg: Depend on c-strcaseeq.
943 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
945         quotearg: fix Wikipedia link
946         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
948 2012-01-07  Simon Josefsson  <simon@josefsson.org>
950         Fix for mingw with MSVC9.
951         * m4/ld-version-script.m4: Check that compiler rejects version
952         scripts with syntax errors.  Reported by Bruno Haible
953         <bruno@clisp.org>.
955 2012-01-06  Bruno Haible  <bruno@clisp.org>
957         Talk about "native Windows API", not "Woe32".
958         * lib/accept4.c: Update comments to mention native Windows.
959         * lib/execute.c: Likewise.
960         * lib/fatal-signal.c: Likewise.
961         * lib/localcharset.c: Likewise.
962         * lib/nanosleep.c: Likewise.
963         * lib/nl_langinfo.c: Likewise.
964         * lib/pclose.c: Likewise.
965         * lib/pipe-filter-gi.c: Likewise.
966         * lib/pipe-filter-ii.c: Likewise.
967         * lib/pipe.c: Likewise.
968         * lib/pipe2.c: Likewise.
969         * lib/popen.c: Likewise.
970         * lib/progreloc.c: Likewise.
971         * lib/relocatable.c: Likewise.
972         * lib/sigaction.c: Likewise.
973         * lib/sigprocmask.c: Likewise.
974         * lib/spawn-pipe.h: Likewise.
975         * lib/spawn-pipe.c: Likewise.
976         * lib/spawni.c: Likewise.
977         * lib/stat-time.h: Likewise.
978         * lib/w32spawn.h: Likewise.
979         * tests/test-isatty.c: Likewise.
980         * lib/config.charset: More comments.
981         * doc/gnulib-intro.texi: Mention native Windows.
982         * doc/posix-functions/_Exit_C99.texi: Likewise.
983         * doc/posix-headers/fcntl.texi: Likewise.
985 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
987         argp: Avoid crash if translator uses % characters in a translation.
988         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
989         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
991 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
993         doc: C11 and C++11 are now official
994         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
995         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
996         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
997         * modules/stdalign:
998         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1000 2012-01-06  Bruno Haible  <bruno@clisp.org>
1002         uc-is-grapheme-break tests: Tweak.
1003         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1004         message.
1006 2012-01-06  Bruno Haible  <bruno@clisp.org>
1008         test-init.sh: correct the test for diff -u
1009         * tests/test-init.sh: Also redirect stdout to /dev/null.
1011 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1013         Use ', not `, for quoting output.
1014         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1015         (print_changelog_deltas, get_tool_versions, main program):
1016         * build-aux/git-version-gen:
1017         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1018         * build-aux/move-if-change (help):
1019         * build-aux/useless-if-before-free (usage, main program):
1020         * check-module (parse_module_file, usage)
1021         (find_included_lib_files, check_module):
1022         * lib/argmatch.c (main) [TEST]:
1023         * lib/argp-help.c (_help):
1024         * lib/getopt1.c (main) [TEST]:
1025         * lib/git-merge-changelog.c (usage):
1026         * lib/xstrtol-error.c (xstrtol_error):
1027         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1028         * m4/argz.m4 (gl_FUNC_ARGZ):
1029         * m4/bison.m4 (gl_BISON):
1030         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1031         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1032         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1033         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1034         * m4/gc-random.m4 (gl_GC_RANDOM):
1035         * m4/intl.m4 (gt_CHECK_DECL):
1036         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1037         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1038         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1040         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1041         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1042         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1043         * tests/test-dirname.c (main):
1044         * tests/test-getpass.c (main):
1045         * tests/test-iconvme.c (main):
1046         * tests/test-parse-datetime.c (LOG):
1047         * tests/test-xstrtoimax.sh:
1048         * tests/test-xstrtol.sh:
1049         * tests/test-xstrtoll.sh:
1050         * tests/test-xstrtoumax.sh:
1051         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1052         * top/GNUmakefile (abort-due-to-no-makefile):
1053         Quote 'like this', not `like this', as per the recent change to
1054         the GNU coding standards.
1056 2012-01-05  Bruno Haible  <bruno@clisp.org>
1058         strtoimax: Don't force a replacement on systems where intmax_t is int.
1059         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1060         'intmax_t' is not larger than 'int'.
1061         Reported by Pádraig Brady <P@draigBrady.com>.
1063 2012-01-05  Bruno Haible  <bruno@clisp.org>
1065         doc: Mention NetBSD bugs.
1066         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1067         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1069 2012-01-05  Bruno Haible  <bruno@clisp.org>
1071         strtoumax tests: Enhance tests.
1072         * tests/test-strtoumax.c (main): Add tests for large values.
1074 2012-01-05  Bruno Haible  <bruno@clisp.org>
1076         strtoimax: Work around AIX 5.1 bug.
1077         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1078         definition.
1079         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1080         Set HAVE_STRTOIMAX.
1081         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1082         REPLACE_STRTOIMAX.
1083         * modules/inttypes-incomplete (Makefile.am): Substitute
1084         REPLACE_STRTOIMAX.
1085         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1086         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1087         (Depends-on): Update conditions.
1088         * tests/test-strtoimax.c (main): Add tests for large values.
1089         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1091 2012-01-05  Bruno Haible  <bruno@clisp.org>
1093         inttypes: Modernize.
1094         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1095         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1096         (Makefile.am): Update inttypes.h rule.
1098 2012-01-05  Jim Meyering  <meyering@redhat.com>
1100         init.sh: don't waste a subshell just to redirect stderr
1101         * tests/init.sh: In testing for diff -u and diff -c, use a
1102         stderr-redirecting exec inside `...` rather than a subshell.
1104         test-init.sh: avoid failure on HP-UX 11.00
1105         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1106         resolves to diff -c or cmp.  Reported by Bruno Haible.
1108 2012-01-05  Bruno Haible  <bruno@clisp.org>
1110         Tests for module 'strtoull'.
1111         * modules/strtoull-tests: New file.
1112         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1114 2012-01-05  Bruno Haible  <bruno@clisp.org>
1116         Tests for module 'strtoll'.
1117         * modules/strtoll-tests: New file.
1118         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1120 2012-01-05  Bruno Haible  <bruno@clisp.org>
1122         Tests for module 'strtoul'.
1123         * modules/strtoul-tests: New file.
1124         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1126 2012-01-05  Bruno Haible  <bruno@clisp.org>
1128         Tests for module 'strtol'.
1129         * modules/strtol-tests: New file.
1130         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1132 2012-01-04  Jim Meyering  <meyering@redhat.com>
1134         test-init.sh: accommodate Solaris 5.10's different diff -u output
1135         * tests/test-init.sh: Also exempt @@ lines from the comparison
1136         of diff output, since Solaris 5.10 and GNU diff formats differ.
1137         Reported by Stefano Lattarini.
1139 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1141         test-posixtm: don't assume signed integer wraparound
1142         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1143         after signed integer overflow.  Inspired by (though it may not
1144         fix) Bruno Haible's bug report in
1145         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1147         Spell out "Windows 9x" and "Windows XP".
1148         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1149         "Windows 9x" and "WinXP" with "Windows XP".
1151 2012-01-04  Jim Meyering  <meyering@redhat.com>
1153         test-vc-list-files-cvs.sh: remove obsolete comment
1154         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1155         double exit.  Now that's all encapsulated via skip_ and Exit.
1157 2012-01-04  Bruno Haible  <bruno@clisp.org>
1159         Talk about "native Windows API", not "Win32".
1160         * lib/classpath.c: Update comments to mention native Windows.
1161         * lib/csharpexec.c: Likewise.
1162         * lib/dup2.c: Likewise.
1163         * lib/error.c: Likewise.
1164         * lib/fcntl.c: Likewise.
1165         * lib/filename.h: Likewise.
1166         * lib/findprog.c: Likewise.
1167         * lib/get-rusage-as.c: Likewise.
1168         * lib/get-rusage-data.c: Likewise.
1169         * lib/getpagesize.c: Likewise.
1170         * lib/javaexec.c: Likewise.
1171         * lib/msvc-inval.c: Likewise.
1172         * lib/msvc-nothrow.c: Likewise.
1173         * lib/nanosleep.c: Likewise.
1174         * lib/nonblocking.c: Likewise.
1175         * lib/printf-parse.c: Likewise.
1176         * lib/setlocale.c: Likewise.
1177         * lib/sigaction.c: Likewise.
1178         * lib/strerror_r.c: Likewise.
1179         * lib/tmpdir.c: Likewise.
1180         * lib/vasnprintf.c: Likewise.
1181         * lib/w32spawn.h: Likewise.
1182         * lib/waitpid.c: Likewise.
1183         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1184         * m4/locale-ar.m4: Likewise.
1185         * m4/locale-fr.m4: Likewise.
1186         * m4/locale-ja.m4: Likewise.
1187         * m4/locale-tr.m4: Likewise.
1188         * m4/locale-zh.m4: Likewise.
1189         * m4/printf.m4: Likewise.
1190         * tests/test-cloexec.c: Likewise.
1191         * tests/test-copy-acl.sh: Likewise.
1192         * tests/test-copy-file.sh: Likewise.
1193         * tests/test-file-has-acl.sh: Likewise.
1194         * tests/test-set-mode-acl.sh: Likewise.
1195         * tests/test-dup-safer.c: Likewise.
1196         * tests/test-dup2.c: Likewise.
1197         * tests/test-dup3.c: Likewise.
1198         * tests/test-fcntl.c: Likewise.
1199         * tests/test-nonblocking-pipe.h: Likewise.
1200         * tests/test-nonblocking-socket.h: Likewise.
1201         * tests/test-pipe.c: Likewise.
1202         * tests/test-pipe2.c: Likewise.
1203         * tests/test-spawn-pipe-child.c: Likewise.
1204         * doc/acl-resources.txt: Likewise.
1205         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1206         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1207         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1208         * lib/localcharset.c: Update comments to mention native Windows.
1209         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1210         * lib/localename.c: Likewise.
1211         * lib/progreloc.c: Likewise.
1212         * lib/relocatable.c: Likewise.
1213         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1214         (windows_compute_revents): Renamed from win32_compute_revents.
1215         (windows_compute_revents_socket): Renamed from
1216         win32_compute_revents_socket.
1217         * lib/select.c: Update comments to mention native Windows.
1218         (windows_poll_handle): Renamed from win32_poll_handle.
1219         * m4/threadlib.m4: Update comments to mention native Windows.
1220         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1221         --enable-threads=windows instead of --enable-threads=win32. Set
1222         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1223         * lib/glthread/lock.h: Update comments to mention native Windows.
1224         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1225         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1226         USE_WIN32_THREADS.
1227         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1228         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1229         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1230         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1231         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1232         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1233         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1234         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1235         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1236         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1237         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1238         * tests/test-tls.c: Likewise.
1239         Rationale:
1240         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1241         on both 32-bit and 64-bit Windows systems.
1242         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1243         line of distinction is between "native Windows" on one side and Unix/
1244         POSIX systems on the other side. More details in
1245         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1246         Suggested by Paul Eggert.
1248 2012-01-03  Bruno Haible  <bruno@clisp.org>
1250         isatty: Support for MSVC 9.
1251         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1252         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1253         (_isatty_nothrow): New function.
1254         (isatty): Use it instead of _isatty.
1255         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1256         * lib/poll.c (IsConsoleHandle): Likewise.
1257         * lib/select.c (IsConsoleHandle): Likewise.
1258         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1259         (gl_PREREQ_ISATTY): New macro.
1260         * modules/isatty (Depends-on): Add msvc-inval.
1261         (configure.ac): Invoke gl_PREREQ_ISATTY.
1263 2012-01-03  Jim Meyering  <meyering@redhat.com>
1265         maint.mk: remove temporary transition aid from over 1.5 years ago
1266         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1267         purpose was to aid in the transition (avoiding silent malfunction)
1268         from that old name to the new _sc_search_regexp.  This shim was
1269         added by commit 219c504b.
1271         init.sh: do not try to accommodate compare arguments starting with "-"
1272         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1273         compare arguments that start with "-".  Besides, we do not worry
1274         about this when invoking diff or cmp; why start now with sed?
1275         Using "--" to separate options from argument would trigger sed
1276         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1277         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1279 2012-01-02  Bruno Haible  <bruno@clisp.org>
1281         Enhance tests for module 'isatty'.
1282         * modules/isatty-tests (Depends-on): Add pipe-posix.
1283         * tests/test-isatty.c: Include <fcntl.h>.
1284         (DEV_NULL): New macro.
1285         (main): Test the resut of isatty() also on regular files, pipes, and
1286         /dev/null.
1288         New module 'isatty'.
1289         * lib/unistd.in.h (isatty): New declaration.
1290         * lib/isatty.c: New file, based on an idea of
1291         Bastien Roucariès <roucaries.bastien@gmail.com>.
1292         * m4/isatty.m4: New file.
1293         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1294         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1295         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1296         REPLACE_ISATTY.
1297         * modules/isatty: New file.
1298         * doc/posix-functions/isatty.texi: Mention the new module.
1299         Suggested by Paolo Bonzini.
1301 2012-01-02  Bruno Haible  <bruno@clisp.org>
1303         canonicalize: Tweak 2011-12-29 commit.
1304         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1305         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1307 2012-01-02  Jim Meyering  <meyering@redhat.com>
1309         gitlog-to-changelog: describe input syntax in --help output
1310         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1312         gitlog-to-changelog: fix typo in --help: show backslash before email @
1313         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1314         in sources, but not in actual output.
1316 2011-12-30  Jim Meyering  <meyering@redhat.com>
1318         gitlog-to-changelog: don't malfunction when name contains %-directive
1319         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1320         in a name string cause trouble.  E.g., with a user name of "%s",
1321         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1323 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1325         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1326         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1327         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1328         the "  (tiny change)" notation that is appended to the standard
1329         ChangeLog "date  name  email" header line.
1331 2012-01-01  Jim Meyering  <meyering@redhat.com>
1333         test-framework-sh: init.sh: fix "make dist" failure
1334         When using gnulib-tool's --with-tests option and any module that
1335         depends on test-framework-sh, "make dist" would fail due to the
1336         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1337         in the gltests directory, and not in the gllib/ directory.
1338         One way to work around that is to move the EXTRA_DIST += init.sh
1339         from the primary module to the -tests one:
1340         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1341         * modules/test-framework-sh (Makefile.am): ...not here.
1342         Reported by Tom G. Christensen in
1343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1345         version-etc: update copyright year reported by --version
1346         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1348 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1350         canonicalize: only stat() if required
1351         * lib/canonicalize.c (canonicalize_filename_mode):
1352         Avoid calling l?stat() when both CAN_MISSING,
1353         and CAN_NOLINKS are set, as we neither need
1354         to resolve symlinks or test component existence.
1356 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1358         doc: cover st_ino issues once; add OpenVMS etc.
1359         * doc/posix-functions/stat.texi (stat):
1360         * doc/posix-functions/lstat.texi (lstat):
1361         * doc/posix-functions/fstatat.texi (fstatat):
1362         * doc/posix-functions/fstat.texi (fstat):
1363         Move general 'struct stat' stuff to sys_stat.texi,
1364         leaving behind a pointer.
1365         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1366         Merge duplicate info about 'struct stat' problems into here.
1367         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1368         and suggest partial workarounds.
1370         same-inode: port to OpenVMS
1371         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1372         three st_ino values.
1374 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1376         canonicalize: fix references to stat() and lstat()
1377         * lib/canonicalize.c (canonicalize_filename_mode):
1378         Ensure references always resolve to a replacement
1379         function if required (even via a macro).
1381 2011-12-30  Jim Meyering  <meyering@redhat.com>
1383         gitlog-to-changelog: remove a little duplication
1384         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1385         rather than twice.
1387 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1389         canonicalize: add support for not resolving symlinks
1390         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1391         indicate we don't want to follow symlinks.  Also
1392         provide CAN_MODE_MASK to aid setting these existing
1393         mutually exclusive values.
1394         * lib/canonicalize.c (canonicalize_filename_mode):
1395         Extract the flags from can_mode parameter, which
1396         are currently just used to select between stat()
1397         and lstat().  Also ensure that mutually exclusive
1398         values are flagged immediately as invalid.
1399         * tests/test-canonicalize.c: Verify symlinks are
1400         not followed, and that invalid flag combinations
1401         are diagnosed.
1403 2011-12-25  Jim Meyering  <meyering@redhat.com>
1405         gitlog-to-changelog: do not clump multi-paragraph entries
1406         Identical header lines (date,name,email+coauthors) are suppressed,
1407         thus putting all entries with those same characteristics under
1408         a single header.  However, when a log entry consists of two or
1409         more paragraphs, it may not be clear where it starts and ends.
1410         This change makes it so that such an entry is always separated
1411         from others by a header line, even when that header would
1412         otherwise be suppressed.
1413         * build-aux/gitlog-to-changelog: Implement the above.
1414         Inspired by a related request from Stefano Lattarini in
1415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1417 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1419         announce-gen: fix `cmd' typo in diagnostic
1420         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1421         diagnostic: a missing '$' meant that the command was not output.
1423 2011-12-23  Jim Meyering  <meyering@redhat.com>
1425         test-framework-sh: distribute init.sh
1426         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1427         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1428         fail due to the lack of init.sh.
1430         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1431         * modules/atexit-tests: Rather than listing tests/init.sh,
1432         now that there's a module for it, simply depend on that new module.
1433         * modules/closein-tests: Likewise.
1434         * modules/exclude-tests: Likewise.
1435         * modules/getcwd-tests: Likewise.
1436         * modules/perror-tests: Likewise.
1437         * modules/pread-tests: Likewise.
1438         * modules/pwrite-tests: Likewise.
1439         * modules/vc-list-files-tests: Likewise.
1440         * modules/verify-tests: Likewise.
1441         * modules/xalloc-die-tests: Likewise.
1442         * modules/xstrtoimax-tests: Likewise.
1443         * modules/xstrtol-tests: Likewise.
1444         * modules/xstrtoll-tests: Likewise.
1445         * modules/xstrtoumax-tests: Likewise.
1446         * modules/yesno-tests: Likewise.
1448 2011-12-22  Jim Meyering  <meyering@redhat.com>
1450         test-framework-sh: add minimal tests of init.sh's compare function
1451         * modules/test-framework-sh-tests: New file.
1452         * tests/test-init.sh: New file.
1454         test-framework-sh: new module
1455         * modules/test-framework-sh: New file.
1456         * MODULES.html.sh (Support for maintaining and releasing projects):
1457         List it.
1459         init.sh: do not emit simulated diff output to stderr
1460         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1462 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1464         .gitignore: ignore gnulib.dvi and regex.info
1465         * doc/.gitignore:add gnulib.dvi and regex.info
1467 2011-12-22  Jim Meyering  <meyering@redhat.com>
1469         init.sh: correct previous change
1470         * tests/init.sh (compare): My previous change was wrong.
1471         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1473         init.sh: avoid unwarranted test failure when using "set -e"
1474         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1475         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1476         a use like "compare exp out" would get evoke an unconditional failure.
1478 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1480         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1481         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1482         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1483         autoreconf that did not.
1484         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1485         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1487 2011-12-17  Jim Meyering  <meyering@redhat.com>
1489         bootstrap: remove some now-unneeded code
1490         This script arose back when gnulib-tool was young.
1491         Since then, it has seen improvements that render much of this
1492         script unnecessary.  In particular, it can now make symlinks
1493         to the files it uses.  Also, I no longer see as much value in
1494         marking files as read-only via comments.
1495         If you relied on the symlink-creation feature of the preceding
1496         version of this script, you can get most of that functionality
1497         by adding the --symlink option to the definition of
1498         gnulib_tool_option_extras in your bootstrap.conf file.
1499         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1500         Run autopoint and libtoolize *before* gnulib-tool.
1501         After it, run an abbreviated autoreconf, rather than a loop around
1502         all tools.
1503         (slirp, bt_mark_as_generated): Remove functions.
1505 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1507         ftoastr: fix typo
1508         * lib/ftoastr.h: Fix misspelling in comment.
1510 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1512         * top/README-release: fix punctuation.
1514 2011-12-17  Jim Meyering  <meyering@redhat.com>
1516         bootstrap: correct the recent buildreq change
1517         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1518         had no effect.
1519         * build-aux/bootstrap (buildreq): Bracket each search term with
1520         "*...*", so that the shell "case" statement works as intended.
1521         Add comments.
1523 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1525         build: let bootstrap resort to wget when downloading .po files
1526         * build-aux/bootstrap (download_po_files): Fallback to wget when
1527         downloading the .po files via rsync fails.  This is necessary to
1528         bootstrap from behind a strict firewall.
1530 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1532         stdint: don't assume C++11 when compiling with g++
1533         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1535         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1536         work also in C++ before C++11, as that improperly inhibits
1537         generating a substitute stdint.h for that case.
1539 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1541         alloca: protect comment from gnulib-tool
1542         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1543         that gnulib-tool doesn't think it's a license, and munge it to
1544         say "GCC version 3".
1546 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1548         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1549         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1550         $(abs_top_builddir) instead of $(top_builddir).
1552 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1554         strftime-tests: also test nanoseconds
1555         * tests/test-strftime.c (T): Add a test of %N.
1557 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1559         inttypes, stdint: add C++11 support
1560         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1561         when including inttypes.h and stdint.h.  Support this change to
1562         the standard.
1563         * doc/posix-headers/inttypes.texi (inttypes.h):
1564         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1565         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1566         Define if not defined already, for the benefit of pre-C++11 hosts.
1567         Define the standard format macros (e.g., PRId8) always.
1568         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1569         Likewise, if __cpluspus.  Define the standard constant and limit
1570         macros (e.g., INT8_C, INT8_MAX) always.
1571         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1572         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1573         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1574         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1575         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1576         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1577         Likewise.
1579 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1581         nonblocking tests: Fix test failure on Linux/PPC.
1582         Suggested by Prerna Saxena in
1583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1584         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1585         Set to 1100000.
1587 2011-12-12  Jim Meyering  <meyering@redhat.com>
1589         argmatch: don't hard-code `' when listing valid option arguments
1590         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1591         use the quote function to add quotes.  Use fputs rather than
1592         fprintf for the format string with no format directive.
1594 2011-12-07  Eric Blake  <eblake@redhat.com>
1596         bootstrap: detect tools required by gnulib-tool
1597         * build-aux/bootstrap (buildreq): Provide minimum implicit
1598         dependencies.
1599         * DEPENDENCIES: Mention patch as a prereq.
1601 2011-12-04  Bruno Haible  <bruno@clisp.org>
1603         sethostname: Port to Windows platforms.
1604         * lib/sethostname.c: Provide an alternate implementation for Windows
1605         platforms.
1606         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1607         (main): Skip the test if sethostname() fails with EPERM. On Windows
1608         platforms, don't check the result of gethostname().
1610 2011-12-04  Bruno Haible  <bruno@clisp.org>
1611             Jim Meyering  <meyering@redhat.com>
1613         tests: Avoid spurious error message on platforms without mktemp program.
1614         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1616 2011-12-04  Bruno Haible  <bruno@clisp.org>
1618         sethostname: Fix documentation.
1619         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1620         "not fixed" section.
1622 2011-12-03  Bruno Haible  <bruno@clisp.org>
1624         gnulib-tool: Verify that the License field is present and non-empty.
1625         * gnulib-tool (func_get_license_raw): New function, extracted from
1626         func_get_license.
1627         (func_get_license): Use it. Warn if the module is not a test module and
1628         has no license.
1629         Suggested by Jim Meyering.
1631 2011-12-03  Bruno Haible  <bruno@clisp.org>
1633         sethostname tests: Fix link error on mingw.
1634         * tests/test-sethostname1.c: New file, extracted from
1635         tests/test-sethostname.c.
1636         * tests/test-sethostname2.c: New file, extracted from
1637         tests/test-sethostname.c.
1638         * tests/test-sethostname.c: Remove file.
1639         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1640         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1641         (Depends-on): Add gethostname.
1642         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1643         Link the latter with $(GETHOSTNAME_LIB).
1645         sethostname tests: Fix compilation error on mingw.
1646         * tests/test-sethostname.c: Don't include <sys/types.h>.
1647         (geteuid): Use a dummy value without uid_t.
1648         * modules/sethostname-tests (Depends-on): Remove sys_types.
1650         sethostname tests: Avoid a gcc warning.
1651         * tests/test-sethostname.c (main): Remove an unused variable.
1653         Tweak last commit.
1654         * modules/sethostname-tests (Files): Sort by decreasing importance.
1655         (configure.ac): Check for geteuid.
1656         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1657         the test when there's nothing to test. Drop an unnecessary cast.
1658         Improve an error message. Verify that the final sethostname() call
1659         succeeds.
1661 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1663         Add a test suite for the sethostname module.
1664         * modules/sethostname-tests: New file.  A test program
1665         for the sethostname module.
1666         * tests/test-sethostname.c: Likewise.
1668 2011-12-03  Bruno Haible  <bruno@clisp.org>
1670         Tweak last commit.
1671         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1672         Fix preprocessor directives indentation. Fix typos.
1673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1674         * modules/unistd (Makefile): Likewise.
1676 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1678         Integrate the sethostname module into unistd.
1679         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1680         into the unistd.h header.
1681         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1682         preprocessor directives.
1683         * modules/unistd: Setup the Makefile substitutions of the
1684         SETHOSTNAME preprocessor directives.
1686 2011-12-03  Bruno Haible  <bruno@clisp.org>
1688         Tweak last commit.
1689         * lib/sethostname.c: Don't include <string.h>.
1690         (sethostname): No need to copy the argument string to the stack. Don't
1691         call clearerr. Preserve errno when fprintf failed.
1692         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1693         Don't invoke AC_REPLACE_FUNCS.
1694         * modules/sethostname (Link): Remove empty section.
1695         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1696         failure problem.
1698 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1700         New module 'sethostname'.
1701         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1702         for systems that lack it.
1703         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1704         sethostname declaration and function.
1705         * modules/sethostname: New file.  Define the sethostname module.
1707 2011-12-03  Bruno Haible  <bruno@clisp.org>
1709         Tweak last commit.
1710         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1712 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1714         Split the HOST_NAME_MAX detection into a separate m4 macro.
1715         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1716         macro so it can be used by the pending sethostname module.
1718 2011-12-03  Bruno Haible  <bruno@clisp.org>
1720         Fix module descriptions syntax.
1721         * modules/argv-iter (License): Fix syntax.
1722         * modules/di-set (License): Likewise.
1723         * modules/ino-map (License): Likewise.
1724         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1726 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1728         stdalign: port to Clang 3.0
1729         Problem reported by Simon Josefsson in
1730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1731         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1732         which has <stdalign.h> but which does not define alignof.
1733         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1735 2011-12-01  Eric Blake  <eblake@redhat.com>
1737         mktempd: silence dd usage
1738         * build-aux/mktempd (rand_bytes): Silence dd.
1740 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1742         manywarnings: Don't mention gcc version in docstring.
1743         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1744         Jim Meyering <meyering@redhat.com>.
1746 2011-11-30  Jim Meyering  <meyering@redhat.com>
1748         hash: mark a few floating point constants with "f" suffix
1749         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1750         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1751         floating point constants with "f", since they're destined to be
1752         saved/used as "float"s.
1754 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1756         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1757         * tests/test-float.c (test_long_double): Correct and re-enable the
1758         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1760 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1762         Avoid subtracting two pointers that don't point into the same block.
1763         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1764         only pointers into the same memory block are subtracted. We cannot
1765         assume that sizeof (ptrdiff_t) == sizeof (void *).
1767 2011-11-29  Eric Blake  <eblake@redhat.com>
1769         maint.mk: add syntax check for use of compare from init.sh
1770         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1771         moved here from coreutils.
1773         manywarnings: drop -Wunsuffixed-float-constants
1774         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1775         '1.0D', which is the only way to silence this warning for 'double'.
1777 2011-11-29  Jim Meyering  <meyering@redhat.com>
1779         hash: mark compute_bucket_size with the pure attribute
1780         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1782         quotearg, propername: correct pragma guard expression
1783         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1784         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1786 2011-11-28  Jim Meyering  <meyering@redhat.com>
1788         propername: do not mark proper_name with the const attribute
1789         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1790         since it examines data pointed to by its parameter.
1791         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1792         the suggestion from -Wsuggest-attribute=const.
1794         propername: mark one more function as const
1795         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1797 2011-11-27  Jim Meyering  <meyering@redhat.com>
1799         mark functions with const and pure attributes
1801         Mark functions per suggestions from gcc-4.6 when using these options:
1802         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1803         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1804         Follow these guidelines: when possible, apply the attribute to
1805         an extern declaration, not to its definition.  Apply it to the
1806         definition only when the definition is static.
1807         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1808         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1809         * lib/base64.h (isbase64): Likewise.
1810         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1811         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1812         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1813         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1814         (c_tolower, c_toupper): Likewise.
1815         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1816         * lib/chdir-long.c (find_non_slash): Likewise.
1817         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1818         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1819         * lib/file-type.h (file_type): Likewise.
1820         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1821         * lib/filevercmp.c (verrevcmp): Likewise.
1822         * lib/freadahead.h (freadahead): Likewise.
1823         * lib/fts.c (fts_maxarglen): Likewise.
1824         * lib/hash-pjw.h (hash_pjw): Likewise.
1825         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1826         * lib/hash.c (is_prime, next_prime): Likewise.
1827         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1828         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1829         (hash_table_ok, hash_get_first, hash_string): Likewise.
1830         (compute_bucket_size): Likewise.
1831         * lib/i-ring.h (i_ring_empty): Likewise.
1832         * lib/isnan.c (isnanl): Likewise.
1833         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1834         * lib/memcasecmp.h (memcasecmp): Likewise.
1835         * lib/memchr2.h (memchr2): Likewise.
1836         * lib/memcmp2.h (memcmp2): Likewise.
1837         * lib/parse-datetime.y (lookup_zone): Likewise.
1838         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1839         [!WINDOWS_SOCKETS]: Likewise.
1840         * lib/strnlen1.h (strnlen1): Likewise.
1841         * lib/uniwidth.in.h (uc_width): Likewise.
1842         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1843         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1844         (quoting_options_from_style): Add a comment.
1845         * lib/propername.h (proper_name): Add a comment.
1847 2011-11-27  Bruno Haible  <bruno@clisp.org>
1849         Remove unused macros from !_LIBC code in glibc-borrowed files.
1850         * lib/fnmatch.c (STRCOLL): Remove macro.
1851         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1852         * lib/glob.c (__stat, __readdir64): Remove macros.
1853         * lib/tempname.c (__open64, __xstat64): Remove macros.
1854         Suggested by Paul Eggert.
1856 2011-11-27  Bruno Haible  <bruno@clisp.org>
1858         getcwd: Fix link error on MSVC 9.
1859         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1861 2011-11-27  Bruno Haible  <bruno@clisp.org>
1863         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1864         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1865         HAVE_OPENDIR is 0.
1866         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1867         HAVE_CLOSEDIR is 0.
1868         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1869         is 0.
1870         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1872 2011-11-27  Bruno Haible  <bruno@clisp.org>
1874         getcwd: Fix bug from 2011-08-17.
1875         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1876         platforms that need it.
1877         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1878         code of 4 to be a failure, not a success. This ensures that
1879         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1881 2011-11-27  Bruno Haible  <bruno@clisp.org>
1883         binary-io tests: Avoid test failure on mingw when libtool is used.
1884         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1885         Don't verify the size of t-bin-out1.tmp here.
1886         * tests/test-binary-io.sh: Verify it here.
1887         Reported by Simon Josefsson.
1889 2011-11-26  Bruno Haible  <bruno@clisp.org>
1891         Fix conflict between two instantiations of module 'unistd'.
1892         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1893         ${include_guard_prefix} also in the autoconf snippet.
1894         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1896         GNULIB_UNISTD_H_GETOPT.
1897         * modules/getopt-posix (configure.ac): Set the
1898         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1899         * modules/getopt-gnu (configure.ac): Likewise.
1900         * modules/unistd (Makefile.am): Change the substitution value of
1901         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1902         Reported by Simon Josefsson.
1904 2011-11-25  Bruno Haible  <bruno@clisp.org>
1906         pagealign_alloc: Doc and comments.
1907         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1908         module.
1909         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1911 2011-11-25  Jim Meyering  <meyering@redhat.com>
1913         test-update-copyright.sh: avoid false-positive failure
1914         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1915         around false positive failure on Cygwin/Windows.  The latter was
1916         matching erroneously-created files with names like
1917         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1919 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1921         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1922         * m4/valgrind-tests.m4: Check that the parameters that will be
1923         used works, not just a subset of them.  Reported by Bruno Haible
1924         <bruno@clisp.org>.
1926 2011-11-24  Jim Meyering  <meyering@redhat.com>
1928         test-stdalign.c: comment out long double tests
1929         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1930         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1931         error: '_Alignas' specifiers cannot reduce alignment of \
1932         'static_longdouble_alignas'.
1934 2011-11-22  Jim Meyering  <meyering@redhat.com>
1936         init.sh: make "compare /dev/null FILE" output more readable
1937         * tests/init.sh (compare_): Document the preferred order of arguments.
1938         (emit_diff_u_header_): New function.
1939         (compare_dev_null_): Emit a simulated diff, rather than just the
1940         contents of the unexpected file.  Suggestion from Bruno Haible.
1942 2011-11-21  Jim Meyering  <meyering@redhat.com>
1943             Eric Blake  <eblake@redhat.com>
1945         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1946         * tests/init.sh: Make our compare function slightly more portable.
1947         Reported by Bruno Haible in
1948         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1950 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1952         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1953         before using it, in code that ends up in config.h.
1955 2011-11-20  Bruno Haible  <bruno@clisp.org>
1957         getcwd: Work around getcwd bug on AIX 5..7.
1958         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1959         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1960         Use a different value for gl_cv_func_getcwd_path_max. Move the
1961         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1962         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1963         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1964         Define HAVE_MINIMALLY_WORKING_GETCWD.
1965         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1966         where it is not even minimally working, that is, on AIX.
1967         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1968         m4/getcwd-path-max.m4.
1969         (main): Update exit code computation.
1970         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1971         getcwd does not handle long file names.
1973 2011-11-20  Bruno Haible  <bruno@clisp.org>
1975         getcwd: Fix bug from 2009-09-10.
1976         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1977         like "no".
1979 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1981         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1983 2011-11-20  Bruno Haible  <bruno@clisp.org>
1985         fma tests: Avoid shadowing local variables.
1986         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1987         expected.
1989 2011-11-20  Bruno Haible  <bruno@clisp.org>
1991         copysignf tests: Fix.
1992         * tests/test-copysignf.c: Fix signature check.
1994 2011-11-20  Bruno Haible  <bruno@clisp.org>
1996         fma: Remove unused code.
1997         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1998         unused macros.
2000 2011-11-20  Bruno Haible  <bruno@clisp.org>
2002         sethostname: Fix doc about AIX.
2003         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2004         sethostname; it has it.
2006         sethostname: Mention more portability problems.
2007         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2008         problem.
2009         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2011 2011-11-19  Bruno Haible  <bruno@clisp.org>
2013         Depend on module fcntl-h when AT_FDCWD is used.
2014         * modules/utimens (Depends-on): Add fcntl-h.
2015         * modules/areadlinkat (Depends-on): Likewise.
2016         * modules/areadlinkat-with-size (Depends-on): Likewise.
2017         * modules/faccessat (Depends-on): Likewise.
2018         * modules/fchmodat (Depends-on): Likewise.
2019         * modules/fchownat (Depends-on): Likewise.
2020         * modules/getcwd (Depends-on): Likewise.
2021         * modules/mkdirat (Depends-on): Likewise.
2022         * modules/mkfifoat (Depends-on): Likewise.
2023         * modules/readlinkat (Depends-on): Likewise.
2024         * modules/symlinkat (Depends-on): Likewise.
2025         * modules/dup2-tests (Depends-on): Likewise.
2026         * modules/fdutimensat-tests (Depends-on): Likewise.
2027         * modules/futimens-tests (Depends-on): Likewise.
2029 2011-11-19  Bruno Haible  <bruno@clisp.org>
2031         euidaccess: Update a comment.
2032         * lib/euidaccess.c: Update comment about platforms with faccessat.
2034 2011-11-19  Bruno Haible  <bruno@clisp.org>
2036         openat: Fix file list.
2037         * modules/openat (Files): Remove lib/at-func.c.
2039 2011-11-19  Bruno Haible  <bruno@clisp.org>
2041         fstatat: Simplify.
2042         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2043         gnulib should define rpl_fstatat, there is a
2044         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2046 2011-11-19  Bruno Haible  <bruno@clisp.org>
2048         Ensure 'inline' can be used in tests/test-utimens-common.h.
2049         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2050         * modules/futimens-tests (configure.ac): Likewise.
2051         * modules/utimens-tests (configure.ac): Likewise.
2052         * modules/utimensat-tests (configure.ac): Likewise.
2054 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2056         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2057         not hash_insert0.
2058         (hash_insert_if_absent): Doc fix.
2060 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2062         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2064 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2066         test-getcwd: disambiguate exit status
2067         * tests/test-getcwd.c (test_long_name): Return 0..7.
2068         (main): Exit with an unambiguous exit status.  The old
2069         code yielded a mysterious mixture of two failure codes.
2071         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2072         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2073         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2074         rpl_fstatat or fstatat.  This should fix the other problem
2075         reported by Kai Habel in
2076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2077         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2079         and I reproduced it on a Solaris 8 host we still have in production.
2081 2011-11-18  Jim Meyering  <meyering@redhat.com>
2083         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2084         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2085         Add a sentence to the comment.
2086         (hash_insert0): New function that simply calls hash_insert_if_absent.
2087         * lib/hash.h (hash_insert_if_absent): Declare it.
2088         (hash_insert0): Add deprecation attribute.
2089         (_GL_ATTRIBUTE_DEPRECATED): Define.
2090         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2091         not hash_insert0.
2092         * NEWS: Mention it, even though it's not really an incompatible change.
2094 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2096         openat: avoid compilation failure due to lack of <errno.h> inclusion
2097         * lib/openat.c: Include <errno.h>.
2099 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2101         * modules/getcwd (Depends-on): Add fdopendir.
2102         This fixes one of the two problems reported by Kai Habel in
2103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2105         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2106         stdalign problem reported by Ian Beckwith in
2107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2108         * modules/crypto/gc-arcfour (Depends-on):
2109         Depend conditionally on crypto/arcfour.
2110         * modules/crypto/gc-arctwo (Depends-on):
2111         Depend conditionally on crypto/arctwo.
2112         * modules/crypto/gc-des (Depends-on):
2113         Depend conditionally on crypto/des.
2114         * modules/crypto/gc-hmac-md5 (Depends-on):
2115         Depend conditionally on crypto/hmac-md5.
2116         * modules/crypto/gc-hmac-sha1 (Depends-on):
2117         Depend conditionally on crypto/hmac-sha1.
2118         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2119         * modules/crypto/gc-md4 (Depends-on):
2120         Depend conditionally on crypto/md4.
2121         * modules/crypto/gc-md5 (Depends-on):
2122         Depend conditionally on crypto/md5.
2123         * modules/crypto/gc-rijndael (Depends-on):
2124         Depend conditionally on crypto/rijndael.
2125         * modules/crypto/gc-sha1 (Depends-on):
2126         Depend conditionally on crypto/sha1.
2127         * modules/crypto/gc-arcfour:
2128         * modules/crypto/gc-arctwo:
2129         * modules/crypto/gc-des:
2130         * modules/crypto/gc-hmac-md5:
2131         * modules/crypto/gc-hmac-sha1:
2132         * modules/crypto/gc-md2:
2133         * modules/crypto/gc-md4:
2134         * modules/crypto/gc-md5:
2135         * modules/crypto/gc-rijndael:
2136         * modules/crypto/gc-sha1:
2137         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2138         now that the conditional dependencies do the work for us.
2140 2011-11-17  Jim Meyering  <meyering@redhat.com>
2142         tests: factor st_ctime-comparison out of two headers
2143         * tests/test-utimens-common.h (ctime_compare): Define.
2144         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2145         * tests/test-lutimens.h (test_lutimens): Likewise.
2146         * tests/test-utimens.h (test_utimens): Likewise.
2148         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2149         Invoke the test program via an init.sh-using wrapper.
2150         * tests/test-getcwd.sh: New file.
2151         * modules/getcwd-tests (Files): Add it.
2152         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2154 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2156         gitlog-to-changelog: support multi-author commits.
2157         The FSF cares about keeping track of all authors of patches to its
2158         projects, but Git doesn't provide obvious support for multi-author
2159         changesets. Consensus seems to be forming around the use of extra
2160         Signed-off-by inspired lines in the log message formatted as
2161         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2162         multi-author commits between version control systems.
2163         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2164         log message and output in standard ChangeLog multi-author format.
2165         Reported by Peter Rosin <peda@lysator.liu.se>
2167 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2168             Bruno Haible  <bruno@clisp.org>
2170         Fix some modules' file list.
2171         * modules/fstatat (Files): Add m4/lstat.m4.
2172         * modules/openat (Files): Likewise.
2173         * modules/unlinkat (Files): Likewise.
2175 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2177         maint.mk: fix tight-scope.mk generation in VPATH builds.
2178         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2179         reference with $(srcdir) so that the file is found correctly even
2180         when running `make syntax-check' in a VPATH build.
2182 2011-11-13  Bruno Haible  <bruno@clisp.org>
2183             Jim Meyering  <meyering@redhat.com>
2185         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2186         * tests/init.sh (compare): Remove "No differences encountered" or
2187         synonymous output from the 'diff' program.
2189 2011-11-13  Bruno Haible  <bruno@clisp.org>
2191         Makefile: Tweak indentation.
2192         * Makefile: Use tab as first character in every line that contains rule
2193         commands.
2195 2011-11-13  Bruno Haible  <bruno@clisp.org>
2197         Syntax check for copyright statements.
2198         * check-copyright: New file.
2199         * Makefile (sc_check_copyright): New rule.
2201 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2203         * build-aux/git-version-gen: Add --prefix to configure the tag
2204         match string.
2206 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2208         * build-aux/git-version-gen: Add --help and --version.
2210 2011-11-12  Jim Meyering  <meyering@redhat.com>
2212         revamp the other test-exclude?.sh scripts to use init.sh, too
2213         * tests/test-exclude1.sh: Use init.sh.
2214         * tests/test-exclude2.sh: Likewise.
2215         * tests/test-exclude3.sh: Likewise.
2216         * tests/test-exclude4.sh: Likewise.
2217         * tests/test-exclude5.sh: Likewise.
2218         * tests/test-exclude6.sh: Likewise.
2219         * tests/test-exclude7.sh: Likewise.
2220         * tests/test-exclude8.sh: Likewise.
2221         * modules/exclude-tests (Files): List init.sh.
2223         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2224         These shell scripts ignored failure of the binary test-exclude,
2225         so making the latter return 77 didn't cause them to be skipped.
2226         * tests/test-exclude5.sh: Exit with test-exclude's error status
2227         when that program fails.  Revamp to use init.sh.
2228         * tests/test-exclude2.sh: Likewise.
2230         test-exclude: fix a typo
2231         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2233 2011-11-11  Bruno Haible  <bruno@clisp.org>
2235         obstack: Fix compilation error on MSVC 9.
2236         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2238 2011-11-11  Jim Meyering  <meyering@redhat.com>
2240         test-exclude: skip tests rather than failing on deficient systems
2241         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2242         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2243         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2244         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2246 2011-11-10  Bruno Haible  <bruno@clisp.org>
2248         ptsname_r test: Avoid gcc warning on glibc systems.
2249         * tests/test-ptsname_r.c (null_ptr): New function.
2250         (test_errors): Use it.
2252 2011-11-10  Bruno Haible  <bruno@clisp.org>
2254         ptsname_r: Avoid compilation error on OSF/1 5.1.
2255         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2257         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2258         function is not declared or incompatibly declared.
2259         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2260         * modules/ptsname_r (Depends-on, configure.ac): Update.
2261         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2263 2011-11-10  Bruno Haible  <bruno@clisp.org>
2265         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2266         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2267         When cross-compiling, guess yes on all platforms except AIX.
2268         Reported by Ludovic Courtès <ludo@gnu.org>.
2270 2011-11-09  Bruno Haible  <bruno@clisp.org>
2272         ptsname_r tests: Fix bugs.
2273         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2274         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2276 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2278         fstatat: work with cross-compilation
2279         Problem reported by Ludovic Courtès in
2280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2281         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2282         "cross-compiling" and assume the bug is present.  Replace
2283         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2284         an inverted sense, to be more conservative about our assumptions.
2285         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2287 2011-11-09  Bruno Haible  <bruno@clisp.org>
2289         Improve MODULES.html output.
2290         * modules/mkfifoat (Description): Use the word "function".
2291         * modules/readlinkat (Description): Likewise.
2292         * modules/symlinkat (Description): Likewise.
2294 2011-11-09  Eric Blake  <eblake@redhat.com>
2296         ptsname_r-tests: new test module
2297         * modules/ptsname_r-tests: New module.
2298         * tests/test-ptsname_r.c: New file.
2300         ptsname_r: new module
2301         * modules/ptsname_r: New module.
2302         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2303         * lib/ptsname.c (__ptsname_r): Split...
2304         * lib/ptsname_r.c: ...into new file.
2305         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2306         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2307         * modules/stdlib (Makefile.am): Substitute witnesses.
2308         * lib/stdlib.in.h (ptsname_r): Declare it.
2309         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2310         * MODULES.html.sh (Misc): Likewise.
2311         * modules/ptsname (Depends-on): Alter dependency.
2312         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2314 2011-11-09  Jim Meyering  <meyering@redhat.com>
2316         announce-gen: be more concise when there's only one URL+tarball
2317         * build-aux/announce-gen (get_tool_versions): When you distribute
2318         only one type of tarball, combine the first two "Here are..."
2319         sections and make the key-checking grammar independent of
2320         how many tarballs there are.
2322 2011-11-09  Eric Blake  <eblake@redhat.com>
2324         openpty: provide a stub on mingw
2325         * lib/pty.in.h (includes): Provide forward declarations.
2326         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2328         raise: fix mingw handling of SIGPIPE
2329         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2331 2011-11-08  Bruno Haible  <bruno@clisp.org>
2333         More conditional dependencies.
2334         * modules/faccessat (Depends-on): Add conditions.
2335         * modules/fchmodat (Depends-on): Likewise.
2336         * modules/fchownat (Depends-on): Likewise.
2337         * modules/fstatat (Depends-on): Likewise.
2338         * modules/mkfifoat (Depends-on): Likewise.
2339         * modules/readlinkat (Depends-on): Likewise.
2340         * modules/symlinkat (Depends-on): Likewise.
2341         * modules/unlinkat (Depends-on): Likewise.
2342         * modules/utimensat (Depends-on): Likewise.
2343         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2344         * modules/linkat (Depends-on): Refine the conditions.
2345         * modules/renameat (Depends-on): Likewise.
2347 2011-11-08  Bruno Haible  <bruno@clisp.org>
2349         faccessat: Move AC_LIBOBJ invocation to module description.
2350         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2351         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2352         invocation from here...
2353         * modules/faccessat (configure.ac): ... to here. Invoke
2354         gl_PREREQ_FACCESSAT.
2356 2011-11-08  Bruno Haible  <bruno@clisp.org>
2358         faccessat: Simplify autoconf macro.
2359         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2360         gl_FUNC_EUIDACCESS.
2362 2011-11-08  Bruno Haible  <bruno@clisp.org>
2364         renameat: Fix dependencies.
2365         * modules/renameat (Depends-on): Add stdbool.
2367 2011-11-08  Bruno Haible  <bruno@clisp.org>
2369         mkfifoat: Fix module description.
2370         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2371         not gl_UNISTD_MODULE_INDICATOR.
2373 2011-11-08  Bruno Haible  <bruno@clisp.org>
2375         fstatat: Remove unused dependency.
2376         * modules/fstatat (Depends-on): Remove fstat.
2378 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2380         GNUmakefile: behave when Makefile is missing.
2381         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2383 2011-11-08  Bruno Haible  <bruno@clisp.org>
2385         openat: Conditionalize dependencies.
2386         * lib/openat.c: Reduce the scope of some #includes.
2387         * modules/openat (Depends-on): Add conditions.
2389 2011-11-07  Jim Meyering  <meyering@redhat.com>
2391         maint.mk: extract GPG key ID without using a temporary file
2392         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2393         without using a temporary file.  Based on a suggestion from Werner Koch
2394         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2396 2011-11-07  Eric Blake  <eblake@redhat.com>
2398         grantpt: fix typo
2399         * lib/stdlib.in.h (grantpt): Check correct function.
2401         maint.mk: silence new syntax check
2402         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2404 2011-11-06  Bruno Haible  <bruno@clisp.org>
2406         Doc about floating-point and math API.
2407         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2408         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2410 2011-11-06  Bruno Haible  <bruno@clisp.org>
2412         stdalign tests: Skip the test when compiled by Sun C.
2413         * tests/test-stdalign.c (main): Skip the test on Sun C.
2415 2011-11-06  Bruno Haible  <bruno@clisp.org>
2417         ansi-c++-opt: Complete the 2011-06-05 change.
2418         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2419         does not support namespaces, set the variable to "no", not to ":".
2421 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2423         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2425 2011-11-06  Bruno Haible  <bruno@clisp.org>
2427         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2428         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2429         (minus_zerol) [HP-UX]: New macro.
2430         (unary_minus) [HP-UX]: New function.
2431         (copysignl) [HP-UX]: Use unary_minus function.
2433 2011-11-06  Bruno Haible  <bruno@clisp.org>
2435         ldexp, ldexpf, ldexpl: Enhance tests.
2436         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2437         and tests/test-ldexpl.c.
2438         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2439         LDEXP, MIN_EXP, MAX_EXP): New macros.
2440         Include test-ldexp.h.
2441         (main): Just call test_function.
2442         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2443         infinity.h, nan.h.
2444         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2445         MAX_EXP): New macros.
2446         Include test-ldexp.h.
2447         (x, y): Remove variables.
2448         (main): Just call test_function.
2449         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2450         infinity.h, nan.h.
2451         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2452         MAX_EXP): New macros.
2453         Include test-ldexp.h.
2454         (x, y): Remove variables.
2455         (main): Just call test_function.
2456         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2457         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2458         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2459         (Depends-on): Add isnand-nolibm, signbit, float.
2460         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2461         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2462         (Depends-on): Add isnanf-nolibm, signbit, float.
2464 2011-11-06  Bruno Haible  <bruno@clisp.org>
2466         math tests: Cosmetics.
2467         * tests/test-math-c++.cc: Reorder declarations.
2469 2011-11-05  Bruno Haible  <bruno@clisp.org>
2471         fma*: Simplify test.
2472         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2473         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2475         Tests for module 'fmal'.
2476         * modules/fmal-tests: New file.
2477         * tests/test-fmal1.c: New file.
2478         * tests/test-fmal2.c: New file.
2480         New module 'fmal'.
2481         * lib/math.in.h (fmal): New declaration.
2482         * lib/fmal.c: New file.
2483         * m4/fmal.m4: New file.
2484         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2486         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2487         REPLACE_FMAL.
2488         * modules/fmal: New file.
2489         * doc/posix-functions/fmal.texi: Mention the new module and the various
2490         bugs.
2492         Tests for module 'fmaf'.
2493         * modules/fmaf-tests: New file.
2494         * tests/test-fmaf1.c: New file.
2495         * tests/test-fmaf2.c: New file.
2497         New module 'fmaf'.
2498         * lib/math.in.h (fmaf): New declaration.
2499         * lib/fmaf.c: New file.
2500         * m4/fmaf.m4: New file.
2501         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2503         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2504         REPLACE_FMAF.
2505         * modules/fmaf: New file.
2506         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2507         bugs.
2509         Tests for module 'fma'.
2510         * modules/fma-tests: New file.
2511         * tests/test-fma1.c: New file.
2512         * tests/test-fma1.h: New file.
2513         * tests/test-fma2.c: New file.
2514         * tests/test-fma2.h: New file.
2516         New module 'fma'.
2517         * lib/math.in.h (fma): New declaration.
2518         * lib/fma.c: New file.
2519         * m4/fma.m4: New file.
2520         * m4/fegetround.m4: New file.
2521         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2523         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2524         REPLACE_FMA.
2525         * modules/fma: New file.
2526         * doc/posix-functions/fma.texi: Mention the new module and the various
2527         bugs.
2529         Extend gl_MATHFUNC.
2530         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2531         Support 'void' as argument type.
2532         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2534 2011-11-05  Jim Meyering  <meyering@redhat.com>
2536         maint.mk: also prohibit inclusion of dirent.h without use
2537         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2539 2011-11-05  Bruno Haible  <bruno@clisp.org>
2541         ldexpl tests: Avoid test failure on MSVC 9.
2542         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2543         value. Needed in order to enforce the conversion from a value greater
2544         than LDBL_MAX to Infinity.
2546 2011-11-05  Bruno Haible  <bruno@clisp.org>
2548         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2549         * modules/at-internal: New file, extracted from modules/openat.
2550         * modules/openat-h: New file.
2551         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2552         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2553         * modules/openat (Description): Add reference to POSIX function.
2554         (Files): Remove lib/openat.h, lib/openat-proc.c.
2555         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2556         intprops, unistd.
2557         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2558         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2559         gl_FCNTL_MODULE_INDICATOR.
2560         (Include): Remove unistd.h, openat.h.
2561         * modules/areadlinkat (Files): Add lib/at-func.c.
2562         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2563         openat-die, openat-h, save-cwd.
2564         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2565         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2566         openat-die, openat-h, save-cwd, unistd.
2567         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2568         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2569         openat-h, save-cwd. Remove fcntl-h, openat.
2570         * modules/fchmodat (Files): Remove lib/openat.h.
2571         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2572         openat, stdbool, unistd.
2573         * modules/fchownat (Files): Remove lib/openat.h.
2574         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2575         openat, stdbool, sys_stat.
2576         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2577         lib/openat-proc.c.
2578         (Depends-on): Add at-internal.
2579         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2580         * modules/fstatat (Files): Remove lib/openat.h.
2581         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2582         stdbool, unistd.
2583         * modules/fts (Depends-on): Add openat-h.
2584         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2585         openat.
2586         * modules/mkdirat (Files): Remove lib/openat.h.
2587         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2588         openat, stdbool, sys_stat.
2589         * modules/mkfifoat (Files): Add lib/at-func.c.
2590         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2591         openat-h, save-cwd. Remove fcntl-h, openat.
2592         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2593         * modules/readlinkat (Files): Add lib/at-func.c.
2594         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2595         openat-h, save-cwd. Remove fcntl-h, openat.
2596         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2597         openat.
2598         * modules/selinux-at (Files): Add lib/at-func.c.
2599         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2600         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2601         * modules/symlinkat (Files): Add lib/at-func.c.
2602         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2603         openat-h, save-cwd. Remove fcntl-h, openat.
2604         * modules/unlinkat (Files): Remove lib/openat.h.
2605         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2606         stdbool.
2607         * modules/utimensat (Files): Add lib/at-func.c.
2608         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2609         openat-die, openat-h, save-cwd.
2610         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2611         * modules/fdutimensat-tests (Depends-on): Add openat.
2612         * modules/fstatat-tests (Depends-on): Add openat-h.
2613         * modules/readlinkat-tests (Depends-on): Add openat.
2614         * modules/symlinkat-tests (Depends-on): Add openat.
2616 2011-11-05  Bruno Haible  <bruno@clisp.org>
2618         openat: Include <stdbool.h>.
2619         * lib/openat.c: Include <stdbool.h>.
2621 2011-11-04  Bruno Haible  <bruno@clisp.org>
2623         fchownat, renameat, unlinkat: Fix dependencies.
2624         * modules/fchownat (Depends-on): Add fstatat.
2625         * modules/renameat (Depends-on): Likewise.
2626         * modules/unlinkat (Depends-on): Likewise.
2628 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2630         openat: remove direct dependency on dirent
2631         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2632         and hasn't been needed ever since fdopendir was split into its own
2633         module on 2009-08-31.
2634         * modules/openat (Depends-on): Remove dirent.
2636 2011-11-04  Bruno Haible  <bruno@clisp.org>
2638         renameat: Optimize code size.
2639         * modules/renameat (configure.ac): Don't compile at-func2.c if
2640         REPLACE_RENAMEAT is 1.
2642 2011-11-04  Bruno Haible  <bruno@clisp.org>
2644         openat tests: Fix file list.
2645         * modules/openat-tests (Files): Add tests/test-open.h.
2647 2011-11-04  Bruno Haible  <bruno@clisp.org>
2649         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2650         * modules/fchmodat (Depends-on): Add openat-die.
2651         * modules/fchownat (Depends-on): Likewise.
2652         * modules/linkat (Depends-on): Likewise.
2653         * modules/renameat (Depends-on): Likewise.
2654         * modules/openat (Depends-on): Add dirent.
2656 2011-11-04  Jim Meyering  <meyering@redhat.com>
2658         at-func*.c: fix comments
2659         * lib/at-func2.c: Correct/improve first-line comment.
2660         * lib/at-func.c: Correct grammar in first-line comment.
2662 2011-11-04  Bruno Haible  <bruno@clisp.org>
2664         New module 'mkdirat', split off from module 'openat'.
2665         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2666         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2667         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2668         * modules/mkdirat: New file, extracted from modules/openat.
2669         * modules/openat (Files): Remove lib/mkdirat.c.
2670         (Depends-on): Remove mkdir.
2671         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2672         (Include): Remove <sys/stat.h>.
2673         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2674         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2675         tests/test-mkdir.h.
2676         (Depends-on): Remove ignore-value.
2677         (Makefile.am): Remove rules for test-mkdirat.
2678         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2679         of module 'openat'.
2680         * NEWS: Mention the change.
2682 2011-11-04  Bruno Haible  <bruno@clisp.org>
2684         closedir: Avoid warning on mingw.
2685         * lib/closedir.c: Include <unistd.h>.
2687 2011-11-04  Bruno Haible  <bruno@clisp.org>
2689         New module 'fstatat', split off from module 'openat'.
2690         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2691         defined.
2692         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2693         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2694         gl_FUNC_FSTATAT.
2695         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2696         * modules/fstatat: New file, extracted from modules/openat.
2697         * modules/openat (Files): Remove lib/fstatat.c.
2698         (Depends-on): Remove lstat.
2699         (configure.ac): Remove AC_LIBOBJ of fstatat.
2700         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2701         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2702         tests/test-lstat.h, tests/test-stat.h.
2703         (Depends-on): Remove getcwd-lgpl.
2704         (Makefile.am): Remove rules for test-fstatat.
2705         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2706         of module 'openat'.
2707         * NEWS: Mention the change.
2708         * modules/getcwd (Depends-on): Add fstatat.
2709         * modules/linkat (Depends-on): Likewise.
2710         * modules/mkfifoat-tests (Depends-on): Likewise.
2711         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2713 2011-11-03  Bruno Haible  <bruno@clisp.org>
2715         New module 'unlinkat', split off from module 'openat'.
2716         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2717         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2718         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2719         * modules/unlinkat: New file, extracted from modules/openat. Correct
2720         the dependency conditions.
2721         * modules/openat (Files): Remove lib/unlinkat.c.
2722         (Depends-on): Remove rmdir, unlink.
2723         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2724         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2725         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2726         tests/test-rmdir.h, tests/test-unlink.h.
2727         (Depends-on): Remove unlinkdir.
2728         (Makefile.am): Remove rules for test-unlinkat.
2729         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2730         of module 'openat'.
2731         * NEWS: Mention the change.
2732         * modules/linkat-tests (Depends-on): Add unlinkat.
2733         * modules/mkfifoat-tests (Depends-on): Likewise.
2734         * modules/readlinkat-tests (Depends-on): Likewise.
2736 2011-11-02  Bruno Haible  <bruno@clisp.org>
2738         New module 'fchmodat', split off from module 'openat'.
2739         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2740         defined.
2741         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2742         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2743         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2744         * modules/fchmodat: New file, extracted from modules/openat.
2745         * modules/openat (Files): Remove lib/fchmodat.c.
2746         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2747         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2748         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2749         (Makefile.am): Remove rules for test-fchmodat.
2750         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2751         of module 'openat'.
2752         * NEWS: Mention the change.
2754 2011-11-02  Jim Meyering  <meyering@redhat.com>
2756         putenv: indent #definition of "environ" to placate cppi
2757         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2759         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2760         Git logs are often treated as immutable, because editing them
2761         changes the SHA1 checksums of all descendants.  Thus, errors in
2762         git logs tend to stay there forever.  However, when we generate
2763         a ChangeLog file -- typically for distribution -- from that git log,
2764         we can actually make corrections in the generated file.  The key
2765         lies in recording in machine-readable/applicable form the desired
2766         corrections.  See --help for description and an example.
2767         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2768         (usage): Describe it; alphabetize option descriptions.
2769         (main): Honor the new option, carefully.
2771 2011-11-01  Jim Meyering  <meyering@redhat.com>
2773         gitlog-to-changelog: avoid an infloop
2774         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2775         that ends up being empty.
2777 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2779         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2780         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2781         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2782         contains (possibly-quoted) backslashes.  This should avoid
2783         all-too-common shell bugs if COMPLICATED contains backslashes in
2784         the "wrong" places.  Reported by David Evans in
2785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2786         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2787         because we want ASCII ranges.  Is there some reason we don't use
2788         the C locale everywhere in this script?
2789         (func_module, top level): Avoid unwanted pathname expansion when
2790         $repo_url_prefix or $repo_url_suffix_repl contain shell
2791         metacharacters like '?' and '*'.
2793 2011-11-01  Bruno Haible  <bruno@clisp.org>
2795         fchownat: Improve description.
2796         * modules/fchownat (Description): Add link to function.
2798 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2800         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2801         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2803         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2805 2011-11-01  Bruno Haible  <bruno@clisp.org>
2807         alignof: Avoid collision with stdalign module.
2808         * lib/alignof.h (alignof): Remove macro.
2809         * NEWS: Mention the change.
2810         Reported by Paul Eggert.
2812 2011-11-01  Bruno Haible  <bruno@clisp.org>
2814         New module 'fchownat', split off from module 'openat'.
2815         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2816         defined.
2817         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2818         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2819         invoke gl_FUNC_FCHOWNAT.
2820         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2821         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2822         * modules/fchownat: New file, extracted from modules/openat.
2823         * modules/openat (Files): Remove lib/fchownat.c.
2824         (Depends-on): Remove lchown.
2825         (configure.ac): Remove AC_LIBOBJ of fchownat.
2826         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2827         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2828         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2829         (Depends-on): Remove mgetgroups, usleep, stat-time.
2830         (configure.ac): Remove test for getegid.
2831         (Makefile.am): Remove rules for test-fchownat.
2832         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2833         of module 'openat'.
2834         * NEWS: Mention the change.
2836 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2838         stdalign: port better to MSVC and to Sun C 5.11
2839         This fixes some of the problems reported by Bruno Haible in
2840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2841         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2842         shortcomings of MSVC and of Sun C 5.11.
2843         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2844         around __declspec arg.
2845         * modules/stdalign-tests (Files): Add tests/macros.h.
2846         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2847         Include macros.h, for ASSERT.
2848         (DECLARE_ALIGNED): Remove.
2849         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2850         to catch bug), and to 1 if not (simplifies the rest of the code).
2851         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2852         (CHECK_AUTO): Remove.
2853         (CHECK_ALIGNED): Check only the alignment of the static vars,
2854         since auto var alignment isn't supported by Sun C 5.11.
2855         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2856         ASSERT failures are easier to diagnose.
2858 2011-10-31  Bruno Haible  <bruno@clisp.org>
2860         doc about some IRIX 5.3 problems.
2861         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2862         on IRIX 5.3.
2863         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2864         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2865         5.3.
2866         * doc/posix-functions/grantpt.texi: Likewise.
2867         * doc/posix-functions/unlockpt.texi: Likewise.
2868         * doc/posix-functions/lgamma.texi: Likewise.
2869         * doc/posix-functions/nextafter.texi: Likewise.
2870         * doc/posix-functions/remainder.texi: Likewise.
2871         * doc/posix-functions/select.texi: Mention misplaced declaration on
2872         IRIX 5.3.
2873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2875 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2877         gitlog-to-changelog: fix git-log invocation.
2878         git-log mishandles date strings before 1970-01-01 UTC, and there is
2879         no use to specify --since=1970-01-01 by default anyway.
2880         * build-aux/gitlog-to-changelog: By default, when no --since option
2881         was given, do not specify explicit --since option to git-log.
2883 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2885         gitlog-to-changelog: new option --append-dot.
2886         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2887         first non-blank line of each commit message terminated with a dot.
2889 2011-10-30  Bruno Haible  <bruno@clisp.org>
2891         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2892         * lib/ffsl.h: Include <config.h>.
2893         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2895 2011-10-30  Jim Meyering  <meyering@redhat.com>
2897         GNUmakefile: reenable "make syntax-check" for most projects
2898         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2899         build-aux variable", "syntax-check" would do nothing but succeed with
2900         the "No version control files detected..." diagnostic (unless you
2901         happened to override _build-aux via cfg.mk).
2902         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2903         to precede inclusion of maint.mk.  Otherwise, these variables would
2904         be used undefined in any project that does not override the default.
2906 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2908         gitlog-to-changelog: treat a message with only blank lines as empty.
2909         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2910         trailing blank lines before the code that issues a warning about an
2911         empty commit message.
2913 2011-10-30  Jim Meyering  <meyering@redhat.com>
2915         test-parse-datetime.c: avoid new DST-related false positive test failure
2916         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2917         based on the time/date we'll convert, not the current time.
2918         Otherwise, the moment we cross a DST boundary like today's in
2919         Europe, (CEST to CET), that offset ends up being one hour off.
2921 2011-10-27  Bruno Haible  <bruno@clisp.org>
2923         fstat: Tweak documentation.
2924         * modules/fstat (Description): More precise description.
2926 2011-10-27  Bruno Haible  <bruno@clisp.org>
2928         Update documentation regarding 'largefile' module.
2929         * doc/posix-functions/fstat.texi: Tweak wording.
2930         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2931         problems with huge directories and/or small ino_t types.
2932         * doc/posix-functions/readdir.texi: Likewise.
2933         * doc/posix-functions/rewinddir.texi: Likewise.
2935 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2937         maint.mk: don't maintain a second build-aux variable.
2938         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2939         depends on GNUmakefile, which already maintains a cfg.mk
2940         overridable $(_build-aux) for projects with a non-standard
2941         build-aux directory location, although without the $(srcdir)
2942         prefix.  Use that variable consistently instead of introducing a
2943         second one.  Adjust all call sites.
2945 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2947         Add stdalign module and use it in other modules.
2948         This is based on a previous proposal by Bruno Haible
2949         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2951         stdalign: new module
2952         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2953         * modules/stdalign: New files.
2954         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2955         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2957         stdalign-tests: new module
2958         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2960         argp: use stdalign
2961         * lib/argp-parse.c: Include <stdalign.h>.
2962         (alignof): Remove.
2963         * modules/argp (Depends-on): Add stdalign.
2965         crypto libraries: use stdalign
2966         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2967         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2968         Do not include <stdlib.h> twice, in md4.c.
2969         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2970         because we are accessing a pointer's bit-pattern, not a size.
2971         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2972         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2973         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2974         * modules/crypto/sha512: Likewise.
2976         sys_socket: use stdalign, not alignof
2977         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2978         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2980 2011-10-27  Bruno Haible  <bruno@clisp.org>
2982         raise test: Avoid a test failure on Linux/MIPS.
2983         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2984         because 99 is a valid signal on Linux/MIPS.
2986 2011-10-27  Bruno Haible  <bruno@clisp.org>
2988         nonblocking tests: Fix test failure on Linux/MIPS.
2989         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2990         Set to 270000.
2992 2011-10-27  Bruno Haible  <bruno@clisp.org>
2994         utimensat: Work around problem on Linux/hppa.
2995         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2996         values.
2997         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2999 2011-10-25  Jim Meyering  <meyering@redhat.com>
3001         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3002         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3003         after symbols like NULL, size_t, etc.
3004         Reported by Alfred M. Szmidt.
3006         maint.mk: exempt ENODATA from a syntax-check rule
3007         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3008         from the sc_prohibit_always-defined_macros syntax-check rule.
3009         Add a comment.  See this for more details:
3010         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3012 2011-10-23  Jim Meyering  <meyering@redhat.com>
3014         fts: close parent dir FD before returning from post-traversal fts_read
3015         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3016         unlink A, even though an FD open on A remained.  This is suboptimal
3017         (holding a file descriptor open longer than needed), but otherwise not
3018         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3019         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3020         that represents a real problem: it causes the removal of A to fail
3021         with e.g., "rm: cannot remove `A': Device or resource busy"
3023         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3024         directory file descriptors.  After completing the final, FTS_DP,
3025         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3026         cache, but then proceeded to add a new FD to it via the subsequent
3027         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3028         final file descriptor would be closed only via fts_close's call to
3029         fd_ring_clear.  Now, it is usually closed earlier, via the final
3030         FTS_DP-returning fts_read call.
3031         * lib/fts.c (restore_initial_cwd): New function, converted from
3032         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3033         Update callers.
3034         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3035         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3037 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3038             Bruno Haible  <bruno@clisp.org>
3039             Jim Meyering  <jim@meyering.net>
3041         readme-release: improve safety of release prep instructions.
3042         * README-release: Don't git pull all branches when only master
3043         is needed for the release process.
3044         Run make maintainer-clean before changing trees and merging.
3045         Don't try to run ./configure right after git pull in case files
3046         that influence the bootstrap process have changed, move the
3047         ./configure step to after running ./bootstrap.
3048         Don't bootstrap "one last time"... it's the first time!
3050 2011-10-22  Bruno Haible  <bruno@clisp.org>
3052         errno, strerror-override: Support for MSVC 10.
3053         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3054         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3055         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3056         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3057         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3058         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3059         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3060         Assign values compatible with MSVC 10.
3061         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3062         New macros.
3063         (GNULIB_defined_EWINSOCK): New macro.
3064         * lib/strerror-override.c (strerror_override): Update accordingly.
3065         * lib/strerror-override.h: Likewise.
3066         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3067         longer equal to the corresponding errno value.
3068         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3070 2011-10-22  Bruno Haible  <bruno@clisp.org>
3072         perror: Recognize when test program crashes.
3073         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3074         strerror, set gl_cv_func_perror_works to no.
3075         Reported by Daniel Richard G. <skunk@iskunk.org>.
3077         perror: Fix indentation.
3078         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3080 2011-10-22  Bruno Haible  <bruno@clisp.org>
3082         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3083         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3084         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3085         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3086         functions, not as a macro.
3087         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3088         macros.
3089         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3090         absence of macro.
3091         Suggested by Eric Blake.
3092         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3094 2011-10-21  Bruno Haible  <bruno@clisp.org>
3096         relocatable-prog-wrapper: Don't leave object files behind.
3097         * build-aux/install-reloc: Re-synchronize list of .o files to be
3098         removed with list of compilation units.
3100 2011-10-20  Bruno Haible  <bruno@clisp.org>
3102         openpty, posix_openpt: Remove code duplication.
3103         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3104         * lib/openpty.c: Include <stdlib.h>.
3105         (openpty): Use posix_openpt on all platforms except IRIX.
3106         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3108 2011-10-20  Bruno Haible  <bruno@clisp.org>
3110         unlockpt: Detect invalid argument.
3111         * lib/unlockpt.c: Include <fcntl.h>.
3112         (unlockpt): Check whether fd is valid, using fcntl().
3113         * modules/unlockpt (Depends-on): Add fcntl-h.
3115 2011-10-20  Bruno Haible  <bruno@clisp.org>
3117         openpty: Avoid compilation error on AIX 6.1.
3118         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3120 2011-10-20  Bruno Haible  <bruno@clisp.org>
3122         posix_openpt: Support for OpenBSD.
3123         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3124         (posix_openpt) [OpenBSD]: New code.
3125         * lib/grantpt.c: Include <fcntl.h>.
3126         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3127         * modules/grantpt (Depends-on): Add fcntl-h.
3129 2011-10-20  Bruno Haible  <bruno@clisp.org>
3131         posix_openpt test: Coding style.
3132         * tests/test-posix_openpt.c: Use GNU coding style.
3134 2011-10-20  Bruno Haible  <bruno@clisp.org>
3136         grantpt: Support --avoid=pt_chown.
3137         * modules/grantpt (Files): Add lib/pty-private.h.
3139 2011-10-20  Bruno Haible  <bruno@clisp.org>
3141         posix_openpt: Fix autoconf macro.
3142         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3143         unneeded check for _getpty.
3145 2011-10-20  Bruno Haible  <bruno@clisp.org>
3147         openpty: Update comments.
3148         * lib/openpty.c: Add comments about Minix.
3150 2011-10-19  Eric Blake  <eblake@redhat.com>
3152         openpty: relax license
3153         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3155         pt_chown: use configmake to simplify build
3156         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3158         ptsname and others: relax license
3159         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3160         * modules/unlockpt (License): Likewise.
3161         * modules/pt_chown (License): Likewise.
3162         * modules/ptsname (License): Likewise.
3163         * modules/ttyname_r (License): Likewise.
3165 2011-10-19  Jim Meyering  <meyering@redhat.com>
3167         posix_openpt: remove spurious #endif
3168         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3170 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3172         maint.mk: Respect $(build_aux) in web-manual rule.
3173         * top/maint.mk (web-manual): Find gen-announce script in user's
3174         $(build_aux) directory instead of hard-coding 'build-aux'.
3176 2011-10-19  Bruno Haible  <bruno@clisp.org>
3178         posix_openpt: Fix compilation error.
3179         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3180         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3181         Mention the openpty module as an alternative.
3183 2011-10-19  Bruno Haible  <bruno@clisp.org>
3185         Support for old NeXTstep 3.3 frexp().
3186         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3187         execution time of the test to 5 seconds.
3188         Reported by Daniel Richard G. <skunk@iskunk.org>.
3190 2011-10-19  Bruno Haible  <bruno@clisp.org>
3192         Support for old NeXTstep 3.3 sed.
3193         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3194         part, use /.../, not \|...|. Escape periods in the header file name.
3195         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3196         Reported by Daniel Richard G. <skunk@iskunk.org>.
3198 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3200         Support for old NeXTstep 3.3 gcc.
3201         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3202         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3203         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3204         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3205         * lib/regex.h (_Restrict_arr_): Likewise.
3206         * lib/regex_internal.h (re_token_t): Likewise.
3207         * lib/regexec.c (check_node_accept_bytes): Likewise.
3208         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3210 2011-10-18  Eric Blake  <eblake@redhat.com>
3212         posix_openpt: new module
3213         * modules/posix_openpt: New module.
3214         * m4/posix_openpt.m4: New file.
3215         * lib/posix_openpt.c: Likewise.
3216         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3217         (gl_STDLIB_H_DEFAULTS): Set defaults.
3218         * modules/stdlib (Makefile.am): Substitute macros.
3219         * lib/stdlib.in.h (posix_openpt): Declare.
3220         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3221         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3222         * modules/posix_openpt-tests: New test module.
3223         * tests/test-posix_openpt.c: New test.
3225 2011-10-15  Bruno Haible  <bruno@clisp.org>
3227         xstrtoll: Fix compilation failure.
3228         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3229         from lib/strtol.c.
3230         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3231         some platforms.
3232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3234 2011-10-15  Bruno Haible  <bruno@clisp.org>
3236         vasnprintf: Optimize bit search operation.
3237         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3239         gl_DOUBLE_EXPONENT_LOCATION.
3240         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3241         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3242         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3243         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3244         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3245         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3246         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3247         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3248         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3250 2011-10-15  Bruno Haible  <bruno@clisp.org>
3252         vasnprintf: Fix comments.
3253         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3255 2011-10-14  Bruno Haible  <bruno@clisp.org>
3257         Tests for module 'integer_length_ll'.
3258         * modules/integer_length_ll-tests: New file.
3259         * tests/test-integer_length_ll.c: New file.
3261         New module 'integer_length_ll'.
3262         * lib/integer_length_ll.c: New file.
3263         * modules/integer_length_ll: New file.
3265 2011-10-14  Bruno Haible  <bruno@clisp.org>
3267         Tests for module 'integer_length_l'.
3268         * modules/integer_length_l-tests: New file.
3269         * tests/test-integer_length_l.c: New file.
3271         New module 'integer_length_l'.
3272         * lib/integer_length_l.c: New file.
3273         * modules/integer_length_l: New file.
3275 2011-10-14  Bruno Haible  <bruno@clisp.org>
3277         Tests for module 'integer_length'.
3278         * modules/integer_length-tests: New file.
3279         * tests/test-integer_length.c: New file.
3281         New module 'integer_length'.
3282         * lib/integer_length.h: New file.
3283         * lib/integer_length.c: New file.
3284         * modules/integer_length: New file.
3286 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3288         popen: Fix dependency conditions.
3289         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3291 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3293         perror: Fix autoconf test.
3294         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3295         <stdlib.h> and <string.h>.
3297 2011-10-14  Bruno Haible  <bruno@clisp.org>
3299         ffsl: Optimize on 64-bit platforms.
3300         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3301         unrolling.
3303 2011-10-13  Bruno Haible  <bruno@clisp.org>
3305         ffsl: Optimize on 32-bit platforms.
3306         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3307         use ffs() without a loop.
3309         ffsl, ffsll: Optimize for GCC.
3310         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3311         * lib/ffsl.c (GCC_BUILTIN): New macro.
3312         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3314 2011-10-13  Bruno Haible  <bruno@clisp.org>
3316         ffs, bcopy, memset: Support symbol renaming via config.h.
3317         * lib/ffs.c: Include <config.h>.
3318         * lib/bcopy.c: Likewise.
3319         * lib/memset.c: Likewise.
3321 2011-10-10  Bruno Haible  <bruno@clisp.org>
3323         atanl: Simplify for platforms where 'long double' == 'double'.
3324         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3325         alternative implementation.
3326         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3327         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3328         * modules/atanl (Depends-on): Add atan. Update conditions.
3330 2011-10-10  Bruno Haible  <bruno@clisp.org>
3332         acosl: Simplify for platforms where 'long double' == 'double'.
3333         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3334         alternative implementation.
3335         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3336         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3337         * modules/acosl (Depends-on): Add acos. Update conditions.
3339 2011-10-10  Bruno Haible  <bruno@clisp.org>
3341         asinl: Simplify for platforms where 'long double' == 'double'.
3342         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3343         alternative implementation.
3344         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3345         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3346         * modules/asinl (Depends-on): Add asin. Update conditions.
3348 2011-10-10  Bruno Haible  <bruno@clisp.org>
3350         tanl: Simplify for platforms where 'long double' == 'double'.
3351         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3352         implementation.
3353         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3354         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3355         * modules/tanl (Depends-on): Add tan. Update conditions.
3356         (configure.ac): Don't compile trigl.c if
3357         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3359 2011-10-10  Bruno Haible  <bruno@clisp.org>
3361         cosl: Simplify for platforms where 'long double' == 'double'.
3362         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3363         implementation.
3364         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3365         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3366         * modules/cosl (Depends-on): Add cos. Update conditions.
3367         (configure.ac): Don't compile sincosl.c and trigl.c if
3368         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3370 2011-10-10  Bruno Haible  <bruno@clisp.org>
3372         sinl: Simplify for platforms where 'long double' == 'double'.
3373         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3374         implementation.
3375         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3376         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3377         * modules/sinl (Depends-on): Add sin. Update conditions.
3378         (configure.ac): Don't compile sincosl.c and trigl.c if
3379         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3381 2011-10-10  Bruno Haible  <bruno@clisp.org>
3383         logl: Simplify for platforms where 'long double' == 'double'.
3384         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3385         implementation.
3386         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3387         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3388         * modules/logl (Depends-on): Add log. Update conditions.
3390 2011-10-10  Bruno Haible  <bruno@clisp.org>
3392         expl: Simplify for platforms where 'long double' == 'double'.
3393         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3394         implementation.
3395         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3396         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3397         * modules/expl (Depends-on): Add exp. Update conditions.
3399 2011-10-10  Bruno Haible  <bruno@clisp.org>
3401         sqrtl: Simplify for platforms where 'long double' == 'double'.
3402         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3403         alternative implementation.
3404         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3405         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3406         * modules/sqrtl (Depends-on): Update conditions.
3408 2011-10-10  Bruno Haible  <bruno@clisp.org>
3410         ldexpl: Simplify for platforms where 'long double' == 'double'.
3411         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3412         alternative implementation.
3413         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3414         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3415         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3417 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3419         ffsll: set correct witness
3420         * modules/ffsll (configure.ac): Fix typo.
3422 2011-10-10  Bruno Haible  <bruno@clisp.org>
3424         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3425         * lib/printf-frexpl.c: Include <config.h>.
3426         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3427         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3428         second time.
3429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3430         gl_LONG_DOUBLE_VS_DOUBLE.
3431         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3432         conditions.
3434 2011-10-10  Bruno Haible  <bruno@clisp.org>
3436         frexpl: Simplify for platforms where 'long double' == 'double'.
3437         * lib/frexpl.c: Include <config.h>.
3438         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3439         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3440         time.
3441         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3442         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3443         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3444         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3445         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3446         conditions.
3448 2011-10-10  Jim Meyering  <meyering@redhat.com>
3450         test-renameat: don't leave behind a temporary file
3451         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3452           ERROR: files left in build directory after distclean:
3453           ./gltests/test-renameat.too
3454           make[1]: *** [distcleancheck] Error 1
3455         Reported by Tom G. Christensen.
3457 2011-10-09  Bruno Haible  <bruno@clisp.org>
3459         rint: Determine RINT_LIBM correctly on AIX 7.
3460         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3461         directly, not only through a function pointer. Also accept an optional
3462         4th argument with extra code.
3463         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3464         rintf() call by gcc when optimizing.
3466         mathfunc.m4: Refactor.
3467         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3468         m4 variable.
3470 2011-10-09  Bruno Haible  <bruno@clisp.org>
3472         rintl: Simplify for platforms where 'long double' == 'double'.
3473         * lib/rintl.c: Include <config.h>.
3474         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3475         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3476         time.
3477         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3478         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3479         * modules/rintl (Depends-on): Add rint. Update conditions.
3481 2011-10-09  Bruno Haible  <bruno@clisp.org>
3483         roundl: Simplify for platforms where 'long double' == 'double'.
3484         * lib/roundl.c: Include <config.h>.
3485         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3486         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3487         time.
3488         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3489         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3490         * modules/roundl (Depends-on): Add round. Update conditions.
3492 2011-10-09  Bruno Haible  <bruno@clisp.org>
3494         truncl: Simplify for platforms where 'long double' == 'double'.
3495         * lib/truncl.c: Include <config.h>.
3496         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3497         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3498         time.
3499         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3500         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3501         * modules/truncl (Depends-on): Add trunc. Update conditions.
3503 2011-10-09  Bruno Haible  <bruno@clisp.org>
3505         ceill: Simplify for platforms where 'long double' == 'double'.
3506         * lib/ceill.c: Include <config.h>.
3507         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3508         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3509         time.
3510         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3511         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3512         * modules/ceill (Depends-on): Add ceil. Update conditions.
3514 2011-10-09  Bruno Haible  <bruno@clisp.org>
3516         floorl: Simplify for platforms where 'long double' == 'double'.
3517         * lib/floorl.c: Include <config.h>.
3518         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3519         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3520         time.
3521         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3522         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3523         * modules/floorl (Depends-on): Add floor. Update conditions.
3525 2011-10-09  Bruno Haible  <bruno@clisp.org>
3527         rint: Fix ordering constraints.
3528         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3529         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3530         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3532 2011-10-09  Bruno Haible  <bruno@clisp.org>
3534         copysignl: Simplify for platforms where 'long double' == 'double'.
3535         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3536         alternative.
3537         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3538         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3539         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3541 2011-10-09  Bruno Haible  <bruno@clisp.org>
3543         Tests for module 'rintl'.
3544         * modules/rintl-tests: New file.
3545         * tests/test-rintl.c: New file.
3547         New module 'rintl'.
3548         * lib/math.in.h (rintl): New declaration.
3549         * lib/rintl.c: New file.
3550         * m4/rintl.m4: New file.
3551         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3553         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3554         * modules/rintl: New file.
3555         * tests/test-math-c++.cc: Check the declaration of rintl.
3556         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3557         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3558         * doc/posix-functions/rintl.texi: Mention the new module.
3560 2011-10-09  Bruno Haible  <bruno@clisp.org>
3562         Tests for module 'rintf'.
3563         * modules/rintf-tests: New file.
3564         * tests/test-rintf.c: New file.
3566         New module 'rintf'.
3567         * lib/math.in.h (rintf): New declaration.
3568         * lib/rintf.c: New file.
3569         * m4/rintf.m4: New file.
3570         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3572         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3573         * modules/rintf: New file.
3574         * tests/test-math-c++.cc: Check the declaration of rintf.
3575         * doc/posix-functions/rintf.texi: Mention the new module.
3577 2011-10-09  Bruno Haible  <bruno@clisp.org>
3579         rint: Support for MSVC.
3580         * lib/math.in.h (rint): New declaration.
3581         * lib/rint.c: New file.
3582         * m4/rint.m4: New file.
3583         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3585         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3586         * modules/rint (Description): Fix.
3587         (Files): Add lib/rint.c, m4/rint.m4.
3588         (Depends-on): Add math.
3589         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3590         gl_MATH_MODULE_INDICATOR.
3591         * tests/test-math-c++.cc: Check the declaration of rint.
3592         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3593         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3594         * doc/posix-functions/rint.texi: Mention the replacement provided by
3595         the module.
3597         rint tests: More tests.
3598         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3599         minus-zero.h, infinity.h, nan.h.
3600         (main): Skip the test if the current rounding mode is not standard. Add
3601         tests for negative numbers, minus zero, infinity, NaN.
3602         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3603         tests/nan.h.
3604         (Depends-on): Add isnand-nolibm.
3606 2011-10-09  Bruno Haible  <bruno@clisp.org>
3608         Tests for module 'copysignl'.
3609         * modules/copysignl-tests: New file.
3610         * tests/test-copysignl.c: New file.
3612         New module 'copysignl'.
3613         * lib/math.in.h (copysignl): New declaration.
3614         * lib/copysignl.c: New file.
3615         * m4/copysignl.m4: New file.
3616         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3618         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3619         HAVE_COPYSIGNL.
3620         * modules/copysignl: New file.
3621         * tests/test-math-c++.cc: Check the declaration of copysignl.
3622         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3623         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3624         * doc/posix-functions/copysignl.texi: Mention the new module.
3626 2011-10-09  Bruno Haible  <bruno@clisp.org>
3628         Tests for module 'copysignf'.
3629         * modules/copysignf-tests: New file.
3630         * tests/test-copysignf.c: New file.
3632         New module 'copysignf'.
3633         * lib/math.in.h (copysignf): New declaration.
3634         * lib/copysignf.c: New file.
3635         * m4/copysignf.m4: New file.
3636         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3638         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3639         HAVE_COPYSIGNF.
3640         * modules/copysignf: New file.
3641         * tests/test-math-c++.cc: Check the declaration of copysignf.
3642         * doc/posix-functions/copysignf.texi: Mention the new module.
3644 2011-10-09  Bruno Haible  <bruno@clisp.org>
3646         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3647         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3648         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3649         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3650         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3651         gl_SIGNAL_H_DEFAULTS.
3653 2011-10-09  Bruno Haible  <bruno@clisp.org>
3655         poll: Make macro safer.
3656         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3657         ac_cv_header_poll_h is not set.
3659 2011-10-09  Bruno Haible  <bruno@clisp.org>
3661         copysign: Provide replacement.
3662         * lib/math.in.h (copysign): New declaration.
3663         * lib/copysign.c: New file.
3664         * m4/copysign.m4: New file.
3665         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3667         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3668         HAVE_COPYSIGN.
3669         * modules/copysign (Description): Clarify.
3670         (Files): Add lib/copysign.c, m4/copysign.m4.
3671         (Depends-on): Add math, signbit.
3672         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3673         gl_MATH_MODULE_INDICATOR.
3674         * tests/test-math-c++.cc: Check the declaration of copysign.
3675         * doc/posix-functions/copysign.texi: Mention the effects of the module
3676         on Minix and MSVC.
3678 2011-10-09  Bruno Haible  <bruno@clisp.org>
3680         isinf: Ensure macro on AIX 5.1.
3681         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3682         macro.
3683         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3685 2011-10-09  Bruno Haible  <bruno@clisp.org>
3687         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3688         * modules/snprintf-posix-tests (configure.ac): Require
3689         gl_LONG_DOUBLE_VS_DOUBLE.
3690         * modules/sprintf-posix-tests (configure.ac): Likewise.
3691         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3692         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3693         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3694         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3695         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3696         tests on platforms where 'long double' is the same as 'double'.
3697         * tests/test-sprintf-posix.h (test_function): Likewise.
3698         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3699         * tests/test-vasprintf-posix.c (test_function): Likewise.
3701         *printf: Fix for platforms where 'long double' == 'double'.
3702         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3703         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3704         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3705         * modules/fprintf-posix (Files): Likewise.
3706         * modules/obstack-printf-posix (Files): Likewise.
3707         * modules/snprintf-posix (Files): Likewise.
3708         * modules/sprintf-posix (Files): Likewise.
3709         * modules/vasnprintf (Files): Likewise.
3710         * modules/vasnprintf-posix (Files): Likewise.
3711         * modules/vasprintf-posix (Files): Likewise.
3712         * modules/vdprintf-posix (Files): Likewise.
3713         * modules/vfprintf-posix (Files): Likewise.
3714         * modules/vsnprintf-posix (Files): Likewise.
3715         * modules/vsprintf-posix (Files): Likewise.
3716         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3717         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3718         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3719         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3720         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3721         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3722         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3724         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3725         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3726         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3727         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3728         'long double'.
3729         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3731         isinf: Fix for platforms where 'long double' == 'double'.
3732         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3733         Don't blindly assume 80-bit 'long double'.
3735         isfinite: Fix for platforms where 'long double' == 'double'.
3736         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3737         Don't blindly assume 80-bit 'long double'.
3739         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3740         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3741         * modules/isfinite-tests (configure.ac): Require
3742         gl_LONG_DOUBLE_VS_DOUBLE.
3743         * modules/isinf-tests (configure.ac): Likewise.
3744         * modules/isnan-tests (configure.ac): Likewise.
3745         * modules/isnanl-tests (configure.ac): Likewise.
3746         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3747         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3748         tests on platforms where 'long double' is the same as 'double'.
3749         * tests/test-isinf.c (test_isinfl): Likewise.
3750         * tests/test-isnan.c (test_long_double): Likewise.
3751         * tests/test-isnanl.h (main): Likewise.
3753 2011-10-08  Bruno Haible  <bruno@clisp.org>
3755         Tests for module 'tanhf'.
3756         * modules/tanhf-tests: New file.
3757         * tests/test-tanhf.c: New file.
3759         New module 'tanhf'.
3760         * lib/math.in.h (tanhf): New declaration.
3761         * lib/tanhf.c: New file.
3762         * m4/tanhf.m4: New file.
3763         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3765         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3766         * modules/tanhf: New file.
3767         * tests/test-math-c++.cc: Check the declaration of tanhf.
3768         * doc/posix-functions/tanhf.texi: Mention the new module.
3770         tanh: Use a .m4 file.
3771         * m4/tanh.m4: New file.
3772         * modules/tanh (Files): Add it.
3773         (configure.ac): Just invoke gl_FUNC_TANH.
3775 2011-10-08  Bruno Haible  <bruno@clisp.org>
3777         Tests for module 'coshf'.
3778         * modules/coshf-tests: New file.
3779         * tests/test-coshf.c: New file.
3781         New module 'coshf'.
3782         * lib/math.in.h (coshf): New declaration.
3783         * lib/coshf.c: New file.
3784         * m4/coshf.m4: New file.
3785         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3787         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3788         * modules/coshf: New file.
3789         * tests/test-math-c++.cc: Check the declaration of coshf.
3790         * doc/posix-functions/coshf.texi: Mention the new module.
3792         cosh: Use a .m4 file.
3793         * m4/cosh.m4: New file.
3794         * modules/cosh (Files): Add it.
3795         (configure.ac): Just invoke gl_FUNC_COSH.
3797 2011-10-08  Bruno Haible  <bruno@clisp.org>
3799         Tests for module 'sinhf'.
3800         * modules/sinhf-tests: New file.
3801         * tests/test-sinhf.c: New file.
3803         New module 'sinhf'.
3804         * lib/math.in.h (sinhf): New declaration.
3805         * lib/sinhf.c: New file.
3806         * m4/sinhf.m4: New file.
3807         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3809         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3810         * modules/sinhf: New file.
3811         * tests/test-math-c++.cc: Check the declaration of sinhf.
3812         * doc/posix-functions/sinhf.texi: Mention the new module.
3814         sinh: Use a .m4 file.
3815         * m4/sinh.m4: New file.
3816         * modules/sinh (Files): Add it.
3817         (configure.ac): Just invoke gl_FUNC_SINH.
3819 2011-10-08  Bruno Haible  <bruno@clisp.org>
3821         Tests for module 'atan2f'.
3822         * modules/atan2f-tests: New file.
3823         * tests/test-atan2f.c: New file.
3825         New module 'atan2f'.
3826         * lib/math.in.h (atan2f): New declaration.
3827         * lib/atan2f.c: New file.
3828         * m4/atan2f.m4: New file.
3829         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3831         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3832         * modules/atan2f: New file.
3833         * tests/test-math-c++.cc: Check the declaration of atan2f.
3834         * doc/posix-functions/atan2f.texi: Mention the new module.
3836         atan2: Use a .m4 file.
3837         * m4/atan2.m4: New file.
3838         * modules/atan2 (Files): Add it.
3839         (configure.ac): Just invoke gl_FUNC_ATAN2.
3841 2011-10-08  Bruno Haible  <bruno@clisp.org>
3843         Tests for module 'atanf'.
3844         * modules/atanf-tests: New file.
3845         * tests/test-atanf.c: New file.
3847         New module 'atanf'.
3848         * lib/math.in.h (atanf): New declaration.
3849         * lib/atanf.c: New file.
3850         * m4/atanf.m4: New file.
3851         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3853         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3854         * modules/atanf: New file.
3855         * tests/test-math-c++.cc: Check the declaration of atanf.
3856         * doc/posix-functions/atanf.texi: Mention the new module.
3858         atan: Use a .m4 file.
3859         * m4/atan.m4: New file.
3860         * modules/atan (Files): Add it.
3861         (configure.ac): Just invoke gl_FUNC_ATAN.
3863 2011-10-08  Bruno Haible  <bruno@clisp.org>
3865         Tests for module 'acosf'.
3866         * modules/acosf-tests: New file.
3867         * tests/test-acosf.c: New file.
3869         New module 'acosf'.
3870         * lib/math.in.h (acosf): New declaration.
3871         * lib/acosf.c: New file.
3872         * m4/acosf.m4: New file.
3873         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3875         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3876         * modules/acosf: New file.
3877         * tests/test-math-c++.cc: Check the declaration of acosf.
3878         * doc/posix-functions/acosf.texi: Mention the new module.
3880         acos: Use a .m4 file.
3881         * m4/acos.m4: New file.
3882         * modules/acos (Files): Add it.
3883         (configure.ac): Just invoke gl_FUNC_ACOS.
3885 2011-10-08  Bruno Haible  <bruno@clisp.org>
3887         Tests for module 'asinf'.
3888         * modules/asinf-tests: New file.
3889         * tests/test-asinf.c: New file.
3891         New module 'asinf'.
3892         * lib/math.in.h (asinf): New declaration.
3893         * lib/asinf.c: New file.
3894         * m4/asinf.m4: New file.
3895         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3897         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3898         * modules/asinf: New file.
3899         * tests/test-math-c++.cc: Check the declaration of asinf.
3900         * doc/posix-functions/asinf.texi: Mention the new module.
3902         asin: Use a .m4 file.
3903         * m4/asin.m4: New file.
3904         * modules/asin (Files): Add it.
3905         (configure.ac): Just invoke gl_FUNC_ASIN.
3907 2011-10-08  Bruno Haible  <bruno@clisp.org>
3909         Tests for module 'tanf'.
3910         * modules/tanf-tests: New file.
3911         * tests/test-tanf.c: New file.
3913         New module 'tanf'.
3914         * lib/math.in.h (tanf): New declaration.
3915         * lib/tanf.c: New file.
3916         * m4/tanf.m4: New file.
3917         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3919         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3920         * modules/tanf: New file.
3921         * tests/test-math-c++.cc: Check the declaration of tanf.
3922         * doc/posix-functions/tanf.texi: Mention the new module.
3924         tan: Use a .m4 file.
3925         * m4/tan.m4: New file.
3926         * modules/tan (Files): Add it.
3927         (configure.ac): Just invoke gl_FUNC_TAN.
3929 2011-10-08  Bruno Haible  <bruno@clisp.org>
3931         Tests for module 'cosf'.
3932         * modules/cosf-tests: New file.
3933         * tests/test-cosf.c: New file.
3935         New module 'cosf'.
3936         * lib/math.in.h (cosf): New declaration.
3937         * lib/cosf.c: New file.
3938         * m4/cosf.m4: New file.
3939         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3941         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3942         * modules/cosf: New file.
3943         * tests/test-math-c++.cc: Check the declaration of cosf.
3944         * doc/posix-functions/cosf.texi: Mention the new module.
3946         cos: Use a .m4 file.
3947         * m4/cos.m4: New file.
3948         * modules/cos (Files): Add it.
3949         (configure.ac): Just invoke gl_FUNC_COS.
3951 2011-10-08  Bruno Haible  <bruno@clisp.org>
3953         Tests for module 'sinf'.
3954         * modules/sinf-tests: New file.
3955         * tests/test-sinf.c: New file.
3957         New module 'sinf'.
3958         * lib/math.in.h (sinf): New declaration.
3959         * lib/sinf.c: New file.
3960         * m4/sinf.m4: New file.
3961         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3963         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3964         * modules/sinf: New file.
3965         * tests/test-math-c++.cc: Check the declaration of sinf.
3966         * doc/posix-functions/sinf.texi: Mention the new module.
3968         sin: Use a .m4 file.
3969         * m4/sin.m4: New file.
3970         * modules/sin (Files): Add it.
3971         (configure.ac): Just invoke gl_FUNC_SIN.
3973 2011-10-08  Bruno Haible  <bruno@clisp.org>
3975         Tests for module 'powf'.
3976         * modules/powf-tests: New file.
3977         * tests/test-powf.c: New file.
3979         New module 'powf'.
3980         * lib/math.in.h (powf): New declaration.
3981         * lib/powf.c: New file.
3982         * m4/powf.m4: New file.
3983         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3985         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3986         * modules/powf: New file.
3987         * tests/test-math-c++.cc: Check the declaration of powf.
3988         * doc/posix-functions/powf.texi: Mention the new module.
3990         pow: Use a .m4 file.
3991         * m4/pow.m4: New file.
3992         * modules/pow (Files): Add it.
3993         (configure.ac): Just invoke gl_FUNC_POW.
3995 2011-10-08  Bruno Haible  <bruno@clisp.org>
3997         Tests for module 'log10f'.
3998         * modules/log10f-tests: New file.
3999         * tests/test-log10f.c: New file.
4001         New module 'log10f'.
4002         * lib/math.in.h (log10f): New declaration.
4003         * lib/log10f.c: New file.
4004         * m4/log10f.m4: New file.
4005         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4007         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4008         * modules/log10f: New file.
4009         * tests/test-math-c++.cc: Check the declaration of log10f.
4010         * doc/posix-functions/log10f.texi: Mention the new module.
4012         log10: Use a .m4 file.
4013         * m4/log10.m4: New file.
4014         * modules/log10 (Files): Add it.
4015         (configure.ac): Just invoke gl_FUNC_LOG10.
4017 2011-10-08  Bruno Haible  <bruno@clisp.org>
4019         Tests for module 'logf'.
4020         * modules/logf-tests: New file.
4021         * tests/test-logf.c: New file.
4023         New module 'logf'.
4024         * lib/math.in.h (logf): New declaration.
4025         * lib/logf.c: New file.
4026         * m4/logf.m4: New file.
4027         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4029         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4030         * modules/logf: New file.
4031         * tests/test-math-c++.cc: Check the declaration of logf.
4032         * doc/posix-functions/logf.texi: Mention the new module.
4034         log: Use a .m4 file.
4035         * m4/log.m4: New file.
4036         * modules/log (Files): Add it.
4037         (configure.ac): Just invoke gl_FUNC_LOG.
4039 2011-10-08  Bruno Haible  <bruno@clisp.org>
4041         Tests for module 'expf'.
4042         * modules/expf-tests: New file.
4043         * tests/test-expf.c: New file.
4045         New module 'expf'.
4046         * lib/math.in.h (expf): New declaration.
4047         * lib/expf.c: New file.
4048         * m4/expf.m4: New file.
4049         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4051         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4052         * modules/expf: New file.
4053         * tests/test-math-c++.cc: Check the declaration of expf.
4054         * doc/posix-functions/expf.texi: Mention the new module.
4056         exp: Use a .m4 file.
4057         * m4/exp.m4: New file.
4058         * modules/exp (Files): Add it.
4059         (configure.ac): Just invoke gl_FUNC_EXP.
4061 2011-10-08  Bruno Haible  <bruno@clisp.org>
4063         Tests for module 'sqrtf'.
4064         * modules/sqrtf-tests: New file.
4065         * tests/test-sqrtf.c: New file.
4067         New module 'sqrtf'.
4068         * lib/math.in.h (sqrtf): New declaration.
4069         * lib/sqrtf.c: New file.
4070         * m4/sqrtf.m4: New file.
4071         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4073         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4074         * modules/sqrtf: New file.
4075         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4076         * doc/posix-functions/sqrtf.texi: Mention the new module.
4078 2011-10-08  Bruno Haible  <bruno@clisp.org>
4080         Tests: Avoid link failures w.r.t. libintl.
4081         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4082         $(LIBINTL).
4083         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4084         $(LIBINTL).
4085         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4086         against $(LIBINTL).
4087         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4088         $(LIBINTL).
4089         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4090         $(LIBINTL).
4091         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4093 2011-10-08  Bruno Haible  <bruno@clisp.org>
4095         pow tests: Defeat compiler optimizations.
4096         * tests/test-pow.c (main): Assign arguments to x and y before use.
4098 2011-10-08  Bruno Haible  <bruno@clisp.org>
4100         gnulib-tool: Improve last commit.
4101         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4102         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4103         ignore dependencies that are not among the modules list.
4105 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4107         gnulib-tool: don't follow dependencies to avoided modules
4108         This fixes a bug that is related to the previous one.
4109         * gnulib-tool (func_modules_transitive_closure)
4110         (func_emit_autoconf_snippets):
4111         Check whether a dependency is acceptable before using it.
4112         (--extract-dependencies): Report an error if --avoid is also used,
4113         since this combination of options is not yet supported.
4115         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4116         Problem reported by Peter Dyballa in
4117         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4118         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4119         when echoing "$condition".
4121 2011-10-07  Bruno Haible  <bruno@clisp.org>
4123         Fix documentation about math functions on MacOS X.
4124         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4125         MacOS X 10.5.
4126         * doc/posix-functions/fdim.texi: Likewise.
4127         * doc/posix-functions/feclearexcept.texi: Likewise.
4128         * doc/posix-functions/fegetenv.texi: Likewise.
4129         * doc/posix-functions/fegetround.texi: Likewise.
4130         * doc/posix-functions/feholdexcept.texi: Likewise.
4131         * doc/posix-functions/feraiseexcept.texi: Likewise.
4132         * doc/posix-functions/fesetenv.texi: Likewise.
4133         * doc/posix-functions/fesetround.texi: Likewise.
4134         * doc/posix-functions/fetestexcept.texi: Likewise.
4135         * doc/posix-functions/feupdateenv.texi: Likewise.
4136         * doc/posix-functions/fmax.texi: Likewise.
4137         * doc/posix-functions/fmin.texi: Likewise.
4138         * doc/posix-functions/log2.texi: Likewise.
4139         * doc/posix-functions/modff.texi: Likewise.
4140         * doc/posix-functions/nan.texi: Likewise.
4141         * doc/posix-functions/nanf.texi: Likewise.
4142         * doc/posix-functions/nextafterf.texi: Likewise.
4143         * doc/posix-functions/remquo.texi: Likewise.
4145 2011-10-07  Bruno Haible  <bruno@clisp.org>
4147         modff: Drop assumption about library that defines modff.
4148         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4149         AC_CHECK_FUNCS.
4150         * modules/modff (Files): Add m4/mathfunc.m4.
4152 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4154         raise tests: Avoid a GCC warning.
4155         * tests/test-raise.c (handler): Use _Noreturn.
4157 2011-10-07  Bruno Haible  <bruno@clisp.org>
4159         Tests for module 'ldexpf'.
4160         * modules/ldexpf-tests: New file.
4161         * tests/test-ldexpf.c: New file.
4163         New module 'ldexpf'.
4164         * lib/math.in.h (ldexpf): New declaration.
4165         * lib/ldexpf.c: New file.
4166         * m4/ldexpf.m4: New file.
4167         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4169         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4170         * modules/ldexpf: New file.
4171         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4172         * doc/posix-functions/ldexpf.texi: Mention the new module.
4174 2011-10-06  Bruno Haible  <bruno@clisp.org>
4176         frexpf: Work around problems on IRIX and mingw.
4177         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4179         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4180         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4181         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4182         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4183         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4185 2011-10-06  Bruno Haible  <bruno@clisp.org>
4187         fabsf: Drop assumption about library that defines fabsf.
4188         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4189         AC_CHECK_FUNCS.
4190         * modules/fabsf (Files): Add m4/mathfunc.m4.
4192 2011-10-06  Bruno Haible  <bruno@clisp.org>
4194         frexpf: Drop assumption about library that defines frexpf.
4195         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4196         'int *', 'float *', 'long double *', 'float', 'long double'.
4197         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4198         AC_CHECK_FUNCS.
4199         * modules/frexpf (Files): Add m4/mathfunc.m4.
4201         Tests for module 'frexpf'.
4202         * modules/frexpf-tests: New file.
4203         * tests/test-frexpf.c: New file.
4205         New module 'frexpf'.
4206         * lib/math.in.h (frexpf): New declaration.
4207         * lib/frexpf.c: New file.
4208         * m4/frexpf.m4: New file.
4209         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4211         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4212         * modules/frexpf: New file.
4213         * tests/test-math-c++.cc: Check the declaration of frexpf.
4214         * doc/posix-functions/frexpf.texi: Mention the new module.
4216 2011-10-06  Bruno Haible  <bruno@clisp.org>
4218         math: Sort function declarations of math.in.h.
4219         * lib/math.in.h (frexp, logb): Move declarations.
4221 2011-10-05  Bruno Haible  <bruno@clisp.org>
4223         Tests for module 'modff'.
4224         * modules/modff-tests: New file.
4225         * tests/test-modff.c: New file.
4227         New module 'modff'.
4228         * lib/math.in.h (modff): New declaration.
4229         * lib/modff.c: New file.
4230         * m4/modff.m4: New file.
4231         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4233         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4234         * modules/modff: New file.
4235         * tests/test-math-c++.cc: Check the declaration of modff.
4236         * doc/posix-functions/modff.texi: Mention the new module.
4238         modf tests: Make test sharper.
4239         * tests/test-modf.c (main): Strengthen upper bound.
4241         modf: Use a .m4 file.
4242         * m4/modf.m4: New file.
4243         * modules/modf (Files): Add it.
4244         (configure.ac): Just invoke gl_FUNC_MODF.
4246 2011-10-05  Bruno Haible  <bruno@clisp.org>
4248         Tests for module 'fmodf'.
4249         * modules/fmodf-tests: New file.
4250         * tests/test-fmodf.c: New file.
4252         New module 'fmodf'.
4253         * lib/math.in.h (fmodf): New declaration.
4254         * lib/fmodf.c: New file.
4255         * m4/fmodf.m4: New file.
4256         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4258         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4259         * modules/fmodf: New file.
4260         * tests/test-math-c++.cc: Check the declaration of fmodf.
4261         * doc/posix-functions/fmodf.texi: Mention the new module.
4263         fmod: Use a .m4 file.
4264         * m4/fmod.m4: New file.
4265         * modules/fmod (Files): Add it.
4266         (configure.ac): Just invoke gl_FUNC_FMOD.
4268 2011-10-05  Bruno Haible  <bruno@clisp.org>
4270         Tests for module 'fabsf'.
4271         * modules/fabsf-tests: New file.
4272         * tests/test-fabsf.c: New file.
4274         New module 'fabsf'.
4275         * lib/math.in.h (fabsf): New declaration.
4276         * lib/fabsf.c: New file.
4277         * m4/fabsf.m4: New file.
4278         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4280         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4281         * modules/fabsf: New file.
4282         * tests/test-math-c++.cc: Check the declaration of fabsf.
4283         * doc/posix-functions/fabsf.texi: Mention the new module.
4285         fabs: Use a .m4 file.
4286         * m4/fabs.m4: New file.
4287         * modules/fabs (Files): Add it.
4288         (configure.ac): Just invoke gl_FUNC_FABS.
4290 2011-10-05  Jim Meyering  <meyering@redhat.com>
4292         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4293         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4294         ls -lL regression introduced in coreutils-8.12, it does so at the
4295         cost of an additional stat call in the common case.  Besides, now
4296         that the kernel change that prompted commit 95f7c57f has been reverted
4297         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4298         we have no use for commit 95f7c57f, "file-has-acl: use
4299         acl_extended_file_nofollow if available".
4301 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4303         file-has-acl: revert unintended change in behavior of ls -L
4304         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4305         derived from...
4306         (file_has_acl): ...code here.  Call it.
4307         This problem was introduced with 2011-07-22 commit 95f7c57f,
4308         "file-has-acl: use acl_extended_file_nofollow if available".
4309         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4311 2011-10-03  Bruno Haible  <bruno@clisp.org>
4313         poll: Avoid link errors on MSVC.
4314         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4315         * modules/poll (Depends-on): Add sockets.
4316         (Link): New section.
4317         * NEWS: Mention the change.
4318         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4319         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4320         $(LIB_POLL) instead of $(LIBSOCKET).
4322 2011-10-03  Bruno Haible  <bruno@clisp.org>
4324         sys_select tests: Fix link error on MSVC 9.
4325         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4326         with $(LIB_SELECT) instead of $(LIBSOCKET).
4328 2011-10-03  Bruno Haible  <bruno@clisp.org>
4330         sys_select: Fix compilation error on mingw.
4331         * lib/sys_select.in.h: On native Windows, include <io.h>.
4333 2011-10-03  Bruno Haible  <bruno@clisp.org>
4335         wmemset: Support for MSVC.
4336         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4337         whether wmemset() exists.
4339 2011-10-03  Bruno Haible  <bruno@clisp.org>
4341         wmemmove: Support for MSVC.
4342         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4343         whether wmemmove() exists.
4345 2011-10-03  Bruno Haible  <bruno@clisp.org>
4347         wmemcpy: Support for MSVC.
4348         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4349         whether wmemcpy() exists.
4351 2011-10-03  Bruno Haible  <bruno@clisp.org>
4353         wmemcmp: Support for MSVC.
4354         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4355         whether wmemcmp() exists.
4357 2011-10-03  Bruno Haible  <bruno@clisp.org>
4359         wmemchr: Support for MSVC.
4360         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4361         whether wmemchr() exists.
4363 2011-10-03  Bruno Haible  <bruno@clisp.org>
4365         glthread/*, strsignal: Support for MSVC.
4366         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4367         including <winsock.h> on MSVC 9.
4368         * lib/glthread/lock.h: Likewise.
4369         * lib/glthread/thread.h: Likewise.
4370         * lib/glthread/tls.h: Likewise.
4371         * lib/glthread/yield.h: Likewise.
4372         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4373         if HAVE_UNISTD_H is false.
4374         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4376 2011-10-03  Bruno Haible  <bruno@clisp.org>
4378         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4379         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4380         Set to 100000.
4382 2011-10-03  Bruno Haible  <bruno@clisp.org>
4384         acl: Fix specification.
4385         * lib/file-has-acl.c (file_has_acl): Fix specification.
4387 2011-10-03  Bruno Haible  <bruno@clisp.org>
4389         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4390         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4391         (compute_curr_prefix, shared_library_fullname,
4392         find_shared_library_fullname, get_shared_library_fullname, relocate):
4393         Use it together with PIC && INSTALLDIR.
4394         Reported by <jojelino@gmail.com>
4395         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4397 2011-10-01  Jim Meyering  <meyering@redhat.com>
4399         maint.mk: adjust a release-related rule not to require use of gzip
4400         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4401         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4402         projects that build only .tar.xz files.  Also fix an erroneous test.
4404         test-linkat: don't leave behind a temporary file
4405         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4406         Otherwise, coreutils' "make distcheck" would fail with this:
4407           Only in /c/cu/tests/torture/coreutils/test/\
4408             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4409           make[2]: *** [my-distcheck] Error 1
4411         float, math: add omitted file
4412         * lib/itold.c: Add file, required for yesterday's float change.
4414 2011-10-01  Bruno Haible  <bruno@clisp.org>
4416         isinf: Fix for OpenBSD/x86.
4417         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4418         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4419         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4421 2011-10-01  Bruno Haible  <bruno@clisp.org>
4423         isfinite: Fix syntax error in configure test.
4424         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4426         isfinite: Fix typo.
4427         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4428         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4430 2011-10-01  Bruno Haible  <bruno@clisp.org>
4432         nonblocking tests: Fix test failure on Linux/IA-64.
4433         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4434         Set to 270000.
4436 2011-10-01  Bruno Haible  <bruno@clisp.org>
4438         mkfifoat tests: Fix a test failure on mingw.
4439         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4440         with error ENOSYS.
4442 2011-09-30  Bruno Haible  <bruno@clisp.org>
4444         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4445         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4446         'long double'. Set REPLACE_ITOLD.
4447         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4448         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4449         * lib/itold.c: New file.
4450         * modules/float (Files): Add lib/itold.c.
4451         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4452         (Makefile.am): Substitute REPLACE_ITOLD.
4453         * modules/math (Depends-on): Add float.
4454         (Makefile.am): Substitute REPLACE_ITOLD.
4455         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4456         * doc/posix-headers/math.texi: Likewise.
4457         * doc/posix-functions/logl.texi: Likewise.
4459 2011-09-30  Bruno Haible  <bruno@clisp.org>
4461         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4462         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4463         Set to 140000.
4465 2011-09-30  Bruno Haible  <bruno@clisp.org>
4467         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4468         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4469         invocation, say "right after AC_PROG_CC_STDC", not "right after
4470         AC_PROG_CC".
4471         Reported by Gary V. Vaughan <gary@gnu.org>.
4473 2011-09-30  Bruno Haible  <bruno@clisp.org>
4475         Centralize C99 requirement.
4476         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4477         * modules/stdarg (configure.ac-early): Invoke it instead of
4478         AC_PROG_CC_STDC.
4479         Reported by Gary V. Vaughan and Paul Eggert.
4481 2011-09-29  Bruno Haible  <bruno@clisp.org>
4483         float: Fix LDBL_MAX value on Linux/PowerPC.
4484         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4485         on Linux/PowerPC.
4486         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4487         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4488         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4489         platform.
4490         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4492 2011-09-29  Bruno Haible  <bruno@clisp.org>
4494         doc: Improve doc about gl_EARLY.
4495         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4496         AC_PROG_CC_STDC invocation.
4497         Reported by Gary V. Vaughan <gary@gnu.org>.
4499 2011-09-28  Bruno Haible  <bruno@clisp.org>
4501         fgetc, fputc, fread, fwrite tests: Fix link error.
4502         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4503         on non-MSVC platforms.
4504         * tests/test-fputc.c (main): Likewise.
4505         * tests/test-fread.c (main): Likewise.
4506         * tests/test-fwrite.c (main): Likewise.
4507         Reported by Jim Meyering.
4509 2011-09-27  Bruno Haible  <bruno@clisp.org>
4511         fputc, fwrite tests: Avoid test failure on MSVC.
4512         * tests/test-fgetc.c: Include msvc-inval.h.
4513         (main): Invoke gl_msvc_inval_ensure_handler.
4514         * tests/test-fputc.c: Include msvc-inval.h.
4515         (main): Invoke gl_msvc_inval_ensure_handler.
4516         * tests/test-fread.c: Include msvc-inval.h.
4517         (main): Invoke gl_msvc_inval_ensure_handler.
4518         * tests/test-fwrite.c: Include msvc-inval.h.
4519         (main): Invoke gl_msvc_inval_ensure_handler.
4520         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4521         * modules/fputc-tests (Depends-on): Likewise.
4522         * modules/fread-tests (Depends-on): Likewise.
4523         * modules/fwrite-tests (Depends-on): Likewise.
4525 2011-09-27  Bruno Haible  <bruno@clisp.org>
4527         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4528         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4529         (raise): Remove older, duplicated declaration.
4530         (_gl_raise_SIGPIPE): New declaration.
4531         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4532         (rpl_raise): Remove function.
4533         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4534         a gnulib-defined SIGPIPE here.
4535         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4536         'sigprocmask' has detected missing signal-blocking and the module
4537         'sigpipe' is enabled.
4538         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4540 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4542         base64-tests: avoid memory leak
4543         * tests/test-base64.c (main): Plug memory leak.
4545         base32: new module
4546         * modules/base32: New module.
4547         * lib/base32.c: New file.
4548         * lib/base32.h: Likewise.
4549         * m4/base32.m4: Likewise.
4550         * modules/base32-tests: New test.
4551         * tests/test-base32.c: Likewise.
4552         * MODULES.html.sh (Misc): Mention it.
4554 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4556         gnulib: use more-standard license notice wording
4557         * gnulib-tool (func_emit_copyright_notice): When emitting a
4558         license notice into a file, use the standard wording as suggested
4559         by the current information for GNU maintainers, except say "file"
4560         rather than "program".  The new wording gives a license version
4561         number, which addresses an issue raised by Glenn Morris in
4562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4563         * m4/onceonly.m4: Use that same wording here, too.
4565         dup2: minor simplification
4566         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4567         as lib/dup2.c no longer uses 'inline'.
4569 2011-09-25  Bruno Haible  <bruno@clisp.org>
4571         strings: Fix compilation error on MSVC.
4572         * lib/strings.in.h: Include <stddef.h> for size_t.
4574 2011-09-25  Bruno Haible  <bruno@clisp.org>
4576         fflush et al.: Document limitation on MSVC.
4577         * doc/posix-functions/fflush.texi: Document possible crash in handling
4578         mode other than DEFAULT_HANDLING.
4579         * doc/posix-functions/fgetc.texi: Likewise.
4580         * doc/posix-functions/fputc.texi: Likewise.
4581         * doc/posix-functions/fread.texi: Likewise.
4582         * doc/posix-functions/fwrite.texi: Likewise.
4584 2011-09-25  Bruno Haible  <bruno@clisp.org>
4586         msvc-inval: Allow three invalid parameter handling modes.
4587         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4588         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4589         macros.
4590         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4591         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4592         SANE_LIBRARY_HANDLING as a no-op.
4593         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4594         <stdlib.h>.
4595         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4597 2011-09-25  Bruno Haible  <bruno@clisp.org>
4599         msvc-inval: Make handler multithread-safe.
4600         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4601         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4602         declarations.
4603         (gl_msvc_inval_current): New declaration.
4604         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4605         Operate on the structure returned by gl_msvc_inval_current().
4606         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4607         Remove varaiables.
4608         (tls_index, tls_initialized): New variables.
4609         (not_per_thread): New variable.
4610         (gl_msvc_inval_current): New function.
4611         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4612         returned by gl_msvc_inval_current().
4614 2011-09-25  Bruno Haible  <bruno@clisp.org>
4616         msvc-inval: Install handler globally.
4617         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4618         !_MSC_VER.
4619         (gl_msvc_invalid_parameter_handler): Remove declaration.
4620         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4621         declarations.
4622         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4623         Install the handler globally, don't uninstall it.
4624         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4625         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4626         currently valid, call RaiseException instead.
4627         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4628         for !_MSC_VER.
4630 2011-09-25  Bruno Haible  <bruno@clisp.org>
4632         strerror_r-posix: Fix for MSVC 9.
4633         * lib/strerror_r.c (local_snprintf): New function.
4634         (snprintf): Define to local_snprintf, not to _snprintf.
4636 2011-09-25  Bruno Haible  <bruno@clisp.org>
4638         ftruncate: Support for MSVC 9.
4639         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4640         (chsize_nothrow): New function.
4641         (chsize): Redefine as a macro.
4642         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4643         * modules/ftruncate (Depends-on): Add msvc-inval.
4645 2011-09-25  Bruno Haible  <bruno@clisp.org>
4647         New module 'fstat'.
4648         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4649         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4650         * lib/fchdir.c (rpl_fstat): Remove function.
4651         * m4/fstat.m4: New file.
4652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4653         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4654         declared.
4655         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4656         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4657         * modules/fstat: New file.
4658         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4659         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4660         is set.
4661         * doc/posix-functions/fstat.texi: Mention the new module and the
4662         problem on MSVC.
4663         * NEWS: Mention the change.
4664         * modules/acl (Depends-on): Add fstat.
4665         * modules/chdir-safer (Depends-on): Likewise.
4666         * modules/chown (Depends-on): Likewise.
4667         * modules/copy-file (Depends-on): Likewise.
4668         * modules/fchdir (Depends-on): Likewise.
4669         * modules/fdopendir (Depends-on): Likewise.
4670         * modules/fopen (Depends-on): Likewise.
4671         * modules/fts (Depends-on): Likewise.
4672         * modules/getcwd (Depends-on): Likewise.
4673         * modules/isapipe (Depends-on): Likewise.
4674         * modules/linkat (Depends-on): Likewise.
4675         * modules/lseek (Depends-on): Likewise.
4676         * modules/mkdir-p (Depends-on): Likewise.
4677         * modules/open (Depends-on): Likewise.
4678         * modules/openat (Depends-on): Likewise.
4679         * modules/read-file (Depends-on): Likewise.
4680         * modules/renameat (Depends-on): Likewise.
4681         * modules/utimens (Depends-on): Likewise.
4683 2011-09-25  Bruno Haible  <bruno@clisp.org>
4685         linkat: Fix compilation on MSVC 9.
4686         * lib/linkat.c: Don't include <stdint.h>.
4688 2011-09-25  Bruno Haible  <bruno@clisp.org>
4690         fclose: Support for MSVC 9.
4691         * lib/fclose.c: Include msvc-inval.h.
4692         (fclose_nothrow): New function.
4693         (rpl_fclose): Use it.
4694         * modules/fclose (Depends-on): Add msvc-inval.
4695         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4697 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4699         dup2: minor simplifications
4700         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4701         that it's a performance win.
4702         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4703         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4705 2011-09-24  Jim Meyering  <meyering@redhat.com>
4707         test-futimens: avoid a warning from gcc -Wshadow
4708         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4709         to avoid a shadowing warning.
4711 2011-09-24  Bruno Haible  <bruno@clisp.org>
4713         fdopen: Support for MSVC 9.
4714         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4715         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4716         * lib/fdopen.c: Include msvc-inval.h.
4717         (fdopen_nothrow): New function.
4718         (rpl_fdopen): Use it.
4719         * modules/fdopen (Depends-on): Add msvc-inval.
4720         * modules/fclose-tests (Depends-on): Add fdopen.
4721         * modules/fflush-tests (Depends-on): Likewise.
4722         * modules/fgetc-tests (Depends-on): Likewise.
4723         * modules/fputc-tests (Depends-on): Likewise.
4724         * modules/fread-tests (Depends-on): Likewise.
4725         * modules/freopen-tests (Depends-on): Likewise.
4726         * modules/fseeko-tests (Depends-on): Likewise.
4727         * modules/ftello-tests (Depends-on): Likewise.
4728         * modules/fwrite-tests  (Depends-on): Likewise.
4729         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4731 2011-09-24  Bruno Haible  <bruno@clisp.org>
4733         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4734         * modules/fgetc-tests (Depends-on): Add unistd.
4735         * modules/fputc-tests (Depends-on): Likewise.
4736         * modules/fread-tests (Depends-on): Likewise.
4737         * modules/fwrite-tests (Depends-on): Likewise.
4739 2011-09-24  Bruno Haible  <bruno@clisp.org>
4741         dup: Simplify autoconf test.
4742         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4743         on gl_MSVC_INVAL's result.
4745 2011-09-24  Bruno Haible  <bruno@clisp.org>
4747         Tests for function fwrite().
4748         * modules/fwrite-tests: New file.
4749         * tests/test-fwrite.c: New file.
4750         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4752         Tests for function fread().
4753         * modules/fread-tests: New file.
4754         * tests/test-fread.c: New file.
4755         * modules/stdio-tests (Depends-on): Add fread-tests.
4757         Activate fputc tests.
4758         * modules/stdio-tests (Depends-on): Add fputc-tests.
4760         Enhance fgetc, fputc tests.
4761         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4762         * tests/test-fputc.c (main): Likewise.
4764 2011-09-24  Bruno Haible  <bruno@clisp.org>
4766         write: Support for MSVC 9.
4767         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4768         is not 1.
4769         * lib/write.c (write_nothrow): New function.
4770         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4771         not 1. Use write_nothrow.
4772         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4773         invalid parameter handler.
4774         (gl_PREREQ_WRITE): New macro.
4775         * modules/write (Depends-on): Add msvc-inval.
4776         (configure.ac): Invoke gl_PREREQ_WRITE.
4777         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4779 2011-09-24  Bruno Haible  <bruno@clisp.org>
4781         read: Fix last commit.
4782         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4784 2011-09-24  Bruno Haible  <bruno@clisp.org>
4786         dup2: Fix last commit.
4787         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4788         (rpl_dup2): Disable fcntl workaround on native Windows.
4790         sigprocmask: Make code safer.
4791         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4792         section that changes macro definitions for this compilation unit.
4794 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4796         dup2: clarify by coalescing Windows-specific material
4797         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4798         "msvc-nothrow.h"' to the Windows-specific section, so that the
4799         Emacs source need not contain these include files.
4800         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4801         Windows-specific fixes into this function rather than just the
4802         nothrow fix, as this shortens and clarifies the code.  Always
4803         define as a function, as that's a bit cleaner than having it be
4804         sometimes a function and sometimes a macro.
4805         (rpl_dup2): Move the Windows-specific stuff out of here and into
4806         ms_windows_dup2.  Don't protect the Haiku-related fix with
4807         "#if !defined __linux__", as the same code also works around
4808         a Linux kernel bug, and it doesn't add any system calls on any
4809         platform.  Add comment about FreeBSD 6.1.
4811         sigprocmask: move #include directive
4812         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4813         Windows-specific section, so that the Emacs source need not
4814         contain msvc-inval.h.
4816 2011-09-23  Bruno Haible  <bruno@clisp.org>
4818         read: Support for MSVC 9.
4819         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4820         is not 1.
4821         * lib/read.c (read_nothrow): New function.
4822         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4823         read_nothrow.
4824         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4825         invalid parameter handler.
4826         (gl_PREREQ_READ): New macro.
4827         * modules/read (Depends-on): Add msvc-inval.
4828         (configure.ac): Invoke gl_PREREQ_READ.
4829         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4831 2011-09-23  Bruno Haible  <bruno@clisp.org>
4833         close: Support for MSVC 9.
4834         * lib/close.c: Include <errno.h>, msvc-inval.h.
4835         (close_nothrow): New function.
4836         (rpl_close): Use it.
4837         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4838         invalid parameter handler.
4839         * modules/close (Depends-on): Add msvc-inval.
4840         * modules/dup2-tests (Depends-on): Add close.
4841         * modules/dup3-tests (Depends-on): Likewise.
4842         * modules/fcntl-tests (Depends-on): Likewise.
4843         * modules/spawn-pipe-tests (Depends-on): Likewise.
4844         * modules/unistd-safer-tests (Depends-on): Likewise.
4845         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4847 2011-09-23  Bruno Haible  <bruno@clisp.org>
4849         New module 'dup'.
4850         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4851         Allow replacement.
4852         * lib/dup.c: New file.
4853         * lib/fchdir.c (rpl_dup): Remove function.
4854         * m4/dup.m4: New file.
4855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4856         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4857         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4858         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4859         * modules/dup: New file.
4860         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4861         'dup' module is in use.
4862         * modules/fdopendir (Depends-on): Add dup.
4863         * modules/fdutimensat-tests (Depends-on): Likewise.
4864         * modules/fts (Depends-on): Likewise.
4865         * modules/futimens-tests (Depends-on): Likewise.
4866         * modules/posix_spawnp-tests (Depends-on): Likewise.
4867         * modules/unistd-safer-tests (Depends-on): Likewise.
4868         * modules/utimens-tests (Depends-on): Likewise.
4869         * doc/posix-functions/dup.texi: Mention the new module and the problem
4870         on MSVC.
4872 2011-09-23  Bruno Haible  <bruno@clisp.org>
4874         getdtablesize: Support for MSVC 9.
4875         * lib/getdtablesize.c: Include msvc-inval.h.
4876         (_setmaxstdio_nothrow): New function.
4877         (_setmaxstdio): Redefine it.
4878         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4879         * modules/getdtablesize (Depends-on): Add msvc-inval.
4880         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4882 2011-09-23  Bruno Haible  <bruno@clisp.org>
4884         signal-h: Rename from signal.
4885         * modules/signal-h: Renamed from modules/signal.
4886         * modules/pthread_sigmask (Depends-on): Update.
4887         * modules/raise (Depends-on): Likewise.
4888         * modules/sigaction (Depends-on): Likewise.
4889         * modules/sigpipe (Depends-on): Likewise.
4890         * modules/sigprocmask (Depends-on): Likewise.
4891         * modules/sys_select (Depends-on): Likewise.
4892         * modules/signal-h-tests: Renamed from modules/signal-tests.
4893         (Files, Depends-on, Makefile.am): Update.
4894         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4895         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4896         (Files, Makefile.am): Update.
4897         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4898         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4899         * modules/signal: New placeholder file.
4900         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4901         * doc/posix-headers/signal.texi: Update.
4902         * NEWS: Mention the change.
4904 2011-09-23  Bruno Haible  <bruno@clisp.org>
4906         sigprocmask: Avoid crashes through signal() on MSVC 9.
4907         * lib/sigprocmask.c: Include msvc-inval.h.
4908         (signal_nothrow): New function.
4909         (signal): Redefine it.
4910         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4911         * modules/sigprocmask (Depends-on): Add msvc-inval.
4912         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4914 2011-09-23  Bruno Haible  <bruno@clisp.org>
4916         Tests for module 'raise'.
4917         * modules/raise-tests: New file.
4918         * tests/test-raise.c: New file.
4920         raise: Support for MSVC.
4921         * lib/signal.in.h (raise): New declaration.
4922         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4923         for native Windows platforms.
4924         * m4/raise.m4: New file.
4925         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4926         HAVE_RAISE, REPLACE_RAISE.
4927         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4928         REPLACE_RAISE.
4929         * modules/raise (Status, Notice): Remove fields.
4930         (Files): Add m4/raise.m4.
4931         (Depends-on): Add signal, msvc-inval.
4932         (configure.ac): Use the common idioms.
4933         (Maintainer): Add me.
4934         * tests/test-signal-c++.cc: Check the signature of raise.
4935         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4937 2011-09-23  Bruno Haible  <bruno@clisp.org>
4939         pipe2: Fix compilation on pre-C99 compilers.
4940         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4942 2011-09-23  Bruno Haible  <bruno@clisp.org>
4944         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4945         * lib/msvc-nothrow.h: New file.
4946         * lib/msvc-nothrow.c: New file.
4947         * m4/msvc-nothrow.m4: New file.
4948         * modules/msvc-nothrow: New file.
4949         * lib/dup2.c: Include msvc-nothrow.h.
4950         (rpl_dup2): No need to protect _get_osfhandle call here.
4951         * lib/accept4.c: Include msvc-nothrow.h.
4952         * lib/error.c: Likewise.
4953         * lib/fcntl.c: Likewise.
4954         * lib/lseek.c: Likewise.
4955         * lib/nonblocking.c: Likewise.
4956         * lib/poll.c: Likewise.
4957         * lib/read.c: Likewise.
4958         * lib/select.c: Likewise.
4959         * lib/sockets.h: Likewise.
4960         * lib/sockets.c: Likewise.
4961         * lib/stdio-read.c: Likewise.
4962         * lib/stdio-write.c: Likewise.
4963         * lib/write.c: Likewise.
4964         * lib/w32sock.h: Likewise.
4965         * lib/w32spawn.h: Likewise.
4966         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4967         * lib/fsync.c: Likewise.
4968         * lib/isapipe.c: Likewise.
4969         * modules/dup2 (Depends-on): Add msvc-nothrow.
4970         * modules/accept4 (Depends-on): Likewise.
4971         * modules/error (Depends-on): Likewise.
4972         * modules/fcntl (Depends-on): Likewise.
4973         * modules/lseek (Depends-on): Likewise.
4974         * modules/nonblocking (Depends-on): Likewise.
4975         * modules/poll (Depends-on): Likewise.
4976         * modules/read (Depends-on): Likewise.
4977         * modules/select (Depends-on): Likewise.
4978         * modules/sockets (Depends-on): Likewise.
4979         * modules/sigpipe (Depends-on): Likewise.
4980         * modules/write (Depends-on): Likewise.
4981         * modules/accept (Depends-on): Likewise.
4982         * modules/bind (Depends-on): Likewise.
4983         * modules/connect (Depends-on): Likewise.
4984         * modules/gethostname (Depends-on): Likewise.
4985         * modules/getpeername (Depends-on): Likewise.
4986         * modules/getsockname (Depends-on): Likewise.
4987         * modules/getsockopt (Depends-on): Likewise.
4988         * modules/ioctl (Depends-on): Likewise.
4989         * modules/listen (Depends-on): Likewise.
4990         * modules/recv (Depends-on): Likewise.
4991         * modules/recvfrom (Depends-on): Likewise.
4992         * modules/send (Depends-on): Likewise.
4993         * modules/sendto (Depends-on): Likewise.
4994         * modules/setsockopt (Depends-on): Likewise.
4995         * modules/shutdown (Depends-on): Likewise.
4996         * modules/socket (Depends-on): Likewise.
4997         * modules/execute (Depends-on): Likewise.
4998         * modules/spawn-pipe (Depends-on): Likewise.
4999         * modules/flock (Depends-on): Likewise.
5000         * modules/fsync (Depends-on): Likewise.
5001         * modules/isapipe (Depends-on): Likewise.
5002         * tests/test-cloexec.c: Include msvc-nothrow.h.
5003         * tests/test-dup-safer.c: Likewise.
5004         * tests/test-dup2.c: Likewise.
5005         * tests/test-dup3.c: Likewise.
5006         * tests/test-fcntl.c: Likewise.
5007         * tests/test-pipe.c: Likewise.
5008         * tests/test-pipe2.c: Likewise.
5009         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5010         * modules/unistd-safer-tests (Depends-on): Likewise.
5011         * modules/dup2-tests (Depends-on): Likewise.
5012         * modules/dup3-tests (Depends-on): Likewise.
5013         * modules/fcntl-tests (Depends-on): Likewise.
5014         * modules/pipe-posix-tests (Depends-on): Likewise.
5015         * modules/pipe2-tests (Depends-on): Likewise.
5017 2011-09-23  Bruno Haible  <bruno@clisp.org>
5019         dup2: Make code more maintainable.
5020         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5021         (rpl_dup2): Use it.
5022         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5023         * modules/dup2 (configure.ac): Invoke it.
5024         Reported by Paul Eggert.
5026 2011-09-23  Bruno Haible  <bruno@clisp.org>
5028         msvc-inval: Fix compilation error.
5029         * lib/msvc-inval.h: Include <excpt.h>.
5031 2011-09-23  Bruno Haible  <bruno@clisp.org>
5033         mkdir: Tweak for MSVC 9.
5034         * lib/sys_stat.in.h: Update comments.
5035         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5037         Tests for module 'chdir'.
5038         * modules/chdir-tests: New file.
5039         * tests/test-chdir.c: New file.
5041         New module 'chdir'.
5042         * modules/chdir: New file.
5043         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5044         (chdir): New declaration.
5045         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5046         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5047         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5048         * tests/test-unistd-c++.cc: Check signature of chdir.
5049         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5050         * modules/chdir-long (Depends-on): Add chdir.
5051         * modules/fchdir (Depends-on): Likewise.
5052         * modules/rename (Depends-on): Likewise.
5053         * modules/savewd (Depends-on): Likewise.
5055         rmdir: Support for mingw, MSVC 9.
5056         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5057         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5059         getcwd: Tweak for MSVC 9.
5060         * lib/unistd.in.h: Update comments.
5061         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5063 2011-09-22  Bruno Haible  <bruno@clisp.org>
5065         strerror_r-posix: Avoid a link error on MSVC.
5066         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5067         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5069 2011-09-22  Bruno Haible  <bruno@clisp.org>
5071         select: Avoid link errors on MSVC.
5072         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5073         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5074         * modules/pselect (Link): Likewise.
5075         * NEWS: Mention the change.
5076         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5077         test-select-stdin against $(LIB_SELECT).
5078         * modules/pselect-tests (Makefile.am): Link test-pselect against
5079         $(LIB_SELECT).
5081 2011-09-22  Bruno Haible  <bruno@clisp.org>
5083         select: Avoid compilation error on MSVC.
5084         * lib/select.c: Don't include <stdbool.h>.
5086 2011-09-21  Bruno Haible  <bruno@clisp.org>
5088         Consolidate all uses of PATH_MAX in *.m4 files.
5089         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5090         macros.
5091         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5092         and gl_PATHMAX_SNIPPET.
5093         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5094         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5095         * modules/chdir-long (Files): Add m4/pathmax.m4.
5096         * modules/getcwd (Files): Likewise.
5098 2011-09-21  Bruno Haible  <bruno@clisp.org>
5100         ftruncate: Un-deprecate, concentrate on Win32 support.
5101         * modules/ftruncate (Status, Notice): Remove sections.
5102         (Depends-on): Add largefile.
5103         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5104         non-mingw platforms.
5105         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5106         include <io.h>.
5107         * modules/perror-tests (Depends-on): Add ftruncate.
5108         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5109         'ftruncate' module.
5111 2011-09-21  Bruno Haible  <bruno@clisp.org>
5113         Add dependencies to new dirent related modules.
5114         * modules/opendir (Depends-on): Add closedir.
5115         * modules/getcwd (Depends-on): Add opendir, closedir.
5116         * modules/dirent-safer-tests (Depends-on): Likewise.
5117         * modules/fdopendir-tests (Depends-on): Likewise.
5118         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5119         * modules/renameat-tests (Depends-on): Likewise.
5121 2011-09-21  Bruno Haible  <bruno@clisp.org>
5123         opendir: Avoid compilation error on mingw.
5124         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5125         * modules/opendir (Depends-on): Add unistd.
5127 2011-09-21  Bruno Haible  <bruno@clisp.org>
5129         ftruncate tests: Avoid a test failure on mingw.
5130         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5132 2011-09-21  Bruno Haible  <bruno@clisp.org>
5134         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5135         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5136         native Windows.
5138 2011-09-21  Bruno Haible  <bruno@clisp.org>
5140         New module 'fdopen'.
5141         * lib/stdio.in.h (fdopen): New declaration.
5142         * lib/fdopen.c: New file.
5143         * m4/fdopen.m4: New file.
5144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5145         REPLACE_FDOPEN.
5146         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5147         REPLACE_FDOPEN.
5148         * modules/fdopen: New file.
5149         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5150         * tests/test-stdio-c++.cc: Check signature of fdopen.
5151         * doc/posix-functions/fdopen.texi: Mention the new module.
5153 2011-09-21  Bruno Haible  <bruno@clisp.org>
5155         unlockpt tests: Avoid test failure on NetBSD 5.1.
5156         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5157         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5159 2011-09-21  Bruno Haible  <bruno@clisp.org>
5161         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5162         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5163         * tests/test-getlogin_r.c (main): Likewise.
5165 2011-09-20  Bruno Haible  <bruno@clisp.org>
5167         time tests: Don't require pid_t.
5168         * doc/posix-headers/time.texi: Revert last change.
5169         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5170         * tests/test-time.c: Comment out the check for pid_t.
5172 2011-09-20  Bruno Haible  <bruno@clisp.org>
5174         fsync tests: Avoid a test failure on mingw.
5175         * tests/test-fsync.c (main): Allow a failure with EIO.
5177 2011-09-20  Bruno Haible  <bruno@clisp.org>
5179         euidaccess: Update comments.
5180         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5182 2011-09-20  Bruno Haible  <bruno@clisp.org>
5184         Ensure EBADF returns for socket functions on mingw.
5185         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5186         descriptor is invalid.
5187         * lib/bind.c (rpl_bind): Likewise.
5188         * lib/connect.c (rpl_connect): Likewise.
5189         * lib/getpeername.c (rpl_getpeername): Likewise.
5190         * lib/getsockname.c (rpl_getsockname): Likewise.
5191         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5192         * lib/listen.c (rpl_listen): Likewise.
5193         * lib/recv.c (rpl_recv): Likewise.
5194         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5195         * lib/send.c (rpl_send): Likewise.
5196         * lib/sendto.c (rpl_sendto): Likewise.
5197         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5198         * lib/shutdown.c (rpl_shutdown): Likewise.
5200 2011-09-20  Bruno Haible  <bruno@clisp.org>
5202         select tests: EBADF tests.
5203         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5204         test_bad_fd): New functions.
5205         (test_function): Invoke also test_bad_fd.
5207 2011-09-20  Bruno Haible  <bruno@clisp.org>
5209         Tests for module 'posix_spawn_file_actions_addopen.
5210         * modules/posix_spawn_file_actions_addopen-tests: New file.
5211         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5213         Tests for module 'posix_spawn_file_actions_adddup2'.
5214         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5215         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5217         Tests for module 'posix_spawn_file_actions_addclose'.
5218         * modules/posix_spawn_file_actions_addclose-tests: New file.
5219         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5221 2011-09-20  Bruno Haible  <bruno@clisp.org>
5223         Tests for module 'unlockpt'.
5224         * modules/unlockpt-tests: New file.
5225         * tests/test-unlockpt.c: New file.
5226         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5228         Tests for module 'grantpt'.
5229         * modules/grantpt-tests: New file.
5230         * tests/test-grantpt.c: New file.
5231         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5233 2011-09-20  Bruno Haible  <bruno@clisp.org>
5235         freopen tests: EBADF tests.
5236         * tests/test-freopen.c: Include errno.h, unistd.h.
5237         (main): Add tests for EBADF, commented out for the moment.
5239         fclose tests: EBADF tests.
5240         * tests/test-fclose.c (main): Add tests for EBADF.
5242         fflush tests: EBADF tests.
5243         * tests/test-fflush.c: Include errno.h, macros.h.
5244         (main): Add tests for EBADF.
5246         ftello tests: EBADF tests.
5247         * tests/test-ftello4.sh: New file.
5248         * tests/test-ftello4.c: New file.
5249         * modules/ftello-tests (Files): Add them.
5250         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5252         fseeko tests: EBADF tests.
5253         * tests/test-fseeko4.sh: New file.
5254         * tests/test-fseeko4.c: New file.
5255         * modules/fseeko-tests (Files): Add them.
5256         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5258         Tests for function fputc().
5259         * modules/fputc-tests: New file.
5260         * tests/test-fputc.c: New file.
5261         * modules/stdio-tests (Depends-on): Add fputc-tests.
5263         Tests for function fgetc().
5264         * modules/fgetc-tests: New file.
5265         * tests/test-fgetc.c: New file.
5266         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5268         Tests for function fdopen().
5269         * modules/fdopen-tests: New file.
5270         * tests/test-fdopen.c: New file.
5271         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5273         Tests for module 'vdprintf'.
5274         * modules/vdprintf-tests: New file.
5275         * tests/test-vdprintf.c: New file.
5277         Tests for module 'dprintf'.
5278         * modules/dprintf-tests: New file.
5279         * tests/test-dprintf.c: New file.
5281 2011-09-20  Bruno Haible  <bruno@clisp.org>
5283         Tests for module 'ioctl'.
5284         * modules/ioctl-tests: New file.
5285         * tests/test-ioctl.c: New file.
5287 2011-09-20  Bruno Haible  <bruno@clisp.org>
5289         fcntl tests: EBADF tests.
5290         * tests/test-fcntl.c (main): Add more tests for EBADF.
5292 2011-09-20  Bruno Haible  <bruno@clisp.org>
5294         utimensat tests: EBADF tests.
5295         * tests/test-utimensat.c (main): Add tests for EBADF.
5297         renameat tests: EBADF tests.
5298         * tests/test-renameat.c (main): Add tests for EBADF.
5300         mkfifoat tests: EBADF tests.
5301         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5303         readlinkat tests: EBADF tests.
5304         * tests/test-readlinkat.c (main): Add tests for EBADF.
5306         symlinkat tests: EBADF tests.
5307         * tests/test-symlinkat.c (main): Add tests for EBADF.
5309         linkat tests: EBADF tests.
5310         * tests/test-linkat.c (main): Add tests for EBADF.
5312         Tests for module 'faccessat'.
5313         * modules/faccessat-tests: New file.
5314         * tests/test-faccessat.c: New file.
5316         fdopendir tests: EBADF tests.
5317         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5319         openat tests: EBADF tests.
5320         * tests/test-fchownat.c (main): Add tests for EBADF.
5321         * tests/test-fstatat.c (main): Likewise.
5322         * tests/test-mkdirat.c (main): Likewise.
5323         * tests/test-openat.c (main): Likewise.
5324         * tests/test-unlinkat.c (main): Likewise.
5325         * tests/test-fchmodat.c: New file.
5326         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5327         (Makefile.am): Also run 'test-fchmodat'.
5329 2011-09-20  Bruno Haible  <bruno@clisp.org>
5331         utimens, futimens, fdutimensat tests: EBADF tests.
5332         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5334         Tests for function fstat().
5335         * modules/fstat-tests: New file.
5336         * tests/test-fstat.c: New file.
5337         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5339 2011-09-20  Bruno Haible  <bruno@clisp.org>
5341         test-ttyname_r tests: EBADF tests.
5342         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5344         Tests for module 'isatty'.
5345         * modules/isatty-tests: New file.
5346         * tests/test-isatty.c: New file.
5348         Tests for module 'write'.
5349         * modules/write-tests: New file.
5350         * tests/test-write.c: New file.
5352         Tests for module 'read'.
5353         * modules/read-tests: New file.
5354         * tests/test-read.c: New file.
5356         pwrite tests: EBADF tests.
5357         * tests/test-pwrite.c (main): Add tests for EBADF.
5359         pread tests: EBADF tests.
5360         * tests/test-pread.c (main): Add tests for EBADF.
5362         lseek tests: EBADF tests.
5363         * tests/test-lseek.c (main): Add more tests for EBADF.
5365         Tests for module 'ftruncate'.
5366         * modules/ftruncate-tests: New file.
5367         * tests/test-ftruncate.sh: New file.
5368         * tests/test-ftruncate.c: New file.
5370         fsync tests: EBADF tests.
5371         * tests/test-fsync.c (main): Add more tests for EBADF.
5373         fdatasync tests: EBADF tests.
5374         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5376         Tests for module 'fchown'.
5377         * modules/fchown-tests: New file.
5378         * tests/test-fchown.c: New file.
5380         Tests for module 'fchmod'.
5381         * modules/fchmod-tests: New file.
5382         * tests/test-fchmod.c: New file.
5384         fchdir tests: EBADF tests.
5385         * tests/test-fchdir.c (main): Add more tests for EBADF.
5387         dup2 tests: EBADF tests.
5388         * tests/test-dup2.c (main): Add more tests for EBADF.
5390         Tests for module 'dup'.
5391         * modules/dup-tests: New file.
5392         * tests/test-dup.c: New file.
5394         Tests for module 'close'.
5395         * modules/close-tests: New file.
5396         * tests/test-close.c: New file.
5398 2011-09-20  Bruno Haible  <bruno@clisp.org>
5400         Tests for module 'shutdown'.
5401         * modules/shutdown-tests: New file.
5402         * tests/test-shutdown.c: New file.
5404         Tests for module 'setsockopt'.
5405         * modules/setsockopt-tests: New file.
5406         * tests/test-setsockopt.c: New file.
5408         Tests for module 'sendto'.
5409         * modules/sendto-tests: New file.
5410         * tests/test-sendto.c: New file.
5412         Tests for module 'send'.
5413         * modules/send-tests: New file.
5414         * tests/test-send.c: New file.
5416         Tests for module 'recvfrom'.
5417         * modules/recvfrom-tests: New file.
5418         * tests/test-recvfrom.c: New file.
5420         Tests for module 'recv'.
5421         * modules/recv-tests: New file.
5422         * tests/test-recv.c: New file.
5424         Tests for module 'listen'.
5425         * modules/listen-tests: New file.
5426         * tests/test-listen.c: New file.
5428         Tests for module 'getsockopt'.
5429         * modules/getsockopt-tests: New file.
5430         * tests/test-getsockopt.c: New file.
5432         Tests for module 'getsockname'.
5433         * modules/getsockname-tests: New file.
5434         * tests/test-getsockname.c: New file.
5436         Tests for module 'getpeername'.
5437         * modules/getpeername-tests: New file.
5438         * tests/test-getpeername.c: New file.
5440         Tests for module 'connect'.
5441         * modules/connect-tests: New file.
5442         * tests/test-connect.c: New file.
5444         Tests for module 'bind'.
5445         * modules/bind-tests: New file.
5446         * tests/test-bind.c: New file.
5448         accept4 tests: Fix for native Windows.
5449         * tests/test-accept4.c: Include sockets.h.
5450         (main): Invoke gl_sockets_startup.
5451         * modules/accept4-tests (Depends-on): Add sockets.
5453         accept tests: Fix for native Windows.
5454         * tests/test-accept.c: Include sockets.h.
5455         (main): Invoke gl_sockets_startup.
5456         * modules/accept-tests (Depends-on): Add sockets.
5458 2011-09-19  Bruno Haible  <bruno@clisp.org>
5460         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5461         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5462         do...while(0).
5463         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5464         Suggested by Paul Eggert.
5466 2011-09-19  Bruno Haible  <bruno@clisp.org>
5468         sched: Ensure pid_t is defined.
5469         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5470         not define pid_t.
5471         * lib/sched.in.h: Include <sys/types.h>.
5472         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5475 2011-09-19  Bruno Haible  <bruno@clisp.org>
5477         msvc-inval: Ensure the entire expansion is a single statement.
5478         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5479         of braces.
5481 2011-09-19  Jim Meyering  <meyering@redhat.com>
5483         tests: use printf, not echo in init.sh's warn_ function
5484         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5485         misbehave when given strings containing a backslash or starting
5486         with e.g., -n.  James Youngman suggested setting IFS.
5488 2011-09-19  Eric Blake  <eblake@redhat.com>
5490         futimens: enhance test
5491         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5492         closed non-negative fd.
5494         date: accept 'hence' as opposite of 'ago'
5495         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5496         * tests/test-parse-datetime.c (main): Enhance test.
5497         Suggested by Jesse Wilson.
5499 2011-09-19  Jim Meyering  <meyering@redhat.com>
5501         getcwd: don't fail in a deep directory on a system without openat
5502         Before this change, getcwd would fail when called from a directory
5503         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5504         the non-openat implementation used "..", "../..", "../../..", etc.
5505         to access ancestor directories.  With too many, that string would
5506         be longer than PATH_MAX.
5507         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5508         using gnulib's openat replacement.
5509         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5510         we're using the replacement function.
5512 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5514         maint.mk: avoid warnings from perl about missing files
5515         * top/maint.mk (def_sym_regex): Ignore files listed in
5516         $(gl_other_headers_) that do not exist, say because a project
5517         does not use a corresponding module.
5519 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5521         stat: use pathmax.h only if needed
5522         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5523         This is better for Emacs, which does not have a mingw port and
5524         therefore can avoid the pathmax module.
5526         utimens: remove dependency on dup2
5527         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5528         to work around the Linux kernel bug.
5529         * modules/utimens (Depends-on): Remove dup2.
5531 2011-09-18  Bruno Haible  <bruno@clisp.org>
5533         inet_ntop, inet_pton: Look for it also in libresolv.
5534         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5535         libnsl, search for it in libresolv.
5536         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5537         Needed on Solaris 7.
5539 2011-09-18  Bruno Haible  <bruno@clisp.org>
5541         accept, accept4 tests: Avoid link error on Solaris.
5542         * modules/accept-tests (Makefile.am): Link test-accept against
5543         $(LIBSOCKET).
5544         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5545         $(LIBSOCKET).
5547         accept4: Avoid link error on Solaris.
5548         * modules/accept4 (Link): New section.
5550         socket functions: Avoid link errors on Solaris.
5551         * modules/accept (Depends-on): Add socketlib.
5552         (Link): New section.
5553         * modules/bind (Depends-on): Add socketlib.
5554         (Link): New section.
5555         * modules/connect (Depends-on): Add socketlib.
5556         (Link): New section.
5557         * modules/getpeername (Depends-on): Add socketlib.
5558         (Link): New section.
5559         * modules/getsockname (Depends-on): Add socketlib.
5560         (Link): New section.
5561         * modules/getsockopt (Depends-on): Add socketlib.
5562         (Link): New section.
5563         * modules/listen (Depends-on): Add socketlib.
5564         (Link): New section.
5565         * modules/recv (Depends-on): Add socketlib.
5566         (Link): New section.
5567         * modules/recvfrom (Depends-on): Add socketlib.
5568         (Link): New section.
5569         * modules/send (Depends-on): Add socketlib.
5570         (Link): New section.
5571         * modules/sendto (Depends-on): Add socketlib.
5572         (Link): New section.
5573         * modules/setsockopt (Depends-on): Add socketlib.
5574         (Link): New section.
5575         * modules/shutdown (Depends-on): Add socketlib.
5576         (Link): New section.
5577         * modules/socket (Depends-on): Add socketlib.
5578         (Link): New section.
5580 2011-09-18  Bruno Haible  <bruno@clisp.org>
5582         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5583         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5584         than 5 seconds.
5585         * modules/ptsname-tests (configure.ac): Test for alarm.
5587 2011-09-18  Bruno Haible  <bruno@clisp.org>
5589         posix_spawn_file_actions_add*: Fix module dependencies.
5590         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5591         posix_spawn_file_actions_init.
5592         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5593         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5595 2011-09-18  Bruno Haible  <bruno@clisp.org>
5597         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5598         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5599         * tests/test-renameat.c (main): Likewise.
5601 2011-09-18  Bruno Haible  <bruno@clisp.org>
5603         Tests for module 'accept4'.
5604         * modules/accept4-tests: New file.
5605         * tests/test-accept4.c: New file.
5607 2011-09-18  Bruno Haible  <bruno@clisp.org>
5609         Tests for module 'accept'.
5610         * modules/accept-tests: New file.
5611         * tests/test-accept.c: New file.
5613 2011-09-18  Bruno Haible  <bruno@clisp.org>
5615         dup2: Support for MSVC.
5616         * lib/dup2.c: Include msvc-inval.h.
5617         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5618         _get_osfhandle calls.
5619         * modules/dup2 (Depends-on): Add msvc-inval.
5620         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5622         New module 'msvc-inval'.
5623         * lib/msvc-inval.h: New file.
5624         * lib/msvc-inval.c: New file.
5625         * m4/msvc-inval.m4: New file.
5626         * modules/msvc-inval: New file.
5628 2011-09-17  Bruno Haible  <bruno@clisp.org>
5630         Tests for module 'pclose'.
5631         * modules/pclose-tests: New file.
5633         New module 'pclose'.
5634         * lib/stdio.in.h (pclose): New declaration.
5635         * lib/pclose.c: New file.
5636         * m4/pclose.m4: New file.
5637         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5638         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5639         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5640         * modules/pclose: New file.
5641         * modules/popen-tests (Depends-on): Add pclose.
5642         * modules/popen-safer-tests (Depends-on): Likewise.
5643         * doc/posix-functions/pclose.texi: Mention the new module.
5645 2011-09-17  Bruno Haible  <bruno@clisp.org>
5647         popen: Support for MSVC.
5648         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5649         * lib/popen.c (popen): Provide alternate definition for native Windows.
5650         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5652         * modules/popen (Depends-on, configure.ac): Update condition.
5653         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5654         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5655         fixed.
5657 2011-09-17  Bruno Haible  <bruno@clisp.org>
5659         isnanl, isnand, isnanf: Work around MSVC bug.
5660         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5662 2011-09-17  Bruno Haible  <bruno@clisp.org>
5664         sys_socket tests: Fix recent mistake.
5665         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5667 2011-09-17  Bruno Haible  <bruno@clisp.org>
5669         putenv: Support for MSVC.
5670         * modules/putenv (Depends-on): Add environ.
5671         * lib/putenv.c (environ): Disable declaration.
5672         * lib/unistd.in.h: Update comment.
5674 2011-09-17  Bruno Haible  <bruno@clisp.org>
5676         math: Avoid macro redefinition warnings on MSVC.
5677         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5678         Undefine before redefining.
5680 2011-09-17  Bruno Haible  <bruno@clisp.org>
5682         doc: Mention functions which are declared as macros.
5683         * doc/posix-functions/*[fl].texi: Mention that some functions are
5684         defined as macros with arguments only.
5686 2011-09-17  Bruno Haible  <bruno@clisp.org>
5688         Add dependencies to new dirent related modules.
5689         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5690         * modules/fts (Depends-on): Likewise.
5691         * modules/glob (Depends-on): Likewise.
5692         * modules/savedir (Depends-on): Likewise.
5693         * modules/scandir (Depends-on): Likewise.
5694         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5695         * modules/fdopendir (Depends-on): Add opendir.
5697 2011-09-17  Bruno Haible  <bruno@clisp.org>
5699         inet_pton: Support for MSVC on Windows Vista or newer.
5700         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5701         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5702         HAVE_DECL_INET_PTON is defined.
5703         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5704         On platforms with <winsock2.h>, test whether inet_pton is declared in
5705         <ws2tcpip.h>. If so, arrange to replace it.
5706         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5707         REPLACE_INET_PTON.
5708         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5709         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5710         (Depends-on, configure.ac): Update condition.
5711         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5713 2011-09-17  Bruno Haible  <bruno@clisp.org>
5715         inet_ntop: Support for MSVC on Windows Vista or newer.
5716         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5717         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5718         HAVE_DECL_INET_NTOP is defined.
5719         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5720         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5721         <ws2tcpip.h>. If so, arrange to replace it.
5722         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5723         REPLACE_INET_NTOP.
5724         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5725         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5726         (Depends-on, configure.ac): Update condition.
5727         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5729 2011-09-16  Eric Blake  <eblake@redhat.com>
5731         test-fsync: yet another enhancement
5732         * tests/test-fsync.c (main): Also test behavior on read-only text
5733         file.
5735 2011-09-16  Bruno Haible  <bruno@clisp.org>
5737         Enhance fsync, fdatasync tests.
5738         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5739         * tests/test-fdatasync.c (main): Likewise.
5741 2011-09-16  Bruno Haible  <bruno@clisp.org>
5743         Support for MSVC compiler: Ensure mode_t gets defined.
5744         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5745         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5746         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5747         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5748         * tests/test-fcntl-h.c: Check that mode_t is defined.
5749         * tests/test-sys_stat.c: Likewise.
5750         * tests/test-sys_types.c: Likewise.
5751         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5752         * doc/posix-headers/sys_stat.texi: Likewise.
5753         * doc/posix-headers/sys_types.texi: Likewise.
5755 2011-09-16  Bruno Haible  <bruno@clisp.org>
5757         sys_stat: Support for MSVC.
5758         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5759         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5760         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5761         MSVC.
5763 2011-09-16  Bruno Haible  <bruno@clisp.org>
5765         Support for MSVC compiler: Ensure off_t gets defined.
5766         * lib/unistd.in.h: Include <sys/types.h>.
5767         * tests/test-fcntl-h.c: Check that off_t is defined.
5768         * tests/test-sys_stat.c: Likewise.
5769         * tests/test-sys_types.c: Likewise.
5771 2011-09-16  Eric Blake  <eblake@redhat.com>
5773         fdatasync: port to Solaris
5774         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5775         * modules/fdatasync (Link): Document it.
5776         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5778         fdatasync: port to MacOS X 10.7
5779         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5780         declared.
5781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5782         * modules/unistd (Makefile.am): Substitute it.
5783         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5784         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5786         fdatasync: minor improvements
5787         * modules/fdatasync (Depends-on): Add condition for fsync.
5788         * lib/fdatasync.c (fdatasync): Add comment.
5789         * tests/test-unistd-c++.cc: Test fdatasync.
5791         unistd: update refs to newer POSIX
5792         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5793         Suggested by Bruno Haible.
5795         fdatasync: new module
5796         * modules/fsync (Description): Document difference to fdatasync.
5797         * modules/fdatasync: New module.
5798         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5799         * lib/fdatasync.c (fdatasync): Likewise.
5800         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5801         defaults.
5802         * modules/unistd (Makefile.am): Set witnesses.
5803         * lib/unistd.in.h (fdatasync): Declare.
5804         * MODULES.html.sh: Document it.
5805         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5806         * modules/fdatasync-tests: New test.
5807         * tests/test-fdatasync.c: Likewise.
5809 2011-09-16  Eric Blake  <eblake@redhat.com>
5811         test-fsync: enhance tests
5812         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5813         * tests/test-fsync.c (main): Enhance test.
5815 2011-09-15  Bruno Haible  <bruno@clisp.org>
5817         Support for MSVC compiler: Ensure ssize_t gets defined.
5818         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5819         * doc/posix-headers/stdio.texi: Likewise.
5820         * modules/stdio (Depends-on): Add ssize_t.
5821         * modules/sys_socket (Depends-on): Likewise.
5822         * modules/sys_types (Depends-on): Likewise.
5823         * modules/sys_uio (Depends-on): Likewise.
5824         * modules/unistd (Depends-on): Likewise.
5825         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5826         * tests/test-sys_types.c: Check that ssize_t is defined.
5828 2011-09-14  Bruno Haible  <bruno@clisp.org>
5830         Avoid using #, the m4 comment starter character, near brackets.
5831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5832         delimiter character in sed expressions.
5833         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5834         Suggested by Eric Blake.
5836         Properly quote AC_CHECK_DECLS' 4th argument.
5837         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5838         argument.
5839         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5840         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5841         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5842         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5843         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5844         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5845         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5846         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5847         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5848         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5849         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5850         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5851         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5852         * m4/isinf.m4 (gl_ISINF): Likewise.
5853         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5854         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5855         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5856         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5857         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5858         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5859         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5860         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5861         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5862         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5863         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5864         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5866         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5868         Reported by Eric Blake.
5870         Properly quote AC_CHECK_DECL's 4th argument.
5871         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5872         argument.
5873         * m4/argp.m4 (gl_ARGP): Likewise.
5874         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5875         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5876         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5877         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5878         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5879         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5881         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5882         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5883         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5884         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5885         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5886         Reported by Eric Blake.
5888 2011-09-14  Eric Blake  <eblake@redhat.com>
5890         opendir: avoid compile warning
5891         * lib/opendir.c (includes): Always include errno.h.
5892         Reported by Tatsuro MATSUOKA.
5894 2011-09-14  Jim Meyering  <meyering@redhat.com>
5896         maint.mk: sc_tight_scope: propagate failure from sub-make
5897         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5898         Reported by Martin von Gagern.
5900 2011-09-13  Bruno Haible  <bruno@clisp.org>
5902         tempname: Support for MSVC.
5903         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5904         MSVC.
5905         * modules/tempname (Depends-on): Add fcntl-h.
5907 2011-09-13  Bruno Haible  <bruno@clisp.org>
5909         sys_time: Support for MSVC.
5910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5911         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5912         include <winsock2.h>.
5913         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5914         function declarations that collide with POSIX.
5915         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5916         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5918 2011-09-13  Bruno Haible  <bruno@clisp.org>
5920         stat: Support for MSVC.
5921         * lib/stat.c: Include pathmax.h.
5922         * modules/stat (Depends-on): Add pathmax.
5924         pathmax: Support for native Windows.
5925         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5927 2011-09-12  Bruno Haible  <bruno@clisp.org>
5929         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5930         * lib/dirent.in.h (struct dirent): New type.
5931         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5932         DT_WHT): New macros.
5933         (DIR): New type.
5934         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5935         (readdir, rewinddir): New declarations.
5936         * lib/dirent-private.h: New file.
5937         * lib/opendir.c: New file.
5938         * lib/readdir.c: New file.
5939         * lib/rewinddir.c: New file.
5940         * lib/closedir.c: New file.
5941         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5942         * m4/opendir.m4: New file.
5943         * m4/readdir.m4: New file.
5944         * m4/rewinddir.m4: New file.
5945         * m4/closedir.m4: New file.
5946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5947         REPLACE_CLOSEDIR here.
5948         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5949         readdir, rewinddir are declared.
5950         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5951         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5952         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5953         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5954         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5955         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5956         * modules/opendir: New file.
5957         * modules/readdir: New file.
5958         * modules/rewinddir: New file.
5959         * modules/closedir: New file.
5960         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5961         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5962         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5963         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5964         * NEWS: Mention the 'fchdir' change.
5966 2011-09-11  Bruno Haible  <bruno@clisp.org>
5968         asm-underscore.m4: Support for MSVC.
5969         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5970         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5972 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5974         Doc about crypt functions.
5975         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5976         needing for _GNU_SOURCE to get crypt.
5977         * doc/posix-functions/encrypt.texi: Likewise.
5978         * doc/posix-functions/setkey.texi: Likewise.
5980 2011-09-11  Bruno Haible  <bruno@clisp.org>
5982         doc: Update regarding MSVC 9.
5983         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5984         tested".
5985         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5986         * doc/posix-headers/*.texi: Likewise.
5987         * doc/pastposix-functions/*.texi: Likewise.
5988         * doc/glibc-functions/*.texi: Likewise.
5989         * doc/glibc-headers/*.texi: Likewise.
5991 2011-09-11  Bruno Haible  <bruno@clisp.org>
5993         unistd et al.: Don't assume <unistd.h> exists.
5994         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5995         does not exist.
5996         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5997         exist. But include <stdlib.h>.
5998         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5999         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6000         symlink() does not exist.
6001         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6002         include <io.h> instead.
6003         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6004         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6005         include <direct.h> instead.
6006         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6007         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6008         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6009         <io.h> instead.
6010         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6011         correctly if the system does not have hard links.
6012         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6013         <direct.h> instead.
6014         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6015         it when looking for function declarations.
6016         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6017         <direct.h> and <io.h> instead.
6018         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6020 2011-09-11  Bruno Haible  <bruno@clisp.org>
6022         strcase: Support for MSVC.
6023         * modules/strcase (Status, Notice): Remove obsoletion mark.
6024         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6025         * doc/posix-functions/strncasecmp.texi: Likewise.
6027         strings: Don't assume <strings.h> exists.
6028         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6029         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6030         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6031         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6033 2011-09-11  Bruno Haible  <bruno@clisp.org>
6035         dirent: Don't assume <dirent.h> exists.
6036         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6037         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6038         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6039         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6041 2011-09-11  Bruno Haible  <bruno@clisp.org>
6043         Fix wint_t on MSVC.
6044         * lib/wchar.in.h (wint_t): On MSVC, override it.
6045         * lib/wctype.in.h (wint_t): Likewise.
6046         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6047         MSVC.
6048         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6049         * doc/posix-headers/wctype.texi: Likewise.
6051 2011-09-11  Bruno Haible  <bruno@clisp.org>
6053         sys_types: Fix typo.
6054         * lib/sys_types.in.h: Fix typo in comment.
6055         Reported by Paul Eggert.
6057         Support for MSVC compiler: Ensure size_t gets defined.
6058         * modules/strings (Depends-on): Add 'sys_types'.
6059         * modules/sys_uio (Depends-on): Likewise.
6060         * lib/sys_uio.in.h: Update comment.
6062         C++ tests for module 'sys_types'.
6063         * modules/sys_types-c++-tests: New file.
6064         * tests/test-sys_types-c++.cc: New file.
6066         Tests for module 'sys_types'.
6067         * modules/sys_types-tests: New file.
6068         * tests/test-sys_types.c: New file.
6070         New module 'sys_types'.
6071         * lib/sys_types.in.h: New file.
6072         * m4/sys_types_h.m4: New file.
6073         * modules/sys_types: New file.
6074         * doc/posix-headers/sys_types.texi: Mention the new module and the
6075         size_t problem on MSVC 9.
6077 2011-09-11  Bruno Haible  <bruno@clisp.org>
6079         Support for MSVC compiler: Avoid division by a literal 0.
6080         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6081         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6082         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6083         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6084         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6085         * tests/infinity.h: New file.
6086         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6087         on MSVC.
6088         * tests/test-ceilf1.c: Include infinity.h.
6089         (main): Use Infinityf.
6090         * tests/test-ceil1.c: Include infinity.h.
6091         (main): Use Infinityd.
6092         * tests/test-ceill.c: Include infinity.h.
6093         (main): Use Infinityl.
6094         * tests/test-dprintf-posix.c: Include infinity.h.
6095         (test_function): Use Infinityd.
6096         * tests/test-floorf1.c: Include infinity.h.
6097         (main): Use Infinityf.
6098         * tests/test-floor1.c: Include infinity.h.
6099         (main): Use Infinityd.
6100         * tests/test-floorl.c: Include infinity.h.
6101         (main): Use Infinityl.
6102         * tests/test-fprintf-posix.c: Include infinity.h.
6103         (test_function): Use Infinityd.
6104         * tests/test-frexp.c: Include infinity.h.
6105         (main): Use Infinityd.
6106         * tests/test-frexpl.c: Include infinity.h.
6107         (main): Use Infinityl.
6108         * tests/test-isfinite.c: Include infinity.h.
6109         (test_isfinitef): Use Infinityf.
6110         (test_isfinited): Use Infinityd.
6111         (test_isfinitel): Use Infinityl.
6112         * tests/test-isinf.c: Include infinity.h.
6113         (test_isinff): Use Infinityf.
6114         (test_isinfd): Use Infinityd.
6115         (test_isinfl): Use Infinityl.
6116         * tests/test-isnan.c: Include infinity.h.
6117         (test_float): Use Infinityf.
6118         (test_double): Use Infinityd.
6119         (test_long_double): Use Infinityl.
6120         * tests/test-isnanf.h: Include infinity.h.
6121         (main): Use Infinityf.
6122         * tests/test-isnand.h: Include infinity.h.
6123         (main): Use Infinityd.
6124         * tests/test-isnanl.h: Include infinity.h.
6125         (main): Use Infinityl.
6126         * tests/test-ldexpl.c: Include infinity.h.
6127         (main): Use Infinityl.
6128         * tests/test-printf-posix.h: Include infinity.h.
6129         (test_function): Use Infinityd.
6130         * tests/test-roundf1.c: Include infinity.h.
6131         (main): Use Infinityf.
6132         * tests/test-round1.c: Include infinity.h.
6133         (main): Use Infinityd.
6134         * tests/test-roundl.c: Include infinity.h.
6135         (main): Use Infinityl.
6136         * tests/test-signbit.c: Include infinity.h.
6137         (test_signbitf): Use Infinityf.
6138         (test_signbitd): Use Infinityd.
6139         (test_signbitl): Use Infinityl.
6140         * tests/test-snprintf-posix.h: Include infinity.h.
6141         (test_function): Use Infinityd, Infinityl.
6142         * tests/test-sprintf-posix.h: Include infinity.h.
6143         (test_function): Use Infinityd, Infinityl.
6144         * tests/test-truncf1.c: Include infinity.h.
6145         (main): Use Infinityf.
6146         * tests/test-trunc1.c: Include infinity.h.
6147         (main): Use Infinityd.
6148         * tests/test-truncl.c: Include infinity.h.
6149         (main): Use Infinityl.
6150         * tests/test-vasnprintf-posix.c: Include infinity.h.
6151         (test_function): Use Infinityd, Infinityl.
6152         * tests/test-vasprintf-posix.c: Include infinity.h.
6153         (test_function): Use Infinityd, Infinityl.
6154         * modules/ceilf-tests (Files): Add tests/infinity.h.
6155         * modules/ceil-tests (Files): Likewise.
6156         * modules/ceill-tests (Files): Likewise.
6157         * modules/dprintf-posix-tests (Files): Likewise.
6158         * modules/floorf-tests (Files): Likewise.
6159         * modules/floor-tests (Files): Likewise.
6160         * modules/floorl-tests (Files): Likewise.
6161         * modules/fprintf-posix-tests (Files): Likewise.
6162         * modules/frexp-tests (Files): Likewise.
6163         * modules/frexp-nolibm-tests (Files): Likewise.
6164         * modules/frexpl-tests (Files): Likewise.
6165         * modules/frexpl-nolibm-tests (Files): Likewise.
6166         * modules/isfinite-tests (Files): Likewise.
6167         * modules/isinf-tests (Files): Likewise.
6168         * modules/isnan-tests (Files): Likewise.
6169         * modules/isnanf-tests (Files): Likewise.
6170         * modules/isnanf-nolibm-tests (Files): Likewise.
6171         * modules/isnand-tests (Files): Likewise.
6172         * modules/isnand-nolibm-tests (Files): Likewise.
6173         * modules/isnanl-tests (Files): Likewise.
6174         * modules/isnanl-nolibm-tests (Files): Likewise.
6175         * modules/ldexpl-tests (Files): Likewise.
6176         * modules/printf-posix-tests (Files): Likewise.
6177         * modules/roundf-tests (Files): Likewise.
6178         * modules/round-tests (Files): Likewise.
6179         * modules/roundl-tests (Files): Likewise.
6180         * modules/signbit-tests (Files): Likewise.
6181         * modules/snprintf-posix-tests (Files): Likewise.
6182         * modules/sprintf-posix-tests (Files): Likewise.
6183         * modules/truncf-tests (Files): Likewise.
6184         * modules/trunc-tests (Files): Likewise.
6185         * modules/truncl-tests (Files): Likewise.
6186         * modules/vasnprintf-posix-tests (Files): Likewise.
6187         * modules/vasprintf-posix-tests (Files): Likewise.
6188         * modules/vdprintf-posix-tests (Files): Likewise.
6189         * modules/vfprintf-posix-tests (Files): Likewise.
6190         * modules/vprintf-posix-tests (Files): Likewise.
6191         * modules/vsnprintf-posix-tests (Files): Likewise.
6192         * modules/vsprintf-posix-tests (Files): Likewise.
6193         * modules/xprintf-posix-tests (Files): Likewise.
6195 2011-09-11  Bruno Haible  <bruno@clisp.org>
6197         Ensure pid_t gets defined.
6198         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6199         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6200         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6201         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6202         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6203         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6204         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6205         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6206         * tests/test-fcntl-h.c: Check that pid_t is defined.
6207         * tests/test-sched.c: Likewise.
6208         * tests/test-termios.c: Likewise.
6209         * tests/test-time.c: Likewise.
6210         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6211         * doc/posix-headers/signal.texi: Likewise.
6212         * doc/posix-headers/sys_types.texi: Likewise.
6213         * doc/posix-headers/time.texi: Likewise.
6215 2011-09-11  Bruno Haible  <bruno@clisp.org>
6217         acl: Fix compilation on Solaris 10 (older version).
6218         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6219         of ACE_EVERYONE.
6220         * lib/set-mode-acl.c (qset_acl): Likewise.
6221         Reported by Christian Jullien <eligis@orange.fr>.
6223 2011-09-10  Bruno Haible  <bruno@clisp.org>
6225         iconv, unsetenv: Add support for MSVC compiler.
6226         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6227         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6229 2011-09-10  Bruno Haible  <bruno@clisp.org>
6231         *printf: Add support for MSVC compiler.
6232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6233         handles the exception caused by the %n directive. When cross-compiling,
6234         guess no on native Windows.
6235         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6236         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6237         emulate it through vsnprintf.
6238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6239         * doc/posix-functions/dprintf.texi: Update documentation regarding
6240         MSVC 9.
6241         * doc/posix-functions/fprintf.texi: Likewise.
6242         * doc/posix-functions/printf.texi: Likewise.
6243         * doc/posix-functions/snprintf.texi: Likewise.
6244         * doc/posix-functions/sprintf.texi: Likewise.
6245         * doc/posix-functions/swprintf.texi: Likewise.
6246         * doc/posix-functions/vdprintf.texi: Likewise.
6247         * doc/posix-functions/vfprintf.texi: Likewise.
6248         * doc/posix-functions/vprintf.texi: Likewise.
6249         * doc/posix-functions/vsnprintf.texi: Likewise.
6250         * doc/posix-functions/vsprintf.texi: Likewise.
6251         * doc/glibc-functions/asprintf.texi: Likewise.
6252         * doc/glibc-functions/obstack_printf.texi: Likewise.
6253         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6254         * doc/glibc-functions/vasprintf.texi: Likewise.
6256 2011-09-10  Bruno Haible  <bruno@clisp.org>
6258         nocrash: Add support for native Windows.
6259         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6261 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6262             Bruno Haible  <bruno@clisp.org>
6264         absolute-header, include-next: Add support for MSVC compiler.
6265         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6266         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6267         directory separator in #line directives.
6268         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6269         recognize also backslash as directory separator in #line directives.
6271 2011-09-08  Jim Meyering  <meyering@redhat.com>
6273         maint.mk: mark the post-release commit log with "maint: " prefix
6274         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6275         one-line commit-log summary.
6277 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6278             Bruno Haible  <bruno@clisp.org>
6280         Doc about crypt functions.
6281         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6282         systems.
6283         * doc/posix-functions/encrypt.texi: Likewise.
6284         * doc/posix-functions/setkey.texi: Likewise.
6286 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6288         * lib/gc.h: Fix copyright header.
6290 2011-09-07  Bruno Haible  <bruno@clisp.org>
6292         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6293         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6294         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6296 2011-09-07  Bruno Haible  <bruno@clisp.org>
6298         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6299         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6300         * lib/freopen.c: Likewise.
6301         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6302         * lib/lstat.c: Likewise.
6303         * lib/stat.c: Likewise.
6304         * lib/open.c: Use different syntax for include of <fcntl.h>.
6305         * lib/openat.c: Include fcntl.h again, explicitly.
6307 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6309         parse-datetime: document the newly accepted format
6310         * doc/parse-datetime.texi (Combined date and time of day items):
6311         New section.
6313 2011-09-06  Bruno Haible  <bruno@clisp.org>
6315         acl: Fix a test failure on newer Solaris 10 with ZFS.
6316         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6317         ENOSYS as no ACL.
6318         Reported by Jim Meyering.
6320 2011-09-06  Bruno Haible  <bruno@clisp.org>
6322         acl: Update for AIX >= 5.3 with NFS.
6323         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6324         ENOSYS as no ACL.
6326         acl: Fix a test failure on AIX >= 5.3 with NFS.
6327         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6328         as no ACL.
6330 2011-09-06  Bruno Haible  <bruno@clisp.org>
6332         acl: Fix a test failure on IRIX 6.5 with NFS.
6333         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6334         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6335         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6336         * lib/copy-acl.c (qcopy_acl): Likewise.
6338 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6340         openat: port to AIX 7.1 with large files
6341         AIX 7.1 does a "#define openat open64at" if large files are in use,
6342         so we can't simply #undef openat.  Use the orig_openat trick (similar
6343         to orig_open in lib/open.c) to work around the problem.  Problem
6344         reported by Kevin Brott for GNU tar, in the thread containing
6345         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6346         * lib/openat.c (__need_system_fcntl_h): Define first.
6347         Include <fcntl.h> and <sys/types.h> before undefining.
6348         (orig_openat) [HAVE_OPENAT]: New inline function.
6349         (openat) [HAVE_OPENAT]: Do not undef.
6350         (rpl_openat): Use orig_openat, not openat.
6352 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6353             Bruno Haible  <bruno@clisp.org>
6355         acl: Avoid errors on NonStop Kernel.
6356         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6357         ENOTSUP errors.
6359 2011-09-05  Bruno Haible  <bruno@clisp.org>
6361         acl: Clean up Solaris code.
6362         * lib/acl-internal.h: Remove no-op #if.
6363         * lib/file-has-acl.c: Likewise.
6364         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6365         * lib/copy-acl.c (qcopy_acl): Likewise.
6367 2011-09-05  Bruno Haible  <bruno@clisp.org>
6369         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6370         binaries built on the original Solaris 10.
6371         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6372         trivial.
6374 2011-09-05  Bruno Haible  <bruno@clisp.org>
6376         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6377         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6378         10.
6379         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6380         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6381         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6382         instead of acl_get, facl_get, acl_set, facl_set.
6384 2011-09-05  Bruno Haible  <bruno@clisp.org>
6386         copy-file: Try unit tests on more file systems.
6387         * tests/test-copy-file-1.sh: New file.
6388         * tests/test-copy-file-2.sh: New file.
6389         * modules/copy-file-tests (Files): Add them.
6390         (Makefile.am): Add them to TESTS.
6392         acl: Try unit tests on more file systems.
6393         * tests/test-file-has-acl-1.sh: New file.
6394         * tests/test-file-has-acl-2.sh: New file.
6395         * tests/test-set-mode-acl-1.sh: New file.
6396         * tests/test-set-mode-acl-2.sh: New file.
6397         * tests/test-copy-acl-1.sh: New file.
6398         * tests/test-copy-acl-2.sh: New file.
6399         * modules/acl-tests (Files): Add them.
6400         (Makefile.am): Add them to TESTS.
6402 2011-09-04  Bruno Haible  <bruno@clisp.org>
6404         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6405         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6406         10.
6407         (OLD_ALLOW, OLD_DENY): New macros.
6408         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6409         ACE_ACCESS_ALLOWED_ACE_TYPE.
6410         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6411         ACE_ACCESS_DENIED_ACE_TYPE.
6412         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6413         (NEW_ACE_EXECUTE): Fix value.
6414         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6415         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6416         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6417         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6418         NEW_ACE_SYNCHRONIZE): New macros.
6419         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6420         instead of acl_fromtext, acl_set, facl_set.
6421         Fixes a coreutils/tests/cp/perm failure.
6423 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6425         openat: test for fstatat (..., 0) bug
6426         Further testing with tar suggests that fstatat (..., 0)
6427         does not work in general, on AIX 7.1; see
6428         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6429         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6430         replacement fstatat (which is what older AIX releases were using
6431         anyway).
6432         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6433         use is now changed to orig_fstatat.  This was probably the right
6434         thing to do anyway.
6435         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6436         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6437         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6438         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6439         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6440         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6441         if the bug is found.
6443         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6444         This tests for another fstatat bug on AIX 7.1:
6445         fstatat (AT_FDCWD, ..., 0) does not work.  See
6446         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6447         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6448         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6449         (rpl_fstatat): Adjust so that it works around either (or both)
6450         bugs if present.
6451         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6453 2011-09-03  Karl Berry  <karl@gnu.org>
6455         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6456         in index entries.
6458 2011-09-02  Bruno Haible  <bruno@clisp.org>
6460         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6461         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6462         values of AR, ARFLAGS, RANLIB.
6463         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6465 2011-09-02  Bruno Haible  <bruno@clisp.org>
6467         Find 'ar' program that fits with --host argument.
6468         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6470 2011-09-02  Bruno Haible  <bruno@clisp.org>
6472         tests: init.sh: Support any non-GNU diff.
6473         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6474         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6475         Solaris 8.
6477 2011-09-02  Bruno Haible  <bruno@clisp.org>
6479         tests: init.sh: work also with any non-GNU diff that supports -u
6480         * tests/init.sh: Relax check for diff -u support.
6481         Rather than checking for GNU diff via --version, simply check
6482         for support for -u itself.  Useful at least on OpenBSD 4.9,
6483         AIX 7.1, IRIX 6.5, and Solaris 10.
6485 2011-09-01  Bruno Haible  <bruno@clisp.org>
6487         strtoimax, strtoumax: Document problem on HP-UX 11.
6488         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6489         * doc/posix-functions/strtoumax.texi: Likewise.
6491 2011-09-01  Bruno Haible  <bruno@clisp.org>
6493         strtoumax: Avoid link error on OSF/1 with DTK cc.
6494         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6495         defined as a function.
6496         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6497         strtoumax is defined, not whether it is declared.
6499 2011-09-01  Bruno Haible  <bruno@clisp.org>
6501         strtoimax: Avoid link error on OSF/1 with DTK cc.
6502         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6503         defined as a function.
6504         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6505         strtoimax is defined, not whether it is declared.
6507 2011-09-01  Bruno Haible  <bruno@clisp.org>
6509         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6510         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6511         as a function.
6512         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6513         whether it is declared.
6515 2011-09-01  Bruno Haible  <bruno@clisp.org>
6517         imaxabs: Avoid link error on OSF/1 with DTK cc.
6518         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6519         as a function.
6520         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6521         whether it is declared.
6523 2011-09-01  Bruno Haible  <bruno@clisp.org>
6525         Tests for module 'strtoumax'.
6526         * modules/strtoumax-tests: New file.
6527         * tests/test-strtoumax.c: New file.
6529         Tests for module 'strtoimax'.
6530         * modules/strtoimax-tests: New file.
6531         * tests/test-strtoimax.c: New file.
6533         Tests for module 'imaxdiv'.
6534         * modules/imaxdiv-tests: New file.
6535         * tests/test-imaxdiv.c: New file.
6537         Tests for module 'imaxabs'.
6538         * modules/imaxabs-tests: New file.
6539         * tests/test-imaxabs.c: New file.
6541 2011-09-01  Bruno Haible  <bruno@clisp.org>
6543         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6544         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6545         pthread_create.
6547 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6549         openat: work around AIX 7.1 fstatat issue
6550         This should fix the problem that was not properly fixed
6551         in the previous change, dated 2011-08-30.
6552         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6553         __need_system_stat_h defined.
6554         (orig_fstatat) [HAVE_FSTATAT]: New function.
6555         (rpl_fstatat): Go back to the old way of doing things,
6556         except call orig_fstatat instead of fstatat.
6557         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6558         Remove unnecessary check whether fstatat fills in st_size etc.
6560 2011-09-01  Bruno Haible  <bruno@clisp.org>
6562         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6563         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6564         just include the system's header.
6566 2011-08-31  Jim Meyering  <meyering@redhat.com>
6568         tests: avoid spurious assertion failure in test-float.c on ppc64
6569         * tests/test-float.c (test_long_double): Comment out an assertion,
6570         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6571         with gcc-4.4.4.
6573         maint: indent with spaces, not TABs
6574         I need to get in the habit of running gnulib's "make check".
6575         Both of these would have been caught.
6576         * m4/largefile.m4: Indent with spaces, not TABs.
6577         * lib/parse-datetime.y (iso_8601_time): Likewise.
6578         Spotted by Pádraig Brady.
6580         test-parse-datetime.c: accommodate a relatively strict gcc warning
6581         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6582         to avoid a warning from gcc's -Werror=missing-declarations.
6583         Insert a few spaces-before-funcall-parenthesis.
6585 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6587         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6588         The parser now accepts ISO 8601 date-time strings with "T" as the
6589         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6590         with a space between the date and time strings.  Now it also parses
6591         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6592         variants like "2004-02-29T16:21:42.333-07:00"
6593         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6594         of day representation using the 'T' separator character.
6595         * doc/parse-datetime.texi (General date syntax): replace use of
6596         deprecated --iso-8601 option with --rfc-3339 in example of date
6597         command output formats that can be parsed.
6598         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6599         lib/parse-datetime.y.
6600         (gmt_offset): New function.
6601         (main): Add additional test cases to validate ISO8601 extended
6602         date and time of day parsing.
6604 2011-08-31  Bruno Haible  <bruno@clisp.org>
6606         freopen: Documentation.
6607         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6608         name.
6609         Reported by Claudio Bley <claudio.bley@gmail.com>.
6611 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6613         freopen: Don't crash if the filename argument is NULL.
6614         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6615         NULL.
6617 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6619         openat: work around AIX 7.1 fstatat bug
6620         Problem reported by Kevin Brott for GNU tar, in the thread containing
6621         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6622         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6623         FSTATAT_ST_SIZE_ETC_BROKEN.
6624         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6625         rpl_fstatat.
6626         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6627         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6628         AC_CHECK_FUNCS_ONCE for fstatat.
6629         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6630         fchmodat, mkdirat, openat and unlinkat.
6632 2011-08-30  Bruno Haible  <bruno@clisp.org>
6634         Avoid endless recursions if config.h includes some header files.
6635         * lib/fopen.c (__need_FILE): Define already before including config.h.
6636         * lib/freopen.c (__need_FILE): Likewise.
6637         * lib/open.c (__need_system_fcntl_h): Likewise.
6638         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6639         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6640         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6642 2011-08-25  Karl Berry  <karl@gnu.org>
6644         * config/srclist.txt (ylwrap): new try.
6645         * build-aux/ylwrap: new file.
6647 2011-08-23  Bruno Haible  <bruno@clisp.org>
6649         tmpdir: Use a good default directory on native Windows.
6650         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6651         (P_tmpdir): Default to _P_tmpdir on native Windows.
6652         (path_search): On native Windows, try the value returned by GetTempPath
6653         before trying P_tmpdir.
6654         * modules/tmpdir (Depends-on): Add pathmax.
6655         Suggested by John Darrington <john@darrington.wattle.id.au>.
6657 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6659         doc: fix typo in README-release
6660         * top/README-release: Capitalize first word of a sentence.
6662 2011-08-19  Jim Meyering  <meyering@redhat.com>
6664         fts: do not exhaust memory when processing million-entry directories
6665         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6666         directory would require about 256*N bytes of memory.  Thus, it was
6667         easy to construct a directory too large to be processed by any of
6668         those tools.  With this change, fts' maximum memory utilization is
6669         now limited to around 30MB.
6670         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6671         (fts_read): When we've processed the final entry (i.e., when
6672         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6673         using the parent entry to read any remaining entries.  Dispatch
6674         depending on what fts_build returns:
6675         - NULL+stop, aka failure: stop
6676         - NULL otherwise: move up in the dir hierarchy
6677         - non-NULL: handle this new entry
6678         (fts_build): Declare and use new local, continue_readdir.
6679         Prepare to be called from fts_read, when the entries
6680         from a partially-read directory have just been exhausted.
6681         In that case, we'll skip the opendir and instead use the parent's
6682         fts_dirp and derive dir_fd from that.
6683         Finally, in the readdir loop, if we read max_entries entries,
6684         exit the loop ensuring *not* to call closedir.  This is required
6685         so that fts_dirp can be reused on a subsequent call.
6686         Prompted by Ben England's report of memory exhaustion in find
6687         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6689         maint: fts: move decl of `dp' down into while loop; split a long line
6690         * lib/fts.c (fts_build): No semantic change.
6692         fts: add/use new struct member, fts_dirp
6693         We are about to use this to manage any directory with
6694         too many entries to read all of them into memory at once.
6695         To do that, we'll need to save the DIR* pointer in each
6696         affected FTSENT struct.
6697         * lib/fts_.h: Include <dirent.h>.
6698         (struct FTSENT) [fts_dirp]: New member.
6699         * lib/fts.c (closedir_and_clear): Define.
6700         Use it in place of closedir so that we are sure to
6701         clear the new fts_dirp member when done with it.
6702         (fts_alloc): Initialize the new member.
6703         (fts_lfree): Free, if needed.
6705         maint: fts: give __opendir2 a new parameter and rename
6706         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6707         than surreptitiously using sole caller's "dir_fd".
6708         (fts_opendir): Rename from __opendir2.
6710         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6711         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6713         maint: fts.c: correct off-by-one indentation
6714         * lib/fts.c (fts_build): Correct indentation, change style
6715         of a couple of block comments, and bracing style.
6717         maint: fts.c: move __opendir2 #define "up" out of function body
6718         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6720         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6721         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6722         out for a long time and besides was useful only on BSD systems.
6724 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6726         regex: port to Stratus OpenVOS
6727         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6728         define to empty, rather than attempting nonportable optimizations.
6729         Problem reported by Paul Green in:
6730         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6731         and fix suggested by Eric Blake in:
6732         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6734 2011-08-17  Eric Blake  <eblake@redhat.com>
6736         getcwd: fix test failures on mingw
6737         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6738         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6739         test if long directory cannot be created, and allow mingw errno.
6741         getcwd-lgpl: fix m4 to match relaxed test for BSD
6742         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6743         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6744         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6745         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6746         signature problem.
6748         getcwd: fix compilation on mingw64
6749         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6750         getcwd.
6751         Reported by Marc-André Lureau.
6753         pipe2: silence compiler warning
6754         * lib/pipe2.c (pipe2): Hide label if it is not used.
6756 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6758         relocatable-prog: fix link error
6759         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6760         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6761         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6762         into modules/relocatable-lib without noticing that
6763         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6764         also needs to build relocatable.c.
6766 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6768         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6770         shell code: it contained a 'break' that was not in a loop.
6771         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6772         via a shell-language loop; this may have been true in old Autoconf
6773         versions, but it's not true in Autoconf 2.68.  I found this bug
6774         when testing coreutils git on Solaris 8, whose shell complains
6775         about the syntax error.
6777 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6779         * lib/base64.c: Fix comment to reference RFC 4648.
6780         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6781         <gvtulder@gmail.com>.
6783 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6785         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6787         po/Makefile.in.in: fix make -q problem
6788         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6789         rule, since there's no file named 'check-macro-version' and its
6790         use as a file breaks make -q.
6791         (all): Don't depend on check-macro-version.
6792         (CHECK_MACRO_VERSION): New macro.
6793         (stamp-po): Use it.
6795         configmake: fix make -q problem
6796         * modules/configmake (configmake.h): Update configmake.h's time stamp
6797         even if the file does not change.  Otherwise, 'make -q' fails.
6798         Problem reported by Simon Josefsson in
6799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6801 2011-08-11  Jim Meyering  <meyering@redhat.com>
6803         git-version-gen: correct the advice in a comment
6804         * build-aux/git-version-gen: Correct comment.
6805         Don't recommend to list .tarball-version in .gitignore.
6807 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6809         base64: fix off-by-one buffer size bug
6810         Problem and (trivial) fix reported by Gijs van Tulder in
6811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6812         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6813         * tests/test-base64.c (main): Catch the bug.
6815 2011-08-10  Eric Blake  <eblake@redhat.com>
6817         closein: correct comments
6818         * lib/closein.c (close_stdin): Improve comments.
6820 2011-08-09  Bruno Haible  <bruno@clisp.org>
6822         More tests for 'fseeko'.
6823         * tests/test-fseeko3.c: New file, from Eric Blake.
6824         * tests/test-fseeko3.sh: New file.
6825         * modules/fseeko-tests (Files): Add them.
6826         (TESTS): Add test-fseeko3.sh.
6827         (check_PROGRAMS): Add test-fseeko3.
6829 2011-08-09  Eric Blake  <eblake@redhat.com>
6831         fseeko: remove unneeded hack
6832         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6834         fseeko: fix bug on glibc
6835         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6836         Reported by John W. Eaton.
6838 2011-08-08  Bruno Haible  <bruno@clisp.org>
6840         unictype/base: Fix interoperability with preinstalled libunistring.
6841         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6842         Reported by Simon Josefsson.
6844 2011-08-08  Bruno Haible  <bruno@clisp.org>
6846         iswblank: Detect declaration correctly.
6847         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6848         AC_CHECK_DECLS invocation.
6850 2011-08-08  Bruno Haible  <bruno@clisp.org>
6852         tcgetsid: Detect declaration correctly.
6853         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6854         AC_CHECK_DECLS invocation.
6855         Reported by Simon Josefsson.
6857 2011-08-08  Eric Blake  <eblake@redhat.com>
6859         largefile: fix typo that regressed large file support
6860         * modules/largefile (configure.ac-early): Fix section name.
6862 2011-08-06  Karl Berry  <karl@gnu.org>
6864         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6865         a separate module.
6867 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6869         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6870         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6871         get prototype for free.
6873 2011-08-04  Bruno Haible  <bruno@clisp.org>
6875         Tests for module 'pathmax'.
6876         * modules/pathmax-tests: New file.
6877         * tests/test-pathmax.c: New file.
6879         canonicalize-lgpl: Support larger filenames on the Hurd.
6880         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6881         Reported by Paul Eggert.
6883         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6884         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6885         * lib/chdir-long.h: Include pathmax.h.
6886         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6887         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6888         (PATH_MAX): Remove code that is done by pathmax.h.
6889         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6890         * lib/tmpfile.c: Add a comment.
6891         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6892         * modules/chdir-long (Depends-on): Add pathmax.
6893         * modules/getcwd (Depends-on): Add pathmax.
6894         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6895         is not defined.
6896         * doc/posix-headers/limits.texi: Mention the pathmax module.
6897         * NEWS: Mention the change.
6899 2011-08-02  Bruno Haible  <bruno@clisp.org>
6901         pthread_sigmask: Actually use results of gl_THREADLIB.
6902         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6903         gl_THREADLIB, not gl_[]THREADLIB.
6904         Reported by Eric Blake.
6906 2011-08-02  Jim Meyering  <meyering@redhat.com>
6908         maint.mk: relax the default _gl_TS_function_match regexp
6909         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6910         space between function name and "(" in an "extern" declaration.
6911         That would fail to match a decl with no space there: extern void foo();
6913 2011-07-31  Iain Nicol  <iain@thenicols.net>
6915         git-version-gen: document that EXTRA_DIST must include .version
6916         * build-aux/git-version-gen: In the how-to-use comment, document
6917         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6918         will fail when run from an unpacked distribution tarball.
6920 2011-08-01  Bruno Haible  <bruno@clisp.org>
6922         wctype-h: Fix last change.
6923         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6924         REPLACE_TOWLOWER to 0.
6925         Reported by Sam Steingold <sds@gnu.org>.
6927 2011-07-31  Bruno Haible  <bruno@clisp.org>
6929         frexpl: Update autoconf test.
6930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6931         according to changes of 2011-06-20.
6933 2011-07-31  Bruno Haible  <bruno@clisp.org>
6935         sys_utsname: Add support for Minix.
6936         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6937         <sys/utsname.h>.
6938         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6939         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6941 2011-07-31  Bruno Haible  <bruno@clisp.org>
6943         strings: Add support for Minix.
6944         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6945         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6946         * doc/posix-headers/strings.texi: Document the Minix problem.
6948 2011-07-31  Bruno Haible  <bruno@clisp.org>
6950         wctype-h: Add support for Minix.
6951         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6952         REPLACE_TOWLOWER.
6953         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6954         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6955         REPLACE_ISWCNTRL.
6957 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6959         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6960         This is a performance improvement for 64-bit hosts: it causes the
6961         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6963 2011-07-31  Bruno Haible  <bruno@clisp.org>
6965         stdioext: Add support for Minix.
6966         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6967         * lib/fpurge.c (fpurge): Likewise.
6968         * lib/freadahead.c (freadahead): Likewise.
6969         * lib/freadable.c (freadable): Likewise.
6970         * lib/freading.c (freading): Likewise.
6971         * lib/freadptr.c (freadptr): Likewise.
6972         * lib/freadseek.c (freadptrinc): Likewise.
6973         * lib/fseeko.c (rpl_fseeko): Likewise.
6974         * lib/fseterr.c (fseterr): Likewise.
6975         * lib/fwritable.c (fwritable): Likewise.
6976         * lib/fwriting.c (fwriting): Likewise.
6977         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6978         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6980 2011-07-31  Bruno Haible  <bruno@clisp.org>
6982         errno: Port to Minix.
6983         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6984         ECONNABORTED are defined.
6985         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6986         GNULIB_defined_ECONNABORTED): New macros.
6987         * lib/strerror-override.h (strerror_override): Test also
6988         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6989         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6990         ECONNABORTED.
6991         * doc/posix-headers/errno.texi: Mention the Minix problem.
6993 2011-07-31  Bruno Haible  <bruno@clisp.org>
6995         Work around declaration collisions on Minix.
6996         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6997         defined, set REPLACE_MBSINIT.
6998         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6999         defined, set REPLACE_MBRTOWC.
7000         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7001         set REPLACE_MBRLEN.
7002         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7003         defined, set REPLACE_MBSRTOWCS.
7004         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7005         defined, set REPLACE_WCRTOMB.
7006         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7007         defined, set REPLACE_WCSRTOMBS.
7009 2011-07-31  Bruno Haible  <bruno@clisp.org>
7011         Add support for Minix with ACK compiler.
7012         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7013         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7014         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7016 2011-07-31  Bruno Haible  <bruno@clisp.org>
7018         Documentation about Minix.
7019         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7020         * doc/glibc-headers/*.texi: Likewise.
7021         * doc/posix-functions/*.texi: Likewise.
7022         * doc/glibc-functions/*.texi: Likewise.
7024 2011-07-31  Bruno Haible  <bruno@clisp.org>
7026         snippet/warn-on-use: Fix indentation.
7027         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7029 2011-07-25  Jim Meyering  <meyering@redhat.com>
7031         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7032         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7033         commands.
7035 2011-07-27  Jim Meyering  <meyering@redhat.com>
7037         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7038         * top/maint.mk (gl_extract_significant_defines_): Now that
7039         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7040         gnulib/lib/signal.in.h, and now that we recommend to
7041         define-if-undefined those two symbols in application code,
7042         we must filter them out of the "significant" list.
7043         This avoids a "make syntax-check" failure in coreutils.
7045 2011-07-26  Eric Blake  <eblake@redhat.com>
7047         warnings: add comments about previous patch
7048         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7049         * m4/include_next.m4: Likewise.
7050         * m4/warn-on-use.m4: Likewise.
7051         * m4/warnings.m4: Likewise, and simplify use.
7052         Suggested by Stefano Lattarini.
7054         include-next, warnings: support older autoconf
7055         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7056         AS_VAR_PUSHDEF in a way that works with older autoconf.
7057         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7058         Reported by Daniel P. Berrange.
7060 2011-07-25  Bruno Haible  <bruno@clisp.org>
7062         fseek, ftell: Fix doc.
7063         * doc/posix-functions/fseek.texi: Reword statement about
7064         AC_SYS_LARGEFILE.
7065         * doc/posix-functions/ftell.texi: Likewise.
7067 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7068             Bruno Haible  <bruno@clisp.org>
7070         Add dependencies to the 'largefile' module.
7071         * modules/fopen (Depends-on): Add 'largefile'.
7072         * modules/freopen (Depends-on): Likewise.
7073         * modules/fseeko (Depends-on): Likewise.
7074         * modules/ftello (Depends-on): Likewise.
7075         * modules/glob (Depends-on): Likewise.
7076         * modules/lseek (Depends-on): Likewise.
7077         * modules/lstat (Depends-on): Likewise.
7078         * modules/mkostemp (Depends-on): Likewise.
7079         * modules/mkostemps (Depends-on): Likewise.
7080         * modules/mkstemp (Depends-on): Likewise.
7081         * modules/mkstemps (Depends-on): Likewise.
7082         * modules/open (Depends-on): Likewise.
7083         * modules/openat (Depends-on): Likewise.
7084         * modules/pread (Depends-on): Likewise.
7085         * modules/pwrite (Depends-on): Likewise.
7086         * modules/scandir (Depends-on): Likewise.
7087         * modules/stat (Depends-on): Likewise.
7088         * modules/tmpfile (Depends-on): Likewise.
7089         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7090         since the containing module now depends on the largefile module.
7091         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7092         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7093         off_t is fixed by gnulib.
7094         * doc/posix-functions/freopen.texi: Likewise.
7095         * doc/posix-functions/fseeko.texi: Likewise.
7096         * doc/posix-functions/fstatat.texi: Likewise.
7097         * doc/posix-functions/ftello.texi: Likewise.
7098         * doc/posix-functions/glob.texi: Likewise.
7099         * doc/posix-functions/lseek.texi: Likewise.
7100         * doc/posix-functions/lstat.texi: Likewise.
7101         * doc/posix-functions/mkstemp.texi: Likewise.
7102         * doc/posix-functions/open.texi: Likewise.
7103         * doc/posix-functions/openat.texi: Likewise.
7104         * doc/posix-functions/pread.texi: Likewise.
7105         * doc/posix-functions/pwrite.texi: Likewise.
7106         * doc/posix-functions/scandir.texi: Likewise.
7107         * doc/posix-functions/stat.texi: Likewise.
7108         * doc/posix-functions/tmpfile.texi: Likewise.
7109         * doc/glibc-functions/mkostemp.texi: Likewise.
7110         * doc/glibc-functions/mkostemps.texi: Likewise.
7111         * doc/glibc-functions/mkstemps.texi: Likewise.
7113 2011-07-25  Bruno Haible  <bruno@clisp.org>
7115         fcntl: Move AC_LIBOBJ invocation to module description.
7116         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7117         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7119         fcntl: Remove call-in from fchdir.m4.
7120         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7123         dup3: Remove potential call-in from fchdir.m4.
7124         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7127         dup2: Move AC_LIBOBJ invocation to module description.
7128         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7129         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7130         Don't invoke AC_LIBOBJ.
7131         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7133         dup2: Remove call-in from fchdir.m4.
7134         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7137         fclose: Move AC_LIBOBJ invocation to module description.
7138         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7139         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7140         to 1.
7141         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7143         fclose: Remove call-in from close.m4.
7144         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7145         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7147         close: Move AC_LIBOBJ invocation to module description.
7148         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7149         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7150         1.
7151         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7153         close: Remove call-in from fchdir.m4.
7154         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7157         open: Move AC_LIBOBJ invocation to module description.
7158         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7159         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7160         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7162         open: Remove call-in from fchdir.m4.
7163         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7166         fchdir: Start to remove gl_REPLACE_* idiom.
7167         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7168         (gl_FUNC_FCHDIR): Invoke it.
7170 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7172         * lib/ftell.c (ftell): Comment out cast.
7174         close: use gl_REPLACE_FCLOSE only if defined
7175         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7176         is defined.  The close module doesn't depend on the fclose module
7177         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7179         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7181 2011-07-24  Jim Meyering  <meyering@redhat.com>
7183         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7184         * tests/test-select.h (test_function): Declare as "static".
7186 2011-07-24  Bruno Haible  <bruno@clisp.org>
7188         doc: Mention the effects of AC_SYS_LARGEFILE.
7189         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7190         on this function.
7191         * doc/posix-functions/aio_error.texi: Likewise.
7192         * doc/posix-functions/aio_fsync.texi: Likewise.
7193         * doc/posix-functions/aio_read.texi: Likewise.
7194         * doc/posix-functions/aio_return.texi: Likewise.
7195         * doc/posix-functions/aio_suspend.texi: Likewise.
7196         * doc/posix-functions/aio_write.texi: Likewise.
7197         * doc/posix-functions/fgetpos.texi: Likewise.
7198         * doc/posix-functions/fopen.texi: Likewise.
7199         * doc/posix-functions/freopen.texi: Likewise.
7200         * doc/posix-functions/fsetpos.texi: Likewise.
7201         * doc/posix-functions/fstatvfs.texi: Likewise.
7202         * doc/posix-functions/ftruncate.texi: Likewise.
7203         * doc/posix-functions/ftw.texi: Likewise.
7204         * doc/posix-functions/getrlimit.texi: Likewise.
7205         * doc/posix-functions/glob.texi: Likewise.
7206         * doc/posix-functions/lio_listio.texi: Likewise.
7207         * doc/posix-functions/lockf.texi: Likewise.
7208         * doc/posix-functions/mkstemp.texi: Likewise.
7209         * doc/posix-functions/mmap.texi: Likewise.
7210         * doc/posix-functions/nftw.texi: Likewise.
7211         * doc/posix-functions/openat.texi: Likewise.
7212         * doc/posix-functions/opendir.texi: Likewise.
7213         * doc/posix-functions/posix_fadvise.texi: Likewise.
7214         * doc/posix-functions/posix_fallocate.texi: Likewise.
7215         * doc/posix-functions/pread.texi: Likewise.
7216         * doc/posix-functions/pwrite.texi: Likewise.
7217         * doc/posix-functions/readdir.texi: Likewise.
7218         * doc/posix-functions/readdir_r.texi: Likewise.
7219         * doc/posix-functions/rewinddir.texi: Likewise.
7220         * doc/posix-functions/scandir.texi: Likewise.
7221         * doc/posix-functions/seekdir.texi: Likewise.
7222         * doc/posix-functions/setrlimit.texi: Likewise.
7223         * doc/posix-functions/statvfs.texi: Likewise.
7224         * doc/posix-functions/telldir.texi: Likewise.
7225         * doc/posix-functions/tmpfile.texi: Likewise.
7226         * doc/posix-functions/truncate.texi: Likewise.
7227         * doc/glibc-functions/fallocate.texi: Likewise.
7228         * doc/glibc-functions/fstatfs.texi: Likewise.
7229         * doc/glibc-functions/fts_children.texi: Likewise.
7230         * doc/glibc-functions/fts_read.texi: Likewise.
7231         * doc/glibc-functions/getdirentries.texi: Likewise.
7232         * doc/glibc-functions/mkostemp.texi: Likewise.
7233         * doc/glibc-functions/mkostemps.texi: Likewise.
7234         * doc/glibc-functions/mkstemps.texi: Likewise.
7235         * doc/glibc-functions/preadv.texi: Likewise.
7236         * doc/glibc-functions/pwritev.texi: Likewise.
7237         * doc/glibc-functions/sendfile.texi: Likewise.
7238         * doc/glibc-functions/statfs.texi: Likewise.
7240 2011-07-24  Bruno Haible  <bruno@clisp.org>
7242         doc: Fix typo.
7243         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7245 2011-07-24  Bruno Haible  <bruno@clisp.org>
7247         doc: Mention fsusage.
7248         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7250 2011-07-24  Bruno Haible  <bruno@clisp.org>
7252         doc: Mention new glibc headers and functions.
7253         * doc/glibc-headers/gshadow.texi: New file.
7254         * doc/glibc-functions/endsgent.texi: New file.
7255         * doc/glibc-functions/fgetsgent.texi: New file.
7256         * doc/glibc-functions/fgetsgent_r.texi: New file.
7257         * doc/glibc-functions/getsgent.texi: New file.
7258         * doc/glibc-functions/getsgent_r.texi: New file.
7259         * doc/glibc-functions/getsgnam.texi: New file.
7260         * doc/glibc-functions/getsgnam_r.texi: New file.
7261         * doc/glibc-functions/putsgent.texi: New file.
7262         * doc/glibc-functions/setsgent.texi: New file.
7263         * doc/glibc-functions/sgetsgent.texi: New file.
7264         * doc/glibc-functions/sgetsgent_r.texi: New file.
7265         * doc/glibc-functions/malloc_info.texi: New file.
7266         * doc/glibc-functions/preadv.texi: New file.
7267         * doc/glibc-functions/pwritev.texi: New file.
7268         * doc/glibc-functions/register_printf_modifier.texi: New file.
7269         * doc/glibc-functions/register_printf_specifier.texi: New file.
7270         * doc/glibc-functions/register_printf_type.texi: New file.
7271         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7272         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7273         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7274         * doc/glibc-functions/pthread_getname_np.texi: New file.
7275         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7276         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7277         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7278         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7279         * doc/glibc-functions/pthread_setname_np.texi: New file.
7280         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7281         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7282         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7283         * doc/glibc-functions/qsort_r.texi: New file.
7284         * doc/glibc-functions/quick_exit.texi: New file.
7285         * doc/glibc-functions/syncfs.texi: New file.
7286         * doc/gnulib.texi: Include them.
7287         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7288         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7289         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7290         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7291         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7292         * doc/glibc-functions/execvpe.texi: Likewise.
7294 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7296         ftell: don't include <unistd.h>
7297         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7298         guaranteed to define off_t, and the ftell module depends on the
7299         stdio module.
7301         ftell: do not assume wraparound signed arithmetic
7302         * lib/ftell.c: Include <limits.h>.
7303         (ftell): Don't assume wraparound signed arithmetic.
7305 2011-07-24  Bruno Haible  <bruno@clisp.org>
7307         close: No longer depend on module 'fclose'.
7308         * modules/close (Depends-on): Remove fclose.
7309         * NEWS: Mention the change.
7310         Suggested by Sam Steingold <sds@gnu.org>.
7312 2011-07-24  Bruno Haible  <bruno@clisp.org>
7314         fsusage: Enable large volume support on AIX >= 5.2.
7315         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7316         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7317         instead of STAT_STATVFS.
7318         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7320         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7322         f_blocks field only on MacOS X.
7324         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7326         * modules/fsusage (Depends-on): Add largefile.
7328 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7330         * README: Modernize discussion of signed integers.
7331         Assuming overflow wraparound is no longer safe.
7332         Mention ones' complement and signed magnitude.
7334 2011-07-22  Bruno Haible  <bruno@clisp.org>
7336         select tests, pselect tests: Refactor.
7337         * tests/test-select.h: New file, extracted from tests/test-select.c.
7338         (select_fn): New type.
7339         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7340         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7341         test_pipe): Add my_select argument.
7342         (test_function): Renamed from main. Add my_select argument.
7343         * tests/test-select.c: Move most code to tests/test-select.h. Include
7344         test-select.h.
7345         * modules/select-tests (Files): Add tests/test-select.h.
7346         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7347         (my_select, main): New functions.
7348         * modules/pselect-tests (Files): Add tests/test-select.h,
7349         tests/macros.h, tests/signature.h.
7350         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7351         (configure.ac): Check for <sys/wait.h>.
7353 2011-07-22  Bruno Haible  <bruno@clisp.org>
7355         sys_select tests: Check the signature of FD_*.
7356         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7357         signature tests from here...
7358         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7359         here.
7360         * modules/sys_select-tests (Files): Add tests/signature.h.
7362 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7364         largefile: new module, replacing large-inode
7365         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
7366         * MODULES.html.sh: Add largefile, remove large-inode.
7367         * modules/largefile, m4/largefile.m4: New files.
7368         * modules/large-inode, m4/large-inode.m4: Remove.
7370         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7372         implementations that use only 32 bits to count blocks.
7373         On typical hosts with 1024-byte blocks, this fails with file
7374         systems as small as 4 TiB.  Problem reported by Herb Wartens
7375         <http://debbugs.gnu.org/9140> and this should also fix a similar
7376         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7378         large-inode: New module
7379         * MODULES.html.sh: Add it.
7380         * modules/large-inode, m4/large-inode.m4: New files.
7382         extensions: Enable extensions on MacOS X 10.5 and later.
7383         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7385 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7387         file-has-acl: use acl_extended_file_nofollow if available
7388         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7389         (acl_extended_file): New macro.
7390         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7391         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7393 2011-07-21  Bruno Haible  <bruno@clisp.org>
7395         Declare system functions in a way that works with C++.
7396         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7397         declare fdopendir as extern "C".
7398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7399         declare frexpl as extern "C".
7400         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7401         declare gai_strerror as extern "C".
7402         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7403         programs, declare gai_strerror as extern "C".
7404         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7405         declare getlogin_r as extern "C".
7406         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7407         as extern "C".
7408         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7409         declare ldexpl as extern "C".
7410         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7411         as extern "C".
7412         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7413         program, declare getmntinfo as extern "C".
7414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7415         stpncpy as extern "C".
7416         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7417         program, declare __xpg_strerror_r as extern "C".
7418         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7419         strndup as extern "C".
7420         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7421         declare memset and bzero as extern "C".
7422         Reported by Sam Steingold <sds@gnu.org>.
7424 2011-07-12  Jim Meyering  <meyering@redhat.com>
7426         maint.mk: prohibit inclusion of "verify.h" without use
7427         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7429 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7431         timer-time: A new module to check for timer_settime()
7432         * m4/timer_time.m4: Check for the posix function.
7433         * modules/timer-time: Add the new module.
7434         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7435         Mention it.
7437 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7438             Bruno Haible  <bruno@clisp.org>
7440         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7441         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7442         not defined, assume POSIX threads and look for pthread_sigmask in
7443         $LIBS, without changing $CPPFLAGS.
7445 2011-07-19  Bruno Haible  <bruno@clisp.org>
7447         strstr: Update cross-compilation guess.
7448         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7449         CPUs, guess no, in view of glibc
7450         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7451         Suggested by Eric Blake. Reported by Reuben Thomas.
7453 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7455         getopt-gnu: suppress core dumps from detection code
7456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7457         to suppress core dumps that may well occur on glibc systems.
7458         * modules/getopt-gnu: Depend on nocrash.
7460 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7462         pthread_sigmask: ensure usleep is declared
7463         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7464         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7466 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7468         doc: Document NonStop portability issues.
7469         * doc/posix-functions/sigaction.texi (sigaction):
7470         * doc/posix-headers/signal.texi (signal.h):
7471         Document NonStop.  See Joachim Schmitz in
7472         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7474 2011-07-15  Bruno Haible  <bruno@clisp.org>
7476         ffsl, ffsll: Avoid unportable behaviour.
7477         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7479 2011-07-15  Bruno Haible  <bruno@clisp.org>
7481         ffs: More tests.
7482         * tests/test-ffs.c (NBITS): New macro.
7483         (main): Add more tests.
7484         * tests/test-ffsl.c (NBITS): New macro.
7485         (main): Add more tests.
7486         * tests/test-ffsll.c (NBITS): New macro.
7487         (main): Add more tests.
7489 2011-07-15  Eric Blake  <eblake@redhat.com>
7491         ffsl, ffsll: new modules
7492         * modules/ffsl: New file.
7493         * modules/ffsll: Likewise.
7494         * m4/ffsl.m4: Likewise.
7495         * m4/ffsll.m4: Likewise.
7496         * lib/ffsl.c: Likewise.
7497         * lib/ffsl.h: Likewise.
7498         * lib/ffsll.c: Likewise.
7499         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7500         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7501         * modules/string (Makefile.am): Substitute witnesses.
7502         * lib/strings.in.h (ffsl, ffsll): Declare.
7503         * modules/ffsl-tests: New test file.
7504         * modules/ffsll-tests: Likewise.
7505         * tests/test-ffsl.c: Likewise.
7506         * tests/test-ffsll.c: Likewise.
7507         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7508         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7509         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7511         ffs: fix m4 prerequisite
7512         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7514         ffs: avoid undefined behavior
7515         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7516         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7517         Reported by Bruno Haible.
7519 2011-07-12  Bruno Haible  <bruno@clisp.org>
7521         pthread_sigmask: Rely on module 'threadlib'.
7522         * modules/pthread_sigmask (Depends-on): Add threadlib.
7523         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7524         is defined.
7526 2011-07-12  Bruno Haible  <bruno@clisp.org>
7528         regex: Depend on module 'strcase'.
7529         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7531 2011-07-12  Jim Meyering  <meyering@redhat.com>
7533         warn-on-use: fix typo in file name
7534         * modules/snippet/warn-on-use (Files): Correct file name:
7535         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7537 2011-07-12  Bruno Haible  <bruno@clisp.org>
7539         strings: Document module.
7540         * doc/posix-headers/strings.texi: Mention module 'strings'.
7542 2011-07-12  Bruno Haible  <bruno@clisp.org>
7544         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7545         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7546         (Files, Makefile.am): Update.
7547         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7548         * modules/stdlib (Depends-on): Update.
7550 2011-07-12  Bruno Haible  <bruno@clisp.org>
7552         * NEWS: Mention the changes.
7554         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7555         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7556         (Files, Makefile.am): Update.
7557         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7558         * modules/arpa_inet (Depends-on): Update.
7559         * modules/ctype (Depends-on): Update.
7560         * modules/dirent (Depends-on): Update.
7561         * modules/fcntl-h (Depends-on): Update.
7562         * modules/glob (Depends-on): Update.
7563         * modules/iconv-h (Depends-on): Update.
7564         * modules/inttypes-incomplete (Depends-on): Update.
7565         * modules/langinfo (Depends-on): Update.
7566         * modules/locale (Depends-on): Update.
7567         * modules/math (Depends-on): Update.
7568         * modules/netdb (Depends-on): Update.
7569         * modules/poll-h (Depends-on): Update.
7570         * modules/pty (Depends-on): Update.
7571         * modules/search (Depends-on): Update.
7572         * modules/signal (Depends-on): Update.
7573         * modules/spawn (Depends-on): Update.
7574         * modules/stdio (Depends-on): Update.
7575         * modules/stdlib (Depends-on): Update.
7576         * modules/string (Depends-on): Update.
7577         * modules/strings (Depends-on): Update.
7578         * modules/sys_file (Depends-on): Update.
7579         * modules/sys_ioctl (Depends-on): Update.
7580         * modules/sys_select (Depends-on): Update.
7581         * modules/sys_socket (Depends-on): Update.
7582         * modules/sys_stat (Depends-on): Update.
7583         * modules/sys_time (Depends-on): Update.
7584         * modules/sys_times (Depends-on): Update.
7585         * modules/sys_utsname (Depends-on): Update.
7586         * modules/sys_wait (Depends-on): Update.
7587         * modules/termios (Depends-on): Update.
7588         * modules/time (Depends-on): Update.
7589         * modules/unistd (Depends-on): Update.
7590         * modules/wchar (Depends-on): Update.
7591         * modules/wctype-h (Depends-on): Update.
7592         * MODULES.html.sh (Support for building libraries and executables):
7593         Update.
7595         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7596         * modules/snippet/unused-parameter: Renamed from
7597         modules/unused-parameter.
7598         (Files, Makefile.am): Update.
7599         * build-aux/snippet/unused-parameter.h: Renamed from
7600         build-aux/unused-parameter.h.
7601         * modules/selinux-h (Depends-on): Update.
7602         * modules/unistr/base (Depends-on): Update.
7603         * MODULES.html.sh (Core language properties): Update.
7605         Rename module 'link-warning' to 'snippet/link-warning'.
7606         * modules/snippet/link-warning: Renamed from modules/link-warning.
7607         (Files, Makefile.am): Update.
7608         * build-aux/snippet/link-warning.h: Renamed from
7609         build-aux/link-warning.h.
7610         * MODULES.html.sh (Support for building libraries and executables):
7611         Update.
7613         Rename module 'c++defs' to 'snippet/c++defs'.
7614         * modules/snippet/c++defs: Renamed from modules/c++defs.
7615         (Files, Makefile.am): Update.
7616         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7617         * modules/arpa_inet (Depends-on): Update.
7618         * modules/ctype (Depends-on): Update.
7619         * modules/dirent (Depends-on): Update.
7620         * modules/fcntl-h (Depends-on): Update.
7621         * modules/glob (Depends-on): Update.
7622         * modules/iconv-h (Depends-on): Update.
7623         * modules/langinfo (Depends-on): Update.
7624         * modules/locale (Depends-on): Update.
7625         * modules/math (Depends-on): Update.
7626         * modules/netdb (Depends-on): Update.
7627         * modules/poll-h (Depends-on): Update.
7628         * modules/pty (Depends-on): Update.
7629         * modules/search (Depends-on): Update.
7630         * modules/signal (Depends-on): Update.
7631         * modules/spawn (Depends-on): Update.
7632         * modules/stdio (Depends-on): Update.
7633         * modules/stdlib (Depends-on): Update.
7634         * modules/string (Depends-on): Update.
7635         * modules/strings (Depends-on): Update.
7636         * modules/sys_ioctl (Depends-on): Update.
7637         * modules/sys_select (Depends-on): Update.
7638         * modules/sys_socket (Depends-on): Update.
7639         * modules/sys_stat (Depends-on): Update.
7640         * modules/sys_time (Depends-on): Update.
7641         * modules/sys_wait (Depends-on): Update.
7642         * modules/termios (Depends-on): Update.
7643         * modules/time (Depends-on): Update.
7644         * modules/unistd (Depends-on): Update.
7645         * modules/wchar (Depends-on): Update.
7646         * modules/wctype-h (Depends-on): Update.
7648         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7649         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7650         (Files, Makefile.am): Update.
7651         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7652         * modules/argv-iter (Depends-on): Update.
7653         * modules/arpa_inet (Depends-on): Update.
7654         * modules/dirent (Depends-on): Update.
7655         * modules/fcntl-h (Depends-on): Update.
7656         * modules/fnmatch (Depends-on): Update.
7657         * modules/getopt-posix (Depends-on): Update.
7658         * modules/glob (Depends-on): Update.
7659         * modules/iconv-h (Depends-on): Update.
7660         * modules/inttypes-incomplete (Depends-on): Update.
7661         * modules/locale (Depends-on): Update.
7662         * modules/math (Depends-on): Update.
7663         * modules/netdb (Depends-on): Update.
7664         * modules/search (Depends-on): Update.
7665         * modules/signal (Depends-on): Update.
7666         * modules/spawn (Depends-on): Update.
7667         * modules/stdio (Depends-on): Update.
7668         * modules/stdlib (Depends-on): Update.
7669         * modules/string (Depends-on): Update.
7670         * modules/strings (Depends-on): Update.
7671         * modules/sys_socket (Depends-on): Update.
7672         * modules/sys_stat (Depends-on): Update.
7673         * modules/sys_time (Depends-on): Update.
7674         * modules/sys_times (Depends-on): Update.
7675         * modules/sys_utsname (Depends-on): Update.
7676         * modules/time (Depends-on): Update.
7677         * modules/unistd (Depends-on): Update.
7678         * modules/wchar (Depends-on): Update.
7679         * MODULES.html.sh (Support for building libraries and executables):
7680         Update.
7682 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7684         Improvements on _Noreturn and related modules.
7686         modules/_Exit-tests: test _Noreturn too
7687         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7688         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7689         (main): Use them.
7691         stdnoreturn, stdnoreturn-tests: remove modules
7692         They're not needed here and a bit premature for use elsewhere.  See
7693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7694         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7695         * tests/test-stdnoreturn.c: Remove files.
7696         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7697         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7698         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7699         and using noreturn.
7700         * modules/openat, modules/sigpipe-die, modules/xalloc:
7701         * modules/xmemdup0, modules/xstrtol:
7702         Remove dependency on stdnoreturn.
7704         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7705         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7706         Reparenthesize to avoid GCC warning.
7707         Support Microsoft's syntax.
7708         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7710         _Noreturn-tests: remove module
7711         * modules/_Noreturn-tests: Remove.
7712         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7713         * tests/test-_Noreturn.c: Remove.
7714         * tests/test-stdnoreturn.c: Merge from the old
7715         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7717 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7719         _Noreturn, stdnoreturn, and related modules.
7721         * top/maint.mk: Adjust to new noreturn support.
7722         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7723         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7725         xalloc: use stdnoreturn.h
7726         * lib/xalloc.h: Include <stdnoreturn.h>.
7727         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7728         * modules/xalloc (Depends-on): Add stdnoreturn.
7730         xstrtol: use stdnoreturn.h
7731         * lib/xstrtol.h: Include <stdnoreturn.h>.
7732         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7733         * modules/xstrtol (Depends-on): Add stdnoreturn.
7735         xmemdup0: use stdnoreturn.h
7736         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7737         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7738         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7740         sigpipe-die: use stdnoreturn.h
7741         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7742         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7743         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7745         openat: use stdnoreturn.h
7746         * lib/openat.h: Include <stdnoreturn.h>.
7747         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7748         * modules/openat (Depends-on): Add stdnoreturn.
7750         * lib/openat-die.c (openat_save_fail): Modernize comment.
7752         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7754         * lib/glthread/thread.h: Modernize comment.
7756         obstack: use _Noreturn
7757         * lib/obstack.c (__attribute__): Remove macro.
7758         (print_and_abort): Use _Noreturn.
7760         c-stack: use _Noreturn
7761         * lib/c-stack.c (die, overflow_handler, segv_handler):
7762         Use _Noreturn rather than __attribute__((noreturn)).
7764         argmatch-tests, exclude_tests: use _Noreturn
7765         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7766         Remove.
7767         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7769         stdlib: use _Noreturn
7770         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7771         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7772         * modules/stdlib (Depends-on): Add _Noreturn.
7773         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7775         stdnoreturn-tests: new module
7776         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7778         stdnoreturn: new module
7779         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7780         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7782         _Noreturn-tests: new module
7783         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7785         _Noreturn: new module
7786         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7787         New section, mentioning it.
7788         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7790         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7792 2011-07-11  Eric Blake  <eblake@redhat.com>
7794         ffs: new module
7795         * modules/ffs: New file.
7796         * m4/ffs.m4: Likewise.
7797         * lib/ffs.c: Likewise.
7798         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7799         * modules/strings (Makefile.am): Substitute witness.
7800         (Depends-on): Add c++defs.
7801         * lib/strings.in.h (ffs): Declare.
7802         * modules/ffs-tests: New test file.
7803         * tests/test-ffs.c: Test new module.
7804         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7805         * doc/posix-functions/ffs.texi (ffs): Likewise.
7807         regex: avoid compiler warning
7808         * lib/regex.c (includes): Include <strings.h>, for use of
7809         strcasecmp in regcomp.c.
7810         Reported by Joachim Schmitz.
7812 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7814         stdint: respect system's intmax_t if INTMAX_MAX
7815         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7816         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7817         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7818         long but int64_t is long long, and where we will clash with the
7819         system intmax_t if we override it.  See
7820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7821         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7822         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7823         similarly for UINTMAX_C.
7825 2011-07-08  Bruno Haible  <bruno@clisp.org>
7827         pthread_sigmask tests: Avoid a compiler warning.
7828         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7829         non-zero.
7831         sigprocmask tests: A better way to avoid a compiler warning.
7832         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7833         (main): Complain if system() returns non-zero.
7834         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7836 2011-07-08  Bruno Haible  <bruno@clisp.org>
7838         pthread_sigmask: Work around IRIX bug.
7839         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7840         bug.
7841         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7842         there may be unblocked pending signals.
7843         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7845 2011-07-08  Bruno Haible  <bruno@clisp.org>
7847         pthread_sigmask: Work around Cygwin bug.
7848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7849         bug.
7850         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7851         the system's pthread_sigmask function.
7852         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7854 2011-07-08  Bruno Haible  <bruno@clisp.org>
7856         pthread_sigmask: Work around bug in single-threaded implementation.
7857         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7858         FreeBSD, HP-UX, Solaris bug.
7859         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7860         * lib/pthread_sigmask.c: Include <stddef.h>.
7861         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7862         the system's pthread_sigmask function.
7863         * modules/pthread_sigmask (configure.ac): Invoke
7864         gl_PREREQ_PTHREAD_SIGMASK.
7865         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7866         HP-UX, Solaris.
7868 2011-07-08  Eric Blake  <eblake@redhat.com>
7870         test-sigprocmask: avoid compiler warning
7871         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7872         * tests/test-sigprocmask.c (main): Use it to silence warning.
7873         Reported by Jim Meyering.
7875         test-snprintf: avoid compiler warning
7876         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7877         * tests/test-vsnprintf.c (main): Likewise.
7878         Reported by Jim Meyering.
7880 2011-07-08  Bruno Haible  <bruno@clisp.org>
7882         Tests for module 'pthread_sigmask'.
7883         * modules/pthread_sigmask-tests: New file.
7884         * tests/test-pthread_sigmask1.c: New file, based on
7885         tests/test-sigprocmask.c.
7886         * tests/test-pthread_sigmask2.c: New file.
7888 2011-07-08  Jim Meyering  <meyering@redhat.com>
7890         test-getopt.h: avoid warning about an unused variable
7891         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7893 2011-07-07  Jim Meyering  <meyering@redhat.com>
7895         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7896         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7897         now that it no longer contains leading TABs.
7898         Remove unused "url=FIXME" statement.
7900 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7902         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7904         When gl_THREADLIB is not in use, assume that the POSIX sematics
7905         are desired.  This is better for Emacs, which uses POSIX semantics
7906         on GNUish and/or POSIXish platforms, and does not use threads at
7907         all otherwise.
7909         pthread_sigmask: fix typo when testing for libraries
7910         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7911         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7913 2011-07-08  Eric Blake  <eblake@redhat.com>
7915         fts: introduce FTS_NOATIME
7916         * lib/fts_.h (FTS_NOATIME): New bit flag.
7917         (FTS_OPTIONMASK): Adjust.
7918         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7919         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7921 2011-07-08  Bruno Haible  <bruno@clisp.org>
7923         Tests for module 'thread'.
7924         * modules/thread-tests: New file.
7925         * tests/test-thread_self.c: New file.
7926         * tests/test-thread_create.cc: New file.
7928 2011-07-08  Bruno Haible  <bruno@clisp.org>
7930         thread: Avoid gcc warnings when using gl_thread_self().
7931         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7932         'void *'.
7933         (gl_thread_self_pointer): Update.
7935 2011-07-07  Bruno Haible  <bruno@clisp.org>
7937         signal-c++-tests: Check declaration of pthread_sigmask.
7938         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7939         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7940         $(LIB_PTHREAD_SIGMASK).
7942 2011-07-07  Bruno Haible  <bruno@clisp.org>
7944         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7945         * lib/signal.in.h (pthread_sigmask): Override if
7946         REPLACE_PTHREAD_SIGMASK is 1.
7947         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7948         REPLACE_PTHREAD_SIGMASK.
7949         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7950         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7951         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7952         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7953         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7955 2011-07-07  Bruno Haible  <bruno@clisp.org>
7957         pthread_sigmask: Ensure declaration in <signal.h>.
7958         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7959         include <pthread.h>.
7960         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7961         problem.
7963 2011-07-07  Bruno Haible  <bruno@clisp.org>
7965         pthread_sigmask: Document the module.
7966         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7968 2011-07-07  Bruno Haible  <bruno@clisp.org>
7970         pthread_sigmask: Follow gnulib conventions.
7971         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7972         gl_PTHREAD_SIGMASK.
7973         * modules/pthread_sigmask (configure.ac): Update.
7975 2011-07-07  Bruno Haible  <bruno@clisp.org>
7977         pthread_sigmask: Make declaration C++ safe.
7978         * lib/signal.in.h: In two special conditions, just do an #include_next.
7979         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7980         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7981         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7982         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7983         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7984         not REPLACE_PTHREAD_MASK.
7985         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7986         not REPLACE_PTHREAD_MASK.
7987         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7989 2011-07-07  Bruno Haible  <bruno@clisp.org>
7991         pthread_sigmask: Fix return value.
7992         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7993         * lib/pthread_sigmask.c: New file.
7994         * modules/pthread_sigmask (Files): Add it.
7995         (configure.ac): Invoke AC_LIBOBJ.
7997 2011-07-07  Eric Blake  <eblake@redhat.com>
7999         getopt: more portable argv creation
8000         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8001         const, use char arrays rather than strings.
8002         Suggested by Paul Eggert.
8004 2011-07-07  Bruno Haible  <bruno@clisp.org>
8006         Tests for module 'sigprocmask'.
8007         * modules/sigprocmask-tests: New file.
8008         * tests/test-sigprocmask.c: New file.
8010 2011-07-07  Bruno Haible  <bruno@clisp.org>
8012         float tests: Tweak.
8013         * tests/test-float.c (main): Tweak skip message.
8015 2011-07-07  Eric Blake  <eblake@redhat.com>
8017         getopt: avoid compiler warning during configure
8018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8019         assigning string literals to non-const pointer.
8021         getopt-gnu: avoid crash in glibc getopt
8022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8023         * tests/test-getopt.h (test_getopt): Enhance test.
8024         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8025         * doc/posix-functions/getopt.texi (getopt): Document it.
8026         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8027         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8028         Likewise.
8030 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8032         getopt: handle W; without long options in getopt [BZ #12922]
8033         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8034         but no long options are defined, just return 'W'.
8036 2011-07-07  Bruno Haible  <bruno@clisp.org>
8038         Avoid literal tabs.
8039         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8040         variable containing a tab instead of a literal tab.
8041         Reported by Jim Meyering.
8043 2011-07-07  Bruno Haible  <bruno@clisp.org>
8045         Comments.
8046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8048 2011-07-06  Bruno Haible  <bruno@clisp.org>
8050         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8051         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8052         <winsock2.h>.
8053         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8054         lib/sys_socket.in.h.
8055         (close, gethostname): Hide declarations from <winsock2.h>.
8056         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8057         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8058         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8059         (select): Don't override if gnulib's <sys/select.h> was already
8060         included.
8061         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8062         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8063         setsockopt, shutdown, select): Tweak indentation.
8065 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8067         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8068         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8069         in an application that does not use the sys_select module.
8071 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8073         poll: do not return 0 on timeout=-1
8074         * lib/poll.c: Loop with yield if no events occured
8076 2011-07-06  Eric Blake  <eblake@redhat.com>
8078         pthread_sigmask: always replace when not using pthread
8079         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8080         replacement when using some threading other than pthread.  Fix
8081         logic bug.
8083 2011-07-06  Bruno Haible  <bruno@clisp.org>
8085         Comments.
8086         * m4/printf.m4: Update comments about mingw.
8088 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8090         sys_select: define sigset_t more portably
8091         * lib/sys_select.in.h: Always include <sys/types.h>, since
8092         we now need sigset_t and mingw defines it there.
8093         Include <signal.h> before split inclusion guard, to avoid
8094         mishaps on Solaris, whose <signal.h> eventually includes us.
8095         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8096         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8097         which come from ...
8098         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8099         gl_CHECK_TYPE_SIGSET_T.
8100         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8101         does the real work.
8102         * modules/sys_select (Depends-on): Add 'signal'.
8104         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8105         Suggested by Bruno Haible.
8107         pselect: Use pthread_sigmask, not sigprocmask.
8108         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8109         multithreaded apps better than sigprocmask does.
8110         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8111         sigprocmask directly.
8113 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8115         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8116         Don't #undef,  since we don't need any underlying pselect.
8117         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8118         (Depends-on): Add select.
8119         (Link): Add $(LIBSOCKET).
8120         These changes suggested by Bruno Haible.
8122         pselect: document better
8123         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8124         * doc/posix-functions/pselect.texi (pselect): Document new module.
8126         pthread_sigmask: new module
8127         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8128         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8129         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8130         This is done only as a macro; I don't know how well that'll
8131         work for C++.  Move <sys/types.h> include before the include_next,
8132         to avoid mishap on Solaris.
8133         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8134         * modules/signal (Makefile.am): Substitute the check's results.
8135         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8137         test-pselect: new module
8138         * modules/pselect-tests, tests/test-pselect.c: New files.
8139         * tests/test-select.c, tests/test-sys_select-c++.cc:
8140         If TEST_PSELECT is defined, test pselect instead of testing select.
8142         * tests/test-sys_select.c (sigset_t): Test for it, too.
8143         Suggested by Bruno Haible.
8145 2011-07-05  Eric Blake  <eblake@redhat.com>
8147         snprintf: guarantee %1$d, for libintl
8148         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8149         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8150         * doc/posix-functions/snprintf.texi (snprintf): Update.
8151         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8152         * tests/test-snprintf.c (main): Enhance test.
8153         * tests/test-vsnprintf.c (main): Likewise.
8155 2011-07-05  Jim Meyering  <meyering@redhat.com>
8157         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8158         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8159         per Bruno's request, to accommodate this idiom (no space after "#")
8160         even when the function is inside an #if block:
8161         char *
8162         gets (char *s)
8163         #undef gets
8164         {
8165           ...
8166         }
8168 2011-07-04  Jim Meyering  <meyering@redhat.com>
8170         maint: indent with spaces, not TABs, and add a rule to check this
8171         * tests/test-userspec.c: Indent with spaces, not TABs.
8172         * tests/test-argp.c: Likewise.
8173         * tests/test-c-stack2.sh: Likewise.
8174         * tests/test-parse-duration.sh: Likewise
8175         * m4/strtod.m4: Likewise.
8176         * m4/alloca.m4: Likewise.
8177         * m4/pselect.m4: Likewise.
8178         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8180 2011-07-03  Jim Meyering  <meyering@redhat.com>
8182         maint.mk: correct omissions in prohibit_argmatch_without_use check
8183         This rule would mistakenly report that argmatch.h is included without
8184         use even when both the argmatch and invalid_arg macro were used.
8185         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8186         of argmatch and invalid_arg.
8188 2011-07-03  Bruno Haible  <bruno@clisp.org>
8190         Comments about EINTR.
8191         * lib/safe-read.h: Explain the purpose of this module.
8192         * lib/safe-write.h: Likewise.
8193         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8194         module.
8195         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8196         module.
8197         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8199 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8201         xnanosleep: Rewrite to use new dtotimespec module.
8202         It has the conversion code that used to be in xnanosleep.
8203         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8204         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8205         (TIME_T_MAX): Remove.
8206         (xnanosleep): Rewrite in terms of dtotimespec.
8207         * modules/xnanosleep (Depends-on): Add dtotimespec.
8208         Remove intprops, stdbool.
8210         timespec-add, timespec-sub: new modules
8211         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8212         * lib/timespec-add.c, lib/timespec-sub.c:
8213         * modules/timespec-add, modules/timespec-sub: New files.
8215         dtotimespec: new module
8216         * lib/timespec.h (dtotimespec): New decl.
8217         * lib/dtotimespec.c, modules/dtotimespec: New files.
8219         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8221         pselect: new module
8222         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8223         (pselect): New decls.
8224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8225         since the standard pselect decl uses 'restrict'.
8226         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8227         HAVE_PSELECT, REPLACE_PSELECT.
8228         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8229         HAVE_PSELECT, REPLACE_PSELECT.
8230         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8232         sys_select: don't depend on sys_socket
8233         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8235         This fix works on GNU and GNU-like platforms, but has not been tested
8236         on native Windows.
8237         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8239         gl_HEADER_SYS_SOCKET.
8240         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8241         gl_PREREQ_SYS_H_WINSOCK2.
8243 2011-06-29  Eric Blake  <eblake@redhat.com>
8245         pipe2: fix C89 compile problem
8246         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8247         Reported by Bruno Haible.
8249         pipe, pipe2: don't corrupt fd on error
8250         * lib/pipe.c (pipe): Leave fd unchanged on error.
8251         * lib/pipe2.c (pipe2): Likewise.
8252         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8253         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8255 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8257         mmap-anon: do not use regular expressions inadvertently
8258         * m4/mmap-anon.m4: Remove trailing period from strings sought
8259         in the output.
8261 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8263         nanosleep: fix integer overflow problem
8264         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8265         arithmetic wraps around on overflow.
8267         nanosleep: simplify carrying
8268         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8269         first call to the underyling nanosleep, not for the last one.
8270         This doesn't fix any bugs, but it simplifies the computation of
8271         the remaining delay.  Found while auditing integer overflow issues.
8273         dup2: remove test for existence of fcntl
8274         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8275         "#if HAVE_FCNTL", in the configure-time test program.
8276         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8277         and therefore speeds up "configure" a bit.  Found while
8278         adding the dup2 module to Emacs.
8280 2011-06-24  Eric Blake  <eblake@redhat.com>
8282         maint.mk: enhance useless header checks
8283         * top/maint.mk (_sc_header_without_use): Check both include
8284         styles.
8285         (sc_prohibit_assert_without_use)
8286         (sc_prohibit_close_stream_without_use)
8287         (sc_prohibit_getopt_without_use)
8288         (sc_prohibit_quotearg_without_use)
8289         (sc_prohibit_quote_without_use)
8290         (sc_prohibit_long_options_without_use)
8291         (sc_prohibit_inttostr_without_use)
8292         (sc_prohibit_ignore_value_without_use)
8293         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8294         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8295         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8296         (sc_prohibit_hash_pjw_without_use)
8297         (sc_prohibit_safe_read_without_use)
8298         (sc_prohibit_argmatch_without_use)
8299         (sc_prohibit_canonicalize_without_use)
8300         (sc_prohibit_root_dev_ino_without_use)
8301         (sc_prohibit_openat_without_use)
8302         (sc_prohibit_c_ctype_without_use)
8303         (sc_prohibit_signal_without_use)
8304         (sc_prohibit_stdio--_without_use)
8305         (sc_prohibit_stdio-safer_without_use)
8306         (sc_prohibit_strings_without_use)
8307         (sc_prohibit_intprops_without_use)
8308         (sc_prohibit_stddef_without_use)
8309         (sc_prohibit_xfreopen_without_use): Update clients.
8311 2011-06-24  Jim Meyering  <meyering@redhat.com>
8313         syntax-check: keep one maint.mk rule in sync with its header
8314         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8315         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8316         I prefer to avoid temporary files here, so use <(...), but that
8317         is not supported by /bin/sh, so...
8318         (SHELL): Define to /bin/bash.
8320 2011-06-24  Eric Blake  <eblake@redhat.com>
8322         maint.mk: update sc_prohibit_intprops_without_use
8323         * top/maint.mk (_intprops_names): Match recent changes.
8325 2011-06-24  Bruno Haible  <bruno@clisp.org>
8327         strerror-override: No-op tweak.
8328         * lib/strerror-override.h (strerror_override): Reorder conditions,
8329         for consistency with lib/strerror-override.c.
8331 2011-06-23  Eric Blake  <eblake@redhat.com>
8333         maint.mk: test further PATH_MAX issues
8334         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8335         (sc_prohibit_path_max_allocation): ...and also test alloca.
8336         Suggested by Jim Meyering.
8338 2011-06-22  Eric Blake  <eblake@redhat.com>
8340         maint.mk: add syntax-check to avoid char[PATH_MAX]
8341         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8343         stat: be robust to PATH_MAX definition
8344         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8345         * modules/stat (Depends-on): Add verify.
8347         link: work around IRIX bug
8348         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8349         * lib/link.c (rpl_link): Work around it.
8350         * tests/test-link.h (test_link): Enhance test.
8351         * doc/posix-functions/link.texi (link): Document the bug.
8353         getopt: silence clang warning
8354         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8355         dereference.
8356         Reported by Gustavo Martin Domato.
8358 2011-06-22  Jim Meyering  <meyering@redhat.com>
8360         bootstrap: do not insert a blank line into each .gitignore file
8361         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8363 2011-06-21  Eric Blake  <eblake@redhat.com>
8365         perror: test for output mismatch
8366         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8367         perror on IRIX.
8369         strerror_r: fix OpenBSD behavior on out-of-range
8370         * lib/strerror_r.c (strerror_r): Always use maximal string.
8371         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8373         strerror_r: fix OpenBSD behavior on 0
8374         * lib/strerror-override.c (strerror_override): Also override 0
8375         when needed.
8376         * lib/strerror-override.h (strerror_override): Likewise.
8377         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8378         earlier.
8379         * lib/strerror_r.c (strerror_r): Likewise.
8380         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8381         behavior...
8382         (gl_FUNC_STRERROR_0): ...into new macro.
8383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8384         is overridden.
8385         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8386         * modules/strerror-override (Files): Add strerror.m4.
8387         (configure.ac): Also provide override for 0 when needed.
8388         * doc/posix-functions/strerror.texi (strerror): Document this.
8389         * doc/posix-functions/perror.texi (perror): Likewise.
8391         perror: adjust array size
8392         * modules/perror (Depends-on): Add strerror-override.
8393         * lib/perror.c (perror): Use it to avoid magic number.
8395         strerror-override: reduce size
8396         * lib/strerror-override.c (strerror_override): Use fewer lines.
8398 2011-06-20  Bruno Haible  <bruno@clisp.org>
8400         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8401         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8403 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8405         alloca: port to compilers that can optimize like GCC 4.6.0
8406         * lib/alloca.c (find_stack_direction): New signature, taken from
8407         Autoconf git.  This works with GCC 4.6.0.  This code should never
8408         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8409         be used with other compilers that optimize as well as GCC 4.6.0 does.
8410         (alloca): Adjust to new signature.
8411         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8412         New macro, which patches Autoconf in a similar way.
8414         c-stack: stop worrying about stack direction
8415         * lib/c-stack.c (find_stack_direction): Remove.
8416         (segv_handler): Don't worry about stack direction growth, as it's
8417         too much of a pain to configure this correctly, given how compilers
8418         are optimizing-away our stack-growth detection code.  Instead, assume
8419         that any access to just before or just after the stack is OK.
8420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8421         Don't require AC_FUNC_ALLOCA; no longer needed.
8423 2011-06-20  Eric Blake  <eblake@redhat.com>
8425         test-stat: don't allocate PATH_MAX bytes
8426         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8427         PATH_MAX-sized buffer.
8428         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8429         * modules/stat-tests (Depends-on): Likewise.
8430         * tests/test-fstatat.c (includes): Drop pathmax.h.
8431         * tests/test-stat.c (includes): Likewise.
8432         Reported by Bruno Haible.
8434 2011-06-20  Bruno Haible  <bruno@clisp.org>
8436         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8437         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8438         * lib/float.c: New file.
8439         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8440         REPLACE_FLOAT_LDBL.
8441         * modules/float (Files): Add lib/float.c.
8442         (configure.ac): Invoke AC_LIBOBJ.
8443         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8445 2011-06-20  Bruno Haible  <bruno@clisp.org>
8447         Tests for module 'float'.
8448         * modules/float-tests: New file.
8449         * tests/test-float.c: New file.
8451 2011-06-19  Bruno Haible  <bruno@clisp.org>
8453         isinf: Coding style.
8454         * lib/isinf.c: Use GNU coding style.
8456 2011-06-19  Bruno Haible  <bruno@clisp.org>
8458         linkat test: Avoid test failure on AIX 7.1.
8459         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8460         * tests/test-link.h (test_link): Likewise.
8462 2011-06-19  Bruno Haible  <bruno@clisp.org>
8464         pread test: Avoid test failure on OpenBSD 4.9.
8465         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8467 2011-06-19  Bruno Haible  <bruno@clisp.org>
8469         sprintf-posix: Fix test failure on AIX 7.1.
8470         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8471         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8472         on AIX.
8473         * doc/posix-functions/fprintf.texi: Likewise.
8474         * doc/posix-functions/printf.texi: Likewise.
8475         * doc/posix-functions/snprintf.texi: Likewise.
8476         * doc/posix-functions/sprintf.texi: Likewise.
8477         * doc/posix-functions/vdprintf.texi: Likewise.
8478         * doc/posix-functions/vfprintf.texi: Likewise.
8479         * doc/posix-functions/vprintf.texi: Likewise.
8480         * doc/posix-functions/vsnprintf.texi: Likewise.
8481         * doc/posix-functions/vsprintf.texi: Likewise.
8483 2011-06-19  Bruno Haible  <bruno@clisp.org>
8485         roundl-ieee: Fix test failure on AIX 7.1.
8486         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8487         * doc/posix-functions/roundl.texi: Mention problem with negative
8488         arguments.
8490 2011-06-19  Bruno Haible  <bruno@clisp.org>
8492         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8493         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8494         * doc/posix-functions/round.texi: Mention problem with negative
8495         arguments.
8496         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8498 2011-06-19  Bruno Haible  <bruno@clisp.org>
8500         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8501         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8502         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8503         * doc/posix-functions/roundf.texi: Mention problem with negative
8504         arguments.
8505         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8507 2011-06-19  Bruno Haible  <bruno@clisp.org>
8509         ceilf-ieee: Work around bug on MacOS X 10.5.
8510         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8512         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8513         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8514         IEEE compliant, avoid compiler optimizations.
8515         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8516         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8517         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8518         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8519         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8520         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8521         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8523         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8524         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8526 2011-06-19  Bruno Haible  <bruno@clisp.org>
8528         ceilf-ieee: Work around bug on AIX 7.1.
8529         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8530         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8532 2011-06-19  Bruno Haible  <bruno@clisp.org>
8534         ceil-ieee: Work around bug on AIX 7.1.
8535         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8536         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8538 2011-06-18  Bruno Haible  <bruno@clisp.org>
8540         fsync test: Avoid test failure on MacOS X and AIX.
8541         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8542         EINVAL.
8544 2011-06-18  Bruno Haible  <bruno@clisp.org>
8546         openat, fdopendir tests: Fix link errors.
8547         * modules/openat-tests (Depends-on): Add progname.
8548         * modules/fdopendir-tests (Depends-on): Likewise.
8549         * tests/test-fchownat.c: Include progname.h.
8550         (main): Call set_program_name.
8551         * tests/test-fstatat.c: Include progname.h.
8552         (main): Call set_program_name.
8553         * tests/test-mkdirat.c: Include progname.h.
8554         (main): Call set_program_name.
8555         * tests/test-openat.c: Include progname.h.
8556         (main): Call set_program_name.
8557         * tests/test-unlinkat.c: Include progname.h.
8558         (main): Call set_program_name.
8559         * tests/test-fdopendir.c: Include progname.h.
8560         (main): Call set_program_name.
8562 2011-06-18  Bruno Haible  <bruno@clisp.org>
8564         Doc update.
8565         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8566         HP-UX.
8567         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8569 2011-06-18  Bruno Haible  <bruno@clisp.org>
8571         getcwd tests: Avoid compilation error on HP-UX 11.31.
8572         * modules/getcwd-tests (Depends-on): Add pathmax.
8573         * tests/test-getcwd.c: Include pathmax.h.
8575 2011-06-18  Bruno Haible  <bruno@clisp.org>
8577         isfinite, isinf: Fix link error on AIX 6 and 7.
8578         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8579         needed, also test the macro with a 'float' argument.
8580         * m4/isinf.m4 (gl_ISINF): Likewise.
8582 2011-06-18  Bruno Haible  <bruno@clisp.org>
8584         getloadavg: Don't clobber LIBS. Regression from previous commit.
8585         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8586         AC_CHECK_LIB from here...
8587         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8588         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8589         gl_func_getloadavg_done.
8590         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8592 2011-06-18  Bruno Haible  <bruno@clisp.org>
8594         clean-temp: Improve documentation.
8595         * lib/clean-temp.h: Explain better how to use this module.
8596         Reported by John Darrington <john@darrington.wattle.id.au>.
8598 2011-06-17  Bruno Haible  <bruno@clisp.org>
8600         pread, pwrite: Avoid cc warning on AIX.
8601         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8602         (pwrite): Likewise.
8604 2011-06-17  Bruno Haible  <bruno@clisp.org>
8606         spawn-pipe tests: Fix link error.
8607         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8610 2011-06-17  Bruno Haible  <bruno@clisp.org>
8612         Tests: Remove unnecessary dependency.
8613         * modules/canonicalize-tests (Depends-on): Remove progname.
8614         * modules/chown-tests (Depends-on): Likewise.
8615         * modules/dirname-tests (Depends-on): Likewise.
8616         * modules/fdopendir-tests (Depends-on): Likewise.
8617         * modules/fdutimensat-tests (Depends-on): Likewise.
8618         * modules/hash-tests (Depends-on): Likewise.
8619         * modules/lchown-tests (Depends-on): Likewise.
8620         * modules/linkat-tests (Depends-on): Likewise.
8621         * modules/renameat-tests (Depends-on): Likewise.
8622         * modules/spawn-pipe-tests (Depends-on): Likewise.
8623         * modules/utimensat-tests (Depends-on): Likewise.
8625 2011-06-17  Bruno Haible  <bruno@clisp.org>
8627         spawn-pipe tests: Fix link error.
8628         * tests/test-spawn-pipe-child.c: Undefine fflush.
8630 2011-06-17  Bruno Haible  <bruno@clisp.org>
8632         Fix tests link errors.
8633         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8634         * modules/chown-tests (Makefile.am): Don't link test-chown with
8635         LIBINTL.
8636         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8637         LIBINTL.
8638         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8639         LIBINTL.
8640         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8641         LIBINTL.
8643 2011-06-16  Bruno Haible  <bruno@clisp.org>
8645         crypto/gc-sha1: Fix recent regression.
8646         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8647         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8649         crypto/gc-md5: Fix recent regression.
8650         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8652         crypto/gc-md4: Fix recent regression.
8653         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8654         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8656         crypto/gc-arctwo: Fix recent regression.
8657         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8658         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8660         crypto/gc-rijndael: Fix recent regression.
8661         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8662         (configure.ac): Invoke AC_LIBOBJ here.
8663         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8666         crypto/gc-hmac-sha1: Fix recent regression.
8667         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8668         (configure.ac): Invoke AC_LIBOBJ here.
8669         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8672         crypto/gc-hmac-md5: Fix recent regression.
8673         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8674         (configure.ac): Invoke AC_LIBOBJ here.
8675         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8678         crypto/gc-des: Fix recent regression.
8679         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8680         (configure.ac): Invoke AC_LIBOBJ here.
8681         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8684         crypto/gc-arcfour: Fix recent regression.
8685         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8686         (configure.ac): Invoke AC_LIBOBJ here.
8687         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8690 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8692         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8693         After the 2011-05-21 change, this macro requires
8694         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8695         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8697 2011-06-16  Bruno Haible  <bruno@clisp.org>
8699         fprintftime: Move AC_LIBOBJ invocations to module description.
8700         * m4/fprintftime.m4: Remove file.
8701         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8702         (configure.ac): Remove gl_FPRINTFTIME call.
8703         (Makefile.am): Augment lib_SOURCES.
8704         Reported by Jim Meyering.
8706 2011-06-16  Bruno Haible  <bruno@clisp.org>
8708         tmpfile-safer: Finish 2011-05-23 commit.
8709         * m4/stdio-safer.m4: Really remove file.
8710         Reported by Jim Meyering.
8712 2011-06-16  Bruno Haible  <bruno@clisp.org>
8714         syntax-check: Fix typo.
8715         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8716         printf-posix.m4.
8717         Reported by Jim Meyering.
8719 2011-06-13  Jim Meyering  <meyering@redhat.com>
8721         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8722         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8724 2011-05-23  Bruno Haible  <bruno@clisp.org>
8726         yesno: Move AC_LIBOBJ invocations to module description.
8727         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8728         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8730 2011-05-23  Bruno Haible  <bruno@clisp.org>
8732         xstrtol: Move AC_LIBOBJ invocations to module description.
8733         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8734         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8736 2011-05-23  Bruno Haible  <bruno@clisp.org>
8738         xstrtold: Move AC_LIBOBJ invocations to module description.
8739         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8740         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8742 2011-05-23  Bruno Haible  <bruno@clisp.org>
8744         xstrtod: Move AC_LIBOBJ invocations to module description.
8745         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8746         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8748 2011-05-23  Bruno Haible  <bruno@clisp.org>
8750         xnanosleep: Move AC_LIBOBJ invocations to module description.
8751         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8752         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8754 2011-05-23  Bruno Haible  <bruno@clisp.org>
8756         xgetcwd: Move AC_LIBOBJ invocations to module description.
8757         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8758         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8760 2011-05-23  Bruno Haible  <bruno@clisp.org>
8762         xalloc: Move AC_LIBOBJ invocations to module description.
8763         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8764         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8766 2011-05-23  Bruno Haible  <bruno@clisp.org>
8768         write-any-file: Move AC_LIBOBJ invocations to module description.
8769         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8770         invocation.
8771         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8773 2011-05-23  Bruno Haible  <bruno@clisp.org>
8775         utimens: Move AC_LIBOBJ invocations to module description.
8776         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8777         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8779 2011-05-23  Bruno Haible  <bruno@clisp.org>
8781         utimecmp: Move AC_LIBOBJ invocations to module description.
8782         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8783         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8785 2011-05-23  Bruno Haible  <bruno@clisp.org>
8787         userspec: Move AC_LIBOBJ invocations to module description.
8788         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8789         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8791 2011-05-23  Bruno Haible  <bruno@clisp.org>
8793         unlinkdir: Move AC_LIBOBJ invocations to module description.
8794         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8795         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8797 2011-05-23  Bruno Haible  <bruno@clisp.org>
8799         unistd-safer: Move AC_LIBOBJ invocations to module description.
8800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8801         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8803 2011-05-23  Bruno Haible  <bruno@clisp.org>
8805         tempname: Move AC_LIBOBJ invocations to module description.
8806         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8807         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8809 2011-05-23  Bruno Haible  <bruno@clisp.org>
8811         strftime: Move AC_LIBOBJ invocations to module description.
8812         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8813         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8815 2011-05-23  Bruno Haible  <bruno@clisp.org>
8817         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8818         * m4/stdlib-safer.m4: Remove file.
8819         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8820         (configure.ac): Remove gl_STDLIB_SAFER call.
8821         (Makefile.am): Augment lib_SOURCES.
8823 2011-05-23  Bruno Haible  <bruno@clisp.org>
8825         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8826         * m4/stdio-safer.m4: Remove file.
8827         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8828         (configure.ac): Remove gl_TMPFILE_SAFER call.
8829         (Makefile.am): Augment lib_SOURCES.
8831 2011-05-23  Bruno Haible  <bruno@clisp.org>
8833         popen-safer: Move AC_LIBOBJ invocations to module description.
8834         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8835         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8836         (configure.ac): Remove gl_POPEN_SAFER call.
8837         (Makefile.am): Augment lib_SOURCES.
8839 2011-05-23  Bruno Haible  <bruno@clisp.org>
8841         freopen-safer: Move AC_LIBOBJ invocations to module description.
8842         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8843         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8844         (configure.ac): Remove gl_FREOPEN_SAFER call.
8845         (Makefile.am): Augment lib_SOURCES.
8847 2011-05-23  Bruno Haible  <bruno@clisp.org>
8849         fopen-safer: Move AC_LIBOBJ invocations to module description.
8850         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8851         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8852         (configure.ac): Remove gl_FOPEN_SAFER call.
8853         (Makefile.am): Augment lib_SOURCES.
8855 2011-05-23  Bruno Haible  <bruno@clisp.org>
8857         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8858         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8859         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8861 2011-05-23  Bruno Haible  <bruno@clisp.org>
8863         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8864         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8865         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8867 2011-05-23  Bruno Haible  <bruno@clisp.org>
8869         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8870         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8871         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8873 2011-05-23  Bruno Haible  <bruno@clisp.org>
8875         settime: Move AC_LIBOBJ invocations to module description.
8876         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8877         * modules/settime (Makefile.am): Augment lib_SOURCES.
8879 2011-05-23  Bruno Haible  <bruno@clisp.org>
8881         savedir: Move AC_LIBOBJ invocations to module description.
8882         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8883         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8885 2011-05-23  Bruno Haible  <bruno@clisp.org>
8887         save-cwd: Move AC_LIBOBJ invocations to module description.
8888         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8889         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8891 2011-05-23  Bruno Haible  <bruno@clisp.org>
8893         same: Move AC_LIBOBJ invocations to module description.
8894         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8895         * modules/same (Makefile.am): Augment lib_SOURCES.
8897 2011-05-23  Bruno Haible  <bruno@clisp.org>
8899         safe-write: Move AC_LIBOBJ invocations to module description.
8900         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8901         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8902         instead of gl_SAFE_WRITE.
8903         (Makefile.am): Augment lib_SOURCES.
8905 2011-05-23  Bruno Haible  <bruno@clisp.org>
8907         safe-read: Move AC_LIBOBJ invocations to module description.
8908         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8909         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8910         of gl_SAFE_READ.
8911         (Makefile.am): Augment lib_SOURCES.
8913 2011-05-23  Bruno Haible  <bruno@clisp.org>
8915         safe-alloc: Move AC_LIBOBJ invocations to module description.
8916         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8917         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8919 2011-05-23  Bruno Haible  <bruno@clisp.org>
8921         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8922         * m4/rijndael.m4: Remove file.
8923         * modules/crypto/rijndael (Files): Remove it.
8924         (configure.ac): Remove gl_RIJNDAEL call.
8925         (Makefile.am): Augment lib_SOURCES.
8927 2011-05-23  Bruno Haible  <bruno@clisp.org>
8929         readtokens: Move AC_LIBOBJ invocations to module description.
8930         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8931         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8933 2011-05-23  Bruno Haible  <bruno@clisp.org>
8935         read-file: Move AC_LIBOBJ invocations to module description.
8936         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8937         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8938         of gl_FUNC_READ_FILE.
8939         (Makefile.am): Augment lib_SOURCES.
8941 2011-05-23  Bruno Haible  <bruno@clisp.org>
8943         quotearg: Move AC_LIBOBJ invocations to module description.
8944         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8945         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8947 2011-05-23  Bruno Haible  <bruno@clisp.org>
8949         quote: Move AC_LIBOBJ invocations to module description.
8950         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8951         * modules/quote (Makefile.am): Augment lib_SOURCES.
8953 2011-05-23  Bruno Haible  <bruno@clisp.org>
8955         posixver: Move AC_LIBOBJ invocations to module description.
8956         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8957         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8959 2011-05-23  Bruno Haible  <bruno@clisp.org>
8961         posixtm: Move AC_LIBOBJ invocations to module description.
8962         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8963         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8965 2011-05-23  Bruno Haible  <bruno@clisp.org>
8967         physmem: Move AC_LIBOBJ invocations to module description.
8968         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8969         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8971 2011-05-23  Bruno Haible  <bruno@clisp.org>
8973         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8974         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8975         invocation.
8976         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8978 2011-05-23  Bruno Haible  <bruno@clisp.org>
8980         mpsort: Move AC_LIBOBJ invocations to module description.
8981         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8982         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8984 2011-05-23  Bruno Haible  <bruno@clisp.org>
8986         modechange: Move AC_LIBOBJ invocations to module description.
8987         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8988         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8990 2011-05-23  Bruno Haible  <bruno@clisp.org>
8992         mkdir-p: Move AC_LIBOBJ invocations to module description.
8993         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8994         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8996 2011-05-23  Bruno Haible  <bruno@clisp.org>
8998         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8999         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9000         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9002 2011-05-23  Bruno Haible  <bruno@clisp.org>
9004         mgetgroups: Move AC_LIBOBJ invocations to module description.
9005         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9006         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9008 2011-05-23  Bruno Haible  <bruno@clisp.org>
9010         memxor: Move AC_LIBOBJ invocations to module description.
9011         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9012         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9014 2011-05-23  Bruno Haible  <bruno@clisp.org>
9016         memcoll: Move AC_LIBOBJ invocations to module description.
9017         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9018         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9020 2011-05-23  Bruno Haible  <bruno@clisp.org>
9022         memcasecmp: Move AC_LIBOBJ invocations to module description.
9023         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9024         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9026 2011-05-23  Bruno Haible  <bruno@clisp.org>
9028         crypto/md5: Move AC_LIBOBJ invocations to module description.
9029         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9030         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9032 2011-05-23  Bruno Haible  <bruno@clisp.org>
9034         crypto/md4: Move AC_LIBOBJ invocations to module description.
9035         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9036         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9038 2011-05-23  Bruno Haible  <bruno@clisp.org>
9040         crypto/md2: Move AC_LIBOBJ invocations to module description.
9041         * m4/md2.m4: Remove file.
9042         * modules/crypto/md2 (Files): Remove it.
9043         (configure.ac): Remove gl_MD2 call.
9044         (Makefile.am): Augment lib_SOURCES.
9046 2011-05-23  Bruno Haible  <bruno@clisp.org>
9048         long-options: Move AC_LIBOBJ invocations to module description.
9049         * m4/long-options.m4: Remove file.
9050         * modules/long-options (Files): Remove it.
9051         (configure.ac): Remove gl_LONG_OPTIONS call.
9052         (Makefile.am): Augment lib_SOURCES.
9054 2011-05-23  Bruno Haible  <bruno@clisp.org>
9056         i-ring: Move AC_LIBOBJ invocations to module description.
9057         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9058         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9060 2011-05-23  Bruno Haible  <bruno@clisp.org>
9062         idcache: Move AC_LIBOBJ invocations to module description.
9063         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9064         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9066 2011-05-23  Bruno Haible  <bruno@clisp.org>
9068         human: Move AC_LIBOBJ invocations to module description.
9069         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9070         * modules/human (Makefile.am): Augment lib_SOURCES.
9072 2011-05-23  Bruno Haible  <bruno@clisp.org>
9074         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9075         * m4/hmac-sha1.m4: Remove file.
9076         * modules/crypto/hmac-sha1 (Files): Remove it.
9077         (configure.ac): Remove gl_HMAC_SHA1 call.
9078         (Makefile.am): Augment lib_SOURCES.
9080 2011-05-23  Bruno Haible  <bruno@clisp.org>
9082         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9083         * m4/hmac-md5.m4: Remove file.
9084         * modules/crypto/hmac-md5 (Files): Remove it.
9085         (configure.ac): Remove gl_HMAC_MD5 call.
9086         (Makefile.am): Augment lib_SOURCES.
9088 2011-05-23  Bruno Haible  <bruno@clisp.org>
9090         hash: Move AC_LIBOBJ invocations to module description.
9091         * m4/hash.m4: Remove file.
9092         * modules/hash (Files): Remove it.
9093         (configure.ac): Remove gl_HASH call.
9094         (Makefile.am): Augment lib_SOURCES.
9096 2011-05-23  Bruno Haible  <bruno@clisp.org>
9098         hard-locale: Move AC_LIBOBJ invocations to module description.
9099         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9100         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9102 2011-05-23  Bruno Haible  <bruno@clisp.org>
9104         getugroups: Move AC_LIBOBJ invocations to module description.
9105         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9106         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9108 2011-05-23  Bruno Haible  <bruno@clisp.org>
9110         gettime: Move AC_LIBOBJ invocations to module description.
9111         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9112         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9114 2011-05-23  Bruno Haible  <bruno@clisp.org>
9116         getndelim2: Move AC_LIBOBJ invocations to module description.
9117         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9118         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9120 2011-05-23  Bruno Haible  <bruno@clisp.org>
9122         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9123         * m4/gc-pbkdf2-sha1.m4: Remove file.
9124         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9125         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9126         (Makefile.am): Augment lib_SOURCES.
9128 2011-05-23  Bruno Haible  <bruno@clisp.org>
9130         fts: Move AC_LIBOBJ invocations to module description.
9131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9132         * modules/fts (configure.ac): ... to here.
9134 2011-05-23  Bruno Haible  <bruno@clisp.org>
9136         file-type: Move AC_LIBOBJ invocations to module description.
9137         * m4/file-type.m4: Remove file.
9138         * modules/file-type (Files): Remove it.
9139         (configure.ac): Remove gl_FILE_TYPE call.
9140         (Makefile.am): Augment lib_SOURCES.
9142 2011-05-23  Bruno Haible  <bruno@clisp.org>
9144         filenamecat*: Respect rules for use of AC_LIBOBJ.
9145         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9146         Remove AC_LIBOBJ invocation.
9147         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9148         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9150 2011-05-23  Bruno Haible  <bruno@clisp.org>
9152         filemode: Move AC_LIBOBJ invocations to module description.
9153         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9154         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9156 2011-05-23  Bruno Haible  <bruno@clisp.org>
9158         openat-safer: Move AC_LIBOBJ invocations to module description.
9159         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9160         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9162 2011-05-23  Bruno Haible  <bruno@clisp.org>
9164         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9165         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9166         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9168 2011-05-23  Bruno Haible  <bruno@clisp.org>
9170         exclude: Move AC_LIBOBJ invocations to module description.
9171         * m4/exclude.m4: Remove file.
9172         * modules/exclude (Files): Remove it.
9173         (configure.ac): Remove gl_EXCLUDE call.
9174         (Makefile.am): Augment lib_SOURCES.
9176 2011-05-23  Bruno Haible  <bruno@clisp.org>
9178         dirname*: Respect rules for use of AC_LIBOBJ.
9179         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9180         invocations.
9181         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9182         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9184 2011-05-23  Bruno Haible  <bruno@clisp.org>
9186         dirent-safer: Move AC_LIBOBJ invocations to module description.
9187         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9188         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9190 2011-05-23  Bruno Haible  <bruno@clisp.org>
9192         crypto/des: Move AC_LIBOBJ invocations to module description.
9193         * m4/des.m4: Remove file.
9194         * modules/crypto/des (Files): Remove it.
9195         (configure.ac): Remove gl_DES call.
9196         (Makefile.am): Augment lib_SOURCES.
9198 2011-05-23  Bruno Haible  <bruno@clisp.org>
9200         cycle-check: Move AC_LIBOBJ invocations to module description.
9201         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9202         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9204 2011-05-23  Bruno Haible  <bruno@clisp.org>
9206         c-strtold: Move AC_LIBOBJ invocations to module description.
9207         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9208         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9210 2011-05-23  Bruno Haible  <bruno@clisp.org>
9212         c-strtod: Move AC_LIBOBJ invocations to module description.
9213         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9214         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9216 2011-05-23  Bruno Haible  <bruno@clisp.org>
9218         crc: Move AC_LIBOBJ invocations to module description.
9219         * m4/crc.m4: Remove file.
9220         * modules/crc (Files): Remove it.
9221         (configure.ac): Remove gl_CRC call.
9222         (Makefile.am): Augment lib_SOURCES.
9224 2011-05-23  Bruno Haible  <bruno@clisp.org>
9226         close-stream: Move AC_LIBOBJ invocations to module description.
9227         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9228         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9230 2011-05-23  Bruno Haible  <bruno@clisp.org>
9232         closeout: Move AC_LIBOBJ invocations to module description.
9233         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9234         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9236 2011-05-23  Bruno Haible  <bruno@clisp.org>
9238         closein: Move AC_LIBOBJ invocations to module description.
9239         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9240         * modules/closein (Makefile.am): Augment lib_SOURCES.
9242 2011-05-23  Bruno Haible  <bruno@clisp.org>
9244         cloexec: Move AC_LIBOBJ invocations to module description.
9245         * m4/cloexec.m4: Remove file.
9246         * modules/cloexec (Files): Remove it.
9247         (configure.ac): Remove gl_CLOEXEC call.
9248         (Makefile.am): Augment lib_SOURCES.
9250 2011-05-23  Bruno Haible  <bruno@clisp.org>
9252         check-version: Move AC_LIBOBJ invocations to module description.
9253         * m4/check-version.m4: Remove file.
9254         * modules/check-version (Files): Remove it.
9255         (configure.ac): Remove gl_CHECK_VERSION call.
9256         (Makefile.am): Augment lib_SOURCES.
9258 2011-05-23  Bruno Haible  <bruno@clisp.org>
9260         chdir-safer: Move AC_LIBOBJ invocations to module description.
9261         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9262         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9264 2011-05-23  Bruno Haible  <bruno@clisp.org>
9266         canonicalize: Move AC_LIBOBJ invocations to module description.
9267         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9268         AC_LIBOBJ invocation.
9269         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9271 2011-05-23  Bruno Haible  <bruno@clisp.org>
9273         canon-host: Move AC_LIBOBJ invocations to module description.
9274         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9275         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9276         instead of gl_CANON_HOST.
9277         (Makefile.am): Augment lib_SOURCES.
9279 2011-05-23  Bruno Haible  <bruno@clisp.org>
9281         backupfile: Move AC_LIBOBJ invocations to module description.
9282         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9283         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9285 2011-05-23  Bruno Haible  <bruno@clisp.org>
9287         argmatch: Move AC_LIBOBJ invocations to module description.
9288         * m4/argmatch.m4: Remove file.
9289         * modules/argmatch (Files): Remove it.
9290         (configure.ac): Remove gl_ARGMATCH call.
9291         (Makefile.am): Augment lib_SOURCES.
9293 2011-05-23  Bruno Haible  <bruno@clisp.org>
9295         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9296         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9297         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9299 2011-05-23  Bruno Haible  <bruno@clisp.org>
9301         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9302         * m4/arcfour.m4: Remove file.
9303         * modules/crypto/arcfour (Files): Remove it.
9304         (configure.ac): Remove gl_ARCFOUR call.
9305         (Makefile.am): Augment lib_SOURCES.
9307 2011-05-22  Bruno Haible  <bruno@clisp.org>
9309         write: Move AC_LIBOBJ invocations to module description.
9310         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9311         * modules/write (configure.ac): ... to here.
9313 2011-05-22  Bruno Haible  <bruno@clisp.org>
9315         wmemset: Move AC_LIBOBJ invocations to module description.
9316         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9317         here...
9318         * modules/wmemset (configure.ac): ... to here.
9320 2011-05-22  Bruno Haible  <bruno@clisp.org>
9322         wmemmove: Move AC_LIBOBJ invocations to module description.
9323         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9324         here...
9325         * modules/wmemmove (configure.ac): ... to here.
9327 2011-05-22  Bruno Haible  <bruno@clisp.org>
9329         wmemcpy: Move AC_LIBOBJ invocations to module description.
9330         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9331         here...
9332         * modules/wmemcpy (configure.ac): ... to here.
9334 2011-05-22  Bruno Haible  <bruno@clisp.org>
9336         wmemcmp: Move AC_LIBOBJ invocations to module description.
9337         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9338         here...
9339         * modules/wmemcmp (configure.ac): ... to here.
9341 2011-05-22  Bruno Haible  <bruno@clisp.org>
9343         wmemchr: Move AC_LIBOBJ invocations to module description.
9344         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9345         here...
9346         * modules/wmemchr (configure.ac): ... to here.
9348 2011-05-22  Bruno Haible  <bruno@clisp.org>
9350         wcswidth: Move AC_LIBOBJ invocations to module description.
9351         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9352         here...
9353         * modules/wcswidth (configure.ac): ... to here.
9355 2011-05-22  Bruno Haible  <bruno@clisp.org>
9357         wcwidth: Respect rules for use of AC_LIBOBJ.
9358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9359         invocation from here...
9360         * modules/wcwidth (configure.ac): ... to here.
9361         (Depends-on): Update conditions.
9363 2011-05-22  Bruno Haible  <bruno@clisp.org>
9365         wctype: Move AC_LIBOBJ invocations to module description.
9366         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9367         invocation from here...
9368         * modules/wctype (configure.ac): ... to here.
9369         (Depends-on): Update conditions.
9371 2011-05-22  Bruno Haible  <bruno@clisp.org>
9373         wctrans: Move AC_LIBOBJ invocations to module description.
9374         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9375         invocation from here...
9376         * modules/wctrans (configure.ac): ... to here.
9378 2011-05-22  Bruno Haible  <bruno@clisp.org>
9380         wctomb: Move AC_LIBOBJ invocations to module description.
9381         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9382         invocations from here...
9383         * modules/wctomb (configure.ac): ... to here.
9385 2011-05-22  Bruno Haible  <bruno@clisp.org>
9387         wctob: Move AC_LIBOBJ invocations to module description.
9388         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9389         gl_PREREQ_WCTOB invocations from here...
9390         * modules/wctob (configure.ac): ... to here.
9391         (Depends-on): Update conditions.
9393 2011-05-22  Bruno Haible  <bruno@clisp.org>
9395         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9396         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9397         here...
9398         * modules/wcsxfrm (configure.ac): ... to here.
9400 2011-05-22  Bruno Haible  <bruno@clisp.org>
9402         wcstok: Move AC_LIBOBJ invocations to module description.
9403         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9404         * modules/wcstok (configure.ac): ... to here.
9406 2011-05-22  Bruno Haible  <bruno@clisp.org>
9408         wcsstr: Move AC_LIBOBJ invocations to module description.
9409         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9410         * modules/wcsstr (configure.ac): ... to here.
9412 2011-05-22  Bruno Haible  <bruno@clisp.org>
9414         wcsspn: Move AC_LIBOBJ invocations to module description.
9415         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9416         * modules/wcsspn (configure.ac): ... to here.
9418 2011-05-22  Bruno Haible  <bruno@clisp.org>
9420         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9421         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9422         gl_PREREQ_WCSRTOMBS invocations from here...
9423         * modules/wcsrtombs (configure.ac): ... to here.
9425 2011-05-22  Bruno Haible  <bruno@clisp.org>
9427         wcsrchr: Move AC_LIBOBJ invocations to module description.
9428         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9429         here...
9430         * modules/wcsrchr (configure.ac): ... to here.
9432 2011-05-22  Bruno Haible  <bruno@clisp.org>
9434         wcspbrk: Move AC_LIBOBJ invocations to module description.
9435         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9436         here...
9437         * modules/wcspbrk (configure.ac): ... to here.
9439 2011-05-22  Bruno Haible  <bruno@clisp.org>
9441         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9442         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9443         gl_PREREQ_WCSNRTOMBS invocations from here...
9444         * modules/wcsnrtombs (configure.ac): ... to here.
9446 2011-05-22  Bruno Haible  <bruno@clisp.org>
9448         wcsnlen: Move AC_LIBOBJ invocations to module description.
9449         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9450         here...
9451         * modules/wcsnlen (configure.ac): ... to here.
9453 2011-05-22  Bruno Haible  <bruno@clisp.org>
9455         wcsncpy: Move AC_LIBOBJ invocations to module description.
9456         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9457         here...
9458         * modules/wcsncpy (configure.ac): ... to here.
9460 2011-05-22  Bruno Haible  <bruno@clisp.org>
9462         wcsncmp: Move AC_LIBOBJ invocations to module description.
9463         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9464         here...
9465         * modules/wcsncmp (configure.ac): ... to here.
9467 2011-05-22  Bruno Haible  <bruno@clisp.org>
9469         wcsncat: Move AC_LIBOBJ invocations to module description.
9470         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9471         here...
9472         * modules/wcsncat (configure.ac): ... to here.
9474 2011-05-22  Bruno Haible  <bruno@clisp.org>
9476         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9477         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9478         from here...
9479         * modules/wcsncasecmp (configure.ac): ... to here.
9481 2011-05-22  Bruno Haible  <bruno@clisp.org>
9483         wcslen: Move AC_LIBOBJ invocations to module description.
9484         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9485         * modules/wcslen (configure.ac): ... to here.
9487 2011-05-22  Bruno Haible  <bruno@clisp.org>
9489         wcsdup: Move AC_LIBOBJ invocations to module description.
9490         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9491         * modules/wcsdup (configure.ac): ... to here.
9493 2011-05-22  Bruno Haible  <bruno@clisp.org>
9495         wcscspn: Move AC_LIBOBJ invocations to module description.
9496         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9497         here...
9498         * modules/wcscspn (configure.ac): ... to here.
9500 2011-05-22  Bruno Haible  <bruno@clisp.org>
9502         wcscpy: Move AC_LIBOBJ invocations to module description.
9503         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9504         * modules/wcscpy (configure.ac): ... to here.
9506 2011-05-22  Bruno Haible  <bruno@clisp.org>
9508         wcscoll: Move AC_LIBOBJ invocations to module description.
9509         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9510         here...
9511         * modules/wcscoll (configure.ac): ... to here.
9513 2011-05-22  Bruno Haible  <bruno@clisp.org>
9515         wcscmp: Move AC_LIBOBJ invocations to module description.
9516         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9517         * modules/wcscmp (configure.ac): ... to here.
9519 2011-05-22  Bruno Haible  <bruno@clisp.org>
9521         wcschr: Move AC_LIBOBJ invocations to module description.
9522         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9523         * modules/wcschr (configure.ac): ... to here.
9525 2011-05-22  Bruno Haible  <bruno@clisp.org>
9527         wcscat: Move AC_LIBOBJ invocations to module description.
9528         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9529         * modules/wcscat (configure.ac): ... to here.
9531 2011-05-22  Bruno Haible  <bruno@clisp.org>
9533         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9534         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9535         here...
9536         * modules/wcscasecmp (configure.ac): ... to here.
9538 2011-05-22  Bruno Haible  <bruno@clisp.org>
9540         wcrtomb: Move AC_LIBOBJ invocations to module description.
9541         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9542         invocations from here...
9543         * modules/wcrtomb (configure.ac): ... to here.
9545 2011-05-22  Bruno Haible  <bruno@clisp.org>
9547         wcpncpy: Move AC_LIBOBJ invocations to module description.
9548         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9549         here...
9550         * modules/wcpncpy (configure.ac): ... to here.
9552 2011-05-22  Bruno Haible  <bruno@clisp.org>
9554         wcpcpy: Move AC_LIBOBJ invocations to module description.
9555         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9556         * modules/wcpcpy (configure.ac): ... to here.
9558 2011-05-22  Bruno Haible  <bruno@clisp.org>
9560         waitpid: Move AC_LIBOBJ invocations to module description.
9561         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9562         invocation from here...
9563         * modules/waitpid (configure.ac): ... to here.
9565 2011-05-22  Bruno Haible  <bruno@clisp.org>
9567         utimensat: Move AC_LIBOBJ invocations to module description.
9568         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9569         here...
9570         * modules/utimensat (configure.ac): ... to here.
9572 2011-05-22  Bruno Haible  <bruno@clisp.org>
9574         usleep: Move AC_LIBOBJ invocations to module description.
9575         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9576         here...
9577         * modules/usleep (configure.ac): ... to here.
9579 2011-05-22  Bruno Haible  <bruno@clisp.org>
9581         unlockpt: Move AC_LIBOBJ invocations to module description.
9582         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9583         gl_PREREQ_UNLOCKPT invocations from here...
9584         * modules/unlockpt (configure.ac): ... to here.
9586 2011-05-22  Bruno Haible  <bruno@clisp.org>
9588         unlink: Respect rules for use of AC_LIBOBJ.
9589         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9590         * modules/unlink (configure.ac): ... to here.
9592 2011-05-22  Bruno Haible  <bruno@clisp.org>
9594         uname: Move AC_LIBOBJ invocations to module description.
9595         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9596         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9597         here...
9598         * modules/uname (configure.ac): ... to here.
9600 2011-05-22  Bruno Haible  <bruno@clisp.org>
9602         ttyname_r: Move AC_LIBOBJ invocations to module description.
9603         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9604         gl_PREREQ_TTYNAME_R invocations from here...
9605         * modules/ttyname_r (configure.ac): ... to here.
9607 2011-05-22  Bruno Haible  <bruno@clisp.org>
9609         tsearch: Move AC_LIBOBJ invocations to module description.
9610         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9611         invocations from here...
9612         * modules/tsearch (configure.ac): ... to here.
9614 2011-05-22  Bruno Haible  <bruno@clisp.org>
9616         towctrans: Move AC_LIBOBJ invocations to module description.
9617         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9618         AC_LIBOBJ invocation from here...
9619         * modules/towctrans (configure.ac): ... to here.
9621 2011-05-22  Bruno Haible  <bruno@clisp.org>
9623         tmpfile: Move AC_LIBOBJ invocations to module description.
9624         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9625         invocations from here...
9626         * modules/tmpfile (configure.ac): ... to here.
9628 2011-05-22  Bruno Haible  <bruno@clisp.org>
9630         times: Move AC_LIBOBJ invocations to module description.
9631         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9632         * modules/times (configure.ac): ... to here.
9634 2011-05-22  Bruno Haible  <bruno@clisp.org>
9636         time_r: Move AC_LIBOBJ invocations to module description.
9637         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9638         invocations from here...
9639         * modules/time_r (configure.ac): ... to here.
9641 2011-05-22  Bruno Haible  <bruno@clisp.org>
9643         timegm: Move AC_LIBOBJ invocations to module description.
9644         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9645         invocations from here...
9646         * modules/timegm (configure.ac): ... to here.
9648 2011-05-22  Bruno Haible  <bruno@clisp.org>
9650         tcgetsid: Move AC_LIBOBJ invocations to module description.
9651         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9652         and gl_PREREQ_TCGETSID invocations from here...
9653         * modules/tcgetsid (configure.ac): ... to here.
9654         (Depends-on): Update conditions.
9656 2011-05-22  Bruno Haible  <bruno@clisp.org>
9658         symlinkat: Move AC_LIBOBJ invocations to module description.
9659         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9660         here...
9661         * modules/symlinkat (configure.ac): ... to here.
9663 2011-05-22  Bruno Haible  <bruno@clisp.org>
9665         symlink: Move AC_LIBOBJ invocations to module description.
9666         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9667         here...
9668         * modules/symlink (configure.ac): ... to here.
9670 2011-05-22  Bruno Haible  <bruno@clisp.org>
9672         strverscmp: Move AC_LIBOBJ invocations to module description.
9673         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9674         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9675         from here...
9676         * modules/strverscmp (configure.ac): ... to here.
9678 2011-05-22  Bruno Haible  <bruno@clisp.org>
9680         strtok_r: Move AC_LIBOBJ invocations to module description.
9681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9682         and gl_PREREQ_STRTOK_R invocations from here...
9683         * modules/strtok_r (configure.ac): ... to here.
9684         (Depends-on): Update conditions.
9686 2011-05-22  Bruno Haible  <bruno@clisp.org>
9688         strtoumax: Move AC_LIBOBJ invocations to module description.
9689         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9691         from here...
9692         * modules/strtoumax (configure.ac): ... to here.
9694 2011-05-22  Bruno Haible  <bruno@clisp.org>
9696         strtoimax: Move AC_LIBOBJ invocations to module description.
9697         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9699         from here...
9700         * modules/strtoimax (configure.ac): ... to here.
9702 2011-05-22  Bruno Haible  <bruno@clisp.org>
9704         strtoull: Move AC_LIBOBJ invocations to module description.
9705         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9707         from here...
9708         * modules/strtoull (configure.ac): ... to here.
9710 2011-05-22  Bruno Haible  <bruno@clisp.org>
9712         strtoll: Move AC_LIBOBJ invocations to module description.
9713         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9715         here...
9716         * modules/strtoll (configure.ac): ... to here.
9718 2011-05-22  Bruno Haible  <bruno@clisp.org>
9720         strtoul: Move AC_LIBOBJ invocations to module description.
9721         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9722         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9723         * modules/strtoul (configure.ac): ... to here.
9725 2011-05-22  Bruno Haible  <bruno@clisp.org>
9727         strtol: Move AC_LIBOBJ invocations to module description.
9728         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9729         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9730         * modules/strtol (configure.ac): ... to here.
9732 2011-05-22  Bruno Haible  <bruno@clisp.org>
9734         strtod: Move AC_LIBOBJ invocations to module description.
9735         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9736         invocations from here...
9737         * modules/strtod (configure.ac): ... to here.
9739 2011-05-22  Bruno Haible  <bruno@clisp.org>
9741         strstr*: Move AC_LIBOBJ invocations to module description.
9742         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9743         invocations from here...
9744         * modules/strstr-simple (configure.ac): ... to here.
9745         * modules/strstr (configure.ac): ... and here.
9747 2011-05-22  Bruno Haible  <bruno@clisp.org>
9749         strsignal: Move AC_LIBOBJ invocations to module description.
9750         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9751         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9752         * modules/strsignal (configure.ac): ... to here.
9753         (Depends-on): Update conditions.
9755 2011-05-22  Bruno Haible  <bruno@clisp.org>
9757         strsep: Move AC_LIBOBJ invocations to module description.
9758         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9760         here...
9761         * modules/strsep (configure.ac): ... to here.
9763 2011-05-22  Bruno Haible  <bruno@clisp.org>
9765         strptime: Move AC_LIBOBJ invocations to module description.
9766         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9767         gl_PREREQ_STRPTIME invocations from here...
9768         * modules/strptime (configure.ac): ... to here.
9770 2011-05-22  Bruno Haible  <bruno@clisp.org>
9772         strpbrk: Move AC_LIBOBJ invocations to module description.
9773         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9774         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9775         here...
9776         * modules/strpbrk (configure.ac): ... to here.
9778 2011-05-22  Bruno Haible  <bruno@clisp.org>
9780         strnlen: Move AC_LIBOBJ invocations to module description.
9781         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9782         invocations from here...
9783         * modules/strnlen (configure.ac): ... to here.
9785 2011-05-22  Bruno Haible  <bruno@clisp.org>
9787         strndup: Move AC_LIBOBJ invocations to module description.
9788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9789         invocations from here...
9790         * modules/strndup (configure.ac): ... to here.
9791         (Depends-on): Update conditions.
9793 2011-05-22  Bruno Haible  <bruno@clisp.org>
9795         strncat: Move AC_LIBOBJ invocations to module description.
9796         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9797         invocations from here...
9798         * modules/strncat (configure.ac): ... to here.
9800 2011-05-22  Bruno Haible  <bruno@clisp.org>
9802         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9803         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9804         invocations from here...
9805         * modules/strdup (configure.ac): ... to here.
9806         * modules/strdup-posix (configure.ac): ... and here.
9808 2011-05-22  Bruno Haible  <bruno@clisp.org>
9810         strcspn: Move AC_LIBOBJ invocations to module description.
9811         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9812         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9813         here...
9814         * modules/strcspn (configure.ac): ... to here.
9816 2011-05-22  Bruno Haible  <bruno@clisp.org>
9818         strchrnul: Move AC_LIBOBJ invocations to module description.
9819         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9820         gl_PREREQ_STRCHRNUL invocations from here...
9821         * modules/strchrnul (configure.ac): ... to here.
9823 2011-05-22  Bruno Haible  <bruno@clisp.org>
9825         strcasestr*: Move AC_LIBOBJ invocations to module description.
9826         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9827         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9828         * modules/strcasestr-simple (configure.ac): ... to here.
9829         * modules/strcasestr (configure.ac): ... and here.
9831 2011-05-22  Bruno Haible  <bruno@clisp.org>
9833         strcase: Move AC_LIBOBJ invocations to module description.
9834         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9835         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9836         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9837         gl_PREREQ_STRNCASECMP invocations from here...
9838         * modules/strcase (configure.ac): ... to here.
9840 2011-05-22  Bruno Haible  <bruno@clisp.org>
9842         stpncpy: Move AC_LIBOBJ invocations to module description.
9843         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9844         here...
9845         * modules/stpncpy (configure.ac): ... to here.
9847 2011-05-22  Bruno Haible  <bruno@clisp.org>
9849         stpcpy: Move AC_LIBOBJ invocations to module description.
9850         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9852         here...
9853         * modules/stpcpy (configure.ac): ... to here.
9855 2011-05-21  Bruno Haible  <bruno@clisp.org>
9857         stat: Move AC_LIBOBJ invocations to module description.
9858         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9859         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9860         here...
9861         * modules/stat (configure.ac): ... to here.
9863 2011-05-21  Bruno Haible  <bruno@clisp.org>
9865         sleep: Move AC_LIBOBJ invocations to module description.
9866         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9867         * modules/sleep (configure.ac): ... to here.
9869 2011-05-21  Bruno Haible  <bruno@clisp.org>
9871         signbit: Move AC_LIBOBJ invocations to module description.
9872         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9873         * modules/signbit (configure.ac): ... to here.
9875 2011-05-21  Bruno Haible  <bruno@clisp.org>
9877         sigprocmask: Move AC_LIBOBJ invocations to module description.
9878         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9879         gl_PREREQ_SIGPROMASK invocations from here...
9880         * modules/sigprocmask (configure.ac): ... to here.
9882 2011-05-21  Bruno Haible  <bruno@clisp.org>
9884         sigaction: Move AC_LIBOBJ invocations to module description.
9885         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9886         gl_PREREQ_SIGACTION invocations from here...
9887         * modules/sigaction (configure.ac): ... to here.
9889 2011-05-21  Bruno Haible  <bruno@clisp.org>
9891         sig2str: Move AC_LIBOBJ invocations to module description.
9892         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9894         here...
9895         * modules/sig2str (configure.ac): ... to here.
9897 2011-05-21  Bruno Haible  <bruno@clisp.org>
9899         setlocale: Move AC_LIBOBJ invocations to module description.
9900         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9901         gl_PREREQ_SETLOCALE invocations from here...
9902         * modules/setlocale (configure.ac): ... to here.
9904 2011-05-21  Bruno Haible  <bruno@clisp.org>
9906         unsetenv: Move AC_LIBOBJ invocations to module description.
9907         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9908         and gl_PREREQ_UNSETENV invocations from here...
9909         * modules/unsetenv (configure.ac): ... to here.
9910         (Depends-on): Update.
9912 2011-05-21  Bruno Haible  <bruno@clisp.org>
9914         setenv: Move AC_LIBOBJ invocations to module description.
9915         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9916         here...
9917         * modules/setenv (configure.ac): ... to here.
9919 2011-05-21  Bruno Haible  <bruno@clisp.org>
9921         selinux-h: Move AC_LIBOBJ invocations to module description.
9922         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9923         AC_LIBOBJ invocation from here...
9924         * modules/selinux-h (configure.ac): ... to here.
9926 2011-05-21  Bruno Haible  <bruno@clisp.org>
9928         select: Respect rules for use of AC_LIBOBJ.
9929         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9930         here...
9931         * modules/select (configure.ac): ... to here.
9933 2011-05-21  Bruno Haible  <bruno@clisp.org>
9935         scandir: Move AC_LIBOBJ invocations to module description.
9936         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9937         invocations from here...
9938         * modules/scandir (configure.ac): ... to here.
9940 2011-05-21  Bruno Haible  <bruno@clisp.org>
9942         rpmatch: Move AC_LIBOBJ invocations to module description.
9943         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9944         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9945         here...
9946         * modules/rpmatch (configure.ac): ... to here.
9948 2011-05-21  Bruno Haible  <bruno@clisp.org>
9950         rmdir: Respect rules for use of AC_LIBOBJ.
9951         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9952         * modules/rmdir (configure.ac): ... to here.
9954 2011-05-21  Bruno Haible  <bruno@clisp.org>
9956         renameat: Move AC_LIBOBJ invocations to module description.
9957         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9958         here...
9959         * modules/renameat (configure.ac): ... to here.
9961 2011-05-21  Bruno Haible  <bruno@clisp.org>
9963         rename: Respect rules for use of AC_LIBOBJ.
9964         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9965         here...
9966         * modules/rename (configure.ac): ... to here.
9968 2011-05-21  Bruno Haible  <bruno@clisp.org>
9970         remove: Move AC_LIBOBJ invocations to module description.
9971         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9972         here...
9973         * modules/remove (configure.ac): ... to here.
9975 2011-05-21  Bruno Haible  <bruno@clisp.org>
9977         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9978         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9979         macro.
9980         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9981         * modules/relocatable-lib (configure.ac): ... to here.
9982         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9983         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9985 2011-05-21  Bruno Haible  <bruno@clisp.org>
9987         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9988         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9989         here...
9990         * modules/relocatable-prog (configure.ac): ... to here.
9992 2011-05-21  Bruno Haible  <bruno@clisp.org>
9994         regex: Move AC_LIBOBJ invocations to module description.
9995         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9996         invocations from here...
9997         * modules/regex (configure.ac): ... to here.
9999 2011-05-21  Bruno Haible  <bruno@clisp.org>
10001         realloc-*: Move AC_LIBOBJ invocations to module description.
10002         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10003         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10004         AC_LIBOBJ invocations from here...
10005         * modules/realloc-gnu (configure.ac): ... to here.
10006         * modules/realloc-posix (configure.ac): ... and here.
10008 2011-05-21  Bruno Haible  <bruno@clisp.org>
10010         readutmp: Move AC_LIBOBJ invocations to module description.
10011         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10012         * modules/readutmp (configure.ac): ... to here.
10014 2011-05-21  Bruno Haible  <bruno@clisp.org>
10016         readlinkat: Move AC_LIBOBJ invocations to module description.
10017         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10018         here...
10019         * modules/readlinkat (configure.ac): ... to here.
10021 2011-05-21  Bruno Haible  <bruno@clisp.org>
10023         readlink: Move AC_LIBOBJ invocations to module description.
10024         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10025         gl_PREREQ_READLINK invocations from here...
10026         * modules/readlink (configure.ac): ... to here.
10028 2011-05-21  Bruno Haible  <bruno@clisp.org>
10030         readline: Move AC_LIBOBJ invocations to module description.
10031         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10032         gl_PREREQ_READLINE invocations from here...
10033         * modules/readline (configure.ac): ... to here.
10035 2011-05-21  Bruno Haible  <bruno@clisp.org>
10037         read: Move AC_LIBOBJ invocations to module description.
10038         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10039         * modules/read (configure.ac): ... to here.
10041 2011-05-21  Bruno Haible  <bruno@clisp.org>
10043         rawmemchr: Move AC_LIBOBJ invocations to module description.
10044         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10046         from here...
10047         * modules/rawmemchr (configure.ac): ... to here.
10049 2011-05-21  Bruno Haible  <bruno@clisp.org>
10051         random_r: Move AC_LIBOBJ invocations to module description.
10052         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10053         gl_PREREQ_RANDOM_R invocations from here...
10054         * modules/random_r (configure.ac): ... to here.
10056 2011-05-21  Bruno Haible  <bruno@clisp.org>
10058         pwrite: Move AC_LIBOBJ invocations to module description.
10059         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10060         * modules/pwrite (configure.ac): ... to here.
10062 2011-05-21  Bruno Haible  <bruno@clisp.org>
10064         putenv: Move AC_LIBOBJ invocations to module description.
10065         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10066         * modules/putenv (configure.ac): ... to here.
10068 2011-05-21  Bruno Haible  <bruno@clisp.org>
10070         login_tty: Move AC_LIBOBJ invocations to module description.
10071         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10072         * modules/login_tty (configure.ac): ... to here.
10074 2011-05-21  Bruno Haible  <bruno@clisp.org>
10076         openpty: Move AC_LIBOBJ invocations to module description.
10077         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10078         * modules/openpty (configure.ac): ... to here.
10080 2011-05-21  Bruno Haible  <bruno@clisp.org>
10082         forkpty: Move AC_LIBOBJ invocations to module description.
10083         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10084         * modules/forkpty (configure.ac): ... to here.
10086 2011-05-21  Bruno Haible  <bruno@clisp.org>
10088         ptsname: Move AC_LIBOBJ invocations to module description.
10089         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10090         invocations from here...
10091         * modules/ptsname (configure.ac): ... to here.
10093 2011-05-21  Bruno Haible  <bruno@clisp.org>
10095         pread: Move AC_LIBOBJ invocations to module description.
10096         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10097         * modules/pread (configure.ac): ... to here.
10099 2011-05-21  Bruno Haible  <bruno@clisp.org>
10101         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10102         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10103         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10104         * modules/posix_spawn (configure.ac): ... to here.
10105         * modules/posix_spawnp (configure.ac): ... and here.
10107 2011-05-21  Bruno Haible  <bruno@clisp.org>
10109         popen: Move AC_LIBOBJ invocations to module description.
10110         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10111         invocations from here...
10112         * modules/popen (configure.ac): ... to here.
10114 2011-05-21  Bruno Haible  <bruno@clisp.org>
10116         poll: Move AC_LIBOBJ invocations to module description.
10117         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10118         invocations from here...
10119         * modules/poll (configure.ac): ... to here.
10121 2011-05-21  Bruno Haible  <bruno@clisp.org>
10123         pipe-posix: Move AC_LIBOBJ invocations to module description.
10124         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10125         * modules/pipe-posix (configure.ac): ... to here.
10127 2011-05-21  Bruno Haible  <bruno@clisp.org>
10129         openat: Respect rules for use of AC_LIBOBJ.
10130         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10131         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10132         * modules/openat (configure.ac): ... to here.
10134 2011-05-21  Bruno Haible  <bruno@clisp.org>
10136         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10137         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10138         invocation from here...
10139         * modules/obstack-printf (configure.ac): ... to here.
10140         * modules/obstack-printf-posix (configure.ac): ... and here.
10142 2011-05-21  Bruno Haible  <bruno@clisp.org>
10144         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10145         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10146         from here...
10147         * modules/nl_langinfo (configure.ac): ... to here.
10149 2011-05-21  Bruno Haible  <bruno@clisp.org>
10151         nanosleep: Move AC_LIBOBJ invocations to module description.
10152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10153         gl_PREREQ_NANOSLEEP invocations from here...
10154         * modules/nanosleep (configure.ac): ... to here.
10156 2011-05-21  Bruno Haible  <bruno@clisp.org>
10158         mountlist: Move AC_LIBOBJ invocations to module description.
10159         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10160         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10161         * modules/mountlist (configure.ac): ... to here.
10163 2011-05-21  Bruno Haible  <bruno@clisp.org>
10165         mktime: Respect rules for use of AC_LIBOBJ.
10166         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10167         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10168         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10169         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10170         * modules/mktime (configure.ac): ... to here.
10171         * modules/mktime-internal (configure.ac): ... and here.
10172         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10174 2011-05-21  Bruno Haible  <bruno@clisp.org>
10176         mkstemps: Move AC_LIBOBJ invocations to module description.
10177         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10178         here...
10179         * modules/mkstemps (configure.ac): ... to here.
10181 2011-05-21  Bruno Haible  <bruno@clisp.org>
10183         mkstemp: Move AC_LIBOBJ invocations to module description.
10184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10185         gl_PREREQ_MKSTEMP invocations from here...
10186         * modules/mkstemp (configure.ac): ... to here.
10188 2011-05-21  Bruno Haible  <bruno@clisp.org>
10190         mkostemps: Move AC_LIBOBJ invocations to module description.
10191         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10192         here...
10193         * modules/mkostemps (configure.ac): ... to here.
10195 2011-05-21  Bruno Haible  <bruno@clisp.org>
10197         mkostemp: Move AC_LIBOBJ invocations to module description.
10198         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10199         gl_PREREQ_MKOSTEMP invocations from here...
10200         * modules/mkostemp (configure.ac): ... to here.
10202 2011-05-21  Bruno Haible  <bruno@clisp.org>
10204         mknod: Move AC_LIBOBJ invocations to module description.
10205         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10206         * modules/mknod (configure.ac): ... to here.
10208 2011-05-21  Bruno Haible  <bruno@clisp.org>
10210         mkfifoat: Move AC_LIBOBJ invocations to module description.
10211         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10212         here...
10213         * modules/mkfifoat (configure.ac): ... to here.
10215 2011-05-21  Bruno Haible  <bruno@clisp.org>
10217         mkfifo: Respect rules for use of AC_LIBOBJ.
10218         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10219         here...
10220         * modules/mkfifo (configure.ac): ... to here.
10222 2011-05-21  Bruno Haible  <bruno@clisp.org>
10224         mkdtemp: Move AC_LIBOBJ invocations to module description.
10225         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10226         invocations from here...
10227         * modules/mkdtemp (configure.ac): ... to here.
10229 2011-05-21  Bruno Haible  <bruno@clisp.org>
10231         mkdir: Move AC_LIBOBJ invocations to module description.
10232         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10233         * modules/mkdir (configure.ac): ... to here.
10235 2011-05-21  Bruno Haible  <bruno@clisp.org>
10237         memset: Move AC_LIBOBJ invocations to module description.
10238         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10239         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10240         here...
10241         * modules/memset (configure.ac): ... to here.
10243 2011-05-21  Bruno Haible  <bruno@clisp.org>
10245         memrchr: Move AC_LIBOBJ invocations to module description.
10246         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10247         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10248         here...
10249         * modules/memrchr (configure.ac): ... to here.
10251 2011-05-21  Bruno Haible  <bruno@clisp.org>
10253         mempcpy: Move AC_LIBOBJ invocations to module description.
10254         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10255         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10256         here...
10257         * modules/mempcpy (configure.ac): ... to here.
10259 2011-05-21  Bruno Haible  <bruno@clisp.org>
10261         memmove: Move AC_LIBOBJ invocations to module description.
10262         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10263         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10264         here...
10265         * modules/memmove (configure.ac): ... to here.
10267 2011-05-21  Bruno Haible  <bruno@clisp.org>
10269         memmem*: Move AC_LIBOBJ invocations to module description.
10270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10271         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10272         here...
10273         (gl_FUNC_MEMMEM): ... and here...
10274         * modules/memmem-simple (configure.ac): ... to here.
10275         * modules/memmem (configure.ac): ... and here.
10277 2011-05-21  Bruno Haible  <bruno@clisp.org>
10279         memcpy: Move AC_LIBOBJ invocations to module description.
10280         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10281         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10282         here...
10283         * modules/memcpy (configure.ac): ... to here.
10285 2011-05-21  Bruno Haible  <bruno@clisp.org>
10287         memcmp: Simplify autoconf macro.
10288         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10289         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10290         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10292 2011-05-21  Bruno Haible  <bruno@clisp.org>
10294         memcmp: Move AC_LIBOBJ invocations to module description.
10295         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10296         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10297         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10298         * modules/memcmp (configure.ac): ... to here.
10299         (Depends-on): Update conditions.
10301 2011-05-21  Bruno Haible  <bruno@clisp.org>
10303         memchr: Respect rules for use of AC_LIBOBJ.
10304         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10305         invocations from here...
10306         * modules/memchr (configure.ac): ... to here.
10308 2011-05-21  Bruno Haible  <bruno@clisp.org>
10310         mbtowc: Move AC_LIBOBJ invocations to module description.
10311         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10312         invocations from here...
10313         * modules/mbtowc (configure.ac): ... to here.
10315 2011-05-21  Bruno Haible  <bruno@clisp.org>
10317         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10318         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10319         gl_PREREQ_MBSRTOWCS invocations from here...
10320         * modules/mbsrtowcs (configure.ac): ... to here.
10322 2011-05-21  Bruno Haible  <bruno@clisp.org>
10324         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10325         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10326         gl_PREREQ_MBSNRTOWCS invocations from here...
10327         * modules/mbsnrtowcs (configure.ac): ... to here.
10329 2011-05-21  Bruno Haible  <bruno@clisp.org>
10331         mbsinit: Move AC_LIBOBJ invocations to module description.
10332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10333         invocations from here...
10334         * modules/mbsinit (configure.ac): ... to here.
10336 2011-05-21  Bruno Haible  <bruno@clisp.org>
10338         mbrlen: Move AC_LIBOBJ invocations to module description.
10339         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10340         invocations from here...
10341         * modules/mbrlen (configure.ac): ... to here.
10343 2011-05-21  Bruno Haible  <bruno@clisp.org>
10345         mbrtowc: Respect rules for use of AC_LIBOBJ.
10346         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10347         invocations from here...
10348         * modules/mbrtowc (configure.ac): ... to here.
10350 2011-05-21  Bruno Haible  <bruno@clisp.org>
10352         malloc-*: Move AC_LIBOBJ invocations to module description.
10353         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10354         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10355         AC_LIBOBJ invocations from here...
10356         * modules/malloc-gnu (configure.ac): ... to here.
10357         * modules/malloc-posix (configure.ac): ... and here.
10359 2011-05-21  Bruno Haible  <bruno@clisp.org>
10361         lstat, openat: Respect rules for use of AC_LIBOBJ.
10362         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10363         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10364         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10365         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10366         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10367         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10368         here.
10369         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10371 2011-05-21  Bruno Haible  <bruno@clisp.org>
10373         lseek: Move AC_LIBOBJ invocations to module description.
10374         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10375         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10376         * modules/lseek (configure.ac): ... to here.
10378 2011-05-21  Bruno Haible  <bruno@clisp.org>
10380         linkat: Move AC_LIBOBJ invocations to module description.
10381         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10382         here...
10383         * modules/linkat (configure.ac): ... to here.
10385 2011-05-21  Bruno Haible  <bruno@clisp.org>
10387         link: Respect rules for use of AC_LIBOBJ.
10388         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10389         * modules/link (configure.ac): ... to here.
10391 2011-05-21  Bruno Haible  <bruno@clisp.org>
10393         lchown: Move AC_LIBOBJ invocations to module description.
10394         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10395         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10396         * modules/lchown (configure.ac): ... to here.
10398 2011-05-21  Bruno Haible  <bruno@clisp.org>
10400         iswctype: Move AC_LIBOBJ invocations to module description.
10401         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10402         here...
10403         * modules/iswctype (configure.ac): ... to here.
10405 2011-05-21  Bruno Haible  <bruno@clisp.org>
10407         iswblank: Move AC_LIBOBJ invocations to module description.
10408         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10409         here...
10410         * modules/iswblank (configure.ac): ... to here.
10412 2011-05-21  Bruno Haible  <bruno@clisp.org>
10414         atanl: Move AC_LIBOBJ invocations to module description.
10415         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10416         * modules/atanl (configure.ac): ... to here.
10418 2011-05-21  Bruno Haible  <bruno@clisp.org>
10420         acosl: Move AC_LIBOBJ invocations to module description.
10421         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10422         * modules/acosl (configure.ac): ... to here.
10424 2011-05-21  Bruno Haible  <bruno@clisp.org>
10426         asinl: Respect rules for use of AC_LIBOBJ.
10427         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10428         * modules/asinl (configure.ac): ... to here.
10430 2011-05-21  Bruno Haible  <bruno@clisp.org>
10432         tanl: Move AC_LIBOBJ invocations to module description.
10433         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10434         * modules/tanl (configure.ac): ... to here.
10436 2011-05-21  Bruno Haible  <bruno@clisp.org>
10438         cosl: Move AC_LIBOBJ invocations to module description.
10439         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10440         * modules/cosl (configure.ac): ... to here.
10442 2011-05-21  Bruno Haible  <bruno@clisp.org>
10444         sinl: Move AC_LIBOBJ invocations to module description.
10445         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10446         * modules/sinl (configure.ac): ... to here.
10448 2011-05-21  Bruno Haible  <bruno@clisp.org>
10450         logl: Move AC_LIBOBJ invocations to module description.
10451         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10452         * modules/logl (configure.ac): ... to here.
10454 2011-05-21  Bruno Haible  <bruno@clisp.org>
10456         expl: Move AC_LIBOBJ invocations to module description.
10457         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10458         * modules/expl (configure.ac): ... to here.
10460 2011-05-21  Bruno Haible  <bruno@clisp.org>
10462         roundl: Move AC_LIBOBJ invocations to module description.
10463         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10464         * modules/roundl (configure.ac): ... to here.
10466 2011-05-21  Bruno Haible  <bruno@clisp.org>
10468         round: Move AC_LIBOBJ invocations to module description.
10469         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10470         * modules/round (configure.ac): ... to here.
10472 2011-05-21  Bruno Haible  <bruno@clisp.org>
10474         roundf: Move AC_LIBOBJ invocations to module description.
10475         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10476         * modules/roundf (configure.ac): ... to here.
10478 2011-05-21  Bruno Haible  <bruno@clisp.org>
10480         truncl: Move AC_LIBOBJ invocations to module description.
10481         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10482         * modules/truncl (configure.ac): ... to here.
10484 2011-05-21  Bruno Haible  <bruno@clisp.org>
10486         trunc: Move AC_LIBOBJ invocations to module description.
10487         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10488         * modules/trunc (configure.ac): ... to here.
10490 2011-05-21  Bruno Haible  <bruno@clisp.org>
10492         truncf: Move AC_LIBOBJ invocations to module description.
10493         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10494         * modules/truncf (configure.ac): ... to here.
10496 2011-05-21  Bruno Haible  <bruno@clisp.org>
10498         ceill: Move AC_LIBOBJ invocations to module description.
10499         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10500         * modules/ceill (configure.ac): ... to here.
10502 2011-05-21  Bruno Haible  <bruno@clisp.org>
10504         ceil: Move AC_LIBOBJ invocations to module description.
10505         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10506         * modules/ceil (configure.ac): ... to here.
10508 2011-05-21  Bruno Haible  <bruno@clisp.org>
10510         ceilf: Move AC_LIBOBJ invocations to module description.
10511         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10512         * modules/ceilf (configure.ac): ... to here.
10514 2011-05-21  Bruno Haible  <bruno@clisp.org>
10516         floorl: Respect rules for use of AC_LIBOBJ.
10517         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10518         * modules/floorl (configure.ac): ... to here.
10520 2011-05-21  Bruno Haible  <bruno@clisp.org>
10522         floor: Respect rules for use of AC_LIBOBJ.
10523         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10524         * modules/floor (configure.ac): ... to here.
10526 2011-05-21  Bruno Haible  <bruno@clisp.org>
10528         floorf: Move AC_LIBOBJ invocations to module description.
10529         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10530         * modules/floorf (configure.ac): ... to here.
10532 2011-05-20  Bruno Haible  <bruno@clisp.org>
10534         sqrtl: Respect rules for use of AC_LIBOBJ.
10535         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10536         * modules/sqrtl (configure.ac): ... to here.
10538 2011-05-20  Bruno Haible  <bruno@clisp.org>
10540         ldexpl: Respect rules for use of AC_LIBOBJ.
10541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10542         * modules/ldexpl (configure.ac): ... to here.
10544 2011-05-20  Bruno Haible  <bruno@clisp.org>
10546         frexpl*: Respect rules for use of AC_LIBOBJ.
10547         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10548         invocation from here...
10549         * modules/frexpl (configure.ac): ... to here.
10550         * modules/frexpl-nolibm (configure.ac): ... and here.
10552 2011-05-20  Bruno Haible  <bruno@clisp.org>
10554         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10555         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10556         invocation from here...
10557         * modules/frexp (configure.ac): ... to here.
10558         * modules/frexp-nolibm (configure.ac): ... and here.
10560 2011-05-20  Bruno Haible  <bruno@clisp.org>
10562         isnan: Respect rules for use of AC_LIBOBJ.
10563         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10564         invocations here.
10565         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10566         REPLACE_ISNAN.
10567         * modules/isnand (configure.ac): Likewise.
10568         * modules/isnanl (configure.ac): Likewise.
10570 2011-05-20  Bruno Haible  <bruno@clisp.org>
10572         isnanl*: Respect rules for use of AC_LIBOBJ.
10573         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10574         invocation from here...
10575         * modules/isnanl (configure.ac): ... to here.
10576         * modules/isnanl-nolibm (configure.ac): ... and here.
10578 2011-05-20  Bruno Haible  <bruno@clisp.org>
10580         isnand*: Move AC_LIBOBJ invocations to module description.
10581         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10582         invocation from here...
10583         * modules/isnand (configure.ac): ... to here.
10584         * modules/isnand-nolibm (configure.ac): ... and here.
10586 2011-05-20  Bruno Haible  <bruno@clisp.org>
10588         isnanf*: Move AC_LIBOBJ invocations to module description.
10589         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10590         invocation from here...
10591         * modules/isnanf (configure.ac): ... to here.
10592         * modules/isnanf-nolibm (configure.ac): ... and here.
10594 2011-05-20  Bruno Haible  <bruno@clisp.org>
10596         isnan*: Separate the AC_LIBOBJ invocations.
10597         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10598         AC_LIBOBJ invocation.
10599         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10600         here.
10601         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10602         AC_LIBOBJ invocation.
10603         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10604         here.
10605         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10606         AC_LIBOBJ invocation.
10607         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10608         here.
10609         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10611 2011-05-08  Bruno Haible  <bruno@clisp.org>
10613         isinf: Move AC_LIBOBJ invocations to module description.
10614         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10615         * modules/isinf (configure.ac): ... to here.
10617 2011-05-08  Bruno Haible  <bruno@clisp.org>
10619         isfinite: Move AC_LIBOBJ invocations to module description.
10620         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10621         * modules/isfinite (configure.ac): ... to here.
10623 2011-05-08  Bruno Haible  <bruno@clisp.org>
10625         isblank: Move AC_LIBOBJ invocations to module description.
10626         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10627         here...
10628         * modules/isblank (configure.ac): ... to here.
10630 2011-05-08  Bruno Haible  <bruno@clisp.org>
10632         isapipe: Move AC_LIBOBJ invocations to module description.
10633         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10634         gl_PREREQ_ISAPIPE invocations from here...
10635         * modules/isapipe (configure.ac): ... to here.
10636         (Depends-on): Update condition.
10638 2011-05-08  Bruno Haible  <bruno@clisp.org>
10640         ioctl: Move AC_LIBOBJ invocations to module description.
10641         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10642         invocations from here...
10643         * modules/ioctl (configure.ac): ... to here.
10644         (Depends-on): Update condition.
10646 2011-05-08  Bruno Haible  <bruno@clisp.org>
10648         imaxdiv: Move AC_LIBOBJ invocations to module description.
10649         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10650         invocations from here...
10651         * modules/imaxdiv (configure.ac): ... to here.
10653 2011-05-08  Bruno Haible  <bruno@clisp.org>
10655         imaxabs: Move AC_LIBOBJ invocations to module description.
10656         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10657         invocations from here...
10658         * modules/imaxabs (configure.ac): ... to here.
10660 2011-05-08  Bruno Haible  <bruno@clisp.org>
10662         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10664         AC_LIBOBJ invocations from here...
10665         * modules/getaddrinfo (configure.ac): ... to here.
10666         (Depends-on): Add conditions.
10668 2011-05-08  Bruno Haible  <bruno@clisp.org>
10670         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10671         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10672         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10673         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10674         (gl_PREREQ_INET_PTON): ... from here.
10675         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10676         gl_PREREQ_INET_PTON here.
10677         (Depends-on): Update condition.
10679 2011-05-08  Bruno Haible  <bruno@clisp.org>
10681         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10682         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10683         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10684         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10685         (gl_PREREQ_INET_NTOP): ... from here.
10686         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10687         gl_PREREQ_INET_NTOP here.
10688         (Depends-on): Update condition.
10690 2011-05-08  Bruno Haible  <bruno@clisp.org>
10692         iconv_open: Move AC_LIBOBJ invocations to module description.
10693         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10694         AC_LIBOBJ invocations from here...
10695         * modules/iconv_open (configure.ac): ... to here.
10697 2011-05-08  Bruno Haible  <bruno@clisp.org>
10699         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10700         If module 'iconv_open' is among the main modules and module
10701         'iconv_open-utf' is among the tests dependencies, then
10702         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10703         return the special iconv_t values. Therefore iconv() and iconv_close()
10704         must support these special iconv_t values, already in lib, not only in
10705         tests.
10706         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10707         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10708         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10709         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10710         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10711         (Depends-on): Add the dependencies of iconv_open-utf.
10712         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10713         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10714         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10716 2011-05-08  Bruno Haible  <bruno@clisp.org>
10718         group-member: Move AC_LIBOBJ invocations to module description.
10719         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10720         gl_PREREQ_GROUP_MEMBER invocations from here...
10721         * modules/group-member (configure.ac): ... to here.
10723 2011-05-08  Bruno Haible  <bruno@clisp.org>
10725         grantpt: Move AC_LIBOBJ invocations to module description.
10726         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10727         invocations from here...
10728         * modules/grantpt (configure.ac): ... to here.
10730 2011-05-08  Bruno Haible  <bruno@clisp.org>
10732         glob: Move AC_LIBOBJ invocations to module description.
10733         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10734         from here...
10735         * modules/glob (configure.ac): ... to here.
10737 2011-05-08  Bruno Haible  <bruno@clisp.org>
10739         getusershell: Move AC_LIBOBJ invocations to module description.
10740         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10741         Move AC_LIBOBJ invocation from here...
10742         * modules/getusershell (configure.ac): ... to here.
10743         (Depends-on): Update condition.
10745 2011-05-08  Bruno Haible  <bruno@clisp.org>
10747         gettimeofday: Move AC_LIBOBJ invocations to module description.
10748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10749         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10750         gl_PREREQ_GETTIMEOFDAY invocations from here...
10751         * modules/gettimeofday (configure.ac): ... to here.
10753 2011-05-08  Bruno Haible  <bruno@clisp.org>
10755         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10756         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10757         just gl_FUNC_TZSET.
10758         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10759         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10761         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10763 2011-05-08  Bruno Haible  <bruno@clisp.org>
10765         getsubopt: Move AC_LIBOBJ invocations to module description.
10766         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10767         gl_PREREQ_GETSUBOPT invocations from here...
10768         * modules/getsubopt (configure.ac): ... to here.
10770 2011-05-08  Bruno Haible  <bruno@clisp.org>
10772         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10773         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10774         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10775         * modules/getpass-gnu (configure.ac): ... to here.
10777 2011-05-08  Bruno Haible  <bruno@clisp.org>
10779         getpass: Move AC_LIBOBJ invocations to module description.
10780         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10781         gl_PREREQ_GETPASS invocations from here...
10782         * modules/getpass (configure.ac): ... to here.
10784 2011-05-08  Bruno Haible  <bruno@clisp.org>
10786         getpagesize: Move AC_LIBOBJ invocations to module description.
10787         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10788         from here...
10789         * modules/getpagesize (configure.ac): ... to here.
10791 2011-05-08  Bruno Haible  <bruno@clisp.org>
10793         getopt: Move AC_LIBOBJ invocations to module description.
10794         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10795         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10796         invocations from here...
10797         * modules/getopt-gnu (configure.ac): ... to here.
10798         * modules/getopt-posix (configure.ac): ... and here.
10799         (Depends-on): Update condition.
10801 2011-05-08  Bruno Haible  <bruno@clisp.org>
10803         getopt, argp: Respect rules for use of AC_LIBOBJ.
10804         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10805         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10806         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10807         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10809 2011-05-08  Bruno Haible  <bruno@clisp.org>
10811         getlogin_r: Move AC_LIBOBJ invocations to module description.
10812         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10813         gl_PREREQ_GETLOGIN_R invocations from here...
10814         * modules/getlogin_r (configure.ac): ... to here.
10816 2011-05-08  Bruno Haible  <bruno@clisp.org>
10818         getlogin: Move AC_LIBOBJ invocations to module description.
10819         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10820         here...
10821         * modules/getlogin (configure.ac): ... to here.
10823 2011-05-08  Bruno Haible  <bruno@clisp.org>
10825         getloadavg: Move AC_LIBOBJ invocations to module description.
10826         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10827         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10828         * modules/getloadavg (configure.ac): ... to here.
10830 2011-05-08  Bruno Haible  <bruno@clisp.org>
10832         gethrxtime: Move AC_LIBOBJ invocations to module description.
10833         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10834         LIB_GETHRXTIME from here...
10835         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10836         invocations from here...
10837         * modules/gethrxtime (configure.ac): ... to here.
10839 2011-05-08  Bruno Haible  <bruno@clisp.org>
10841         gethostname: Move AC_LIBOBJ invocations to module description.
10842         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10843         gl_PREREQ_GETHOSTNAME invocations from here...
10844         * modules/gethostname (configure.ac): ... to here.
10846 2011-05-08  Bruno Haible  <bruno@clisp.org>
10848         getgroups: Move AC_LIBOBJ invocations to module description.
10849         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10850         here...
10851         * modules/getgroups (configure.ac): ... to here.
10853 2011-05-08  Bruno Haible  <bruno@clisp.org>
10855         getdtablesize: Move AC_LIBOBJ invocations to module description.
10856         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10857         invocation from here...
10858         * modules/getdtablesize (configure.ac): ... to here.
10860 2011-05-08  Bruno Haible  <bruno@clisp.org>
10862         getdomainname: Move AC_LIBOBJ invocations to module description.
10863         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10864         gl_PREREQ_GETDOMAINNAME invocations from here...
10865         * modules/getdomainname (configure.ac): ... to here.
10867 2011-05-08  Bruno Haible  <bruno@clisp.org>
10869         getline: Move AC_LIBOBJ invocations to module description.
10870         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10871         invocations from here...
10872         * modules/getline (configure.ac): ... to here.
10874 2011-05-08  Bruno Haible  <bruno@clisp.org>
10876         getline: Simplify.
10877         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10878         It's already handled through the module dependency.
10880 2011-05-08  Bruno Haible  <bruno@clisp.org>
10882         getdelim: Move AC_LIBOBJ invocations to module description.
10883         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10884         and gl_PREREQ_GETDELIM invocations from here...
10885         * modules/getdelim (configure.ac): ... to here.
10886         (Depends-on): Fix condition.
10888 2011-05-08  Bruno Haible  <bruno@clisp.org>
10890         getcwd: Move AC_LIBOBJ invocations to module description.
10891         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10892         invocations from here...
10893         * modules/getcwd (configure.ac): ... to here.
10895 2011-05-08  Bruno Haible  <bruno@clisp.org>
10897         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10898         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10899         here...
10900         * modules/getcwd-lgpl (configure.ac): ... to here.
10902 2011-05-07  Bruno Haible  <bruno@clisp.org>
10904         crypto/gc: Move AC_LIBOBJ invocations to module description.
10905         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10906         * modules/crypto/gc (configure.ac): ... to here.
10908 2011-05-07  Bruno Haible  <bruno@clisp.org>
10910         fwriting: Move AC_LIBOBJ invocations to module description.
10911         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10912         here...
10913         * modules/fwriting (configure.ac): ... to here.
10915 2011-05-07  Bruno Haible  <bruno@clisp.org>
10917         fwritable: Move AC_LIBOBJ invocations to module description.
10918         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10919         here...
10920         * modules/fwritable (configure.ac): ... to here.
10922 2011-05-07  Bruno Haible  <bruno@clisp.org>
10924         futimens: Move AC_LIBOBJ invocations to module description.
10925         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10926         here...
10927         * modules/futimens (configure.ac): ... to here.
10929 2011-05-07  Bruno Haible  <bruno@clisp.org>
10931         ftruncate: Move AC_LIBOBJ invocations to module description.
10932         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10933         gl_PREREQ_FTRUNCATE invocations from here...
10934         * modules/ftruncate (configure.ac): ... to here.
10936 2011-05-07  Bruno Haible  <bruno@clisp.org>
10938         fsync: Move AC_LIBOBJ invocations to module description.
10939         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10940         invocations from here...
10941         * modules/fsync (configure.ac): ... to here.
10943 2011-05-07  Bruno Haible  <bruno@clisp.org>
10945         fsusage: Move AC_LIBOBJ invocations to module description.
10946         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10947         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10948         * modules/fsusage (configure.ac): ... to here.
10950 2011-05-07  Bruno Haible  <bruno@clisp.org>
10952         freopen: Move AC_LIBOBJ invocations to module description.
10953         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10954         invocations from here...
10955         * modules/freopen (configure.ac): ... to here.
10957 2011-05-07  Bruno Haible  <bruno@clisp.org>
10959         free: Move AC_LIBOBJ invocations to module description.
10960         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10961         invocations from here...
10962         * modules/free (configure.ac): ... to here.
10964 2011-05-07  Bruno Haible  <bruno@clisp.org>
10966         freadable: Move AC_LIBOBJ invocations to module description.
10967         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10968         here...
10969         * modules/freadable (configure.ac): ... to here.
10971 2011-05-07  Bruno Haible  <bruno@clisp.org>
10973         fpurge: Move AC_LIBOBJ invocations to module description.
10974         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10975         invocations from here...
10976         * modules/fpurge (configure.ac): ... to here.
10978 2011-05-07  Bruno Haible  <bruno@clisp.org>
10980         fpending: Move AC_LIBOBJ invocations to module description.
10981         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10982         gl_FUNC_FPENDING.
10983         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10984         invocations from here...
10985         * modules/fpending (configure.ac): ... to here.
10987 2011-05-07  Bruno Haible  <bruno@clisp.org>
10989         fopen: Move AC_LIBOBJ invocations to module description.
10990         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10991         invocations from here...
10992         * modules/fopen (configure.ac): ... to here.
10994 2011-05-07  Bruno Haible  <bruno@clisp.org>
10996         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10997         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10998         gl_FUNC_FNMATCH_POSIX.
10999         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11000         invocations from here...
11001         * modules/fnmatch (configure.ac): ... to here.
11002         * modules/fnmatch-gnu (configure.ac): ... and here.
11004 2011-05-07  Bruno Haible  <bruno@clisp.org>
11006         flock: Move AC_LIBOBJ invocations to module description.
11007         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11008         invocations from here...
11009         * modules/flock (configure.ac): ... to here.
11011 2011-05-07  Bruno Haible  <bruno@clisp.org>
11013         fileblocks: Move AC_LIBOBJ invocations to module description.
11014         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11015         gl_PREREQ_FILEBLOCKS invocations from here...
11016         * modules/fileblocks (configure.ac): ... to here.
11018 2011-05-06  Bruno Haible  <bruno@clisp.org>
11020         fflush: Move AC_LIBOBJ invocations to module description.
11021         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11022         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11023         invocations from here...
11024         * modules/fflush (configure.ac): ... to here.
11026 2011-05-06  Bruno Haible  <bruno@clisp.org>
11028         fdopendir: Move AC_LIBOBJ invocations to module description.
11029         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11030         here...
11031         * modules/fdopendir (configure.ac): ... to here.
11032         (Depends-on): Improve conditions.
11034 2011-05-06  Bruno Haible  <bruno@clisp.org>
11036         _Exit: Move AC_LIBOBJ invocations to module description.
11037         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11038         invocations from here...
11039         * modules/_Exit (configure.ac): ... to here.
11041 2011-05-21  Bruno Haible  <bruno@clisp.org>
11043         euidaccess: Respect rules for use of AC_LIBOBJ.
11044         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11046         from here...
11047         * modules/euidaccess (configure.ac): ... to here.
11049 2011-05-06  Bruno Haible  <bruno@clisp.org>
11051         error: Move AC_LIBOBJ invocations to module description.
11052         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11053         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11054         invocations from here...
11055         * modules/error (configure.ac): ... to here.
11057 2011-05-06  Bruno Haible  <bruno@clisp.org>
11059         duplocale: Move AC_LIBOBJ invocations to module description.
11060         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11061         gl_PREREQ_DUPLOCALE invocations from here...
11062         * modules/duplocale (configure.ac): ... to here.
11064 2011-05-05  Bruno Haible  <bruno@clisp.org>
11066         dirfd: Move AC_LIBOBJ invocations to module description.
11067         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11068         gl_FUNC_DIRFD.
11069         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11070         here...
11071         * modules/dirfd (configure.ac): ... to here.
11072         (Depends-on): Fix condition.
11074 2011-05-05  Bruno Haible  <bruno@clisp.org>
11076         chown: Respect rules for use of AC_LIBOBJ.
11077         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11078         * modules/chown (configure.ac): ... to here.
11080 2011-05-05  Bruno Haible  <bruno@clisp.org>
11082         chdir-long: Move AC_LIBOBJ invocations to module description.
11083         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11084         gl_PREREQ_CHDIR_LONG invocations from here...
11085         * modules/chdir-long (configure.ac): ... to here.
11087 2011-05-05  Bruno Haible  <bruno@clisp.org>
11089         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11090         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11091         from here...
11092         * modules/canonicalize-lgpl (configure.ac): ... to here.
11094 2011-05-05  Bruno Haible  <bruno@clisp.org>
11096         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11097         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11098         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11099         REPLACE_CALLOC.
11100         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11101         * modules/calloc-gnu (configure.ac): Likewise.
11103 2011-05-05  Bruno Haible  <bruno@clisp.org>
11105         btowc: Move AC_LIBOBJ invocations to module description.
11106         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11107         invocations from here...
11108         * modules/btowc (configure.ac): ... to here.
11110 2011-05-21  Bruno Haible  <bruno@clisp.org>
11112         atexit: Move AC_LIBOBJ invocations to module description.
11113         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11115         here...
11116         * modules/atexit (configure.ac): ... to here.
11118 2011-05-05  Bruno Haible  <bruno@clisp.org>
11120         atoll: Move AC_LIBOBJ invocations to module description.
11121         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11122         invocations from here...
11123         * modules/atoll (configure.ac): ... to here.
11125 2011-05-05  Bruno Haible  <bruno@clisp.org>
11127         argz: Move AC_LIBOBJ invocations to module description.
11128         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11129         * modules/argz (configure.ac): ... to here.
11131 2011-05-05  Bruno Haible  <bruno@clisp.org>
11133         alphasort: Move AC_LIBOBJ invocations to module description.
11134         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11135         gl_PREREQ_ALPHASORT invocations from here...
11136         * modules/alphasort (configure.ac): ... to here.
11138 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11140         verify: new macro verify_expr; verify_true deprecated
11141         * NEWS: Mention this.
11142         * doc/verify.texi (Compile-time Assertions): Document this.
11143         * lib/verify.h (verify_true): Deprecate.
11144         (verify_expr): New macro.
11145         * tests/test-verify.c (function): Test verify_expr.
11147 2011-06-14  Jim Meyering  <meyering@redhat.com>
11149         init.sh: give more portable redirection-related advice in a comment
11150         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11151         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11152         for lots of discussion.  Stefano Lattarini suggested the solution
11153         of putting "9>&2" after the command.  Reported by Bruno Haible.
11155 2011-06-13  Bruno Haible  <bruno@clisp.org>
11157         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11158         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11159         'none'.
11161 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11163         ftoastr: use strtof only if HAVE_STRTOF
11164         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11166         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11167         * modules/ftoastr (configure.ac): Check for strtof.
11169 2011-06-13  Bruno Haible  <bruno@clisp.org>
11171         gnulib-tool: Addendum to 2011-06-08 commit.
11172         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11173         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11175 2011-06-13  Bruno Haible  <bruno@clisp.org>
11177         fseeko: Provide a non-inline replacement of fseek().
11178         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11179         * modules/fseeko (Depends-on): Add fseek.
11180         * modules/fseek (License): Change to LGPLv2+.
11182 2011-06-13  Bruno Haible  <bruno@clisp.org>
11184         ftello: Provide a non-inline replacement of ftell().
11185         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11186         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11187         not have ftello() (such as on mingw).
11188         * modules/ftello (Depends-on): Add ftell.
11189         * modules/ftell (License): Change to LGPLv2+.
11191 2011-05-07  Bruno Haible  <bruno@clisp.org>
11193         ftell: Move AC_LIBOBJ invocations to module description.
11194         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11195         * modules/ftell (configure.ac): ... to here.
11197 2011-05-07  Bruno Haible  <bruno@clisp.org>
11199         ftello: Respect rules for use of AC_LIBOBJ.
11200         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11201         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11202         here...
11203         * modules/ftello (configure.ac): ... to here.
11205 2011-05-07  Bruno Haible  <bruno@clisp.org>
11207         fseeko: Simplify.
11208         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11209         (gl_FUNC_FSEEKO): Inline it here.
11211 2011-05-07  Bruno Haible  <bruno@clisp.org>
11213         fseek: Move AC_LIBOBJ invocations to module description.
11214         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11215         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11216         * modules/fseek (configure.ac): ... to here.
11218 2011-05-07  Bruno Haible  <bruno@clisp.org>
11220         fseek: Respect rules for use of AC_LIBOBJ.
11221         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11222         here...
11223         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11225 2011-05-07  Bruno Haible  <bruno@clisp.org>
11227         fseeko: Respect rules for use of AC_LIBOBJ.
11228         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11229         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11230         here...
11231         * modules/fseeko (configure.ac): ... to here.
11233 2011-06-13  Bruno Haible  <bruno@clisp.org>
11235         gnulib-tool: Allow comments in the 'Depends-on' section.
11236         * doc/gnulib.texi (Module description): Mention comment syntax in the
11237         Depends-on section.
11238         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11240 2011-06-13  Bruno Haible  <bruno@clisp.org>
11242         file-set.h: guard __attibute__ use, now that it's not always defined
11243         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11244         versions that support it.  This fixes a coreutils build failure with
11245         the vendor cc on HP-UX 11.31.
11247 2011-06-12  Bruno Haible  <bruno@clisp.org>
11249         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11250         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11251         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11252         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11253         (acl, aclsort): New declarations.
11254         (aclv_nontrivial): New declaration.
11255         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11256         (file_has_acl): Read also the second kind of HP-UX ACLs.
11257         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11258         kind of HP-UX ACLs if the first kind fails.
11259         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11260         second kind of HP-UX ACLs.
11261         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11262         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11263         agree.
11264         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11265         hpuxjfs.
11266         Handle hpuxjfs.
11267         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11268         hpuxjfs.
11269         Handle hpuxjfs.
11270         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11271         (func_test_same_acls): Use both lsacl and getacl.
11272         Handle hpuxjfs.
11273         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11274         (func_test_same_acls): Use both lsacl and getacl.
11275         Handle hpuxjfs.
11277 2011-06-12  Bruno Haible  <bruno@clisp.org>
11279         acl: Complete the 2010-08-10 fix.
11280         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11281         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11282         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11283         explicitly.
11284         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11285         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11287 2011-06-12  Bruno Haible  <bruno@clisp.org>
11289         spawn-pipe tests: Comments.
11290         * tests/test-spawn-pipe-child.c (main): Update comment.
11291         Reported by James Youngman <jay@gnu.org>.
11293 2011-06-11  James Youngman  <jay@gnu.org>
11295         New module 'stat-size'.
11296         * modules/stat-size: New module.  Provides macros for accessing
11297         file size information in instances of struct stat.  Depends on the
11298         fileblocks module because it calls st_blocks.
11299         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11300         * doc/gnulib.texi: Include stat-size.texi.
11301         * doc/stat-size.texi: Documentation for this module.
11302         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11303         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11304         AC_STRUCT_ST_BLOCKS.
11306 2011-06-09  Bruno Haible  <bruno@clisp.org>
11308         thread: Support pthreads-win32.
11309         * lib/glthread/thread.h (gl_thread_self): Define differently on
11310         pthreads-win32.
11311         (gl_null_thread): New declaration.
11312         (gl_thread_self_pointer): New macro.
11313         * lib/glthread/thread.c (gl_null_thread): New constant.
11314         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11315         gl_thread_self.
11316         * tests/test-tls.c: Likewise.
11317         Suggested by Paul Eggert. Reported by Eric Blake.
11319 2011-06-09  Bruno Haible  <bruno@clisp.org>
11321         thread: Fix confusion between NULL and 0.
11322         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11323         Reported by Paul Eggert.
11325 2011-06-09  Bruno Haible  <bruno@clisp.org>
11327         spawn-pipe tests: Avoid test failure on HP-UX 11.
11328         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11329         is closed.
11331 2011-06-09  Bruno Haible  <bruno@clisp.org>
11333         acl tests: Fix compilation error on HP-UX 11.
11334         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11336 2011-06-09  Bruno Haible  <bruno@clisp.org>
11338         rmdir: Avoid test failure on HP-UX 10.20.
11339         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11340         EEXIST.
11342 2011-06-08  Eric Blake  <eblake@redhat.com>
11344         perror: fix test on mingw
11345         * modules/perror-tests (Depends-on): Add dup2.
11347         strerror_r-posix: fix on MacOS
11348         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11349         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11350         logic bug.
11351         * lib/strerror_r.c (strerror_r): Fix the bug.
11352         * lib/strerror.c (strerror): Likewise.
11353         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11354         problem.
11355         * doc/posix-functions/strerror.texi (strerror): Likewise.
11356         * doc/posix-functions/perror.texi (perror): Likewise.
11357         * tests/test-strerror.c (main): Enhance test.
11358         * tests/test-strerror_r.c (main): Likewise.
11360 2011-06-08  Bruno Haible  <bruno@clisp.org>
11362         gnulib-tool: Better isolation between different gnulib-tool invocations.
11363         * gnulib-tool: New option --witness-c-macro.
11364         (witness_c_macro): New variable.
11365         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11366         AM_CPPFLAGS define it as a C macro.
11367         (func_emit_tests_Makefile_am): Likewise.
11368         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11369         read it from there.
11370         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11371         m4_define, not AC_DEFUN.
11372         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11373         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11374         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11375         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11376         s|...|...|, to substitute the values of the GNULIB_* module indicator
11377         variables.
11378         * modules/dirent (Makefile.am): Likewise.
11379         * modules/fcntl-h (Makefile.am): Likewise.
11380         * modules/iconv-h (Makefile.am): Likewise.
11381         * modules/langinfo (Makefile.am): Likewise.
11382         * modules/locale (Makefile.am): Likewise.
11383         * modules/math (Makefile.am): Likewise.
11384         * modules/netdb (Makefile.am): Likewise.
11385         * modules/poll-h (Makefile.am): Likewise.
11386         * modules/pty (Makefile.am): Likewise.
11387         * modules/search (Makefile.am): Likewise.
11388         * modules/signal (Makefile.am): Likewise.
11389         * modules/spawn (Makefile.am): Likewise.
11390         * modules/stdio (Makefile.am): Likewise.
11391         * modules/stdlib (Makefile.am): Likewise.
11392         * modules/string (Makefile.am): Likewise.
11393         * modules/sys_ioctl (Makefile.am): Likewise.
11394         * modules/sys_select (Makefile.am): Likewise.
11395         * modules/sys_socket (Makefile.am): Likewise.
11396         * modules/sys_stat (Makefile.am): Likewise.
11397         * modules/sys_times (Makefile.am): Likewise.
11398         * modules/sys_utsname (Makefile.am): Likewise.
11399         * modules/sys_wait (Makefile.am): Likewise.
11400         * modules/termios (Makefile.am): Likewise.
11401         * modules/time (Makefile.am): Likewise.
11402         * modules/unistd (Makefile.am): Likewise.
11403         * modules/wchar (Makefile.am): Likewise.
11405 2011-06-08  Eric Blake  <eblake@redhat.com>
11407         strerror: simplify replacement
11408         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11409         * modules/strerror (configure.ac): No prereqs needed here...
11410         * modules/strerror-override (configure.ac): ...but this needs it.
11411         (Files): Add file for needed prereq macro.
11413 2011-06-08  Bruno Haible  <bruno@clisp.org>
11415         strerror_r-posix: Tweaks.
11416         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11417         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11418         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11419         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11420         (gl_FUNC_STRERROR_R): ... to here.
11421         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11423 2011-06-07  Eric Blake  <eblake@redhat.com>
11425         perror: document fixed bugs
11426         * doc/posix-functions/perror.texi (perror): Document recent
11427         patches.
11429 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11431         stat-time: get_stat_birthtime failure is better-defined
11432         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11433         return a timestamp whose tv_sec and tv_nsec values are both -1.
11434         Previously, the spec said only that the tv_nsec value was negative.
11435         This upward-compatible change simplifies GNU tar a bit.
11437 2011-06-07  Eric Blake  <eblake@redhat.com>
11439         strerror_r-posix: work around cygwin 1.7.9
11440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11441         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11442         bug without replacing strerror_r.
11443         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11444         strerror_r is buggy, but without requiring strerror_r compilation.
11445         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11447         test-perror: relax test to ignore cygwin bug
11448         * tests/test-perror2.c (main): Relax test on requiring detection
11449         of stream errors, and use unbuffered stream.
11450         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11451         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11452         * doc/posix-functions/fputc.texi (fputc): Likewise.
11453         * doc/posix-functions/fputs.texi (fputs): Likewise.
11454         * doc/posix-functions/fputws.texi (fputws): Likewise.
11455         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11456         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11457         * doc/posix-functions/getopt.texi (getopt): Likewise.
11458         * doc/posix-functions/perror.texi (perror): Likewise.
11459         * doc/posix-functions/printf.texi (printf): Likewise.
11460         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11461         * doc/posix-functions/psignal.texi (psignal): Likewise.
11462         * doc/posix-functions/putc.texi (putc): Likewise.
11463         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11464         Likewise.
11465         * doc/posix-functions/putchar.texi (putchar): Likewise.
11466         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11467         Likewise.
11468         * doc/posix-functions/puts.texi (puts): Likewise.
11469         * doc/posix-functions/putwc.texi (putwc): Likewise.
11470         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11471         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11472         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11473         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11474         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11475         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11476         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11477         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11479 2011-05-22  Bruno Haible  <bruno@clisp.org>
11481         strerror: Move AC_LIBOBJ invocations to module description.
11482         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11483         gl_PREREQ_STRERROR invocations from here...
11484         * modules/strerror (configure.ac): ... to here.
11486 2011-05-21  Bruno Haible  <bruno@clisp.org>
11488         perror: Use common idiom.
11489         * modules/perror (configure.ac): Reorder statements.
11491 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11493         tests: fix usage message in 'mktempd_'
11494         * tests/init.sh (mktempd_): In the usage message, use literal
11495         'mktempd_', not '$ME' (which is even undefined), as the name of
11496         the subroutine.
11498 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11500         tests init: new function 'fatal_', for hard errors
11501         Before this patch, the only way offered by tests/init.sh to
11502         properly signal a hard error was the `framework_failure_'
11503         function.  But the error message issued by that function,
11504         as its name would suggest, refers to a set-up failure in the
11505         testsuite, while hard errors can obviously also be due to
11506         other reasons.  The best way to fix this inconsistency is to
11507         introduce a new function with a more general error message.
11508         * tests/init.sh (fatal_): New function.
11510 2011-06-06  Eric Blake  <eblake@redhat.com>
11512         canonicalize-lgpl: use common idiom
11513         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11514         over newer POSIX -Rf.
11515         Reported by Bruno Haible.
11517         canonicalize-lgpl: work around AIX realpath bug
11518         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11519         * doc/posix-functions/realpath.texi (realpath): Document it.
11520         Reported by Bruno Haible.
11522         strerror: work around FreeBSD bug
11523         * lib/strerror.c (strerror): Special case 0.
11524         Reported by Bruno Haible.
11526         strerror-override: avoid bloating errno module
11527         * modules/errno (Files, configure.ac): Move replacement strings...
11528         * modules/strerror-override: ...to new module.
11529         * modules/strerror (Depends-on): Add strerror-override.
11530         * modules/strerror_r-posix (Depends-on): Likewise.
11531         * MODULES.html.sh: Document new module.
11532         Reported by Bruno Haible.
11534 2011-06-06  Bruno Haible  <bruno@clisp.org>
11536         spawn-pipe tests: Rename program.
11537         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11538         * tests/test-spawn-pipe-child.c: Update comment.
11539         * tests/test-spawn-pipe.sh: Update.
11540         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11542         spawn-pipe tests: Link the child program only against libc.
11543         * tests/test-spawn-pipe-child.c: New file, extracted from
11544         tests/test-spawn-pipe.c.
11545         (main): Expect only one argument.
11546         (is_open): New function, copied from tests/test-pipe.c.
11547         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11548         (child_main): Remove function.
11549         (test_pipe): Pass only one argument to the child program.
11550         (main): Remove child process code. Expect the child program's name as
11551         first argument.
11552         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11553         argument.
11554         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11555         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11556         test-spawn-pipe-child against no libraries.
11558 2011-06-06  Bruno Haible  <bruno@clisp.org>
11560         careadlinkat: Avoid mismatch between ssize_t and int.
11561         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11562         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11564 2011-06-06  Jim Meyering  <meyering@redhat.com>
11566         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11567         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11568         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11570 2011-06-05  Bruno Haible  <bruno@clisp.org>
11572         ansi-c++-opt: Interoperability with libtool.
11573         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11574         set the variable to "no", not to ":".
11575         * NEWS: Mention the change.
11577 2011-06-05  Bruno Haible  <bruno@clisp.org>
11579         acl: Fix test failure on AIX 7.
11580         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11581         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11583 2011-06-05  Bruno Haible  <bruno@clisp.org>
11585         pipe-filter-ii: Fix test failure on AIX and IRIX.
11586         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11587         with EAGAIN, retry with a smaller buffer size.
11589 2011-06-05  Bruno Haible  <bruno@clisp.org>
11591         localename: Fix link dependencies.
11592         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11593         * modules/localename-tests (Makefile.am): Link test-localename with
11594         $(LIBTHREAD).
11596 2011-06-05  Bruno Haible  <bruno@clisp.org>
11598         error: Avoid gcc warning.
11599         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11601 2011-06-05  Bruno Haible  <bruno@clisp.org>
11603         unsetenv: Avoid gcc warning.
11604         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11606 2011-06-05  Bruno Haible  <bruno@clisp.org>
11608         setenv: Avoid gcc warning.
11609         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11611 2011-06-05  Bruno Haible  <bruno@clisp.org>
11613         sys_select: Ensure memset is declared also on AIX 7.
11614         * lib/sys_select.in.h: Include <string.h> also on AIX.
11615         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11616         self-contained also on AIX 7.1.
11618 2011-06-04  Jim Meyering  <meyering@redhat.com>
11620         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11621         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11622         function name, "error".
11623         (_gl_translatable_diag_func_re): New configurable variable.
11625 2011-06-04  Bruno Haible  <bruno@clisp.org>
11627         getopt: Avoid gcc warning.
11628         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11630 2011-06-04  Bruno Haible  <bruno@clisp.org>
11632         strerror_r: Fix comments.
11633         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11634         commit.
11636 2011-06-04  Bruno Haible  <bruno@clisp.org>
11638         perror: Fix compilation error.
11639         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11640         Undefine fprintf, not sprintf.
11641         * modules/perror (Depends-on): Remove intprops, verify.
11643 2011-06-04  Bruno Haible  <bruno@clisp.org>
11645         setlocale: Enable replacement on Cygwin 1.5.
11646         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11647         Cygwin 1.5.x.
11648         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11649         LC_CTYPE category also exists on Cygwin 1.5.x.
11651 2011-06-04  Bruno Haible  <bruno@clisp.org>
11653         strerror-override: Don't disable symbol renamings.
11654         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11655         * lib/strerror-override.c: Include config.h.
11656         (strerror_override): Don't undefine.
11658 2011-06-03  Bruno Haible  <bruno@clisp.org>
11660         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11661         * lib/localename.h: Update copyright header.
11662         * lib/localename.c: Likewise.
11663         * lib/relocatable.h: Likewise.
11664         * lib/relocatable.c: Likewise.
11666 2011-06-02  Bruno Haible  <bruno@clisp.org>
11668         doc: Fix a module name.
11669         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11671 2011-06-02  Bruno Haible  <bruno@clisp.org>
11673         pipe2: Remove dependency on 'nonblocking' module.
11674         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11675         O_NONBLOCK is defined by gnulib.
11676         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11677         is zero.
11678         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11679         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11680         defined by gnulib.
11681         (get_nonblocking_flag): New function.
11682         (main): Test O_NONBLOCK flag only if it is nonzero.
11683         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11685 2011-06-03  Jim Meyering  <meyering@redhat.com>
11687         maint: three new prohibit-header-without-use rules
11688         Prohibit use of cloexec.h, posixver.h, same.h without use.
11689         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11690         (sc_prohibit_posixver_without_use): Likewise.
11691         (sc_prohibit_same_without_use): Likewise.
11693 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11695         allocator: 'die' routine is now given requested size
11696         * lib/allocator.h (struct allocator.die): New size arg.
11697         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11698         If the actual problem is an ssize_t limitation, not a size_t or
11699         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11701 2011-06-01  Eric Blake  <eblake@redhat.com>
11703         strerror: drop strerror_r dependency
11704         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11705         * lib/strerror-override.c (strerror_override): ...to new file.
11706         * lib/strerror-override.h: Add prototype.
11707         * lib/strerror-impl.h: Delete.
11708         * lib/strerror.c (strerror): New implementation.
11709         * modules/errno (Files): Add new files.
11710         (configure.ac): Compile new file as appropriate.
11711         * modules/strerror (Files): Drop unused file.
11712         (Depends-on): Drop strerror_r-posix.
11713         * MODULES.html.sh: Document strerror_r-posix.
11714         Requested by Sam Steingold.
11716         perror: call strerror_r directly
11717         * modules/perror (Files): Drop strerror-impl.h.
11718         * lib/perror.c (perror): Use our own stack buffer, rather than
11719         calling a wrapper that uses static storage.
11720         * doc/posix-functions/perror.texi (perror): Document a limitation
11721         of our replacement.
11723         strerror_r: fix includes for FreeBSD
11724         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11725         since we use abort on some platforms.
11726         Reported by Matthias Bolte.
11728 2011-05-31  Bruno Haible  <bruno@clisp.org>
11730         Fix link errors in tests: openat-die uses gettext-h.
11731         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11732         against $(LIBINTL).
11733         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11734         against $(LIBINTL).
11735         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11736         $(LIBINTL).
11737         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11738         against $(LIBINTL).
11739         * modules/linkat-tests (Makefile.am): Link test-linkat against
11740         $(LIBINTL).
11741         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11742         $(LIBINTL).
11743         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11744         against $(LIBINTL).
11745         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11746         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11747         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11748         $(LIBINTL).
11749         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11750         $(LIBINTL).
11751         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11752         $(LIBINTL).
11753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11755 2011-05-31  Bruno Haible  <bruno@clisp.org>
11757         Fix link errors in tests: wait-process uses gettext-h.
11758         * modules/nonblocking-pipe-tests (Makefile.am): Set
11759         test_nonblocking_pipe_main_LDADD.
11760         * modules/nonblocking-socket-tests (Makefile.am): Link
11761         test-nonblocking-socket-main against $(LIBINTL).
11762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11764 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11766         assert-h: work around 'verify' incompatibility
11767         * lib/verify.h: Use @...@ directives, not ifdef.
11768         * modules/assert-h (assert.h): Implement the directives.
11769         (assert.h): Substitute the symbol-prefix more consistently.
11771 2011-05-29  Jim Meyering  <meyering@redhat.com>
11773         trim: remove three superfluous assignments
11774         * lib/trim.c (trim2): Remove three superfluous assignments
11775         and correct brace positioning.
11777 2011-05-29  Bruno Haible  <bruno@clisp.org>
11779         wctype-h: Avoid namespace pollution on Solaris 2.6.
11780         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11781         identifiers.
11782         * doc/posix-headers/wctype.texi: Mention the problem.
11783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11785 2011-05-28  Jim Meyering  <meyering@redhat.com>
11787         parse-datetime.y: accommodate -Wstrict-overflow
11788         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11789         placate -Wstrict-overflow.
11791         trim: avoid a warning from -O2 -Wstrict-overflow
11792         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11794 2011-05-29  Bruno Haible  <bruno@clisp.org>
11796         gnulib-tool: Fix bug in yesterday's commit.
11797         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11798         twice.
11800 2011-05-29  Bruno Haible  <bruno@clisp.org>
11802         Allow multiple gnulib generated include files to be combined.
11803         * gnulib-tool (func_compute_include_guard_prefix): New function.
11804         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11805         ${gl_include_guard_prefix} references.
11806         (func_import, func_create_testdir): Invoke
11807         func_compute_include_guard_prefix.
11808         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11809         * lib/ctype.in.h: Likewise.
11810         * lib/dirent.in.h: Likewise.
11811         * lib/errno.in.h: Likewise.
11812         * lib/fcntl.in.h: Likewise.
11813         * lib/float.in.h: Likewise.
11814         * lib/getopt.in.h: Likewise.
11815         * lib/iconv.in.h: Likewise.
11816         * lib/langinfo.in.h: Likewise.
11817         * lib/locale.in.h: Likewise.
11818         * lib/math.in.h: Likewise.
11819         * lib/netdb.in.h: Likewise.
11820         * lib/netinet_in.in.h: Likewise.
11821         * lib/poll.in.h: Likewise.
11822         * lib/pthread.in.h: Likewise.
11823         * lib/pty.in.h: Likewise.
11824         * lib/sched.in.h: Likewise.
11825         * lib/se-selinux.in.h: Likewise.
11826         * lib/search.in.h: Likewise.
11827         * lib/signal.in.h: Likewise.
11828         * lib/spawn.in.h: Likewise.
11829         * lib/stdarg.in.h: Likewise.
11830         * lib/stddef.in.h: Likewise.
11831         * lib/stdint.in.h: Likewise.
11832         * lib/stdio.in.h: Likewise.
11833         * lib/stdlib.in.h: Likewise.
11834         * lib/string.in.h: Likewise.
11835         * lib/strings.in.h: Likewise.
11836         * lib/sys_file.in.h: Likewise.
11837         * lib/sys_ioctl.in.h: Likewise.
11838         * lib/sys_select.in.h: Likewise.
11839         * lib/sys_socket.in.h: Likewise.
11840         * lib/sys_stat.in.h: Likewise.
11841         * lib/sys_time.in.h: Likewise.
11842         * lib/sys_times.in.h: Likewise.
11843         * lib/sys_uio.in.h: Likewise.
11844         * lib/sys_utsname.in.h: Likewise.
11845         * lib/sys_wait.in.h: Likewise.
11846         * lib/sysexits.in.h: Likewise.
11847         * lib/termios.in.h: Likewise.
11848         * lib/time.in.h: Likewise.
11849         * lib/unistd.in.h: Likewise.
11850         * lib/wchar.in.h: Likewise.
11851         * lib/wctype.in.h: Likewise.
11852         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11853         * modules/ctype (Makefile.am): Likewise.
11854         * modules/dirent (Makefile.am): Likewise.
11855         * modules/errno (Makefile.am): Likewise.
11856         * modules/fcntl-h (Makefile.am): Likewise.
11857         * modules/float (Makefile.am): Likewise.
11858         * modules/getopt-posix (Makefile.am): Likewise.
11859         * modules/iconv-h (Makefile.am): Likewise.
11860         * modules/langinfo (Makefile.am): Likewise.
11861         * modules/locale (Makefile.am): Likewise.
11862         * modules/math (Makefile.am): Likewise.
11863         * modules/netdb (Makefile.am): Likewise.
11864         * modules/netinet_in (Makefile.am): Likewise.
11865         * modules/poll-h (Makefile.am): Likewise.
11866         * modules/pthread (Makefile.am): Likewise.
11867         * modules/pty (Makefile.am): Likewise.
11868         * modules/sched (Makefile.am): Likewise.
11869         * modules/search (Makefile.am): Likewise.
11870         * modules/selinux-h (Makefile.am): Likewise.
11871         * modules/signal (Makefile.am): Likewise.
11872         * modules/spawn (Makefile.am): Likewise.
11873         * modules/stdarg (Makefile.am): Likewise.
11874         * modules/stddef (Makefile.am): Likewise.
11875         * modules/stdint (Makefile.am): Likewise.
11876         * modules/stdio (Makefile.am): Likewise.
11877         * modules/stdlib (Makefile.am): Likewise.
11878         * modules/string (Makefile.am): Likewise.
11879         * modules/strings (Makefile.am): Likewise.
11880         * modules/sys_file (Makefile.am): Likewise.
11881         * modules/sys_ioctl (Makefile.am): Likewise.
11882         * modules/sys_select (Makefile.am): Likewise.
11883         * modules/sys_socket (Makefile.am): Likewise.
11884         * modules/sys_stat (Makefile.am): Likewise.
11885         * modules/sys_time (Makefile.am): Likewise.
11886         * modules/sys_times (Makefile.am): Likewise.
11887         * modules/sys_uio (Makefile.am): Likewise.
11888         * modules/sys_utsname (Makefile.am): Likewise.
11889         * modules/sys_wait (Makefile.am): Likewise.
11890         * modules/sysexits (Makefile.am): Likewise.
11891         * modules/termios (Makefile.am): Likewise.
11892         * modules/time (Makefile.am): Likewise.
11893         * modules/unistd (Makefile.am): Likewise.
11894         * modules/wchar (Makefile.am): Likewise.
11895         * modules/wctype-h (Makefile.am): Likewise.
11896         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11898 2011-05-29  Bruno Haible  <bruno@clisp.org>
11900         assert-h: Allow multiple gnulib generated replacements to coexist.
11901         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11903 2011-05-29  Bruno Haible  <bruno@clisp.org>
11905         argp: Allow coexistence with strerror_r-posix module.
11906         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11907         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11908         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11909         not the glibc signature.
11911 2011-05-28  Bruno Haible  <bruno@clisp.org>
11913         gnulib-tool: Alternative structure of testdirs, similar to --import.
11914         * gnulib-tool: New option --single-configure.
11915         (func_usage): Document it.
11916         (single_configure): New variable.
11917         (func_modules_transitive_closure_separately,
11918         func_modules_transitive_closure_separately,
11919         func_determine_use_libtests, func_modules_add_dummy_separately,
11920         func_modules_to_filelist_separately): New functions, extracted from
11921         func_import.
11922         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11923         (func_import): Use the new functions.
11924         (func_create_testdir): Set final_modules. Handle $single_configure =
11925         true case.
11927 2011-05-28  Bruno Haible  <bruno@clisp.org>
11929         getloadavg: Remove an unreliable safety check.
11930         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11931         getloadavg.c is in place.
11932         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11933         Reported by Sam Steingold <sds@gnu.org>.
11935 2011-05-28  Bruno Haible  <bruno@clisp.org>
11937         doc: Cleanup yet another file produced by texinfo.tex.
11938         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11940 2011-05-28  Bruno Haible  <bruno@clisp.org>
11942         Finish the conditional dependencies mechanism.
11943         * gnulib-tool: New option --no-conditional-dependencies.
11944         (func_usage): Document it. Don't mark --conditional-dependencies as
11945         experimental.
11946         (cond_dependencies): The possible values can now be true, false, empty.
11947         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11948         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11949         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11951 2011-05-28  Bruno Haible  <bruno@clisp.org>
11953         doc: Use a recent texinfo.tex.
11954         * doc/Makefile (tex_opts): New variable.
11955         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11957 2011-05-28  Jim Meyering  <meyering@redhat.com>
11959         intprops.h: adjust comment to match code change
11960         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11961         only once, it *may* have side effects.  Also fix an unrelated typo.
11962         (_GL_INT_SIGNED): Likewise.
11964 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11966         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11968 2011-05-26  Bruno Haible  <bruno@clisp.org>
11970         mbsrchr: Avoid collision with system function on Interix.
11971         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11972         Reported by Markus Duft <mduft@gentoo.org>.
11974 2011-05-15  James Youngman  <jay@gnu.org>
11976         getopt: for ambiguous options, enumerate the possibilities.
11977         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11978         the ambiguous options when an ambiguous prefix is given. This was
11979         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11980         glibc change was
11981         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11983 2011-05-25  Eric Blake  <eblake@redhat.com>
11985         getcwd: work around mingw bug
11986         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11987         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11988         Reported by Matthias Bolte.
11990 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11992         test-intprops: disable -Wtype-limits diagnostics
11993         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11994         diagnostics.  Otherwise, the integer overflow macros generate many
11995         diagnostics.  Reported by Jim Meyering in
11996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11998         intprops: shorten, to pacify gcc -Woverlength-strings
11999         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12000         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12001         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12002         likely to run afoul of C compiler limits for string constant lengths.
12003         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12005 2011-05-24  Eric Blake  <eblake@redhat.com>
12007         docs: document recently fixed glibc printf bug
12008         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12009         * doc/posix-functions/printf.texi (printf): Likewise.
12010         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12011         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12013         closein-tests: convert to init.sh
12014         * modules/closein-tests (Files): Add init.sh
12015         * tests/test-closein.sh Use it.
12017         yesno-tests: convert to init.sh
12018         * modules/yesno-tests (Files): Add init.sh.
12019         * tests/test-yesno.sh: Use it.
12021         atexit-tests: ensure reliable exit status
12022         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12023         Reported by Bruno Haible.
12025 2011-05-24  Bruno Haible  <bruno@clisp.org>
12027         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12028         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12029         gl_PREREQ_STRERROR_R invocations from here...
12030         * modules/strerror_r-posix (configure.ac): ... to here.
12032 2011-05-24  Eric Blake  <eblake@redhat.com>
12034         strerror_r: fix missing header
12035         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12037         strerror_r: fix AIX test failures
12038         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12039         ERANGE failure.
12041         strerror_r: fix Solaris test failures
12042         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12043         failures.
12044         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12046         strerror_r: enforce POSIX recommendations
12047         * lib/strerror_r.c (safe_copy): New helper method.
12048         (strerror_r): Guarantee a non-empty string.
12049         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12050         recent POSIX rulings and to match our strerror guarantees.
12051         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12053 2011-05-24  Jim Meyering  <meyering@redhat.com>
12055         test-perror2.c: avoid warning about unused variable
12056         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12058 2011-05-24  Eric Blake  <eblake@redhat.com>
12060         perror: avoid spurious test failure on HP-UX
12061         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12063         tests: fix logic bug in init.sh
12064         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12065         shell.
12067 2011-05-24  Jim Meyering  <meyering@redhat.com>
12069         utimensat: do not reference an out-of-scope buffer
12070         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12071         declared in an inner scope, yet "times" would be dereferenced outside
12072         the scope in which "ts" was valid.
12073         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12074         of ts[2] "out/up", so that the use of aliased "times" (via
12075         "times = ts;") does not end up referencing an out-of-scope "ts"
12077         opendir-safer.c: don't clobber errno; don't close negative FD
12078         * lib/opendir-safer.c (opendir_safer):
12079         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12080         file descriptor, and more importantly, don't clobber the
12081         offending errno value with EINVAL.  Before, upon failure
12082         of dup_safer, we would pass the negative file descriptor to
12083         fdopendir, which would clobber errno.
12085 2011-05-23  Bruno Haible  <bruno@clisp.org>
12087         idcache: Fix module description.
12088         * modules/idcache (Include): Set to "idcache.h".
12090 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12092         gnulib-tool: fix portability problem with MacOS sed
12093         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12094         before the "}".  Problem reported by Leo in
12095         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12096         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12097         sed_extract_condition1, sed_extract_condition2.
12099 2011-05-23  Bruno Haible  <bruno@clisp.org>
12101         hash: Simplify autoconf macro.
12102         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12104 2011-05-23  Bruno Haible  <bruno@clisp.org>
12106         getugroups: Fix module description.
12107         * modules/getugroups (Include): Set to "getugroups.h".
12109 2011-05-23  Bruno Haible  <bruno@clisp.org>
12111         linkat: Simplify autoconf macro.
12112         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12114 2011-05-23  Bruno Haible  <bruno@clisp.org>
12115             Eric Blake  <eblake@redhat.com>
12117         linkat, renameat: Update dependencies.
12118         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12119         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12120         symlinkat.
12122 2011-05-23  Jim Meyering  <meyering@redhat.com>
12124         maint.mk: more tight_scope improvements
12125         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12126         (_gl_TS_headers): Define only in if-0'd block.
12127         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12128         sometimes we must *not* use it.  Adjust uses accordingly.
12129         (sc_tight_scope): Use much simpler grep-based test to determine
12130         whether we skip this rule.
12132         maint.mk: generalize/improve the tight-scope rule
12133         * top/maint.mk: Emit a warning when the test is skipped.
12134         (_gl_TS_dir): Add $(srcdir)/ prefix.
12135         (_gl_TS_function_match): Simplify, rather than trying
12136         to enumerate common types.  Otherwise, it would fail to match an
12137         "extern unsigned char const *" declaration in idutils.
12138         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12139         a way to support use of that type of macro.
12140         (_gl_TS_var_match): Simplify regexp.
12141         (_gl_TS_obj_files): New configurable variable.
12142         (_gl_TS_headers): Likewise.
12144 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12146         verify: fix bug when gnulib <assert.h> is also included
12147         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12148         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12149         Perhaps there's a better way, but this fixes the immediate problem.
12150         Problem reported by Bruno Haible in
12151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12153 2011-05-22  Bruno Haible  <bruno@clisp.org>
12155         xgetcwd: Simplify autoconf macro.
12156         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12158 2011-05-22  Bruno Haible  <bruno@clisp.org>
12160         New module 'mktime-internal'.
12161         * modules/mktime-internal: New file.
12162         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12163         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12164         mktime_internal as a C macro if libc has __mktime_internal.
12165         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12166         conditions.
12167         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12169 2011-05-22  Bruno Haible  <bruno@clisp.org>
12171         timegm: Correct mktime replacement statements.
12172         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12173         defining mktime as a C macro. This completes a 2009-07-28 commit.
12175 2011-05-22  Bruno Haible  <bruno@clisp.org>
12177         timegm: Simplify autoconf macro.
12178         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12180 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12182         clock-time: change to LGPLv2+.
12183         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12184         BSD-like but we have no mark for that; this is good enough for now.
12186 2011-05-21  Bruno Haible  <bruno@clisp.org>
12188         strerror_r: Fix comments.
12189         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12191 2011-05-21  Bruno Haible  <bruno@clisp.org>
12193         relocatable-prog-wrapper: Fix possible link error.
12194         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12195         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12196         (gl_FUNC_SETENV): ... to here.
12197         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12198         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12200 2011-05-21  Bruno Haible  <bruno@clisp.org>
12202         relocatable-prog-wrapper: Assume strerror() exists.
12203         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12204         m4/strerror.m4.
12205         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12206         * lib/relocwrapper.c: Remove mention of strerror module.
12207         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12208         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12209         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12210         C macro.
12212 2011-05-21  Bruno Haible  <bruno@clisp.org>
12214         select: Simplify replacement idiom.
12215         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12216         Win32 platforms.
12217         * lib/sys_select.in.h (select): Simplify accordingly.
12218         * modules/select (Depends-on): Likewise.
12220 2011-05-21  Bruno Haible  <bruno@clisp.org>
12222         mkdir-p: Simplify autoconf macro.
12223         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12224         gl_FUNC_LCHOWN.
12226 2011-05-21  Eric Blake  <eblake@redhat.com>
12228         strerror_r: avoid clobbering strerror on cygwin
12229         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12230         fall back instead to sys_errlist.
12231         * modules/strerror (configure.ac): Add witness.
12232         * tests/test-strerror_r.c (main): Enhance test.
12233         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12234         * tests/test-perror2.c (main): Free memory before exit.
12236 2011-05-21  Bruno Haible  <bruno@clisp.org>
12238         mkdtemp: Use gnulib naming conventions.
12239         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12240         * modules/mkdtemp (configure.ac): Update.
12242 2011-05-20  Eric Blake  <eblake@redhat.com>
12244         strerror_r: avoid corrupting errno on Solaris
12245         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12246         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12248         strerror_r: avoid compiler warning
12249         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12251         strerror_r: simplify AIX code
12252         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12254         test-perror: avoid spurious failure on FreeBSD
12255         * modules/perror-tests (Depends-on): Add strerror, now that
12256         strerror_r no longer pulls it in.
12258 2011-05-20  Bruno Haible  <bruno@clisp.org>
12260         strerror_r-posix: Remove unused dependencies.
12261         * modules/strerror_r-posix (Depends-on): Remove strerror.
12262         Reported by Eric Blake.
12264 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12266         intprops: remove assumption about A|B representation
12267         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12268         is a valid integer if both A and B are.  Although this is true for
12269         all known practical hosts, the C standard doesn't guarantee it,
12270         and the code need not assume it.  Also, this change may work around
12271         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12274 2011-05-20  Eric Blake  <eblake@redhat.com>
12276         perror: work around FreeBSD bug
12277         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12278         is broken.  Move AC_LIBOBJ...
12279         * modules/perror (configure.ac): Here.
12280         * doc/posix-functions/perror.texi (perror): Document this.
12281         * tests/test-perror2.c (main): Enhance test.
12283         test-perror: check for strerror interactions
12284         * tests/macros.h (STREQ): Add macro.
12285         * modules/perror-tests (Files): Add second test.
12286         * tests/test-perror2.c (main): New file.
12287         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12289         test-perror: rewrite to use init script
12290         * modules/perror-tests (Files): Add init.sh.
12291         * tests/test-perror.sh: Use temporary directory.
12293 2011-05-20  Jim Meyering  <meyering@redhat.com>
12295         maint: replace misused "a" with "an"
12296         * doc/intprops.texi: "a integer"
12297         * doc/regex.texi: "a explanation"
12298         * lib/alignof.h: "a object"
12299         * lib/argmatch.h: "a explanation"
12300         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12301         * lib/stdint.in.h: "a integer"
12302         * lib/userspec.c: "a owner"
12303         * doc/gnulib.texi: Fix "a idea", and reword.
12305 2011-05-19  Jim Meyering  <meyering@redhat.com>
12307         maint: correct misuse of "a" and "an"
12308         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12309         * lib/argp-help.c: "an docum...": s/an/a/
12310         * lib/argp-parse.c: "An vector": s/An/A/
12311         * lib/execute.c: "an native": s/an/a/
12312         * lib/spawn-pipe.c: Likewise.
12313         * lib/gc.h: "an Gc_rc": s/an/a/
12314         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12315         * lib/fts.c: "an stat.st_dev": s/an/a/
12317 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12319         intprops-tests: work around HP-UX 11.23 cc bug with constants
12320         * tests/test-intprops.c (VERIFY): New macro.
12321         (main): Use it, instead of verify, to work around the compiler bug; see
12322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12324         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12325         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12326         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12327         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12328         (_GL_REMAINDER_OVERFLOW): Use it.
12330         intprops-tests: revert unsigned part of previous change
12331         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12332         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12333         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12336 2011-05-19  Bruno Haible  <bruno@clisp.org>
12338         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12339         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12340         strerror_r() returned without filling the buffer.
12341         Reported by Eric Blake.
12343 2011-05-19  Eric Blake  <eblake@redhat.com>
12345         strerror_r: guarantee unchanged errno
12346         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12347         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12348         failure.
12349         * tests/test-strerror_r.c (main): Enhance test.
12351 2011-05-19  Bruno Haible  <bruno@clisp.org>
12353         strerror_r: Reorder #if blocks.
12354         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12355         for consistency with the previous commit.
12357 2011-05-19  Bruno Haible  <bruno@clisp.org>
12359         perror: Avoid clobbering the strerror buffer when possible.
12360         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12361         * lib/strerror.c: Include it.
12362         * modules/strerror (Files): Add lib/strerror-impl.h.
12363         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12364         (my_strerror): New function, defined through lib/strerror-impl.h.
12365         (perror): Use it instead of strerror.
12366         * modules/perror (Files): Add lib/strerror-impl.h.
12367         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12369 2011-05-19  Eric Blake  <eblake@redhat.com>
12371         strerror_r: fix on newer cygwin
12372         * lib/strerror_r.c (strerror_r): Cygwin now has
12373         __xpg_strerror_r, use it.
12375 2011-05-19  Bruno Haible  <bruno@clisp.org>
12377         strerror_r: Avoid clobbering the strerror buffer when possible.
12378         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12379         (sys_nerr, sys_errlist): New declarations.
12380         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12381         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12382         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12384 2011-05-19  Bruno Haible  <bruno@clisp.org>
12386         strerror_r: Fix test failure on mingw.
12387         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12388         EXTEND_STRERROR_R.
12389         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12390         macros from errno.in.h instead.
12392 2011-05-19  Eric Blake  <eblake@redhat.com>
12394         strerror: relax test for Solaris
12395         * tests/test-strerror.c (main): Permit Solaris behavior.
12396         * tests/test-strerror_r.c (main): Likewise.
12398         strerror: enforce POSIX ruling on strerror(0)
12399         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12400         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12401         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12402         * doc/posix-functions/strerror.texi (strerror): Document it.
12403         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12404         * tests/test-strerror.c (main): Strengthen test.
12405         * tests/test-strerror_r.c (main): Likewise.
12407 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12409         intprop-tests: port to older and more-pedantic compilers
12410         * modules/intprops-tests (Files): Add tests/macros.h.
12411         * tests/test-intprops.c: Include macros.h.
12412         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12413         it's no longer documented to expand to an integer constant expression.
12414         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12415         argument is floating point, as it's no longer documented to expand
12416         to an integer constant expression in that case.
12417         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12418         compiler bugs reported by Bruno Haible.  See
12419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12420         (U0, U1): New constants, to work around the same bugs.  Also,
12421         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12423         intprops: work around C compiler bugs
12424         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12425         bug in Sun C 5.11 2010/08/13 and other compilers; see
12426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12428         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12429         * doc/intprops.texi (Integer Type Determination): Fix
12430         documentation for TYPE_IS_INTEGER: it returns an constant
12431         expression, not an integer constant expression.  Fix doc for
12432         TYPE_SIGNED: it returns an integer constant expression only if its
12433         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12434         hardly worth documented that way....)
12436 2011-05-18  Bruno Haible  <bruno@clisp.org>
12438         strerror_r: Avoid clobbering the strerror buffer when possible.
12439         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12440         Handle gnulib defined errno values here. When strerror() returns NULL
12441         or an empty string, return EINVAL.
12442         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12443         gnulib defined errno values here.
12444         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12446 2011-05-18  Eric Blake  <eblake@redhat.com>
12448         fnmatch: avoid compiler warning
12449         * lib/fnmatch_loop.c (FCT): Use correct type.
12450         Reported by Matthias Bolte.
12452 2011-05-13  Jim Meyering  <meyering@redhat.com>
12454         maint.mk: three new prohibit_<HDR>_without_use rules
12455         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12456         (sc_prohibit_stdio-safer_without_use): Likewise.
12457         (sc_prohibit_xfreopen_without_use): Likewise.
12459 2011-05-17  Jim Meyering  <meyering@redhat.com>
12461         announce-gen: fail if the NEWS delta is empty
12462         If there's nothing noteworthy in NEWS, then either you forgot
12463         or you shouldn't be releasing.
12464         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12466 2011-05-17  Pádraig Brady <P@draigBrady.com>
12468         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12469         reserved symbols starting with double underscore from the check.
12471 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12473         intprops: add doc
12474         * doc/intprops.texi: New file, documenting intprops.
12475         * doc/gnulib.texi (Particular Modules): Include it.
12477         verify: add doc to gnulib manual and fix example
12478         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12479         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12480         (Compile-time Assertions): Fix example so it can't overflow.
12482 2011-05-17  Jim Meyering  <meyering@redhat.com>
12484         warnings.m4: don't usurp save_CPPFLAGS variable name
12485         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12487         doc: fix typo
12488         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12490 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12491             Bruno Haible  <bruno@clisp.org>
12493         doc: Tweak recent change.
12494         * README (Portability guidelines): Tweak new text.
12495         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12496         Interix 6.1.
12498 2011-05-16  Eric Blake  <eblake@redhat.com>
12500         inttypes: avoid autoconf warning
12501         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12502         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12504 2011-05-16  Sam Steingold <sds@gnu.org>
12505         and Eric Blake  <eblake@redhat.com>
12507         vc-list-files: accept multiple directory operands
12508         * build-aux/vc-list-files: Iterate over all remaining operands.
12510 2011-05-16  Bruno Haible  <bruno@clisp.org>
12512         Fix confusion regarding deprecated modules.
12513         * modules/calloc (Status, Notice): Mark module as deprecated, not
12514         obsolete.
12515         * modules/fnmatch-posix (Status, Notice): Likewise.
12516         * modules/getdate (Status, Notice): Likewise.
12517         * modules/getopt (Status, Notice): Likewise.
12518         * modules/malloc (Status, Notice): Likewise.
12519         * modules/pipe (Status, Notice): Likewise.
12520         * modules/realloc (Status, Notice): Likewise.
12521         * modules/rename-dest-slash (Status, Notice): Likewise.
12522         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12523         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12524         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12525         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12526         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12528 2011-05-16  Bruno Haible  <bruno@clisp.org>
12530         doc: List the target platforms.
12531         * doc/gnulib-intro.texi (Target Platforms): New section.
12532         * doc/gnulib.texi (Introduction): Update menu.
12533         * README (Portability guidelines): Refer to the new section. Update
12534         statement about oldest supported environment. Remove rationale why
12535         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12536         unportable C89 function.
12537         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12538         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12540 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12542         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12544 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12546         intprops-tests: new module
12547         * modules/intprops-tests, tests/test-intprops.c: New files.
12549         intprops: add safe, portable integer overflow checking
12550         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12551         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12552         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12553         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12554         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12555         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12556         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12557         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12558         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12559         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12560         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12562 2011-05-12  James Youngman  <jay@gnu.org>
12564         Add a test for glibc's Bugzilla bug #12378.
12565         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12566         doesn't allow the literal matching of a lone "[" (which is
12567         required by POSIX).
12568         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12570 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12572         Sync glibc change fixing Bugzilla bug #12378.
12573         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12574         beginning and fall back to matching as normal character if the
12575         string ends before the matching ']' is found.  This is what POSIX
12576         requires.
12578 2011-05-13  Eric Blake  <eblake@redhat.com>
12580         getcwd-lgpl: relax test for FreeBSD
12581         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12582         issue.
12583         * tests/test-getcwd-lgpl.c (main): Relax test.
12584         Reported by Matthias Bolte.
12586 2011-05-11  Eric Blake  <eblake@redhat.com>
12588         test-fflush: silence compiler warning
12589         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12591 2011-05-11  Bruno Haible  <bruno@clisp.org>
12593         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12594         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12595         * modules/canonicalize (Depends-on): Add 'nocrash'.
12596         * modules/canonicalize-lgpl (Depends-on): Likewise.
12597         * doc/posix-functions/realpath.texi: Update platforms list.
12598         Reported by Ryan Schmidt <ryandesign@macports.org>.
12600 2011-05-11  Bruno Haible  <bruno@clisp.org>
12602         group-member: Declare function in <unistd.h>.
12603         * lib/unistd.in.h (group_member): New declaration.
12604         * lib/group-member.h: Remove file.
12605         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12606         * tests/test-unistd-c++.cc: Check signature of group_member.
12607         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12608         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12609         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12610         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12611         HAVE_GROUP_MEMBER.
12612         * modules/group-member (Files): Remove lib/group-member.h.
12613         (Depends-on): Add unistd. Specify conditions.
12614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12615         (Include): Change to <unistd.h>.
12616         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12617         HAVE_GROUP_MEMBER.
12618         * NEWS: Mention the change.
12619         * lib/euidaccess.c: Don't include group-member.h.
12621 2011-05-11  Bruno Haible  <bruno@clisp.org>
12623         group-member: Document module.
12624         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12625         module.
12627 2011-05-11  Bruno Haible  <bruno@clisp.org>
12629         fclose: Fix mistake earlier today.
12630         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12632 2011-05-11  Eric Blake  <eblake@redhat.com>
12634         fclose: preserve fflush errors
12635         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12636         Reported by Jim Meyering.
12638         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12639         * build-aux/bootstrap (check_versions): When no specific version
12640         is required, merely check that the app produces an exit status
12641         that indicates its existence.
12643         maint.mk: drop redundant check
12644         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12645         the same but better.
12647 2011-05-11  Bruno Haible  <bruno@clisp.org>
12649         fclose: Fix possible link error.
12650         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12651         unregister_shadow_fd. Improve comments.
12652         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12653         Eric Blake.
12655 2011-05-11  Jim Meyering  <meyering@redhat.com>
12657         maint.mk: improve "can not" detection and generalize rule name
12658         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12659         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12660         Use the same technique as in sc_prohibit_doubled_word, so that
12661         we recognize "can not" also when the words are separated by a newline.
12662         Suggested by Eric Blake.
12663         (perl_filename_lineno_text_): Define.  Factored out of...
12664         (prohibit_doubled_word_): ...here.  Use the new definition.
12665         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12666         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12667         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12669 2011-05-10  Eric Blake  <eblake@redhat.com>
12671         fclose: avoid double close race when possible
12672         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12673         all but WINDOWS_SOCKETS.
12675 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12677         openat: correct new comment
12678         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12680 2011-05-10  Jim Meyering  <meyering@redhat.com>
12682         openat: add comments
12683         * lib/openat-proc.c (openat_proc_name): Add comments,
12684         mostly from Eric Blake.
12686 2011-05-09  Eric Blake  <eblake@redhat.com>
12688         openat: reduce syscalls in first probe of /proc
12689         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12690         be a directory.  Simplify the probe for .. bugs.
12691         * modules/openat (Depends-on): Drop same-inode.
12692         Reported by Bastien ROUCARIES.
12694 2011-05-09  Jim Meyering  <meyering@redhat.com>
12696         maint.mk: change semantics/name of tight_scope variables
12697         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12698         Rename variables to align with semantics that make them more useful.
12700         maint.mk: tweak new rule's name not to impinge
12701         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12702         (sc_tight_scope): Use new rule name rather than $@-0.
12704         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12705         * top/maint.mk (sc_tight_scope): New rule.
12706         (sc_tight_scope-0): New rule, ifdef'd out.
12707         (_gl_TS_dir): Default.
12708         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12709         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12711 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12713         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12714         Haible <bruno@clisp.org>.
12716 2011-05-08  Bruno Haible  <bruno@clisp.org>
12718         Comments.
12719         * m4/isnanf.m4: Add comment.
12720         * m4/isnanl.m4: Likewise.
12722 2011-05-08  Bruno Haible  <bruno@clisp.org>
12724         glob: Remove obsolete macro.
12725         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12727 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12729         intprops: Sun C 5.11 supports __typeof__
12730         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12731         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12732         which is new.
12733         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12735         intprops: switch to usual gnulib indenting and naming
12736         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12737         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12739         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12741 2011-05-08  Jim Meyering  <meyering@redhat.com>
12743         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12744         * top/maint.mk (release-prep): Use make's --no-print-directory
12745         option when generating the announcement.  This eliminates the
12746         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12747         generated announcement template.
12749 2011-05-08  Bruno Haible  <bruno@clisp.org>
12751         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12752         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12753         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12755 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12757         ignore-value, verify: Omit include files from lib_SOURCES.
12758         * modules/ignore-value, modules/verify (Makefile.am):
12759         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12760         that leads Automake to duplicate use of am__objects_... variables
12761         in Makefile.in.  See
12762         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12764 2011-05-07  Bruno Haible  <bruno@clisp.org>
12766         fclose: Simplify autoconf macro.
12767         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12768         defined.
12770 2011-05-07  Bruno Haible  <bruno@clisp.org>
12772         canonicalize-lgpl: Fix autoconf macro ordering bug.
12773         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12774         gl_STDLIB_H_DEFAULTS.
12776 2011-05-06  Eric Blake  <eblake@redhat.com>
12778         maintainer-makefile: make sc_po_check easier to tune
12779         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12780         to probe for strings, such as an alternate location for gnulib.
12782         fclose: guarantee behavior on seekable stdin
12783         * modules/fclose (Depends-on): Add fflush.
12784         * doc/posix-functions/fclose.texi (fclose): Document this.
12785         * tests/test-fclose.c (main): Make test for this unconditional.
12787 2011-05-06  Bruno Haible  <bruno@clisp.org>
12789         fflush, fpurge: Relicense under LGPLv2+.
12790         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12791         * modules/fpurge (License): Likewise.
12792         With permission from Eric Blake and Jim Meyering.
12793         Suggested by Eric Blake.
12795 2011-05-06  Karl Berry  <karl@gnu.org>
12797         * MODULES.html.sh (func_all_modules): remove exit.
12799 2011-05-06  Jim Meyering  <meyering@redhat.com>
12801         maint.mk: use info-gnu@ as the default only for a stable release
12802         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12803         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12804         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12805         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12807 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12809         assert-h: new module, which supports C1X-style static_assert
12810         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12811         * lib/verify.h: Revamp so that this can be copied into assert.h,
12812         while retaining the ability to use it standalone as before.
12813         Rename private identifiers so as not to encroach on the
12814         standard C namespace, since this is now used by assert.h.
12815         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12816         the old verify_true.
12817         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12818         the old verify_true.  Use _GL_VERIFY_TYPE.
12819         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12820         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12821         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12822         defined when this file is copied into the replacement assert.h.
12823         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12824         and _Static_assert is not built in.
12825         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12826         defined, and use the new macros mentioned above.
12827         * doc/posix-headers/assert.texi: Document this.
12829 2011-05-05  Bruno Haible  <bruno@clisp.org>
12831         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12832         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12833         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12834         gl_REPLACE_FCLOSE here.
12835         * modules/fflush (Depends-on): Remove fclose.
12836         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12837         combination with module 'fclose'.
12839 2011-05-05  Bruno Haible  <bruno@clisp.org>
12841         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12842         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12843         gl_FUNC_FFLUSH.
12844         (gl_FUNC_FFLUSH): Use it.
12845         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12847         gl_REPLACE_FSEEKO here.
12849 2011-05-05  Bruno Haible  <bruno@clisp.org>
12851         tzset: Relicense under LGPL.
12852         * modules/tzset (License): Change to LGPL.
12853         No agreement needed; it's a no-op.
12855         strtoimax, strtoumax: Relicense under LGPL.
12856         * modules/strtoimax (License): Change to LGPL.
12857         * modules/strtoumax (License): Likewise.
12858         With permission from Jim Meyering, Paul Eggert:
12859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12862         getgroups: Relicense under LGPL.
12863         * modules/getgroups (License): Change to LGPL.
12864         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12869         nanosleep: Relicense under LGPL.
12870         * modules/nanosleep (License): Change to LGPL.
12871         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12872         Haible:
12873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12878         futimens: Relicense under LGPL.
12879         * modules/futimens (License): Change to LGPL.
12880         With permission from Eric Blake:
12881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12883         fflush: Relicense under LGPL.
12884         * modules/fflush (License): Change to LGPL.
12885         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12890         tmpfile: Relicense under LGPL.
12891         * modules/tmpfile (License): Change to LGPL.
12892         With permission from Ben Pfaff:
12893         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12895         isfinite: Relicense under LGPL.
12896         * modules/isfinite (License): Change to LGPL.
12897         With permission from Ben Pfaff, Bruno Haible:
12898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12901         acosl..tanl: Relicense under LGPL.
12902         * modules/acosl (License): Change to LGPL.
12903         * modules/asinl (License): Likewise.
12904         * modules/atanl (License): Likewise.
12905         * modules/cosl (License): Likewise.
12906         * modules/expl (License): Likewise.
12907         * modules/logl (License): Likewise.
12908         * modules/sinl (License): Likewise.
12909         * modules/sqrtl (License): Likewise.
12910         * modules/tanl (License): Likewise.
12911         Source code originally from glibc and Paolo Bonzini. Agreements:
12912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12915 2011-05-05  Bruno Haible  <bruno@clisp.org>
12917         signal: Define sighandler_t.
12918         * lib/signal.in.h (sighandler_t): New type.
12919         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12920         whether sighandler_t is defined.
12921         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12922         * modules/signal (Depends-on): Add extensions.
12923         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12924         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12925         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12927 2011-05-05  Eric Blake  <eblake@redhat.com>
12929         maint: remove useless REPLACE_*_H macros
12930         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12931         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12932         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12933         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12934         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12935         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12936         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12937         * m4/btowc.m4: Update callers.
12938         * m4/dirfd.m4: Likewise.
12939         * m4/duplocale.m4: Likewise.
12940         * m4/fchdir.m4: Likewise.
12941         * m4/fdopendir.m4: Likewise.
12942         * m4/inet_ntop.m4: Likewise.
12943         * m4/inet_pton.m4: Likewise.
12944         * m4/ioctl.m4: Likewise.
12945         * m4/mbrlen.m4: Likewise.
12946         * m4/mbrtowc.m4: Likewise.
12947         * m4/mbsinit.m4: Likewise.
12948         * m4/mbsnrtowcs.m4: Likewise.
12949         * m4/mbsrtowcs.m4: Likewise.
12950         * m4/poll.m4: Likewise.
12951         * m4/setlocale.m4: Likewise.
12952         * m4/wcrtomb.m4: Likewise.
12953         * m4/wcsnrtombs.m4: Likewise.
12954         * m4/wcsrtombs.m4: Likewise.
12955         * m4/wctob.m4: Likewise.
12956         * m4/wcwidth.m4: Likewise.
12957         * modules/posix_spawn: Likewise.
12958         * modules/posix_spawn_file_actions_addclose: Likewise.
12959         * modules/posix_spawn_file_actions_adddup2: Likewise.
12960         * modules/posix_spawn_file_actions_addopen: Likewise.
12961         * modules/posix_spawn_file_actions_destroy: Likewise.
12962         * modules/posix_spawn_file_actions_init: Likewise.
12963         * modules/posix_spawnattr_destroy: Likewise.
12964         * modules/posix_spawnattr_getflags: Likewise.
12965         * modules/posix_spawnattr_getpgroup: Likewise.
12966         * modules/posix_spawnattr_getschedparam: Likewise.
12967         * modules/posix_spawnattr_getschedpolicy: Likewise.
12968         * modules/posix_spawnattr_getsigdefault: Likewise.
12969         * modules/posix_spawnattr_getsigmask: Likewise.
12970         * modules/posix_spawnattr_init: Likewise.
12971         * modules/posix_spawnattr_setflags: Likewise.
12972         * modules/posix_spawnattr_setpgroup: Likewise.
12973         * modules/posix_spawnattr_setschedparam: Likewise.
12974         * modules/posix_spawnattr_setschedpolicy: Likewise.
12975         * modules/posix_spawnattr_setsigdefault: Likewise.
12976         * modules/posix_spawnattr_setsigmask: Likewise.
12977         * modules/posix_spawnp: Likewise.
12979 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12981         Add option to do-release-commit-and-tag to specify branch.
12982         * build-aux/do-release-commit-and-tag: Add --branch.
12984 2011-05-03  Bruno Haible  <bruno@clisp.org>
12986         Avoid unnecessary compilation units, through conditional dependencies.
12987         * modules/accept (Depends-on): Add conditions to the dependencies.
12988         * modules/acosl (Depends-on): Likewise.
12989         * modules/argz (Depends-on): Likewise.
12990         * modules/asinl (Depends-on): Likewise.
12991         * modules/atanl (Depends-on): Likewise.
12992         * modules/atoll (Depends-on): Likewise.
12993         * modules/bind (Depends-on): Likewise.
12994         * modules/btowc (Depends-on): Likewise.
12995         * modules/canonicalize-lgpl (Depends-on): Likewise.
12996         * modules/ceil (Depends-on): Likewise.
12997         * modules/ceilf (Depends-on): Likewise.
12998         * modules/ceill (Depends-on): Likewise.
12999         * modules/chdir-long (Depends-on): Likewise.
13000         * modules/chown (Depends-on): Likewise.
13001         * modules/close (Depends-on): Likewise.
13002         * modules/connect (Depends-on): Likewise.
13003         * modules/cosl (Depends-on): Likewise.
13004         * modules/dirfd (Depends-on): Likewise.
13005         * modules/dprintf (Depends-on): Likewise.
13006         * modules/dprintf-posix (Depends-on): Likewise.
13007         * modules/error (Depends-on): Likewise.
13008         * modules/euidaccess (Depends-on): Likewise.
13009         * modules/expl (Depends-on): Likewise.
13010         * modules/faccessat (Depends-on): Likewise.
13011         * modules/fchdir (Depends-on): Likewise.
13012         * modules/fclose (Depends-on): Likewise.
13013         * modules/fcntl (Depends-on): Likewise.
13014         * modules/fdopendir (Depends-on): Likewise.
13015         * modules/fflush (Depends-on): Likewise.
13016         * modules/floor (Depends-on): Likewise.
13017         * modules/floorf (Depends-on): Likewise.
13018         * modules/floorl (Depends-on): Likewise.
13019         * modules/fnmatch (Depends-on): Likewise.
13020         * modules/fopen (Depends-on): Likewise.
13021         * modules/fprintf-posix (Depends-on): Likewise.
13022         * modules/frexp (Depends-on): Likewise.
13023         * modules/frexp-nolibm (Depends-on): Likewise.
13024         * modules/frexpl (Depends-on): Likewise.
13025         * modules/frexpl-nolibm (Depends-on): Likewise.
13026         * modules/fseek (Depends-on): Likewise.
13027         * modules/fsusage (Depends-on): Likewise.
13028         * modules/ftell (Depends-on): Likewise.
13029         * modules/ftello (Depends-on): Likewise.
13030         * modules/futimens (Depends-on): Likewise.
13031         * modules/getcwd (Depends-on): Likewise.
13032         * modules/getcwd-lgpl (Depends-on): Likewise.
13033         * modules/getdelim (Depends-on): Likewise.
13034         * modules/getdomainname (Depends-on): Likewise.
13035         * modules/getgroups (Depends-on): Likewise.
13036         * modules/gethostname (Depends-on): Likewise.
13037         * modules/getline (Depends-on): Likewise.
13038         * modules/getlogin_r (Depends-on): Likewise.
13039         * modules/getopt-posix (Depends-on): Likewise.
13040         * modules/getpeername (Depends-on): Likewise.
13041         * modules/getsockname (Depends-on): Likewise.
13042         * modules/getsockopt (Depends-on): Likewise.
13043         * modules/getsubopt (Depends-on): Likewise.
13044         * modules/getusershell (Depends-on): Likewise.
13045         * modules/glob (Depends-on): Likewise.
13046         * modules/grantpt (Depends-on): Likewise.
13047         * modules/iconv_open (Depends-on): Likewise.
13048         * modules/iconv_open-utf (Depends-on): Likewise.
13049         * modules/inet_ntop (Depends-on): Likewise.
13050         * modules/inet_pton (Depends-on): Likewise.
13051         * modules/ioctl (Depends-on): Likewise.
13052         * modules/isapipe (Depends-on): Likewise.
13053         * modules/isfinite (Depends-on): Likewise.
13054         * modules/isinf (Depends-on): Likewise.
13055         * modules/lchown (Depends-on): Likewise.
13056         * modules/ldexpl (Depends-on): Likewise.
13057         * modules/link (Depends-on): Likewise.
13058         * modules/linkat (Depends-on): Likewise.
13059         * modules/listen (Depends-on): Likewise.
13060         * modules/logl (Depends-on): Likewise.
13061         * modules/lstat (Depends-on): Likewise.
13062         * modules/mbrlen (Depends-on): Likewise.
13063         * modules/mbrtowc (Depends-on): Likewise.
13064         * modules/mbsinit (Depends-on): Likewise.
13065         * modules/mbsnrtowcs (Depends-on): Likewise.
13066         * modules/mbsrtowcs (Depends-on): Likewise.
13067         * modules/mbtowc (Depends-on): Likewise.
13068         * modules/memcmp (Depends-on): Likewise.
13069         * modules/mkdir (Depends-on): Likewise.
13070         * modules/mkdtemp (Depends-on): Likewise.
13071         * modules/mkfifo (Depends-on): Likewise.
13072         * modules/mkfifoat (Depends-on): Likewise.
13073         * modules/mknod (Depends-on): Likewise.
13074         * modules/mkostemp (Depends-on): Likewise.
13075         * modules/mkostemps (Depends-on): Likewise.
13076         * modules/mkstemp (Depends-on): Likewise.
13077         * modules/mkstemps (Depends-on): Likewise.
13078         * modules/mktime (Depends-on): Likewise.
13079         * modules/nanosleep (Depends-on): Likewise.
13080         * modules/open (Depends-on): Likewise.
13081         * modules/openat (Depends-on): Likewise.
13082         * modules/perror (Depends-on): Likewise.
13083         * modules/poll (Depends-on): Likewise.
13084         * modules/popen (Depends-on): Likewise.
13085         * modules/posix_spawn (Depends-on): Likewise.
13086         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13087         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13088         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13089         * modules/posix_spawnp (Depends-on): Likewise.
13090         * modules/pread (Depends-on): Likewise.
13091         * modules/printf-posix (Depends-on): Likewise.
13092         * modules/ptsname (Depends-on): Likewise.
13093         * modules/putenv (Depends-on): Likewise.
13094         * modules/pwrite (Depends-on): Likewise.
13095         * modules/readline (Depends-on): Likewise.
13096         * modules/readlink (Depends-on): Likewise.
13097         * modules/readlinkat (Depends-on): Likewise.
13098         * modules/recv (Depends-on): Likewise.
13099         * modules/recvfrom (Depends-on): Likewise.
13100         * modules/regex (Depends-on): Likewise.
13101         * modules/remove (Depends-on): Likewise.
13102         * modules/rename (Depends-on): Likewise.
13103         * modules/renameat (Depends-on): Likewise.
13104         * modules/rmdir (Depends-on): Likewise.
13105         * modules/round (Depends-on): Likewise.
13106         * modules/roundf (Depends-on): Likewise.
13107         * modules/roundl (Depends-on): Likewise.
13108         * modules/rpmatch (Depends-on): Likewise.
13109         * modules/select (Depends-on): Likewise.
13110         * modules/send (Depends-on): Likewise.
13111         * modules/sendto (Depends-on): Likewise.
13112         * modules/setenv (Depends-on): Likewise.
13113         * modules/setlocale (Depends-on): Likewise.
13114         * modules/setsockopt (Depends-on): Likewise.
13115         * modules/shutdown (Depends-on): Likewise.
13116         * modules/sigaction (Depends-on): Likewise.
13117         * modules/signbit (Depends-on): Likewise.
13118         * modules/sigprocmask (Depends-on): Likewise.
13119         * modules/sinl (Depends-on): Likewise.
13120         * modules/sleep (Depends-on): Likewise.
13121         * modules/snprintf (Depends-on): Likewise.
13122         * modules/snprintf-posix (Depends-on): Likewise.
13123         * modules/socket (Depends-on): Likewise.
13124         * modules/sprintf-posix (Depends-on): Likewise.
13125         * modules/sqrtl (Depends-on): Likewise.
13126         * modules/stat (Depends-on): Likewise.
13127         * modules/strchrnul (Depends-on): Likewise.
13128         * modules/strdup-posix (Depends-on): Likewise.
13129         * modules/strerror (Depends-on): Likewise.
13130         * modules/strerror_r-posix (Depends-on): Likewise.
13131         * modules/strndup (Depends-on): Likewise.
13132         * modules/strnlen (Depends-on): Likewise.
13133         * modules/strptime (Depends-on): Likewise.
13134         * modules/strsep (Depends-on): Likewise.
13135         * modules/strsignal (Depends-on): Likewise.
13136         * modules/strstr-simple (Depends-on): Likewise.
13137         * modules/strtod (Depends-on): Likewise.
13138         * modules/strtoimax (Depends-on): Likewise.
13139         * modules/strtok_r (Depends-on): Likewise.
13140         * modules/strtoumax (Depends-on): Likewise.
13141         * modules/symlink (Depends-on): Likewise.
13142         * modules/symlinkat (Depends-on): Likewise.
13143         * modules/tanl (Depends-on): Likewise.
13144         * modules/tcgetsid (Depends-on): Likewise.
13145         * modules/tmpfile (Depends-on): Likewise.
13146         * modules/trunc (Depends-on): Likewise.
13147         * modules/truncf (Depends-on): Likewise.
13148         * modules/truncl (Depends-on): Likewise.
13149         * modules/uname (Depends-on): Likewise.
13150         * modules/unlink (Depends-on): Likewise.
13151         * modules/unlockpt (Depends-on): Likewise.
13152         * modules/unsetenv (Depends-on): Likewise.
13153         * modules/usleep (Depends-on): Likewise.
13154         * modules/utimensat (Depends-on): Likewise.
13155         * modules/vasprintf (Depends-on): Likewise.
13156         * modules/vdprintf (Depends-on): Likewise.
13157         * modules/vdprintf-posix (Depends-on): Likewise.
13158         * modules/vfprintf-posix (Depends-on): Likewise.
13159         * modules/vprintf-posix (Depends-on): Likewise.
13160         * modules/vsnprintf (Depends-on): Likewise.
13161         * modules/vsnprintf-posix (Depends-on): Likewise.
13162         * modules/vsprintf-posix (Depends-on): Likewise.
13163         * modules/wcrtomb (Depends-on): Likewise.
13164         * modules/wcscasecmp (Depends-on): Likewise.
13165         * modules/wcscspn (Depends-on): Likewise.
13166         * modules/wcsdup (Depends-on): Likewise.
13167         * modules/wcsncasecmp (Depends-on): Likewise.
13168         * modules/wcsnrtombs (Depends-on): Likewise.
13169         * modules/wcspbrk (Depends-on): Likewise.
13170         * modules/wcsrtombs (Depends-on): Likewise.
13171         * modules/wcsspn (Depends-on): Likewise.
13172         * modules/wcsstr (Depends-on): Likewise.
13173         * modules/wcstok (Depends-on): Likewise.
13174         * modules/wcswidth (Depends-on): Likewise.
13175         * modules/wctob (Depends-on): Likewise.
13176         * modules/wctomb (Depends-on): Likewise.
13177         * modules/wctype (Depends-on): Likewise.
13178         * modules/wcwidth (Depends-on): Likewise.
13179         * modules/write (Depends-on): Likewise.
13181 2011-05-03  Bruno Haible  <bruno@clisp.org>
13183         Support for conditional dependencies.
13184         * doc/gnulib.texi (Module description): Document the syntax of
13185         conditional dependencies.
13186         * gnulib-tool: New option --conditional-dependencies.
13187         (func_usage): Document it.
13188         (cond_dependencies): New variable.
13189         (func_get_automake_snippet_conditional,
13190         func_get_automake_snippet_unconditional): New functions, extracted from
13191         func_get_automake_snippet.
13192         (func_get_automake_snippet): Use them.
13193         (sed_first_32_chars): New variable.
13194         (func_module_shellfunc_name): New function.
13195         (func_module_shellvar_name): New function.
13196         (func_module_conditional_name): New function.
13197         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13198         func_cond_module_condition): New functions.
13199         (func_modules_transitive_closure): Add support for conditional
13200         dependencies.
13201         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13202         conditional automake snippet in an automake conditional.
13203         (func_emit_autoconf_snippets): Emit shell functions that contain the
13204         code for conditional modules.
13205         (func_import, func_create_testdir): Update specification.
13207 2011-05-03  Eric Blake  <eblake@redhat.com>
13209         test-getaddrinfo: report error information
13210         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13212 2011-05-03  Jim Meyering  <meyering@redhat.com>
13214         bootstrap: avoid build failure when $GZIP is set
13215         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13216         program name.  If defined at all, it is supposed to list gzip options.
13217         Reported by Alan Curry in http://debbugs.gnu.org/8609
13219 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13221         readme-release: new module with release instructions
13222         * modules/readme-release: New module.
13223         * top/README-release: New file, from coreutils, grep, diffutils.
13224         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13226 2011-05-02  Eric Blake  <eblake@redhat.com>
13228         fflush: also replace fclose when fixing fflush
13229         * modules/fflush (Depends-on): Add fclose.
13230         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13231         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13232         memstreams with no backing fd.
13233         * doc/posix-functions/fclose.texi (fclose): Document the use of
13234         fflush module to fix the bug.
13235         * tests/test-fclose.c (main): Relax test when fclose is used in
13236         isolation.
13238         fclose: add some tests
13239         * modules/fclose-tests: New test module.
13240         * tests/test-fclose.c: New file.
13241         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13243         fclose: reduced dependencies
13244         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13245         simpler lseek.
13246         * lib/fclose.c (rpl_fclose): Likewise.
13247         Reported by Simon Josefsson.
13249         exit: drop remaining clients
13250         * modules/argmatch (Depends-on): Replace exit with stdlib.
13251         * modules/copy-file (Depends-on): Likewise.
13252         * modules/execute (Depends-on): Likewise.
13253         * modules/exitfail (Depends-on): Likewise.
13254         * modules/obstack (Depends-on): Likewise.
13255         * modules/pagealign_alloc (Depends-on): Likewise.
13256         * modules/pipe-filter-gi (Depends-on): Likewise.
13257         * modules/pipe-filter-ii (Depends-on): Likewise.
13258         * modules/savewd (Depends-on): Likewise.
13259         * modules/spawn-pipe (Depends-on): Likewise.
13260         * modules/wait-process (Depends-on): Likewise.
13261         * modules/xsetenv (Depends-on): Likewise.
13262         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13263         * modules/git-merge-changelog (Depends-on): Likewise.
13264         * modules/long-options (Depends-on): Likewise.
13265         * modules/pt_chown (Depends-on): Likewise.
13266         * modules/sysexits (Depends-on): Likewise.
13268         freading: relax license from LGPLv3+ to LGPLv2+
13269         * modules/freading (License): Relax LGPL version.
13271 2011-05-02  Bruno Haible  <bruno@clisp.org>
13273         fchdir: Remove unused dependencies.
13274         * modules/fchdir (Depends-on): Remove include_next.
13276 2011-05-02  Bruno Haible  <bruno@clisp.org>
13278         gnulib-tool: Refactor.
13279         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13280         from func_emit_autoconf_snippets.
13281         (func_emit_autoconf_snippets): Use it.
13283 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13285         * NEWS: Document removal of 'exit'.
13286         * modules/exit: Remove file.
13288 2011-05-01  Bruno Haible  <bruno@clisp.org>
13290         Update DEPENDENCIES.
13291         * DEPENDENCIES (gettext): Recommend the newest release.
13292         Reported by Simon Josefsson.
13294 2011-05-01  Bruno Haible  <bruno@clisp.org>
13296         gnulib-tool: Reduce code duplication.
13297         * gnulib-tool (func_emit_autoconf_snippets): New function.
13298         (func_import, func_create_testdir): Use it.
13300 2011-04-30  Eric Blake  <eblake@redhat.com>
13302         fclose: don't fail on non-seekable input stream
13303         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13304         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13305         since fflush is allowed to fail in that case.
13307 2011-04-30  Bruno Haible  <bruno@clisp.org>
13309         dup3: cleanup
13310         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13312 2011-04-30  Bruno Haible  <bruno@clisp.org>
13314         netdb: Make it work in C++ mode.
13315         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13316         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13317         module.
13318         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13319         gl_MODULE_INDICATOR_FOR_TESTS.
13320         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13321         * modules/netdb-c++-tests: New file.
13322         * tests/test-netdb-c++.cc: New file.
13324 2011-04-30  Bruno Haible  <bruno@clisp.org>
13326         New modules 'vfscanf', 'vscanf'.
13327         * modules/vfscanf: New file.
13328         * modules/vscanf: New file.
13329         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13330         here.
13331         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13332         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13334 2011-04-30  Bruno Haible  <bruno@clisp.org>
13336         passfd: Add comments.
13337         * lib/passfd.c: Add comments about platforms.
13339 2011-04-30  Bruno Haible  <bruno@clisp.org>
13341         sys_uio: Make <sys/uio.h> self-contained.
13342         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13343         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13345 2011-04-30  Bruno Haible  <bruno@clisp.org>
13347         sys_socket: Ensure 'struct iovec' definition.
13348         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13349         <sys/socket.h>.
13350         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13352 2011-04-30  Bruno Haible  <bruno@clisp.org>
13354         sys_uio: Protect definition of 'struct iovec'.
13355         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13356         it as a C struct.
13358 2011-04-30  Bruno Haible  <bruno@clisp.org>
13360         manywarnings: fix indentation
13361         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13363 2011-04-30  Pádraig Brady <P@draigBrady.com>
13365         manywarnings: add -Wno-missing-field-initializers if needed.
13366         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13367         option if it's needed to allow initialization with { 0, }
13369 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13371         announce-gen: cosmetic improvement
13372         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13374 2011-04-29  Jim Meyering  <meyering@redhat.com>
13376         vc-list-files: indent with spaces, not TABs
13377         * build-aux/vc-list-files: Convert leading TABs to spaces,
13378         to match the style of most other files in gnulib.
13380         announce-gen: indent with spaces, not TABs
13381         * build-aux/announce-gen: Convert all TABs to spaces, to match
13382         the style of most other files in gnulib.
13384 2011-04-29  Eric Blake  <eblake@redhat.com>
13386         quotearg: avoid uninitialized variable use
13387         * lib/quotearg.c (quoting_options_from_style): Initialize
13388         remaining fields, and ensure that custom styles are only used via
13389         quoting_options rather than quoting_style.
13391 2011-04-29  Jim Meyering  <meyering@redhat.com>
13393         maint.mk: remove unused VC-tag variable
13394         * top/maint.mk (VC-tag): Remove unused variable.
13396 2011-04-29  Bruno Haible  <bruno@clisp.org>
13398         netdb: fix gai_strerror replacements
13399         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13400         * modules/netdb: Substitute it.
13402 2011-04-29  Jim Meyering  <meyering@redhat.com>
13404         test-getcwd.c: avoid new set-but-not-used warning
13405         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13406         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13407         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13408         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13410         test-hash.c: avoid a new shadowing warning
13411         * tests/test-hash.c (main): Don't shadow "dup".
13413 2011-04-28  Eric Blake  <eblake@redhat.com>
13415         getaddrinfo: fix gai_strerror signature
13416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13417         and work around mingw with UNICODE defined.
13418         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13419         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13420         * modules/netdb (Makefile.am): Substitute it.
13421         * lib/netdb.in.h (gai_strerror): Declare replacement.
13422         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13423         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13424         the fix.
13426         getsockopt: avoid compiler warning
13427         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13428         Reported by Matthias Bolte.
13430         tests: drop unused link dependency
13431         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13432         * modules/dirent-safer-tests (Makefile.am): Likewise.
13433         * modules/fdopendir-tests (Makefile.am): Likewise.
13434         * modules/mkfifoat-tests (Makefile.am): Likewise.
13435         * modules/openat-safer-tests (Makefile.am): Likewise.
13436         * modules/openat-tests (Makefile.am): Likewise.
13437         * modules/readlinkat-tests (Makefile.am): Likewise.
13438         * modules/symlinkat-tests (Makefile.am): Likewise.
13439         * modules/linkat-tests (Makefile.am): Likewise.
13440         (Depends-on): Switch to filenamecat-lgpl.
13441         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13442         LIBINTL.
13443         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13444         * tests/test-linkat.c (main): Don't require xalloc.
13446         hash, mgetgroups: drop xalloc dependency
13447         * lib/hash.c (includes): Adjust includes.
13448         * lib/mgetgroups.c (includes): Likewise.
13449         (xgetgroups): Move...
13450         * lib/xgetgroups.c: ...to new file.
13451         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13452         * modules/xgetgroups: New file, split from...
13453         * modules/mgetgroups: ...here.
13454         (Depends-on): Add xalloc-oversized.
13455         * modules/hash (Depends-on): Likewise.
13456         * modules/hash-tests (Depends-on): Drop xalloc.
13457         (test_hash_LDADD): Drop unused library.
13458         * tests/test-hash.c (main): Break xalloc dependency.
13459         (includes): Drop unused include.
13461         xalloc-oversized: new module
13462         * modules/xalloc-oversized: New module.
13463         * modules/xalloc (Depends-on): Add it.
13464         * lib/xalloc.h (xalloc_oversized): Move...
13465         * lib/xalloc-oversized.h: ...into new file.
13467         utimecmp: drop dependency on xmalloc
13468         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13469         due to memory pressure.
13470         * modules/utimecmp (Depends-on): Drop xalloc.
13472 2011-04-27  Eric Blake  <eblake@redhat.com>
13474         getcwd: fix mingw bugs
13475         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13476         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13477         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13479 2011-04-27  Bruno Haible  <bruno@clisp.org>
13481         mkstemps: Ensure declaration on MacOS X 10.5.
13482         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13483         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13484         MacOS X.
13486 2011-04-27  Bruno Haible  <bruno@clisp.org>
13488         mkstemp: More documentation.
13489         * doc/posix-functions/mkstemp.texi: Document header file problem on
13490         MacOS X.
13492 2011-04-27  Bruno Haible  <bruno@clisp.org>
13494         mkstemp: Tweak configure message when cross-compiling.
13495         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13496         result as a guess.
13498 2011-04-27  Bruno Haible  <bruno@clisp.org>
13500         clean-temp: Clarify what it does.
13501         * lib/clean-temp.h: Add more comments.
13502         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13503         module.
13504         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13505         * doc/glibc-functions/mkstemps.texi: Likewise.
13506         * doc/glibc-functions/mkostemps.texi: Likewise.
13508 2011-04-27  Eric Blake  <eblake@redhat.com>
13510         fchdir: avoid extra chdir and fix test
13511         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13512         getcwd-lgpl.
13513         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13514         have to be canonical.
13515         (canonicalize_file_name): Drop unused macro.
13516         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13518         filenamecat-lgpl: fix licence
13519         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13520         when it was first created.
13522         linkat, renameat: add missing dependency
13523         * modules/linkat (Depends-on): Require getcwd-lgpl.
13524         * modules/renameat (Depends-on): Likewise.
13526         tests: reduce dependencies
13527         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13528         * tests/test-renameat.c (main): Likewise.
13529         * modules/linkat-tests (Depends-on): Relax dependency.
13530         * modules/renameat-tests (Depends-on): Likewise.
13531         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13532         dependency explicit.
13534         save-cwd: reduce default dependency
13535         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13536         * lib/save-cwd.c: Update comments.
13537         * NEWS: Document the semantic change.
13539         getcwd: enhance tests
13540         * tests/test-getcwd-lgpl.c: New file, taken from...
13541         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13542         repeat long path stress tests from m4 probe.
13543         * modules/getcwd-lgpl-tests: New module.
13544         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13545         * m4/getcwd-abort-bug.m4: Update comment.
13546         * m4/getcwd-path-max.m4: Likewise.
13548         getcwd-lgpl: new module
13549         * modules/getcwd-lgpl: New module.
13550         * lib/getcwd-lgpl.c: New file.
13551         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13552         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13553         * modules/getcwd (configure.ac): Set C witness.
13554         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13556         getcwd: tweak comments
13557         * m4/getcwd-abort-bug.m4: Fix comments.
13558         * m4/getcwd-path-max.m4: Likewise.
13559         * m4/getcwd.m4: Likewise.
13561 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13562         and Eric Blake  <eblake@redhat.com>
13564         mkstemp: replace if system version uses wrong permissions
13565         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13566         read/write mode bits set in file created by mkstemp.
13567         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13569 2011-04-27  Eric Blake  <eblake@redhat.com>
13571         passfd: avoid compiler warning
13572         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13573         Reported by Laine Stump.
13575 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13577         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13578         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13580 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13581         and Eric Blake  <eblake@redhat.com>
13583         mkstemp: mention clean-temp module
13584         * lib/mkstemp.c: Add comment.
13585         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13587 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13589         inttypes: also provide default values for 32-bit tests
13590         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13591         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13593 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13595         strtoumax: remove dependency on strtoimax
13596         This is like the strtoull change of yesterday.
13597         * modules/strtoumax (Files): Add lib/strtoimax.c.
13598         (Depends-on): Remove strtoimax and add verify.
13600         inttypes-incomplete: new module
13601         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13602         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13603         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13604         of gl_INTTYPES_H.
13605         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13606         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13607         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13608         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13609         * modules/strtoumax, modules/xstrtol (Depends-on):
13610         Depend on inttypes-incomplete, not inttypes.
13611         * modules/inttypes-incomplete: New module, containing the contents
13612         of the old modules/inttypes module, except that the Files: section
13613         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13614         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13615         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13616         (Depends-on): Depend only on inttypes-incomplete.
13617         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13619         inttypes: omit now-redundant strtoimax and strtoumax work
13620         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13621         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13623         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13624         This supports apps that need pointers to strtoimax and strtoumax,
13625         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13626         nonexistent functions.  See
13627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13628         et seq.
13629         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13630         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13631         a macro.
13632         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13634 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13636         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13638 2011-04-25  Bruno Haible  <bruno@clisp.org>
13640         strtol, strtoul: Mark modules as obsolete.
13641         * modules/strtol (Status, Notice): New sections.
13642         * modules/strtoul (Status, Notice): New sections.
13644 2011-04-25  Bruno Haible  <bruno@clisp.org>
13646         strtod: Remove check for strtod, unless supporting old platforms.
13647         * modules/strtod-obsolete: New file.
13648         * m4/strtod-obsolete.m4: New file.
13649         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13650         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13651         * modules/strtod (Depends-on): Add strtod-obsolete.
13652         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13654 2011-04-25  Bruno Haible  <bruno@clisp.org>
13656         strcase: Make module obsolete.
13657         * modules/strcase (Status, Notice): New sections.
13659 2011-04-25  Bruno Haible  <bruno@clisp.org>
13661         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13662         * modules/dup2-obsolete: New file.
13663         * m4/dup2-obsolete.m4: New file.
13664         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13665         gl_FUNC_DUP2_OBSOLETE is not also defined.
13666         * modules/dup2 (Depends-on): Add dup2-obsolete.
13667         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13669 2011-04-25  Bruno Haible  <bruno@clisp.org>
13671         strnlen: Avoid memchr related link error on old obsolete platforms.
13672         * modules/memchr-obsolete: New file.
13673         * m4/memchr-obsolete.m4: New file.
13674         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13675         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13676         * modules/memchr (Depends-on): Add memchr-obsolete.
13677         * modules/strnlen (Depends-on): Likewise.
13678         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13680 2011-04-25  Jim Meyering  <meyering@redhat.com>
13682         maint.mk: makefile_at_at_check extend and clean up
13683         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13684         in addition to */Makefile.am.
13685         Exempt legitimate uses of @VAR@ notation, e.g.,
13686         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13687         Remove obsolete coreutils-specific comment.
13688         Prompted by discussion here:
13689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13691 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13693         strtoul: remove dependency on strtol
13694         This is so that 'configure' need not check for strtol merely because
13695         the application needs strtoul.
13696         * modules/strtoul (Files): Add lib/strtol.c.
13697         (Depends-on): Remove strtol.
13699         strtoull: remove dependency on strtoul
13700         This is like the strtoll change.
13701         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13702         (Depends-on): Remove strtoul.
13704         strtoll: remove dependency on strtol
13705         This is so that 'configure' need not check for strtol merely because
13706         the application needs strtoll.
13707         * modules/strtoll (Files): Add lib/strtol.c.
13708         (Depends-on): Remove strtol.
13710 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13712         inttypes: Move some configure check to module 'imaxdiv'.
13713         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13714         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13715         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13717 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13719         inttypes: Move some configure check to module 'imaxabs'.
13720         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13721         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13722         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13724 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13726         inttypes: Remove configure tests that are not needed since 2009-12-31.
13727         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13728         gl_cv_header_working_inttypes_h.
13730 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13732         * modules/strnlen (Depends-on): Remove memchr.
13733         The strnlen implementation doesn't need the memchr module's fixes; see
13734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13736         strtol: remove dependency on wchar
13737         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13738         * modules/strtol (Depends-on): Remove wchar.
13740 2011-04-21  Eric Blake  <eblake@redhat.com>
13742         passfd: fix test regression on Linux
13743         * modules/passfd-tests (configure.ac): Correct socketpair check.
13745         passfd: speed up configure and drop unused code
13746         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13747         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13748         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13749         Instead of probing at configure for unix_scm_rights_bsd44_way,
13750         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13751         check to a struct member probe.
13752         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13753         (sendfd, recvfd): Update preprocessor checks.
13754         * modules/passfd (Files): Reflect rename, and drop unused file.
13755         (Depends-on): Drop unused dependency.
13757         passfd: allow compilation on mingw
13758         * modules/sys_socket (Depends-on): Add sys_uio.
13759         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13760         iovec and a minimal struct msghdr.
13761         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13762         * tests/test-sys_socket.c (main): Enhance test.
13763         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13764         guaranteed to provide what we need.
13765         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13766         * modules/passfd-tests (Depends-on): Add sys_wait.
13767         * tests/test-passfd.c (main): Skip test on mingw, for now.
13768         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13769         partial 'struct msghdr' implementation.
13771         sys_uio: new module
13772         * modules/sys_uio: New module.
13773         * modules/sys_uio-tests: Likewise.
13774         * lib/sys_uio.in.h: New file.
13775         * m4/sys_uio_h.m4: Likewise.
13776         * tests/test-sys_uio.c: Likewise.
13777         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13778         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13780 2011-04-20  Jim Meyering  <meyering@redhat.com>
13782         useless-if-before-free: avoid false-positive
13783         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13784         disjunct so that it too requires a terminating ";".  Without that,
13785         this script would identify as useless one statement from gcc that
13786         was not:
13787           if (aligned_ptr)
13788             free (((void **) aligned_ptr) [-1]);
13790 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13792         doc: update users.txt.
13793         * users.txt: Add barcode.
13795 2011-04-19  Bruno Haible  <bruno@clisp.org>
13797         ioctl: Remove link dependency on native Windows.
13798         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13799         (gl_close_fn, gl_ioctl_fn): New types.
13800         (struct fd_hook): Renamed from struct close_hook. Change type of
13801         private_close_fn field. Add private_ioctl_fn field.
13802         (close_hook_fn): Add parameter for primary close method.
13803         (execute_close_hooks, execute_all_close_hooks): Likewise.
13804         (ioctl_hook_fn): New type.
13805         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13806         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13807         argument.
13808         (unregister_fd_hook): Renamed from unregister_close_hook.
13809         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13810         Don't include <unistd.h>.
13811         (close): Remove undef.
13812         (anchor): Update.
13813         (execute_close_hooks): Add argument for primary close method.
13814         (execute_all_close_hooks): Likewise.
13815         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13816         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13817         argument. Allow each argument to be NULL.
13818         (unregister_fd_hook): Renamed from unregister_close_hook.
13819         * lib/close.c (rpl_close): Pass 'close' function pointer to
13820         execute_all_close_hooks.
13821         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13822         (primary_ioctl): New function.
13823         (ioctl): Don't call ioctlsocket here. Instead, call
13824         execute_all_ioctl_hooks.
13825         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13826         close method.
13827         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13828         (fd_sockets_hook): Renamed from close_sockets_hook.
13829         (gl_sockets_startup, gl_sockets_cleanup): Update.
13830         * modules/fd-hook: Renamed from modules/close-hook. Update.
13831         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13832         * modules/sockets (Depends-on): Likewise.
13833         * modules/ioctl (Depends-on): Add fd-hook.
13834         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13835         GNULIB_SOCKET.
13837 2011-04-19  Bruno Haible  <bruno@clisp.org>
13839         Move the support of O_NONBLOCK in open() to the 'open' module.
13840         * modules/nonblocking (Depends-on): Remove 'open'.
13841         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13842         gl_cv_have_open_O_NONBLOCK.
13843         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13844         O_NONBLOCK support.
13845         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13847 2011-04-17  Bruno Haible  <bruno@clisp.org>
13849         pipe2: Simplify code.
13850         * lib/pipe2.c (pipe2): Reduce code duplication.
13852 2011-04-17  Bruno Haible  <bruno@clisp.org>
13854         nonblocking: Add comment.
13855         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13857 2011-04-17  Bruno Haible  <bruno@clisp.org>
13859         nonblocking: Add tests for sockets.
13860         * tests/test-nonblocking-socket.sh: New file.
13861         * tests/test-nonblocking-socket-main.c: New file.
13862         * tests/test-nonblocking-socket-child.c: New file.
13863         * tests/test-nonblocking-socket.h: New file.
13864         * tests/socket-server.h: New file.
13865         * tests/socket-client.h: New file.
13866         * modules/nonblocking-socket-tests: New file.
13867         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13869 2011-04-17  Bruno Haible  <bruno@clisp.org>
13871         nonblocking: Add tests for pipes.
13872         * tests/test-nonblocking-pipe.sh: New file.
13873         * tests/test-nonblocking-pipe-main.c: New file.
13874         * tests/test-nonblocking-pipe-child.c: New file.
13875         * tests/test-nonblocking-pipe.h: New file.
13876         * tests/test-nonblocking-writer.h: New file.
13877         * tests/test-nonblocking-reader.h: New file.
13878         * tests/test-nonblocking-misc.h: New file.
13879         * modules/nonblocking-pipe-tests: New file.
13880         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13882 2011-04-16  Bruno Haible  <bruno@clisp.org>
13884         gettext: Clarify the needed programmer actions.
13885         * modules/gettext (Notice): New field.
13886         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13888 2011-04-16  Bruno Haible  <bruno@clisp.org>
13890         strchrnul: Tweak last commit.
13891         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13892         bug.
13893         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13894         as in _GL_FUNCDECL_SYS.
13895         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13896         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13898 2011-04-15  Eric Blake  <eblake@redhat.com>
13900         strchrnul: work around cygwin bug
13901         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13902         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13904         * modules/string (Makefile.am): Substitute it.
13905         * lib/string.in.h (strchrnul): Use it.
13907 2011-04-15  Bruno Haible  <bruno@clisp.org>
13909         Don't require lib/stdio-write.c when only module 'stdio' is used.
13910         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13911         invocation.
13912         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13914 2011-04-14  Bruno Haible  <bruno@clisp.org>
13916         Support non-blocking pipe I/O in read() on native Windows.
13917         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13918         (read): New declaration.
13919         * lib/read.c: New file.
13920         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13921         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13922         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13923         vscanf): New declarations.
13924         * lib/stdio-read.c: New file.
13925         * m4/read.m4: New file.
13926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13927         REPLACE_READ.
13928         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13929         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13930         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13931         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13932         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13933         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13934         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13935         * modules/read: New file.
13936         * modules/nonblocking (Files): Add lib/stdio-read.c.
13937         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13938         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13939         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13940         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13941         * modules/pread (Depends-on): Add read.
13942         * modules/safe-read (Depends-on): Likewise.
13943         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13944         gets, scanf, vfscanf, vscanf): Verify signatures.
13945         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13946         problem with non-blocking pipes.
13947         * doc/posix-functions/fgetc.texi: Likewise.
13948         * doc/posix-functions/fgets.texi: Likewise.
13949         * doc/posix-functions/fread.texi: Likewise.
13950         * doc/posix-functions/fscanf.texi: Likewise.
13951         * doc/posix-functions/getc.texi: Likewise.
13952         * doc/posix-functions/getchar.texi: Likewise.
13953         * doc/posix-functions/gets.texi: Likewise.
13954         * doc/posix-functions/scanf.texi: Likewise.
13955         * doc/posix-functions/vfscanf.texi: Likewise.
13956         * doc/posix-functions/vscanf.texi: Likewise.
13958 2011-04-14  Bruno Haible  <bruno@clisp.org>
13960         Support non-blocking pipe I/O in write() on native Windows.
13961         * lib/write.c (rpl_write): Split a write request that failed merely
13962         because the byte count was larger than the pipe buffer's size.
13963         * doc/posix-functions/write.texi: Mention the problem with large byte
13964         counts.
13966 2011-04-14  Bruno Haible  <bruno@clisp.org>
13968         wchar: Ensure that wchar_t gets defined on uClibc.
13969         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13970         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13972 2011-04-13  Bruno Haible  <bruno@clisp.org>
13974         safe-write, full-read: Avoid unnecessary compilation units.
13975         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13976         (Depends-on): Remove safe-read. Add ssize_t.
13977         * modules/full-read (Files): Add lib/full-write.c.
13978         (Depends-on): Add full-write.
13980 2011-04-13  Bruno Haible  <bruno@clisp.org>
13982         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13983         * modules/pwrite (Depends-on): Add 'write'.
13985 2011-04-13  Bruno Haible  <bruno@clisp.org>
13987         Support non-blocking pipe I/O in write() on native Windows.
13988         * lib/unistd.in.h (write): Enable replacement also if
13989         GNULIB_UNISTD_H_NONBLOCKING is 1.
13990         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13991         (rpl_write): When failing to write on a non-blocking pipe, change
13992         errno from ENOSPC to EAGAIN.
13993         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13994         putchar, puts, vfprintf, vprintf): Enable replacement also if
13995         GNULIB_STDIO_H_NONBLOCKING is 1.
13996         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13997         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13998         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13999         CALL_WITH_SIGPIPE_EMULATION.
14000         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14001         * m4/nonblocking.m4: New file.
14002         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14003         for non-blocking I/O support.
14004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14005         GNULIB_UNISTD_H_NONBLOCKING.
14006         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14007         required for non-blocking I/O support.
14008         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14009         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14010         lib/stdio-write.c, m4/asm-underscore.m4.
14011         (Depends-on): Add stdio, unistd.
14012         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14013         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14014         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14015         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14016         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14017         problem with non-blocking pipes.
14018         * doc/posix-functions/fputc.texi: Likewise.
14019         * doc/posix-functions/fputs.texi: Likewise.
14020         * doc/posix-functions/fwrite.texi: Likewise.
14021         * doc/posix-functions/printf.texi: Likewise.
14022         * doc/posix-functions/putc.texi: Likewise.
14023         * doc/posix-functions/putchar.texi: Likewise.
14024         * doc/posix-functions/puts.texi: Likewise.
14025         * doc/posix-functions/vfprintf.texi: Likewise.
14026         * doc/posix-functions/vprintf.texi: Likewise.
14027         * doc/posix-functions/write.texi: Likewise.
14029 2011-04-10  Jim Meyering  <meyering@redhat.com>
14031         maint.mk: prohibit doubled words
14032         Detect them also when they're separated by a newline.
14033         There are 3 ways to customize it:
14034           - disable the test on a per file basis, as usual with rules using
14035             $(VC_LIST_EXCEPT)
14036           - replace the default doubled-word-selecting regexp (affects all files)
14037           - ignore a particular file-vs-doubled-word match
14038         I nearly used that last one to ignore the "is is" match in
14039         coreutils' NEWS file, since the text was "ls -is is ..."
14040         To do that, I would have added this line to cfg.mk:
14041           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14042         but it would have ignored any "is is" match in NEWS.
14043         Low probability, but still...
14044         Instead, I changed the text, slightly:
14045           -  ls -is is now consistent with ls -lis in ignoring values returned
14046           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14047         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14048         (prohibit_doubled_word_): Define.
14049         (sc_prohibit_doubled_word): New rule.
14050         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14052 2011-04-10  Jim Meyering  <meyering@redhat.com>
14054         maint: fix doubled-word typo in comment
14055         * m4/gethostname.m4: s/is is/it is/
14056         * m4/getdomainname.m4: Likewise.
14058 2011-04-10  Jim Meyering  <meyering@redhat.com>
14060         maint: remove doubled word: s/it it/it/
14061         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14063 2011-04-10  Jim Meyering  <meyering@redhat.com>
14065         maint.mk: remove useless semicolon and backslash
14066         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14067         semicolon and backslash.
14069 2011-04-10  Bruno Haible  <bruno@clisp.org>
14071         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14072         * modules/stdint-tests (Depends-on): Add wchar.
14074 2011-04-10  Jim Meyering  <meyering@redhat.com>
14076         maint: remove doubled words in comments, e.g., s/a a/a/
14077         * lib/strptime.c (day_of_the_week): s/the the/the/
14078         * tests/test-chown.h (test_chown): s/a a/a/
14080         test-chown.h: correct a cast
14081         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14082         when the destination is a stat.st_gid.
14084 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14086         getaddrinfo: Fix test for sa_len member.
14087         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14088         include <sys/types.h> before <sys/socket.h>.
14090 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14092         maint: change "can not" to "cannot"
14093         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14094         boundaries.
14096 2011-04-09  Jim Meyering  <meyering@redhat.com>
14098         maint: change "a a" to "a"
14099         * tests/test-lchown.h (test_lchown): s/a a/a/
14101         maint.mk: prohibit \<the the\>
14102         * top/maint.mk (sc_prohibit_the_the): New rule.
14104         maint: fix "the the" in comment
14105         * lib/count-one-bits.h: s/the the/the/
14107         maint: change "can not" to "cannot"
14108         But do not change the occurrences in maintain.texi or in
14109         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14110         * doc/gnulib-tool.texi: s/can not/cannot/
14111         * doc/posix-functions/accept.texi (accept): Likewise.
14112         * doc/posix-functions/socket.texi (socket): Likewise.
14113         * lib/mbrtowc.c: Likewise.
14115         maint.mk: prohibit use of "can not"
14116         * top/maint.mk (sc_prohibit_can_not): New rule.
14117         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14119 2011-04-09  Bruno Haible  <bruno@clisp.org>
14121         careadlinkat: Guard against misuse of careadlinkatcwd.
14122         * lib/careadlinkat.c: Include <stdlib.h>.
14123         (careadlinkatcwd): Check that the fd argument is as expected.
14125 2011-04-09  Bruno Haible  <bruno@clisp.org>
14127         careadlinkat: Use common coding style.
14128         * lib/careadlinkat.c: Move gnulib includes after system includes.
14130 2011-04-09  Bruno Haible  <bruno@clisp.org>
14132         careadlinkat: Clarify specification.
14133         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14134         (careadlinkatcwd): Add comment.
14135         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14137 2011-04-09  Bruno Haible  <bruno@clisp.org>
14139         areadlinkat: Avoid link error on many platforms.
14140         * modules/areadlinkat (Depends-on): Add areadlink.
14142 2011-04-09  Bruno Haible  <bruno@clisp.org>
14144         allocator, careadlinkat: Fix double-inclusion guard.
14145         * lib/allocator.h: Fix double-inclusion guard.
14146         * lib/careadlinkat.h: Likewise.
14148 2011-04-09  Bruno Haible  <bruno@clisp.org>
14150         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14151         * lib/relocwrapper.c: Update dependencies hierarchy.
14152         * build-aux/install-reloc: Update list of files to be compiled.
14153         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14154         lib/allocator.[hc].
14156 2011-04-08  Eric Blake  <eblake@redhat.com>
14158         strftime: silence gnulib-tool warning
14159         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14161 2011-04-08  Bruno Haible  <bruno@clisp.org>
14163         verify: Fix syntax error with GCC 4.6 in C++ mode.
14164         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14165         (HAVE_STATIC_ASSERT): New macro.
14166         (verify_true, verify): Use 'static_assert' if it is supported and
14167         '_Static_assert' is not supported.
14169 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14171         allocator: New module.
14172         * modules/allocator, lib/allocator.c: New files.
14173         * lib/allocator.h (stdlib_allocator): New decl.
14174         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14175         Remove.  Do not include <stdlib.h>.
14176         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14177         * modules/careadlinkat (Files): Remove lib/allocator.h.
14178         (Depends-on): Add allocator.
14180         stdlib: let modules use system malloc, realloc
14181         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14182         if !_GL_USE_STDLIB_ALLOC.
14183         (malloc, realloc): Limit this change to a smaller scope.
14185         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14186         (malloc, realloc): Don't #undef; no longer needed.
14187         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14188         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14189         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14190         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14191         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14192         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14193         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14194         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14196         careadlinkat: rename members to avoid problem
14197         * lib/allocator.h (struct allocator): Rename members from
14198         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14199         and realloc are #define'd.  Reported by Eric Blake in
14200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14201         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14203 2011-04-08  Eric Blake  <eblake@redhat.com>
14205         nonblocking: reduce dependency
14206         * tests/test-nonblocking.c: Only test sockets when in use.
14207         * modules/nonblocking-tests (Depends-on): Drop socket.
14208         (Makefile.am): Link even if sockets are not present.
14209         * modules/pipe2-tests (Makefile.am): Likewise.
14210         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14212         pipe2: fix O_NONBLOCK support on mingw
14213         * modules/pipe2 (Depends-on): Add nonblocking.
14214         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14215         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14216         * tests/test-nonblocking.c (main): Likewise.
14217         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14219         fcntl-h: fix O_ACCMODE on cygwin
14220         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14221         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14223         pipe-filter: drop O_NONBLOCK workarounds
14224         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14225         * modules/pipe-filter-ii (Depends-on): Likewise.
14226         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14228         nonblocking: provide O_NONBLOCK for mingw
14229         * modules/nonblocking (Depends-on): Add open.
14230         (configure.ac): Set new witness macro.
14231         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14232         * modules/fcntl-h (Makefile.am): Substitute it.
14233         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14234         nonblocking module is in use.
14235         * lib/nonblocking.c: Adjust portability test.
14236         * lib/open.c (open): Don't let native open see gnulib flag.
14237         * tests/test-fcntl-h.c (main): Enhance test.
14238         * tests/test-open.h (test_open): Likewise.
14239         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14241         careadlinkat: fix compilation error on mingw
14242         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14243         within struct allocator.
14245 2011-04-06  Eric Blake  <eblake@redhat.com>
14247         binary-io: relicense under LGPLv2+
14248         * modules/binary-io (License): Relax to LGPLv2+.
14249         Requested for libvirt, and required by pipe2.
14251 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14253         verify: use _Static_assert if available
14254         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14255         (verify_true, verify): Use it if available.  This generates better
14256         diagnostics with GCC 4.6.0 and later.
14258 2011-04-05  Bruno Haible  <bruno@clisp.org>
14260         Remove leftover generated .h files after config.status changed.
14262         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14263         GL_GENERATE_ALLOCA_H.
14264         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14265         GL_GENERATE_ALLOCA_H evaluates to false.
14267         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14268         GL_GENERATE_ARGZ_H.
14269         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14270         evaluates to false.
14272         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14273         GL_GENERATE_BYTESWAP_H.
14274         * modules/byteswap (Makefile.am): Remove byteswap.h if
14275         GL_GENERATE_BYTESWAP_H evaluates to false.
14277         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14278         GL_GENERATE_ERRNO_H.
14279         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14280         evaluates to false.
14282         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14283         GL_GENERATE_FLOAT_H.
14284         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14285         evaluates to false.
14287         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14288         GL_GENERATE_FNMATCH_H.
14289         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14290         GL_GENERATE_FNMATCH_H evaluates to false.
14292         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14293         GL_GENERATE_GLOB_H.
14294         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14295         evaluates to false.
14297         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14298         automake conditional GL_GENERATE_ICONV_H.
14299         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14300         evaluates to false.
14302         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14303         GL_GENERATE_NETINET_IN_H.
14304         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14305         GL_GENERATE_NETINET_IN_H evaluates to false.
14307         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14308         conditional GL_GENERATE_PTHREAD_H.
14309         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14310         * modules/pthread (Makefile.am): Remove pthread.h if
14311         GL_GENERATE_PTHREAD_H evaluates to false.
14313         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14314         GL_GENERATE_SCHED_H.
14315         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14316         evaluates to false.
14318         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14319         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14320         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14321         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14323         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14324         GL_GENERATE_STDARG_H.
14325         * modules/stdarg (Makefile.am): Remove stdarg.h if
14326         GL_GENERATE_STDARG_H evaluates to false.
14328         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14329         GL_GENERATE_STDBOOL_H.
14330         * modules/stdbool (Makefile.am): Remove stdbool.h if
14331         GL_GENERATE_STDBOOL_H evaluates to false.
14333         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14334         conditional GL_GENERATE_STDDEF_H.
14335         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14336         * modules/stddef (Makefile.am): Remove stddef.h if
14337         GL_GENERATE_STDDEF_H evaluates to false.
14339         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14340         GL_GENERATE_STDINT_H.
14341         * modules/stdint (Makefile.am): Remove stdint.h if
14342         GL_GENERATE_STDINT_H evaluates to false.
14344         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14345         GL_GENERATE_SYSEXITS_H.
14346         * modules/sysexits (Makefile.am): Remove sysexits.h if
14347         GL_GENERATE_SYSEXITS_H evaluates to false.
14349         Reported by Karl Berry and Ralf Wildenhues.
14351 2011-04-05  Bruno Haible  <bruno@clisp.org>
14353         Ensure to rebuild generated .h files when config.status has changed.
14354         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14355         config.status.
14356         * modules/ctype (Makefile.am): Likewise.
14357         * modules/dirent (Makefile.am): Likewise.
14358         * modules/errno (Makefile.am): Likewise.
14359         * modules/fcntl-h (Makefile.am): Likewise.
14360         * modules/float (Makefile.am): Likewise.
14361         * modules/getopt-posix (Makefile.am): Likewise.
14362         * modules/glob (Makefile.am): Likewise.
14363         * modules/iconv-h (Makefile.am): Likewise.
14364         * modules/inttypes (Makefile.am): Likewise.
14365         * modules/langinfo (Makefile.am): Likewise.
14366         * modules/locale (Makefile.am): Likewise.
14367         * modules/math (Makefile.am): Likewise.
14368         * modules/netdb (Makefile.am): Likewise.
14369         * modules/netinet_in (Makefile.am): Likewise.
14370         * modules/poll-h (Makefile.am): Likewise.
14371         * modules/pthread (Makefile.am): Likewise.
14372         * modules/pty (Makefile.am): Likewise.
14373         * modules/sched (Makefile.am): Likewise.
14374         * modules/search (Makefile.am): Likewise.
14375         * modules/selinux-h (Makefile.am): Likewise.
14376         * modules/signal (Makefile.am): Likewise.
14377         * modules/spawn (Makefile.am): Likewise.
14378         * modules/stdarg (Makefile.am): Likewise.
14379         * modules/stdbool (Makefile.am): Likewise.
14380         * modules/stddef (Makefile.am): Likewise.
14381         * modules/stdint (Makefile.am): Likewise.
14382         * modules/stdio (Makefile.am): Likewise.
14383         * modules/stdlib (Makefile.am): Likewise.
14384         * modules/string (Makefile.am): Likewise.
14385         * modules/strings (Makefile.am): Likewise.
14386         * modules/sys_file (Makefile.am): Likewise.
14387         * modules/sys_ioctl (Makefile.am): Likewise.
14388         * modules/sys_select (Makefile.am): Likewise.
14389         * modules/sys_socket (Makefile.am): Likewise.
14390         * modules/sys_stat (Makefile.am): Likewise.
14391         * modules/sys_time (Makefile.am): Likewise.
14392         * modules/sys_times (Makefile.am): Likewise.
14393         * modules/sys_utsname (Makefile.am): Likewise.
14394         * modules/sys_wait (Makefile.am): Likewise.
14395         * modules/sysexits (Makefile.am): Likewise.
14396         * modules/termios (Makefile.am): Likewise.
14397         * modules/time (Makefile.am): Likewise.
14398         * modules/unistd (Makefile.am): Likewise.
14399         * modules/wchar (Makefile.am): Likewise.
14400         * modules/wctype-h (Makefile.am): Likewise.
14401         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14403 2011-04-05  Bruno Haible  <bruno@clisp.org>
14405         pipe2: Relicense under LGPLv2+.
14406         * modules/pipe2 (License): Change to LGPLv2+.
14407         Requested by Eric Blake, for libvirt.
14409 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14411         bootstrap: compute gnulib_extra_files after updating build_aux
14412         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14413         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14415 2011-04-05  Eric Blake  <eblake@redhat.com>
14417         bootstrap: preserve git whitelist item sorting
14418         * build-aux/bootstrap (sort_patterns): New function.
14419         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14421 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14423         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14424         sc_space_tab check.
14426 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14428         areadlink, areadlinkat: rewrite in terms of careadlinkat
14429         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14430         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14431         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14432         (malloc, realloc): Remove #undefs.
14433         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14434         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14435         readlink, ssize_t, stdint, unistd.
14436         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14437         areadlink, stdint.
14439         careadlinkat: new module
14440         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14441         * modules/careadlinkat: New files, written by me with
14442         a review and feedback from Ben Pfaff in
14443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14445 2011-04-01  Bruno Haible  <bruno@clisp.org>
14447         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14448         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14449         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14450         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14451         Reported by Bruce Korb <bruce.korb@gmail.com>.
14453 2011-04-01  Bruno Haible  <bruno@clisp.org>
14455         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14456         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14457         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14458         * modules/wcpcpy (Depends-on): Add extensions.
14459         * modules/wcpncpy (Depends-on): Likewise.
14460         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14461         systems.
14462         * doc/posix-functions/wcpncpy.texi: Likewise.
14463         * doc/posix-functions/wcwidth.texi: Likewise.
14465 2011-03-31  Eric Blake  <eblake@redhat.com>
14467         nonblocking: fix mingw test failures
14468         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14469         non-blocking flag on regular file.
14470         (get_nonblocking_flag): Set errno on invalid fd.
14471         * tests/test-nonblocking.c (main): Avoid test failure on
14472         directories if fchdir is not active.
14473         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14475 2011-03-31  Bruno Haible  <bruno@clisp.org>
14477         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14478         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14479         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14480         Reported by Simon Josefsson <simon@josefsson.org>.
14482 2011-03-31  Bruno Haible  <bruno@clisp.org>
14483         and Eric Blake  <eblake@redhat.com>
14485         nonblocking: new module
14486         * modules/nonblocking: New module.
14487         * modules/nonblocking-tests: Likewise.
14488         * lib/nonblocking.h: New file.
14489         * lib/nonblocking.c: Likewise.
14490         * tests/test-nonblocking.c: New test.
14491         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14493 2011-03-30  Bruno Haible  <bruno@clisp.org>
14495         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14496         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14497         instead of 'printf' format for GCC >= 4.4.
14498         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14499         (fprintf, printf, vfprintf, vprintf): Declare with
14500         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14501         the system's vfprintf() function.
14502         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14504 2011-03-30  Eric Blake  <eblake@redhat.com>
14506         passfd: fix scoping bug
14507         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14508         before sendmsg/recvmsg.
14510         passfd: standardize coding conventions
14511         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14512         can be learned at compile time.
14513         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14514         ifdefs.
14515         (sendfd, recvfd): Follow gnulib code conventions.
14517         passfd: fix incorrect sendmsg arguments
14518         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14519         incorrect msg_controllen value.
14520         * modules/passfd-tests (Depends-on): Check for alarm.
14521         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14522         Reported by Bastien ROUCARIES.
14524 2011-03-30  Bruno Haible  <bruno@clisp.org>
14526         c-strcasestr: Relicense under LGPLv2+.
14527         * modules/c-strcasestr (License): Change to LGPLv2+.
14528         Requested by Eric Blake, for libvirt.
14530 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14532         * users.txt: Add libidn2.  Fix libtasn1 link.
14534 2011-03-30  Jim Meyering  <meyering@redhat.com>
14536         tests: readlink* ("",... fails with EINVAL on newer kernels
14537         readlink and readlinkat have typically failed with ENOENT for
14538         the invalid, empty file name,  "".  However, with the advent
14539         of linux-2.6.39, they fail with EINVAL.
14540         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14541         when operating on the empty file name.
14542         * tests/test-readlink.h (test_readlink): Likewise.
14544 2011-03-29  Bruno Haible  <bruno@clisp.org>
14546         Relicense some modules under LGPLv2+, for libidn2.
14547         * modules/array-mergesort (License): Change to LGPLv2+.
14548         * modules/c-strcaseeq (License): Likewise.
14549         * modules/striconveh (License): Likewise.
14550         * modules/striconveha (License): Likewise.
14551         * modules/uniconv/base (License): Likewise.
14552         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14553         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14554         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14555         * modules/unictype/base (License): Likewise.
14556         * modules/unictype/bidiclass-of (License): Likewise.
14557         * modules/unictype/category-M (License): Likewise.
14558         * modules/unictype/category-none (License): Likewise.
14559         * modules/unictype/category-of (License): Likewise.
14560         * modules/unictype/category-test (License): Likewise.
14561         * modules/unictype/category-test-withtable (License): Likewise.
14562         * modules/unictype/combining-class (License): Likewise.
14563         * modules/unictype/joiningtype-of (License): Likewise.
14564         * modules/unictype/scripts (License): Likewise.
14565         * modules/uninorm/base (License): Likewise.
14566         * modules/uninorm/canonical-decomposition (License): Likewise.
14567         * modules/uninorm/composition (License): Likewise.
14568         * modules/uninorm/decompose-internal (License): Likewise.
14569         * modules/uninorm/decomposition-table (License): Likewise.
14570         * modules/uninorm/nfc (License): Likewise.
14571         * modules/uninorm/nfd (License): Likewise.
14572         * modules/uninorm/u32-normalize (License): Likewise.
14573         * modules/unistr/base (License): Likewise.
14574         * modules/unistr/u32-cpy (License): Likewise.
14575         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14576         * modules/unistr/u32-to-u8 (License): Likewise.
14577         * modules/unistr/u32-uctomb (License): Likewise.
14578         * modules/unistr/u8-check (License): Likewise.
14579         * modules/unistr/u8-mblen (License): Likewise.
14580         * modules/unistr/u8-mbtouc (License): Likewise.
14581         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14582         * modules/unistr/u8-mbtoucr (License): Likewise.
14583         * modules/unistr/u8-prev (License): Likewise.
14584         * modules/unistr/u8-strlen (License): Likewise.
14585         * modules/unistr/u8-to-u32 (License): Likewise.
14586         * modules/unistr/u8-uctomb (License): Likewise.
14587         * modules/unitypes (License): Likewise.
14588         Requested by Simon Josefsson.
14590 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14592         lib-symbol-visibility: Add a notice.
14593         * modules/lib-symbol-visibility (Notice): New field.
14595 2011-03-29  Bruno Haible  <bruno@clisp.org>
14597         getaddrinfo: Doc fix.
14598         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14599         section "fixed in Gnulib".
14601 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14603         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14604         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14606 2011-03-26  Bruno Haible  <bruno@clisp.org>
14608         unictype/property-byname: Reduce the number of load-time relocations.
14609         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14610         (UC_PROPERTY_INDEX_*): New enumeration values.
14611         (uc_property_byname): Convert an index from the lookup table to an
14612         uc_property_t.
14613         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14614         values.
14616 2011-03-26  Bruno Haible  <bruno@clisp.org>
14618         unictype/property-byname: Allow omitted word separators and aliases.
14619         * lib/unictype/pr_byname.gperf: Add property names without word
14620         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14621         for 'space'.
14623 2011-03-26  Bruno Haible  <bruno@clisp.org>
14625         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14626         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14627         also hyphens to space.
14628         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14629         without spaces.
14630         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14632 2011-03-26  Bruno Haible  <bruno@clisp.org>
14634         unictype/joiningtype-byname: Recognize long names as well.
14635         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14636         a long name.
14637         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14638         unictype/joiningtype_byname.h.
14639         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14640         * lib/unictype/joiningtype_byname.gperf: New file.
14641         * modules/unictype/joiningtype-byname (Files): Add
14642         lib/unictype/joiningtype_byname.gperf.
14643         (Depends-on): Add gperf.
14644         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14645         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14646         long names.
14648         Tests for module 'unictype/joiningtype-longname'.
14649         * modules/unictype/joiningtype-longname-tests: New file.
14650         * tests/unictype/test-joiningtype_longname.c: New file.
14652         New module 'unictype/joiningtype-longname'.
14653         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14654         * lib/unictype/joiningtype_longname.c: New file.
14655         * modules/unictype/joiningtype-longname: New file.
14656         * modules/unictype/joiningtype-all (Depends-on): Add
14657         unictype/joiningtype-longname.
14659 2011-03-26  Bruno Haible  <bruno@clisp.org>
14661         unictype/bidiclass-byname: Recognize long names as well.
14662         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14663         name.
14664         * lib/unictype/bidi_byname.c: Include <string.h>,
14665         unictype/bidi_byname.h.
14666         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14667         * lib/unictype/bidi_byname.gperf: New file.
14668         * modules/unictype/bidiclass-byname (Files): Add
14669         lib/unictype/bidi_byname.gperf.
14670         (Depends-on): Add gperf.
14671         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14672         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14673         long names.
14675         Tests for module 'unictype/bidiclass-longname'.
14676         * modules/unictype/bidiclass-longname-tests: New file.
14677         * tests/unictype/test-bidi_longname.c: New file.
14679         New module 'unictype/bidiclass-longname'.
14680         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14681         * lib/unictype/bidi_longname.c: New file.
14682         * modules/unictype/bidiclass-longname: New file.
14683         * modules/unictype/bidiclass-all (Depends-on): Add
14684         unictype/bidiclass-longname.
14686 2011-03-26  Bruno Haible  <bruno@clisp.org>
14688         unictype/bidi*: Rename modules.
14689         * modules/unictype/bidiclass-all: Renamed from
14690         modules/unictype/bidicategory-all.
14691         * modules/unictype/bidiclass-name: Renamed from
14692         modules/unictype/bidiclass-name.
14693         (Description): Update.
14694         * modules/unictype/bidiclass-name-tests: Renamed from
14695         modules/unictype/bidicategory-name-tests.
14696         * modules/unictype/bidiclass-byname: Renamed from
14697         modules/unictype/bidicategory-byname.
14698         (Description): Update.
14699         * modules/unictype/bidiclass-byname-tests: Renamed from
14700         modules/unictype/bidicategory-byname-tests.
14701         * modules/unictype/bidiclass-of: Renamed from
14702         modules/unictype/bidicategory-of.
14703         (Description): Update.
14704         * modules/unictype/bidiclass-of-tests: Renamed from
14705         modules/unictype/bidicategory-of-tests.
14706         * modules/unictype/bidiclass-test: Renamed from
14707         modules/unictype/bidicategory-test.
14708         (Description): Update.
14709         * modules/unictype/bidiclass-test-tests: Renamed from
14710         modules/unictype/bidicategory-test-tests.
14711         * modules/unictype/bidicategory-all: New file, a simple redirection.
14712         * modules/unictype/bidicategory-name: Likewise.
14713         * modules/unictype/bidicategory-byname: Likewise.
14714         * modules/unictype/bidicategory-of: Likewise.
14715         * modules/unictype/bidicategory-test: Likewise.
14716         * modules/unictype/property-bidi-* (Dependencies): Update.
14717         * lib/unictype/bidi_*.c: Update comment.
14719 2011-03-26  Bruno Haible  <bruno@clisp.org>
14721         unictype/bidi*: Rename functions, part 2.
14722         * modules/unictype/bidicategory-name (configure.ac): Update required
14723         libunistring version.
14724         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14726 2011-03-25  Bruno Haible  <bruno@clisp.org>
14728         New module 'unictype/combining-class-all'.
14729         * modules/unictype/combining-class-all: New file.
14731         Tests for module 'unictype/combining-class-byname'.
14732         * modules/unictype/combining-class-byname-tests: New file.
14733         * tests/unictype/test-combiningclass_byname.c: New file.
14735         New module 'unictype/combining-class-byname'.
14736         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14737         * lib/unictype/combiningclass_byname.c: New file.
14738         * lib/unictype/combiningclass_byname.gperf: New file.
14739         * modules/unictype/combining-class-byname: New file.
14741         Tests for module 'unictype/combining-class-longname'.
14742         * modules/unictype/combining-class-longname-tests: New file.
14743         * tests/unictype/test-combiningclass_longname.c: New file.
14745         New module 'unictype/combining-class-longname'.
14746         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14747         * lib/unictype/combiningclass_longname.c: New file.
14748         * modules/unictype/combining-class-longname: New file.
14750         Tests for module 'unictype/combining-class-name'.
14751         * modules/unictype/combining-class-name-tests: New file.
14752         * tests/unictype/test-combiningclass_name.c: New file.
14754         New module 'unictype/combining-class-name'.
14755         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14756         * lib/unictype/combiningclass_name.c: New file.
14757         * modules/unictype/combining-class-name: New file.
14759 2011-03-25  Bruno Haible  <bruno@clisp.org>
14761         unictype/combining-class: Rename source files.
14762         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14763         of unictype/combining.h.
14764         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14765         Update.
14766         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14767         * modules/unictype/combining-class (Description): Fix.
14768         (Files, Makefile.am): Update.
14769         * tests/unictype/test-combiningclass.c: Renamed from
14770         tests/unictype/test-combining.c.
14771         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14773 2011-03-25  Bruno Haible  <bruno@clisp.org>
14775         unictype: Update list of canonical combining classes.
14776         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14778 2011-03-25  Bruno Haible  <bruno@clisp.org>
14780         unictype/category-byname: Recognize long names as well.
14781         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14782         a long name.
14783         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14784         unictype/categ_byname.h.
14785         (UC_CATEGORY_INDEX_*): New enumeration values.
14786         (uc_general_category_byname): Use uc_general_category_lookup and
14787         convert from index to value.
14788         * lib/unictype/categ_byname.gperf: New file.
14789         * modules/unictype/category-byname (Files): Add
14790         lib/unictype/categ_byname.gperf.
14791         (Depends-on): Add gperf.
14792         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14793         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14794         long names.
14796         Tests for module 'unictype/category-longname'.
14797         * modules/unictype/category-longname-tests: New file.
14798         * tests/unictype/test-categ_longname.c: New file.
14800         New module 'unictype/category-longname'.
14801         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14802         * lib/unictype/categ_longname.c: New file.
14803         * modules/unictype/category-longname: New file.
14804         * modules/unictype/category-all (Depends-on): Add it.
14806 2011-03-25  Bruno Haible  <bruno@clisp.org>
14808         Tests for module 'unictype/category-LC'.
14809         * modules/unictype/category-LC-tests: New file.
14810         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14812         New module 'unictype/category-LC'.
14813         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14814         (UC_CATEGORY_LC): New declaration.
14815         (UC_CASED_LETTER): New macro.
14816         * lib/gen-uni-tables.c (is_category_LC): New function.
14817         (output_categories): Also handle category LC.
14818         (UC_CATEGORY_MASK_LC): New enumeration value.
14819         (general_category_byname): Also handle category LC.
14820         * lib/unictype/categ_LC.c: New file.
14821         * lib/unictype/categ_LC.h: New file, automatically generated.
14822         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14823         category LC.
14824         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14825         * modules/unictype/category-LC: New file.
14826         * modules/unictype/category-byname (Depends-on): Add
14827         unictype/category-LC.
14828         * modules/unictype/category-all (Depends-on): Likewise.
14830 2011-03-25  Eric Blake  <eblake@redhat.com>
14832         xmalloc: revert yesterday's regression
14833         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14834         realloc's underlying behavior (allowing allocation of zero-size
14835         objects, especially if malloc-gnu is also in use).
14837 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14839         maint.mk: add missing version to VC-tag
14840         * top/maint.mk: git tag was missing actual tag name; add it.
14842         valgrind: do leak checking, and exit with code 1 on error (not 0)
14843         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14844         to VALGRIND.
14846 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14848         posix-modules: say what it does.
14849         * posix-modules: Add a line to the --help output saying what it does.
14851 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14853         xmalloc: Do not leak if underlying realloc is C99 compatible.
14854         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14855         This avoids a leak on C99-based systems.  See
14856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14858 2011-03-24  Eric Blake  <eblake@redhat.com>
14860         realloc: document portability problem
14861         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14862         passing 0 size to realloc.
14864 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14866         doc: update users.txt
14867         * users.txt: Add cvsps, tmpwatch
14869 2011-03-23  Matt Rice  <ratmice@gmail.com>
14871         doc: update users.txt
14872         * users.txt: Add gdb.
14874 2011-03-23  Jim Meyering  <meyering@redhat.com>
14876         doc: update users.txt
14877         Looking through matches up to the following URL (there are still
14878         several more pages), I found several projects that use gnulib:
14879         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14880         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14881         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14883 2011-03-22  Bruno Haible  <bruno@clisp.org>
14885         unictype/bidi*: Rename functions.
14886         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14887         uc_bidi_class, uc_is_bidi_class): New declarations.
14888         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14889         uc_bidi_category_byname.
14890         (uc_bidi_category_byname): New function.
14891         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14892         u_bidi_category_name.
14893         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14894         (uc_bidi_category_name): New function.
14895         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14896         uc_bidi_category.
14897         (uc_bidi_category): New function.
14898         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14899         uc_is_bidi_category. Invoke uc_bidi_class.
14900         (uc_is_bidi_category): New function.
14901         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14902         instead of uc_bidi_category_byname.
14903         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14904         instead of uc_bidi_category_name.
14905         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14906         uc_bidi_category.
14907         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14908         instead of uc_is_bidi_category.
14910 2011-03-21  Bruno Haible  <bruno@clisp.org>
14912         New module 'unictype/joininggroup-all'.
14913         * modules/unictype/joininggroup-all: New file.
14915         Tests for module 'unictype/joininggroup-of'.
14916         * modules/unictype/joininggroup-of-tests: New file.
14917         * tests/unictype/test-joininggroup_of.c: New file.
14918         * tests/unictype/test-joininggroup_of.h: New file, automatically
14919         generated by gen-uni-tables.
14921         New module 'unictype/joininggroup-of'.
14922         * modules/unictype/joininggroup-of: New file.
14923         * lib/unictype/joininggroup_of.c: New file.
14924         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14925         gen-uni-tables.
14927         Tests for module 'unictype/joininggroup-byname'.
14928         * modules/unictype/joininggroup-byname-tests: New file.
14929         * tests/unictype/test-joininggroup_byname.c: New file.
14931         New module 'unictype/joininggroup-byname'.
14932         * modules/unictype/joininggroup-byname: New file.
14933         * lib/unictype/joininggroup_byname.c: New file.
14934         * lib/unictype/joininggroup_byname.gperf: New file.
14936         Tests for module 'unictype/joininggroup-name'.
14937         * modules/unictype/joininggroup-name-tests: New file.
14938         * tests/unictype/test-joininggroup_name.c: New file.
14940         New module 'unictype/joininggroup-name'.
14941         * modules/unictype/joininggroup-name: New file.
14942         * lib/unictype/joininggroup_name.c: New file.
14943         * lib/unictype/joininggroup_name.h: New file.
14945         New module 'unictype/joiningtype-all'.
14946         * modules/unictype/joiningtype-all: New file.
14948         Tests for module 'unictype/joiningtype-of'.
14949         * modules/unictype/joiningtype-of-tests: New file.
14950         * tests/unictype/test-joiningtype_of.c: New file.
14951         * tests/unictype/test-joiningtype_of.h: New file, automatically
14952         generated by gen-uni-tables.
14954         New module 'unictype/joiningtype-of'.
14955         * modules/unictype/joiningtype-of: New file.
14956         * lib/unictype/joiningtype_of.c: New file.
14957         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14958         gen-uni-tables.
14960         Tests for module 'unictype/joiningtype-byname'.
14961         * modules/unictype/joiningtype-byname-tests: New file.
14962         * tests/unictype/test-joiningtype_byname.c: New file.
14964         New module 'unictype/joiningtype-byname'.
14965         * modules/unictype/joiningtype-byname: New file.
14966         * lib/unictype/joiningtype_byname.c: New file.
14968         Tests for module 'unictype/joiningtype-name'.
14969         * modules/unictype/joiningtype-name-tests: New file.
14970         * tests/unictype/test-joiningtype_name.c: New file.
14972         New module 'unictype/joiningtype-name'.
14973         * modules/unictype/joiningtype-name: New file.
14974         * lib/unictype/joiningtype_name.c: New file.
14976         unictype: Add support for Arabic shaping properties.
14977         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14978         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14979         declarations.
14980         (UC_JOINING_GROUP_*): New enumeration values.
14981         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14982         declarations.
14983         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14984         (unicode_joining_type): New variable.
14985         (UC_JOINING_GROUP_*): New enumeration values.
14986         (unicode_joining_group): New variable.
14987         (fill_arabicshaping, joining_type_as_c_identifier,
14988         output_joining_type_test, output_joining_type,
14989         joining_group_as_c_identifier, output_joining_group_test,
14990         output_joining_group): New functions.
14991         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14992         fill_arabicshaping and output_joining_type_test, output_joining_type,
14993         output_joining_group_test, output_joining_group.
14994         Reported by Simon Josefsson.
14996 2011-03-21  Jim Meyering  <meyering@redhat.com>
14998         strftime: fix a bug in yesterday's change
14999         * lib/strftime.c (add): Accommodate width's initial value of -1.
15000         Otherwise, nstrftime would copy uninitialized data into
15001         the result buffer.
15003 2011-03-21  Jim Meyering  <meyering@redhat.com>
15005         tests: add strftime-tests module
15006         * tests/test-strftime.c: New file.
15007         * modules/strftime-tests: New module.
15009 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15011         strftime: don't assume a byte count fits in 'int'
15012         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15013         found this problem by static analysis, using gcc -Wstrict-overflow
15014         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15015         on an integer overflow having undefined behavior, but it turns out
15016         that the argument is a size, which might not fit in 'int' anyway,
15018 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15020         stdio: don't require ignore_value around fwrite
15022         This patch works around libc bug 11959
15023         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15024         Without this patch, applications must often write
15025         ignore_value (fwrite (...)) even though the ignore_value is
15026         not helpful here.  It's common to write many objects, using
15027         fwrite/printf/etc., and then use ferror to detect output error.
15029         I considered making this patch optional, but decided against it,
15030         because libc is obviously being inconsistent here: there is no
15031         reason libc should insist that user code must inspect fwrite
15032         return's value without also insisting that it inspect printf's,
15033         putchar's, etc.  If user code wants to have a strict style where
15034         all these functions' values are checked (so that ferror need not
15035         be checked), we could add support for that style in a new gnulib
15036         module, but in the meantime it's better to be consistent and to
15037         support common usage.
15039         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15040         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15041         that we are compiling in checking mode, and if not C++, and
15042         if not already wrapping fwrite for some other reason.
15043         (fwrite): #define to rpl_fwrite if the latter is defined.
15045 2011-03-20  Bruno Haible  <bruno@clisp.org>
15047         verror: Fix compilation error introduced on 2011-02-13.
15048         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15049         instead of __attribute__.
15050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15052 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15053             Bruno Haible  <bruno@clisp.org>
15055         socklen: do not depend on sys_socket
15056         While trying to modify Emacs to use gnulib's socklen module,
15057         I discovered a circular dependency: socklen depends on sys_socket
15058         and vice versa.  Emacs can use socklen, but it does not need
15059         sys_socket because it has its own substitute for sys/socket.h.
15060         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15061         gl_TYPE_SOCKLEN_T.
15062         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15063         gl_PREREQ_SYS_H_SOCKET.
15064         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15065         gl_PREREQ_SYS_H_SOCKET.
15066         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15067         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15068         * modules/socklen (Depends-on): Do not depend on sys_socket.
15069         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15071 2011-03-20  Jim Meyering  <meyering@redhat.com>
15073         maint.mk: sort file names *after* new transformation
15074         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15075         prefix would have led to an unwarranted failure in GNU parted.
15076         Sort after that transformation.
15078 2011-03-19  Jim Meyering  <meyering@redhat.com>
15080         maint.mk: fix po-file syntax-check rule
15081         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15082         Patch by Bruno Haible.
15084 2011-03-19  Bruno Haible  <bruno@clisp.org>
15086         socklen: Update comment.
15087         * m4/socklen.m4: Update comment about platforms.
15089 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15090             Bruno Haible  <bruno@clisp.org>
15092         inet_ntop, inet_pton: Simplify.
15093         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15094         documented to provide socklen_t and we already depend on sys_socket.
15095         * modules/inet_pton (Depends-on): Likewise.
15096         * lib/arpa_inet.in.h: Adjust comment.
15098 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15099             Bruno Haible  <bruno@clisp.org>
15101         netdb: Simplify.
15102         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15103         documented to provide socklen_t and we already depend on sys_socket.
15104         * lib/netdb.in.h: Adjust comment.
15106 2011-03-19  Bruno Haible  <bruno@clisp.org>
15108         sys_socket, netdb: Document problem with socklen_t.
15109         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15110         platforms.
15111         * doc/posix-headers/netdb.texi: Likewise.
15113 2011-03-18  Eric Blake  <eblake@redhat.com>
15115         maint.mk: let po check work in VPATH build
15116         * top/maint.mk (po_file): Allow cfg.mk override.
15117         (sc_po_check): Allow VPATH use.
15118         Reported by Jiri Denemark.
15120 2011-03-16  Jim Meyering  <meyering@redhat.com>
15122         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15123         Before, you would have had to create one .x-sc_ file per rule in order
15124         to exempt offending files.  Now, you may instead use a Make variable --
15125         usually defined in cfg.mk -- whose name identifies the affected rule.
15126         * top/maint.mk (_sc_excl): Define.
15127         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15128         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15130 2011-03-13  Bruno Haible  <bruno@clisp.org>
15132         ignore-value tests: Avoid warnings.
15133         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15134         empty for gcc < 3.4.
15136 2011-03-13  Bruno Haible  <bruno@clisp.org>
15138         passfd: Fix link error on Solaris.
15139         * modules/passfd (Description): Correct.
15140         (Depends-on): Add socketlib.
15141         (Link): New section.
15142         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15144 2011-03-13  Bruno Haible  <bruno@clisp.org>
15146         passfd: Fix link error on AIX 5.2.
15147         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15149 2011-03-13  Bruno Haible  <bruno@clisp.org>
15151         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15152         * lib/sys_socket.in.h: Include <stddef.h>.
15153         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15154         CMSG_FIRSTHDR. Remove unused variable.
15156 2011-03-13  Bruno Haible  <bruno@clisp.org>
15158         passfd: Fix compilation error on OpenBSD.
15159         * lib/passfd.c: Include <sys/uio.h>.
15161 2011-03-13  Bruno Haible  <bruno@clisp.org>
15163         passfd test: Fix warnings.
15164         * tests/test-passfd.c: Include <sys/wait.h>.
15165         (main): Fix typo.
15167 2011-03-13  Bruno Haible  <bruno@clisp.org>
15169         passfd module, part 4, tweaks.
15170         * tests/test-passfd.c: Reorder includes.
15171         (main): Fix perror and printf calls.
15173 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15175         passfd module, part 4.
15176         * modules/passfd-tests: New file.
15177         * tests/test-passfd.c: New file.
15179 2011-03-13  Jim Meyering  <meyering@redhat.com>
15181         Makefile: rely on GNU make; derive syntax-check rule names
15182         Rather than requiring that each sc_ rule be listed as a dependent
15183         of "check", use features of GNU make to derive the list.
15184         * Makefile (syntax-check-rules): Define.
15185         (check): Depend on the new variable, not the hard-coded list.
15187 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15188             Bruno Haible  <bruno@clisp.org>
15190         passfd module, part 3.
15191         * lib/passfd.h (recvfd): Add a flags argument.
15192         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15193         (recvfd): Add a flags argument.
15194         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15195         exists.
15196         * modules/passfd (Depends-on): Add cloexec.
15197         Suggested by Eric Blake.
15199 2011-03-13  Bruno Haible  <bruno@clisp.org>
15201         passfd module, part 2, tweaks.
15202         * modules/passfd (Files): Reorder.
15203         (Depends-on): Remove errno.
15204         (Include): Remove <sys/socket.h>, <sys/un.h>.
15205         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15206         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15207         specification header. Include <sys/socket.h> always. Don't include
15208         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15209         (sendfd): Clarify that it sets errno when it fails.
15210         (recvfd): Fix specification.
15212 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15214         passfd module, part 2.
15215         * modules/passfd: New file.
15216         * lib/passfd.h: New file.
15217         * lib/passfd.c: New file.
15219 2011-03-12  Bruno Haible  <bruno@clisp.org>
15221         wcswidth, mbswidth: Avoid integer overflow.
15222         * lib/wcswidth.c: Include <limits.h>.
15223         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15224         * lib/mbswidth.c: Include <limits.h>.
15225         (mbsnwidth): Avoid 'int' overflow.
15226         Reported by Jim Meyering.
15228 2011-03-12  Bruno Haible  <bruno@clisp.org>
15230         futimens, utimensat: Avoid endless recursion on Solaris 10.
15231         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15232         Solaris.
15233         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15234         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15236 2011-03-11  Jim Meyering  <meyering@redhat.com>
15238         maint.mk: relax a regexp to accommodate other formatting styles
15239         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15240         between "ngettext" and the following "(".
15242 2011-03-11  Pádraig Brady <P@draigBrady.com>
15244         maint.mk: suppress a false positive warning
15245         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15246         diagnostics are marked with ngettext.
15248 2011-03-10  Eric Blake  <eblake@redhat.com>
15250         wchar: add explicit dependencies, for Tru64
15251         * modules/mbmemcasecoll (Depends-on): Add wchar.
15252         * modules/mbtowc (Depends-on): Likewise.
15253         * modules/vasnprintf (Depends-on): Likewise.
15254         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15255         * modules/wctomb (Depends-on): Likewise.
15256         Reported by Peter O'Gorman.
15258 2011-03-08  Bruno Haible  <bruno@clisp.org>
15260         passfd module, part 1, tweaks.
15261         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15262         Improve indentation. Improve AC_MSG_CHECKING messages.
15263         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15264         gl_SOCKET_FAMILIES.
15266 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15268         passfd module, part 1.
15269         * m4/afunix.m4: New file.
15270         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15271         sockets.
15273 2011-03-08  Bruno Haible  <bruno@clisp.org>
15275         regex-quote: New API.
15276         * lib/regex-quote.h: Include <stdbool.h>.
15277         (struct regex_quote_spec): New type.
15278         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15279         New declarations.
15280         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15281         'const struct regex_quote_spec *' argument.
15282         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15283         (pcre_special): New constant.
15284         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15285         New functions.
15286         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15287         'const struct regex_quote_spec *' argument.
15288         * modules/regex-quote (Depends-on): Add stdbool.
15289         * tests/test-regex-quote.c (check): Update for new API. Add test for
15290         anchored results.
15291         * NEWS: Mention the API change.
15292         Reported by Reuben Thomas and Eric Blake.
15294 2011-03-06  Bruno Haible  <bruno@clisp.org>
15296         regex-quote: Fix creation of POSIX extended regular expressions.
15297         * lib/regex-quote.c (ere_special): Add grouping and alternation
15298         operators.
15300 2011-03-05  Bruno Haible  <bruno@clisp.org>
15302         doc: Improve doc regarding autopoint vs. gnulib.
15303         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15304         disable autopoint while running autoreconf.
15305         Suggested by Ralf Wildenhues.
15307 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15309         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15310         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15312 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15314         parse-duration: remove xalloc.h dependency
15315         * lib/parse-duration.c (parse_period): handle NULL return from
15316         strdup instead of calling xstrdup().
15317         * modules/parse-duration: remove "xalloc" dependency
15319 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15321         bootstrap: honor m4_base when running aclocal
15322         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15324 2011-03-02  Jim Meyering  <meyering@redhat.com>
15326         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15327         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15328         on request from Matt Booth.
15330 2011-03-01  Eric Blake  <eblake@redhat.com>
15332         test-link: work on Hurd
15333         * tests/test-link.h (test_link): Hurd rejects linking directories
15334         with EISDIR instead of the POSIX-mandated EPERM.
15336 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15338         stdio: simplify by moving files to printf-posix, sigpipe
15339         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15340         since this symbol is needed only if printf is replaced.
15341         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15342         Require gl_ASM_SYMBOL_PREFIX.
15343         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15344         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15345         (Depends-on): Add 'raise'.
15346         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15347         * modules/stdio (Files): Remove lib/stdio-write.c,
15348         m4/asm-underscore.m4.
15349         (Depends-on): Remove 'raise'.
15351         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15352         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15353         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15354         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15356 2011-02-28  Bruno Haible  <bruno@clisp.org>
15358         localcharset: Assume ANSI C behaviour of free().
15359         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15360         calling free().
15361         Suggested by Simon Josefsson <simon@josefsson.org>.
15363 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15364             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15365             Bruno Haible  <bruno@clisp.org>  (tiny change)
15367         On Cygwin, use /proc file system instead of win32 API.
15368         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15369         Win32 file names.
15370         (DllMain): Simplify by removing Cygwin specific code.
15371         (find_shared_library_fullname): Use Linux specific implementation also
15372         for Cygwin.
15373         (get_shared_library_fullname): Update accordingly.
15374         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15375         Win32 file names.
15376         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15377         Cygwin specific code.
15379 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15380             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15382         Fix OpenMP flag detection for various Fortran compilers.
15383         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15384         OpenMP-conditional compilation construct, to force compile
15385         failure with missing OpenMP flag.
15386         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15388 2011-02-25  Eric Blake  <eblake@redhat.com>
15390         strstr: expand test coverage
15391         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15392         compilation.
15393         * tests/test-memmem.c (main): Duplicate tests.
15394         * tests/test-strcasestr.c (main): Likewise.
15395         * tests/test-c-strcasestr.c (main): Likewise.
15397 2011-02-25  Jim Meyering  <meyering@redhat.com>
15399         maint.mk: detect missing-NL-at-EOF, too
15400         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15401         it also detects when a file lacks a newline at EOF.
15402         (require_exactly_one_NL_at_EOF_): Renamed from
15403         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15404         since people may well have .x-sc_... file names tied to the
15405         existing name.  Suggested by Eric Blake.
15407 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15409         dirname: move m4/dos.m4 functionality into lib/dosname.h
15411         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15412         extracts symbols from it, puts them into config.h; but it's much
15413         easier to use the symbols directly.  filename.h already does this,
15414         but it disagrees with dos.m4 in some respects.  This patch
15415         introduces a different include file dosname.h that packages up
15416         dos.m4, and then later we can work on merging filename.h and
15417         dosname.h.  Applications that need only the easy-to-configure
15418         symbols should consider including dosname.h rather than dirname.h.
15419         * NEWS: Mention incompatible changes.
15420         * m4/dos.m4: Remove.
15421         * lib/dosname.h, modules/dosname: New files.
15422         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15423         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15424         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15425         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15426         Include dosname.h, not dirname.h.
15427         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15428         Include dosname.h, for definitions of symbols like ISSLASH
15429         that used to be in config.h.
15430         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15431         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15432         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15433         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15434         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15435         * modules/rmdir (Files): Likewise.
15436         * modules/stat (Files): Likewise.
15437         * modules/unlink (Files): Likewise.
15438         * modules/dirname-lgpl (Depends-on): Add dosname.
15439         * modules/lstat (Depends-on): Likewise.
15440         * modules/openat (Depends-on): Likewise.
15441         * modules/rmdir (Depends-on): Likewise.
15442         * modules/savewd (Depends-on): Likewise.
15443         * modules/stat (Depends-on): Likewise.
15444         * modules/unlink (Depends-on): Likewise.
15445         * modules/openat (Depends-on): Remove dirname-lgpl.
15446         * modules/savewd (Depends-on): Likewise.
15447         * tests/test-dirname.c: Do not use removed symbols like
15448         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15449         the remaining symbols, e.g., ISSLASH ('\\').
15451 2011-02-25  Eric Blake  <eblake@redhat.com>
15453         strstr: revert patches that introduced bug and pessimization
15454         * lib/str-two-way.h: Add another reference.
15455         (two_way_short_needle, two_way_long_needle): Revert changes from
15456         2011-02-24; they pessimize search speed.
15457         (critical_factorization): Partially revert changes from
15458         2010-06-22; they violate the requirement that the left half of the
15459         needle be smaller than the period of the needle.
15461 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15463         filenamecat: remove unnecessary dependency on dirname-lgpl
15464         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15465         is no direct dependency, just an indirect one via filenamecat-lgpl.
15467         remove: remove unnecessary use of m4/dos.m4
15468         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15469         * modules/remove (FILES): Remove m4/dos.m4.
15471         * lib/openat-proc.c: Don't include dirname.h; not needed.
15473         backupfile: remove unnecessary use of m4/dos.m4
15474         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15475         of its symbols are used by the backupfile code.  backupfile.c does
15476         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15477         for the rare case of programs that want all their backup file
15478         names to live within 8+3 limits, and dos.m4 doesn't address that.
15479         * modules/backupfile (Files): Remove m4/dos.m4.
15481 2011-02-24  Jim Meyering  <meyering@redhat.com>
15483         strstr: fix a bug whereby strstr would mistakenly return NULL
15484         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15485         in period calculation.
15486         (two_way_long_needle): Likewise.
15487         The original problem was reported by Mike Stump in
15488         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15489         Ralf Wildenhues provided the short needle and haystack.
15490         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15491         Add a more involved test to trigger the bug in two_way_long_needle.
15493 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15495         gnulib-tool: remove use of bold display in help screen
15496         * gnulib-tool (func_usage): Do not use bold display anymore in the
15497         help screen.  That was just meant to be a temporary emphasis for a
15498         backward-incompatible change.
15500 2011-02-23  Bruno Haible  <bruno@clisp.org>
15502         Fix misindentation of preprocessor directives.
15503         * lib/argp-namefrob.h: Reindent preprocessor directives.
15504         * lib/getopt_int.h (struct _getopt_data): Likewise.
15505         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15506         * lib/vasnprintf.c (decode_long_double): Likewise.
15507         * tests/test-argmatch.c: Insert blank lines, for clarity.
15508         * tests/test-exclude.c: Likewise.
15510 2011-02-22  Bruno Haible  <bruno@clisp.org>
15512         ioctl: Fix for MacOS X in 64-bit mode.
15513         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15514         value.
15515         Suggested by Eric Blake.
15516         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15518 2011-02-22  Jim Meyering  <meyering@redhat.com>
15520         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15521         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15522         in lib/.
15524 2011-02-22  Eric Blake  <eblake@redhat.com>
15526         maint: avoid any CDPATH issue
15527         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15529         maint: adjust cpp indentation for my modules, as well
15530         * Makefile (sc_cpp_indent_check): Add my name.
15531         * lib/fbufmode.c: Filter through cppi.
15532         * lib/fpurge.c: Likewise.
15533         * lib/freadable.c: Likewise.
15534         * lib/freading.c: Likewise.
15535         * lib/fwritable.c: Likewise.
15536         * lib/fwriting.c: Likewise.
15537         * lib/sigaction.c: Likewise.
15539 2011-02-22  Jim Meyering  <meyering@redhat.com>
15541         maint: adjust cpp indentation to reflect nesting depth
15542         I.e., in a block of code that begins with an unnested "#if",
15543         put one space between the "#" in column 1 and following token.
15544         For example,
15545         -#include <sys/vfs.h>
15546         +# include <sys/vfs.h>
15547         Do this only in .c files that are part of a module I maintain.
15548         * lib/linkat.c: Filter through cppi.
15549         * lib/nanosleep.c: Likewise.
15550         * lib/openat.c: Likewise.
15551         * lib/openat-die.c: Likewise.
15552         * lib/dup3.c: Likewise.
15553         * lib/fchownat.c: Likewise.
15554         * lib/flock.c: Likewise.
15555         * lib/fsync.c: Likewise.
15556         * lib/fts.c: Likewise.
15557         * lib/getpass.c: Likewise.
15558         * lib/gettimeofday.c: Likewise.
15559         * lib/userspec.c: Likewise.
15560         * Makefile (sc_cpp_indent_check): New rule, to check this.
15562 2011-02-22  Bruno Haible  <bruno@clisp.org>
15564         New module 'wctomb'.
15565         * lib/stdlib.in.h (wctomb): New declaration.
15566         * lib/wctomb.c: New file.
15567         * lib/wctomb-impl.h: New file.
15568         * m4/wctomb.m4: New file.
15569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15570         REPLACE_WCTOMB.
15571         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15572         REPLACE_WCTOMB.
15573         * modules/wctomb: New file.
15574         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15575         * doc/posix-functions/wctomb.texi: Mention the new module.
15576         * modules/wctob (Depends-on): Add wctomb.
15578 2011-02-22  Bruno Haible  <bruno@clisp.org>
15580         New module 'mbtowc'.
15581         * lib/stdlib.in.h (mbtowc): New declaration.
15582         * lib/mbtowc.c: New file.
15583         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15584         * m4/mbtowc.m4: New file.
15585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15586         REPLACE_MBTOWC.
15587         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15588         REPLACE_MBTOWC.
15589         * modules/mbtowc: New file.
15590         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15591         * doc/posix-functions/mbtowc.texi: Mention the new module.
15592         * modules/btowc (Depends-on): Add mbtowc.
15594 2011-02-22  Bruno Haible  <bruno@clisp.org>
15596         wcrtomb: Add more tests for native Windows platforms.
15597         * tests/test-wcrtomb-w32-1.sh: New file.
15598         * tests/test-wcrtomb-w32-2.sh: New file.
15599         * tests/test-wcrtomb-w32-3.sh: New file.
15600         * tests/test-wcrtomb-w32-4.sh: New file.
15601         * tests/test-wcrtomb-w32-5.sh: New file.
15602         * tests/test-wcrtomb-w32.c: New file.
15603         * modules/wcrtomb-tests (Files): Add them.
15604         (Makefile.am): Arrange to run these tests.
15605         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15606         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15608 2011-02-20  Bruno Haible  <bruno@clisp.org>
15610         wcrtomb: Enhance test.
15611         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15613 2011-02-20  Bruno Haible  <bruno@clisp.org>
15615         mbrtowc: Tiny optimization.
15616         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15618 2011-02-20  Jim Meyering  <meyering@redhat.com>
15620         test-exclude.c: remove unmatched #endif
15621         * tests/test-exclude.c: Remove stray #endif, left over from
15622         the change of a week ago.
15624 2011-02-19  Jim Meyering  <meyering@redhat.com>
15626         git-version-gen: skip "-dirty" check when appropriate
15627         * build-aux/git-version-gen: Don't run any git commands when the
15628         version string comes from .tarball-version.  Prior to this, we
15629         would run git update-index --refresh even from a just-unpacked
15630         tarball directory, and that could affect a .git/ directory in a
15631         parent of the build directory.  Reported by Mike Frysinger.
15633 2011-02-19  Bruno Haible  <bruno@clisp.org>
15635         unictype/property-byname: Reduce the size of the 'data' segment.
15636         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15638 2011-02-19  Bruno Haible  <bruno@clisp.org>
15640         unictype/scripts: Reduce the size of the 'data' segment.
15641         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15642         '%pic'.
15643         * lib/unictype/scripts_byname.gperf: Regenerated.
15645 2011-02-19  Bruno Haible  <bruno@clisp.org>
15647         stdint: Update documentation.
15648         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15650 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15652         stdint: omit redundant check for wchar.h
15653         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15654         always tests whether wchar.h exists, so remove the now-redundant test.
15656 2011-02-18  Bruno Haible  <bruno@clisp.org>
15658         stdint: Cut dependency to module 'wchar'.
15659         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15660         include the necessary prerequisites.
15661         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15662         * modules/stdint (Depends-on): Remove wchar.
15663         (Makefile.am): Substitute HAVE_WCHAR_H.
15664         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15666 2011-02-18  Eric Blake  <eblake@redhat.com>
15668         longlong: skip, rather than fail, on cross-compilation
15669         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15670         when cross-compiling; regression from 2011-02-16.
15672 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15674         * NEWS: Mention 2011-02-08 change to stdlib.
15676 2011-02-17  Bruno Haible  <bruno@clisp.org>
15678         getloadavg: Add comments about platforms.
15679         * m4/getloadavg.m4: Add comment.
15680         * lib/getloadavg.c: Likewise.
15682 2011-02-17  Bruno Haible  <bruno@clisp.org>
15684         getloadavg: Fix link error on Solaris 2.6.
15685         * modules/getloadavg (Link): New section.
15686         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15687         linking test-getloadavg.
15688         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15689         getloadavg.
15691 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15693         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15694         It was 'int', but this doesn't match the IRIX 6.5 manual.
15695         Suggested by Bruno Haible in
15696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15698 2011-02-17  Bruno Haible  <bruno@clisp.org>
15700         havelib: Fix comments.
15701         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15702         change.
15704 2011-02-17  Bruno Haible  <bruno@clisp.org>
15706         havelib: Update config.rpath.
15707         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15709 2011-02-17  Bruno Haible  <bruno@clisp.org>
15711         getloadavg test: Add some plausibility checks.
15712         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15713         is improbable.
15715 2011-02-16  Eric Blake  <eblake@redhat.com>
15717         maintainer-makefile: make syntax-check a no-op from tarballs
15718         * top/maint.mk (no-vc-detected): New rule.
15719         (local-checks-available): Use it to avoid hanging if someone tries
15720         'make syntax-check' from a tarball.  Also append to any non-syntax
15721         checks already defined in cfg.mk.
15723 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15725         longlong: tune, particularly for common case of c99
15727         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15728         or running anything if c99, or if unsigned long long int does not
15729         work.  In either case, we know the answer without further tests.
15730         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15731         it at most once, and use its results for both long long int and
15732         unsigned long long int.  This is more likely to be efficient in
15733         the common case where the program wants to check for both long
15734         long int and unsigned long long int.
15735         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15736         since the answer is already known.
15738 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15740         getloadavg: set errno
15741         * lib/getloadavg.c: Set errno when returning -1.  If no other
15742         error number looks appropriate, set it to ENOSYS if the getloadavg
15743         looks like it can't possibly ever work, ENOTSUP otherwise.
15744         Suggested by Bruno Haible in
15745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15747         getloadavg: trim unused parts and speed up 'configure'
15748         * NEWS: Document this.
15749         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15750         always compiled if getloadavg is absent.
15751         Move test code to ...
15752         * tests/test-getloadavg.c: New file, containing previous
15753         contents of test from lib/getloadavg.c.  It also contains
15754         suggestions by Bruno Haible in
15755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15756         * modules/getloadavg-tests: New file.
15757         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15758         Do tests in the same order as they're needed for getloadavg.c.
15759         Omit setgid-related tests that generate symbols KMEM_GROUP,
15760         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15761         Do only the tests that are needed to see whether the system has
15762         getloadavg, moving the other tests into ...
15763         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15764         NLIST_NAME_UNION; nobody should be using it.  Do not define
15765         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15766         relevant, as the user of this module shouldn't care how getloadavg
15767         is implemented.
15769         getloadavg: omit unused var
15770         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15772 2011-02-15  Jim Meyering  <meyering@redhat.com>
15774         doc: update users.txt
15775         * users.txt: Update iwhd's URL.
15777 2011-02-13  Bruno Haible  <bruno@clisp.org>
15779         Consistent macro naming for macros that use GCC __attribute__.
15780         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15781         _ATTRIBUTE_NONNULL_.
15782         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15783         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15784         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15785         ATTRIBUTE_DEPRECATED.
15786         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15787         ATTRIBUTE_NORETURN.
15788         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15789         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15790         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15791         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15792         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15793         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15794         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15795         ATTRIBUTE_SENTINEL.
15796         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15797         ATTRIBUTE_RETURN_CHECK.
15798         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15799         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15800         ATTRIBUTE_NORETURN.
15801         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15802         Reported by Paul Eggert.
15804 2011-02-13  Bruno Haible  <bruno@clisp.org>
15806         Don't interfere with a program's definition of __attribute__.
15807         * lib/argp.h (__attribute__): Remove definition.
15808         (_GL_ATTRIBUTE_FORMAT): New macro.
15809         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15810         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15811         (_GL_ATTRIBUTE_FORMAT): New macro.
15812         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15813         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15814         GCC 3 or newer.
15815         * lib/error.h (__attribute__): Remove definition.
15816         (_GL_ATTRIBUTE_FORMAT): New macro.
15817         (error, error_at_line): Use it.
15818         * lib/hash.h (__attribute__): Remove definition.
15819         (ATTRIBUTE_WUR): Update definition. Define always.
15820         * lib/openat.h (__attribute__): Remove definition.
15821         (ATTRIBUTE_NORETURN): Update definition. Define always.
15822         * lib/sigpipe-die.h (__attribute__): Remove definition.
15823         (ATTRIBUTE_NORETURN): Update definition. Define always.
15824         * lib/vasnprintf.h (__attribute__): Remove definition.
15825         (_GL_ATTRIBUTE_FORMAT): New macro.
15826         (asnprintf, vasnprintf): Use it.
15827         * lib/xalloc.h (__attribute__): Remove definition.
15828         (ATTRIBUTE_NORETURN): Update definition. Define always.
15829         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15830         * lib/xmemdup0.h (__attribute__): Remove definition.
15831         (ATTRIBUTE_NORETURN): Update definition. Define always.
15832         * lib/xprintf.h (__attribute__): Remove definition.
15833         (_GL_ATTRIBUTE_FORMAT): New macro.
15834         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15835         * lib/xstrtol.h (__attribute__): Remove definition.
15836         (ATTRIBUTE_NORETURN): Update definition. Define always.
15837         * lib/xvasprintf.h (__attribute__): Remove definition.
15838         (_GL_ATTRIBUTE_FORMAT): New macro.
15839         (xasprintf, xvasprintf): Use it.
15840         * tests/test-argmatch.c (__attribute__): Remove definition.
15841         (ATTRIBUTE_NORETURN): Update definition. Define always.
15842         * tests/test-exclude.c (__attribute__): Remove definition.
15843         (ATTRIBUTE_NORETURN): Update definition. Define always.
15844         Reported by Paul Eggert.
15846 2011-02-13  Bruno Haible  <bruno@clisp.org>
15848         mbrtowc: Add more tests for native Windows platforms.
15849         * tests/test-mbrtowc-w32-1.sh: New file.
15850         * tests/test-mbrtowc-w32-2.sh: New file.
15851         * tests/test-mbrtowc-w32-3.sh: New file.
15852         * tests/test-mbrtowc-w32-4.sh: New file.
15853         * tests/test-mbrtowc-w32-5.sh: New file.
15854         * tests/test-mbrtowc-w32.c: New file.
15855         * modules/mbrtowc-tests (Files): Add them.
15856         (Makefile.am): Arrange to run these tests.
15857         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15858         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15860 2011-02-13  Bruno Haible  <bruno@clisp.org>
15862         mbrtowc: Work around native Windows bug.
15863         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15864         guess when no suitable locale for testing was found.
15865         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15867 2011-02-13  Bruno Haible  <bruno@clisp.org>
15869         mbsinit: Work around mingw bug.
15870         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15871         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15872         Windows.
15873         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15875 2011-02-13  Bruno Haible  <bruno@clisp.org>
15877         mbsinit: Don't crash for a NULL argument.
15878         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15879         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15881 2011-02-13  Bruno Haible  <bruno@clisp.org>
15883         Don't interfere with a program's definition of __attribute__.
15884         * lib/stdio.in.h (__attribute__): Remove definition.
15885         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15886         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15887         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15888         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15889         * lib/string.in.h (__attribute__): Remove definition.
15890         Reported by Paul Eggert.
15892 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15894         stdlib: don't get in the way of non-GCC __attribute__
15895         See thread starting at
15896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15897         Revert previous stdlib change, installing the following instead:
15898         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15899         to get in the way of a non-GCC compiler that supports __attribute__.
15900         (_GL_ATTRIBUTE_RETURN): New macro.
15901         (_Exit): Use it instead of __attribute__.
15903 2011-02-12  Bruno Haible  <bruno@clisp.org>
15905         quotearg test: Avoid test failure on mingw.
15906         * tests/test-quotearg.sh: Convert the locale identifier from native
15907         Windows syntax to Unix syntax.
15909 2011-02-12  Bruno Haible  <bruno@clisp.org>
15911         setlocale: Prefer gnulib's override over libintl's override.
15912         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15913         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15914         GNULIB_defined_setlocale is set.
15916 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15918         stdlib: support non-GCC __attribute__
15920         Fix a serious and tricky problem encountered when attempting to
15921         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15922         5.5, but it crashed due to memory corruption on Solaris 10 with
15923         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15924         bits that are otherwise zero.  This tagging is optional inside
15925         Emacs but is preferred and is used when __attribute__ ((__aligned
15926         (8))) works, as it does with both recent-enough GCC and with Sun C
15927         5.11.  However, Sun C 5.11 is not GCC and does not #define
15928         __GNUC__ and __GNUC_MINOR__.
15930         When I added the getloadavg module to Emacs, it brought in
15931         stdlib.in.h, which contained this fragment:
15933            #ifndef __attribute__
15934            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15935            #  define __attribute__(Spec)   /* empty */
15936            # endif
15937            #endif
15939         When files that include <stdlib.h> were compiled with Sun C 5.11,
15940         the above code disabled __attribute__ ((__aligned (8))), which
15941         caused variables to not be properly aligned, which eventually led
15942         to the pointer corruption mentioned above.  (This was a bit hard
15943         to diagnose, unfortunately.)
15945         Several "#define __attribute__(X) /* empty */" code snippets need
15946         to be eradicated from Gnulib to work with non-GCC compilers that
15947         support __attribute__.  The Autoconf way to do this is to test for
15948         each kind of attribute that we want support for, and selectively
15949         enable that in source code.
15951         Fix this problem just for stdlib.h, by adding a test for the
15952         __noreturn__ attribute, and change stdlib.in.h to use that test
15953         when needed.  This technique can be easily generalized to the
15954         other *.in.h files and attributes, and a similar technique can be
15955         used for *.h and *.c files.  This patch is enough to solve the
15956         problem for Emacs + getloadavg, and I thought I'd publish it for
15957         feedback before undertaking further, similar fixes in other
15958         modules.
15960         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15961         because it's not needed for stdlib.h.  It merely substitutes the
15962         value directly into stdlib.h.  We may well need to #define it, or
15963         similar symbols, for other modules, but it's nice to also have an
15964         option to not #define it for applications like Emacs that do not
15965         need it.
15967         * lib/stdlib.in.h (__attribute__): Do not #define.
15968         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15969         be defined only if the _Exit module is also used.
15970         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15972         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15973         platforms.
15974         * modules/_Exit (Files): Add m4/attribute.m4.
15975         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15976         * m4/attribute.m4: New file.
15978 2011-02-12  Bruno Haible  <bruno@clisp.org>
15980         wcsrtombs: Work around bug on native Windows.
15981         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15982         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15983         instead of len.
15984         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15986 2011-02-12  Bruno Haible  <bruno@clisp.org>
15988         mbsrtowcs: Work around bug on native Windows.
15989         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15990         against mingw bug.
15991         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15993 2011-02-12  Bruno Haible  <bruno@clisp.org>
15995         Avoid setlocale bugs in tests.
15996         * modules/btowc (Dependencies): Add setlocale.
15997         * modules/c-strcase (Dependencies): Likewise.
15998         * modules/mbmemcasecmp (Dependencies): Likewise.
15999         * modules/mbmemcasecoll (Dependencies): Likewise.
16000         * modules/mbrtowc (Dependencies): Likewise.
16001         * modules/mbscasecmp (Dependencies): Likewise.
16002         * modules/mbscasestr (Dependencies): Likewise.
16003         * modules/mbschr (Dependencies): Likewise.
16004         * modules/mbscspn (Dependencies): Likewise.
16005         * modules/mbsinit (Dependencies): Likewise.
16006         * modules/mbsncasecmp (Dependencies): Likewise.
16007         * modules/mbsnrtowcs (Dependencies): Likewise.
16008         * modules/mbspbrk (Dependencies): Likewise.
16009         * modules/mbspcasecmp (Dependencies): Likewise.
16010         * modules/mbsrchr (Dependencies): Likewise.
16011         * modules/mbsrtowcs (Dependencies): Likewise.
16012         * modules/mbsspn (Dependencies): Likewise.
16013         * modules/mbsstr (Dependencies): Likewise.
16014         * modules/nl_langinfo (Dependencies): Likewise.
16015         * modules/quotearg (Dependencies): Likewise.
16016         * modules/unicase/locale-language (Dependencies): Likewise.
16017         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16018         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16019         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16020         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16021         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16022         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16023         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16024         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16025         * modules/vasnprintf-posix (Dependencies): Likewise.
16026         * modules/wcrtomb (Dependencies): Likewise.
16027         * modules/wcsnrtombs (Dependencies): Likewise.
16028         * modules/wcsrtombs (Dependencies): Likewise.
16030 2011-02-12  Bruno Haible  <bruno@clisp.org>
16032         setlocale: Workaround native Windows bug.
16033         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16034         succeeds but sets LC_CTYPE to "C", report a failure.
16035         * tests/test-setlocale2.sh: New file.
16036         * tests/test-setlocale2.c: New file.
16037         * modules/setlocale-tests (Files): Add the new files.
16038         (Makefile.am): Enable test-setlocale2.sh test.
16039         * doc/posix-functions/setlocale.texi: Mention workaround.
16041 2011-02-11  Bruno Haible  <bruno@clisp.org>
16043         Tests for module 'setlocale'.
16044         * modules/setlocale-tests: New file.
16045         * tests/test-setlocale1.sh: New file.
16046         * tests/test-setlocale1.c: New file.
16048         New module 'setlocale'.
16049         * lib/locale.in.h (setlocale): New declaration.
16050         * lib/setlocale.c: New file, based on
16051         gettext/gettext-runtime/intl/setlocale.c.
16052         * m4/setlocale.m4: New file.
16053         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16054         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16055         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16056         REPLACE_SETLOCALE.
16057         * modules/setlocale: New file.
16058         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16059         * doc/posix-functions/setlocale.texi: Mention the new module.
16061 2011-02-11  Bruno Haible  <bruno@clisp.org>
16063         Prepare for locale dependent tests on mingw.
16064         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16065         because it has the wrong locale encoding.
16066         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16067         French_France.1252 instead of "fr".
16068         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16069         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16070         because it has the wrong locale encoding.
16071         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16072         native Windows, try Turkish_Turkey.65001.
16073         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16074         Chinese_China.54936.
16076         Prepare for locale dependent tests on mingw.
16077         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16078         differently.
16079         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16080         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16081         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16082         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16084 2011-02-11  Eric Blake  <eblake@redhat.com>
16086         strptime: avoid compiler warnings
16087         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16088         compiler warnings about dead code.
16089         Reported by Daniel P. Berrange.
16091 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16093         doc: update users.txt
16094         * users.txt: Add rcs.
16096 2011-02-10  John W. Eaton  <jwe@gnu.org>
16098         doc: update users.txt
16099         * users.txt: Add octave.
16101 2011-02-10  Jim Meyering  <meyering@redhat.com>
16103         doc: update users.txt
16104         * users.txt: Add iwhd.
16106 2011-02-09  Bruno Haible  <bruno@clisp.org>
16108         gnulib-tool: Make copyright notice adjustment more robust.
16109         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16110         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16111         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16112         License".
16113         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16115 2011-02-06  Bruno Haible  <bruno@clisp.org>
16117         New module 'towctrans'.
16118         * modules/towctrans: New file.
16119         * lib/wctype.in.h (towctrans): New declaration.
16120         * lib/towctrans.c: New file.
16121         * lib/towctrans-impl.h: New file.
16122         * m4/towctrans.m4: New file.
16123         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16124         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16125         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16126         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16127         * doc/posix-functions/towctrans.texi: Mention the new module.
16129 2011-02-06  Bruno Haible  <bruno@clisp.org>
16131         New module 'wctrans'.
16132         * modules/wctrans: New file.
16133         * lib/wctype.in.h (wctrans): New declaration.
16134         * lib/wctrans.c: New file.
16135         * lib/wctrans-impl.h: New file.
16136         * m4/wctrans.m4: New file.
16137         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16138         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16139         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16140         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16141         * doc/posix-functions/wctrans.texi: Mention the new module.
16143 2011-02-06  Bruno Haible  <bruno@clisp.org>
16145         New module 'iswctype'.
16146         * modules/iswctype: New file.
16147         * lib/wctype.in.h (iswctype): New declaration.
16148         * lib/iswctype.c: New file.
16149         * lib/iswctype-impl.h: New file.
16150         * m4/iswctype.m4: New file.
16151         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16152         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16153         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16154         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16155         * doc/posix-functions/iswctype.texi: Mention the new module and the
16156         HP-UX 11.00 problem.
16158 2011-02-06  Bruno Haible  <bruno@clisp.org>
16160         New module 'wctype'.
16161         * modules/wctype: Change to represent the wctype() substitute.
16162         * lib/wctype.in.h (wctype): New declaration.
16163         * lib/wctype.c: New file.
16164         * lib/wctype-impl.h: New file.
16165         * m4/wctype.m4: New file.
16166         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16167         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16168         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16169         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16170         * doc/posix-functions/wctype.texi: Mention the new module and the
16171         HP-UX 11.00 problem.
16173 2011-02-06  Bruno Haible  <bruno@clisp.org>
16175         wctype-h: Ensure wctype_t and wctrans_t are defined.
16176         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16177         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16178         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16179         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16180         HAVE_WCTRANS_T.
16181         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16183 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16185         flock: fix license typo
16187         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16188         omitted.
16190 2011-02-08  Bruno Haible  <bruno@clisp.org>
16192         Split large sed scripts, for HP-UX sed.
16193         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16194         to avoid HP-UX limit of 99 commands, in the near future.
16195         * modules/stdlib (Makefile.am): Likewise.
16196         * modules/unistd (Makefile.am): Likewise.
16197         * modules/wchar (Makefile.am): Likewise.
16198         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16199         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16200         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16202 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16203             Bruno Haible  <bruno@clisp.org>
16205         stdlib: improve random_r modularization
16206         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16207         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16208         you also need the random_r module to get this material right.
16209         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16210         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16211         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16213 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16215         stdlib: don't depend on stdint
16216         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16217         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16218         be independent of whether stdint.h is needed.
16219         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16220         here, instead of ...
16221         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16222         struct random_data should be using the random_r module, not just
16223         the stdlib module (which wouldn't make sense: what package needs
16224         just struct random_data without also needing random_r?).
16225         * modules/stdlib (Depends-on): Remove stdint.
16227         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16228         See the thread rooted at
16229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16230         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16231         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16232         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16233         __VMS)); previously it was always included (via fcntl--.h).
16234         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16235         hand; this is good enough for load averages.  Also, do not use
16236         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16237         flags directly if available and don't bother otherwise.  (Packages
16238         that need the extra reliability should use the modules that define
16239         these flags on older platforms that lack them.)
16240         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16241         fcntl-safer.
16243 2011-02-08  Jim Meyering  <meyering@redhat.com>
16245         di-set.h, ino-map.h: add multiple-inclusion guard
16246         Technically, the guard is required only for ino-map.h, due to its
16247         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16248         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16249         * lib/ino-map.h: Likewise.
16251 2011-02-06  Bruno Haible  <bruno@clisp.org>
16253         iswblank: Ensure declaration on glibc systems.
16254         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16255         * modules/iswblank (Dependencies): Add 'extensions'.
16256         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16258 2011-02-06  Bruno Haible  <bruno@clisp.org>
16260         New module 'iswblank'.
16261         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16262         * modules/iswblank: New file.
16263         * modules/wctype-h (Files): Remove lib/iswblank.c.
16264         (Makefile.am): Substitute GNULIB_ISWBLANK.
16265         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16266         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16267         (gl_WCTYPE_H_DEFAULTS): New macro.
16268         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16269         * modules/iswblank-tests: New file.
16270         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16271         * tests/test-wctype-h.c (main): Remove iswblank tests.
16272         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16273         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16274         of 'wctype-h'.
16275         * NEWS: Mention the change.
16276         * modules/mbchar (Depends-on): Add iswblank.
16278 2011-02-08  Bruno Haible  <bruno@clisp.org>
16280         di-set tests: Refactor.
16281         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16282         unnecessary includes.
16283         (ASSERT): Remove macro.
16284         (main): Make C90 compliant by avoiding variable declaration after
16285         statement.
16286         * modules/di-set-tests (Files): Add tests/macros.h.
16288 2011-02-08  Bruno Haible  <bruno@clisp.org>
16290         ino-map tests: Refactor.
16291         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16292         unnecessary includes.
16293         (ASSERT): Remove macro.
16294         (main): Make C90 compliant by avoiding variable declaration after
16295         statement.
16296         * modules/ino-map-tests (Files): Add tests/macros.h.
16298 2011-02-08  Jim Meyering  <meyering@redhat.com>
16300         di-set: add "const" to a cast
16301         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16302         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16304 2011-02-06  Bruno Haible  <bruno@clisp.org>
16306         Rename module 'wctype' to 'wctype-h'.
16307         * modules/wctype-h: Renamed from modules/wctype.
16308         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16309         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16310         (Files, Depends-on, Makefile.am): Update.
16311         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16312         (Files, Makefile.am): Update.
16313         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16314         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16315         * doc/posix-headers/wctype.texi: Update.
16316         * doc/posix-functions/iswalnum.texi: Update.
16317         * doc/posix-functions/iswalpha.texi: Update.
16318         * doc/posix-functions/iswblank.texi: Update.
16319         * doc/posix-functions/iswcntrl.texi: Update.
16320         * doc/posix-functions/iswdigit.texi: Update.
16321         * doc/posix-functions/iswgraph.texi: Update.
16322         * doc/posix-functions/iswlower.texi: Update.
16323         * doc/posix-functions/iswprint.texi: Update.
16324         * doc/posix-functions/iswpunct.texi: Update.
16325         * doc/posix-functions/iswspace.texi: Update.
16326         * doc/posix-functions/iswupper.texi: Update.
16327         * doc/posix-functions/iswxdigit.texi: Update.
16328         * doc/posix-functions/towlower.texi: Update.
16329         * doc/posix-functions/towupper.texi: Update.
16330         * NEWS: Mention the change.
16331         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16332         * modules/mbchar (Dependencies): Likewise.
16333         * modules/mbswidth (Dependencies): Likewise.
16334         * modules/quotearg (Dependencies): Likewise.
16335         * modules/regex (Dependencies): Likewise.
16336         * modules/wcscasecmp (Dependencies): Likewise.
16337         * modules/wcsncasecmp (Dependencies): Likewise.
16338         * modules/wcwidth (Dependencies): Likewise.
16340 2011-02-06  Bruno Haible  <bruno@clisp.org>
16342         New module 'wcswidth'.
16343         * modules/wcswidth: New file.
16344         * lib/wchar.in.h (wcswidth): New declaration.
16345         * lib/wcswidth.c: New file.
16346         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16347         * m4/wcswidth.m4: New file.
16348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16350         REPLACE_WCSWIDTH.
16351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16352         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16353         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16354         * doc/posix-functions/wcswidth.texi: Mention the new module.
16356 2011-02-06  Bruno Haible  <bruno@clisp.org>
16358         New module 'wcstok'.
16359         * modules/wcstok: New file.
16360         * lib/wchar.in.h (wcstok): New declaration.
16361         * lib/wcstok.c: New file.
16362         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16363         * m4/wcstok.m4: New file.
16364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16367         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16368         * doc/posix-functions/wcstok.texi: Mention the new module.
16370 2011-02-06  Bruno Haible  <bruno@clisp.org>
16372         New module 'wcsstr'.
16373         * modules/wcsstr: New file.
16374         * lib/wchar.in.h (wcsstr): New declaration.
16375         * lib/wcsstr.c: New file.
16376         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16377         * m4/wcsstr.m4: New file.
16378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16381         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16382         * doc/posix-functions/wcsstr.texi: Mention the new module.
16384 2011-02-06  Bruno Haible  <bruno@clisp.org>
16386         New module 'wcspbrk'.
16387         * modules/wcspbrk: New file.
16388         * lib/wchar.in.h (wcspbrk): New declaration.
16389         * lib/wcspbrk.c: New file.
16390         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16391         * m4/wcspbrk.m4: New file.
16392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16394         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16395         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16396         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16398 2011-02-06  Bruno Haible  <bruno@clisp.org>
16400         New module 'wcsspn'.
16401         * modules/wcsspn: New file.
16402         * lib/wchar.in.h (wcsspn): New declaration.
16403         * lib/wcsspn.c: New file.
16404         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16405         * m4/wcsspn.m4: New file.
16406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16409         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16410         * doc/posix-functions/wcsspn.texi: Mention the new module.
16412 2011-02-06  Bruno Haible  <bruno@clisp.org>
16414         New module 'wcscspn'.
16415         * modules/wcscspn: New file.
16416         * lib/wchar.in.h (wcscspn): New declaration.
16417         * lib/wcscspn.c: New file.
16418         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16419         * m4/wcscspn.m4: New file.
16420         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16421         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16422         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16423         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16424         * doc/posix-functions/wcscspn.texi: Mention the new module.
16426 2011-02-06  Bruno Haible  <bruno@clisp.org>
16428         New module 'wcsrchr'.
16429         * modules/wcsrchr: New file.
16430         * lib/wchar.in.h (wcsrchr): New declaration.
16431         * lib/wcsrchr.c: New file.
16432         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16433         * m4/wcsrchr.m4: New file.
16434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16436         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16437         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16438         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16440 2011-02-06  Bruno Haible  <bruno@clisp.org>
16442         New module 'wcschr'.
16443         * modules/wcschr: New file.
16444         * lib/wchar.in.h (wcschr): New declaration.
16445         * lib/wcschr.c: New file.
16446         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16447         * m4/wcschr.m4: New file.
16448         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16449         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16450         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16451         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16452         * doc/posix-functions/wcschr.texi: Mention the new module.
16454 2011-02-06  Bruno Haible  <bruno@clisp.org>
16456         New module 'wcsdup'.
16457         * modules/wcsdup: New file.
16458         * lib/wchar.in.h (wcsdup): New declaration.
16459         * lib/wcsdup.c: New file.
16460         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16461         * m4/wcsdup.m4: New file.
16462         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16463         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16464         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16465         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16466         * doc/posix-functions/wcsdup.texi: Mention the new module.
16468 2011-02-06  Bruno Haible  <bruno@clisp.org>
16470         New module 'wcsxfrm'.
16471         * modules/wcsxfrm: New file.
16472         * lib/wchar.in.h (wcsxfrm): New declaration.
16473         * lib/wcsxfrm.c: New file.
16474         * lib/wcsxfrm-impl.h: New file.
16475         * m4/wcsxfrm.m4: New file.
16476         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16477         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16479         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16480         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16482 2011-02-06  Bruno Haible  <bruno@clisp.org>
16484         New module 'wcscoll'.
16485         * modules/wcscoll: New file.
16486         * lib/wchar.in.h (wcscoll): New declaration.
16487         * lib/wcscoll.c: New file.
16488         * lib/wcscoll-impl.h: New file.
16489         * m4/wcscoll.m4: New file.
16490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16493         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16494         * doc/posix-functions/wcscoll.texi: Mention the new module.
16496 2011-02-06  Bruno Haible  <bruno@clisp.org>
16498         New module 'wcsncasecmp'.
16499         * modules/wcsncasecmp: New file.
16500         * lib/wchar.in.h (wcsncasecmp): New declaration.
16501         * lib/wcsncasecmp.c: New file.
16502         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16503         * m4/wcsncasecmp.m4: New file.
16504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16507         HAVE_WCSNCASECMP.
16508         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16509         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16511 2011-02-06  Bruno Haible  <bruno@clisp.org>
16513         New module 'wcscasecmp'.
16514         * modules/wcscasecmp: New file.
16515         * lib/wchar.in.h (wcscasecmp): New declaration.
16516         * lib/wcscasecmp.c: New file.
16517         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16518         * m4/wcscasecmp.m4: New file.
16519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16522         HAVE_WCSCASECMP.
16523         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16524         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16526 2011-02-05  Bruno Haible  <bruno@clisp.org>
16528         New module 'wcsncmp'.
16529         * modules/wcsncmp: New file.
16530         * lib/wchar.in.h (wcsncmp): New declaration.
16531         * lib/wcsncmp.c: New file.
16532         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16533         * m4/wcsncmp.m4: New file.
16534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16537         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16538         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16540 2011-02-05  Bruno Haible  <bruno@clisp.org>
16542         New module 'wcscmp'.
16543         * modules/wcscmp: New file.
16544         * lib/wchar.in.h (wcscmp): New declaration.
16545         * lib/wcscmp.c: New file.
16546         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16547         * m4/wcscmp.m4: New file.
16548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16551         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16552         * doc/posix-functions/wcscmp.texi: Mention the new module.
16554 2011-02-05  Bruno Haible  <bruno@clisp.org>
16556         New module 'wcsncat'.
16557         * modules/wcsncat: New file.
16558         * lib/wchar.in.h (wcsncat): New declaration.
16559         * lib/wcsncat.c: New file.
16560         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16561         * m4/wcsncat.m4: New file.
16562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16565         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16566         * doc/posix-functions/wcsncat.texi: Mention the new module.
16568 2011-02-05  Bruno Haible  <bruno@clisp.org>
16570         New module 'wcscat'.
16571         * modules/wcscat: New file.
16572         * lib/wchar.in.h (wcscat): New declaration.
16573         * lib/wcscat.c: New file.
16574         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16575         * m4/wcscat.m4: New file.
16576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16579         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16580         * doc/posix-functions/wcscat.texi: Mention the new module.
16582 2011-02-05  Bruno Haible  <bruno@clisp.org>
16584         New module 'wcpncpy'.
16585         * modules/wcpncpy: New file.
16586         * lib/wchar.in.h (wcpncpy): New declaration.
16587         * lib/wcpncpy.c: New file.
16588         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16589         * m4/wcpncpy.m4: New file.
16590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16592         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16593         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16594         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16596 2011-02-05  Bruno Haible  <bruno@clisp.org>
16598         New module 'wcsncpy'.
16599         * modules/wcsncpy: New file.
16600         * lib/wchar.in.h (wcsncpy): New declaration.
16601         * lib/wcsncpy.c: New file.
16602         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16603         * m4/wcsncpy.m4: New file.
16604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16607         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16608         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16610 2011-02-05  Bruno Haible  <bruno@clisp.org>
16612         New module 'wcpcpy'.
16613         * modules/wcpcpy: New file.
16614         * lib/wchar.in.h (wcpcpy): New declaration.
16615         * lib/wcpcpy.c: New file.
16616         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16617         * m4/wcpcpy.m4: New file.
16618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16620         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16621         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16622         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16624 2011-02-05  Bruno Haible  <bruno@clisp.org>
16626         New module 'wcscpy'.
16627         * modules/wcscpy: New file.
16628         * lib/wchar.in.h (wcscpy): New declaration.
16629         * lib/wcscpy.c: New file.
16630         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16631         * m4/wcscpy.m4: New file.
16632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16635         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16636         * doc/posix-functions/wcscpy.texi: Mention the new module.
16638 2011-02-05  Bruno Haible  <bruno@clisp.org>
16640         New module 'wcsnlen'.
16641         * modules/wcsnlen: New file.
16642         * lib/wchar.in.h (wcsnlen): New declaration.
16643         * lib/wcsnlen.c: New file.
16644         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16645         * m4/wcsnlen.m4: New file.
16646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16649         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16650         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16652 2011-02-05  Bruno Haible  <bruno@clisp.org>
16654         New module 'wcslen'.
16655         * modules/wcslen: New file.
16656         * lib/wchar.in.h (wcslen): New declaration.
16657         * lib/wcslen.c: New file.
16658         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16659         * m4/wcslen.m4: New file.
16660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16663         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16664         * doc/posix-functions/wcslen.texi: Mention the new module.
16666 2011-02-05  Bruno Haible  <bruno@clisp.org>
16668         New module 'wmemset'.
16669         * modules/wmemset: New file.
16670         * lib/wchar.in.h (wmemset): New declaration.
16671         * lib/wmemset.c: New file.
16672         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16673         * m4/wmemset.m4: New file.
16674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16676         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16677         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16678         * doc/posix-functions/wmemset.texi: Mention the new module.
16680 2011-02-05  Bruno Haible  <bruno@clisp.org>
16682         New module 'wmemmove'.
16683         * modules/wmemmove: New file.
16684         * lib/wchar.in.h (wmemmove): New declaration.
16685         * lib/wmemmove.c: New file.
16686         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16687         * m4/wmemmove.m4: New file.
16688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16690         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16691         HAVE_WMEMMOVE.
16692         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16693         * doc/posix-functions/wmemmove.texi: Mention the new module.
16695 2011-02-05  Bruno Haible  <bruno@clisp.org>
16697         New module 'wmemcpy'.
16698         * modules/wmemcpy: New file.
16699         * lib/wchar.in.h (wmemcpy): New declaration.
16700         * lib/wmemcpy.c: New file.
16701         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16702         * m4/wmemcpy.m4: New file.
16703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16705         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16706         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16707         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16709 2011-02-05  Bruno Haible  <bruno@clisp.org>
16711         New module 'wmemcmp'.
16712         * modules/wmemcmp: New file.
16713         * lib/wchar.in.h (wmemcmp): New declaration.
16714         * lib/wmemcmp.c: New file.
16715         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16716         * m4/wmemcmp.m4: New file.
16717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16719         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16720         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16721         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16723 2011-02-07  Jim Meyering  <meyering@redhat.com>
16725         di-set, ino-map: new modules, from coreutils
16726         * lib/di-set.c: New file.
16727         * lib/di-set.h: Likewise.
16728         * lib/ino-map.c: Likewise.
16729         * lib/ino-map.h: Likewise.
16730         * modules/di-set: Likewise.
16731         * modules/di-set-tests: Likewise.
16732         * modules/ino-map: Likewise.
16733         * modules/ino-map-tests: Likewise.
16734         * tests/test-di-set.c: Likewise.
16735         * tests/test-ino-map.c: Likewise.
16737 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16739         getloadavg: merge minor changes from Emacs
16741         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16742         (getloadavg): Use memset, not bzero.
16744         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16745         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16746         clash (bug#86).
16748 2010-11-14  Bruno Haible  <bruno@clisp.org>
16750         Allow multiple gnulib generated replacements to coexist.
16751         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16752         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16753         * lib/langinfo.in.h (nl_item): Likewise.
16754         * lib/math.in.h (_NaN, NAN): Likewise.
16755         * lib/netdb.in.h (struct addrinfo): Likewise.
16756         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16757         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16758         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16759         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16760         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16761         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16762         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16763         pthread_mutexattr_init, pthread_mutexattr_settype,
16764         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16765         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16766         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16767         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16768         * lib/sched.in.h (struct sched_param): Likewise.
16769         * lib/se-selinux.in.h (security_class_t, security_context_t,
16770         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16771         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16772         lsetfilecon, fsetfilecon, security_check_context,
16773         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16774         Likewise.
16775         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16776         Likewise.
16777         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16778         _gl_function_taking_int_returning_void_t, union sigval,
16779         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16780         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16781         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16782         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16783         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16784         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16785         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16786         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16787         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16788         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16789         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16790         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16791         socklen_t, rpl_fd_isset): Likewise.
16792         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16793         * lib/sys_time.in.h (struct timeval): Likewise.
16794         * lib/sys_times.in.h (struct tms): Likewise.
16795         * lib/sys_utsname.in.h (struct utsname):
16796         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16797         * lib/unistd.in.h (getpagesize): Likewise.
16798         * lib/wchar.in.h (mbstate_t): Likewise.
16799         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16800         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16801         towlower, towupper): Likewise.
16802         Reported by Sam Steingold <sds@gnu.org>.
16804 2011-02-05  Eric Blake  <eblake@redhat.com>
16806         unsetenv: work around Haiku issues
16807         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16808         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16810 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16812         libposix: avoid calling error() within libposix
16813         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16814         is defined.
16816 2011-02-05  Eric Blake  <eblake@redhat.com>
16818         strerror_r-posix: port to cygwin
16819         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16820         implementation.
16821         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16822         * tests/test-strerror_r.c (main): Fix test.
16823         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16824         issue.
16826 2011-02-05  Bruno Haible  <bruno@clisp.org>
16828         New module 'wmemchr'.
16829         * modules/wmemchr: New file.
16830         * lib/wchar.in.h (wmemchr): New declaration.
16831         * lib/wmemchr.c: New file.
16832         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16833         * m4/wmemchr.m4: New file.
16834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16836         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16837         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16838         * doc/posix-functions/wmemchr.texi: Mention the new module.
16840 2011-02-04  Eric Blake  <eblake@redhat.com>
16842         fdopendir: detect FreeBSD bug
16843         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16844         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16846 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16848         stdbool: do not define HAVE_STDBOOL_H
16849         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16850         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16851         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16852         imported from the latest Autoconf git.  It was motivated by Emacs,
16853         which uses gnulib but does not need HAVE_STDBOOL_H.
16855 2011-02-04  Bruno Haible  <bruno@clisp.org>
16857         wcsnrtombs: Prepare for new module wwcsnrtombs.
16858         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16859         * lib/wcsnrtombs.c: Include it.
16860         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16862         wcsrtombs: Prepare for new module wwcsrtombs.
16863         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16864         * lib/wcsrtombs.c: Include it.
16865         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16867         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16868         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16869         * lib/mbsnrtowcs.c: Include it.
16870         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16872         mbsrtowcs: Prepare for new module mbsrtowwcs.
16873         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16874         * lib/mbsrtowcs.c: Include it.
16875         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16877 2011-02-04  Bruno Haible  <bruno@clisp.org>
16879         vasnprintf: Reduce use of malloc for small format strings.
16880         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16881         (arguments): Add room for the first 7 arguments.
16882         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16883         (char_directives, u8_directives, u16_directives, u32_directives): Add
16884         room for the first 7 directives.
16885         * lib/printf-parse.c: Include <string.h>.
16886         (PRINTF_PARSE): Change memory handling code so that it uses the first
16887         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16888         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16889         Reported by Pádraig Brady <P@draigbrady.com>.
16891 2011-01-31  Eric Blake  <eblake@redhat.com>
16893         dup2: work around Haiku bug
16894         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16895         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16896         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16897         * tests/test-dup2.c (main): Enhance test.
16899 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16901         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16902         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16903         declared by eglibc 2.11.2.
16904         * lib/stdio.in.h: Likewise.
16906 2011-01-31  Eric Blake  <eblake@redhat.com>
16908         ignore-value: add missing test dependency
16909         * tests/test-ignore-value.c: Revert previous change; stdio.h
16910         provides off_t.
16911         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16913 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16915         mktime: clarify long_int width checking
16916         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16917         the top level, to make it clearer that the assumption about
16918         long_int width is being checked.  See
16919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16921 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16923         ignore-value: Fix self-test.
16924         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16926 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16928         TYPE_MAXIMUM: avoid theoretically undefined behavior
16929         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16930         negative number, which the C Standard says has undefined behavior.
16931         In practice this is not a problem, but might as well do it by the book.
16932         Reported by Rich Felker and Eric Blake; see
16933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16934         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16935         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16937         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16938         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16939         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16941         mktime: #undef mktime before #defining it
16942         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16944         mktime: systematically normalize tm_isdst comparisons
16945         * lib/mktime.c (isdst_differ): New function.
16946         (__mktime_internal): Use it systematically for all isdst comparisons.
16947         This completes the fix for libc BZ #6723, and removes the need for
16948         normalizing tm_isdst.  See
16949         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16950         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16952         mktime: fix some integer overflow issues and sidestep the rest
16954         This was prompted by a bug report by Benjamin Lindner for MinGW
16955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16956         His bug is due to signed integer overflow (0 - INT_MIN), and I
16957         I scanned through mktime.c looking for other integer overflow
16958         problems, fixing all the bugs I found.
16960         Although the C Standard says the resulting code is still not safe
16961         in the presence of integer overflow, in practice it should be good
16962         enough for all real-world two's-complement implementations, except
16963         for debugging environments that deliberately trap on integer
16964         overflow (e.g., gcc -ftrapv).
16966         * lib/mktime.c (WRAPV): New macro.
16967         (SHR): Also check that long_int and time_t shift right in the
16968         usual way, before using the fast-but-unportable method.
16969         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16970         used.  The code already assumed two's complement, so there's
16971         no need to test for alternatives.  All uses removed.
16972         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16973         the C standard.  Problem reported by Rich Felker in
16974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16975         (twos_complement_arithmetic): Also check long_int and time_t.
16976         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16977         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16978         (__mktime_internal): Avoid integer overflow with unary subtraction
16979         in two instances where -1 - X is an adequate replacement for -X,
16980         since the calculations are approximate.
16982 2011-01-29  Eric Blake  <eblake@redhat.com>
16984         mktime: avoid infinite loop
16985         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16986         type; behavior is still undefined but portable to all known targets.
16987         Reported by Rich Felker.
16989 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16991         rename, unlink, same-inode: Relicense.
16992         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16993         * modules/unlink (License): Likewise.
16994         * modules/same-inode (License): Likewise.
16996 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16998         mktime: avoid problems on NetBSD 5 / i386
16999         * lib/mktime.c (long_int): New type.  This works around a problem
17000         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17001         but time_t is 64 bits, and where I expect the existing code is
17002         wrong in some cases.
17003         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17004         (ydhms_diff): Bring back the compile-time check for wide-enough
17005         year and yday.
17007         mktime: fix misspelling in comment
17008         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17009         This merges all recent glibc changes of importance.
17011 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17013         move-if-change: cope with concurrent mv of identical file.
17014         * build-aux/move-if-change (CMPPROG): Accept environment
17015         variable as an override for `cmp'.
17016         (usage): Document CMPPROG.
17017         Adjust comparison to drop stdout.  Cope with failure of mv if
17018         the target file exists and is identical to the source, for
17019         parallel builds.
17020         Report from H.J. Lu against binutils in PR binutils/12283.
17022 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17024         * users.txt: Mention sharutils.
17026 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17028         * users.txt: Mention OATH Toolkit.
17030 2011-01-27  Bruno Haible  <bruno@clisp.org>
17032         Prepare for supporting FreeBSD 10.
17033         * build-aux/config.libpath: Remove handling of freebsd1*.
17035 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17037         Prepare for supporting FreeBSD 10.
17038         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17039         match FreeBSD 10.0.
17041 2011-01-27  Bruno Haible  <bruno@clisp.org>
17043         vma-iter, get-rusage-as: Add OpenBSD support.
17044         * modules/vma-iter (configure.ac): Test for mquery.
17045         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17046         * lib/vma-iter.c: Include <sys/mman.h>.
17047         (vma_iterate): Add an implementation based on mquery().
17048         * lib/resource-ext.h (get_rusage_as): Update comments.
17049         * lib/get-rusage-as.c: Likewise.
17050         * lib/get-rusage-data.c: Likewise.
17052 2011-01-26  Karl Berry  <karl@gnu.org>
17054         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17055         variables to make it easier to override the makeinfo program used.
17057 2011-01-26  Eric Blake  <eblake@redhat.com>
17059         fcntl: work around Haiku F_DUPFD bugs
17060         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17061         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17062         cloexec bit on duplication.
17063         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17065 2011-01-26  Bruno Haible  <bruno@clisp.org>
17067         Enable memory leak tests on AIX.
17068         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17069         * tests/test-fprintf-posix3.c (main): Likewise.
17071 2011-01-26  Bruno Haible  <bruno@clisp.org>
17073         Tests for module 'get-rusage-data'.
17074         * modules/get-rusage-data-tests: New file.
17075         * tests/test-get-rusage-data.c: New file.
17077         New module 'get-rusage-data'.
17078         * lib/resource-ext.h (get_rusage_data): New declaration.
17079         * lib/get-rusage-data.c: New file.
17080         * modules/get-rusage-data: New file.
17082 2011-01-25  Bruno Haible  <bruno@clisp.org>
17084         get-rusage-as: Allow for easier testing.
17085         * lib/resource-ext.h (get_rusage_as): Add comment.
17086         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17087         (main): New function for interactive testing.
17089 2011-01-25  Bruno Haible  <bruno@clisp.org>
17091         vma-iter: Treat Haiku like BeOS.
17092         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17093         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17095 2011-01-25  Eric Blake  <eblake@redhat.com>
17097         c-stack: fix regression on cygwin when libsigsegv is present
17098         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17100 2011-01-24  Bruno Haible  <bruno@clisp.org>
17102         vma-iter: Avoid empty intervals.
17103         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17104         on an empty interval.
17106 2011-01-24  Jim Meyering  <meyering@redhat.com>
17108         u64: remove unnecessary #include
17109         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17111 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17113         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17114         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17116 2011-01-23  Bruno Haible  <bruno@clisp.org>
17118         New module 'vma-iter'.
17119         * lib/vma-iter.h: New file.
17120         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17121         * modules/vma-iter: New file.
17122         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17123         for get_rusage_as_via_iterator.
17124         (vma_iterate_callback): New function.
17125         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17126         * modules/get-rusage-as (Depends-on): Add vma-iter.
17128 2011-01-23  Bruno Haible  <bruno@clisp.org>
17130         uninorm: Tweak includes.
17131         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17132         Reported by Jim Meyering.
17134 2011-01-23  Bruno Haible  <bruno@clisp.org>
17136         get-rusage-as: Improve on NetBSD.
17137         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17138         /proc, like on FreeBSD.
17140 2011-01-23  Jim Meyering  <meyering@redhat.com>
17142         xreadlink.h: remove unnecessary #include
17143         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17145         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17146         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17148 2011-01-23  Bruno Haible  <bruno@clisp.org>
17150         get-rusage-as: Fix bug.
17151         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17152         original limit when aborting the first loop.
17154 2011-01-23  Bruno Haible  <bruno@clisp.org>
17156         wctype: Ensure valid C syntax.
17157         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17158         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17160 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17162         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17164         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17165         as they are needed only for configure's test case.
17166         This removes two unnecessary symbols from config.h.
17168         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17169         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17171         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17172         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17173         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17174         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17175         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17176         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17177         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17178         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17179         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17180         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17181         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17182         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17183         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17184         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17185         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17187 2011-01-21  Eric Blake  <eblake@redhat.com>
17189         maintainer-makefile: work with older git for submodule check
17190         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17191         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17192         Reported by Matthias Bolte.
17194         bootstrap: minor portability fixes
17195         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17196         (usage): Omit leading capital and trailing . on help phrases, per
17197         GNU Coding Standards.
17198         (check_versions, top level): Prefix messages with script name.
17200 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17202         bootstrap: support --no-git option
17203         * build-aux/bootstrap: Add --no-git option, to be used when
17204         --gnulib-srcdir points to the exact desired checkout.
17206 2011-01-21  Eric Blake  <eblake@redhat.com>
17208         strerror_r-posix: work with glibc 2.13
17209         * lib/strerror_r.c (strerror_r): Fix return type.
17211 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17212             Bruno Haible  <bruno@clisp.org>
17214         uN_strstr: New unit tests.
17215         * modules/unistr/u8-strstr-tests: New file.
17216         * modules/unistr/u16-strstr-tests: New file.
17217         * modules/unistr/u32-strstr-tests: New file.
17218         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17219         * tests/unistr/test-u8-strstr.c: New file.
17220         * tests/unistr/test-u16-strstr.c: New file.
17221         * tests/unistr/test-u32-strstr.c: New file.
17223 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17224             Bruno Haible  <bruno@clisp.org>
17226         Make uN_strstr functions O(n) worst-case.
17227         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17228         16-bit and 32-bit unit cases, use the unibyte algorithm from
17229         lib/mbsstr.c.
17230         * lib/unistr/u8-strstr.c: Include <string.h>.
17231         (UNIT_IS_UINT8_T): New macro.
17232         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17233         (U_STRLEN, U_STRNLEN): New macros.
17234         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17235         (U_STRLEN, U_STRNLEN): New macros.
17236         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17237         (configure.ac): Update required libunistring version.
17238         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17239         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17240         malloca.
17241         (configure.ac): Update required libunistring version.
17242         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17243         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17244         malloca.
17245         (configure.ac): Update required libunistring version.
17247 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17248             Bruno Haible  <bruno@clisp.org>
17250         Prepare for faster uN_strstr functions.
17251         * lib/str-kmp.h: Support definable UNITs.
17252         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17253         needle_len argument.
17254         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17255         * lib/mbscasestr.c (mbscasestr): Likewise.
17257 2011-01-21  Pádraig Brady <P@draigBrady.com>
17259         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17260         * tests/test-malloca.c (main): Unset the environment variable
17261         to greatly speed up the test.
17262         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17263         * modules/malloca-tests: Depend on unsetenv.
17265 2011-01-21  Pádraig Brady <P@draigBrady.com>
17267         ignore-value: remove stdint dependency
17268         * lib/ignore-value.h: Remove <stdint.h>
17269         * modules/ignore-value: Remove stdint dependency.
17271 2011-01-21  Jim Meyering  <meyering@redhat.com>
17273         maint.mk: adjust variable name to be consistent with other gl_ vars
17274         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17275         to be lower case.
17277 2011-01-20  Jim Meyering  <meyering@redhat.com>
17279         maint.mk: make "check" depend on public-submodule-commit by default
17280         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17282 2011-01-20  Bruno Haible  <bruno@clisp.org>
17284         mbfile, mbiter: Complete change from 2008-12-21.
17285         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17286         * m4/mbiter.m4 (gl_MBITER): Likewise.
17288 2011-01-20  Jim Meyering  <meyering@redhat.com>
17290         init.sh: insert space between each function name and "()"
17291         * tests/init.sh: Make it a little easier to see that a function's
17292         name is "warn_", and not "warn" when looking at the first part of
17293         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17295 2011-01-20  Jim Meyering  <meyering@redhat.com>
17297         mountlist: clean up code formatting
17298         * lib/mountlist.c (read_file_system_list): Split a long line,
17299         correct bracing style, use NULL in place of "(struct statfs *)0",
17300         don't parenthesize return value, add spaces around "=" and after
17301         ";-in-for-stmt".
17303 2011-01-14  Markus Duft <mduft@gentoo.org>
17305         mountlist: add support for Interix
17306         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17307         Apply statvfs to all entries of /dev/fs.
17308         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17309         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17311 2011-01-20  Jim Meyering  <meyering@redhat.com>
17313         maint.mk: improve the public-submodule-commit rule
17314         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17315         to suppress printing of its commands... unless V=1.
17316         Add git submodule's --quiet option to suppress printing of e.g.,
17317         "Entering gnulib" output.
17318         "cd" into $(srcdir) before running git submodule.
17320 2011-01-20  Bruno Haible  <bruno@clisp.org>
17322         include_next: Fix bug introduced on 2011-01-18.
17323         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17324         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17325         ac_cv_header_... variable if the second argument is not 'check'.
17326         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17327         gl_NEXT_HEADERS_INTERNAL.
17329 2011-01-20  Bruno Haible  <bruno@clisp.org>
17331         Allow the user to avoid the GNULIB_TEST_* macros.
17332         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17333         Suggested by Paul Eggert.
17335 2011-01-14  Jim Meyering  <meyering@redhat.com>
17337         bootstrap: avoid failure when there is no .gitmodules file
17338         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17339         has been assigned to, even when its value is the empty string.
17340         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17341         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17342         Reported by John W. Eaton <jwe@gnu.org>.
17344 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17346         assume <ctype.h>, ..., <time.h> exist
17347         For years gnulib has been assuming the existence of the headers
17348         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17349         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17350         them, since they don't appear to be needed.
17351         * README (Portability guidelines): Document this.
17352         * lib/flock.c: Assume <fcntl.h> exists.
17353         * lib/regex_internal.h: Assume <locale.h> exists.
17354         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17355         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17356         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17357         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17358         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17359         * m4/regex.m4 (gl_REGEX): Likewise.
17360         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17361         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17362         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17363         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17364         * tests/test-argp.c: Likewise.
17365         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17367         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17368         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17369         AA_APPLE_UNIVERSAL_BUILD.  See
17370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17371         * NEWS: Document this.
17373 2011-01-19  Eric Blake  <eblake@redhat.com>
17375         c-stack: assume stack overflow if SA_SIGINFO unsupported
17376         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17377         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17378         sigaction will work.
17379         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17380         behavior match Linux.
17381         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17383         stdbool-tests: accomodate Haiku
17384         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17386         binary-io: fix O_TEXT on Haiku
17387         * modules/binary-io (Depends-on): Add fcntl-h.
17388         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17389         than blindly undefining O_TEXT.
17390         Reported by Scott McCreary.
17392 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17394         include_next: do not check for standard headers like stddef.h
17396         I found this problem when modifying Emacs to use gnulib.
17397         I noticed that it added HAVE_STDDEF_H to config.h, even though
17398         gnulib always assumes <stddef.h> exists as per README and this
17399         symbol is unnecessary.
17400         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17401         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17402         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17403         faster for headers like stddef.h that are known to exist.
17404         (gl_CHECK_NEXT_HEADERS): Use it.
17405         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17406         rather than gl_CHECK_NEXT_HEADERS.
17407         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17408         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17410 2011-01-18  Eric Blake  <eblake@redhat.com>
17412         ansi-c++-opt: skip C++ dependency style if C++ is unused
17413         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17414         tests when we know C++ compilation is not desired.
17415         Reported by Scott McCreary.
17417 2011-01-18  Bruno Haible  <bruno@clisp.org>
17419         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17420         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17421         (main): Perform test also when getrlimit and setrlimit don't exist or
17422         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17423         limiting the address space size using setrlimit, compare the address
17424         space size before and after the the test.
17425         * tests/test-dprintf-posix2.c: Likewise.
17426         * tests/test-fprintf-posix3.sh: Update skip messages.
17427         * tests/test-dprintf-posix2.sh: Likewise.
17428         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17429         * modules/dprintf-posix-tests (Depends-on): Likewise.
17430         Reported by Bruce Korb <bkorb@gnu.org> and
17431         Gary V. Vaughan <gary@gnu.org>.
17433 2011-01-18  Bruno Haible  <bruno@clisp.org>
17435         get-rusage-as: Improvement for Cygwin.
17436         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17437         areas that are merely reserved.
17439 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17441         strftime: remove dependencies on multibyte modules
17443         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17444         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17445         only if __osf__ is defined, and I suspect OSF doesn't need these
17446         other modules.  If my guess is wrong, we'll need to come up with a
17447         variant of strftime that doesn't need the multibyte modules.
17449         I discovered this problem when attempting modify Emacs to use the
17450         strftime module.  With the previous gnulib, this caused Emacs to
17451         need 31 new files, ranging from lib/config.charset to
17452         m4/wint_t.m4.  This was overkill and I expect would be offputting
17453         to the Emacs maintainers.  After this change, only 6 new files are
17454         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17455         stdbool.m4, and tm_gmtoff.m4.
17457         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17458         Suggested by Bruno Haible in
17459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17460         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17461         and do not check for wchar.h.
17462         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17463         (Depends-on): Remove mbrlen, mbsinit, wchar.
17465 2011-01-18  Bruno Haible  <bruno@clisp.org>
17467         Tests for module 'get-rusage-as'.
17468         * modules/get-rusage-as-tests: New file.
17469         * tests/test-get-rusage-as.c: New file.
17471         New module 'get-rusage-as'.
17472         * modules/get-rusage-as: New file.
17473         * lib/resource-ext.h: New file.
17474         * lib/get-rusage-as.c: New file.
17476 2011-01-17  Eric Blake  <eblake@redhat.com>
17478         sigaction: relax license from LGPLv3+ to LGPLv2+
17479         * modules/sigaction (License): Relax to LGPLv2+.
17481 2011-01-14  Bruno Haible  <bruno@clisp.org>
17483         filemode: Make function declarations usable in C++ mode.
17484         * lib/filemode.h: Enclose function declarations in extern "C" block.
17485         Reported by John W. Eaton <jwe@gnu.org>.
17487 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17489         save-cwd: no longer include "xgetcwd.h"
17490         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17491         This avoids a compilation failure in projects that use save-cwd
17492         without also using the xgetcwd module.
17494 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17496         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17497         This is so that a program like Emacs, which needs only dtoastr,
17498         does not have to bother with distributing and compiling ftoastr
17499         and ldtoastr.
17500         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17501         * modules/dtoastr, modules/ldtoastr: New files.
17502         * modules/ftoastr: Now works just for 'float'.
17503         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17504         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17505         dtoastr.c, ldtoastr.c.
17507 2011-01-11  Jim Meyering  <meyering@redhat.com>
17509         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17510         There is no need to work around the lack of the fchdir function,
17511         since gnulib can now provide a replacement when required.
17512         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17513         * modules/save-cwd (Depends-on): Add fchdir.
17515 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17517         openat, save-cwd: avoid xmalloc
17519         This removes a direct (but undocumented) dependency of openat on
17520         xalloc, along with an indirect dependency via save-cwd.  It also
17521         removes a dependency of save-cwd on xgetcwd, and thereby
17522         indirectly on xalloc.  This change causes the openat substitute
17523         to fall back on save_cwd when memory is tight, and for save_cwd to
17524         fail instead of dying when memory is tight, but that's good enough.
17525         Problem and initial idea for fix reported by Bastien Roucaries in
17526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17528         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17529         xalloc.h (for xmalloc).
17530         (openat_proc_name): Use malloc, not xmalloc.
17531         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17532         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17534         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17535         This avoids heap allocation for file names whose lengths are in
17536         the range 512..1023, with the upper bound increasing to at most
17537         4031 depending on the platform's PATH_MAX.  (We do not want
17538         pathmax.h here as it might supply a non-constant PATH_MAX.)
17539         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17540         Perhaps they should be moved to malloca.h?
17541         (OPENAT_BUFFER_SIZE): Use them.
17543 2011-01-10  Bruno Haible  <bruno@clisp.org>
17545         doc: Update users.txt.
17546         * users.txt: Add recutils.
17548 2011-01-09  Karl Berry  <karl@gnu.org>
17550         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17552         * doc/configmake.texi: New file.
17553         * doc/gnulib.texi: Include it.
17554         * modules/configmake: Move documentation from here.
17556 2011-01-09  Bruno Haible  <bruno@clisp.org>
17558         Update to Unicode 6.0.0.
17559         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17560         (get_lbp): Update for Unicode 6.0.0.
17561         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17562         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17563         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17564         U+11001, U+11038..U+11046. Remove U+06DE.
17565         (uc_width): Fix bounds of planes.
17566         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17567         lib/uniwidth/width.c.
17568         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17569         trailing whitespace removed.
17570         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17571         without comments, but with the original copyright notice.
17572         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17573         * lib/unicase/ignorable.h: Likewise.
17574         * lib/unicase/tocasefold.h: Likewise.
17575         * lib/unicase/tolower.h: Likewise.
17576         * lib/unicase/totitle.h: Likewise.
17577         * lib/unicase/toupper.h: Likewise.
17578         * lib/unictype/bidi_of.h: Likewise.
17579         * lib/unictype/blocks.h: Likewise.
17580         * lib/unictype/categ_C.h: Likewise.
17581         * lib/unictype/categ_Cn.h: Likewise.
17582         * lib/unictype/categ_L.h: Likewise.
17583         * lib/unictype/categ_Ll.h: Likewise.
17584         * lib/unictype/categ_Lm.h: Likewise.
17585         * lib/unictype/categ_Lo.h: Likewise.
17586         * lib/unictype/categ_Lu.h: Likewise.
17587         * lib/unictype/categ_M.h: Likewise.
17588         * lib/unictype/categ_Mc.h: Likewise.
17589         * lib/unictype/categ_Me.h: Likewise.
17590         * lib/unictype/categ_Mn.h: Likewise.
17591         * lib/unictype/categ_N.h: Likewise.
17592         * lib/unictype/categ_Nd.h: Likewise.
17593         * lib/unictype/categ_No.h: Likewise.
17594         * lib/unictype/categ_P.h: Likewise.
17595         * lib/unictype/categ_Po.h: Likewise.
17596         * lib/unictype/categ_S.h: Likewise.
17597         * lib/unictype/categ_Sc.h: Likewise.
17598         * lib/unictype/categ_Sk.h: Likewise.
17599         * lib/unictype/categ_Sm.h: Likewise.
17600         * lib/unictype/categ_So.h: Likewise.
17601         * lib/unictype/categ_of.h: Likewise.
17602         * lib/unictype/combining.h: Likewise.
17603         * lib/unictype/ctype_alnum.h: Likewise.
17604         * lib/unictype/ctype_alpha.h: Likewise.
17605         * lib/unictype/ctype_graph.h: Likewise.
17606         * lib/unictype/ctype_lower.h: Likewise.
17607         * lib/unictype/ctype_print.h: Likewise.
17608         * lib/unictype/ctype_punct.h: Likewise.
17609         * lib/unictype/ctype_upper.h: Likewise.
17610         * lib/unictype/decdigit.h: Likewise.
17611         * lib/unictype/digit.h: Likewise.
17612         * lib/unictype/numeric.h: Likewise.
17613         * lib/unictype/pr_alphabetic.h: Likewise.
17614         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17615         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17616         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17617         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17618         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17619         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17620         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17621         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17622         * lib/unictype/pr_case_ignorable.h: Likewise.
17623         * lib/unictype/pr_cased.h: Likewise.
17624         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17625         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17626         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17627         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17628         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17629         * lib/unictype/pr_combining.h: Likewise.
17630         * lib/unictype/pr_composite.h: Likewise.
17631         * lib/unictype/pr_currency_symbol.h: Likewise.
17632         * lib/unictype/pr_decimal_digit.h: Likewise.
17633         * lib/unictype/pr_deprecated.h: Likewise.
17634         * lib/unictype/pr_format_control.h: Likewise.
17635         * lib/unictype/pr_grapheme_base.h: Likewise.
17636         * lib/unictype/pr_grapheme_extend.h: Likewise.
17637         * lib/unictype/pr_grapheme_link.h: Likewise.
17638         * lib/unictype/pr_id_continue.h: Likewise.
17639         * lib/unictype/pr_id_start.h: Likewise.
17640         * lib/unictype/pr_ideographic.h: Likewise.
17641         * lib/unictype/pr_lowercase.h: Likewise.
17642         * lib/unictype/pr_math.h: Likewise.
17643         * lib/unictype/pr_numeric.h: Likewise.
17644         * lib/unictype/pr_other_alphabetic.h: Likewise.
17645         * lib/unictype/pr_other_id_continue.h: Likewise.
17646         * lib/unictype/pr_other_math.h: Likewise.
17647         * lib/unictype/pr_punctuation.h: Likewise.
17648         * lib/unictype/pr_sentence_terminal.h: Likewise.
17649         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17650         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17651         * lib/unictype/pr_unified_ideograph.h: Likewise.
17652         * lib/unictype/pr_uppercase.h: Likewise.
17653         * lib/unictype/pr_xid_continue.h: Likewise.
17654         * lib/unictype/pr_xid_start.h: Likewise.
17655         * lib/unictype/scripts.h: Likewise.
17656         * lib/unictype/scripts_byname.gperf: Likewise.
17657         * lib/unictype/sy_java_ident.h: Likewise.
17658         * lib/unigbrk/gbrkprop.h: Likewise.
17659         * lib/unilbrk/lbrkprop1.h: Likewise.
17660         * lib/unilbrk/lbrkprop2.h: Likewise.
17661         * lib/uninorm/decomposition-table2.h: Likewise.
17662         * lib/uniwbrk/wbrkprop.h: Likewise.
17663         * tests/unicase/test-cased.c: Likewise.
17664         * tests/unicase/test-ignorable.c: Likewise.
17665         * tests/unicase/test-uc_tolower.c: Likewise.
17666         * tests/unicase/test-uc_totitle.c: Likewise.
17667         * tests/unicase/test-uc_toupper.c: Likewise.
17668         * tests/unictype/test-categ_C.c: Likewise.
17669         * tests/unictype/test-categ_Cn.c: Likewise.
17670         * tests/unictype/test-categ_L.c: Likewise.
17671         * tests/unictype/test-categ_Ll.c: Likewise.
17672         * tests/unictype/test-categ_Lm.c: Likewise.
17673         * tests/unictype/test-categ_Lo.c: Likewise.
17674         * tests/unictype/test-categ_Lu.c: Likewise.
17675         * tests/unictype/test-categ_M.c: Likewise.
17676         * tests/unictype/test-categ_Mc.c: Likewise.
17677         * tests/unictype/test-categ_Me.c: Likewise.
17678         * tests/unictype/test-categ_Mn.c: Likewise.
17679         * tests/unictype/test-categ_N.c: Likewise.
17680         * tests/unictype/test-categ_Nd.c: Likewise.
17681         * tests/unictype/test-categ_No.c: Likewise.
17682         * tests/unictype/test-categ_P.c: Likewise.
17683         * tests/unictype/test-categ_Po.c: Likewise.
17684         * tests/unictype/test-categ_S.c: Likewise.
17685         * tests/unictype/test-categ_Sc.c: Likewise.
17686         * tests/unictype/test-categ_Sk.c: Likewise.
17687         * tests/unictype/test-categ_Sm.c: Likewise.
17688         * tests/unictype/test-categ_So.c: Likewise.
17689         * tests/unictype/test-ctype_alnum.c: Likewise.
17690         * tests/unictype/test-ctype_alpha.c: Likewise.
17691         * tests/unictype/test-ctype_graph.c: Likewise.
17692         * tests/unictype/test-ctype_lower.c: Likewise.
17693         * tests/unictype/test-ctype_print.c: Likewise.
17694         * tests/unictype/test-ctype_punct.c: Likewise.
17695         * tests/unictype/test-ctype_upper.c: Likewise.
17696         * tests/unictype/test-decdigit.h: Likewise.
17697         * tests/unictype/test-digit.h: Likewise.
17698         * tests/unictype/test-numeric.h: Likewise.
17699         * tests/unictype/test-pr_alphabetic.c: Likewise.
17700         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17701         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17702         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17703         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17704         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17705         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17706         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17707         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17708         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17709         * tests/unictype/test-pr_cased.c: Likewise.
17710         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17711         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17712         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17713         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17714         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17715         * tests/unictype/test-pr_combining.c: Likewise.
17716         * tests/unictype/test-pr_composite.c: Likewise.
17717         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17718         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17719         * tests/unictype/test-pr_deprecated.c: Likewise.
17720         * tests/unictype/test-pr_format_control.c: Likewise.
17721         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17722         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17723         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17724         * tests/unictype/test-pr_id_continue.c: Likewise.
17725         * tests/unictype/test-pr_id_start.c: Likewise.
17726         * tests/unictype/test-pr_ideographic.c: Likewise.
17727         * tests/unictype/test-pr_lowercase.c: Likewise.
17728         * tests/unictype/test-pr_math.c: Likewise.
17729         * tests/unictype/test-pr_numeric.c: Likewise.
17730         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17731         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17732         * tests/unictype/test-pr_other_math.c: Likewise.
17733         * tests/unictype/test-pr_punctuation.c: Likewise.
17734         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17735         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17736         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17737         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17738         * tests/unictype/test-pr_uppercase.c: Likewise.
17739         * tests/unictype/test-pr_xid_continue.c: Likewise.
17740         * tests/unictype/test-pr_xid_start.c: Likewise.
17741         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17742         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17743         changes.
17744         * lib/unictype/categ_Cc.h: Likewise.
17745         * lib/unictype/categ_Cf.h: Likewise.
17746         * lib/unictype/categ_Co.h: Likewise.
17747         * lib/unictype/categ_Cs.h: Likewise.
17748         * lib/unictype/categ_Lt.h: Likewise.
17749         * lib/unictype/categ_Nl.h: Likewise.
17750         * lib/unictype/categ_Pc.h: Likewise.
17751         * lib/unictype/categ_Pd.h: Likewise.
17752         * lib/unictype/categ_Pe.h: Likewise.
17753         * lib/unictype/categ_Pf.h: Likewise.
17754         * lib/unictype/categ_Pi.h: Likewise.
17755         * lib/unictype/categ_Ps.h: Likewise.
17756         * lib/unictype/categ_Z.h: Likewise.
17757         * lib/unictype/categ_Zl.h: Likewise.
17758         * lib/unictype/categ_Zp.h: Likewise.
17759         * lib/unictype/categ_Zs.h: Likewise.
17760         * lib/unictype/ctype_blank.h: Likewise.
17761         * lib/unictype/ctype_cntrl.h: Likewise.
17762         * lib/unictype/ctype_digit.h: Likewise.
17763         * lib/unictype/ctype_space.h: Likewise.
17764         * lib/unictype/ctype_xdigit.h: Likewise.
17765         * lib/unictype/mirror.h: Likewise.
17766         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17767         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17768         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17769         * lib/unictype/pr_bidi_control.h: Likewise.
17770         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17771         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17772         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17773         * lib/unictype/pr_bidi_pdf.h: Likewise.
17774         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17775         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17776         * lib/unictype/pr_dash.h: Likewise.
17777         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17778         * lib/unictype/pr_diacritic.h: Likewise.
17779         * lib/unictype/pr_extender.h: Likewise.
17780         * lib/unictype/pr_hex_digit.h: Likewise.
17781         * lib/unictype/pr_hyphen.h: Likewise.
17782         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17783         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17784         * lib/unictype/pr_ignorable_control.h: Likewise.
17785         * lib/unictype/pr_iso_control.h: Likewise.
17786         * lib/unictype/pr_join_control.h: Likewise.
17787         * lib/unictype/pr_left_of_pair.h: Likewise.
17788         * lib/unictype/pr_line_separator.h: Likewise.
17789         * lib/unictype/pr_logical_order_exception.h: Likewise.
17790         * lib/unictype/pr_non_break.h: Likewise.
17791         * lib/unictype/pr_not_a_character.h: Likewise.
17792         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17793         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17794         * lib/unictype/pr_other_id_start.h: Likewise.
17795         * lib/unictype/pr_other_lowercase.h: Likewise.
17796         * lib/unictype/pr_other_uppercase.h: Likewise.
17797         * lib/unictype/pr_paired_punctuation.h: Likewise.
17798         * lib/unictype/pr_paragraph_separator.h: Likewise.
17799         * lib/unictype/pr_pattern_syntax.h: Likewise.
17800         * lib/unictype/pr_pattern_white_space.h: Likewise.
17801         * lib/unictype/pr_private_use.h: Likewise.
17802         * lib/unictype/pr_quotation_mark.h: Likewise.
17803         * lib/unictype/pr_radical.h: Likewise.
17804         * lib/unictype/pr_soft_dotted.h: Likewise.
17805         * lib/unictype/pr_space.h: Likewise.
17806         * lib/unictype/pr_titlecase.h: Likewise.
17807         * lib/unictype/pr_variation_selector.h: Likewise.
17808         * lib/unictype/pr_white_space.h: Likewise.
17809         * lib/unictype/pr_zero_width.h: Likewise.
17810         * lib/unictype/sy_c_ident.h: Likewise.
17811         * lib/unictype/sy_c_whitespace.h: Likewise.
17812         * lib/unictype/sy_java_whitespace.h: Likewise.
17813         * lib/uninorm/composition-table.gperf: Likewise.
17814         * lib/uninorm/decomposition-table1.h: Likewise.
17815         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17816         LB8.
17817         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17818         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17819         * modules/unictype/*: Bump version number of expected libunistring
17820         version.
17822 2011-01-09  Bruno Haible  <bruno@clisp.org>
17824         Update to Unicode 5.2.0.
17825         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17826         trailing whitespace removed.
17828 2011-01-09  Bruno Haible  <bruno@clisp.org>
17830         New Unicode character properties, from Unicode 5.2.0.
17831         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17832         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17833         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17834         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17835         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17836         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17837         uc_is_property_cased, uc_is_property_case_ignorable,
17838         uc_is_property_changes_when_lowercased,
17839         uc_is_property_changes_when_uppercased,
17840         uc_is_property_changes_when_titlecased,
17841         uc_is_property_changes_when_casefolded,
17842         uc_is_property_changes_when_casemapped): New declarations.
17843         * lib/unictype/pr_byname.gperf: Add the new properties.
17844         * modules/unictype/property-byname (Depends-on): Depend on the new
17845         properties modules.
17846         * modules/unictype/property-all (Depends-on): Likewise.
17847         * MODULES.html.sh (Unicode string functions): Add
17848         unictype/property-case-ignorable, unictype/property-cased,
17849         unictype/property-changes-when-casefolded,
17850         unictype/property-changes-when-casemapped,
17851         unictype/property-changes-when-lowercased,
17852         unictype/property-changes-when-titlecased,
17853         unictype/property-changes-when-uppercased.
17855         New module 'unictype/property-changes-when-casemapped'.
17856         * modules/unictype/property-changes-when-casemapped: New file.
17857         * lib/unictype/pr_changes_when_casemapped.c: New file.
17858         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17859         generated by gen-uni-tables.
17860         * modules/unictype/property-changes-when-casemapped-tests: New file.
17861         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17862         automatically generated by gen-uni-tables.
17864         New module 'unictype/property-changes-when-casefolded'.
17865         * modules/unictype/property-changes-when-casefolded: New file.
17866         * lib/unictype/pr_changes_when_casefolded.c: New file.
17867         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17868         generated by gen-uni-tables.
17869         * modules/unictype/property-changes-when-casefolded-tests: New file.
17870         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17871         automatically generated by gen-uni-tables.
17873         New module 'unictype/property-changes-when-titlecased'.
17874         * modules/unictype/property-changes-when-titlecased: New file.
17875         * lib/unictype/pr_changes_when_titlecased.c: New file.
17876         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17877         generated by gen-uni-tables.
17878         * modules/unictype/property-changes-when-titlecased-tests: New file.
17879         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17880         automatically generated by gen-uni-tables.
17882         New module 'unictype/property-changes-when-uppercased'.
17883         * modules/unictype/property-changes-when-uppercased: New file.
17884         * lib/unictype/pr_changes_when_uppercased.c: New file.
17885         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17886         generated by gen-uni-tables.
17887         * modules/unictype/property-changes-when-uppercased-tests: New file.
17888         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17889         automatically generated by gen-uni-tables.
17891         New module 'unictype/property-changes-when-lowercased'.
17892         * modules/unictype/property-changes-when-lowercased: New file.
17893         * lib/unictype/pr_changes_when_lowercased.c: New file.
17894         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17895         generated by gen-uni-tables.
17896         * modules/unictype/property-changes-when-lowercased-tests: New file.
17897         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17898         automatically generated by gen-uni-tables.
17900         New module 'unictype/property-case-ignorable'.
17901         * modules/unictype/property-case-ignorable: New file.
17902         * lib/unictype/pr_case_ignorable.c: New file.
17903         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17904         by gen-uni-tables.
17905         * modules/unictype/property-case-ignorable-tests: New file.
17906         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17907         generated by gen-uni-tables.
17909         New module 'unictype/property-cased'.
17910         * modules/unictype/property-cased: New file.
17911         * lib/unictype/pr_cased.c: New file.
17912         * lib/unictype/pr_cased.h: New file, automatically generated by
17913         gen-uni-tables.
17914         * modules/unictype/property-cased-tests: New file.
17915         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17916         gen-uni-tables.
17918 2011-01-09  Bruno Haible  <bruno@clisp.org>
17920         Update to Unicode 5.2.0.
17921         * lib/gen-uni-tables.c (output_predicate, output_category,
17922         output_combclass, output_bidi_category, output_decimal_digit_test,
17923         output_decimal_digit, output_digit_test, output_digit,
17924         output_numeric_test, output_numeric, output_mirror, output_scripts,
17925         output_scripts_byname, output_blocks, output_ident_category): Fix
17926         comment header.
17927         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17928         get_wbp.
17929         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17930         items.
17931         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17932         Changes_When_Lowercased, Changes_When_Uppercased,
17933         Changes_When_Titlecased, Changes_When_Casefolded,
17934         Changes_When_Casemapped.
17935         (is_property_alphabetic, is_property_default_ignorable_code_point):
17936         Update for Unicode 5.2.0.
17937         (is_property_cased, is_property_case_ignorable,
17938         is_property_changes_when_lowercased,
17939         is_property_changes_when_uppercased,
17940         is_property_changes_when_titlecased,
17941         is_property_changes_when_casefolded,
17942         is_property_changes_when_casemapped): New functions.
17943         (output_properties): Output also the properties cased, case_ignorable,
17944         changes_when_lowercased, changes_when_uppercased,
17945         changes_when_titlecased, changes_when_casefolded,
17946         changes_when_casemapped.
17947         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17948         Unicode TR#11 revision 17 -> 19.
17949         (LBP_CP): New enumeration value.
17950         (LBP_*): Adjust values accordingly.
17951         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17952         TR#14 revision 22 -> 24.
17953         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17954         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17955         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17956         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17957         is_WBP_MIDLETTER.
17958         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17959         the code1 and code2 of each composition rule.
17960         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17961         * lib/unicase/ignorable.h: Likewise.
17962         * lib/unicase/tocasefold.h: Likewise.
17963         * lib/unicase/tolower.h: Likewise.
17964         * lib/unicase/totitle.h: Likewise.
17965         * lib/unicase/toupper.h: Likewise.
17966         * lib/unictype/bidi_of.h: Likewise.
17967         * lib/unictype/blocks.h: Likewise.
17968         * lib/unictype/categ_C.h: Likewise.
17969         * lib/unictype/categ_Cf.h: Likewise.
17970         * lib/unictype/categ_Cn.h: Likewise.
17971         * lib/unictype/categ_L.h: Likewise.
17972         * lib/unictype/categ_Ll.h: Likewise.
17973         * lib/unictype/categ_Lm.h: Likewise.
17974         * lib/unictype/categ_Lo.h: Likewise.
17975         * lib/unictype/categ_Lu.h: Likewise.
17976         * lib/unictype/categ_M.h: Likewise.
17977         * lib/unictype/categ_Mc.h: Likewise.
17978         * lib/unictype/categ_Mn.h: Likewise.
17979         * lib/unictype/categ_N.h: Likewise.
17980         * lib/unictype/categ_Nd.h: Likewise.
17981         * lib/unictype/categ_Nl.h: Likewise.
17982         * lib/unictype/categ_No.h: Likewise.
17983         * lib/unictype/categ_P.h: Likewise.
17984         * lib/unictype/categ_Pd.h: Likewise.
17985         * lib/unictype/categ_Po.h: Likewise.
17986         * lib/unictype/categ_S.h: Likewise.
17987         * lib/unictype/categ_Sc.h: Likewise.
17988         * lib/unictype/categ_So.h: Likewise.
17989         * lib/unictype/categ_of.h: Likewise.
17990         * lib/unictype/combining.h: Likewise.
17991         * lib/unictype/ctype_alnum.h: Likewise.
17992         * lib/unictype/ctype_alpha.h: Likewise.
17993         * lib/unictype/ctype_graph.h: Likewise.
17994         * lib/unictype/ctype_lower.h: Likewise.
17995         * lib/unictype/ctype_print.h: Likewise.
17996         * lib/unictype/ctype_punct.h: Likewise.
17997         * lib/unictype/ctype_upper.h: Likewise.
17998         * lib/unictype/decdigit.h: Likewise.
17999         * lib/unictype/digit.h: Likewise.
18000         * lib/unictype/numeric.h: Likewise.
18001         * lib/unictype/pr_alphabetic.h: Likewise.
18002         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18003         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18004         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18005         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18006         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18007         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18008         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18009         * lib/unictype/pr_combining.h: Likewise.
18010         * lib/unictype/pr_composite.h: Likewise.
18011         * lib/unictype/pr_currency_symbol.h: Likewise.
18012         * lib/unictype/pr_dash.h: Likewise.
18013         * lib/unictype/pr_decimal_digit.h: Likewise.
18014         * lib/unictype/pr_deprecated.h: Likewise.
18015         * lib/unictype/pr_diacritic.h: Likewise.
18016         * lib/unictype/pr_extender.h: Likewise.
18017         * lib/unictype/pr_grapheme_base.h: Likewise.
18018         * lib/unictype/pr_grapheme_extend.h: Likewise.
18019         * lib/unictype/pr_grapheme_link.h: Likewise.
18020         * lib/unictype/pr_id_continue.h: Likewise.
18021         * lib/unictype/pr_id_start.h: Likewise.
18022         * lib/unictype/pr_ideographic.h: Likewise.
18023         * lib/unictype/pr_ignorable_control.h: Likewise.
18024         * lib/unictype/pr_logical_order_exception.h: Likewise.
18025         * lib/unictype/pr_lowercase.h: Likewise.
18026         * lib/unictype/pr_numeric.h: Likewise.
18027         * lib/unictype/pr_other_alphabetic.h: Likewise.
18028         * lib/unictype/pr_punctuation.h: Likewise.
18029         * lib/unictype/pr_sentence_terminal.h: Likewise.
18030         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18031         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18032         * lib/unictype/pr_unified_ideograph.h: Likewise.
18033         * lib/unictype/pr_uppercase.h: Likewise.
18034         * lib/unictype/pr_xid_continue.h: Likewise.
18035         * lib/unictype/pr_xid_start.h: Likewise.
18036         * lib/unictype/pr_zero_width.h: Likewise.
18037         * lib/unictype/scripts.h: Likewise.
18038         * lib/unictype/scripts_byname.gperf: Likewise.
18039         * lib/unictype/sy_java_ident.h: Likewise.
18040         * lib/unigbrk/gbrkprop.h: Likewise.
18041         * lib/unilbrk/lbrkprop1.h: Likewise.
18042         * lib/unilbrk/lbrkprop2.h: Likewise.
18043         * lib/unilbrk/lbrktables.h: Likewise.
18044         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18045         LBP_CP. Implement rule LB30.
18046         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18047         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18048         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18049         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18050         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18051         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18052         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18053         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18054         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18055         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18056         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18057         bits instead of 16 bits in the code1 and code2 of each composition
18058         rule.
18059         (uc_composition): Update for Unicode 5.2.0.
18060         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18061         * lib/uninorm/decomposition-table2.h: Likewise.
18062         * lib/uniwbrk/wbrkprop.h: Likewise.
18063         * tests/unicase/test-cased.c: Likewise.
18064         * tests/unicase/test-ignorable.c: Likewise.
18065         * tests/unicase/test-uc_tolower.c: Likewise.
18066         * tests/unicase/test-uc_totitle.c: Likewise.
18067         * tests/unicase/test-uc_toupper.c: Likewise.
18068         * tests/unictype/test-categ_C.c: Likewise.
18069         * tests/unictype/test-categ_Cf.c: Likewise.
18070         * tests/unictype/test-categ_Cn.c: Likewise.
18071         * tests/unictype/test-categ_L.c: Likewise.
18072         * tests/unictype/test-categ_Ll.c: Likewise.
18073         * tests/unictype/test-categ_Lm.c: Likewise.
18074         * tests/unictype/test-categ_Lo.c: Likewise.
18075         * tests/unictype/test-categ_Lu.c: Likewise.
18076         * tests/unictype/test-categ_M.c: Likewise.
18077         * tests/unictype/test-categ_Mc.c: Likewise.
18078         * tests/unictype/test-categ_Mn.c: Likewise.
18079         * tests/unictype/test-categ_N.c: Likewise.
18080         * tests/unictype/test-categ_Nd.c: Likewise.
18081         * tests/unictype/test-categ_Nl.c: Likewise.
18082         * tests/unictype/test-categ_No.c: Likewise.
18083         * tests/unictype/test-categ_P.c: Likewise.
18084         * tests/unictype/test-categ_Pd.c: Likewise.
18085         * tests/unictype/test-categ_Po.c: Likewise.
18086         * tests/unictype/test-categ_S.c: Likewise.
18087         * tests/unictype/test-categ_Sc.c: Likewise.
18088         * tests/unictype/test-categ_So.c: Likewise.
18089         * tests/unictype/test-ctype_alnum.c: Likewise.
18090         * tests/unictype/test-ctype_alpha.c: Likewise.
18091         * tests/unictype/test-ctype_graph.c: Likewise.
18092         * tests/unictype/test-ctype_lower.c: Likewise.
18093         * tests/unictype/test-ctype_print.c: Likewise.
18094         * tests/unictype/test-ctype_punct.c: Likewise.
18095         * tests/unictype/test-ctype_upper.c: Likewise.
18096         * tests/unictype/test-decdigit.h: Likewise.
18097         * tests/unictype/test-digit.h: Likewise.
18098         * tests/unictype/test-numeric.h: Likewise.
18099         * tests/unictype/test-pr_alphabetic.c: Likewise.
18100         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18101         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18102         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18103         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18104         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18105         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18106         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18107         * tests/unictype/test-pr_combining.c: Likewise.
18108         * tests/unictype/test-pr_composite.c: Likewise.
18109         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18110         * tests/unictype/test-pr_dash.c: Likewise.
18111         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18112         * tests/unictype/test-pr_deprecated.c: Likewise.
18113         * tests/unictype/test-pr_diacritic.c: Likewise.
18114         * tests/unictype/test-pr_extender.c: Likewise.
18115         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18116         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18117         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18118         * tests/unictype/test-pr_id_continue.c: Likewise.
18119         * tests/unictype/test-pr_id_start.c: Likewise.
18120         * tests/unictype/test-pr_ideographic.c: Likewise.
18121         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18122         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18123         * tests/unictype/test-pr_lowercase.c: Likewise.
18124         * tests/unictype/test-pr_numeric.c: Likewise.
18125         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18126         * tests/unictype/test-pr_punctuation.c: Likewise.
18127         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18128         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18129         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18130         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18131         * tests/unictype/test-pr_uppercase.c: Likewise.
18132         * tests/unictype/test-pr_xid_continue.c: Likewise.
18133         * tests/unictype/test-pr_xid_start.c: Likewise.
18134         * tests/unictype/test-pr_zero_width.c: Likewise.
18135         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18136         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18137         changed behaviour: line breaking is now disallowed between a letter
18138         or '=' and '('.
18139         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18140         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18141         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18142         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18143         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18144         lib/uniwidth/width.c.
18145         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18146         without comments, but with the original copyright notice.
18147         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18148         changes.
18149         * lib/unictype/categ_Cc.h: Likewise.
18150         * lib/unictype/categ_Co.h: Likewise.
18151         * lib/unictype/categ_Cs.h: Likewise.
18152         * lib/unictype/categ_Lt.h: Likewise.
18153         * lib/unictype/categ_Me.h: Likewise.
18154         * lib/unictype/categ_Pc.h: Likewise.
18155         * lib/unictype/categ_Pe.h: Likewise.
18156         * lib/unictype/categ_Pf.h: Likewise.
18157         * lib/unictype/categ_Pi.h: Likewise.
18158         * lib/unictype/categ_Ps.h: Likewise.
18159         * lib/unictype/categ_Sk.h: Likewise.
18160         * lib/unictype/categ_Sm.h: Likewise.
18161         * lib/unictype/categ_Z.h: Likewise.
18162         * lib/unictype/categ_Zl.h: Likewise.
18163         * lib/unictype/categ_Zp.h: Likewise.
18164         * lib/unictype/categ_Zs.h: Likewise.
18165         * lib/unictype/ctype_blank.h: Likewise.
18166         * lib/unictype/ctype_cntrl.h: Likewise.
18167         * lib/unictype/ctype_digit.h: Likewise.
18168         * lib/unictype/ctype_space.h: Likewise.
18169         * lib/unictype/ctype_xdigit.h: Likewise.
18170         * lib/unictype/mirror.h: Likewise.
18171         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18172         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18173         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18174         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18175         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18176         * lib/unictype/pr_bidi_control.h: Likewise.
18177         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18178         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18179         * lib/unictype/pr_bidi_pdf.h: Likewise.
18180         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18181         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18182         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18183         * lib/unictype/pr_format_control.h: Likewise.
18184         * lib/unictype/pr_hex_digit.h: Likewise.
18185         * lib/unictype/pr_hyphen.h: Likewise.
18186         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18187         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18188         * lib/unictype/pr_iso_control.h: Likewise.
18189         * lib/unictype/pr_join_control.h: Likewise.
18190         * lib/unictype/pr_left_of_pair.h: Likewise.
18191         * lib/unictype/pr_line_separator.h: Likewise.
18192         * lib/unictype/pr_math.h: Likewise.
18193         * lib/unictype/pr_non_break.h: Likewise.
18194         * lib/unictype/pr_not_a_character.h: Likewise.
18195         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18196         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18197         * lib/unictype/pr_other_id_continue.h: Likewise.
18198         * lib/unictype/pr_other_id_start.h: Likewise.
18199         * lib/unictype/pr_other_lowercase.h: Likewise.
18200         * lib/unictype/pr_other_math.h: Likewise.
18201         * lib/unictype/pr_other_uppercase.h: Likewise.
18202         * lib/unictype/pr_paired_punctuation.h: Likewise.
18203         * lib/unictype/pr_paragraph_separator.h: Likewise.
18204         * lib/unictype/pr_pattern_syntax.h: Likewise.
18205         * lib/unictype/pr_pattern_white_space.h: Likewise.
18206         * lib/unictype/pr_private_use.h: Likewise.
18207         * lib/unictype/pr_quotation_mark.h: Likewise.
18208         * lib/unictype/pr_radical.h: Likewise.
18209         * lib/unictype/pr_soft_dotted.h: Likewise.
18210         * lib/unictype/pr_space.h: Likewise.
18211         * lib/unictype/pr_titlecase.h: Likewise.
18212         * lib/unictype/pr_variation_selector.h: Likewise.
18213         * lib/unictype/pr_white_space.h: Likewise.
18214         * lib/unictype/sy_c_ident.h: Likewise.
18215         * lib/unictype/sy_c_whitespace.h: Likewise.
18216         * lib/unictype/sy_java_whitespace.h: Likewise.
18217         * modules/uni*/*: Bump version number of expected libunistring version.
18218         Reported by Simon Josefsson.
18220 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18222         useless-if-before-free: fix typo in --help and make the internal,
18223         automatic version date update process work once again.
18224         --help output contained a NUL character instead of the
18225         backslash-zero that was intended.  Also, the "must lie within
18226         the first 8 lines" line is on line 9, and hence not getting
18227         automatically updated.
18228         * build-aux/useless-if-before-free: Fix the former by adding a
18229         backslash, and the latter by condensing the three lines of what-it-does
18230         to a single line, leaving one line of slack for the future.
18232 2011-01-09  Bruno Haible  <bruno@clisp.org>
18234         uniwidth/width: Fix width of U+1D173..U+1D17A.
18235         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18236         symbolic_width, output_width_property_test): New functions.
18237         (main): Invoke output_nonspacing_property, output_width_property_test.
18238         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18239         U+1D173..U+1D17A.
18240         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18241         1.
18242         * modules/uniwidth/*: Bump version number of expected libunistring
18243         version.
18244         * modules/unilbrk/*: Likewise.
18246 2011-01-08  Bruno Haible  <bruno@clisp.org>
18248         uninorm tests: Preserve copyright of Unicode data file.
18249         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18250         Mention modifications.
18252 2011-01-08  Bruno Haible  <bruno@clisp.org>
18254         gen-uni-tables: Prepare for Unicode 5.2.0.
18255         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18256         (debug_output_lbp, output_lbp): Update.
18258 2011-01-08  Bruno Haible  <bruno@clisp.org>
18260         unilbrk: Clarify gen-uni-tables.c code.
18261         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18262         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18263         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18265 2011-01-07  Bruno Haible  <bruno@clisp.org>
18267         strtod: Restore errno when successfully parsing Infinity or NaN.
18268         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18269         restore the original errno.
18271 2011-01-07  Bruno Haible  <bruno@clisp.org>
18273         remove test: Avoid failure on HP-UX 11.
18274         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18276 2011-01-07  Bruno Haible  <bruno@clisp.org>
18278         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18279         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18280         error code.
18282 2011-01-07  Pádraig Brady <P@draigBrady.com>
18284         ignore-value: fixup comments, and add Eric Blake
18285         as an author since he rewrote the macros.
18286         * lib/ignore-value.h (ignore_value):  State that
18287         we now support aggregates.  Also specify exactly
18288         when the GCC warn_unused_result feature was added.
18290 2011-01-06  Eric Blake  <eblake@redhat.com>
18292         ignore-value: support aggregate types
18293         * lib/ignore-value.h (ignore_value): Provide separate gcc
18294         definition.
18295         * modules/ignore-value-tests: New test module.
18296         * tests/test-ignore-value.c: New test.
18298         maint.mk: improve sc_prohibit_strcmp regex
18299         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18300         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18301         definition of STRNEQ.
18303         signal: work around Haiku issue with SIGBUS
18304         * lib/siglist.h: Add comment.
18305         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18306         strsignal's favoring of SIGSEGV.
18307         * tests/test-signal.c (main): Avoid test failure.
18308         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18309         Reported by Scott McCreary.
18311         maint.mk: add pre-release check to ensure submodule commits are public
18312         * top/maint.mk (public-submodule-commit): New rule.
18313         (submodule-checks): New variable.
18314         (alpha beta stable): Depend on the variable.
18316 2011-01-05  Pádraig Brady <P@draigBrady.com>
18317         and Jim Meyering  <meyering@redhat.com>
18319         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18320         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18321         (ATTRIBUTE_DEPRECATED): Define.
18322         (_ignore_case): New function.
18323         (ignore_value): New macro, to replace the old function.
18324         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18325         * modules/ignore-value (Depends-on): Add stdint.
18327 2011-01-04  Eric Blake  <eblake@redhat.com>
18329         doc: regenerate INSTALL
18330         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18331         @firstparagraphindent support, now that autoconf dropped it.
18332         (INSTALL_PRELUDE): Reinstate old macro.
18333         * doc/install.texi: Resync from autoconf.
18334         * doc/INSTALL: Reflect recent autoconf update.
18335         * doc/INSTALL.ISO: Likewise.
18336         * doc/INSTALL.UTF-8: Likewise.
18337         Reported by Karl Berry.
18339 2011-01-04  Bruce Korb  <address@hidden>
18341         git-version-gen: avoid a sub-shell
18342         * build-aux/git-version-gen: Redirect stderr in `...` via
18343         "exec 2>...", rather than via an added sub-shell.
18345 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18347         git-version-gen: use (...) rather than sh -c '...'
18348         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18349         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18351 2011-01-03  Jim Meyering  <meyering@redhat.com>
18353         git-version-gen: convert leading TABs to spaces
18354         * build-aux/git-version-gen: Expand leading TABs.
18356         git-version-gen: handle failed "git rev-list"
18357         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18358         from git and proceeding as if it had succeeded but printed no SHA1
18359         checksums, suppress the diagnostic and handle the failure.
18360         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18362         git-version-gen: include command name in one more diagnostic
18363         * build-aux/git-version-gen: When the required .tarball-version file
18364         was missing or unreadable, you might see the diagnostic from "cat",
18365         but no trace of the name of the invoking script.  Now, you still see
18366         the diagnostic from cat, but also get one from "git-version-gen: ".
18367         Inspired by a patch from Bruce Korb.
18369         update-copyright: adjust test to match changed code
18370         * tests/test-update-copyright.sh: Change test's expected output
18371         to match new actual output.
18373 2011-01-02  Bruno Haible  <bruno@clisp.org>
18375         getlogin_r: Avoid test failure on HP-UX 11.
18376         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18377         ERANGE when the second argument is zero.
18378         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18379         portability problem.
18381 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18383         * build-aux/update-copyright: doc Simon's changes
18385 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18387         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18388         environment variable.
18390 2011-01-02  Bruno Haible  <bruno@clisp.org>
18392         unigbrk: Avoid gcc warnings.
18393         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18394         unused variable.
18395         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18396         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18397         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18398         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18399         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18400         Change type of first argument to 'const char *'.
18401         (main): Remove unused variable.
18402         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18403         type of first argument to 'const char *'.
18404         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18405         Likewise.
18406         (main): Change type of variable 's'.
18407         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18408         to 'int'.
18410 2011-01-02  Bruno Haible  <bruno@clisp.org>
18412         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18413         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18414         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18415         bug.
18416         * lib/pwrite.c: Undo 2010-12-31 patch.
18417         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18419 2011-01-02  Bruno Haible  <bruno@clisp.org>
18421         pread: Fix test whether it works.
18422         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18424 2011-01-02  Bruno Haible  <bruno@clisp.org>
18426         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18427         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18428         ends in "6". Don't require a specific month name. Try also the locale
18429         names found on HP-UX 11 and Solaris 7.
18431 2011-01-02  Bruno Haible  <bruno@clisp.org>
18433         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18434         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18435         C linkage.
18436         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18438 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18440         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18441         for consistency, since the "cluster" term is not used elsewhere.
18442         * lib/unigbrk.in.h: Update name.
18443         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18444         * lib/unigbrk/u16-grapheme-next.c: Update name.
18445         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18446         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18447         * lib/unigbrk/u32-grapheme-next.c: Update name.
18448         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18449         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18450         * lib/unigbrk/u8-grapheme-next.c: Update name.
18451         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18452         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18453         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18454         Suggested by Bruno Haible.
18456 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18458         Remove module 'u8-grapheme-len' as too redundant with
18459         'u8-grapheme-next'.
18460         * modules/unigbrk/u8-grapheme-len: Delete file.
18461         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18462         * lib/unigbrk.in.h: Remove prototype for deleted function.
18463         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18464         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18466         Remove module 'u16-grapheme-len' as too redundant with
18467         'u16-grapheme-next'.
18468         * modules/unigbrk/u16-grapheme-len: Delete file.
18469         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18470         * lib/unigbrk.in.h: Remove prototype for deleted function.
18471         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18472         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18474         Remove module 'u32-grapheme-len' as too redundant with
18475         'u32-grapheme-next'.
18476         * modules/unigbrk/u32-grapheme-len: Delete file.
18477         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18478         * lib/unigbrk.in.h: Remove prototype for deleted function.
18479         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18480         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18482         Suggested by Bruno Haible.
18484 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18486         * unigbrk.in.h: Fix typo: "ben" => "been".
18487         Reported by Bruno Haible.
18489 2011-01-01  Jim Meyering  <meyering@redhat.com>
18491         maint: update almost all copyright ranges to include 2011
18492         Run the new "make update-copyright" rule.
18494 2011-01-01  Jim Meyering  <meyering@redhat.com>
18496         maint: update-copyright: exempt doc/INSTALL*
18497         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18498         since they are generated.  Suggested by Bruno Haible.
18500 2011-01-01  Jim Meyering  <meyering@redhat.com>
18502         maint: refine the update-copyright rule
18503         * Makefile (update-copyright): Also exclude any file that includes
18504         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18505         code that merely generates the comment.
18507 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18509         New module 'u8-grapheme-len'.
18510         * modules/unigbrk/u8-grapheme-len: New file.
18511         * modules/unigbrk/u8-grapheme-len-tests: New file.
18512         * lib/unigbrk.in.h: Add prototype for new function.
18513         * lib/unigbrk/u8-grapheme-len.c: New file.
18514         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18516         New module 'u16-grapheme-len'.
18517         * modules/unigbrk/u16-grapheme-len: New file.
18518         * modules/unigbrk/u16-grapheme-len-tests: New file.
18519         * lib/unigbrk.in.h: Add prototype for new function.
18520         * lib/unigbrk/u16-grapheme-len.c: New file.
18521         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18523         New module 'u32-grapheme-len'.
18524         * modules/unigbrk/u32-grapheme-len: New file.
18525         * modules/unigbrk/u32-grapheme-len-tests: New file.
18526         * lib/unigbrk.in.h: Add prototype for new function.
18527         * lib/unigbrk/u32-grapheme-len.c: New file.
18528         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18530         New module 'u8-grapheme-next'.
18531         * modules/unigbrk/u8-grapheme-next: New file.
18532         * modules/unigbrk/u8-grapheme-next-tests: New file.
18533         * lib/unigbrk.in.h: Add prototype for new function.
18534         * lib/unigbrk/u8-grapheme-next.c: New file.
18535         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18537         New module 'u16-grapheme-next'.
18538         * modules/unigbrk/u16-grapheme-next: New file.
18539         * modules/unigbrk/u16-grapheme-next-tests: New file.
18540         * lib/unigbrk.in.h: Add prototype for new function.
18541         * lib/unigbrk/u16-grapheme-next.c: New file.
18542         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18544         New module 'u32-grapheme-next'.
18545         * modules/unigbrk/u32-grapheme-next: New file.
18546         * modules/unigbrk/u32-grapheme-next-tests: New file.
18547         * lib/unigbrk.in.h: Add prototype for new function.
18548         * lib/unigbrk/u32-grapheme-next.c: New file.
18549         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18551         New module 'u8-grapheme-prev'.
18552         * modules/unigbrk/u8-grapheme-prev: New file.
18553         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18554         * lib/unigbrk.in.h: Add prototype for new function.
18555         * lib/unigbrk/u8-grapheme-prev.c: New file.
18556         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18558         New module 'u16-grapheme-prev'.
18559         * modules/unigbrk/u16-grapheme-prev: New file.
18560         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18561         * lib/unigbrk.in.h: Add prototype for new function.
18562         * lib/unigbrk/u16-grapheme-prev.c: New file.
18563         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18565         New module 'u32-grapheme-prev'.
18566         * modules/unigbrk/u32-grapheme-prev: New file.
18567         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18568         * lib/unigbrk.in.h: Add prototype for new function.
18569         * lib/unigbrk/u32-grapheme-prev.c: New file.
18570         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18572         New module 'u8-grapheme-breaks'.
18573         * modules/unigbrk/u8-grapheme-breaks: New file.
18574         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18575         * lib/unigbrk.in.h: Add prototype for new function.
18576         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18577         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18579         New module 'u16-grapheme-breaks'.
18580         * modules/unigbrk/u16-grapheme-breaks: New file.
18581         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18582         * lib/unigbrk.in.h: Add prototype for new function.
18583         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18584         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18586         New module 'u32-grapheme-breaks'.
18587         * modules/unigbrk/u32-grapheme-breaks: New file.
18588         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18589         * lib/unigbrk.in.h: Add prototype for new function.
18590         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18591         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18593         New module 'ulc-grapheme-breaks'.
18594         * modules/unigbrk/ulc-grapheme-breaks: New file.
18595         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18596         * m4/locale-ar.m4: New file.
18597         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18598         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18599         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18601 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18603         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18604         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18605         modified how this file was generated before I initially submitted
18606         the module, but failed to regenerate it.  This meant that several
18607         of the level2 entries were wrong.
18608         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18609         Remove the division-by-2 that is folded into the table now that
18610         gbrkprop.h has been regenerated properly.  Now -1 entries are
18611         handled correctly.
18613         New module 'unigbrk/uc-gbrk-prop-tests'.
18614         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18615         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18616         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18617         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18619 2011-01-01  Bruno Haible  <bruno@clisp.org>
18621         Avoid use of hexadecimal escapes.
18622         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18623         instead of hexadecimal escapes.
18625 2011-01-01  Jim Meyering  <meyering@redhat.com>
18627         maint: new rule to update copyright year ranges
18628         * Makefile (update-copyright): New rule.
18630         maint: indent with TABs in Makefile
18631         * Makefile: Expand leading sequences of spaces to TABs
18633         version-etc: update the copyright year it reports
18634         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18636 2010-12-31  Bruno Haible  <bruno@clisp.org>
18638         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18639         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18640         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18641         zero.
18643 2010-12-31  Bruno Haible  <bruno@clisp.org>
18645         pwrite: Work around HP-UX 11.11 bug.
18646         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18647         works and set REPLACE_PWRITE if not.
18648         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18649         function.
18650         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18652 2010-12-31  Bruno Haible  <bruno@clisp.org>
18654         pread: Work around HP-UX 11 bugs.
18655         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18656         and set REPLACE_PREAD if not.
18657         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18659 2010-12-31  Eric Blake  <eblake@redhat.com>
18661         nl_langinfo: fix YESEXPR on Irix 6.5
18662         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18663         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18664         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18665         it.
18667 2010-12-31  Bruno Haible  <bruno@clisp.org>
18669         iconv: Document HP-UX 11 bug.
18670         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18672 2010-12-31  Bruno Haible  <bruno@clisp.org>
18674         ldexpl: Fix link error on HP-UX 11.
18675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18676         LDEXPL_LIBM, using $ISNANL_LIBM.
18678 2010-12-31  Eric Blake  <eblake@redhat.com>
18680         ftello: avoid compilation failure with SunStudio c89
18681         * lib/ftello.c (ftello): Use lseek, not llseek.
18683         tests: avoid failing coreutils tests on cygwin
18684         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18685         (create_exe_shims_): Return 0 when skipping.
18687 2010-12-31  Bruno Haible  <bruno@clisp.org>
18689         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18690         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18692 2010-12-31  Bruno Haible  <bruno@clisp.org>
18694         waitpid: Fix link error in C++ mode.
18695         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18697 2010-12-31  Bruno Haible  <bruno@clisp.org>
18699         isnan: Use GCC built-ins when possible.
18700         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18701         __builtin_isnan.
18702         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18703         (isnan): Define using GCC built-ins for GCC >= 4.0.
18705 2010-12-31  Bruno Haible  <bruno@clisp.org>
18707         isnand: Fix mistake.
18708         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18709         __builtin_isnand.
18711 2010-12-31  Bruno Haible  <bruno@clisp.org>
18713         open: Avoid C++ error on HP-UX 11.
18714         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18716 2010-12-31  Bruno Haible  <bruno@clisp.org>
18718         time_r: Add missing declarations on HP-UX 11.
18719         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18720         instead of HAVE_LOCALTIME_R.
18721         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18722         HAVE_LOCALTIME_R always.
18723         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18724         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18725         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18726         HAVE_LOCALTIME_R.
18727         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18728         * doc/posix-functions/localtime_r.texi: Likewise.
18730 2010-12-29  Eric Blake  <eblake@redhat.com>
18732         mountlist: tweak previous commit
18733         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18734         Reported by Paul Eggert.
18736         mountlist: fix local drive detection on cygwin
18737         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18738         that works for cygwin.
18740 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18742         ftoastr, snprintf: ftoastr + snprintf module
18743         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18744         since the snprintf module now should be good enough here.
18745         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18746         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18747         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18748         GNULIB_SNPRINTF only for the test directory, and the latter
18749         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18750         seems to suffice by itself.
18752 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18754         alloca: one step towards thread-safety
18755         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18756         need for a static variable.  All callers changed.  This does not
18757         make the alloca replacement thread-safe, but it's one step.
18759         tests: minor indenting change
18760         * tests/init.sh: Sync from coreutils housekeeping patch
18761         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18762         to keep lines within 80 columns.
18764 2010-12-28  Jim Meyering  <meyering@redhat.com>
18766         regex: don't infloop on persistent failing calloc
18767         * lib/regexec.c (build_trtable): Return failure indication upon
18768         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18769         In glibc, this was fixed for version 2.13:
18770         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18772 2010-12-28  Bruno Haible  <bruno@clisp.org>
18773             Paul Eggert <eggert@cs.ucla.edu>
18775         linkat: Make implementation robust against system behaviour variations.
18776         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18777         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18778         way, and to -2 if it needs a generic runtime test.
18779         * lib/linkat.c (solaris_optimized_link_immediate,
18780         solaris_optimized_link_follow): New functions.
18781         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18782         (check_same_link): Use it.
18784 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18786         New module 'unigbrk/base'.
18787         * modules/unigbrk/base: New file.
18788         * lib/unigbrk.in.h: New file.
18790         New module 'unigbrk/uc-gbrk-prop'.
18791         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18792         * modules/unigbrk/uc-gbrk-prop: New file.
18793         * lib/unigbrk/gbrkprop.h: New file.
18794         * lib/unigbrk/uc-gbrk-prop.c: New file.
18796         New module 'unigbrk/uc-is-grapheme-break'.
18797         * modules/unigbrk/uc-is-grapheme-break: New file.
18798         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18799         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18800         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18801         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18802         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18804         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18806 2010-12-27  Bruno Haible  <bruno@clisp.org>
18808         linkat test: Avoid failure on Solaris 11 2010-11.
18809         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18811 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18813         utimens: work around glibc rounding bug on more platforms
18814         * lib/utimens.c (fdutimens): Work around rounding bug even if
18815         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18816         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18818 2010-12-27  Bruno Haible  <bruno@clisp.org>
18820         select tests: Improve comments.
18821         * tests/test-select.c (do_select): Add comments.
18823 2010-12-27  Bruno Haible  <bruno@clisp.org>
18825         select tests: Safer way of handling timeout.
18826         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18827         at every invocation.
18829 2010-12-27  Bruno Haible  <bruno@clisp.org>
18831         select tests: Use 'bool' where appropriate.
18832         * tests/test-select.c (connect_to_socket): Change argument type to
18833         'bool'.
18835 2010-12-27  Bruno Haible  <bruno@clisp.org>
18837         select tests: Use existing modules.
18838         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18839         (configure.ac): Don't test for unistd.h.
18840         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18841         declared in <unistd.h>.
18843 2010-12-27  Bruno Haible  <bruno@clisp.org>
18845         mbrtowc: Work around a Solaris 7 bug.
18846         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18847         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18848         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18849         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18850         MBRTOWC_NULL_ARG1_BUG.
18851         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18852         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18853         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18854         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18856 2010-12-27  Jim Meyering  <meyering@redhat.com>
18858         read-file.c: tweak syntax
18859         * lib/read-file.c (fread_file): Remove space after "*" in function
18860         definitions.
18862 2010-12-27  Bruno Haible  <bruno@clisp.org>
18864         times test: Avoid gcc warnings on OSF/1.
18865         * tests/test-times.c (main): Cast printf arguments from clock_t to
18866         'long int'.
18868 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18870         utimens: work around glibc rounding bug on older Linux kernels
18871         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18872         on Linux with a glibc whose utimes might not work, then work
18873         around a longstanding glibc bug involving rounding rather than
18874         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18877 2010-12-26  Bruno Haible  <bruno@clisp.org>
18879         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18880         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18881         _GL_CXXALIAS_SYS.
18882         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18884 2010-12-26  Bruno Haible  <bruno@clisp.org>
18886         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18887         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18888         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18889         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18890         looking for the declaration.
18891         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18892         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18893         problem.
18894         * doc/posix-functions/inet_pton.texi: Likewise.
18896 2010-12-26  Bruno Haible  <bruno@clisp.org>
18898         arpa_inet: Use the common idioms with C++ support.
18899         * lib/arpa_inet.in.h: Include c++defs.h.
18900         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18901         support.
18902         * modules/arpa_inet (Depends-on): Add c++defs.
18903         (Makefile.am): Substitute the contents of c++defs.h.
18904         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18905         * modules/arpa_inet-c++-tests: New file.
18906         * tests/test-arpa_inet-c++.cc: New file.
18908 2010-12-25  Bruno Haible  <bruno@clisp.org>
18910         Fix more C++ link errors on Solaris 8.
18911         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18912         $(LIB_EACCESS).
18913         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18914         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18915         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18916         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18917         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18919 2010-12-25  Bruno Haible  <bruno@clisp.org>
18921         printf-posix: Fix link error when a non-GCC compiler is used.
18922         * lib/stdio.in.h (printf): When not using GCC, override printf
18923         correctly.
18924         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18926 2010-12-25  Bruno Haible  <bruno@clisp.org>
18928         strerror_r-posix: Update doc.
18929         * doc/posix-functions/strerror_r.texi: Update doc about the return
18930         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18932 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18934         utimens: simplify the logic of the previous change
18935         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18936         This should not affect whether the test succeeds or fails.
18938         utimens: configure better on hosts with NFS clock skew
18939         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18940         uses the clock of the local host.  It might use the clock of the
18941         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18942         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18944 2010-12-25  Bruno Haible  <bruno@clisp.org>
18946         ptsname test: Avoid failure on Solaris.
18947         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18948         open a pseudo-terminal; don't use BSD-style ptys.
18949         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18951 2010-12-25  Bruno Haible  <bruno@clisp.org>
18953         ptsname: Avoid ERANGE failure on some systems.
18954         * lib/ptsname.c (buffer): Increase size.
18956 2010-12-25  Bruno Haible  <bruno@clisp.org>
18958         rename, renameat: Avoid test failures at NFS mounted locations.
18959         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18960         so that subsequent mkdir calls succeed.
18962 2010-12-25  Bruno Haible  <bruno@clisp.org>
18964         iswblank: Fix C++ link error on Solaris 8.
18965         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18966         _GL_FUNCDECL_SYS.
18968 2010-12-25  Bruno Haible  <bruno@clisp.org>
18970         unistd: Fix C++ link error on Solaris 8.
18971         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18973 2010-12-25  Bruno Haible  <bruno@clisp.org>
18975         readlink doc: Mention an old glibc bug.
18976         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18978 2010-12-25  Bruno Haible  <bruno@clisp.org>
18980         fcntl-h: Fix for use of C++ on glibc systems.
18981         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18982         also on glibc systems in C++ mode.
18983         Reported by Gary V. Vaughan <gary@gnu.org>.
18985 2010-12-25  Bruno Haible  <bruno@clisp.org>
18987         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18988         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18990 2010-12-25  Bruno Haible  <bruno@clisp.org>
18992         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18993         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18994         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18995         test whether truncl works according to ISO C 99 with IEC 60559.
18996         * m4/truncl-ieee.m4: New file.
18997         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18998         m4/signbit.m4.
18999         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19001 2010-12-25  Bruno Haible  <bruno@clisp.org>
19003         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19004         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19005         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19006         test whether ceill works according to ISO C 99 with IEC 60559.
19007         * m4/ceill-ieee.m4: New file.
19008         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19009         m4/signbit.m4.
19010         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19012 2010-12-25  Bruno Haible  <bruno@clisp.org>
19014         Ensure all prerequisites of <wchar.h> are included.
19015         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19016         before <wchar.h>.
19017         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19018         gl_MBRLEN_NUL_RETVAL): Likewise.
19019         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19020         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19021         AC_FUNC_MBRTOWC): Likewise.
19022         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19023         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19024         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19025         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19026         Likewise.
19027         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19028         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19029         (gl_WCHAR_H): Improve comments.
19030         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19032 2010-12-25  Bruno Haible  <bruno@clisp.org>
19034         strtok_r: Fix C syntax error in autoconf macro.
19035         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19036         characters in test program.
19038 2010-12-24  Bruno Haible  <bruno@clisp.org>
19040         ceil, trunc, round: Fix gcc warnings.
19041         * lib/ceil.c (MIN): Undefine before redefining.
19042         * lib/trunc.c (MIN): Likewise.
19043         * lib/round.c (MIN): Likewise.
19044         Include <math.h> first.
19046 2010-12-24  Bruno Haible  <bruno@clisp.org>
19048         select tests: Avoid failures on OSF/1 5.1.
19049         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19050         failure of closing the last socket; it may fail with ECONNRESET.
19052 2010-12-24  Eric Blake  <eblake@redhat.com>
19054         stdint: avoid HP-UX 10.20 preprocessor bug
19055         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19056         than #if.
19057         * tests/test-floor2.c (main): Likewise.
19058         Reported by Peter O'Gorman.
19060         pipe: make obsoletion transition easier
19061         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19062         * modules/pipe (Files): Include revived file.
19063         (Include): Drop reference, to mirror getdate's behavior.
19065 2010-12-24  Bruno Haible  <bruno@clisp.org>
19067         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19068         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19069         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19070         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19072 2010-12-24  Bruno Haible  <bruno@clisp.org>
19074         gethostname: Ensure declaration on NonStop Kernel.
19075         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19076         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19078 2010-12-24  Bruno Haible  <bruno@clisp.org>
19080         sys_select: Ensure all necessary types on NonStop Kernel.
19081         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19082         include <sys/time.h>.
19083         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19084         NonStop Kernel.
19085         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19087 2010-12-24  Bruno Haible  <bruno@clisp.org>
19089         sys_select: Remove unneeded include.
19090         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19091         have <sys/select.h>.
19093 2010-12-24  Bruno Haible  <bruno@clisp.org>
19095         gethostname: Provide a fallback for HOST_NAME_MAX.
19096         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19097         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19098         instead.
19099         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19101 2010-12-24  Bruno Haible  <bruno@clisp.org>
19103         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19104         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19105         (SA_RESTART): Likewise.
19106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19108 2010-12-24  Bruno Haible  <bruno@clisp.org>
19110         signal: Define NSIG.
19111         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19112         * tests/test-signal.c (nsig): New variable.
19113         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19115 2010-12-24  Bruno Haible  <bruno@clisp.org>
19117         rename, renameat: Avoid test failures on OSF/1 5.1.
19118         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19119         alternative error codes.
19120         * tests/test-renameat.c (main): Likewise.
19122 2010-12-24  Bruno Haible  <bruno@clisp.org>
19124         *printf: Detect large precisions bug on Solaris 10/SPARC.
19125         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19126         by Paul Eggert.
19127         * tests/test-snprintf-posix.h (test_function): Add this test code here
19128         too.
19129         * tests/test-sprintf-posix.h (test_function): Likewise.
19130         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19131         * tests/test-vasprintf-posix.c (test_function): Likewise.
19132         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19133         around by gnulib.
19134         * doc/posix-functions/printf.texi: Likewise.
19135         * doc/posix-functions/snprintf.texi: Likewise.
19136         * doc/posix-functions/sprintf.texi: Likewise.
19137         * doc/posix-functions/vfprintf.texi: Likewise.
19138         * doc/posix-functions/vprintf.texi: Likewise.
19139         * doc/posix-functions/vsnprintf.texi: Likewise.
19140         * doc/posix-functions/vsprintf.texi: Likewise.
19141         * doc/posix-functions/dprintf.texi: Undo last commit.
19142         * doc/posix-functions/vdprintf.texi: Likewise.
19144 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19146         tests: port test-fdutimensat.c to Solaris 8
19147         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19148         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19149         On Solaris 8, it fails with errno == ENOSYS, because there is no
19150         futimens (so it can't use the fd), and there is no lutimens (so it
19151         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19153         vsnprintf: make more consistent with snprintf; doc fixes
19155         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19156         the byte count return problem was promoted from the snprintf-posix
19157         to the snprintf module.
19158         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19159         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19160         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19161         * tests/test-snprintf.c (main): Check the byte count returned.
19162         * tests/test-vsnprintf.c (main): Likewise.
19164 2010-12-23  Eric Blake  <eblake@redhat.com>
19166         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19167         * modules/sigpipe (License): Relax license.
19169 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19171         doc: document Solaris printf bug with large float precisions
19172         * doc/posix-functions/dprintf.texi (dprintf):
19173         * doc/posix-functions/fprintf.texi (fprintf):
19174         * doc/posix-functions/printf.texi (printf):
19175         * doc/posix-functions/snprintf.texi (snprintf):
19176         * doc/posix-functions/sprintf.texi (sprintf):
19177         * doc/posix-functions/vdprintf.texi (vdprintf):
19178         * doc/posix-functions/vfprintf.texi (vfprintf):
19179         * doc/posix-functions/vprintf.texi (vprintf):
19180         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19181         * doc/posix-functions/vsprintf.texi (vsprintf):
19182         Mention that these functions mishandle large floating point
19183         precisions on Solaris 10.  The same bug is also present in Solaris
19184         8, and I assume earlier.  This causes "cd gnulib-tests; make
19185         check" to fail on Solaris 8 (and I assume, later) when building
19186         the latest coreutils, in test-vasprintf-posix's call to
19187         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19188         the wide flavors (e.g., wprintf) so this patch just updates the
19189         documentation for the narrow ones.
19191         test-posixtm.c: add two tests
19192         * tests/test-posixtm.c: Add two tests, to highlight the
19193         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19194         around this bug; this is merely to document it.
19196 2010-12-22  Bruno Haible  <bruno@clisp.org>
19198         getlogin_r: Work around portability problem on OSF/1.
19199         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19200         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19201         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19202         test for a truncated result.
19203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19204         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19205         * modules/getlogin_r (Depends-on): Add memchr.
19206         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19208 2010-12-22  Bruno Haible  <bruno@clisp.org>
19210         ptsname: Avoid test failure on OSF/1 5.1.
19211         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19212         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19213         (same_slave): New function.
19214         (main): Use it to compare ptsname's result with the expected file name.
19216 2010-12-22  Bruno Haible  <bruno@clisp.org>
19218         Port extended stdio modules to HP NonStop Kernel.
19219         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19220         macros.
19221         * lib/fbufmode.c: Update comments.
19222         * lib/fflush.c: Likewise.
19223         * lib/fpurge.c: Likewise.
19224         * lib/freadable.c: Likewise.
19225         * lib/freadahead.c: Likewise.
19226         * lib/freading.c: Likewise.
19227         * lib/freadptr.c: Likewise.
19228         * lib/freadseek.c: Likewise.
19229         * lib/fseeko.c: Likewise.
19230         * lib/fseterr.c: Likewise.
19231         * lib/fwritable.c: Likewise.
19232         * lib/fwriting.c: Likewise.
19233         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19235 2010-12-22  Bruno Haible  <bruno@clisp.org>
19237         ttyname_r: Work around bug on OSF/1 5.1.
19238         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19240         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19241         present.
19242         * lib/ttyname_r.c (ttyname_r): Update comments.
19244 2010-12-22  Bruno Haible  <bruno@clisp.org>
19246         round: Implement result sign according to IEEE 754.
19247         * lib/round.c (MIN, MINUS_ZERO): New macros.
19248         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19249         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19250         * tests/test-round-ieee.c (main): Likewise.
19251         * tests/test-roundl-ieee.c (main): Likewise.
19253         trunc: Implement result sign according to IEEE 754.
19254         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19255         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19256         * tests/test-trunc2.c: Include minus-zero.h.
19257         (MINUS_ZERO): New macro.
19258         (trunc_reference): Keep in sync with lib/trunc.c.
19259         * tests/test-truncf2.c: Include minus-zero.h.
19260         (MINUS_ZERO): New macro.
19261         (truncf_reference): Keep in sync with lib/trunc.c.
19262         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19263         * tests/test-trunc-ieee.c (main): Likewise.
19264         * tests/test-truncl-ieee.c (main): Likewise.
19266         ceil: Implement result sign according to IEEE 754.
19267         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19268         (FUNC): Return -0.0 for -1 < x < 0.
19269         * tests/test-ceil2.c: Include minus-zero.h.
19270         (MINUS_ZERO): New macro.
19271         (ceil_reference): Keep in sync with lib/ceil.c.
19272         * tests/test-ceilf2.c: Include minus-zero.h.
19273         (MINUS_ZERO): New macro.
19274         (ceilf_reference): Keep in sync with lib/ceil.c.
19275         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19276         * tests/test-ceil-ieee.c (main): Likewise.
19277         * tests/test-ceill-ieee.c (main): Likewise.
19279         floor: Implement result sign according to IEEE 754.
19280         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19281         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19282         * tests/test-floorf2.c (floorf_reference): Likewise.
19283         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19284         * tests/test-floor-ieee.c (main): Likewise.
19285         * tests/test-floorl-ieee.c (main): Likewise.
19287 2010-12-22  Bruno Haible  <bruno@clisp.org>
19289         getaddrinfo: Update doc.
19290         * doc/posix-functions/gai_strerror.texi: Return type is also different
19291         on AIX and HP-UX.
19293 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19295         getaddrinfo, inet_ntop: Update doc for Solaris.
19296         * doc/posix-functions/gai_strerror.texi: Return type is also an
19297         issue on Solaris 9 and earlier.
19298         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19299         on Solaris 10 and earlier.
19301 2010-12-21  Bruno Haible  <bruno@clisp.org>
19303         New module 'roundl-ieee'.
19304         * modules/roundl-ieee: New file.
19305         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19306         test whether roundl works according to ISO C 99 with IEC 60559.
19307         * m4/roundl-ieee.m4: New file.
19308         * modules/roundl-ieee-tests: New file.
19309         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19310         * tests/test-roundl.c (main): Remove signbit tests.
19311         * modules/roundl-tests (Depends-on): Remove signbit.
19312         * doc/posix-functions/roundl.texi: Mention the new module.
19314 2010-12-21  Bruno Haible  <bruno@clisp.org>
19316         New module 'truncl-ieee'.
19317         * modules/truncl-ieee: New file.
19318         * modules/truncl-ieee-tests: New file.
19319         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19320         * tests/test-truncl.c (main): Remove signbit tests.
19321         * modules/truncl-tests (Depends-on): Remove signbit.
19322         * doc/posix-functions/truncl.texi: Mention the new module.
19324 2010-12-21  Bruno Haible  <bruno@clisp.org>
19326         New module 'ceill-ieee'.
19327         * modules/ceill-ieee: New file.
19328         * modules/ceill-ieee-tests: New file.
19329         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19330         * tests/test-ceill.c (main): Remove signbit tests.
19331         * modules/ceill-tests (Depends-on): Remove signbit.
19332         * doc/posix-functions/ceill.texi: Mention the new module.
19334 2010-12-21  Bruno Haible  <bruno@clisp.org>
19336         New module 'floorl-ieee'.
19337         * modules/floorl-ieee: New file.
19338         * modules/floorl-ieee-tests: New file.
19339         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19340         * tests/test-floorl.c (main): Remove signbit tests.
19341         * modules/floorl-tests (Depends-on): Remove signbit.
19342         * doc/posix-functions/floorl.texi: Mention the new module.
19344 2010-12-21  Bruno Haible  <bruno@clisp.org>
19346         New module 'round-ieee'.
19347         * modules/round-ieee: New file.
19348         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19349         whether round works according to ISO C 99 with IEC 60559.
19350         * m4/round-ieee.m4: New file.
19351         * modules/round-ieee-tests: New file.
19352         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19353         * tests/test-round1.c (main): Remove signbit tests.
19354         * modules/round-tests (Depends-on): Remove 'signbit'.
19355         * doc/posix-functions/round.texi: Mention the new module.
19357 2010-12-21  Bruno Haible  <bruno@clisp.org>
19359         New module 'trunc-ieee'.
19360         * modules/trunc-ieee: New file.
19361         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19362         whether trunc works according to ISO C 99 with IEC 60559.
19363         * m4/trunc-ieee.m4: New file.
19364         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19366         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19367         * modules/trunc-ieee-tests: New file.
19368         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19369         * tests/test-trunc1.c (main): Remove signbit tests.
19370         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19371         * doc/posix-functions/trunc.texi: Mention the new module.
19373 2010-12-21  Bruno Haible  <bruno@clisp.org>
19375         New module 'ceil-ieee'.
19376         * modules/ceil-ieee: New file.
19377         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19378         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19379         ISO C 99 with IEC 60559.
19380         * m4/ceil-ieee.m4: New file.
19381         * modules/ceil (Files): Add lib/ceil.c.
19382         (Depends-on): Add 'float'.
19383         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19384         * lib/math.in.h (ceil): New declaration.
19385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19386         REPLACE_CEIL.
19387         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19388         * modules/ceil-ieee-tests: New file.
19389         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19390         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19391         * doc/posix-functions/ceil.texi: Mention the new module.
19393 2010-12-21  Bruno Haible  <bruno@clisp.org>
19395         New module 'floor-ieee'.
19396         * modules/floor-ieee: New file.
19397         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19398         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19399         ISO C 99 with IEC 60559.
19400         * m4/floor-ieee.m4: New file.
19401         * modules/floor (Files): Add lib/floor.c.
19402         (Depends-on): Add 'float'.
19403         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19404         * lib/math.in.h (floor): New declaration.
19405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19406         REPLACE_FLOOR.
19407         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19408         * modules/floor-ieee-tests: New file.
19409         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19410         * tests/test-math-c++.cc: Check the signature of 'floor'.
19411         * doc/posix-functions/floor.texi: Mention the new module.
19413 2010-12-21  Bruno Haible  <bruno@clisp.org>
19415         New module 'roundf-ieee'.
19416         * modules/roundf-ieee: New file.
19417         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19418         test whether roundf works according to ISO C 99 with IEC 60559.
19419         * m4/roundf-ieee.m4: New file.
19420         * modules/roundf-ieee-tests: New file.
19421         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19422         * tests/test-roundf1.c (main): Remove signbit tests.
19423         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19424         * doc/posix-functions/roundf.texi: Mention the new module.
19426 2010-12-21  Bruno Haible  <bruno@clisp.org>
19428         New module 'truncf-ieee'.
19429         * modules/truncf-ieee: New file.
19430         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19431         test whether truncf works according to ISO C 99 with IEC 60559.
19432         * m4/truncf-ieee.m4: New file.
19433         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19435         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19436         * modules/truncf-ieee-tests: New file.
19437         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19438         * tests/test-truncf1.c (main): Remove signbit tests.
19439         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19440         * doc/posix-functions/truncf.texi: Mention the new module.
19442 2010-12-21  Bruno Haible  <bruno@clisp.org>
19444         New module 'ceilf-ieee'.
19445         * modules/ceilf-ieee: New file.
19446         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19447         test whether ceilf works according to ISO C 99 with IEC 60559.
19448         * m4/ceilf-ieee.m4: New file.
19449         * modules/ceilf-ieee-tests: New file.
19450         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19451         * tests/test-ceilf1.c (main): Remove signbit tests.
19452         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19453         * doc/posix-functions/ceilf.texi: Mention the new module.
19455 2010-12-21  Bruno Haible  <bruno@clisp.org>
19457         New module 'floorf-ieee'.
19458         * modules/floorf-ieee: New file.
19459         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19460         test whether floorf works according to ISO C 99 with IEC 60559.
19461         * m4/floorf-ieee.m4: New file.
19462         * modules/floorf-ieee-tests: New file.
19463         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19464         * tests/test-floorf1.c (main): Remove signbit tests.
19465         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19466         * doc/posix-functions/floorf.texi: Mention the new module.
19468 2010-12-21  Bruno Haible  <bruno@clisp.org>
19470         Support for minus zero in autoconf macros.
19471         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19472         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19473         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19474         * tests/minus-zero.h: Update comments.
19476 2010-12-21  Bruno Haible  <bruno@clisp.org>
19478         Tests for module 'ceil'.
19479         * modules/ceil-tests: New file.
19480         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19481         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19483 2010-12-21  Bruno Haible  <bruno@clisp.org>
19485         Tests for module 'floor'.
19486         * modules/floor-tests: New file.
19487         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19488         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19490 2010-12-21  Bruno Haible  <bruno@clisp.org>
19492         math: Fix indentation.
19493         * lib/math.in.h (floorf): Fix indentation.
19495 2010-12-21  Bruno Haible  <bruno@clisp.org>
19497         Fix cross-compilation guesses on Solaris.
19498         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19499         not match "solaris2.10".
19500         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19501         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19502         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19504 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19506         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19507         This fixes a problem observed with the latest coreutils snapshot
19508         that caused a test to fail on Solaris 8.  src/csplit.c's call
19509         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19510         earlier, instead of returning the number of bytes that would have
19511         been generated; this causes csplit to incorrectly report memory
19512         exhaustion.
19513         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19514         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19515         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19516         comments to match.
19517         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19518         Fix typo in matching older versions of Solaris: "solaris2.10"
19519         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19520         only for guessing while cross-compiling.
19521         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19523 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19525         ftoastr: fix comment again
19526         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19528         Also, simplify example a bit by using flags = 0.
19530 2010-12-20  Bruno Haible  <bruno@clisp.org>
19532         round*, trunc*: Update documentation regarding glibc.
19533         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19534         * doc/posix-functions/round.texi: Likewise.
19535         * doc/posix-functions/roundl.texi: Likewise.
19536         * doc/posix-functions/truncf.texi: Likewise.
19537         * doc/posix-functions/trunc.texi: Likewise.
19538         * doc/posix-functions/truncl.texi: Likewise.
19540 2010-12-20  Bruno Haible  <bruno@clisp.org>
19542         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19543         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19544         * doc/posix-functions/round.texi: Likewise.
19545         * doc/posix-functions/roundl.texi: Likewise.
19547 2010-12-20  Bruno Haible  <bruno@clisp.org>
19549         ttyname_r: Add missing declaration on HP-UX 11.
19550         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19551         HAVE_TTYNAME_R.
19552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19553         declared. Set HAVE_TTYNAME_R always.
19554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19555         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19556         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19557         HAVE_TTYNAME_R.
19558         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19560 2010-12-20  Bruno Haible  <bruno@clisp.org>
19562         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19563         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19564         * doc/posix-functions/getlogin_r.texi: Likewise.
19565         * tests/test-getlogin.c: Include <errno.h>.
19566         (main): Avoid test failure on HP-UX 11.11.
19567         * tests/test-getlogin_r.c (main): Likewise.
19569 2010-12-20  Bruno Haible  <bruno@clisp.org>
19571         getlogin_r: Add missing declaration on HP-UX 11.
19572         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19573         declared also when it exists as a function.
19574         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19576 2010-12-20  Bruno Haible  <bruno@clisp.org>
19578         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19579         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19580         through wcrtomb.
19582 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19584         ftoastr: fix comment
19585         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19588 2010-12-19  Bruno Haible  <bruno@clisp.org>
19590         isnan: Ensure it is a macro.
19591         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19592         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19593         Solaris.
19595 2010-12-19  Bruno Haible  <bruno@clisp.org>
19597         ldexpl test: Fix link error on OSF/1 5.1.
19598         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19600 2010-12-19  Bruno Haible  <bruno@clisp.org>
19602         wctype: Make it work in C++ mode on OSF/1 5.1.
19603         * lib/wctype.in.h (iswblank): Declare but not define here.
19604         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19605         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19606         * modules/wctype (Files): Add lib/iswblank.c.
19608 2010-12-19  Bruno Haible  <bruno@clisp.org>
19610         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19611         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19612         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19614 2010-12-19  Bruno Haible  <bruno@clisp.org>
19616         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19618         _POSIX_PII_SOCKET.
19619         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19620         * doc/posix-functions/recvfrom.texi: Likewise.
19621         * doc/posix-functions/send.texi: Likewise.
19622         * doc/posix-functions/sendto.texi: Likewise.
19624 2010-12-19  Bruno Haible  <bruno@clisp.org>
19626         tcgetsid: Add missing declaration on OSF/1 5.1.
19627         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19628         HAVE_TCGETSID.
19629         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19630         Don't set HAVE_TCGETSID.
19631         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19632         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19633         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19634         HAVE_TCGETSID.
19635         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19637 2010-12-19  Bruno Haible  <bruno@clisp.org>
19639         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19640         * lib/stdio.in.h: During the include_next statement, let recursive
19641         includes of this file include only the system header file.
19643 2010-12-19  Bruno Haible  <bruno@clisp.org>
19645         iconv_open: Fix regression from 2010-12-04.
19646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19647         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19649 2010-12-19  Bruno Haible  <bruno@clisp.org>
19651         stdbool test: Avoid a gcc warning.
19652         * tests/test-stdbool.c (main): Fail if e1 is false.
19653         Reported by Jim Meyering.
19655 2010-12-19  Jim Meyering  <meyering@redhat.com>
19657         setenv: restore to working order
19658         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19659         mistakenly removed.
19660         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19661         HAVE_SETENV.
19662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19663         HAVE_SETENV.
19665 2010-12-19  Bruno Haible  <bruno@clisp.org>
19667         Document some different function declarations on OSF/1 5.1.
19668         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19669         * doc/posix-functions/inet_ntop.texi: Likewise.
19670         * doc/posix-functions/gethostname.texi: Likewise.
19671         * lib/unistd.in.h (gethostname): Update comment.
19673 2010-12-19  Bruno Haible  <bruno@clisp.org>
19675         doc: Mention vasprintf-posix module.
19676         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19677         the 'vasprintf-posix' module.
19678         * doc/glibc-functions/vasprintf.texi: Likewise.
19680 2010-12-19  Bruno Haible  <bruno@clisp.org>
19682         unsetenv: Add missing declaration on OSF/1 5.1.
19683         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19684         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19685         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19687         not HAVE_UNSETENV.
19688         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19689         HAVE_UNSETENV.
19690         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19692 2010-12-19  Bruno Haible  <bruno@clisp.org>
19694         setenv: Add missing declaration on OSF/1 5.1.
19695         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19697         declared. Don't set HAVE_SETENV.
19698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19699         not HAVE_SETENV.
19700         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19701         HAVE_SETENV.
19702         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19704 2010-12-19  Bruno Haible  <bruno@clisp.org>
19706         nl_langinfo tests: Avoid gcc warning.
19707         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19709 2010-12-19  Bruno Haible  <bruno@clisp.org>
19711         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19712         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19713         _GL_CXXALIAS_SYS.
19715 2010-12-19  Bruno Haible  <bruno@clisp.org>
19717         stdbool: Relax test.
19718         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19719         address to 'bool' work in static initializer, for compilers other than
19720         GCC.
19722 2010-12-19  Bruno Haible  <bruno@clisp.org>
19724         ftello: Add missing declaration on OSF/1 5.1.
19725         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19726         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19728         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19729         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19731 2010-12-19  Bruno Haible  <bruno@clisp.org>
19733         fseeko: Add missing declaration on OSF/1 5.1.
19734         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19735         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19737         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19738         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19740 2010-12-19  Bruno Haible  <bruno@clisp.org>
19742         fchdir: Add missing declaration on OSF/1 5.1.
19743         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19746         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19747         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19749 2010-12-19  Bruno Haible  <bruno@clisp.org>
19751         relocatable-prog-wrapper: Separate from relocatable-prog.
19752         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19753         uninstall-relocwrapper rule here.
19754         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19755         Reported by Ian Beckwith <ianb@erislabs.net>.
19757 2010-12-19  Bruno Haible  <bruno@clisp.org>
19759         unistr/u8-mbsnlen: Add missing dependency.
19760         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19761         Reported by Ian Beckwith <ianb@erislabs.net>.
19763 2010-12-19  Bruno Haible  <bruno@clisp.org>
19765         iconv: Make it possible again to use this module without 'iconv-h'.
19766         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19767         if it is not defined.
19768         Reported by Ian Beckwith <ianb@erislabs.net>.
19770 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19772         acl: port to Solaris 8 when copying from tmpfs to ufs
19773         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19774         error number.  Problem observed on Solaris 8 with latest
19775         coreutils, with "mv A B", where A is on a tmpfs file system and B
19776         is on a ufs file system.  This caused coreutils' mv/part-symlink
19777         test to fail.
19779         tests: set fail=0 at start
19780         * tests/init.sh (setup_): Move fail=0 initialization here ...
19781         (mktempd_): ... from here, so that tests can rely on fail being
19782         set to 0 initially.  This fixes a problem in coreutils; see:
19783         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19785 2010-12-18  Bruno Haible  <bruno@clisp.org>
19787         memmem-simple: Stylistic changes.
19788         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19789         Fix preprocessor directive indentation.
19791 2010-12-15  Pádraig Brady <P@draigBrady.com>
19793         memmem, memmem-simple: reorganize and expand empty needle check
19794         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19795         functional checks to memmem-simple so that one has a fully functional
19796         memmem by using just this module.
19797         Restrict the performance only check to the memmem module.
19798         Also expand the empty needle check to ensure the correct
19799         pointer is returned, not just a non NULL pointer.
19800         * doc/glibc-functions/memmem.texi: Rearrange the portability
19801         documentation to correlate with the rearranged checks.
19802         Clarify exactly how the memmem and memmem-simple modules
19803         relate to each other.
19805 2010-12-15  Pádraig Brady <P@draigBrady.com>
19806             Bruno Haible  <bruno@clisp.org>
19808         Improve cross-compilation guesses for uClibc.
19809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19810         that uClibc does not have the glibc bug.
19811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19812         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19814 2010-12-14  Eric Blake  <eblake@redhat.com>
19816         configmake: provide fallbacks for oldest supported autotools
19817         * m4/configmake.m4: New file.
19818         * modules/configmake (Files): Ship it.
19819         (configure.ac): Use it to guarantee fallbacks.
19821 2010-12-13  Pádraig Brady <P@draigBrady.com>
19823         read-file: Improve handling of large files
19824         * lib/read-file.c (fread_file): Minimize realloc()s
19825         for regular files, and better manage sizes around SIZE_MAX.
19827 2010-12-13  Eric Blake  <eblake@redhat.com>
19829         cloexec, fcntl: relax license
19830         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19831         consent from all contributors.
19832         * modules/fcntl (License): Likewise.
19834 2010-12-10  Bruno Haible  <bruno@clisp.org>
19836         Tests for module 'pipe-posix'.
19837         * modules/pipe-posix-tests: New file.
19838         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19840 2010-12-10  Bruno Haible  <bruno@clisp.org>
19842         pipe-posix: Make it work in C++ mode.
19843         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19844         (pipe): Use common idiom, not a macro definition.
19845         * lib/pipe.c: New file.
19846         * m4/pipe.m4: New file.
19847         * modules/pipe-posix (Description): Enhance.
19848         (Files): Add lib/pipe.c, m4/pipe.m4.
19849         (configure.ac): Invoke gl_FUNC_PIPE.
19850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19851         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19852         * tests/test-unistd-c++.cc: Check the signature of pipe.
19854 2010-12-10  Bruno Haible  <bruno@clisp.org>
19856         Rename module 'pipe' to 'spawn-pipe'.
19857         * modules/spawn-pipe: New file, renamed from modules/pipe.
19858         (Files, configure.ac, Makefile.am): Update.
19859         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19860         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19861         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19862         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19863         "spawn-pipe.h" instead of "pipe.h".
19864         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19865         to gl_SPAWN_PIPE.
19866         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19867         (Files, Makefile.am): Update.
19868         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19869         Update.
19870         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19871         Include "spawn-pipe.h" instead of "pipe.h".
19872         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19873         * lib/javacomp.c: Likewise.
19874         * lib/javaversion.c: Likewise.
19875         * lib/pipe-filter-gi.c: Likewise.
19876         * lib/pipe-filter-ii.c: Likewise.
19877         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19878         * modules/javacomp (Depends-on): Likewise.
19879         * modules/javaversion (Depends-on): Likewise.
19880         * modules/pipe-filter-gi (Depends-on): Likewise.
19881         * modules/pipe-filter-ii (Depends-on): Likewise.
19882         * MODULES.html.sh (Executing programs): Update.
19883         * NEWS: Mention the change.
19885 2010-12-10  Eric Blake  <eblake@redhat.com>
19887         pipe-posix: new module
19888         * modules/pipe-posix: New file.
19889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19890         (gl_UNISTD_H): Check for declaration.
19891         * modules/unistd (Makefile.am): Substitute it.
19892         * lib/unistd.in.h (pipe): Provide it for mingw.
19893         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19894         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19896 2010-12-07  Bruno Haible  <bruno@clisp.org>
19898         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19899         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19900         u8_strcmp_gnu.
19901         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19903 2010-12-06  Bruno Haible  <bruno@clisp.org>
19905         Update internal documentation.
19906         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19908 2010-12-04  Bruno Haible  <bruno@clisp.org>
19910         Put more information about failed tests into the test return codes.
19911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19912         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19913         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19915         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19916         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19917         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19918         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19919         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19922         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19923         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19924         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19925         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19926         returns a bit mask.
19927         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19928         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19929         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19930         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19931         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19932         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19935         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19937         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19938         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19939         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19941         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19942         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19943         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19944         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19945         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19946         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19947         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19948         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19949         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19950         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19951         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19952         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19953         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19954         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19955         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19956         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19957         gl_PRINTF_PRECISION): Likewise.
19958         * m4/regex.m4 (gl_REGEX): Likewise.
19959         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19960         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19961         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19962         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19965         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19966         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19967         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19968         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19969         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19970         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19971         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19972         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19973         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19974         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19975         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19976         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19978         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19979         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19980         enumerated value.
19981         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19983 2010-12-04  Bruno Haible  <bruno@clisp.org>
19985         Update for Solaris 11 2010-11.
19986         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19987         Express, released in November 2010.
19989 2010-12-04  Bruno Haible  <bruno@clisp.org>
19991         nproc: Relax license.
19992         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19993         and Paul Eggert.
19994         Requested by Ludovic Courtès <ludo@gnu.org>.
19996 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19998         utimecmp: fine-grained src to nearby coarse-grained dest
20000         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20001         and the source is on a file system with higher-resolution time
20002         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20003         not work, and the time stamps are close together, the algorithm to
20004         determine the exact resolution from the read-back mtime was buggy:
20005         it had a "!=" where it should have had an "==".  This bug has been
20006         in the code ever since it was introduced to gnulib.
20007         Problem reported by Dan Jacobson in
20008         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20010 2010-11-30  Bruno Haible  <bruno@clisp.org>
20012         strerror_r-posix: Fix autoconf test.
20013         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20015 2010-11-28  Bruno Haible  <bruno@clisp.org>
20016             Paul Eggert  <eggert@cs.ucla.edu>
20018         Tests for module 'getdomainname'.
20019         * modules/getdomainname-tests: New file.
20020         * tests/test-getdomainname.c: New file, based on
20021         tests/test-gethostname.c.
20023 2010-11-28  Bruno Haible  <bruno@clisp.org>
20024             Paul Eggert  <eggert@cs.ucla.edu>
20026         getdomainname: Use the system function when possible.
20027         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20028         (getdomainname): Replace if needed. Provide the declaration if it is
20029         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20030         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20031         (getdomainname): When the system has getdomainname, call the system
20032         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20033         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20034         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20035         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20036         the function if its second argument is of type 'int' or if it is found
20037         in libnsl.
20038         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20039         <sys/systeminfo.h> and sysinfo().
20040         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20042         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20043         HAVE_GETDOMAINNAME.
20044         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20045         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20046         * doc/glibc-functions/getdomainname.texi: Document the problems with
20047         the getdomainname declaration.
20049 2010-11-28  Bruno Haible  <bruno@clisp.org>
20051         sys_socket: Ensure ss_family field on AIX.
20052         * lib/sys_socket.in.h (ss_family): New macro definition.
20053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20054         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20055         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20056         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20057         * modules/sys_socket (Makefile.am): Substitute
20058         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20059         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20061 2010-11-27  Bruno Haible  <bruno@clisp.org>
20063         readline: Improve configure output.
20064         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20065         "checking for readline..." result understandable.
20067 2010-11-27  Bruno Haible  <bruno@clisp.org>
20069         *printf-posix: Detect a bug on Solaris 10/x86.
20070         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20071         for floating-point output.
20072         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20073         directive.
20074         * tests/test-snprintf-posix.h (test_function): Likewise.
20075         * tests/test-sprintf-posix.h (test_function): Likewise.
20076         * tests/test-vasprintf-posix.c (test_function): Likewise.
20077         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20078         * doc/posix-functions/printf.texi: Likewise.
20079         * doc/posix-functions/snprintf.texi: Likewise.
20080         * doc/posix-functions/sprintf.texi: Likewise.
20081         * doc/posix-functions/vfprintf.texi: Likewise.
20082         * doc/posix-functions/vprintf.texi: Likewise.
20083         * doc/posix-functions/vsnprintf.texi: Likewise.
20084         * doc/posix-functions/vsprintf.texi: Likewise.
20085         * doc/glibc-functions/obstack_printf.texi: Likewise.
20086         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20088 2010-11-27  Bruno Haible  <bruno@clisp.org>
20090         Fix link error when module libunistring-optional is in use.
20091         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20092         * modules/striconveha-tests (Makefile.am): Likewise.
20094 2010-11-27  Bruno Haible  <bruno@clisp.org>
20096         regex: Mention link dependencies.
20097         * modules/regex (Link): New section.
20098         * modules/rpmatch (Link): Likewise.
20099         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20101 2010-11-27  Bruno Haible  <bruno@clisp.org>
20103         ftoastr: Fix compilation error on Solaris.
20104         * lib/ftoastr.c: Include <config.h>.
20106 2010-11-27  Bruno Haible  <bruno@clisp.org>
20108         getloadavg: Update documentation.
20109         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20111 2010-11-27  Bruno Haible  <bruno@clisp.org>
20113         sys_socket: Fix test whether the functions are declared.
20114         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20115         not <sys/select.h>.
20117 2010-11-27  Bruno Haible  <bruno@clisp.org>
20119         getpass: Make sure to get system declaration on some platforms.
20120         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20121         gl_USE_SYSTEM_EXTENSIONS.
20122         * modules/getpass (Depends-on): Add extensions.
20124 2010-11-26  Bruno Haible  <bruno@clisp.org>
20126         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20127         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20128         'iconv' module is present.
20129         (ICONV_CONST): New macro.
20130         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20131         ICONV_CONST.
20132         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20133         set ICONV_CONST.
20134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20135         here.
20136         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20137         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20138         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20139         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20140         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20141         present.
20143 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20145         ftoastr: comment fix
20146         * lib/ftoastr.c: "little" -> "little or no" in comment
20148 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20150         stdint: port to GCC 4.3 + OSX + Octave
20151         On this platform, stdint.h is buggy and defines int64_t to long
20152         long int.  The replacement defined it to long int, causing
20153         problems with C++ style name mangling.  Instead, trust the system
20154         definition if INT64_MAX is defined, and likewise for the unsigned
20155         variant.   Problem reported by Jarno Rajahalme in
20156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20157         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20158         and don't mess with int64_t and INT64_MAX in this case.
20159         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20161 2010-11-24  Bruno Haible  <bruno@clisp.org>
20163         doc: Corrections regarding MacOS X 10.4 and 10.5.
20164         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20165         MacOS X.
20166         Reported by Simon Josefsson.
20168 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20170         Uninstall ".bin" files installed by relocwrapper.
20171         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20172         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20173         unless it is already there.
20175 2010-11-21  Bruno Haible  <bruno@clisp.org>
20177         Update for NetBSD 5.0.
20178         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20179         NetBSD; the test fails on NetBSD 5.0.
20180         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20181         about NetBSD.
20183 2010-11-21  Bruno Haible  <bruno@clisp.org>
20185         Update for HP-UX 11.23 and HP-UX 11.31.
20186         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20187         HP-UX.
20189 2010-11-21  Bruno Haible  <bruno@clisp.org>
20191         Update for MacOS X 10.5.
20192         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20193         MacOS X; the test fails on MacOS X 10.5.8.
20194         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20195         about MacOS X.
20197 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20199         bootstrap: add bootstrap_sync option.
20200         See discussion at
20201         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20203         * build-aux/bootstrap: Accept --bootstrap-sync to update
20204         bootstrap if it is not identical to the local gnulib's
20205         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20206         enable this by default.  Accept --no-bootstrap-sync to disable
20207         it.
20209 2010-11-20  Bruno Haible  <bruno@clisp.org>
20211         Ensure that <features.h> is included before __GLIBC__ is tested.
20212         * lib/printf-parse.h: Include <features.h>.
20213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20214         Reported by Mike Frysinger <vapier@gentoo.org>.
20216         Ensure that <features.h> is included before __GLIBC__ is tested.
20217         * lib/wchar.in.h: Include <features.h>.
20218         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20219         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20220         Reported by Mike Frysinger <vapier@gentoo.org>.
20222         Ensure that <features.h> is included before __GLIBC__ is tested.
20223         * lib/arpa_inet.in.h: Include <features.h>.
20224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20225         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20226         Reported by Mike Frysinger <vapier@gentoo.org>.
20228         Ensure that <features.h> is included before __GLIBC__ is tested.
20229         * build-aux/link-warning.h: Include <features.h>.
20230         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20231         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20232         Reported by Mike Frysinger <vapier@gentoo.org>.
20234         Ensure that <features.h> is included before __GLIBC__ is tested.
20235         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20236         Reported by Mike Frysinger <vapier@gentoo.org>.
20238 2010-11-20  Bruno Haible  <bruno@clisp.org>
20240         memmem: Fix autoconf test.
20241         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20243 2010-11-20  Bruno Haible  <bruno@clisp.org>
20245         Port to uClibc.
20246         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20247         * lib/fcntl.in.h: Likewise.
20248         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20249         * lib/mbrtowc.c (mbrtowc): Likewise.
20250         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20251         * lib/strerror_r.c: Likewise.
20252         * lib/unistr/u8-strnlen.c: Likewise.
20253         * lib/vasnprintf.c (decimal_point_char): Likewise.
20254         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20255         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20256         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20257         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20258         * tests/test-sigaction.c (handler, main): Likewise.
20259         * lib/freading.h: Treat uClibc like a non-glibc platform.
20260         * lib/freading.c: Likewise.
20261         * lib/gettext.h: Likewise.
20262         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20263         Likewise.
20264         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20265         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20266         * lib/propername.c (proper_name_utf8): Likewise.
20267         * lib/spawn.in.h: Likewise.
20268         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20269         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20270         mem_cd_iconveh_internal): Likewise.
20271         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20272         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20273         strstr, strcasestr): Likewise.
20274         * lib/unicodeio.c (unicode_to_mb): Likewise.
20275         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20276         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20277         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20278         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20279         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20280         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20281         * lib/unistr/u8-stpncpy.c: Likewise.
20282         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20283         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20285         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20286         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20288         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20291         Likewise.
20292         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20293         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20297         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20298         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20299         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20300         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20301         * tests/test-striconveha.c (main): Likewise.
20302         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20303         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20304         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20305         * doc/posix-functions/getline.texi: Likewise.
20306         Reported by Mike Frysinger <vapier@gentoo.org>.
20308 2010-11-20  Bruno Haible  <bruno@clisp.org>
20310         nproc: Fix condition.
20311         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20312         HAVE_PTHREAD_AFFINITY_NP.
20314 2010-11-20  Bruno Haible  <bruno@clisp.org>
20316         Fix a comment.
20317         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20319 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20321         ftoastr: don't assume snprintf
20322         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20323         Implement a subset of snprintf here, by using sprintf safely.
20324         * modules/ftoastr (Depends-on): Remove snprintf.
20326 2010-11-19  Jim Meyering  <meyering@redhat.com>
20328         test-rename.h: fix compilation failure
20329         * tests/test-rename.h (test_rename): Add omitted "}".
20331 2010-11-17  Jim Meyering  <meyering@redhat.com>
20333         maint.mk: add a URL discussing the no-@acronym policy
20334         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20336 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20338         ftoastr: depend on snprintf, improve comments
20339         * lib/ftoastr.c: Also mention Loitsch's draft.
20340         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20341         needed in the current implementation, but it might simplify
20342         speeding up the code later.
20343         * modules/ftoastr: Depend on snprintf; this improves portability.
20344         Suggested by Bruno Haible in the same email.
20346         ftoastr: port to hosts lacking strtof and strtold
20347         Problem reported by Bruno Haible in
20348         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20349         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20350         environment and strtold (and presumably strtof) are not available.
20351         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20352         (configure.ac): Require gl_C99_STRTOLD.
20354 2010-11-18  Bruno Haible  <bruno@clisp.org>
20356         c-strtold: Avoid link error on AIX 7.
20357         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20358         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20359         (gl_C_STRTOLD): Test whether strtold_l exists.
20360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20362 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20364         intprops: new macro INT_BITS_STRLEN_BOUND
20365         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20366         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20367         not exposed.  Also, it uses a slightly tighter bound than before;
20368         though this makes no practical difference, we might as well be as
20369         tight as we easily can.
20371         ftoastr: new module, for lossless conversion of floats to short strings
20372         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20373         * modules/ftoastr: New files.
20375 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20377         bootstrap: port to Solaris sed
20378         * build-aux/bootstrap (get_version): Port to Solaris sed.
20379         See Ralf Wildenhues's note in
20380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20382 2010-11-14  Jim Meyering  <meyering@redhat.com>
20384         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20385         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20386         and move definition closer to sole use.
20388 2010-11-13  Jim Meyering  <meyering@redhat.com>
20390         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20391         Now we require at least autoconf-2.59, which means the work-around
20392         is no longer needed.
20393         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20394         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20395         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20396         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20397         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20399 2010-11-13  Bruno Haible  <bruno@clisp.org>
20401         rename, renameat: Avoid test failures at NFS mounted locations.
20402         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20403         functions.
20404         (test_rename): Use assert_nonexistent.
20405         * tests/test-rename.c: Include <dirent.h>.
20406         * tests/test-renameat.c: Likewise.
20407         Reported by Gary V. Vaughan <gary@gnu.org>.
20409         rename, renameat: Document Linux bug with NFS
20410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20411         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20412         * doc/posix-functions/renameat.texi: Likewise.
20413         Suggested by Eric Blake.
20415 2010-11-13  Bruno Haible  <bruno@clisp.org>
20417         rename test: Add comments.
20418         * tests/test-rename.h (test_rename): Add structure and comments.
20420 2010-11-13  Eric Blake  <eblake@redhat.com>
20422         maintainer-makefile: cover a few more files
20423         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20424         scripts generated within C files, for libvirt.
20426 2010-11-13  Bruno Haible  <bruno@clisp.org>
20428         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20429         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20430         character, return the number of bytes that belong together, not always
20431         1.
20432         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20433         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20434         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20435         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20436         number of bytes of an invalid character.
20437         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20438         (main): Invoke it.
20439         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20440         results.
20441         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20442         malformed byte sequences.
20443         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20444         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20445         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20446         Reported by Ben Pfaff and Paolo Bonzini.
20448 2010-11-13  Bruno Haible  <bruno@clisp.org>
20450         openat: Work around glibc bug with fchownat() and empty file names.
20451         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20452         (gl_FUNC_FCHOWNAT): Invoke it.
20453         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20454         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20455         Reported by Gary V. Vaughan <gary@gnu.org>.
20457 2010-11-13  Bruno Haible  <bruno@clisp.org>
20459         openat: Ensure autoconf macro ordering.
20460         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20461         gl_USE_SYSTEM_EXTENSIONS.
20462         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20464 2010-11-13  Bruno Haible  <bruno@clisp.org>
20466         Update comments.
20467         * lib/unistr/u8-check.c: Update file name in comments.
20468         * lib/unistr/u8-mblen.c: Likewise.
20469         * lib/unistr/u8-prev.c: Likewise.
20470         * lib/unistr/u8-strmblen.c: Likewise.
20471         * lib/unistr/u8-strmbtouc.c: Likewise.
20473 2010-11-13  Jim Meyering  <meyering@redhat.com>
20475         tests: avoid test failure on Solaris 10 due to lack of PATH export
20476         * tests/test-update-copyright.sh: Don't forget to export PATH.
20478         init.sh: ensure that IFS is defined, just in case...
20479         * tests/init.sh (setup_): Ensure that IFS is defined,
20480         so that saving and restoring it works as expected.  This
20481         appears to be useful at least for an old version of dash
20482         from a long time ago (RH 6).  See here for details:
20483         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20485         maint.mk: tighten "test a == b" check
20486         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20487         test to files that contain something like #!/bin/sh.
20488         Without this, coreutils would get two false positives in
20489         the comments of C source files.
20491 2010-11-12  Eric Blake  <eblake@redhat.com>
20493         bootstrap: fix typo in previous attempt
20494         * build-aux/bootstrap (buildreq): Correct the grouping.
20495         Reported by Paul Eggert.
20497         maintainer-makefile: prohibit test x == x
20498         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20499         Based on a report by Matthias Bolte.
20501         bootstrap: allow FreeBSD gzip
20502         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20503         which has no '.' and goes to stderr.
20504         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20505         Reported by Matthias Bolte.
20507         maintainer-makefile: check for i18n setup
20508         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20509         will likely work.
20511 2010-11-12  Bruno Haible  <bruno@clisp.org>
20513         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20514         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20515         * lib/nanosleep.c (nanosleep): Likewise.
20517 2010-11-11  Bruno Haible  <bruno@clisp.org>
20519         fcntl-h: Fix for use of C++ on glibc systems.
20520         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20521         also on glibc systems in C++ mode.
20522         Reported by Gary V. Vaughan <gary@gnu.org>.
20524 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20526         mknod: avoid false failure with dash
20527         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20529 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20531         unlink: Fix "is it should" typo in diagnostic.
20532         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20535 2010-11-11  Bruno Haible  <bruno@clisp.org>
20537         Tests for module 'strerror_r-posix'.
20538         * modules/strerror_r-posix-tests: New file.
20539         * tests/test-strerror_r.c: New file.
20540         * tests/test-string-c++.cc: Check the signature of strerror_r.
20542         New module 'strerror_r-posix'.
20543         * lib/string.in.h (strerror_r): New declaration.
20544         * lib/strerror_r.c: New file.
20545         * m4/strerror_r.m4: New file.
20546         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20547         of strerror_r.
20548         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20549         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20550         * modules/strerror_r-posix: New file.
20551         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20552         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20553         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20554         portability problems.
20556 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20558         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20559         line is also considered for output. Quoted function name in shell
20560         command, so temporary files for functions like MyClass::operator()
20561         are removed correctly without errors.
20563 2010-11-09  Bruno Haible  <bruno@clisp.org>
20565         * doc/posix-functions/strerror.texi: List more failing platforms.
20567         * doc/posix-functions/strerror.texi: Add a comment.
20569 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20571         fdopendir: fix bug on MacOS X when low on file descriptors
20573         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20574         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20575         All callers changed.
20576         (fdopendir): Invoke save_cwd at the top level, not after using
20577         multiple dup() calls to use up file descriptors.  Then retry
20578         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20579         less than the maximum number of open file descriptors, because
20580         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20581         on Mac OS X 10.6.4 for tar 1.24
20582         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20583         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20584         and for tar 1.25
20585         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20587 2010-11-07  Bruno Haible  <bruno@clisp.org>
20589         vasnprintf: Support I flag on glibc systems.
20590         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20591         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20592         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20593         snprintf function.
20594         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20595         glibc systems.
20596         * tests/test-vasnprintf-posix3.c: New file.
20597         * modules/vasnprintf-posix-tests (Files): Add it.
20598         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20600 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20602         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20603         * MODULES.html.sh: For compiler warnings, use name
20604         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20606 2010-11-05  Eric Blake  <eblake@redhat.com>
20608         ceil, floor: avoid spurious failure with icc
20609         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20610         [denormals-as-zero] when optimizing without -mieee-fp option.
20611         * tests/test-floorf2.c (floorf_reference): Likewise.
20612         * tests/test-ceilf1.c (dummy): New function.
20613         (main): Use it to outsmart icc's optimization.
20614         * tests/test-floorf1.c (dummy, main): Likewise.
20616         tests: require working signbit
20617         * modules/ceilf-tests (Depends-on): Add signbit.
20618         * modules/ceill-tests (Depends-on): Likewise.
20619         * modules/floorf-tests (Depends-on): Likewise.
20620         * modules/floorl-tests (Depends-on): Likewise.
20621         * modules/round-tests (Depends-on): Likewise.
20622         * modules/roundf-tests (Depends-on): Likewise.
20623         * modules/roundl-tests (Depends-on): Likewise.
20624         * modules/trunc-tests (Depends-on): Likewise.
20625         * modules/truncf-tests (Depends-on): Likewise.
20626         * modules/truncl-tests (Depends-on): Likewise.
20628         strtod: work around icc bug
20629         * lib/strtod.c (minus_zero): Define to working value.
20630         (strtod): Use it to avoid icc bug.
20632         copysign: enhance tests
20633         * modules/copysign-tests (Files): Add minus-zero.h.
20634         * tests/test-copysign.c (main): Also test zeros.
20636 2010-11-04  Eric Blake  <eblake@redhat.com>
20638         ceil, floor, round, trunc: enhance tests of -0
20639         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20640         * tests/test-ceill.c (main): Likewise.
20641         * tests/test-floorf1.c (main): Likewise.
20642         * tests/test-floorl.c (main): Likewise.
20643         * tests/test-round1.c (main): Likewise.
20644         * tests/test-roundf1.c (main): Likewise.
20645         * tests/test-roundl.c (main): Likewise.
20646         * tests/test-trunc1.c (main): Likewise.
20647         * tests/test-truncf1.c (main): Likewise.
20648         * tests/test-truncl.c (main): Likewise.
20650 2010-11-04  Eric Blake  <eblake@redhat.com>
20652         frexp, tests: work around ICC bug with -zero
20653         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20654         works with more compilers.
20655         * tests/minus-zero.h: New file.
20656         * modules/ceilf-tests (Files): Include it.
20657         * modules/ceill-tests (Files): Likewise.
20658         * modules/floorf-tests (Files): Likewise.
20659         * modules/floorl-tests (Files): Likewise.
20660         * modules/frexp-nolibm-tests (Files): Likewise.
20661         * modules/frexp-tests (Files): Likewise.
20662         * modules/frexpl-nolibm-tests (Files): Likewise.
20663         * modules/frexpl-tests (Files): Likewise.
20664         * modules/isnan-tests (Files): Likewise.
20665         * modules/isnand-nolibm-tests (Files): Likewise.
20666         * modules/isnand-tests (Files): Likewise.
20667         * modules/isnanf-nolibm-tests (Files): Likewise.
20668         * modules/isnanf-tests (Files): Likewise.
20669         * modules/isnanl-nolibm-tests (Files): Likewise.
20670         * modules/isnanl-tests (Files): Likewise.
20671         * modules/round-tests (Files): Likewise.
20672         * modules/roundf-tests (Files): Likewise.
20673         * modules/roundl-tests (Files): Likewise.
20674         * modules/ldexpl-tests (Files): Likewise.
20675         * modules/signbit-tests (Files): Likewise.
20676         * modules/snprintf-posix-tests (Files): Likewise.
20677         * modules/sprintf-posix-tests (Files): Likewise.
20678         * modules/strtod-tests (Files): Likewise.
20679         * modules/trunc-tests (Files): Likewise.
20680         * modules/truncf-tests (Files): Likewise.
20681         * modules/truncl-tests (Files): Likewise.
20682         * modules/vsnprintf-posix-tests (Files): Likewise.
20683         * modules/vsprintf-posix-tests (Files): Likewise.
20684         * modules/vasnprintf-posix-tests (Files): Likewise.
20685         * modules/vasprintf-posix-tests (Files): Likewise.
20686         * tests/test-ceilf1.c (main): Use it.
20687         * tests/test-ceill.c (main): Likewise.
20688         * tests/test-floorf1.c (main): Likewise.
20689         * tests/test-floorl.c (main): Likewise.
20690         * tests/test-frexp.c (main): Likewise.
20691         * tests/test-frexpl.c (main): Likewise.
20692         * tests/test-isnan.c (main): Likewise.
20693         * tests/test-isnand.h (main): Likewise.
20694         * tests/test-isnanf.h (main): Likewise.
20695         * tests/test-isnanl.h (main): Likewise.
20696         * tests/test-ldexpl.c (main): Likewise.
20697         * tests/test-round.c (main): Likewise.
20698         * tests/test-roundf.c (main): Likewise.
20699         * tests/test-roundl.c (main): Likewise.
20700         * tests/test-signbit.c (test_signbitf, test_signbitd)
20701         (test_signbitl): Likewise.
20702         * tests/test-snprintf-posix.h (test_function): Likewise.
20703         * tests/test-sprintf-posix.h (test_function): Likewise.
20704         * tests/test-strtod.c (main): Likewise.
20705         * tests/test-trunc1.c (main): Likewise.
20706         * tests/test-truncf1.c (main): Likewise.
20707         * tests/test-truncl.c (main): Likewise.
20709         isnanl: work around icc bug
20710         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20712 2010-11-03  Eric Blake  <eblake@redhat.com>
20714         tests: fix compiler warnings
20715         * tests/test-getopt.h (test_getopt): Fix condition.
20716         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20717         * tests/test-pipe2.c (main): Likewise.
20718         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20720         utimens: fix broken m4 test
20721         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20723 2010-10-28  Bruno Haible  <bruno@clisp.org>
20725         posix_spawn*, getdtablesize: Relax license.
20726         * modules/posix_spawn (License): Change to LGPLv2+.
20727         * modules/posix_spawnp (License): Likewise.
20728         * modules/posix_spawn-internal (License): Likewise.
20729         * modules/posix_spawnattr_init (License): Likewise.
20730         * modules/posix_spawnattr_getflags (License): Likewise.
20731         * modules/posix_spawnattr_setflags (License): Likewise.
20732         * modules/posix_spawnattr_getpgroup (License): Likewise.
20733         * modules/posix_spawnattr_setpgroup (License): Likewise.
20734         * modules/posix_spawnattr_getschedparam (License): Likewise.
20735         * modules/posix_spawnattr_setschedparam (License): Likewise.
20736         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20737         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20738         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20739         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20740         * modules/posix_spawnattr_getsigmask (License): Likewise.
20741         * modules/posix_spawnattr_setsigmask (License): Likewise.
20742         * modules/posix_spawnattr_destroy (License): Likewise.
20743         * modules/posix_spawn_file_actions_init (License): Likewise.
20744         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20745         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20746         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20747         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20748         * modules/getdtablesize (License): Likewise.
20749         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20751 2010-10-26  Bruno Haible  <bruno@clisp.org>
20753         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20754         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20755         Cygwin and mingw.
20756         Suggested by Eric Blake.
20758 2010-10-26  Bruno Haible  <bruno@clisp.org>
20760         stdio: Work around compilation error due to renameat() on Solaris 10.
20761         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20762         * lib/renameat.c: Don't include <unistd.h> here.
20763         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20764         Reported by Paul Eggert and Eric Blake.
20766 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20768         renameat: port to Solaris 10, which declares renameat in unistd.h
20770         * lib/renameat.c: Include unistd.h before stdio.h, because
20771         Solaris 10 declares renameat in unistd.h.  Problem encountered
20772         when building GNU tar 1.24 on Solaris 10.
20774 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20776         fdopendir: fix C89 compilation
20777         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20778         compilers.
20780 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20782         inttostr: simplify by removing unnecessary redundancy
20783         * lib/anytostr.c: Don't include verify.h.
20784         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20785         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20786         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20787         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20788         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20789         Likewise.
20790         * modules/inttostr (Depends-on): Remove 'verify'.
20792 2010-10-23  Bruno Haible  <bruno@clisp.org>
20794         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20795         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20796         Reported by Eric Blake.
20798 2010-10-23  Bruno Haible  <bruno@clisp.org>
20800         Tests: Fix LOCALE_JA on MirBSD 10.
20801         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20802         to an UTF-8 locale.
20803         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20805         Reported by Eric Blake.
20807 2010-10-21  Bruno Haible  <bruno@clisp.org>
20809         nl_langinfo test: Avoid test failure on NetBSD 5.
20810         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20811         Reported by Eric Blake.
20813 2010-10-21  Eric Blake  <eblake@redhat.com>
20815         c-stack: work around libsigsegv 2.8 bug
20816         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20817         overflow on at least PowerPC64.
20819 2010-10-17  Bruno Haible  <bruno@clisp.org>
20821         userspec: Drop redundant file.
20822         * modules/userspec (Files): Remove lib/inttostr.h.
20824 2010-10-17  Bruno Haible  <bruno@clisp.org>
20826         nl_langinfo tests: Silence some warnings.
20827         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20828         Reported by Jim Meyering.
20830 2010-10-17  Bruno Haible  <bruno@clisp.org>
20832         Make use of GCC's attribute __alloc_size__.
20833         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20834         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20835         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20836         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20837         __alloc_size__.
20838         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20839         Suggested by Jim Meyering.
20841 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20843         bootstrap: anchor .gitignore entries.
20844         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20845         with...
20846         (insert_vc_ignore): ... this new function, which prepends `/' to
20847         all .gitignore entries before passing them to
20848         insert_sorted_if_absent.
20850 2010-10-16  Bruno Haible  <bruno@clisp.org>
20852         nextafter: Fix configure check.
20853         * modules/nextafter (configure.ac): Correct expected prototype.
20855 2010-10-16  Bruno Haible  <bruno@clisp.org>
20857         termios: Update documentation.
20858         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20860 2010-10-16  Bruno Haible  <bruno@clisp.org>
20862         tests: Make them compile with TinyCC.
20863         * tests/test-strstr.c (main): Remove parentheses around array
20864         initializer.
20866 2010-10-15  Eric Blake  <eblake@redhat.com>
20868         ignore-value: make header idempotent
20869         * lib/ignore-value.h: Add double-inclusion guards.
20870         Reported by Stefan Berger.
20872 2010-10-15  Jim Meyering  <meyering@redhat.com>
20874         GNUmakefile: handle "stable" target, not "major"
20875         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20876         lists in maint.mk and announce-gen.  Without this, "make stable"
20877         would fail to ensure that $(VERSION) is up to date.
20879 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20881         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20882         & co.
20884 2010-10-14  Bruno Haible  <bruno@clisp.org>
20886         vasnprintf: Don't set errno to 0.
20887         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20888         block that sets it to 0.
20889         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20891 2010-10-14  Bruno Haible  <bruno@clisp.org>
20893         socketlib: Fix.
20894         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20895         gl_PREREQ_SYS_H_WINSOCK2.
20896         Reported by Ian Beckwith <ianb@erislabs.net>.
20898 2010-10-13  Jim Meyering  <meyering@redhat.com>
20900         test-select-stdin.c: avoid warn_unused_result warnings
20901         * tests/test-select-stdin.c: Include "macros.h".
20902         ASSERT that read and fflush succeed.
20904 2010-10-13  Jim Meyering  <meyering@redhat.com>
20906         git-version-gen: do require git-VC'd files in cwd
20907         * build-aux/git-version-gen: Reject a git version string
20908         if there are no commits associated with the current directory.
20909         This avoids an unlikely false-positive (unrelated dir whose parent
20910         repository also contains a tag matching v*), as pointed out
20911         by Giuseppe Scrivano in
20912         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20914 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20916         argv-iter: omit nonconforming declaration
20917         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20918         enum arg_iter_err declaration, which doesn't conform to C99.
20919         Solaris 10 cc warns about this.
20921 2010-10-13  Eric Blake  <eblake@redhat.com>
20923         termios: fix compilation on mingw
20924         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20925         (gl_TERMIOS_H): Adjust it on mingw.
20926         * modules/termios (Makefile.am): Substitute new key.
20927         * lib/termios.in.h (includes): Make include_next conditional.
20928         * doc/posix-headers/termios.texi (termios.h): Update
20929         documentation.
20930         Reported by Daniel P. Berrange.
20932 2010-10-13  Jim Meyering  <meyering@redhat.com>
20934         git-version-gen: don't require that .git/ be in the current dir
20935         * build-aux/git-version-gen: Adjust this script so that it works
20936         when run from any working directory beneath the top-level .git/-
20937         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20938         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20940         test-select: avoid warn_unused_result warnings
20941         * tests/test-select.c: Include "macros.h".
20942         ASSERT that each call to read, write, and pipe succeeds.
20943         While not technically required, also check each "close".
20944         * modules/select-tests (Files): Add tests/macros.h.
20946         test-symlinkat: remove declaration of unused local
20947         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20949         test-inttostr: avoid shadowing warnings
20950         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20951         and use malloc rather than the stack for the same reason as
20952         mentioned in the comment justifying the other allocation.
20954 2010-10-11  Bruno Haible  <bruno@clisp.org>
20956         stdlib: Allow multiple gnulib generated replacements to coexist.
20957         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20958         Reported by Sam Steingold <sds@gnu.org>.
20960 2010-10-11  Jim Meyering  <meyering@redhat.com>
20962         fix a documentation typo
20963         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20965 2010-10-11  Eric Blake  <eblake@redhat.com>
20967         futimens: work around Solaris 11 bug
20968         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20969         * tests/test-futimens.h (test_futimens): Enhance, rather than
20970         weaken test.
20971         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20973 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20975         Indentation.
20976         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20977         higher-level operators more to the left.
20979 2010-10-11  Jim Meyering  <meyering@redhat.com>
20981         test-futimens: avoid unwarranted test failure on Solaris 5.11
20982         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20983         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20984         because it tries to dereference the NULL name argument.
20986 2010-10-11  Bruno Haible  <bruno@clisp.org>
20988         Indentation.
20989         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20990         indentation.
20992 2010-10-11  Jim Meyering  <meyering@redhat.com>
20994         spawn.in.h: make indentation consistent with parentheses
20995         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20996         Make indentation consistent with parentheses.
20998 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21000         Fix mismatched parens in previous commit
21001         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21002         parens.
21004 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21006         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21008         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21009         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21010         * lib/malloca.c: Include "verify.h".
21011         (verify1): Remove, replacing with a verify call.
21012         * lib/relocwrapper.c (verify1): Likewise.
21013         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21014         Likewise.
21015         * modules/malloca (Depends-on): Add 'verify'.
21016         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21017         * modules/vasnprintf (Depends-on): Add 'verify'.
21018         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21019         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21020         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21021         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21022         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21023         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21024         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21026         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21028         Formerly the style was sometimes 2*X - 1, because the C standard
21029         was wrongly thought to disallow ?: in integral constant expressions.
21030         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21031         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21032         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21033         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21034         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21035         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21036         verify that time_t cannot be floating.
21038 2010-10-08  Eric Blake  <eblake@redhat.com>
21040         time: enforce recent POSIX ruling that time_t is integral
21041         * lib/time.in.h (__time_t_must_be_integral): Detect any
21042         problematic systems, allowing the rest of gnulib to assume POSIX.
21044 2010-10-08  Jim Meyering  <meyering@redhat.com>
21046         fdopendir: fix a bug on systems lacking openat and /proc support
21047         OpenBSD 4.7 is one such system.  The most noticeable effect was
21048         failure of any application making nontrivial use of fts: rm, du,
21049         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21050           ./rm: traversal failed: `a': Bad file descriptor
21051         Debugging that, you see that even though FD 6 was closed just
21052         prior to the opendir call in fd_clone_opendir, its resulting
21053         dir->dd_fd was 8, rather than the expected value of 6:
21055         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21056         93                close (fd);
21057         (gdb) n
21058         94                dir = fd_clone_opendir (dupfd);
21059         (gdb) n
21060         95                saved_errno = errno;
21061         (gdb) p dir->dd_fd
21062         $11 = 8
21064         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21065         The problem is that on OpenBSD, fd_clone_opendir has to resort
21066         to using the old-style save/restore CWD mechanism, due to its
21067         lack of openat/proc support, and *that* would steal the FD (6)
21068         that opendir was supposed to use.
21070         The fix is to squirrel away the desired FD so that save_cwd uses a
21071         different one, and then free the dest FD right before calling opendir.
21072         That guarantees opendir will use the required file descriptor.
21074         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21076 2010-10-08  Bruno Haible  <bruno@clisp.org>
21078         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21079         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21081 2010-10-08  Bruno Haible  <bruno@clisp.org>
21083         nanosleep: Make replacement POSIX compliant.
21084         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21085         is out of range.
21086         Reported by Jim Meyering.
21088 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21090         bootstrap: add hook for altering gnulib.mk, for Bison
21091         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21092         the Bison bootstrapping process can rewrite file names and variables
21093         in this file before later parts of 'bootstrap' use the file.
21094         Bison wants to include lib/gnulib.mk from the top-level makefile,
21095         so it needs the file names in this file to be relative to the top
21096         level, not relative to lib; plus it needs variable names to be
21097         rewritten.
21098         (slurp): Use the new function.
21100         bootstrap: reformat for readability
21101         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21103 2010-10-08  Eric Blake  <eblake@redhat.com>
21105         docs: update cygwin progress
21106         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21107         1.7.7.
21108         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21109         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21110         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21111         * doc/posix-functions/carg.texi (carg): Likewise.
21112         * doc/posix-functions/cargf.texi (cargf): Likewise.
21113         * doc/posix-functions/casin.texi (casin): Likewise.
21114         * doc/posix-functions/casinf.texi (casinf): Likewise.
21115         * doc/posix-functions/casinh.texi (casinh): Likewise.
21116         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21117         * doc/posix-functions/catan.texi (catan): Likewise.
21118         * doc/posix-functions/catanf.texi (catanf): Likewise.
21119         * doc/posix-functions/catanh.texi (catanh): Likewise.
21120         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21121         * doc/posix-functions/ccos.texi (ccos): Likewise.
21122         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21123         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21124         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21125         * doc/posix-functions/cexp.texi (cexp): Likewise.
21126         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21127         * doc/posix-functions/cimag.texi (cimag): Likewise.
21128         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21129         * doc/posix-functions/clog.texi (clog): Likewise.
21130         * doc/posix-functions/clogf.texi (clogf): Likewise.
21131         * doc/posix-functions/conj.texi (conj): Likewise.
21132         * doc/posix-functions/conjf.texi (conjf): Likewise.
21133         * doc/posix-functions/cpow.texi (cpow): Likewise.
21134         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21135         * doc/posix-functions/cproj.texi (cproj): Likewise.
21136         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21137         * doc/posix-functions/creal.texi (creal): Likewise.
21138         * doc/posix-functions/crealf.texi (crealf): Likewise.
21139         * doc/posix-functions/csin.texi (csin): Likewise.
21140         * doc/posix-functions/csinf.texi (csinf): Likewise.
21141         * doc/posix-functions/csinh.texi (csinh): Likewise.
21142         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21143         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21144         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21145         * doc/posix-functions/ctan.texi (ctan): Likewise.
21146         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21147         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21148         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21149         * doc/posix-headers/complex.texi (complex.h): Likewise.
21151 2010-10-07  Jim Meyering  <meyering@redhat.com>
21153         parse-datetime: avoid compilation failure on OpenBSD 4.7
21154         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21155         This works around a compilation failure on OpenBSD 4.7:
21156         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21158 2010-10-07  Eric Blake  <eblake@redhat.com>
21160         docs: update cygwin progress
21161         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21162         1.7.6.
21163         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21164         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21165         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21166         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21167         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21168         Likewise.
21169         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21170         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21171         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21172         Likewise.
21173         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21174         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21175         Likewise.
21176         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21177         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21178         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21179         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21180         Likewise.
21181         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21182         Likewise.
21183         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21185         docs: update parse-datetime history
21186         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21187         documentation of this function's history and alternatives.
21189         cygwin: use more robust version check
21190         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21191         exclude an eventual cygwin 1.9.1.
21192         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21194         (gl_FUNC_STRCASESTR): Likewise.
21195         Reported by Bruno Haible.
21197 2010-10-06  Bruno Haible  <bruno@clisp.org>
21199         string, sys_select: Avoid #including large headers unless necessary.
21200         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21201         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21202         OSF/1, BeOS, Haiku.
21203         Reported by Jim Meyering.
21205 2010-10-05  Eric Blake  <eblake@redhat.com>
21207         memmem, strstr, strcasestr: fix bug with long periodic needle
21208         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21209         periodic needle having false positive.
21210         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21211         and cygwin 1.7.7.
21212         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21214         (gl_FUNC_STRCASESTR): Likewise.
21215         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21216         * tests/test-memmem.c (main): Expose the bug.
21217         * tests/test-strcasestr.c (main): Likewise.
21218         * tests/test-strstr.c (main): Likewise.
21219         * tests/test-c-strcasestr.c (main): Likewise.
21220         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21221         * doc/posix-functions/strstr.texi (strstr): Likewise.
21222         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21223         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21225 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21227         parse-datetime: do some more renaming
21228         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21229         parse_datetime, not get_date.  Mention the renaming.
21230         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21231         in comments.
21232         * m4/bison.m4: Likewise.
21234 2010-10-05  Eric Blake  <eblake@redhat.com>
21236         parse-datetime: better name than get_date
21237         * NEWS: Reword the deprecation notice.
21238         * modules/get_date: Rename to modules/parse-datetime.
21239         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21240         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21241         * lib/get_date.y: Rename to lib/parse-datetime.y.
21242         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21243         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21244         * doc/getdate.texi: Provide fallback wrapper.
21245         * lib/getdate.h: Move guts, and wrap...
21246         * lib/parse-datetime.h: ...new file.
21247         * lib/parse-datetime.y (get_date): Rename...
21248         (parse_datetime): ...to this.
21249         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21250         (gl_PARSE_DATETIME): ...to this.
21251         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21252         documentation.
21253         * modules/getdate (Files): Provide fallback docs and header.
21254         (Notice, Depends-on): Update references.
21255         * tests/test-parse-datetime.c: Likewise.
21256         * DEPENDENCIES: Likewise.
21257         * MODULES.html.sh (Date and time <time.h>): Likewise.
21258         * doc/parse-datetime.texi (Date input formats)
21259         (Authors of parse_datetime): Likewise.
21260         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21261         (Include): Likewise.
21262         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21263         * gnulib-tool: Likewise.
21264         * m4/bison.m4 (gl_BISON): Likewise.
21265         Suggested by Bruno Haible.
21267 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21269         more ports to Solaris tr, which needs [] around ranges
21270         * gnulib-tool: Solaris tr needs [] around ranges.
21271         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21272         * tests/test-pipe-filter-gi1.c (main): Likewise.
21273         * tests/test-pipe-filter-ii1.c (main): Likewise.
21275 2010-10-05  Eric Blake  <eblake@redhat.com>
21277         bootstrap: fix Solaris regression
21278         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21279         around ranges.
21280         Reported by Pádraig Brady.
21282         bootstrap: work with pkg-config
21283         * build-aux/bootstrap (check_versions): Also transliterate - in
21284         prerequisite name.
21285         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21286         prerequisites that were already found, to avoid confusion.
21287         Reported by Justin Clift.
21289         faccessat: remove unused wrappers
21290         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21291         presence of these wrappers dragged in -lgen on Solaris.
21292         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21294 2010-10-05  Jim Meyering  <meyering@redhat.com>
21296         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21297         * Makefile (sc_pragma_columns): New syntax-check rule.
21299 2010-10-04  Bruno Haible  <bruno@clisp.org>
21301         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21302         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21303         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21304         Reported by Bruce Korb and Eric Blake.
21306 2010-10-04  Bruno Haible  <bruno@clisp.org>
21308         threadlib: Make option --with-libpth-prefix work.
21309         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21310         use $LIBPTH, not just -lpth.
21312 2010-10-04  Bruno Haible  <bruno@clisp.org>
21314         Avoid line length limitation from HP NonStop system header files.
21315         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21316         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21317         * lib/ctype.in.h: Likewise.
21318         * lib/dirent.in.h: Likewise.
21319         * lib/errno.in.h: Likewise.
21320         * lib/fcntl.in.h: Likewise.
21321         * lib/float.in.h: Likewise.
21322         * lib/getopt.in.h: Likewise.
21323         * lib/iconv.in.h: Likewise.
21324         * lib/inttypes.in.h: Likewise.
21325         * lib/langinfo.in.h: Likewise.
21326         * lib/locale.in.h: Likewise.
21327         * lib/math.in.h: Likewise.
21328         * lib/netdb.in.h: Likewise.
21329         * lib/netinet_in.in.h: Likewise.
21330         * lib/poll.in.h: Likewise.
21331         * lib/pthread.in.h: Likewise.
21332         * lib/pty.in.h: Likewise.
21333         * lib/sched.in.h: Likewise.
21334         * lib/se-selinux.in.h: Likewise.
21335         * lib/search.in.h: Likewise.
21336         * lib/signal.in.h: Likewise.
21337         * lib/spawn.in.h: Likewise.
21338         * lib/stdarg.in.h: Likewise.
21339         * lib/stddef.in.h: Likewise.
21340         * lib/stdint.in.h: Likewise.
21341         * lib/stdio.in.h: Likewise.
21342         * lib/stdlib.in.h: Likewise.
21343         * lib/string.in.h: Likewise.
21344         * lib/strings.in.h: Likewise.
21345         * lib/sys_file.in.h: Likewise.
21346         * lib/sys_ioctl.in.h: Likewise.
21347         * lib/sys_select.in.h: Likewise.
21348         * lib/sys_socket.in.h: Likewise.
21349         * lib/sys_stat.in.h: Likewise.
21350         * lib/sys_time.in.h: Likewise.
21351         * lib/sys_times.in.h: Likewise.
21352         * lib/sys_utsname.in.h: Likewise.
21353         * lib/sys_wait.in.h: Likewise.
21354         * lib/sysexits.in.h: Likewise.
21355         * lib/termios.in.h: Likewise.
21356         * lib/time.in.h: Likewise.
21357         * lib/unistd.in.h: Likewise.
21358         * lib/wchar.in.h: Likewise.
21359         * lib/wctype.in.h: Likewise.
21360         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21361         * modules/ctype (Makefile.am): Likewise.
21362         * modules/dirent (Makefile.am): Likewise.
21363         * modules/errno (Makefile.am): Likewise.
21364         * modules/fcntl-h (Makefile.am): Likewise.
21365         * modules/float (Makefile.am): Likewise.
21366         * modules/getopt-posix (Makefile.am): Likewise.
21367         * modules/iconv-h (Makefile.am): Likewise.
21368         * modules/inttypes (Makefile.am): Likewise.
21369         * modules/langinfo (Makefile.am): Likewise.
21370         * modules/locale (Makefile.am): Likewise.
21371         * modules/math (Makefile.am): Likewise.
21372         * modules/netdb (Makefile.am): Likewise.
21373         * modules/netinet_in (Makefile.am): Likewise.
21374         * modules/poll-h (Makefile.am): Likewise.
21375         * modules/pthread (Makefile.am): Likewise.
21376         * modules/pty (Makefile.am): Likewise.
21377         * modules/sched (Makefile.am): Likewise.
21378         * modules/search (Makefile.am): Likewise.
21379         * modules/selinux-h (Makefile.am): Likewise.
21380         * modules/signal (Makefile.am): Likewise.
21381         * modules/spawn (Makefile.am): Likewise.
21382         * modules/stdarg (Makefile.am): Likewise.
21383         * modules/stddef (Makefile.am): Likewise.
21384         * modules/stdint (Makefile.am): Likewise.
21385         * modules/stdio (Makefile.am): Likewise.
21386         * modules/stdlib (Makefile.am): Likewise.
21387         * modules/string (Makefile.am): Likewise.
21388         * modules/strings (Makefile.am): Likewise.
21389         * modules/sys_file (Makefile.am): Likewise.
21390         * modules/sys_ioctl (Makefile.am): Likewise.
21391         * modules/sys_select (Makefile.am): Likewise.
21392         * modules/sys_socket (Makefile.am): Likewise.
21393         * modules/sys_stat (Makefile.am): Likewise.
21394         * modules/sys_time (Makefile.am): Likewise.
21395         * modules/sys_times (Makefile.am): Likewise.
21396         * modules/sys_utsname (Makefile.am): Likewise.
21397         * modules/sys_wait (Makefile.am): Likewise.
21398         * modules/sysexits (Makefile.am): Likewise.
21399         * modules/termios (Makefile.am): Likewise.
21400         * modules/time (Makefile.am): Likewise.
21401         * modules/unistd (Makefile.am): Likewise.
21402         * modules/wchar (Makefile.am): Likewise.
21403         * modules/wctype (Makefile.am): Likewise.
21405 2010-10-04  Bruno Haible  <bruno@clisp.org>
21407         read-file tests: Avoid a test failure on NonStop Kernel.
21408         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21409         a regular file.
21410         Reported by Joachim Schmitz <schmitz@hp.com>.
21412 2010-10-03  Bruno Haible  <bruno@clisp.org>
21414         gnulib-tool: Fixes for --create-testdir with --libtool.
21415         * gnulib-tool (func_get_automake_snippet): Don't augment
21416         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21417         an executable.
21418         (func_create_testdir): Handle module 'alloca' like func_import.
21419         Reported by Bruce Korb <bruce.korb@gmail.com>.
21421 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21423         Avoid some lines longer than 80 characters.
21424         * lib/stdint.in.h: Break long comment lines.
21425         * lib/math.in.h: Likewise.
21426         (_GL_NUM_UINT_WORDS): New macro, for readability.
21427         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21428         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21429         * lib/stdlib.in.h: Likewise.
21430         * lib/spawn.in.h: Likewise.
21431         * lib/sys_socket.in.h: Update an URL.
21432         * lib/sys_stat.in.h: Break long line.
21434 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21436         Improve pmccabe2html.
21437         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21438         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21439         when the sources change. Remove the line in the HTML about "Used
21440         ranges" (which implied that there might be other unused ranges),
21441         rename "Resume" to "Summary" (easier to understand for more users).
21442         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21443         styles, and some unnecessary blank lines.
21445 2010-10-03  Bruno Haible  <bruno@clisp.org>
21446             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21448         acl: Add support for ACLs on NonStop Kernel.
21449         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21450         Check whether the function aclsort() exists.
21451         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21452         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21453         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21454         (acl_nontrivial [HAVE_ACLSORT]: New function.
21455         (file_has_acl): Implement for NonStop Kernel.
21456         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21457         (qset_acl): Implement for NonStop Kernel.
21458         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21459         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21460         (main): Implement for NonStop Kernel.
21461         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21462         Kernel. Handle this flavor.
21463         * tests/test-set-mode-acl.sh: Likewise.
21464         * tests/test-copy-acl.sh: Likewise.
21465         * tests/test-copy-file.sh: Likewise.
21467 2010-10-03  Bruno Haible  <bruno@clisp.org>
21469         Info about ACLs on NonStop Kernel.
21470         * doc/acl-resources.txt: Add info about NonStop Kernel.
21471         References by Joachim Schmitz <schmitz@hp.com>.
21473 2010-10-02  Bruno Haible  <bruno@clisp.org>
21475         Define missing EDQUOT on NonStop Kernel.
21476         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21477         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21478         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21479         missing.
21480         * doc/posix-headers/errno.texi: Mention the NSK bug.
21481         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21482         Reported by Joachim Schmitz <schmitz@hp.com>.
21484 2010-10-02  Bruno Haible  <bruno@clisp.org>
21486         Update doc for POSIX:2008.
21487         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21488         Update URL of POSIX specification.
21490 2010-10-02  Bruno Haible  <bruno@clisp.org>
21492         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21493         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21494         from gnulib, not from Automake.
21496 2010-10-02  Bruno Haible  <bruno@clisp.org>
21498         New module 'system-posix'.
21499         * modules/system-posix: New file.
21500         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21501         module is present.
21502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21503         GNULIB_SYSTEM_POSIX.
21504         * modules/stdlib (Depends-on): Remove sys_wait.
21505         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21506         * doc/posix-functions/system.texi: Mention the new module.
21507         * doc/posix-headers/stdlib.texi: Likewise.
21508         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21509         define test_sys_wait_macros to a no-op.
21510         Reported by Sam Steingold <sds@gnu.org>.
21512 2010-09-30  Bruno Haible  <bruno@clisp.org>
21514         More renaming from 'getdate' to 'get_date'.
21515         * doc/get_date.texi: Renamed from doc/getdate.texi.
21516         * modules/get_date (Files): Update.
21517         * MODULES.html.sh (Date and time <time.h>): Update.
21518         * DEPENDENCIES: Update.
21519         * gnulib-tool: Update comment.
21520         * m4/bison.m4 (gl_BISON): Likewise.
21521         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21523 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21525         bootstrap: support ACLOCAL_FLAGS during aclocal
21526         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21527         can add additional -I dir for third-party .m4 files.
21529 2010-09-30  Eric Blake  <eblake@redhat.com>
21531         bootstrap: use glibtoolize on MacOS
21532         * build-aux/bootstrap (check_versions): Convert libtool into
21533         libtoolize.
21534         (tool search): Move libtool check earlier, and look for
21535         glibtoolize for MacOS.
21536         (gnulib_tool_options): Auto-add --libtool when appropriate.
21537         Reported by Justin Clift.
21539         poll: fix typo that broke test on MacOS
21540         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21541         Reported by Justin Clift.
21543         getdate: rename to get_date
21544         Note: getdate.h is not renamed, to minimize client impact.
21545         * modules/getdate: Mark obsolete.  Move old contents...
21546         * modules/get_date: ...to new module name.
21547         * modules/getdate-tests: Move...
21548         * modules/get_date-tests: ...here.
21549         * m4/getdate.m4: Move...
21550         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21551         * lib/getdate.y: Move...
21552         * lib/get_date.y: ...here.
21553         * tests/test-getdate.c: Move...
21554         * tests/test-get_date.c: ...here.
21555         * doc/posix-functions/getdate.texi (getdate): Update name.
21556         * NEWS: Mention the change.
21558 2010-09-29  Bruno Haible  <bruno@clisp.org>
21560         Separate the module 'waitpid' from the module 'sys_wait'.
21561         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21562         present.
21563         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21564         gl_MODULE_INDICATOR_FOR_TESTS.
21565         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21566         * modules/sys_wait (Depends-on): Remove waitpid.
21567         (Makefile.am): Substitute GNULIB_WAITPID.
21568         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21569         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21570         signature only if the 'waitpid' module is present.
21571         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21572         * NEWS: Mention the change.
21573         * modules/grantpt (Depends-on): Add waitpid.
21574         * modules/wait-process (Depends-on): Likewise.
21576 2010-09-29  Bruno Haible  <bruno@clisp.org>
21578         More tests for module 'sys_wait'.
21579         * modules/sys_wait-c++-tests: New file.
21580         * tests/test-sys_wait-c++.cc: New file.
21581         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21582         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21584 2010-09-29  Bruno Haible  <bruno@clisp.org>
21586         New module 'waitpid'.
21587         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21588         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21589         Don't include <process.h>.
21590         (waitpid): Declare only, using modern idiom.
21591         * m4/waitpid.m4: New file.
21592         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21593         * modules/waitpid: New file.
21594         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21595         (Makefile.am): Update.
21596         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21598 2010-09-28  Bruno Haible  <bruno@clisp.org>
21600         poll: Assume ANSI C.
21601         * lib/poll.c (poll): Use an ANSI C declaration.
21603 2010-09-28  Bruno Haible  <bruno@clisp.org>
21605         poll-h: Create poll.h on all platforms.
21606         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21607         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21608         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21609         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21610         (gl_REPLACE_POLL_H): Don't set POLL_H.
21611         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21612         * modules/poll-h (Depends-on): Add include_next.
21613         (Makefile.am): Create poll.h unconditionally. Substitute also
21614         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21616 2010-09-28  Bruno Haible  <bruno@clisp.org>
21618         Tests for module 'poll-h'.
21619         * modules/poll-h-c++-tests: New file.
21620         * tests/test-poll-h-c++.cc: New file.
21622         Tests for module 'poll-h'.
21623         * modules/poll-h-tests: New file.
21624         * tests/test-poll-h.c: New file.
21626 2010-09-28  Bruno Haible  <bruno@clisp.org>
21628         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21629         * modules/poll-h (Depends-on): Add 'extensions'.
21631 2010-09-28  Bruno Haible  <bruno@clisp.org>
21633         New module 'poll-h'.
21634         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21635         (poll): Use modern idiom.
21636         * modules/poll-h: New file.
21637         * modules/poll (Files): Remove lib/poll.in.h.
21638         (Depends-on): Add poll-h.
21639         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21640         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21641         * m4/poll_h.m4: New file.
21642         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21643         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21644         and invoke gl_REPLACE_POLL_H.
21645         * lib/poll.c: Use common idiom.
21646         * tests/test-poll.c: Likewise.
21647         * doc/posix-headers/poll.texi: Mention the poll-h module.
21648         Suggested by Eric Blake.
21650 2010-09-26  Bruno Haible  <bruno@clisp.org>
21652         sys_wait: Implement WSTOPSIG.
21653         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21654         Reported by Simon Josefsson.
21656 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21658         stdlib, sys_wait: Avoid compilation error on mingw.
21659         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21661 2010-09-26  Bruno Haible  <bruno@clisp.org>
21663         stdlib tests: Avoid code duplication.
21664         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21665         * modules/sys_wait-tests (Files): Likewise.
21666         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21667         * tests/test-stdlib.c: Include test-sys_wait.h.
21668         (main): Invoke test_sys_wait_macros.
21669         * tests/test-sys_wait.c: Include test-sys_wait.h.
21670         (main): Invoke test_sys_wait_macros.
21672 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21674         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21675         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21676         sure Windows sockets are working before calling getaddrinfo.
21677         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21678         * doc/gnulib.texi (Windows sockets): Fix typo.
21680 2010-09-25  Bruno Haible  <bruno@clisp.org>
21682         Tests for module 'regex-quote'.
21683         * modules/regex-quote-tests: New file.
21684         * tests/test-regex-quote.c: New file.
21686         New module 'regex-quote'.
21687         * lib/regex-quote.h: New file.
21688         * lib/regex-quote.c: New file.
21689         * modules/regex-quote: New file.
21690         Suggested by Reuben Thomas <rrt@sc3d.org>.
21692 2010-09-24  Bruno Haible  <bruno@clisp.org>
21694         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21695         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21697 2010-09-23  Bruno Haible  <bruno@clisp.org>
21699         setenv: Relax license.
21700         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21701         Blake.
21702         Requested by Eric Blake.
21704 2010-09-22  Bruno Haible  <bruno@clisp.org>
21706         termios: Relax license.
21707         * modules/termios (License): Change to LGPLv2+.
21708         Requested by Eric Blake.
21710 2010-09-22  Bruno Haible  <bruno@clisp.org>
21712         threadlib: Allow the package to change the default to 'no'.
21713         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21714         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21715         Reported by Paul Eggert.
21717 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21718             Bruno Haible  <bruno@clisp.org>
21720         Fix endless loop in mbmemcasecoll.
21721         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21722         byte.
21723         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21725 2010-09-22  Bruno Haible  <bruno@clisp.org>
21727         Tests for module 'memcoll'.
21728         * modules/memcoll-tests: New file.
21729         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21731         memcoll, xmemcoll: Clarify size vs. length.
21732         * modules/memcoll.c (memcoll0): Clarify specification.
21733         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21734         passed to collate_error.
21736 2010-09-22  Bruno Haible  <bruno@clisp.org>
21738         Tests for module 'memcasecmp'.
21739         * modules/memcasecmp-tests: New file.
21740         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21742 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21744         * lib/pthread.in.h: Add split double-inclusion guard, and include
21745         system <pthread.h> if there is one.  Use @@-style as in other
21746         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21747         pthread.h doesn't.
21748         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21749         (pthread_mutexattr_settype, pthread_mutex_trylock):
21750         New static inline functions, if there's no system <pthread.h>.
21751         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21752         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21753         Approximate with mutexes if the system lacks spinlocks, as in
21754         MacOS.
21755         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21756         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21757         @@-style.  Check for spinlocks separately.
21758         (gl_PTHREAD_DEFAULTS): New macro.
21759         * modules/pthread: Redo to use a more typical style for in.h files.
21761 2010-09-21  Eric Blake  <eblake@redhat.com>
21763         net_if: enhance tests
21764         * tests/test-net_if.c (main): Move signature checks earlier.
21765         Print failures to stderr.
21766         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21767         Document the bug that we do not yet fix.
21769 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21771         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21772         about gnulib, not GSS.
21774 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21776         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21777         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21778         for Emacs.
21779         * build-aux/pmccabe2html: Make Makefile.am example code more
21780         cut-and-paste friendly.
21782 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21784         * tests/test-net_if.c: New file.
21785         * modules/net_if-tests: New file.
21787 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21789         pthread: add pthread_spin_destroy
21790         * lib/pthread.in.h (pthread_spin_destroy): New function.
21792 2010-09-19  Bruno Haible  <bruno@clisp.org>
21794         gnulib-tool: Fix --help output.
21795         * gnulib-tool (func_usage): Fix help message.
21796         Reported by Reuben Thomas <rrt@sc3d.org>.
21798 2010-09-18  Jim Meyering  <meyering@redhat.com>
21800         maint.mk: avoid unexpanded \n in two diagnostics
21801         * top/maint.mk (sc_prohibit_always_true_header_tests):
21802         Don't use a literal \n in a halt=... assignment.  It would not be
21803         expanded, and the two \n bytes would appear in the diagnostic output
21804         rather than the desired newline.  Use halt=$$(printf ... instead.
21805         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21807 2010-09-18  Bruno Haible  <bruno@clisp.org>
21809         netinet_in: Doc tweak.
21810         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21811         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21813 2010-09-18  Jim Meyering  <meyering@redhat.com>
21815         init.sh: correct an outdated comment
21816         * tests/init.sh (create_exe_shims_):  s/function/alias/
21818         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21819         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21820         a file named "*.exe" is removed between the glob expansion and the
21821         processing of that oddly named file.
21823 2010-09-17  Eric Blake  <eblake@redhat.com>
21825         mirbsd: add some more support
21826         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21827         in BSD family.
21828         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21829         devices as OpenBSD.
21830         * m4/host-os.m4 (mirbsd): Add MirBSD.
21832         tests: fix unportable assumption on sys/wait.h
21833         * tests/test-sys_wait.c (main): Relax test.
21834         * tests/test-stdlib.c (main): Likewise.
21836         init.sh: accomodate directory with no .exes
21837         * tests/init.sh: Accomodate directory containing only scripts.
21839         tests: avoid compiler warning
21840         * tests/test-stdlib.c (main): Use the variable.
21842         fdutimens, fdutimensat: update signature, again
21843         * lib/utimens.h (gl_futimens): Delete, and move signature...
21844         (fdutimens): ...here.
21845         (fdutimensat): Rearrange signature.
21846         (lutimensat): Rename variable for clarity.
21847         * lib/fdutimensat.c (fdutimensat): Update signature.
21848         * lib/utimens.c (fdutimens): Likewise.
21849         (gl_futimens): Delete.
21850         (utimens, lutimens): Update callers.
21851         * lib/futimens.c (futimens): Likewise.
21852         * tests/test-fdutimensat.c: Likewise.
21853         * tests/test-utimens.c: Likewise.
21854         * tests/test-futimens.h: Update comment.
21855         * NEWS: Mention this.
21856         Suggested by Paul Eggert.
21858 2010-09-17  Bruno Haible  <bruno@clisp.org>
21860         Take over the maintenance of some older macros from Autoconf.
21861         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21862         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21863         GNU Autoconf.
21864         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21865         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21867 2010-09-17  Eric Blake  <eblake@redhat.com>
21869         fdutimensat: drop atflag validation
21870         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21871         with valid fd, to close a race scenario where futimens is
21872         unsupported and FILE was replaced by a symlink.
21873         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21874         accordingly.
21875         Suggested by Paul Eggert.
21877 2010-09-16  Bruno Haible  <bruno@clisp.org>
21879         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21880         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21882 2010-09-16  Bruno Haible  <bruno@clisp.org>
21884         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21885         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21886         login_tty exists.
21887         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21889 2010-09-16  Bruno Haible  <bruno@clisp.org>
21891         login_tty: Make the replacement code work on BSD systems.
21892         * lib/login_tty.c: Include <sys/ioctl.h>.
21893         (login_tty): Use ioctl TIOCSCTTY when available.
21894         * modules/login_tty (Depends-on): Add sys_ioctl.
21895         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21897 2010-09-16  Bruno Haible  <bruno@clisp.org>
21899         login_tty: Stricter unit test.
21900         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21901         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21902         and tcgetsid() after login_tty.
21903         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21905 2010-09-16  Bruno Haible  <bruno@clisp.org>
21907         New module 'tcgetsid'.
21908         * lib/tcgetsid.c: New file.
21909         * m4/tcgetsid.m4: New file.
21910         * modules/tcgetsid: New file.
21911         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21912         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21913         GNULIB_TCGETSID, HAVE_TCGETSID.
21914         * lib/termios.in.h: Include <sys/types.h>.
21915         (tcgetsid): New declaration.
21916         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21917         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21918         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21919         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21921 2010-09-16  Bruno Haible  <bruno@clisp.org>
21923         Tests for module 'termios'.
21924         * modules/termios-c++-tests: New file.
21925         * modules/termios-tests: New file.
21926         * tests/test-termios-c++.cc: New file.
21927         * tests/test-termios.c: New file.
21929         New module 'termios'.
21930         * modules/termios: New file.
21931         * lib/termios.in.h: New file.
21932         * m4/termios_h.m4: New file.
21933         * doc/posix-headers/termios.texi: Mention the new module.
21935 2010-09-16  Eric Blake  <eblake@redhat.com>
21937         fdutimensat: add an atflag parameter
21938         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21939         * lib/utimens.h (fdutimensat): Update prototype.
21940         * tests/test-fdutimensat.c: Adjust test to match.
21941         * NEWS: Document the change.
21942         Suggested by Paul Eggert.
21944 2010-09-16  Bruno Haible  <bruno@clisp.org>
21946         Fix typos in comments.
21947         * lib/striconveh.h: Fix typo in comment.
21948         * lib/login_tty.c (login_tty): Likewise.
21950 2010-09-15  Bruno Haible  <bruno@clisp.org>
21952         stdlib: clarify MirBSD WEXITSTATUS bug
21953         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21954         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21956 2010-09-15  Eric Blake  <eblake@redhat.com>
21958         stdlib: work around MirBSD WEXITSTATUS bug
21959         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21960         * modules/stdlib (Depends-on): Add sys_wait.
21961         * tests/test-sys_wait.c (main): Enhance test.
21962         * tests/test-stdlib.c (main): Likewise.
21963         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21965         docs: mention MacOS issue with WEXITSTATUS(constant)
21966         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21967         issue.
21968         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21970         strnlen: add tests
21971         * modules/strnlen-tests: New file.
21972         * tests/test-strnlen.c: Likewise.
21974 2010-09-14  Bruno Haible  <bruno@clisp.org>
21976         unistr/base: Avoid link errors when module 'libunistring' is also used.
21977         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21978         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21979         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21980         Declare also when HAVE_LIBUNISTRING is set.
21981         Reported by Pádraig Brady <P@draigbrady.com>.
21983 2010-09-14  Eric Blake  <eblake@redhat.com>
21985         test-rawmemchr: make more robust
21986         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21987         (Depends-on, configure.ac): Add needed prerequisites to use it.
21988         * modules/memchr-tests (Files, Depends-on, configure.ac):
21989         Likewise, to avoid implicit reliance on memchr module prereqs.
21990         * tests/test-memchr.c (main): Ensure proper masking.
21991         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21992         reads.
21994         memchr: detect glibc Alpha bug
21995         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21996         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21997         Alpha.
21998         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21999         * tests/test-memchr.c (main): Enhance test.
22000         Reported by Nelson H. F. Beebe.
22002 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22004         fts, getcwd, glob: audit for dirfd returning -1
22005         * lib/fts.c (opendir): Remove #define; no longer used.
22006         (opendirat): New arg PDIR_FD.  All callers changed.
22007         (fts_build, _opendir2): Use new opendirat to avoid the need for
22008         dirfd, or for checking whether dirfd returns a negative value.
22009         Don't use opendir; always use openat followed by fdopendir.
22010         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22011         it.
22012         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22013         returns -1 here.
22014         * modules/fts (Depends-on): Remove dirfd.
22015         * modules/getcwd (Depends-on): Likewise.
22017 2010-09-13  Eric Blake  <eblake@redhat.com>
22019         float: fix broken MirBSD header
22020         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22021         * doc/posix-headers/float.texi (float.h): Document it.
22023 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22025         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22026         * lib/fts.c (opendirat): New arg extra_flags.
22027         (__opendir2): Use it to avoid following symlinks when opening
22028         a directory, if symlinks are not supposed to be followed.  See
22029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22031         fdopendir: preserve argument fd before returning
22032         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22033         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22034         (fdopendir): Use them, arranging for FD to be open to the same
22035         directory that it was when it started.  (It might be temporarily
22036         closed while fdopendir is running, so this not thread- or
22037         signal-safe.)  Be careful to do the right thing even when file
22038         descriptors are scarce and dup fails with errno == EMFILE.  See
22039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22041 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22043         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22044         * NEWS: Document change.
22045         * m4/regex.m4: Disable test for regoff_t size.
22047 2010-09-13  Jim Meyering  <meyering@redhat.com>
22049         fts: don't operate on an invalid file descriptor after failed dup
22050         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22051         negative file descriptor.
22053 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22055         savedir: add streamsavedir, deprecate fdsavedir
22056         * NEWS: Mention deprecation of fdsavedir.
22057         * lib/savedir.c (streamsavedir): New extern function, whose name
22058         ends in "savedir" to be consistent with the others.  This differs
22059         from savedirstream in that it doesn't close its argument.  The
22060         next version of GNU tar will use this instead of fdsavedir, to
22061         avoid some race conditions and conserve file descriptors.
22062         (savedirstream): Reimplement as a wrapper around streamsavedir.
22063         (fdsavedir): Add a comment deprecating this function.  As far as
22064         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22065         * lib/savedir.h (streamsavedir): New decl.
22066         (fdsavedir): Add a comment deprecating this.
22068 2010-09-10  Bruno Haible  <bruno@clisp.org>
22070         langinfo: Fix last commit.
22071         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22072         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22075 2010-09-10  Bruno Haible  <bruno@clisp.org>
22077         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22078         * lib/progreloc.c (O_EXEC): Define fallback.
22080 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22082         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22083         * NEWS: Document recent changes to fcntl-h.
22084         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22085         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22086         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22087         Similarly for O_SEARCH; this last was already true, but not documented.
22088         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22089         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22090         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22091         Likewise.
22092         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22093         is zero, not whether it is defined.
22094         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22095         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22096         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22098 2010-09-10  Bruno Haible  <bruno@clisp.org>
22100         langinfo, nl_langinfo: Fix for IRIX 5.3.
22101         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22102         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22103         HAVE_LANGINFO_YESEXPR.
22104         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22105         HAVE_LANGINFO_YESEXPR.
22106         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22107         HAVE_LANGINFO_T_FMT_AMPM is 0.
22108         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22109         HAVE_LANGINFO_YESEXPR is 0.
22110         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22111         NOEXPR.
22112         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22113         * doc/posix-functions/nl_langinfo.texi: Likewise.
22114         Reported by Eric Blake.
22116 2010-09-10  Bruno Haible  <bruno@clisp.org>
22118         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22119         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22120         on FreeBSD 8.0 and OpenBSD 4.6.
22121         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22122         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22123         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22124         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22125         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22126         ac_includes_default.
22127         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22129 2010-09-09  Eric Blake  <eblake@redhat.com>
22131         strsignal: work around NetBSD bug
22132         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22133         * lib/string.in.h (includes): Likewise.
22134         * doc/posix-functions/strsignal.texi (strsignal): Document the
22135         bug.
22136         Reported by Nelson H. F. Beebe.
22138         gnulib-tool: work with NetBSD /bin/sh
22139         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22140         (func_get_description, func_get_comment, func_get_status)
22141         (func_get_notice, func_get_applicability, func_get_filelist)
22142         (func_get_dependencies, func_get_autoconf_early_snippet)
22143         (func_get_autoconf_snippet, func_get_automake_snippet)
22144         (func_get_include_directive, func_get_link_directive)
22145         (func_get_license, func_get_maintainer, func_import): Avoid
22146         shell syntax errors from parsing syntax extensions.
22148 2010-09-09  Bruno Haible  <bruno@clisp.org>
22150         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22151         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22152         a reliable way to determine whether the 'alias' command works.
22154 2010-09-08  Jim Meyering  <meyering@redhat.com>
22156         init.sh: penalize a set-x-impaired shell; don't disqualify it
22157         * tests/init.sh: Too many shells corrupt application stderr when
22158         you set -x, so we can't afford to disqualify them, since at least
22159         on Irix-6.5, that would disqualify all bourne shells.
22160         Instead, use a two-pass approach.
22161         On the first pass, try to find a shell that meets the stricter
22162         condition that set -x does not corrupt stderr.
22163         If no shell meets the stricter condition, retest each candidate
22164         shell, but without that extra condition.  Finally, when
22165         VERBOSE=yes is requested and set -x might cause trouble, simply
22166         issue a warning and refrain from enabling debug output.
22168 2010-09-08  Eric Blake  <eblake@redhat.com>
22170         unsetenv: fix OpenBSD bug
22171         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22172         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22173         documentation.
22174         Reported by Jim Meyering.
22176         strtod: work around IRIX 6.5 bug
22177         * lib/strtod.c (strtod): Reparse number on shorter string if
22178         exponent parse was invalid.
22179         * tests/test-strtod.c (main): Add check for "0x1p 2".
22180         Reported by Tom G. Christensen.
22182         getopt: optimize previous patch
22183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22184         empty variable.  Speed up awk script.
22185         Reported by Paolo Bonzini.
22187 2010-09-08  Jim Meyering  <meyering@redhat.com>
22189         test.sh: disqualify shells for which set -x corrupts stderr
22190         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22191         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22192         appear in stderr output.  For example, this command:
22193             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22194         prints "P=1" on those two systems:
22196 2010-09-08  Bruno Haible  <bruno@clisp.org>
22198         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22199         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22200         commands, because some shells ignore redirections when there is an
22201         error in the command lookup.
22202         Reported by Eric Blake.
22204 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22206         * lib/regex.h: Fix a mention of `regex_compile' (should be
22207         `re_compile_pattern').
22208         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22209         (re_set_registers): Correct name of parameter in comment.
22211         * doc/regex.texi: Add documentation for missing syntax flags.
22212         Remove commented-out documentation of defunct syntax option
22213         RE_NO_EMPTY_ALTS.
22214         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22215         Add documentation of re_set_registers.
22216         Document trick to re-use a pattern buffer by setting fastmap manually.
22217         Update documentation of struct re_pattern_buffer per public members.
22218         Uncomment documentation of equivalence class operators and
22219         collating symbol operators, since they are now implemented,
22220         Explain leftmost-longest matching in relation to alternatives.
22221         Tidy documentation of substring matching.
22222         Remove POSIX documentation, which is done better in
22223         glibc, and refer the reader there. Keep BSD API documentation, as
22224         that is not readily available elsewhere.
22226 2010-09-07  Eric Blake  <eblake@redhat.com>
22228         getopt: handle POSIXLY_CORRECT set but not exported
22229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22230         export state of POSIXLY_CORRECT, due to bash set -o posix.
22231         Reported by Dustin J. Mitchell.
22233 2010-09-05  Bruno Haible  <bruno@clisp.org>
22235         gnulib-tool: Highlight the changed options.
22236         * gnulib-tool (func_usage): Display the --import, --add-import,
22237         --remove-import explanations in bold font.
22239 2010-09-06  Karl Berry  <karl@gnu.org>
22241         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22243 2010-09-05  Bruno Haible  <bruno@clisp.org>
22245         uniwidth/width: Update comment.
22246         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22247         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22249 2010-09-05  Bruno Haible  <bruno@clisp.org>
22251         isinf, isnan: Relax license.
22252         * modules/isinf (License): Change from GPL to LGPL, with consent from
22253         Ben Pfaff.
22254         * modules/isnan (License): Likewise.
22255         Requested by Ludovic Courtès.
22257 2010-09-04  Bruno Haible  <bruno@clisp.org>
22259         gnulib-tool: Help migration from --import to --add-import or --update.
22260         * gnulib-tool: Emit a verbose error message when --import is used
22261         without any module name.
22263 2010-09-04  Bruno Haible  <bruno@clisp.org>
22265         Update doc about gnulib-tool.
22266         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22267         'gnulib-tool --update' in more detail.
22268         Reported by Eric Blake.
22270 2010-09-04  Bruno Haible  <bruno@clisp.org>
22272         gnulib-tool: Change --import. New options --add/remove-import.
22273         * gnulib-tool: New options --add-import, --remove-import.
22274         (func_usage): Document them.
22275         (have_associative): Define always.
22276         (func_import): In import mode, don't merge the specified settings with
22277         the cached settings. Implement remove-import mode.
22278         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22279         Explain when to use them versus --import.
22280         (Simple update): Use --add-import instead of --import.
22281         * NEWS: Mention the change.
22283 2010-09-04  Bruno Haible  <bruno@clisp.org>
22285         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22286         separate gnulib.mk.
22288 2010-09-04  Bruno Haible  <bruno@clisp.org>
22290         gnulib-tool: Don't talk about CVS any more.
22291         * gnulib-tool (func_usage, func_import): Write "version control"
22292         instead of CVS.
22294 2010-09-04  Jim Meyering  <meyering@redhat.com>
22296         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22297         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22298         false positives (whose names may be ill-chosen) when searching
22299         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22300         would cause a false-positive.
22302         avoid coreutils "make distcheck" failure
22303         Coreutils tests with an absolute build directory name that contains
22304         a space.  Not quoting this directory name caused a failure.
22305         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22306         * tests/test-vc-list-files-cvs.sh: Likewise.
22308 2010-09-04  Bruno Haible  <bruno@clisp.org>
22310         gnulib-tool: Avoid error when run in a package without Makefile.am.
22311         * gnulib-tool: When collecting the m4dirs in a package that does not
22312         have a Makefile.am, eliminate those directories that contain no
22313         gnulib-cache.m4. Fix expression that counts these directories.
22315 2010-09-04  Bruno Haible  <bruno@clisp.org>
22317         update-copyright test: Improve output when perl is missing or too old.
22318         * tests/test-update-copyright.sh: Move test of Perl version down after
22319         the test whether Perl exists. Provide an explanation relating Perl's
22320         error message to Automake's SKIP: message.
22322 2010-09-04  Bruno Haible  <bruno@clisp.org>
22324         Don't augment PATH in TESTS_ENVIRONMENT.
22325         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22326         set abs_aux_dir instead of augmenting PATH.
22327         * modules/vc-list-files-tests (Makefile.am): Likewise.
22328         * tests/test-update-copyright.sh: Augment PATH here.
22329         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22330         path_prepend_.
22331         * tests/test-vc-list-files-git.sh: Likewise.
22333 2010-09-04  Jim Meyering  <meyering@redhat.com>
22335         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22336         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22338 2010-09-04  Bruno Haible  <bruno@clisp.org>
22340         strdup: Fix compilation error in C++ mode.
22341         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22342         the macro.
22344 2010-09-04  Bruno Haible  <bruno@clisp.org>
22346         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22347         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22348         macro into a function.
22349         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22351 2010-09-04  Bruno Haible  <bruno@clisp.org>
22353         Set PATH_SEPARATOR the same way autoconf does.
22354         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22355         the value of PATH_SEPARATOR the same way autoconf-generated configure
22356         scripts do.
22357         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22358         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22360 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22362         Set PATH_SEPARATOR the same way autoconf does.
22363         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22364         the same way autoconf-generated configure scripts do.
22365         * posix-modules: Likewise.
22367 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22369         hash: fix safe_hasher const typo
22370         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22371         const; otherwise, there is a type error later.
22373 2010-09-02  Jim Meyering  <meyering@redhat.com>
22375         test-update-copyright.sh: require perl 5.8.0
22376         * tests/test-update-copyright.sh: Require 5.8.0,
22377         which Tom G. Christensen has confirmed is adequate,
22378         while 5.6.1 is not.
22380 2010-09-02  Eric Blake  <eblake@redhat.com>
22382         tests: init.sh improvements for re-exec'ing with zsh
22383         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22384         -vx through shell re-exec.
22385         Reported by Tom G. Christensen.
22387         wctype: fix typo in previous commit
22388         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22389         Reported by Ludovic Courtès.
22391 2010-09-02  Jim Meyering  <meyering@redhat.com>
22393         test-update-copyright.sh: skip test if Perl is too old
22394         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22395         Reported by Tom G. Christensen.
22397 2010-09-02  Bruno Haible  <bruno@clisp.org>
22399         wctype: Avoid compilation error on IRIX 6.5.30.
22400         * lib/wctype.in.h (iswblank): Declare with a replacement if
22401         REPLACE_ISWBLANK is set.
22402         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22403         declared. Set REPLACE_ISWBLANK.
22404         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22405         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22406         * doc/posix-headers/wctype.texi: Likewise.
22407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22409 2010-09-01  Bruno Haible  <bruno@clisp.org>
22411         New module 'socketlib'.
22412         * modules/socketlib: New file.
22413         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22414         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22415         * modules/sockets (Depends-on): Add socketlib.
22416         Suggested by Sam Steingold <sds@gnu.org>.
22418 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22420         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22422         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22423         when one needs search access to a directory but not read access.
22424         On systems where it is available, it works in some cases where
22425         O_RDONLY does not, namely on directories that are searchable but
22426         not readable, and which need only to be searchable.  If O_SEARCH
22427         is not available, fall back to the traditional method of using
22428         O_RDONLY.
22430         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22431         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22432         when opening a directory that needs only to be searchable.
22433         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22434         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22435         * lib/openat-proc.c (openat_proc_name): Likewise.
22436         * lib/openat.c (openat_needs_fchdir): Likewise.
22437         * lib/save-cwd.c (save_cwd): Likewise.
22438         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22440 2010-08-28  Bruno Haible  <bruno@clisp.org>
22442         New module 'host-cpu-c-abi'.
22443         * modules/host-cpu-c-abi: New file.
22444         * m4/host-cpu-c-abi.m4: New file, based on part of
22445         clisp/src/m4/general.m4.
22446         Requested by Sam Steingold <sds@gnu.org>.
22448 2010-08-31  Eric Blake  <eblake@redhat.com>
22449         and Jim Meyering  <meyering@redhat.com>
22451         hash: factor, and guard against misbehaving hasher function
22452         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22453         of table->hasher's return value.  Also protect against a hash value
22454         so large that adding it to table->bucket results in a NULL pointer.
22455         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22456         Use it in place of open-coded check-and-abort.
22458 2010-08-30  Bruno Haible  <bruno@clisp.org>
22460         hash: silence spurious clang warning
22461         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22462         Reported by Eric Blake.
22464 2010-08-30  Eric Blake  <eblake@redhat.com>
22466         strstr, memmem, strcasestr: avoid leaked shell message
22467         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22468         FreeBSD.
22469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22472         tests: silence clang warning
22473         * tests/test-malloca.c (do_allocation): Avoid dead store.
22475 2010-08-29  Bruno Haible  <bruno@clisp.org>
22477         gettext: Fix recent mistake.
22478         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22480 2010-08-29  Bruno Haible  <bruno@clisp.org>
22482         selinux-h: Offer a --without-selinux option.
22483         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22484         --without-selinux was specified, skip all tests and define
22485         HAVE_SELINUX_SELINUX_H to 0.
22486         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22487         set LIB_SELINUX to empty.
22488         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22489         gl_LIBSELINUX. If --without-selinux was specified, replace
22490         selinux/context.h.
22491         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22493 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22494             Bruno Haible  <bruno@clisp.org>
22496         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22497         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22498         of HAVE_REALLOC.
22499         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22500         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22501         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22502         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22504 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22505             Bruno Haible  <bruno@clisp.org>
22507         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22508         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22509         HAVE_CALLOC.
22510         * lib/xmalloc.c: Update accordingly.
22511         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22512         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22513         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22515 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22516             Bruno Haible  <bruno@clisp.org>
22518         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22519         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22520         HAVE_MALLOC.
22521         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22522         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22523         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22525 2010-08-29  Bruno Haible  <bruno@clisp.org>
22527         Update modules list.
22528         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22529         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22530         (String handling <string.h>): Add astrxfrm.
22531         (File system functions): Add readlinkat.
22533 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22535         Tests for module 'realloc-gnu'.
22536         * modules/realloc-gnu-tests: New file.
22537         * tests/test-realloc-gnu.c: New file.
22539         Tests for module 'calloc-gnu'.
22540         * modules/calloc-gnu-tests: New file.
22541         * tests/test-calloc-gnu.c: New file.
22543         Tests for module 'malloc-gnu'.
22544         * modules/malloc-gnu-tests: New file.
22545         * tests/test-malloc-gnu.c: New file.
22547 2010-08-28  Bruno Haible  <bruno@clisp.org>
22549         Rename module 'realloc' -> 'realloc-gnu'.
22550         * modules/realloc-gnu: New file, copied from modules/realloc.
22551         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22552         obsolete.
22553         * modules/mgetgroups (Depends-on): Update.
22554         * doc/posix-functions/realloc.texi: Update.
22555         * NEWS: Mention the change.
22557         Rename module 'calloc' -> 'calloc-gnu'.
22558         * modules/calloc-gnu: New file, copied from modules/calloc.
22559         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22560         obsolete.
22561         * doc/posix-functions/calloc.texi: Update.
22562         * NEWS: Mention the change.
22564         Rename module 'malloc' -> 'malloc-gnu'.
22565         * modules/malloc-gnu: New file, copied from modules/malloc.
22566         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22567         obsolete.
22568         * modules/argp (Depends-on): Update.
22569         * modules/regex (Depends-on): Update.
22570         * doc/posix-functions/malloc.texi: Update.
22571         * NEWS: Mention the change.
22573 2010-08-28  Eric Blake  <eblake@redhat.com>
22575         pread, pwrite: add missing dependency
22576         * modules/pread (Depends-on): Add extensions.
22577         * modules/pwrite (Depends-on): Likewise.
22579 2010-08-28  Bruno Haible  <bruno@clisp.org>
22581         unistr/u*-strchr: Fix tests dependencies.
22582         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22583         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22584         Reported by Ian Beckwith <ianb@erislabs.net>.
22586 2010-08-28  Bruno Haible  <bruno@clisp.org>
22588         read-file: Don't occupy too much unused memory.
22589         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22591 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22592             Eric Blake  <eblake@redhat.com>
22593             Bruno Haible  <bruno@clisp.org>
22595         read-file: Avoid memory reallocations with regular files.
22596         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22597         (fread_file): With regular files, use the remaining length as the
22598         initial buffer size.  Check against overflow.
22599         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22600         sys_stat.
22602 2010-08-28  Bruno Haible  <bruno@clisp.org>
22604         ftello: Relax license.
22605         * modules/ftello (License): Relax to LGPLv2+.
22606         Reported by Eric Blake.
22608 2010-08-28  Bruno Haible  <bruno@clisp.org>
22610         Avoid relocwrapper link errors due to gnulib replacement functions.
22611         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22612         function.
22613         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22615 2010-08-28  Bruno Haible  <bruno@clisp.org>
22617         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22618         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22619         defined.
22620         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22621         Suggested by Eric Blake.
22623 2010-08-28  Bruno Haible  <bruno@clisp.org>
22625         sys_socket, netdb: Ensure socklen_t gets defined.
22626         * modules/sys_socket (Depends-on): Add socklen.
22627         * modules/netdb (Depends-on): Likewise.
22628         * modules/getaddrinfo (Depends-on): Remove socklen.
22629         * modules/getsockopt (Depends-on): Likewise.
22630         * modules/setsockopt (Depends-on): Likewise.
22631         * tests/test-sys_socket.c: Check that socklen_t is defined.
22632         * tests/test-netdb.c: Likewise.
22633         * m4/socklen.m4: Update comments.
22634         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22636 2010-08-27  Eric Blake  <eblake@redhat.com>
22638         login_tty: add missing dependency
22639         * modules/login_tty (Depends-on): Add pty.
22641 2010-08-26  Eric Blake  <eblake@redhat.com>
22643         lib-symbol-versions: fix m4 quoting
22644         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22645         format for AC_LINK_IFELSE.
22647         glob: fix compile test
22648         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22650         btowc: fix missing file
22651         * modules/btowc (Files): Also ship locale-fr.m4.
22653         lseek: fix link test
22654         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22655         AC_LINK_IFELSE.
22657         include_next: silence autoconf 2.68 warning
22658         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22659         AC_COMPILE_IFELSE as special.
22660         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22661         autoconf < 2.68.
22663         acl: fix compilation test
22664         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22665         AC_COMPILE_IFELSE.
22667 2010-08-26  Bruno Haible  <bruno@clisp.org>
22669         Modernize AC_TRY_RUN invocations.
22670         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22671         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22672         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22673         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22674         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22675         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22676         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22678         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22679         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22680         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22681         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22682         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22683         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22685         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22686         gl_MBRLEN_NUL_RETVAL): Likewise.
22687         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22688         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22689         Likewise.
22690         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22691         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22692         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22693         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22694         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22695         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22696         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22697         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22698         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22699         Likewise.
22700         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22701         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22703         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22704         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22705         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22707         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22708         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22711 2010-08-26  Bruno Haible  <bruno@clisp.org>
22713         Modernize AC_TRY_LINK invocations.
22714         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22715         AC_TRY_LINK.
22716         * m4/argp.m4 (gl_ARGP): Likewise.
22717         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22718         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22719         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22720         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22721         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22722         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22723         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22724         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22725         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22726         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22727         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22728         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22729         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22730         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22731         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22732         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22733         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22734         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22735         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22736         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22737         Likewise.
22738         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22739         Likewise.
22740         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22741         Likewise.
22742         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22744         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22745         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22746         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22747         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22748         * m4/servent.m4 (gl_SERVENT): Likewise.
22749         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22750         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22751         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22752         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22753         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22754         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22755         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22756         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22757         * modules/tsearch-tests (configure.ac): Likewise.
22759 2010-08-26  Bruno Haible  <bruno@clisp.org>
22761         Modernize AC_TRY_COMPILE invocations.
22762         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22763         AC_TRY_COMPILE.
22764         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22765         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22766         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22767         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22768         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22769         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22770         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22771         * m4/lock.m4 (gl_LOCK): Likewise.
22772         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22773         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22774         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22775         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22776         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22777         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22778         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22780         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22781         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22782         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22783         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22784         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22785         extraneous semicolon.
22787 2010-08-26  Jim Meyering  <meyering@redhat.com>
22789         stat-time: relax license LGPL
22790         * modules/stat-time (License): Change from GPL to LGPL,
22791         with consent from all contributors, for use in libguile.
22792         Requested by Ludovic Courtès.
22794 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22796         poll: return immediately on POLLHUP.
22797         * lib/poll.c (poll): Always set timeout before wait_timeout is
22798         computed.
22800 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22802         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22803         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22804         rmdir ("dir/.//"), unlinkat.
22806 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22808         stdbool: avoid spurious failure with modern xlc
22809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22811 2010-08-24  Bruno Haible  <bruno@clisp.org>
22813         getloadavg: simplify code
22814         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22815         gl_have_func. Update comments.
22817 2010-08-24  Eric Blake  <eblake@redhat.com>
22819         getloadavg: don't define SVR4 on cygwin
22820         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22821         only define SVR4 when -lkvm is required.
22822         Reported by Yaakov Selkowitz.
22824 2010-08-24  Bruno Haible  <bruno@clisp.org>
22826         priv-set: fix comment
22827         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22829 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22831         priv-set: fix comments
22832         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22833         to match code, as suggested by David Bartley in:
22834         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22836 2010-08-23  Eric Blake  <eblake@redhat.com>
22838         stdbool: avoid rejecting clang
22839         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22840         * tests/test-stdbool.c: Enable more tests if using the system
22841         <stdbool.h> instead of the gnulib replacement.
22842         (main): Move xlc bug test to a runtime test for all compilers.
22843         Reported by Anders Kaseorg.
22845         argz: fix shell quoting issue
22846         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22847         Reported by Charles Wilson.
22849 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22850             Erik Faye-Lund <kusmabite@gmail.com>
22852         poll, select: handle ERROR_BROKEN_PIPE.
22853         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22854         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22855         * lib/select.c (win32_compute_revents): Do not mark a pipe
22856         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22858 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22860         fts: allow compilation with C++
22861         * lib/fts_.h: Specify extern "C" linkage with C++.
22863 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22865         Fix gnulib-tool sed script de-commentation for AIX sed.
22866         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22867         sed.
22869 2010-08-17  Eric Blake  <eblake@redhat.com>
22871         test-stddef: test for (some) offsetof bugs
22872         * tests/test-stddef.c: Enhance test to ensure correct type of
22873         offsetof.
22874         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22875         that we are not fixing at this time.
22877 2010-08-15  Bruno Haible  <bruno@clisp.org>
22879         stpncpy: Allow stpncpy to be defined as a macro.
22880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22881         if it's already correctly declared.
22882         * lib/string.in.h (stpncpy): Undefine before redefining.
22883         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22885 2010-08-14  Bruno Haible  <bruno@clisp.org>
22887         Rename module 'memxfrm' to 'amemxfrm'.
22888         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22889         (amemxfrm): Renamed from memxfrm.
22890         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22891         (amemxfrm): Renamed from memxfrm.
22892         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22893         * NEWS: Mention the change.
22894         * MODULES.html.sh (String handling <string.h>): Update.
22895         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22896         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22897         * lib/unicase/u16-casexfrm.c: Likewise.
22898         * lib/unicase/u32-casexfrm.c: Likewise.
22899         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22900         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22901         * lib/uninorm/u16-normxfrm.c: Likewise.
22902         * lib/uninorm/u32-normxfrm.c: Likewise.
22903         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22904         memxfrm.
22905         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22906         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22907         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22908         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22909         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22910         Suggested by Paul Eggert.
22912 2010-08-14  Bruno Haible  <bruno@clisp.org>
22914         Tests for module 'astrxfrm'.
22915         * modules/astrxfrm-tests: New file.
22916         * tests/test-astrxfrm.c: New file.
22918         New module 'astrxfrm'.
22919         * lib/astrxfrm.h: New file.
22920         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22921         * modules/astrxfrm: New file.
22923 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22925         regex: Tweak doc.
22926         * doc/regex.texi (Overview): Don't mention regex.c.
22927         (GNU Regular Expression Compiling): Likewise.
22928         (Match-end-of-line Operator): Mention 'not_eol'.
22930 2010-08-14  Brian Gough  <bjg@gnu.org>
22931             Bruno Haible  <bruno@clisp.org>
22933         git-merge-changelog: add doc relating to use with bzr and hg.
22934         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22936 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22938         pthread: fix pthread.h creation for srcdir != builddir
22939         * modules/pthread (Makefile.am): Fix the rule to work also in a
22940         non-srcdir build.
22942 2010-08-13  Karl Berry  <karl@gnu.org>
22944         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22945         * doc/posix-*/*: force line break before @url of POSIX
22946         specifications.
22947         Suggested by Werner Lemberg.
22949 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22951         strtod: fix const diagnostic
22952         * lib/strtod.c (strtod): Don't assign const char * to char *,
22953         as this elicits a warning from GCC when warnings are enabled.
22955 2010-08-10  Pádraig Brady <P@draigbrady.com>
22956         and Eric Blake  <eblake@redhat.com>
22958         copy-acl: ignore ENOTSUP on HP-UX
22959         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22960         so that it is available for HP-UX.
22961         * lib/copy-acl.c (qcopy_acl): Use it.
22962         Reported by Patrick M. Callahan.
22964 2010-08-10  Eric Blake  <eblake@redhat.com>
22966         open, chown: relax license
22967         * modules/open (License): Change to LGPLv2+, with consent by all
22968         authors, for use in augeas.
22969         * modules/chown (License): Likewise.
22970         * modules/lchown (Likewise): Likewise.
22971         Requested by Adam Stokes.
22973 2010-08-09  Karl Berry  <karl@gnu.org>
22975         * build-aux/ar-lib: new file, import from Automake.
22976         * config/srclist.txt: autocheck for updates.
22978 2010-08-09  Eric Blake  <eblake@redhat.com>
22980         readlinkat: adjust client modules
22981         * modules/areadlinkat (Depends-on): Use readlinkat, not
22982         symlinkat.
22983         * modules/areadlinkat-with-size (Depends-on): Likewise.
22985         mknod: be more vocal about danger of running tests as root
22986         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22987         root, since that is just asking for problems.
22988         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22990         readlinkat: split into its own module
22991         * modules/symlinkat: Split readlinkat...
22992         * modules/readlinkat: ...into separate module.
22993         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22994         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22995         * lib/symlinkat.c (readlinkat): Move...
22996         * lib/readlinkat.c: ...into new file.
22997         * modules/symlinkat-tests: Split readlinkat test...
22998         * modules/readlinkat-tests: ...into separate module.
22999         * tests/test-symlinkat.c: Split...
23000         * tests/test-readlinkat.c: ...into new file.
23001         * NEWS: Document the split.
23002         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23003         * lib/unistd.in.h (readlinkat): Likewise.
23004         Suggested by Bruno Haible.
23006 2010-08-08  Bruno Haible  <bruno@clisp.org>
23008         memxfrm: Speed up.
23009         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23010         that usually only one call to strxfrm is necessary for each string
23011         part.
23012         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23014 2010-08-07  Karl Berry  <karl@gnu.org>
23016         * doc/posix-headers/limits.texi,
23017         * doc/posix-functions/malloc.texi,
23018         * doc/posix-functions/strsignal.texi: missing @item.
23019         * doc/ld-version-script.texi: spurious leading i.
23020         * doc/regex.texi (Interval Operators): no commas inside @var.
23022 2010-08-01  Bruno Haible  <bruno@clisp.org>
23024         Integrate the regex documentation.
23025         * doc/gnulib.texi: Define 'cn' index.
23026         (Regular expressions): New a chapter that includes regex.texi and
23027         regexprops-generic.texi.
23028         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23029         syntax.
23031         Whitespace cleanup.
23032         * doc/regex.texi: Remove trailing spaces.
23034         Add regex documentation.
23035         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23036         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23037         Written by Kathy A. Hargreaves and Karl Berry.
23039 2010-08-01  Bruno Haible  <bruno@clisp.org>
23041         link: Update documentation.
23042         * doc/posix-functions/link.texi: Update regarding Solaris.
23044 2010-07-31  Bruno Haible  <bruno@clisp.org>
23046         Update modules list.
23047         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23048         (String handling <string.h>): Add memcmp2, memxfrm.
23049         (Container data structures): Add xlist, xsublist, xoset.
23050         (Core language properties): Add alignof, unused-parameter.
23051         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23052         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23053         (Unibyte characters <ctype.h>): New section.
23054         (String handling <string.h>): New section.
23055         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23056         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23057         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23058         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23059         tan, tanh, tanl, y0, y1, yn.
23060         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23061         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23062         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23063         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23064         unlockpt, vdprintf, vdprintf-posix.
23065         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23066         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23067         xconcat-filename.
23068         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23069         getdtablesize, pipe2, pipe2-safer.
23070         (Security): New section.
23071         (Networking functions): Add accept4.
23072         (Signal handling): Add sigpipe.
23073         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23074         mbmemcasecoll.
23075         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23076         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23077         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23078         pipe-filter-ii.
23079         (Misc): Add argp-version-etc, login_tty, parse-duration.
23081 2010-07-31  Bruno Haible  <bruno@clisp.org>
23083         Improve doc in MODULES.html.
23084         * modules/linkat (Description): Add the word "function".
23085         * modules/mkfifo (Description): Likewise.
23086         * modules/mknod (Description): Likewise.
23087         * modules/remove (Description): Likewise.
23088         * modules/renameat (Description): Likewise.
23089         * modules/stat (Description): Likewise.
23090         * modules/symlink (Description): Likewise.
23091         * modules/unlink (Description): Likewise.
23093 2010-07-31  Bruno Haible  <bruno@clisp.org>
23095         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23096         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23097         option --enable/disable-c++ instead of --enable/disable-cxx.
23098         * NEWS: Mention the change.
23100 2010-07-31  Bruno Haible  <bruno@clisp.org>
23102         readlink, areadlink: Relax test a bit.
23103         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23104         alternative to ENOTDIR.
23105         * tests/test-areadlink.h (test_areadlink): Likewise.
23106         Reported by Rainer Tammer.
23108 2010-07-31  Bruno Haible  <bruno@clisp.org>
23110         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23111         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23112         character, perform the search using U_STRCHR.
23113         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23114         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23115         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23116         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23117         Suggested by Paolo Bonzini.
23119 2010-07-31  Bruno Haible  <bruno@clisp.org>
23121         unistr/u*-strstr: Fix dependencies.
23122         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23123         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23124         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23126 2010-07-31  Bruno Haible  <bruno@clisp.org>
23128         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23129         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23130         the beginning of the loop.
23131         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23132         cases in 'switch' statement.
23134         unistr/u8-strchr: Fix several bugs.
23135         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23136         the string. When not found, return NULL, not a pointer near the end.
23138         More tests for unistr/u8-strchr.
23139         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23140         that the function does not read past the first occurrence of the byte
23141         being searched.
23142         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23143         * tests/unistr/test-u16-strchr.c (main): New function.
23144         * tests/unistr/test-u32-strchr.c (main): New function.
23146 2010-07-31  Bruno Haible  <bruno@clisp.org>
23148         posix-modules: Ignore backup files of documentation files.
23149         * posix-modules: grep only through files named *.texi.
23151 2010-07-31  Bruno Haible  <bruno@clisp.org>
23153         symlinkat: Fix documentation.
23154         * doc/posix-functions/readlinkat.texi: Fix module name.
23156 2010-07-31  Bruno Haible  <bruno@clisp.org>
23158         fchownat: Replace also when chown has the trailing slash bug.
23159         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23160         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23161         introduced on 2010-04-10.
23162         Reported by Rainer Tammer.
23164 2010-07-31  Bruno Haible  <bruno@clisp.org>
23166         linkat: Work around AIX 7.1 bug.
23167         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23168         whether linkat handles trailing slash correctly. If not, replace linkat
23169         and define LINKAT_TRAILING_SLASH_BUG.
23170         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23171         check whether (fd1,file1) points to a directory if file1 or file2 ends
23172         in a slash. Code taken from lib/link.c.
23173         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23174         Reported by Rainer Tammer.
23176 2010-07-31  Bruno Haible  <bruno@clisp.org>
23178         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23179         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23180         This disables an xlc optimization that was causing wrong test results.
23181         Reported by Rainer Tammer.
23183 2010-07-31  Bruno Haible  <bruno@clisp.org>
23185         iconv: Work around AIX 6.1..7.1 bug.
23186         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23187         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23188         cross-compiling, guess no on all versions of AIX.
23189         Reported by Rainer Tammer.
23191 2010-07-31  Bruno Haible  <bruno@clisp.org>
23193         readlink: Relax test a bit.
23194         * tests/test-readlink.h (test_readlink): Allow different errno value
23195         when readlink is called with a file name that ends in / and refers to
23196         a file.
23197         Suggested by Eric Blake.
23198         Reported by Rainer Tammer.
23200 2010-07-31  Bruno Haible  <bruno@clisp.org>
23202         copysign: Does not require -lm on glibc systems.
23203         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23204         gl_COMMON_DOUBLE_MATHFUNC.
23205         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23207 2010-07-31  Bruno Haible  <bruno@clisp.org>
23209         duplocale: Work around AIX 7.1 bug.
23210         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23211         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23212         * lib/duplocale.c (rpl_duplocale): Update comment.
23213         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23214         Reported by Rainer Tammer.
23216 2010-07-30  Bruno Haible  <bruno@clisp.org>
23218         dirfd: Avoid link error on AIX 7.1.
23219         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23220         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23221         exist, set REPLACE_DIRFD.
23222         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23223         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23224         * doc/posix-functions/dirfd.texi: Update.
23225         Reported by Rainer Tammer.
23227 2010-07-30  Eric Blake  <eblake@redhat.com>
23229         strtod: next round of AIX fixes
23230         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23231         exponent.
23232         * tests/test-strtod.c (main): Enhance tests.
23233         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23234         Reported by Rainer Tammer.
23236         futimens: fix configure check
23237         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23238         Reported by Bruno Haible.
23240 2010-07-30  Bruno Haible  <bruno@clisp.org>
23242         getline: Update regarding AIX.
23243         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23244         Reported by Rainer Tammer.
23246 2010-07-30  Bruno Haible  <bruno@clisp.org>
23248         wcwidth: Drop replacement on AIX 7.
23249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23250         AIX 7.
23251         Reported by Rainer Tammer.
23253 2010-07-30  Bruno Haible  <bruno@clisp.org>
23255         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23256         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23257         a 'char *'.
23258         Reported by Rainer Tammer.
23260 2010-07-30  Bruno Haible  <bruno@clisp.org>
23262         unlink: Update regarding AIX.
23263         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23264         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23265         Reported by Rainer Tammer.
23267 2010-07-30  Bruno Haible  <bruno@clisp.org>
23269         symlink: Update regarding AIX.
23270         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23271         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23272         Reported by Rainer Tammer.
23274 2010-07-30  Bruno Haible  <bruno@clisp.org>
23276         strndup: Update regarding AIX.
23277         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23278         AIX 7.
23279         Reported by Rainer Tammer.
23281 2010-07-30  Bruno Haible  <bruno@clisp.org>
23283         stat: Update regarding AIX.
23284         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23285         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23286         Reported by Rainer Tammer.
23288 2010-07-30  Bruno Haible  <bruno@clisp.org>
23290         truncl: Fix autoconf test.
23291         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23292         whether truncl works.
23293         Reported by Rainer Tammer.
23295 2010-07-30  Bruno Haible  <bruno@clisp.org>
23297         round: Update regarding AIX.
23298         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23299         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23300         Reported by Rainer Tammer.
23302 2010-07-30  Bruno Haible  <bruno@clisp.org>
23304         rename: Update regarding AIX.
23305         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23306         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23307         Reported by Rainer Tammer.
23309 2010-07-30  Bruno Haible  <bruno@clisp.org>
23311         printf.m4: Update regarding AIX.
23312         * m4/printf.m4: Update comments regarding AIX.
23313         Reported by Rainer Tammer.
23315 2010-07-30  Bruno Haible  <bruno@clisp.org>
23317         iconv: Update regarding AIX.
23318         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23319         AIX 7.
23320         Reported by Rainer Tammer.
23322 2010-07-30  Bruno Haible  <bruno@clisp.org>
23324         getopt: Update regarding AIX.
23325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23326         no on AIX.
23327         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23328         Reported by Rainer Tammer.
23330 2010-07-30  Bruno Haible  <bruno@clisp.org>
23332         ldexpl; Update regarding AIX.
23333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23334         on AIX 7.
23335         Reported by Rainer Tammer.
23337 2010-07-30  Bruno Haible  <bruno@clisp.org>
23339         frexpl: Update regarding AIX.
23340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23341         on AIX 7.
23342         Reported by Rainer Tammer.
23344 2010-07-30  Bruno Haible  <bruno@clisp.org>
23346         open, fopen: Update regarding AIX.
23347         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23348         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23349         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23350         * doc/posix-functions/fopen.texi: Likewise.
23351         Reported by Rainer Tammer.
23353 2010-07-30  Bruno Haible  <bruno@clisp.org>
23355         chown: Update doc regarding AIX.
23356         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23357         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23358         Reported by Rainer Tammer.
23360 2010-07-30  Eric Blake  <eblake@redhat.com>
23362         strtod: fix bug in replacement function on AIX
23363         * lib/strtod.c (strtod): Special case broken "0x" parse in
23364         underlying strtod.
23365         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23366         * doc/posix-functions/strtod.texi (strtod): Likewise.
23367         Reported by Rainer Tammer.
23369 2010-07-30  Bruno Haible  <bruno@clisp.org>
23371         mbrlen: Fix cross-compilation guess for AIX.
23372         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23373         guess. Leftover from 2008-12-22.
23375 2010-07-30  Bruno Haible  <bruno@clisp.org>
23377         mbrtowc: Fix cross-compilation guess for AIX.
23378         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23379         guess. Leftover from 2008-12-21.
23381 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23383         init.sh: work around trap limitation of some shells
23384         * tests/init.sh (setup_): Move exit trap outside of shell function.
23386 2010-07-29  Eric Blake  <eblake@redhat.com>
23388         strtod: aid debugging
23389         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23390         understanding why strtod is rejected.
23392 2010-07-28  Bruno Haible  <bruno@clisp.org>
23394         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23395         * lib/unistr/u8-chr.c: Include <string.h>.
23396         * tests/unistr/test-u8-chr.c: Likewise.
23397         * tests/unistr/test-u16-chr.c: Likewise.
23398         * tests/unistr/test-u32-chr.c: Likewise.
23399         * tests/unistr/test-u8-strchr.c: Likewise.
23400         * tests/unistr/test-u16-strchr.c: Likewise.
23401         * tests/unistr/test-u32-strchr.c: Likewise.
23402         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23403         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23404         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23405         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23407 2010-07-28  Bruno Haible  <bruno@clisp.org>
23409         Use spaces for indentation, not tabs.
23410         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23412 2010-07-27  Bruno Haible  <bruno@clisp.org>
23414         mbspcasecmp: Fix function specification.
23415         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23416         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23417         Reported by Eric Blake <eblake@redhat.com>.
23419 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23421         timespec: use cast and not conditional, as truncation isn't possible
23422         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23423         instead of a conditional.  Comment about the situation in more detail.
23424         This undoes most of the 2009-10-29 patch.
23426 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23428         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23429         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23430         * lib/unistr/u8-strchr.c: Likewise.
23431         * modules/unistr/u8-chr: Depend on memchr.
23433         unistr/u*-strchr: add tests
23434         * modules/unistr/u8-strchr-tests: New file.
23435         * modules/unistr/u16-strchr-tests: New file.
23436         * modules/unistr/u32-strchr-tests: New file.
23437         * tests/unistr/test-strchr.h: New file.
23438         * tests/unistr/test-u8-strchr.c: New file.
23439         * tests/unistr/test-u16-strchr.c: New file.
23440         * tests/unistr/test-u32-strchr.c: New file.
23442         unistr/u*-chr: test multibyte sequences more
23443         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23444         test vector.
23445         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23446         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23447         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23449         unistr/u*-chr: test multibyte sequences
23450         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23452         unistr/u*-chr: prepare for multibyte tests
23453         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23454         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23455         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23456         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23457         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23458         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23460 2010-07-18  Bruno Haible  <bruno@clisp.org>
23462         unistr/u8-strchr: Optimize non-ASCII argument case.
23463         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23464         because the first byte often matches anyway.
23465         Reported by Pádraig Brady <P@draigbrady.com>.
23467 2010-07-15  Karl Berry  <karl@gnu.org>
23469         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23471 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23473         getcwd: on Solaris, work better if ancestors are inaccessible
23474         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23475         buffer and size, try again with a large buffer.  This works better
23476         on Solaris, since its getcwd succeeds even if the path to the root
23477         is inaccessible, and this is helpful in common cases such as .zfs
23478         hidden directories.  Problem reported by J Chapman Flack in
23479         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23480         Use system getcwd if it's declared, not merely if it's partly
23481         working; use the partly-working test only to avoid needless effort
23482         if the system getcwd fails.
23483         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23484         comment that was already obsolete and is now even more obsolete.
23485         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23486         now might call strdup.
23488 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23490         pthread: Add enough so that coreutils/src/sort.c compiles.
23491         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23492         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23493         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23494         Include <sys/types.h>, in case it defines pthread_t.
23495         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23496         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23497         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23498         (pthread_rwlockattr_t, pthread_spinlock_t):
23499         New typedefs, if HAVE_PTHREAD_T is not defined.
23500         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23501         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23502         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23503         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23504         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23505         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23506         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23507         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23508         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23509         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23510         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23511         New macros.
23512         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23513         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23514         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23515         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23516         (pthread_spin_unlock): New dummy functions.
23517         (pthread_create): Return EAGAIN; don't set errno.
23518         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23519         require AC_C_INLINE.
23520         * modules/pthread (Depends-on): Add sched, time.
23521         (pthread.h): Use AM_V_GEN.
23523 2010-07-13  Bruno Haible  <bruno@clisp.org>
23525         striconveh: Don't malloc memory if the result buffer is sufficient.
23526         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23527         buffer if its size is sufficient.
23528         Reported by Ludovic Courtès <ludo@gnu.org>.
23530 2010-07-13  Bruno Haible  <bruno@clisp.org>
23532         strtod: Add safety check.
23533         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23535 2010-07-12  Bruno Haible  <bruno@clisp.org>
23537         Unify tests that set gl_cv_func_ldexpl_no_libm.
23538         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23539         gl_FUNC_LDEXPL.
23540         (gl_FUNC_LDEXPL): Invoke it.
23541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23543 2010-07-12  Bruno Haible  <bruno@clisp.org>
23545         Unify tests that set gl_cv_func_ldexp_no_libm.
23546         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23547         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23548         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23549         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23550         * modules/strtod (Files): Add m4/ldexp.m4.
23552 2010-07-12  Bruno Haible  <bruno@clisp.org>
23554         Unify tests that set gl_cv_func_frexpl_no_libm.
23555         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23556         gl_FUNC_FREXPL_NO_LIBM.
23557         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23558         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23560 2010-07-12  Bruno Haible  <bruno@clisp.org>
23562         Unify tests that set gl_cv_func_frexp_no_libm.
23563         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23564         gl_FUNC_FREXP_NO_LIBM.
23565         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23566         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23568 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23570         memcoll: clarify sizes versus lengths, document better, and tweak perf
23571         * lib/memcoll.c (strcoll_loop, memcoll0):
23572         Improve quality of descriptive comments.  Name variables
23573         consistently as to whether they are lengths (which do not include
23574         terminating null) versus sizes (which do).
23575         * lib/xmemcoll.c (xmemcoll0): Likewise.
23576         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23577         returned when s1size == 0; this is easier to compile and saves
23578         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23580 2010-07-12  Bruno Haible  <bruno@clisp.org>
23582         Tests for module '_Exit'.
23583         * modules/_Exit-tests: New file.
23584         * tests/test-_Exit.sh: New file.
23585         * tests/test-_Exit.c: New file.
23587         New module '_Exit'.
23588         * lib/stdlib.in.h (__attribute__): New macro.
23589         (_Exit): New declaration.
23590         * lib/_Exit.c: New file.
23591         * m4/_Exit.m4: New file.
23592         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23593         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23594         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23595         * modules/_Exit: New file.
23596         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23597         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23599 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23601         strtod: make it more-accurate typically, and don't require libm
23602         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23603         Include limits.h.  Don't include string.h.
23604         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23605         (locale_isspace): New function, so that no casts are needed to
23606         check whether *s is a space.
23607         (ldexp): Provide an unused dummy if not available.
23608         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23609         (strtod): Use them.  This implementation prefers to use the
23610         underlying strtod if available, falling back on our own code
23611         only to fix known bugs.  This is more likely to produce an
23612         accurate result.  Also, it avoids the use of libm functions.
23613         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23614         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23615         was absent, but it caused a test failure with coreutils.
23616         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23617         with libm.
23618         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23619         * modules/strtod-tests (Makefile.am): Likewise.
23621 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23622             Bruno Haible  <bruno@clisp.org>
23624         unistr/u8-strchr: Optimize ASCII argument case.
23625         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23627 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23629         (x)memcoll: minor tweaks
23630         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23631         is after the type that it qualifies.
23632         (memcoll0): Likewise.
23633         * lib/memcoll.h (memcoll0): Likewise.
23634         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23635         * lib/xmemcoll.h (xmemcoll0): Likewise.
23636         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23637         differs from memcoll in that the NUL byte is part of the argument.
23638         Omit the abort-checks, as performance is a real issue here.  Plus,
23639         the checks were wrong anyway (an off-by-one error).  Omit local
23640         variable 'diff', as it's a bit clearer that way.
23641         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23642         no longer needed.
23644 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23646         (x)memcoll: speedup when input is known to be NUL delimited
23647         * lib/memcoll.c: Include stdlib.
23648         (memcoll0): New function.
23649         (strcoll_loop): New function, refactored for use in both memcoll
23650         and memcoll0.
23651         * lib/memcoll.h (memcoll0): Add prototype.
23652         * lib/xmemcoll.c (xmemcoll0): New function.
23653         (collate_error): New function, refactored for use in both xmemcoll
23654         and xmemcoll0.
23655         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23656         * m4/memcoll.m4: add inline invocation.
23658 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23660         * build-aux/bootstrap: Remove any local translations
23661         from the translation project synchronization directory,
23662         so that local only translations are not distributed.
23664 2010-07-04  Bruno Haible  <bruno@clisp.org>
23666         fsusage: Clarify which code applies to which platforms.
23667         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23668         platform.
23669         * lib/fsusage.c (get_fs_usage): Likewise.
23671 2010-07-04  Bruno Haible  <bruno@clisp.org>
23673         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23674         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23675         Reported by Martin Lambers <marlam@marlam.de>.
23677 2010-07-04  Jim Meyering  <meyering@redhat.com>
23679         hash: once again explicitly disallow insertion of NULL
23680         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23681         inserting a NULL pointer cannot work with these functions.
23682         Add a comment with details.
23683         This reverts part of the 2010-07-01 commit, 5bef1a35
23684         "hash: extend module to deal with non-pointer keys".
23686 2010-07-01  Bruno Haible  <bruno@clisp.org>
23688         stdbool: Update doc.
23689         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23690         Info from Christian Weisgerber <naddy@mips.inka.de>.
23692 2010-07-01  Jim Meyering  <meyering@redhat.com>
23694         hash: extend module to deal with non-pointer keys
23695         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23696         but that allows insertion of non-pointer entries.
23697         Do not disallow an ENTRY value of NULL.
23698         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23699         * lib/hash.h (hash_insert0): Declare.
23701 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23703         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23704         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23705         not present (i.e. with autoconf 2.59 and when using gettextize, not
23706         gnulib), require AC_GNU_SOURCE instead.
23708 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23710         idpriv-drop: Fix tests.
23711         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23712         not to the test-idpriv-droptemp program.
23714 2010-06-29  Bruno Haible  <bruno@clisp.org>
23716         string: Fix syntax error with g++ 2.96.
23717         * lib/string.in.h (__pure__): Remove definition.
23718         (_GL_ATTRIBUTE_PURE): New macro.
23719         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23720         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23721         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23723 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23725         unitypes: Fix bug introduced on 2010-05-18.
23726         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23728 2010-06-22  Eric Blake  <eblake@redhat.com>
23730         memmem: slight optimization
23731         * lib/str-two-way.h (critical_factorization): Update comments.
23732         Reduce work during factorization phase.
23733         Reported by Carlos Bueno <carlos@bueno.org>.
23735 2010-06-21  Bruno Haible  <bruno@clisp.org>
23737         Fix HAVE_CALLOC_POSIX misnomer.
23738         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23739         !HAVE_CALLOC_POSIX.
23740         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23741         HAVE_CALLOC_POSIX.
23742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23743         instead of HAVE_CALLOC_POSIX.
23744         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23745         HAVE_CALLOC_POSIX.
23747         Use modern idiom for calloc() replacement.
23748         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23749         AC_FUNC_CALLOC.
23750         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23751         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23752         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23753         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23754         (gl_REPLACE_CALLOC): New macro.
23756 2010-06-21  Bruno Haible  <bruno@clisp.org>
23758         Fix HAVE_REALLOC_POSIX misnomer.
23759         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23760         !HAVE_REALLOC_POSIX.
23761         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23762         HAVE_REALLOC_POSIX.
23763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23764         instead of HAVE_REALLOC_POSIX.
23765         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23766         HAVE_REALLOC_POSIX.
23768         Use modern idiom for realloc() replacement.
23769         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23770         AC_FUNC_REALLOC.
23771         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23772         Autoconf's AC_FUNC_REALLOC.
23773         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23774         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23775         (gl_REPLACE_REALLOC): New macro.
23776         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23778 2010-06-21  Bruno Haible  <bruno@clisp.org>
23780         Fix HAVE_MALLOC_POSIX misnomer.
23781         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23782         !HAVE_MALLOC_POSIX.
23783         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23784         HAVE_MALLOC_POSIX.
23785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23786         instead of HAVE_MALLOC_POSIX.
23787         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23788         HAVE_MALLOC_POSIX.
23790         Use modern idiom for malloc() replacement.
23791         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23792         AC_FUNC_MALLOC.
23793         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23794         Autoconf's AC_FUNC_MALLOC.
23795         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23796         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23797         (gl_REPLACE_MALLOC): New macro.
23798         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23800 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23802         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23803         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23804         This macro takes 3 arguments, not 4.
23806 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23808         ipv6: fix detection under mingw
23809         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23810         in6_addr.
23812 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23814         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23815         that strtod() works when cross-compiling to a glibc version known
23816         to work.
23818 2010-06-15  Bruno Haible  <bruno@clisp.org>
23820         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23822 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23824         select: Correct timeout.
23825         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23827 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23829         git-version-gen: init shell var to avoid env var influence
23830         * build-aux/git-version-gen (v): Init shell var to empty.
23832 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23834         priv-set: Don't assume that priv.h exists merely because getppriv does.
23835         See Jan Andersen's bug report about AIX 5L in
23836         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23837         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23838         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23839         * lib/priv-set.h: Likewise.
23840         * tests/test-priv-set.c: Likewise.
23842 2010-06-13  Bruno Haible  <bruno@clisp.org>
23844         relocatable: Make it easier to test whether to install wrappers.
23845         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23846         RELOCATABLE_VIA_WRAPPER.
23848 2010-06-13  Bruno Haible  <bruno@clisp.org>
23850         gnulib-tool: Display specified modules and dependencies differently.
23851         * gnulib-tool (func_show_module_list): New function.
23852         (func_import, func_create_testdir): Invoke it.
23853         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23855 2010-06-13  Bruno Haible  <bruno@clisp.org>
23857         gnulib-tool: Align code of func_import and func_create_testdir.
23858         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23859         specified_modules.
23861 2010-06-12  Jim Meyering  <meyering@redhat.com>
23863         test-inttostr: avoid spurious failure on Solaris 9
23864         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23865         to accept "%ju".  Reported by Bruno Haible.
23867 2010-06-11  Jim Meyering  <meyering@redhat.com>
23869         test-sys_socket: mark variables as used more readably
23870         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23871         as "used" explicitly via (void) statement casts.  This is more
23872         readable than using them in an artificial return expression.
23873         Suggestion from Bruno Haible.
23875 2010-06-11  Bruno Haible  <bruno@clisp.org>
23877         Avoid some more warnings from "gcc -Wwrite-strings".
23878         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23879         to 'const char *'.
23880         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23881         * tests/test-c-strcasestr.c (main): Likewise.
23882         * tests/test-mbscasestr1.c (main): Likewise.
23883         * tests/test-mbscasestr2.c (main): Likewise.
23884         * tests/test-memmem.c (main): Likewise.
23885         * tests/test-strstr.c (main): Likewise.
23886         * tests/test-strcasestr.c (main): Likewise.
23888 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23890         init.sh: change framework_failure_ to fail with status 99, not 1
23891         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23892         automake's parallel-tests rule that this is an unexpected failure,
23893         even if the test is listed in XFAIL_TESTS.
23895 2010-06-11  Jim Meyering  <meyering@redhat.com>
23897         test-inttostr: avoid warnings about 4-6KB literal strings
23898         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23899         Include "macros.h", for its definition of ASSERT.
23900         (CK): s/assert/ASSERT/
23901         * modules/inttostr-tests (Files): Add macros.h.
23903         init.sh: don't use $ME_ or skip_ before they are defined
23904         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23905         their first uses.  Also hoist their companions: warn_, fail_,
23906         framework_failure_, $stderr_fileno.  Prompted by a patch from
23907         Stefano Lattarini.
23909         test-sys_socket: avoid set-but-not-used warnings from gcc
23910         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23911         avoid warning about set-but-not-used variables.
23913         test-xvasprintf: avoid 'const' discard warnings
23914         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23915         "const" when assigning from literal strings.
23916         (test_xasprintf): Add "void" in function argument list to placate
23917         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23919         tests: avoid compilation warnings in argmatch and exclude tests...
23920         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23921         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23922         Since it always exits, declare with the "noreturn" attribute.
23923         * tests/test-argmatch.c: Likewise.
23925         tests: avoid 'const' discard warnings in mbsstr tests
23926         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23927         * tests/test-mbsstr2.c (main): Likewise.
23929         test-verify: avoid warning from gcc's -Wmissing-declarations
23930         * tests/test-verify.c (function): Declare to be static.
23932         test-inttostr.c: include <string.h> for use of strcmp
23933         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23935         test-linkat: avoid failed assertion on "other" architectures
23936         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23937         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23938         sparc: https://bugs.launchpad.net/bugs/591968
23940 2010-06-11  Jim Meyering  <meyering@redhat.com>
23942         printf.m4: avoid autoconf's "Expanded Before Required" warning
23943         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23944         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23945         autoconf warning.
23947 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23949         Replacement header templates are now named with ".in", not "_".
23950         * doc/gnulib-intro.texi: Correct.
23952 2010-06-10  Jim Meyering  <meyering@redhat.com>
23954         inttostr-tests: depend on snprintf, not snprintf-posix
23955         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23956         snprintf-posix, to avoid this aclocal failure:
23957           missing file gnulib-tests/vasnprintf.c
23958           configure.ac:45: error: expected source file, required through \
23959           AC_LIBSOURCES, not found
23961 2010-06-10  Jim Meyering  <meyering@redhat.com>
23963         inttostr: add a new function, inttostr, and tests
23964         The namesake function was not available.  The existence of the
23965         template file, inttostr.c makes its addition nontrivial.
23966         * lib/anytostr.c: Rename from inttostr.c.
23967         (anytostr): Rename from inttostr.
23968         * lib/inttostr.c: New file.
23969         * modules/inttostr (Files): Add anytostr.c.
23970         (Makefile.am): Set lib_SOURCES instead of ...
23971         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23972         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23973         * lib/offtostr.c: Likewise.
23974         * lib/uinttostr.c: Likewise.
23975         * lib/umaxtostr.c: Likewise.
23976         * modules/inttostr-tests: New file.
23977         * tests/test-inttostr.c: New file.  Test these functions.
23979 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23980             Bruno Haible  <bruno@clisp.org>
23982         Add "Extending Gnulib" chapter to manual.
23983         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23984         chapter.
23985         (Extending Gnulib): New chapter.
23986         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23987         chapter.
23989 2010-06-09  Bruno Haible  <bruno@clisp.org>
23991         Avoid relocwrapper link errors due to gnulib replacement functions.
23992         * lib/areadlink.c: Use the system's malloc, realloc functions.
23993         (areadlink): Set errno to ENOMEM explicitly.
23994         * modules/areadlink (Depends-on): Remove malloc-posix.
23995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23997 2010-06-09  Bruno Haible  <bruno@clisp.org>
23999         Avoid relocwrapper link errors due to gnulib replacement functions.
24000         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24001         * lib/malloca.c: Likewise.
24002         * lib/relocatable.c: Likewise.
24003         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24004         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24005         * lib/setenv.c: Use the system's malloc, realloc functions.
24006         * lib/strerror.c: Use the system's sprintf function.
24007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24009 2010-06-04  Bruno Haible  <bruno@clisp.org>
24011         Prefer documented low-level autoconf macro names.
24012         * m4/lib-link.m4: Use m4_translit instead of translit.
24013         * m4/environ.m4: Likewise.
24014         * m4/mathfunc.m4: Likewise.
24015         * m4/onceonly.m4: Likewise.
24016         * m4/stdint.m4: Likewise.
24017         Suggested by Eric Blake.
24019 2010-06-04  Martin Lambers  <marlam@marlam.de>
24020             Bruno Haible  <bruno@clisp.org>
24022         havelib: Allow library names with '+' characters.
24023         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24024         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24026 2010-06-09  Bruno Haible  <bruno@clisp.org>
24028         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24029         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24030         realloc failed.
24032 2010-06-08  Peter Simons  <simons@cryp.to>
24034         maint.mk: make the news-check rule more configurable
24035         * top/maint.mk (news-check-lines-spec): New variable.
24036         (news-check): Use "sed -n 1,10p" in place of "head".
24038 2010-06-07  Jim Meyering  <meyering@redhat.com>
24040         do-release-commit-and-tag: fix typo in --help
24041         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24043         regex: avoid new dead-code warning with gcc-4.6.0
24044         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24045         if-block containing a while-loop.  It's been unused for at least
24046         5 years.
24048 2010-06-05  Bruno Haible  <bruno@clisp.org>
24050         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24051         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24053 2010-06-04  Bruno Haible  <bruno@clisp.org>
24055         Update to GNU gettext 0.18.1.
24056         * modules/gettext (configure.ac): Require gettext infrastructure from
24057         version 0.18.1.
24059 2010-06-03  Bruno Haible  <bruno@clisp.org>
24061         Don't use AC_LIBOBJ with file names in subdirectories.
24062         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24063         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24064         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24065         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24066         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24067         gl_LIBUNISTRING_LIBSOURCE.
24068         (Makefile.am): Augment lib_SOURCES here, conditionally.
24069         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24071 2010-06-03  Bruno Haible  <bruno@clisp.org>
24073         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24074         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24075         expansion does not end with a newline.
24076         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24077         unnecessary newline.
24079 2010-06-03  Bruno Haible  <bruno@clisp.org>
24081         Reduce dependencies.
24082         * tests/test-quotearg.h: New file, extracted from
24083         tests/test-quotearg.c.
24084         * tests/test-quotearg-simple.c: New file, extracted from
24085         tests/test-quotearg.c.
24086         * tests/test-quotearg.c: Don't include <ctype.h>.
24087         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24088         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24089         use_quote_double_quotes, use_quotearg_colon): Moved to
24090         tests/test-quotearg.h.
24091         (results_g, flag_results, custom_quotes, custom_results): Moved
24092         to tests/test-quotearg-simple.c.
24093         (main): Moved the part that does not depend on gettext to
24094         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24095         performed.
24096         * modules/quotearg-simple: New file.
24097         * modules/quotearg-simple-tests: New file.
24098         * modules/quotearg (Depends-on): Add quotearg-simple.
24099         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24100         (Files): Add tests/test-quotearg.h.
24101         Reported by Paolo Bonzini.
24103 2010-06-03  Bruno Haible  <bruno@clisp.org>
24105         Reduce dependencies.
24106         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24108 2010-06-03  Bruno Haible  <bruno@clisp.org>
24110         time: Undefine more broken macros.
24111         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24112         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24113         Reported by Eric Blake.
24115 2010-06-03  Bruno Haible  <bruno@clisp.org>
24117         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24118         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24119         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24120         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24121         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24122         Reported by Ludovic Courtès <ludo@gnu.org>.
24124 2010-06-02  Eric Blake  <eblake@redhat.com>
24126         time: work with mingw + pthreads-win32 library
24127         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24128         if timespec is defined only in pthread.h.
24129         * modules/time (Makefile.am): Substitute it.
24130         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24131         <pthread.h>, when needed.
24132         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24133         from the library.
24135 2010-05-31  Bruno Haible  <bruno@clisp.org>
24137         Avoid expanding two macros in the wrong order.
24138         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24139         gl_LIBUNISTRING if it is defined.
24140         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24141         autoconf >= 2.64.
24142         Reported by Ludovic Courtès <ludo@gnu.org>.
24144 2010-05-27  Jim Meyering  <meyering@redhat.com>
24146         maint.mk: also prohibit "#undef" of always-defined symbols
24147         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24148         Allow more than one space before the symbol name.
24149         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24150         the regexp uses alternation.
24152 2010-05-26  Eric Blake  <eblake@redhat.com>
24154         maint.mk: avoid echo -e
24155         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24156         Convert all uses of echo -* to printf.
24157         Reported by Matthias Bolte.
24159 2010-05-25  Bruno Haible  <bruno@clisp.org>
24161         Update to GNU gettext 0.18, part 2.
24162         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24163         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24165 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24167         Add missing include in test-pwrite.c.
24168         * tests/test-pwrite.c: Include string.h, for strcmp.
24170 2010-05-24  Bruno Haible  <bruno@clisp.org>
24172         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24174 2010-05-24  Bruno Haible  <bruno@clisp.org>
24176         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24177         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24178         iconveh_error argument.
24179         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24180         U_STRCONV_TO_LOCALE.
24181         * lib/unistr/u16-strcoll.c: Likewise.
24182         * lib/unistr/u32-strcoll.c: Likewise.
24183         * modules/unistr/u8-strcoll (Depends-on): Add
24184         uniconv/u8-strconv-to-enc, localcharset. Remove
24185         uniconv/u8-strconv-to-locale.
24186         (configure.ac): Bump version number.
24187         * modules/unistr/u16-strcoll (Depends-on): Add
24188         uniconv/u16-strconv-to-enc, localcharset. Remove
24189         uniconv/u16-strconv-to-locale.
24190         (configure.ac): Bump version number.
24191         * modules/unistr/u32-strcoll (Depends-on): Add
24192         uniconv/u32-strconv-to-enc, localcharset. Remove
24193         uniconv/u32-strconv-to-locale.
24194         (configure.ac): Bump version number.
24196 2010-05-24  Bruno Haible  <bruno@clisp.org>
24198         Avoid a test failure on NetBSD 5.0.
24199         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24200         an iconv() bug.
24202 2010-05-24  Bruno Haible  <bruno@clisp.org>
24204         Adjust #include directive style.
24205         * modules/regex (Includes): Recommend to write <regex.h>.
24207 2010-05-24  Bruno Haible  <bruno@clisp.org>
24209         regex: Don't require alloca.
24210         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24211         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24212         only inside if (0).
24214 2010-05-23  Jim Meyering  <meyering@redhat.com>
24216         test-renameat.c: include <sys/stat.h>
24217         * tests/test-renameat.c: Include <sys/stat.h>; required for
24218         definition of S_IS* macros.
24220 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24222         Update maintainer documentation for 'relocatable-prog' module.
24223         * doc/relocatable-maint.texi: Update.
24224         Comments by Bruno Haible.
24226 2010-05-23  Bruno Haible  <bruno@clisp.org>
24228         git-merge-changelog: Enable --split-merged-entry by default.
24229         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24230         (usage): Don't mention this option any more.
24231         Reported by Ralf Wildenhues.
24233 2010-05-23  Jim Meyering  <meyering@redhat.com>
24235         test-pwrite: do not leave behind a test file named "out"
24236         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24237         The trivial-looking use of init.sh is really necessary.
24238         It ensures that the temporary file, "out", is created in
24239         a temporary directory, and removed upon termination.
24240         * tests/test-pwrite.sh: Re-add file.
24241         * modules/pwrite-tests: Reference it.
24243 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24245         Fix output redirection buglet in init.sh.
24246         * tests/init.sh: Fix redirection of stderr.
24248 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24250         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24252 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24254         * modules/valgrind-tests: New file.
24255         * m4/valgrind-tests.m4: New file.
24256         * doc/valgrind-tests.texi: New file.
24257         * doc/gnulib.texi (Running self-tests under valgrind): New
24258         section.
24260 2010-05-19  Bruno Haible  <bruno@clisp.org>
24262         Clean up dead code in recent commit.
24263         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24264         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24265         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24266         Suggested by Paolo Bonzini.
24268 2010-05-19  Bruno Haible  <bruno@clisp.org>
24270         Avoid valgrind error reports from libunistring.
24271         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24272         * modules/libunistring (Files): Add it.
24273         * modules/libunistring-optional (Files): Likewise.
24275 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24276             Bruno Haible  <bruno@clisp.org>
24278         New module 'libunistring-optional'.
24279         * modules/libunistring-optional: New file.
24280         * m4/libunistring-base.m4: New file.
24281         * m4/libunistring-optional.m4: New file.
24282         * lib/unicase.in.h: Renamed from lib/unicase.h.
24283         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24284         * lib/unictype.in.h: Renamed from lib/unictype.h.
24285         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24286         * lib/uniname.in.h: Renamed from lib/uniname.h.
24287         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24288         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24289         * lib/unistr.in.h: Renamed from lib/unistr.h.
24290         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24291         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24292         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24293         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24294         gl_LIBUNISTRING. If the library was found, determine the installed
24295         version and set LIBUNISTRING_VERSION.
24296         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24297         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24298         handle a configuration option --with-included-libunistring.
24299         * modules/libunistring (Files): Add m4/absolute-header.m4.
24300         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24301         Add m4/libunistring-base.m4.
24302         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24303         (Makefile.am): Build unicase.h from unicase.in.h.
24304         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24305         Add m4/libunistring-base.m4.
24306         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24307         (Makefile.am): Build uniconv.h from uniconv.in.h.
24308         * modules/unictype/base (Files): Use unictype.in.h instead of
24309         unictype.h. Add m4/libunistring-base.m4.
24310         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24311         (Makefile.am): Build unictype.h from unictype.in.h.
24312         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24313         Add m4/libunistring-base.m4.
24314         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24315         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24316         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24317         Add m4/libunistring-base.m4.
24318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24319         (Makefile.am): Build uniname.h from uniname.in.h.
24320         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24321         Add m4/libunistring-base.m4.
24322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24323         (Makefile.am): Build uninorm.h from uninorm.in.h.
24324         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24325         unistdio.h. Add m4/libunistring-base.m4.
24326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24327         (Makefile.am): Build unistdio.h from unistdio.in.h.
24328         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24329         Add m4/libunistring-base.m4.
24330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24331         (Makefile.am): Build unistr.h from unistr.in.h.
24332         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24333         Add m4/libunistring-base.m4.
24334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24335         (Makefile.am): Build unitypes.h from unitypes.in.h.
24336         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24337         Add m4/libunistring-base.m4.
24338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24339         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24340         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24341         uniwidth.h. Add m4/libunistring-base.m4.
24342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24343         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24344         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24345         instead of augmenting lib_SOURCES.
24346         * modules/unicase/empty-suffix-context: Likewise.
24347         * modules/unicase/locale-language: Likewise.
24348         * modules/unicase/tolower: Likewise.
24349         * modules/unicase/totitle: Likewise.
24350         * modules/unicase/toupper: Likewise.
24351         * modules/unicase/u8-casecmp: Likewise.
24352         * modules/unicase/u8-casecoll: Likewise.
24353         * modules/unicase/u8-casefold: Likewise.
24354         * modules/unicase/u8-casexfrm: Likewise.
24355         * modules/unicase/u8-ct-casefold: Likewise.
24356         * modules/unicase/u8-ct-tolower: Likewise.
24357         * modules/unicase/u8-ct-totitle: Likewise.
24358         * modules/unicase/u8-ct-toupper: Likewise.
24359         * modules/unicase/u8-is-cased: Likewise.
24360         * modules/unicase/u8-is-casefolded: Likewise.
24361         * modules/unicase/u8-is-lowercase: Likewise.
24362         * modules/unicase/u8-is-titlecase: Likewise.
24363         * modules/unicase/u8-is-uppercase: Likewise.
24364         * modules/unicase/u8-prefix-context: Likewise.
24365         * modules/unicase/u8-suffix-context: Likewise.
24366         * modules/unicase/u8-tolower: Likewise.
24367         * modules/unicase/u8-totitle: Likewise.
24368         * modules/unicase/u8-toupper: Likewise.
24369         * modules/unicase/u16-casecmp: Likewise.
24370         * modules/unicase/u16-casecoll: Likewise.
24371         * modules/unicase/u16-casefold: Likewise.
24372         * modules/unicase/u16-casexfrm: Likewise.
24373         * modules/unicase/u16-ct-casefold: Likewise.
24374         * modules/unicase/u16-ct-tolower: Likewise.
24375         * modules/unicase/u16-ct-totitle: Likewise.
24376         * modules/unicase/u16-ct-toupper: Likewise.
24377         * modules/unicase/u16-is-cased: Likewise.
24378         * modules/unicase/u16-is-casefolded: Likewise.
24379         * modules/unicase/u16-is-lowercase: Likewise.
24380         * modules/unicase/u16-is-titlecase: Likewise.
24381         * modules/unicase/u16-is-uppercase: Likewise.
24382         * modules/unicase/u16-prefix-context: Likewise.
24383         * modules/unicase/u16-suffix-context: Likewise.
24384         * modules/unicase/u16-tolower: Likewise.
24385         * modules/unicase/u16-totitle: Likewise.
24386         * modules/unicase/u16-toupper: Likewise.
24387         * modules/unicase/u32-casecmp: Likewise.
24388         * modules/unicase/u32-casecoll: Likewise.
24389         * modules/unicase/u32-casefold: Likewise.
24390         * modules/unicase/u32-casexfrm: Likewise.
24391         * modules/unicase/u32-ct-casefold: Likewise.
24392         * modules/unicase/u32-ct-tolower: Likewise.
24393         * modules/unicase/u32-ct-totitle: Likewise.
24394         * modules/unicase/u32-ct-toupper: Likewise.
24395         * modules/unicase/u32-is-cased: Likewise.
24396         * modules/unicase/u32-is-casefolded: Likewise.
24397         * modules/unicase/u32-is-lowercase: Likewise.
24398         * modules/unicase/u32-is-titlecase: Likewise.
24399         * modules/unicase/u32-is-uppercase: Likewise.
24400         * modules/unicase/u32-prefix-context: Likewise.
24401         * modules/unicase/u32-suffix-context: Likewise.
24402         * modules/unicase/u32-tolower: Likewise.
24403         * modules/unicase/u32-totitle: Likewise.
24404         * modules/unicase/u32-toupper: Likewise.
24405         * modules/unicase/ulc-casecmp: Likewise.
24406         * modules/unicase/ulc-casecoll: Likewise.
24407         * modules/unicase/ulc-casexfrm: Likewise.
24408         * modules/uniconv/u8-conv-from-enc: Likewise.
24409         * modules/uniconv/u8-conv-to-enc: Likewise.
24410         * modules/uniconv/u8-strconv-from-enc: Likewise.
24411         * modules/uniconv/u8-strconv-from-locale: Likewise.
24412         * modules/uniconv/u8-strconv-to-enc: Likewise.
24413         * modules/uniconv/u8-strconv-to-locale: Likewise.
24414         * modules/uniconv/u16-conv-from-enc: Likewise.
24415         * modules/uniconv/u16-conv-to-enc: Likewise.
24416         * modules/uniconv/u16-strconv-from-enc: Likewise.
24417         * modules/uniconv/u16-strconv-from-locale: Likewise.
24418         * modules/uniconv/u16-strconv-to-enc: Likewise.
24419         * modules/uniconv/u16-strconv-to-locale: Likewise.
24420         * modules/uniconv/u32-conv-from-enc: Likewise.
24421         * modules/uniconv/u32-conv-to-enc: Likewise.
24422         * modules/uniconv/u32-strconv-from-enc: Likewise.
24423         * modules/uniconv/u32-strconv-from-locale: Likewise.
24424         * modules/uniconv/u32-strconv-to-enc: Likewise.
24425         * modules/uniconv/u32-strconv-to-locale: Likewise.
24426         * modules/unictype/bidicategory-byname: Likewise.
24427         * modules/unictype/bidicategory-name: Likewise.
24428         * modules/unictype/bidicategory-of: Likewise.
24429         * modules/unictype/bidicategory-test: Likewise.
24430         * modules/unictype/block-list: Likewise.
24431         * modules/unictype/block-test: Likewise.
24432         * modules/unictype/category-C: Likewise.
24433         * modules/unictype/category-Cc: Likewise.
24434         * modules/unictype/category-Cf: Likewise.
24435         * modules/unictype/category-Cn: Likewise.
24436         * modules/unictype/category-Co: Likewise.
24437         * modules/unictype/category-Cs: Likewise.
24438         * modules/unictype/category-L: Likewise.
24439         * modules/unictype/category-Ll: Likewise.
24440         * modules/unictype/category-Lm: Likewise.
24441         * modules/unictype/category-Lo: Likewise.
24442         * modules/unictype/category-Lt: Likewise.
24443         * modules/unictype/category-Lu: Likewise.
24444         * modules/unictype/category-M: Likewise.
24445         * modules/unictype/category-Mc: Likewise.
24446         * modules/unictype/category-Me: Likewise.
24447         * modules/unictype/category-Mn: Likewise.
24448         * modules/unictype/category-N: Likewise.
24449         * modules/unictype/category-Nd: Likewise.
24450         * modules/unictype/category-Nl: Likewise.
24451         * modules/unictype/category-No: Likewise.
24452         * modules/unictype/category-P: Likewise.
24453         * modules/unictype/category-Pc: Likewise.
24454         * modules/unictype/category-Pd: Likewise.
24455         * modules/unictype/category-Pe: Likewise.
24456         * modules/unictype/category-Pf: Likewise.
24457         * modules/unictype/category-Pi: Likewise.
24458         * modules/unictype/category-Po: Likewise.
24459         * modules/unictype/category-Ps: Likewise.
24460         * modules/unictype/category-S: Likewise.
24461         * modules/unictype/category-Sc: Likewise.
24462         * modules/unictype/category-Sk: Likewise.
24463         * modules/unictype/category-Sm: Likewise.
24464         * modules/unictype/category-So: Likewise.
24465         * modules/unictype/category-Z: Likewise.
24466         * modules/unictype/category-Zl: Likewise.
24467         * modules/unictype/category-Zp: Likewise.
24468         * modules/unictype/category-Zs: Likewise.
24469         * modules/unictype/category-and: Likewise.
24470         * modules/unictype/category-and-not: Likewise.
24471         * modules/unictype/category-byname: Likewise.
24472         * modules/unictype/category-name: Likewise.
24473         * modules/unictype/category-none: Likewise.
24474         * modules/unictype/category-of: Likewise.
24475         * modules/unictype/category-or: Likewise.
24476         * modules/unictype/category-test: Likewise.
24477         * modules/unictype/combining-class: Likewise.
24478         * modules/unictype/ctype-alnum: Likewise.
24479         * modules/unictype/ctype-alpha: Likewise.
24480         * modules/unictype/ctype-blank: Likewise.
24481         * modules/unictype/ctype-cntrl: Likewise.
24482         * modules/unictype/ctype-digit: Likewise.
24483         * modules/unictype/ctype-graph: Likewise.
24484         * modules/unictype/ctype-lower: Likewise.
24485         * modules/unictype/ctype-print: Likewise.
24486         * modules/unictype/ctype-punct: Likewise.
24487         * modules/unictype/ctype-space: Likewise.
24488         * modules/unictype/ctype-upper: Likewise.
24489         * modules/unictype/ctype-xdigit: Likewise.
24490         * modules/unictype/decimal-digit: Likewise.
24491         * modules/unictype/digit: Likewise.
24492         * modules/unictype/mirror: Likewise.
24493         * modules/unictype/numeric: Likewise.
24494         * modules/unictype/property-alphabetic: Likewise.
24495         * modules/unictype/property-ascii-hex-digit: Likewise.
24496         * modules/unictype/property-bidi-arabic-digit: Likewise.
24497         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24498         * modules/unictype/property-bidi-block-separator: Likewise.
24499         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24500         * modules/unictype/property-bidi-common-separator: Likewise.
24501         * modules/unictype/property-bidi-control: Likewise.
24502         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24503         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24504         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24505         * modules/unictype/property-bidi-european-digit: Likewise.
24506         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24507         * modules/unictype/property-bidi-left-to-right: Likewise.
24508         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24509         * modules/unictype/property-bidi-other-neutral: Likewise.
24510         * modules/unictype/property-bidi-pdf: Likewise.
24511         * modules/unictype/property-bidi-segment-separator: Likewise.
24512         * modules/unictype/property-bidi-whitespace: Likewise.
24513         * modules/unictype/property-byname: Likewise.
24514         * modules/unictype/property-combining: Likewise.
24515         * modules/unictype/property-composite: Likewise.
24516         * modules/unictype/property-currency-symbol: Likewise.
24517         * modules/unictype/property-dash: Likewise.
24518         * modules/unictype/property-decimal-digit: Likewise.
24519         * modules/unictype/property-default-ignorable-code-point: Likewise.
24520         * modules/unictype/property-deprecated: Likewise.
24521         * modules/unictype/property-diacritic: Likewise.
24522         * modules/unictype/property-extender: Likewise.
24523         * modules/unictype/property-format-control: Likewise.
24524         * modules/unictype/property-grapheme-base: Likewise.
24525         * modules/unictype/property-grapheme-extend: Likewise.
24526         * modules/unictype/property-grapheme-link: Likewise.
24527         * modules/unictype/property-hex-digit: Likewise.
24528         * modules/unictype/property-hyphen: Likewise.
24529         * modules/unictype/property-id-continue: Likewise.
24530         * modules/unictype/property-id-start: Likewise.
24531         * modules/unictype/property-ideographic: Likewise.
24532         * modules/unictype/property-ids-binary-operator: Likewise.
24533         * modules/unictype/property-ids-trinary-operator: Likewise.
24534         * modules/unictype/property-ignorable-control: Likewise.
24535         * modules/unictype/property-iso-control: Likewise.
24536         * modules/unictype/property-join-control: Likewise.
24537         * modules/unictype/property-left-of-pair: Likewise.
24538         * modules/unictype/property-line-separator: Likewise.
24539         * modules/unictype/property-logical-order-exception: Likewise.
24540         * modules/unictype/property-lowercase: Likewise.
24541         * modules/unictype/property-math: Likewise.
24542         * modules/unictype/property-non-break: Likewise.
24543         * modules/unictype/property-not-a-character: Likewise.
24544         * modules/unictype/property-numeric: Likewise.
24545         * modules/unictype/property-other-alphabetic: Likewise.
24546         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24547         * modules/unictype/property-other-grapheme-extend: Likewise.
24548         * modules/unictype/property-other-id-continue: Likewise.
24549         * modules/unictype/property-other-id-start: Likewise.
24550         * modules/unictype/property-other-lowercase: Likewise.
24551         * modules/unictype/property-other-math: Likewise.
24552         * modules/unictype/property-other-uppercase: Likewise.
24553         * modules/unictype/property-paired-punctuation: Likewise.
24554         * modules/unictype/property-paragraph-separator: Likewise.
24555         * modules/unictype/property-pattern-syntax: Likewise.
24556         * modules/unictype/property-pattern-white-space: Likewise.
24557         * modules/unictype/property-private-use: Likewise.
24558         * modules/unictype/property-punctuation: Likewise.
24559         * modules/unictype/property-quotation-mark: Likewise.
24560         * modules/unictype/property-radical: Likewise.
24561         * modules/unictype/property-sentence-terminal: Likewise.
24562         * modules/unictype/property-soft-dotted: Likewise.
24563         * modules/unictype/property-space: Likewise.
24564         * modules/unictype/property-terminal-punctuation: Likewise.
24565         * modules/unictype/property-test: Likewise.
24566         * modules/unictype/property-titlecase: Likewise.
24567         * modules/unictype/property-unassigned-code-value: Likewise.
24568         * modules/unictype/property-unified-ideograph: Likewise.
24569         * modules/unictype/property-uppercase: Likewise.
24570         * modules/unictype/property-variation-selector: Likewise.
24571         * modules/unictype/property-white-space: Likewise.
24572         * modules/unictype/property-xid-continue: Likewise.
24573         * modules/unictype/property-xid-start: Likewise.
24574         * modules/unictype/property-zero-width: Likewise.
24575         * modules/unictype/scripts: Likewise.
24576         * modules/unictype/syntax-c-ident: Likewise.
24577         * modules/unictype/syntax-c-whitespace: Likewise.
24578         * modules/unictype/syntax-java-ident: Likewise.
24579         * modules/unictype/syntax-java-whitespace: Likewise.
24580         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24581         * modules/unilbrk/u8-width-linebreaks: Likewise.
24582         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24583         * modules/unilbrk/u16-width-linebreaks: Likewise.
24584         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24585         * modules/unilbrk/u32-width-linebreaks: Likewise.
24586         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24587         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24588         * modules/uniname/uniname: Likewise.
24589         * modules/uninorm/canonical-decomposition: Likewise.
24590         * modules/uninorm/composition: Likewise.
24591         * modules/uninorm/decomposing-form: Likewise.
24592         * modules/uninorm/decomposition: Likewise.
24593         * modules/uninorm/filter: Likewise.
24594         * modules/uninorm/nfc: Likewise.
24595         * modules/uninorm/nfd: Likewise.
24596         * modules/uninorm/nfkc: Likewise.
24597         * modules/uninorm/nfkd: Likewise.
24598         * modules/uninorm/u8-normalize: Likewise.
24599         * modules/uninorm/u8-normcmp: Likewise.
24600         * modules/uninorm/u8-normcoll: Likewise.
24601         * modules/uninorm/u8-normxfrm: Likewise.
24602         * modules/uninorm/u16-normalize: Likewise.
24603         * modules/uninorm/u16-normcmp: Likewise.
24604         * modules/uninorm/u16-normcoll: Likewise.
24605         * modules/uninorm/u16-normxfrm: Likewise.
24606         * modules/uninorm/u32-normalize: Likewise.
24607         * modules/uninorm/u32-normcmp: Likewise.
24608         * modules/uninorm/u32-normcoll: Likewise.
24609         * modules/uninorm/u32-normxfrm: Likewise.
24610         * modules/unistdio/u8-asnprintf: Likewise.
24611         * modules/unistdio/u8-asprintf: Likewise.
24612         * modules/unistdio/u8-snprintf: Likewise.
24613         * modules/unistdio/u8-sprintf: Likewise.
24614         * modules/unistdio/u8-u8-asnprintf: Likewise.
24615         * modules/unistdio/u8-u8-asprintf: Likewise.
24616         * modules/unistdio/u8-u8-snprintf: Likewise.
24617         * modules/unistdio/u8-u8-sprintf: Likewise.
24618         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24619         * modules/unistdio/u8-u8-vasprintf: Likewise.
24620         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24621         * modules/unistdio/u8-u8-vsprintf: Likewise.
24622         * modules/unistdio/u8-vasnprintf: Likewise.
24623         * modules/unistdio/u8-vasprintf: Likewise.
24624         * modules/unistdio/u8-vsnprintf: Likewise.
24625         * modules/unistdio/u8-vsprintf: Likewise.
24626         * modules/unistdio/u16-asnprintf: Likewise.
24627         * modules/unistdio/u16-asprintf: Likewise.
24628         * modules/unistdio/u16-snprintf: Likewise.
24629         * modules/unistdio/u16-sprintf: Likewise.
24630         * modules/unistdio/u16-u16-asnprintf: Likewise.
24631         * modules/unistdio/u16-u16-asprintf: Likewise.
24632         * modules/unistdio/u16-u16-snprintf: Likewise.
24633         * modules/unistdio/u16-u16-sprintf: Likewise.
24634         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24635         * modules/unistdio/u16-u16-vasprintf: Likewise.
24636         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24637         * modules/unistdio/u16-u16-vsprintf: Likewise.
24638         * modules/unistdio/u16-vasnprintf: Likewise.
24639         * modules/unistdio/u16-vasprintf: Likewise.
24640         * modules/unistdio/u16-vsnprintf: Likewise.
24641         * modules/unistdio/u16-vsprintf: Likewise.
24642         * modules/unistdio/u32-asnprintf: Likewise.
24643         * modules/unistdio/u32-asprintf: Likewise.
24644         * modules/unistdio/u32-snprintf: Likewise.
24645         * modules/unistdio/u32-sprintf: Likewise.
24646         * modules/unistdio/u32-u32-asnprintf: Likewise.
24647         * modules/unistdio/u32-u32-asprintf: Likewise.
24648         * modules/unistdio/u32-u32-snprintf: Likewise.
24649         * modules/unistdio/u32-u32-sprintf: Likewise.
24650         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24651         * modules/unistdio/u32-u32-vasprintf: Likewise.
24652         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24653         * modules/unistdio/u32-u32-vsprintf: Likewise.
24654         * modules/unistdio/u32-vasnprintf: Likewise.
24655         * modules/unistdio/u32-vasprintf: Likewise.
24656         * modules/unistdio/u32-vsnprintf: Likewise.
24657         * modules/unistdio/u32-vsprintf: Likewise.
24658         * modules/unistdio/ulc-asnprintf: Likewise.
24659         * modules/unistdio/ulc-asprintf: Likewise.
24660         * modules/unistdio/ulc-fprintf: Likewise.
24661         * modules/unistdio/ulc-snprintf: Likewise.
24662         * modules/unistdio/ulc-sprintf: Likewise.
24663         * modules/unistdio/ulc-vasnprintf: Likewise.
24664         * modules/unistdio/ulc-vasprintf: Likewise.
24665         * modules/unistdio/ulc-vfprintf: Likewise.
24666         * modules/unistdio/ulc-vsnprintf: Likewise.
24667         * modules/unistdio/ulc-vsprintf: Likewise.
24668         * modules/unistr/u8-check: Likewise.
24669         * modules/unistr/u8-chr: Likewise.
24670         * modules/unistr/u8-cmp: Likewise.
24671         * modules/unistr/u8-cmp2: Likewise.
24672         * modules/unistr/u8-cpy: Likewise.
24673         * modules/unistr/u8-cpy-alloc: Likewise.
24674         * modules/unistr/u8-endswith: Likewise.
24675         * modules/unistr/u8-mblen: Likewise.
24676         * modules/unistr/u8-mbsnlen: Likewise.
24677         * modules/unistr/u8-mbtouc: Likewise.
24678         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24679         * modules/unistr/u8-mbtoucr: Likewise.
24680         * modules/unistr/u8-move: Likewise.
24681         * modules/unistr/u8-next: Likewise.
24682         * modules/unistr/u8-prev: Likewise.
24683         * modules/unistr/u8-set: Likewise.
24684         * modules/unistr/u8-startswith: Likewise.
24685         * modules/unistr/u8-stpcpy: Likewise.
24686         * modules/unistr/u8-stpncpy: Likewise.
24687         * modules/unistr/u8-strcat: Likewise.
24688         * modules/unistr/u8-strchr: Likewise.
24689         * modules/unistr/u8-strcmp: Likewise.
24690         * modules/unistr/u8-strcoll: Likewise.
24691         * modules/unistr/u8-strcpy: Likewise.
24692         * modules/unistr/u8-strcspn: Likewise.
24693         * modules/unistr/u8-strdup: Likewise.
24694         * modules/unistr/u8-strlen: Likewise.
24695         * modules/unistr/u8-strmblen: Likewise.
24696         * modules/unistr/u8-strmbtouc: Likewise.
24697         * modules/unistr/u8-strncat: Likewise.
24698         * modules/unistr/u8-strncmp: Likewise.
24699         * modules/unistr/u8-strncpy: Likewise.
24700         * modules/unistr/u8-strnlen: Likewise.
24701         * modules/unistr/u8-strpbrk: Likewise.
24702         * modules/unistr/u8-strrchr: Likewise.
24703         * modules/unistr/u8-strspn: Likewise.
24704         * modules/unistr/u8-strstr: Likewise.
24705         * modules/unistr/u8-strtok: Likewise.
24706         * modules/unistr/u8-to-u16: Likewise.
24707         * modules/unistr/u8-to-u32: Likewise.
24708         * modules/unistr/u8-uctomb: Likewise.
24709         * modules/unistr/u16-check: Likewise.
24710         * modules/unistr/u16-chr: Likewise.
24711         * modules/unistr/u16-cmp: Likewise.
24712         * modules/unistr/u16-cmp2: Likewise.
24713         * modules/unistr/u16-cpy: Likewise.
24714         * modules/unistr/u16-cpy-alloc: Likewise.
24715         * modules/unistr/u16-endswith: Likewise.
24716         * modules/unistr/u16-mblen: Likewise.
24717         * modules/unistr/u16-mbsnlen: Likewise.
24718         * modules/unistr/u16-mbtouc: Likewise.
24719         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24720         * modules/unistr/u16-mbtoucr: Likewise.
24721         * modules/unistr/u16-move: Likewise.
24722         * modules/unistr/u16-next: Likewise.
24723         * modules/unistr/u16-prev: Likewise.
24724         * modules/unistr/u16-set: Likewise.
24725         * modules/unistr/u16-startswith: Likewise.
24726         * modules/unistr/u16-stpcpy: Likewise.
24727         * modules/unistr/u16-stpncpy: Likewise.
24728         * modules/unistr/u16-strcat: Likewise.
24729         * modules/unistr/u16-strchr: Likewise.
24730         * modules/unistr/u16-strcmp: Likewise.
24731         * modules/unistr/u16-strcoll: Likewise.
24732         * modules/unistr/u16-strcpy: Likewise.
24733         * modules/unistr/u16-strcspn: Likewise.
24734         * modules/unistr/u16-strdup: Likewise.
24735         * modules/unistr/u16-strlen: Likewise.
24736         * modules/unistr/u16-strmblen: Likewise.
24737         * modules/unistr/u16-strmbtouc: Likewise.
24738         * modules/unistr/u16-strncat: Likewise.
24739         * modules/unistr/u16-strncmp: Likewise.
24740         * modules/unistr/u16-strncpy: Likewise.
24741         * modules/unistr/u16-strnlen: Likewise.
24742         * modules/unistr/u16-strpbrk: Likewise.
24743         * modules/unistr/u16-strrchr: Likewise.
24744         * modules/unistr/u16-strspn: Likewise.
24745         * modules/unistr/u16-strstr: Likewise.
24746         * modules/unistr/u16-strtok: Likewise.
24747         * modules/unistr/u16-to-u32: Likewise.
24748         * modules/unistr/u16-to-u8: Likewise.
24749         * modules/unistr/u16-uctomb: Likewise.
24750         * modules/unistr/u32-check: Likewise.
24751         * modules/unistr/u32-chr: Likewise.
24752         * modules/unistr/u32-cmp: Likewise.
24753         * modules/unistr/u32-cmp2: Likewise.
24754         * modules/unistr/u32-cpy: Likewise.
24755         * modules/unistr/u32-cpy-alloc: Likewise.
24756         * modules/unistr/u32-endswith: Likewise.
24757         * modules/unistr/u32-mblen: Likewise.
24758         * modules/unistr/u32-mbsnlen: Likewise.
24759         * modules/unistr/u32-mbtouc: Likewise.
24760         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24761         * modules/unistr/u32-mbtoucr: Likewise.
24762         * modules/unistr/u32-move: Likewise.
24763         * modules/unistr/u32-next: Likewise.
24764         * modules/unistr/u32-prev: Likewise.
24765         * modules/unistr/u32-set: Likewise.
24766         * modules/unistr/u32-startswith: Likewise.
24767         * modules/unistr/u32-stpcpy: Likewise.
24768         * modules/unistr/u32-stpncpy: Likewise.
24769         * modules/unistr/u32-strcat: Likewise.
24770         * modules/unistr/u32-strchr: Likewise.
24771         * modules/unistr/u32-strcmp: Likewise.
24772         * modules/unistr/u32-strcoll: Likewise.
24773         * modules/unistr/u32-strcpy: Likewise.
24774         * modules/unistr/u32-strcspn: Likewise.
24775         * modules/unistr/u32-strdup: Likewise.
24776         * modules/unistr/u32-strlen: Likewise.
24777         * modules/unistr/u32-strmblen: Likewise.
24778         * modules/unistr/u32-strmbtouc: Likewise.
24779         * modules/unistr/u32-strncat: Likewise.
24780         * modules/unistr/u32-strncmp: Likewise.
24781         * modules/unistr/u32-strncpy: Likewise.
24782         * modules/unistr/u32-strnlen: Likewise.
24783         * modules/unistr/u32-strpbrk: Likewise.
24784         * modules/unistr/u32-strrchr: Likewise.
24785         * modules/unistr/u32-strspn: Likewise.
24786         * modules/unistr/u32-strstr: Likewise.
24787         * modules/unistr/u32-strtok: Likewise.
24788         * modules/unistr/u32-to-u16: Likewise.
24789         * modules/unistr/u32-to-u8: Likewise.
24790         * modules/unistr/u32-uctomb: Likewise.
24791         * modules/uniwbrk/u8-wordbreaks: Likewise.
24792         * modules/uniwbrk/u16-wordbreaks: Likewise.
24793         * modules/uniwbrk/u32-wordbreaks: Likewise.
24794         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24795         * modules/uniwbrk/wordbreak-property: Likewise.
24796         * modules/uniwidth/u8-strwidth: Likewise.
24797         * modules/uniwidth/u8-width: Likewise.
24798         * modules/uniwidth/u16-strwidth: Likewise.
24799         * modules/uniwidth/u16-width: Likewise.
24800         * modules/uniwidth/u32-strwidth: Likewise.
24801         * modules/uniwidth/u32-width: Likewise.
24802         * modules/uniwidth/width: Likewise.
24803         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24804         with $(LIBUNISTRING).
24805         * modules/unicase/ignorable-tests: Likewise.
24806         * modules/unicase/locale-language-tests: Likewise.
24807         * modules/unicase/tolower-tests: Likewise.
24808         * modules/unicase/totitle-tests: Likewise.
24809         * modules/unicase/toupper-tests: Likewise.
24810         * modules/unicase/u8-casecmp-tests: Likewise.
24811         * modules/unicase/u8-casecoll-tests: Likewise.
24812         * modules/unicase/u8-casefold-tests: Likewise.
24813         * modules/unicase/u8-is-cased-tests: Likewise.
24814         * modules/unicase/u8-is-casefolded-tests: Likewise.
24815         * modules/unicase/u8-is-lowercase-tests: Likewise.
24816         * modules/unicase/u8-is-titlecase-tests: Likewise.
24817         * modules/unicase/u8-is-uppercase-tests: Likewise.
24818         * modules/unicase/u8-tolower-tests: Likewise.
24819         * modules/unicase/u8-totitle-tests: Likewise.
24820         * modules/unicase/u8-toupper-tests: Likewise.
24821         * modules/unicase/u16-casecmp-tests: Likewise.
24822         * modules/unicase/u16-casecoll-tests: Likewise.
24823         * modules/unicase/u16-casefold-tests: Likewise.
24824         * modules/unicase/u16-is-cased-tests: Likewise.
24825         * modules/unicase/u16-is-casefolded-tests: Likewise.
24826         * modules/unicase/u16-is-lowercase-tests: Likewise.
24827         * modules/unicase/u16-is-titlecase-tests: Likewise.
24828         * modules/unicase/u16-is-uppercase-tests: Likewise.
24829         * modules/unicase/u16-tolower-tests: Likewise.
24830         * modules/unicase/u16-totitle-tests: Likewise.
24831         * modules/unicase/u16-toupper-tests: Likewise.
24832         * modules/unicase/u32-casecmp-tests: Likewise.
24833         * modules/unicase/u32-casecoll-tests: Likewise.
24834         * modules/unicase/u32-casefold-tests: Likewise.
24835         * modules/unicase/u32-is-cased-tests: Likewise.
24836         * modules/unicase/u32-is-casefolded-tests: Likewise.
24837         * modules/unicase/u32-is-lowercase-tests: Likewise.
24838         * modules/unicase/u32-is-titlecase-tests: Likewise.
24839         * modules/unicase/u32-is-uppercase-tests: Likewise.
24840         * modules/unicase/u32-tolower-tests: Likewise.
24841         * modules/unicase/u32-totitle-tests: Likewise.
24842         * modules/unicase/u32-toupper-tests: Likewise.
24843         * modules/unicase/ulc-casecmp-tests: Likewise.
24844         * modules/unicase/ulc-casecoll-tests: Likewise.
24845         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24846         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24847         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24848         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24849         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24850         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24851         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24852         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24853         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24854         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24855         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24856         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24857         * modules/unictype/bidicategory-byname-tests: Likewise.
24858         * modules/unictype/bidicategory-name-tests: Likewise.
24859         * modules/unictype/bidicategory-of-tests: Likewise.
24860         * modules/unictype/bidicategory-test-tests: Likewise.
24861         * modules/unictype/block-list-tests: Likewise.
24862         * modules/unictype/block-of-tests: Likewise.
24863         * modules/unictype/block-test-tests: Likewise.
24864         * modules/unictype/category-C-tests: Likewise.
24865         * modules/unictype/category-Cc-tests: Likewise.
24866         * modules/unictype/category-Cf-tests: Likewise.
24867         * modules/unictype/category-Cn-tests: Likewise.
24868         * modules/unictype/category-Co-tests: Likewise.
24869         * modules/unictype/category-Cs-tests: Likewise.
24870         * modules/unictype/category-L-tests: Likewise.
24871         * modules/unictype/category-Ll-tests: Likewise.
24872         * modules/unictype/category-Lm-tests: Likewise.
24873         * modules/unictype/category-Lo-tests: Likewise.
24874         * modules/unictype/category-Lt-tests: Likewise.
24875         * modules/unictype/category-Lu-tests: Likewise.
24876         * modules/unictype/category-M-tests: Likewise.
24877         * modules/unictype/category-Mc-tests: Likewise.
24878         * modules/unictype/category-Me-tests: Likewise.
24879         * modules/unictype/category-Mn-tests: Likewise.
24880         * modules/unictype/category-N-tests: Likewise.
24881         * modules/unictype/category-Nd-tests: Likewise.
24882         * modules/unictype/category-Nl-tests: Likewise.
24883         * modules/unictype/category-No-tests: Likewise.
24884         * modules/unictype/category-P-tests: Likewise.
24885         * modules/unictype/category-Pc-tests: Likewise.
24886         * modules/unictype/category-Pd-tests: Likewise.
24887         * modules/unictype/category-Pe-tests: Likewise.
24888         * modules/unictype/category-Pf-tests: Likewise.
24889         * modules/unictype/category-Pi-tests: Likewise.
24890         * modules/unictype/category-Po-tests: Likewise.
24891         * modules/unictype/category-Ps-tests: Likewise.
24892         * modules/unictype/category-S-tests: Likewise.
24893         * modules/unictype/category-Sc-tests: Likewise.
24894         * modules/unictype/category-Sk-tests: Likewise.
24895         * modules/unictype/category-Sm-tests: Likewise.
24896         * modules/unictype/category-So-tests: Likewise.
24897         * modules/unictype/category-Z-tests: Likewise.
24898         * modules/unictype/category-Zl-tests: Likewise.
24899         * modules/unictype/category-Zp-tests: Likewise.
24900         * modules/unictype/category-Zs-tests: Likewise.
24901         * modules/unictype/category-and-not-tests: Likewise.
24902         * modules/unictype/category-and-tests: Likewise.
24903         * modules/unictype/category-byname-tests: Likewise.
24904         * modules/unictype/category-name-tests: Likewise.
24905         * modules/unictype/category-none-tests: Likewise.
24906         * modules/unictype/category-of-tests: Likewise.
24907         * modules/unictype/category-or-tests: Likewise.
24908         * modules/unictype/category-test-withtable-tests: Likewise.
24909         * modules/unictype/combining-class-tests: Likewise.
24910         * modules/unictype/ctype-alnum-tests: Likewise.
24911         * modules/unictype/ctype-alpha-tests: Likewise.
24912         * modules/unictype/ctype-blank-tests: Likewise.
24913         * modules/unictype/ctype-cntrl-tests: Likewise.
24914         * modules/unictype/ctype-digit-tests: Likewise.
24915         * modules/unictype/ctype-graph-tests: Likewise.
24916         * modules/unictype/ctype-lower-tests: Likewise.
24917         * modules/unictype/ctype-print-tests: Likewise.
24918         * modules/unictype/ctype-punct-tests: Likewise.
24919         * modules/unictype/ctype-space-tests: Likewise.
24920         * modules/unictype/ctype-upper-tests: Likewise.
24921         * modules/unictype/ctype-xdigit-tests: Likewise.
24922         * modules/unictype/decimal-digit-tests: Likewise.
24923         * modules/unictype/digit-tests: Likewise.
24924         * modules/unictype/mirror-tests: Likewise.
24925         * modules/unictype/numeric-tests: Likewise.
24926         * modules/unictype/property-alphabetic-tests: Likewise.
24927         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24928         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24929         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24930         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24931         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24932         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24933         * modules/unictype/property-bidi-control-tests: Likewise.
24934         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24935         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24936         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24937         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24938         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24939         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24940         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24941         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24942         * modules/unictype/property-bidi-pdf-tests: Likewise.
24943         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24944         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24945         * modules/unictype/property-byname-tests: Likewise.
24946         * modules/unictype/property-combining-tests: Likewise.
24947         * modules/unictype/property-composite-tests: Likewise.
24948         * modules/unictype/property-currency-symbol-tests: Likewise.
24949         * modules/unictype/property-dash-tests: Likewise.
24950         * modules/unictype/property-decimal-digit-tests: Likewise.
24951         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24952         * modules/unictype/property-deprecated-tests: Likewise.
24953         * modules/unictype/property-diacritic-tests: Likewise.
24954         * modules/unictype/property-extender-tests: Likewise.
24955         * modules/unictype/property-format-control-tests: Likewise.
24956         * modules/unictype/property-grapheme-base-tests: Likewise.
24957         * modules/unictype/property-grapheme-extend-tests: Likewise.
24958         * modules/unictype/property-grapheme-link-tests: Likewise.
24959         * modules/unictype/property-hex-digit-tests: Likewise.
24960         * modules/unictype/property-hyphen-tests: Likewise.
24961         * modules/unictype/property-id-continue-tests: Likewise.
24962         * modules/unictype/property-id-start-tests: Likewise.
24963         * modules/unictype/property-ideographic-tests: Likewise.
24964         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24965         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24966         * modules/unictype/property-ignorable-control-tests: Likewise.
24967         * modules/unictype/property-iso-control-tests: Likewise.
24968         * modules/unictype/property-join-control-tests: Likewise.
24969         * modules/unictype/property-left-of-pair-tests: Likewise.
24970         * modules/unictype/property-line-separator-tests: Likewise.
24971         * modules/unictype/property-logical-order-exception-tests: Likewise.
24972         * modules/unictype/property-lowercase-tests: Likewise.
24973         * modules/unictype/property-math-tests: Likewise.
24974         * modules/unictype/property-non-break-tests: Likewise.
24975         * modules/unictype/property-not-a-character-tests: Likewise.
24976         * modules/unictype/property-numeric-tests: Likewise.
24977         * modules/unictype/property-other-alphabetic-tests: Likewise.
24978         * modules/unictype/property-other-default-ignorable-code-point-tests:
24979         Likewise.
24980         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24981         * modules/unictype/property-other-id-continue-tests: Likewise.
24982         * modules/unictype/property-other-id-start-tests: Likewise.
24983         * modules/unictype/property-other-lowercase-tests: Likewise.
24984         * modules/unictype/property-other-math-tests: Likewise.
24985         * modules/unictype/property-other-uppercase-tests: Likewise.
24986         * modules/unictype/property-paired-punctuation-tests: Likewise.
24987         * modules/unictype/property-paragraph-separator-tests: Likewise.
24988         * modules/unictype/property-pattern-syntax-tests: Likewise.
24989         * modules/unictype/property-pattern-white-space-tests: Likewise.
24990         * modules/unictype/property-private-use-tests: Likewise.
24991         * modules/unictype/property-punctuation-tests: Likewise.
24992         * modules/unictype/property-quotation-mark-tests: Likewise.
24993         * modules/unictype/property-radical-tests: Likewise.
24994         * modules/unictype/property-sentence-terminal-tests: Likewise.
24995         * modules/unictype/property-soft-dotted-tests: Likewise.
24996         * modules/unictype/property-space-tests: Likewise.
24997         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24998         * modules/unictype/property-test-tests: Likewise.
24999         * modules/unictype/property-titlecase-tests: Likewise.
25000         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25001         * modules/unictype/property-unified-ideograph-tests: Likewise.
25002         * modules/unictype/property-uppercase-tests: Likewise.
25003         * modules/unictype/property-variation-selector-tests: Likewise.
25004         * modules/unictype/property-white-space-tests: Likewise.
25005         * modules/unictype/property-xid-continue-tests: Likewise.
25006         * modules/unictype/property-xid-start-tests: Likewise.
25007         * modules/unictype/property-zero-width-tests: Likewise.
25008         * modules/unictype/scripts-tests: Likewise.
25009         * modules/unictype/syntax-c-ident-tests: Likewise.
25010         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25011         * modules/unictype/syntax-java-ident-tests: Likewise.
25012         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25013         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25014         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25015         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25016         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25017         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25018         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25019         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25020         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25021         * modules/uniname/uniname-tests: Likewise.
25022         * modules/uninorm/canonical-decomposition-tests: Likewise.
25023         * modules/uninorm/compat-decomposition-tests: Likewise.
25024         * modules/uninorm/composition-tests: Likewise.
25025         * modules/uninorm/decomposing-form-tests: Likewise.
25026         * modules/uninorm/decomposition-tests: Likewise.
25027         * modules/uninorm/filter-tests: Likewise.
25028         * modules/uninorm/nfc-tests: Likewise.
25029         * modules/uninorm/nfd-tests: Likewise.
25030         * modules/uninorm/nfkc-tests: Likewise.
25031         * modules/uninorm/nfkd-tests: Likewise.
25032         * modules/uninorm/u8-normcmp-tests: Likewise.
25033         * modules/uninorm/u8-normcoll-tests: Likewise.
25034         * modules/uninorm/u16-normcmp-tests: Likewise.
25035         * modules/uninorm/u16-normcoll-tests: Likewise.
25036         * modules/uninorm/u32-normcmp-tests: Likewise.
25037         * modules/uninorm/u32-normcoll-tests: Likewise.
25038         * modules/unistdio/u8-asnprintf-tests: Likewise.
25039         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25040         * modules/unistdio/u8-vasprintf-tests: Likewise.
25041         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25042         * modules/unistdio/u8-vsprintf-tests: Likewise.
25043         * modules/unistdio/u16-asnprintf-tests: Likewise.
25044         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25045         * modules/unistdio/u16-vasprintf-tests: Likewise.
25046         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25047         * modules/unistdio/u16-vsprintf-tests: Likewise.
25048         * modules/unistdio/u32-asnprintf-tests: Likewise.
25049         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25050         * modules/unistdio/u32-vasprintf-tests: Likewise.
25051         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25052         * modules/unistdio/u32-vsprintf-tests: Likewise.
25053         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25054         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25055         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25056         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25057         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25058         * modules/unistr/u8-check-tests: Likewise.
25059         * modules/unistr/u8-chr-tests: Likewise.
25060         * modules/unistr/u8-cmp-tests: Likewise.
25061         * modules/unistr/u8-cmp2-tests: Likewise.
25062         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25063         * modules/unistr/u8-cpy-tests: Likewise.
25064         * modules/unistr/u8-mblen-tests: Likewise.
25065         * modules/unistr/u8-mbsnlen-tests: Likewise.
25066         * modules/unistr/u8-mbtouc-tests: Likewise.
25067         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25068         * modules/unistr/u8-mbtoucr-tests: Likewise.
25069         * modules/unistr/u8-move-tests: Likewise.
25070         * modules/unistr/u8-next-tests: Likewise.
25071         * modules/unistr/u8-prev-tests: Likewise.
25072         * modules/unistr/u8-set-tests: Likewise.
25073         * modules/unistr/u8-stpcpy-tests: Likewise.
25074         * modules/unistr/u8-stpncpy-tests: Likewise.
25075         * modules/unistr/u8-strcat-tests: Likewise.
25076         * modules/unistr/u8-strcmp-tests: Likewise.
25077         * modules/unistr/u8-strcoll-tests: Likewise.
25078         * modules/unistr/u8-strcpy-tests: Likewise.
25079         * modules/unistr/u8-strdup-tests: Likewise.
25080         * modules/unistr/u8-strlen-tests: Likewise.
25081         * modules/unistr/u8-strmblen-tests: Likewise.
25082         * modules/unistr/u8-strmbtouc-tests: Likewise.
25083         * modules/unistr/u8-strncat-tests: Likewise.
25084         * modules/unistr/u8-strncmp-tests: Likewise.
25085         * modules/unistr/u8-strncpy-tests: Likewise.
25086         * modules/unistr/u8-strnlen-tests: Likewise.
25087         * modules/unistr/u8-to-u16-tests: Likewise.
25088         * modules/unistr/u8-to-u32-tests: Likewise.
25089         * modules/unistr/u8-uctomb-tests: Likewise.
25090         * modules/unistr/u16-check-tests: Likewise.
25091         * modules/unistr/u16-chr-tests: Likewise.
25092         * modules/unistr/u16-cmp-tests: Likewise.
25093         * modules/unistr/u16-cmp2-tests: Likewise.
25094         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25095         * modules/unistr/u16-cpy-tests: Likewise.
25096         * modules/unistr/u16-mblen-tests: Likewise.
25097         * modules/unistr/u16-mbsnlen-tests: Likewise.
25098         * modules/unistr/u16-mbtouc-tests: Likewise.
25099         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25100         * modules/unistr/u16-mbtoucr-tests: Likewise.
25101         * modules/unistr/u16-move-tests: Likewise.
25102         * modules/unistr/u16-next-tests: Likewise.
25103         * modules/unistr/u16-prev-tests: Likewise.
25104         * modules/unistr/u16-set-tests: Likewise.
25105         * modules/unistr/u16-stpcpy-tests: Likewise.
25106         * modules/unistr/u16-stpncpy-tests: Likewise.
25107         * modules/unistr/u16-strcat-tests: Likewise.
25108         * modules/unistr/u16-strcmp-tests: Likewise.
25109         * modules/unistr/u16-strcoll-tests: Likewise.
25110         * modules/unistr/u16-strcpy-tests: Likewise.
25111         * modules/unistr/u16-strdup-tests: Likewise.
25112         * modules/unistr/u16-strlen-tests: Likewise.
25113         * modules/unistr/u16-strmblen-tests: Likewise.
25114         * modules/unistr/u16-strmbtouc-tests: Likewise.
25115         * modules/unistr/u16-strncat-tests: Likewise.
25116         * modules/unistr/u16-strncmp-tests: Likewise.
25117         * modules/unistr/u16-strncpy-tests: Likewise.
25118         * modules/unistr/u16-strnlen-tests: Likewise.
25119         * modules/unistr/u16-to-u32-tests: Likewise.
25120         * modules/unistr/u16-to-u8-tests: Likewise.
25121         * modules/unistr/u16-uctomb-tests: Likewise.
25122         * modules/unistr/u32-check-tests: Likewise.
25123         * modules/unistr/u32-chr-tests: Likewise.
25124         * modules/unistr/u32-cmp-tests: Likewise.
25125         * modules/unistr/u32-cmp2-tests: Likewise.
25126         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25127         * modules/unistr/u32-cpy-tests: Likewise.
25128         * modules/unistr/u32-mblen-tests: Likewise.
25129         * modules/unistr/u32-mbsnlen-tests: Likewise.
25130         * modules/unistr/u32-mbtouc-tests: Likewise.
25131         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25132         * modules/unistr/u32-mbtoucr-tests: Likewise.
25133         * modules/unistr/u32-move-tests: Likewise.
25134         * modules/unistr/u32-next-tests: Likewise.
25135         * modules/unistr/u32-prev-tests: Likewise.
25136         * modules/unistr/u32-set-tests: Likewise.
25137         * modules/unistr/u32-stpcpy-tests: Likewise.
25138         * modules/unistr/u32-stpncpy-tests: Likewise.
25139         * modules/unistr/u32-strcat-tests: Likewise.
25140         * modules/unistr/u32-strcmp-tests: Likewise.
25141         * modules/unistr/u32-strcoll-tests: Likewise.
25142         * modules/unistr/u32-strcpy-tests: Likewise.
25143         * modules/unistr/u32-strdup-tests: Likewise.
25144         * modules/unistr/u32-strlen-tests: Likewise.
25145         * modules/unistr/u32-strmblen-tests: Likewise.
25146         * modules/unistr/u32-strmbtouc-tests: Likewise.
25147         * modules/unistr/u32-strncat-tests: Likewise.
25148         * modules/unistr/u32-strncmp-tests: Likewise.
25149         * modules/unistr/u32-strncpy-tests: Likewise.
25150         * modules/unistr/u32-strnlen-tests: Likewise.
25151         * modules/unistr/u32-to-u16-tests: Likewise.
25152         * modules/unistr/u32-to-u8-tests: Likewise.
25153         * modules/unistr/u32-uctomb-tests: Likewise.
25154         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25155         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25156         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25157         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25158         * modules/uniwidth/u8-strwidth-tests: Likewise.
25159         * modules/uniwidth/u8-width-tests: Likewise.
25160         * modules/uniwidth/u16-strwidth-tests: Likewise.
25161         * modules/uniwidth/u16-width-tests: Likewise.
25162         * modules/uniwidth/u32-strwidth-tests: Likewise.
25163         * modules/uniwidth/u32-width-tests: Likewise.
25164         * modules/uniwidth/width-tests: Likewise.
25166 2010-05-18  Richard Jones  <rjones@redhat.com>
25168         doc: users.txt: list hivex
25169         * users.txt: Add hivex.
25171 2010-05-18  Richard Jones  <rjones@redhat.com>
25173         doc: users.txt: list febootstrap
25174         * users.txt: Add febootstrap.
25176 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25178         bootstrap: fix an error when gnulib is not used as a git submodule
25179         * build-aux/bootstrap (gnulib_path): If its length is zero then
25180         assign "gnulib" to it.
25181         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25183 2010-05-16  Bruno Haible  <bruno@clisp.org>
25185         Avoid autoconf warnings about AM_ICONV.
25186         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25187         2.64.
25189 2010-05-16  Bruno Haible  <bruno@clisp.org>
25191         absolute-header: Make the macro usable in more situations.
25192         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25193         from gl_ABSOLUTE_HEADER.
25194         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25196 2010-05-16  James Youngman  <jay@gnu.org>
25198         doc: update users.txt
25199         * users.txt: Add CSSC.
25201 2010-05-16  Jim Meyering  <meyering@redhat.com>
25203         init.sh: fix an error in the previous change; add more comments
25204         * tests/init.sh: Compare exit code in loop against 9, not 2.
25205         Patch by Bruno Haible.
25206         Make the two tests more similar by adding an empty "then" clause.
25207         Add comments.
25209         init.sh: avoid unnecessary shell re-exec
25210         * tests/init.sh: Improve the re-exec-required check to first test the
25211         current shell.  If it passes the test, do not search for a shell that
25212         does pass, and do not re-exec.  This test is particularly contorted to
25213         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25214         of $(...) evokes a syntax error and causes immediate shell exit with
25215         status 2.  Bruno Haible reported that the re-exec made it impossible
25216         to single-step through any init.sh-using script.
25218 2010-05-16  Bruno Haible  <bruno@clisp.org>
25220         Fix collision between gnulib's and libintl's printf replacements.
25221         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25222         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25223         (printf): When using GNU C, map the __printf__ function to rpl_printf
25224         via __asm__. When not using GNU C, define rpl_printf instead of
25225         __printf__.
25226         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25227         commit.
25228         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25229         commit.
25230         * m4/asm-underscore.m4: New file.
25231         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25232         * modules/stdio (Files): Add m4/asm-underscore.m4.
25233         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25234         Reported by Ben Pfaff.
25236 2010-05-16  Bruno Haible  <bruno@clisp.org>
25238         verify: Avoid skipping the test on openSUSE 11.0.
25239         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25241 2010-05-13  Bruno Haible  <bruno@clisp.org>
25243         Avoid useless warnings from G++.
25244         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25245         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25248 2010-05-11  Jim Meyering  <meyering@redhat.com>
25250         maint.mk: tweak preceding change
25251         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25252         regexps tighter by anchoring at EOL, and make the new group "shy"
25253         for slightly decreased overhead.
25255 2010-05-11  Eric Blake  <eblake@redhat.com>
25257         maint.mk: gnulib doesn't guarantee NSIG
25258         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25260 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25262         test-pwrite.c: Remove unused variable declaration.
25263         * tests/test-pwrite.c (main): Remove read_buf declaration.
25265         Remove useless test-pwrite.sh file.
25266         * tests/test-pwrite.sh: Delete file.
25267         * modules/pwrite-tests: Remove references.
25268         Reported by Bruno Haible.
25270 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25272         init.sh: fix a typo
25273         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25275 2010-05-10  Jim Meyering  <meyering@redhat.com>
25277         maint.mk: avoid using a temporary file in the always-defined-macros check
25278         * top/maint.mk (.re-defmac): Remove rule.
25279         (gl_trap_): Remove definition.
25280         (sc_prohibit_always-defined_macros): Rewrite not to create and
25281         depend on a temporary file.  Instead, depend on GNU grep's ability
25282         to read a list of regular expressions from stdin when given "-f -".
25284 2010-05-09  Bruno Haible  <bruno@clisp.org>
25286         Update to GNU gettext 0.18, part 1.
25287         * m4/gettext.m4: Update to GNU gettext 0.18.
25288         * m4/intl.m4: Likewise.
25289         * m4/po.m4: Likewise.
25290         * modules/gettext (Files): Add m4/fcntl-o.m4.
25291         (configure.ac): Require gettext infrastructure from version 0.18.
25293 2010-05-09  Jim Meyering  <meyering@redhat.com>
25295         init.sh: enable MALLOC_PERTURB_
25296         * tests/init.sh: Enable glibc's malloc-perturbing option.
25298         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25299         With my recent change in init.sh from the two-line form:
25300             -#   : ${srcdir=.}
25301             -#   . "$srcdir/init.sh"; path_prepend_ .
25302             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25303         I noticed that using the one-line form would cause this test
25304         to fail with a false-positive, or to stop working altogether,
25305         depending on whether help-version changed or all the tests did.
25306         * top/maint.mk (_hv_regex): Remove this definition.
25307         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25308         (_hv_regex_strong): Use a stronger regex to check for conformance.
25309         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25310         Give a separate diagnostic for lack of conforming use.
25312         maint.mk: prohibit definition of symbols defined by gnulib
25313         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25314         definition of symbols defined by gnulib.
25316 2010-05-09  Bruno Haible  <bruno@clisp.org>
25318         acl: Avoid test failure on Cygwin-hosted mingw.
25319         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25321 2010-05-09  Bruno Haible  <bruno@clisp.org>
25323         error: Use system's fcntl function.
25324         * lib/error.c (fcntl): Undefine.
25326 2010-05-09  Jim Meyering  <meyering@redhat.com>
25328         verify: adjust formatting to be more consistent
25329         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25330         argument-list '('s, and after one comma.
25332 2010-05-09  Bruno Haible  <bruno@clisp.org>
25334         error: More reliable output on mingw.
25335         * lib/error.c: Include <windows.h>.
25336         (is_open): New function.
25337         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25338         defined.
25340 2010-05-09  Bruno Haible  <bruno@clisp.org>
25342         vasnprintf: Fix syntax errors in libintl build on mingw.
25343         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25344         pad_ourselves and prec_ourselves after use.
25346 2010-05-08  Bruno Haible  <bruno@clisp.org>
25348         * lib/config.charset: Update comments for Cygwin 1.7.
25349         * lib/localcharset.c: Likewise.
25351 2010-05-07  Jim Meyering  <meyering@redhat.com>
25353         init.sh: improve comments
25354         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25355         . "${srcdir=.}/init.sh"; path_prepend_ .
25356         Add a note about path_prepend_ and the alternative of using
25357         TESTS_ENVIRONMENT.
25359 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25361         exclude: Unescape hashed patterns in wildcard mode.
25362         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25363         to the hash list.
25364         * tests/test-exclude8.sh: New test case.
25365         * modules/exclude-tests: Add new test.
25367 2010-05-05  Eric Blake  <eblake@redhat.com>
25369         verify: automate tests
25370         * modules/verify-tests: New module.
25371         * tests/test-verify.sh: New file.
25372         * tests/test-verify.c: Guard each negative test with a unique id.
25373         Also avoid warning about unused left hand of comma expressions.
25375 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25377         Further improvements to verify.h, suggested by Eric Blake.
25378         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25379         the GL_* versions, to avoid collision with OpenGL.
25380         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25381         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25382         than testing merely whether it's defined.
25384         Modify verify.h to pacify gcc -Wredundant_decls.
25385         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25386         These use the prefix "GL_" since they're likely to be useful elsewhere.
25387         We may need to break them out into a different .h file.
25388         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25389         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25390         of verify_function__.
25392 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25394         Tests for module pwrite.
25395         * modules/pwrite-tests: New file.
25396         * tests/test-pwrite.sh: New file.
25397         * tests/test-pwrite.c: New file.
25399         New module pwrite.
25400         * lib/unistd.in.h (pwrite): New declaration.
25401         * lib/pwrite.c: New file, from glibc with modifications.
25402         * m4/pwrite.m4: New file.
25403         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25404         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25405         REPLACE_PWRITE.
25406         * modules/pwrite: New file.
25407         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25408         REPLACE_PWRITE.
25409         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25410         * doc/posix-functions/pwrite.texi: Mention the new module.
25412 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25414         pread: Update documentation.
25415         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25417 2010-05-04  Eric Blake  <eblake@redhat.com>
25419         docs: update cygwin progress
25420         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25421         this bug.
25422         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25423         Added in cygwin 1.7.2.
25424         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25425         Likewise.
25426         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25427         Likewise.
25428         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25429         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25430         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25431         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25432         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25433         Mention nproc module.
25434         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25435         bug in cygwin 1.7.5 addition.
25436         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25437         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25438         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25439         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25440         1.7.5.
25441         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25442         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25443         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25444         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25445         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25446         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25447         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25448         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25449         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25450         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25451         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25452         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25453         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25454         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25455         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25456         Likewise.
25457         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25458         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25459         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25460         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25461         Likewise.
25462         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25463         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25464         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25465         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25466         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25467         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25468         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25469         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25470         Likewise.
25471         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25472         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25473         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25474         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25475         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25476         Likewise.
25477         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25478         Likewise.
25479         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25480         Likewise.
25481         * doc/glibc-functions/xdrrec_endofrecord.texi
25482         (xdrrec_endofrecord): Likewise.
25483         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25484         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25485         Likewise.
25486         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25487         Likewise.
25489 2010-05-04  Jim Meyering  <meyering@redhat.com>
25491         gendocs.sh: make its "-s FILE" option more useful
25492         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25493         $PACKAGE to reflect the probably-different basename of "FILE".
25495 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25497         bootstrap: don't ignore download_po_files failure
25498         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25499         failure.
25501 2010-05-03  Jim Meyering  <meyering@redhat.com>
25503         maint.mk: allow to pass options to gendocs.sh
25504         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25505         (gendocs_options_): New overridable variable.
25507         gnu-web-doc-update: don't ignore configure or build failure
25508         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25510         announce-gen: backslash-escape '@'s in --help output
25511         * build-aux/announce-gen: Fix syntax errors.
25513         maint.mk, announce-gen: allow project-specific announcement mail headers
25514         * top/maint.mk (translation_project_): Define default.
25515         (announcement_Cc_, announcement_mail_headers_): Likewise.
25516         (announcement): Invoke announce-gen with new --mail-headers option.
25517         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25519         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25520         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25521         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25522         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25523         line in the "err2" output file when running "make check" in verbose
25524         mode (i.e., with set -x enabled).
25526 2010-05-03  Bruno Haible  <bruno@clisp.org>
25528         wctob: Fix for weird platforms.
25529         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25530         argument value.
25532 2010-05-03  Jim Meyering  <meyering@redhat.com>
25534         maint.mk: prohibit unwarranted use of <strings.h>
25535         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25536         strings.h in a file that does not also use strcasecmp, strncasecmp,
25537         ffs or ffsll.
25539         maint.mk: remove obsolete comments
25540         * top/maint.mk: Remove stale, commented-out rules.
25542 2010-05-02  Bruno Haible  <bruno@clisp.org>
25544         wcwidth: Declare also when it's aliased.
25545         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25546         macro.
25548 2010-05-02  Bruno Haible  <bruno@clisp.org>
25550         Fix regression from 2010-04-25.
25551         * gnulib-tool (func_modules_transitive_closure): Check the status of
25552         all modules, not only of the tests that are of the form foo-tests where
25553         foo is a module.
25555 2010-05-02  Bruno Haible  <bruno@clisp.org>
25557         wctob: Work around nasty Cygwin 1.7.2 bug.
25558         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25559         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25561 2010-05-01  Bruno Haible  <bruno@clisp.org>
25563         fpurge: Sharper test.
25564         * tests/test-fpurge.c (main): Add one more ftell check.
25565         * modules/fpurge-tests (Depends-on): Add ftell.
25566         Suggested by Eric Blake.
25568 2010-05-01  Bruno Haible  <bruno@clisp.org>
25570         ftello: Another test.
25571         * tests/test-ftello3.c: New file.
25572         * modules/ftello-tests (Files): Add it.
25573         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25574         MOSTLYCLEANFILES.
25576         ftell: Another test.
25577         * tests/test-ftell3.c: New file.
25578         * modules/ftell-tests (Files): Add it.
25579         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25580         MOSTLYCLEANFILES.
25582 2010-05-01  Bruno Haible  <bruno@clisp.org>
25584         ftell, ftello: Work around Solaris bug.
25585         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25586         * lib/ftello.c: Include stdio-impl.h.
25587         (ftello): On Solaris, when _IOWRT is set, compute the result without
25588         looking at _IOREAD.
25589         * modules/ftello (Files): Add lib/stdio-impl.h.
25590         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25591         * doc/posix-functions/ftello.texi: Likewise.
25592         Reported by Eric Blake.
25594 2010-05-01  Bruno Haible  <bruno@clisp.org>
25596         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25597         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25598         the _IOWRT flag is also set.
25600 2010-05-01  Bruno Haible  <bruno@clisp.org>
25602         Fix doc about a HP-UX stdio bug.
25603         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25604         * doc/posix-functions/ftello.texi: Likewise.
25606 2010-05-01  Bruno Haible  <bruno@clisp.org>
25608         lseek test: Fix failure on Solaris.
25609         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25610         output.
25612 2010-04-30  Jim Meyering  <meyering@redhat.com>
25614         bootstrap: don't ignore failure to generate po*/Makevars
25615         * build-aux/bootstrap (with_gettext): Don't ignore failure
25616         to create po/Makevars or runtime-po/Makevars.
25618 2010-04-29  Eric Blake  <eblake@redhat.com>
25620         headers: relax license to LGPLv2+
25621         * modules/fcntl-h (License): Relax license.
25622         * modules/getopt-posix (License): Likewise.
25623         * modules/locale (License): Likewise.
25624         * modules/math (License): Likewise.
25625         * modules/pty (License): Likewise.
25626         * modules/sched (License): Likewise.
25627         * modules/search (License): Likewise.
25628         * modules/spawn (License): Likewise.
25629         * modules/stdarg (License): Likewise.
25630         * modules/sysexits (License): Likewise.
25632 2010-04-29  Jim Meyering  <meyering@redhat.com>
25634         inttypes: relax license to LGPLv2+
25635         * modules/inttypes (License): Relax license.
25637 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25639         * top/maint.mk (indent): Run twice to produce idempotent results.
25641 2010-04-28  Bruno Haible  <bruno@clisp.org>
25643         getdate: Generate getdate.c in the source directory.
25644         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25645         MOSTLYCLEANFILES.
25646         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25648 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25650         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25651         is not declared as a const *; avoid warnings in that case.
25653 2010-04-28  Eric Blake  <eblake@redhat.com>
25655         canonicalize-lgpl: avoid compiler warning
25656         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25657         declaration' / 'extraneous semicolon' warning with some compilers.
25658         Reported by Andreas Gruenbacher.
25660 2010-04-28  Jim Meyering  <meyering@redhat.com>
25662         init.sh: ensure a more reliable exit status when exiting via trap
25663         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25664         Inspired by patches from Dmitry V. Levin.
25665         Also trap on signal 3 (SIGQUIT).
25667 2010-04-27  Bruno Haible  <bruno@clisp.org>
25669         Update doc about utimes().
25670         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25671         'utimens' module.
25672         Reported by Andreas Gruenbacher <agruen@suse.de>.
25674 2010-04-27  Eric Blake  <eblake@redhat.com>
25676         full-read, full-write: relax license
25677         * modules/full-read (License): Drop to LGPLv2+.
25678         * modules/full-write (License): Likewise.
25679         * modules/safe-read (License): Likewise.
25680         * modules/safe-write (License): Likewise.
25682         pthread: mention library for linking
25683         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25685 2010-04-27  Jim Meyering  <meyering@redhat.com>
25687         maint.mk: fix a bug introduced in last change
25688         * top/maint.mk (gl_assured_headers_): Now that all names are on
25689         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25690         is not anchored to end of word, it should be adequate.
25692         maint.mk: avoid side-effect in latest syntax-check
25693         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25694         to run commands via $(shell...), and hence to incur cost only when
25695         the new rule is actually run.
25697         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25698         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25699         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25700         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25701         (gl_assured_headers_, az_, AZ_): Define.
25702         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25704 2010-04-26  Jim Meyering  <jim@meyering.net>
25705             Bruno Haible  <bruno@clisp.org>
25707         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25708         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25709         Prompted by an exchange with Gilles Espinasse.
25711 2010-04-26  Jim Meyering  <meyering@redhat.com>
25713         git-version-gen: aesthetic tweak
25714         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25715         so that the command remains on a single line.
25717 2010-04-26  Eric Blake  <eblake@redhat.com>
25719         git-version-gen: allow use on EBCDIC hosts
25720         * build-aux/git-version-gen (dirty): Use literal rather than tying
25721         ourselves to ascii.
25722         Reported by Steve Goetze.
25724 2010-04-25  Bruno Haible  <bruno@clisp.org>
25726         netdb: Add support for GNULIB_POSIXCHECK.
25727         * lib/netdb.in.h: Include warn-on-use.h.
25728         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25729         functions are used when GNULIB_POSIXCHECK is defined and the
25730         getaddrinfo module is not in use.
25731         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25732         freeaddrinfo, gai_strerror, getnameinfo are declared.
25733         * modules/netdb (Depends-on): Add warn-on-use.
25734         (Makefile.am): Include warn-on-use.h in netdb.h.
25736 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25738         build: avoid "make check" failure without .git/ directory
25739         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25740         there is no .git/ directory.
25742 2010-04-25  Bruno Haible  <bruno@clisp.org>
25744         ptsname: Fix misuse of ttyname_r.
25745         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25746         of errno.
25748 2010-04-25  Bruno Haible  <bruno@clisp.org>
25750         ttyname_r: Make it work on Solaris 10.
25751         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25752         if the system function has the POSIX declaration. Test whether the
25753         function fails if the buffer is less than 128 bytes large.
25754         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25755         system's ttyname_r function. Provide a reasonably large buffer.
25756         * modules/ttyname_r (Depends-on): Add extensions.
25757         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25759 2010-04-25  Bruno Haible  <bruno@clisp.org>
25761         Use the 'extensions' module for some more functions on Solaris.
25762         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25763         module.
25764         * doc/posix-functions/ctime_r.texi: Likewise.
25765         * doc/posix-functions/getgrgid_r.texi: Likewise.
25766         * doc/posix-functions/getgrnam_r.texi: Likewise.
25767         * doc/posix-functions/getpwnam_r.texi: Likewise.
25768         * doc/posix-functions/getpwuid_r.texi: Likewise.
25769         * doc/posix-functions/readdir_r.texi: Likewise.
25770         * doc/posix-functions/sigwait.texi: Likewise.
25771         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25772         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25774 2010-04-25  Bruno Haible  <bruno@clisp.org>
25776         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25777         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25778         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25779         * lib/ttyname_r.c: Include <limits.h>.
25780         (ttyname_r): Define using the system's ttyname_r function, if it exists
25781         and not on Solaris.
25782         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25783         set.
25784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25785         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25786         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25787         Reported by Simon Josefsson.
25789 2010-04-25  Bruno Haible  <bruno@clisp.org>
25791         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25792         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25793         * doc/posix-functions/ctime_r.texi: Likewise.
25794         * doc/posix-functions/getgrgid_r.texi: Likewise.
25795         * doc/posix-functions/getgrnam_r.texi: Likewise.
25796         * doc/posix-functions/getlogin_r.texi: Likewise.
25797         * doc/posix-functions/getpwnam_r.texi: Likewise.
25798         * doc/posix-functions/getpwuid_r.texi: Likewise.
25799         * doc/posix-functions/readdir_r.texi: Likewise.
25800         * doc/posix-functions/sigwait.texi: Likewise.
25801         * doc/posix-functions/ttyname_r.texi: Likewise.
25802         Reported by Simon Josefsson.
25804 2010-04-25  Bruno Haible  <bruno@clisp.org>
25806         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25807         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25808         also to --create-testdir.
25809         (func_acceptable): Don't consider the status of *-tests modules here.
25810         (func_modules_transitive_closure): Consider it here, before including a
25811         test module.
25812         (func_import, func_create_testdir): Set inc_all_direct_tests,
25813         inc_all_indirect_tests.
25814         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25815         --create-testdir and --create-megatestdir.
25817 2010-04-25  Bruno Haible  <bruno@clisp.org>
25819         gnulib-tool: Add --without-*-tests options.
25820         * gnulib-tool (func_usage): Document the --without-*-tests options.
25821         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25822         excl_unportable_tests): New variables.
25823         Fail if they are specified with --import or --update.
25824         (func_acceptable): Respect the excl_*_tests variables.
25825         (func_import): Set the excl_*_tests variables to empty.
25827 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25828             Bruno Haible  <bruno@clisp.org>
25830         Work around a MacOS X 10.4 bug with openpty.
25831         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25832         * tests/test-openpty.c (main): Close the master side explicitly.
25834 2010-04-25  Bruno Haible  <bruno@clisp.org>
25836         strnlen: Fix a C++ test error on MacOS X and Solaris.
25837         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25838         the function is not declared.
25839         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25840         Simon Josefsson.
25842 2010-04-24  Bruno Haible  <bruno@clisp.org>
25844         Avoid a gcc warning.
25845         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25846         of correct type for %08lx directive.
25847         Reported by Eric Blake.
25849 2010-04-24  Bruno Haible  <bruno@clisp.org>
25851         vasnprintf: Correct errno value in case of out-of-memory.
25852         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25853         or sprintf. Use the errno value from SNPRINTF or sprintf.
25854         Reported by Ian Beckwith <ianb@erislabs.net>.
25856 2010-04-24  Bruno Haible  <bruno@clisp.org>
25858         ansi-c++-opt: Find correct compiler when cross-compiling.
25859         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25860         AC_CHECK_PROGS.
25861         Reported by Simon Josefsson.
25863 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25865         vc-list-files: Add support for subversion
25866         * build-aux/vc-list-files: Use "svn list" to generate the list of
25867         files controlled by subversion.
25869 2010-04-23  Jim Meyering  <meyering@redhat.com>
25871         vc-list-files tests: convert to use init.sh
25872         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25873         path_prepend_.
25874         Use Exit, not exit.
25875         Use skip_ rather than open coding it.
25876         Remove trap set-up and compare definitions.
25877         * tests/test-vc-list-files-git.sh: Likewise.
25878         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25880 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25882         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25883         backup files.
25885 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25887         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25889 2010-04-20  Eric Blake  <eblake@redhat.com>
25891         tests: be robust to ignored SIGPIPE
25892         * tests/test-select-in.sh: Consume all output.
25893         * tests/test-lseek.sh: Check correct exit status, while avoiding
25894         EPIPE.
25896 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25897             Bruno Haible  <bruno@clisp.org>
25899         visibility: Don't use -fvisibility if it leads to a warning.
25900         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25901         yes, don't pretend that visibility works if it leads to a warning.
25902         Reported by Mike Gran <spk121@yahoo.com>.
25904 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25906         * build-aux/bootstrap: Use "git -h" for testing for supported options
25907         instead of "git --help".  The short-form option only shows a summary,
25908         and doesn't layout the full man page.  Grep for the full option name
25909         in the summary, too.
25911 2010-04-19  Bruno Haible  <bruno@clisp.org>
25913         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25914         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25915         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25916         mention of RELOCATABLE_STRIP.
25917         Reported by Sylvain Beucler <beuc@beuc.net>.
25919 2010-04-19  Bruno Haible  <bruno@clisp.org>
25921         * lib/diffseq.h: Fix typo in comment.
25922         Reported by Eric Blake.
25924 2010-04-19  Bruno Haible  <bruno@clisp.org>
25926         ioctl: Move autoconf macro to a .m4 file.
25927         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25928         * modules/ioctl (Files): Add it.
25929         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25930         Reported by Ian Beckwith <ianb@erislabs.net>.
25932 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25933             Bruno Haible  <bruno@clisp.org>
25935         diffseq: Accommodate use-case with abstract arrays.
25936         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25937         is not defined.
25938         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25939         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25941 2010-04-18  Bruno Haible  <bruno@clisp.org>
25943         * doc/posix-headers/stdbool.texi: More precise wording.
25945 2010-04-17  Jim Meyering  <meyering@redhat.com>
25947         maint.mk: use gnu-style indentation in an embedded perl script
25948         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25949         Rename variable: s/two/last_two_bytes/
25951 2010-04-16  Eric Blake  <eblake@redhat.com>
25953         test-stdbool: skip test that fails with Solaris CC
25954         * tests/test-stdbool.c (f): Skip test that causes compilation
25955         error under buggy C++ compiler.
25956         * lib/stdbool.in.h: Document the limitation.
25957         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25959         setenv: allow compilation with C++
25960         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25961         register keyword.
25963         stdint: allow test to pass with C++
25964         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25966         getopt: allow compilation with C++
25967         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25968         struct.
25969         * lib/getopt.c (_getopt_internal_r): Use correct type.
25970         Reported by Dagobert Michelson, via Joel E. Denny.
25972 2010-04-16  Bruno Haible  <bruno@clisp.org>
25974         Override netdb.h always.
25975         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25976         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25977         Reported by Ludovic Courtès <ludo@gnu.org>.
25979 2010-04-15  Bruno Haible  <bruno@clisp.org>
25981         openpty: Fix mistake from 2010-03-21.
25982         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25983         Reported by Simon Josefsson.
25985 2010-04-15  Eric Blake  <eblake@redhat.com>
25987         test-forkpty: fix expected signature
25988         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25989         Reported by Simon Josefsson.
25991 2010-04-15  Jim Meyering  <meyering@redhat.com>
25993         maint.mk: texinfo_suffix_re_: correct the default regexp
25994         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25996         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25997         make it configurable via texinfo_suffix_re_.
25999 2010-04-14  Eric Blake  <eblake@redhat.com>
26001         strtok_r: relax license to LGPLv2+
26002         * modules/strtok_r (License): Relax license.
26003         Reported by Matthias Bolte.
26005 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26007         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26008         version 1.4.4 by default instead of requiring the libgcrypt
26009         version used during build.  This makes it possible to use the
26010         application with older but still binary compatible libgcrypt
26011         versions.
26013 2010-04-13  Eric Blake  <eblake@redhat.com>
26015         getopt-gnu: match recent glibc fixes and posix ruling
26016         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26017         '+' handling, when requesting extensions.
26018         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26019         'W;' handling.
26020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26021         * doc/posix-functions/getopt.texi (getopt): Document this.
26022         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26023         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26024         Likewise.
26026         getopt: merge bug fixes from glibc
26027         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26028         diagnostics.  Honor '+:' correctly.  Reject ';'.
26030         getopt-posix: detect MacOS bug
26031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26032         optind when missing a required argument.
26033         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26034         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26035         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26036         Likewise.
26038         getopt-posix: avoid spurious failure on Solaris
26039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26040         an indicator that setting optind=1 is sufficient for reset.
26042         getopt-posix: avoid spurious failure on FreeBSD
26043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26044         in POSIX mode, since the m4 test uses it.
26046         gnulib-tool: silence warning on BSD sh
26047         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26049 2010-04-13  Jim Meyering  <meyering@redhat.com>
26051         doc: users.txt: GNU patch now uses gnulib
26052         * users.txt: Add patch.
26054 2010-04-12  Jim Meyering  <meyering@redhat.com>
26056         maint.mk: generate more concise timing data for syntax-check rules
26057         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26058         " done" from each line that reports a syntax-check test duration.
26060 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26062         git-version-gen: use "git update-index..." rather than "git status"
26063         * build-aux/git-version-gen: Use git update-index --refresh, not
26064         "git status".  With some versions of git, "git status" would fail
26065         to update the index and result in an unwarranted "-dirty" suffix.
26067 2010-04-11  Jim Meyering  <meyering@redhat.com>
26069         openat: correct formatting (no semantic change)
26070         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26071         Suggested by Bruno Haible.
26073 2010-04-11  Bruno Haible  <bruno@clisp.org>
26075         Stricter declaration checking in testdirs.
26076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26077         If for_tests is true, augment AM_CPPFLAGS to define
26078         GNULIB_STRICT_CHECKING.
26079         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26080         GNULIB_STRICT_CHECKING is defined, verify that the function is
26081         declared.
26083 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26084             Bruno Haible  <bruno@clisp.org>
26086         libunistring: Improve configure output.
26087         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26088         Don't say "consider installing GNU libunistring" when checking again
26089         with libiconv.
26091 2010-04-11  Bruno Haible  <bruno@clisp.org>
26093         libunistring: Correct value of $LTLIBUNISTRING.
26094         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26095         correct the value of $LTLIBUNISTRING.
26097 2010-04-11  Bruno Haible  <bruno@clisp.org>
26099         havelib: Add static libraries to LIBS in the right order.
26100         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26101         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26103 2010-04-11  Bruno Haible  <bruno@clisp.org>
26105         libunistring: Detect libunistring also when it depends on libiconv.
26106         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26107         the second AC_LIB_HAVE_LINKFLAGS invocation.
26109 2010-04-11  James Youngman  <jay@gnu.org>
26111         close-stream: declare local scalars to be "const"
26112         * lib/close-stream.c (close_stream): Make boolean variables const
26113         to document the fact that we set but do not change them.
26115 2010-04-11  Bruno Haible  <bruno@clisp.org>
26117         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26119 2010-04-11  Jim Meyering  <meyering@redhat.com>
26121         maint.mk: don't include dist-check.mk
26122         * top/maint.mk: Remove bogus include directive.
26124         maint.mk: improve empty-line-at-EOF check
26125         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26126         solution, rather than tail+Perl-based one.  The latter would read
26127         a few kilobytes from the end of each file, and did not handle empty
26128         files properly.
26130         maint.mk: print the elapsed time for each syntax-check rule
26131         * top/maint.mk (sc_m_rules_): Save start time in a file.
26132         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26133         (local-check): Interpose the .z rules
26135 2010-04-11  Jim Meyering  <meyering@redhat.com>
26137         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26138         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26139         empty file with one that ends in an empty line.
26141 2010-04-10  Bruno Haible  <bruno@clisp.org>
26143         mkdir: Make it work on mingw64.
26144         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26145         * lib/mkdir.c: Update comment.
26146         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26148 2010-04-10  Bruno Haible  <bruno@clisp.org>
26150         Don't override improved macro from newer autoconf.
26151         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26152         autoconf >= 2.62.
26153         Reported by Joel E. Denny <jdenny@clemson.edu>.
26155 2010-04-10  Jim Meyering  <meyering@redhat.com>
26157         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26158         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26160         maint.mk: correct a diagnostic
26161         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26162         in diagnostic; now use $prohibit.
26164 2010-04-10  Bruno Haible  <address@hidden>
26166         fchownat: Fix a C++ test error on Solaris 8.
26167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26168         the function does not exist.
26170 2010-04-10  Bruno Haible  <bruno@clisp.org>
26172         vasnprintf: Add more tests.
26173         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26174         (test_function): Test converting an invalid wide string.
26176         vasnprintf: Correct handling of unconvertible wide string arguments.
26177         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26178         VASNPRINTF.
26179         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26180         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26181         smaller than the expected maximum need for the directive. Set errno to
26182         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26183         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26185         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26186         * modules/vasnprintf (Files): Add m4/printf.m4.
26187         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26189 2010-04-10  Bruno Haible  <bruno@clisp.org>
26191         vasnprintf: Fix crash in %ls directive.
26192         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26193         string is passed as argument to %ls, with no precision and no width.
26194         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26196 2010-04-10  Bruno Haible  <bruno@clisp.org>
26198         vasnprintf: Fix multiple test failures on mingw.
26199         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26200         _snprintf, or snwprintf, not _snwprintf.
26202 2010-04-10  Bruno Haible  <bruno@clisp.org>
26204         write: Fix a C++ test error on mingw.
26205         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26207 2010-04-10  Bruno Haible  <bruno@clisp.org>
26209         vasnprintf test: Reduce code duplication.
26210         * tests/test-vasnprintf.c (test_function): New function, extracted from
26211         test_vasnprintf.
26212         (test_vasnprintf, test_asnprintf): Invoke it.
26214 2010-04-10  Bruno Haible  <bruno@clisp.org>
26216         strnlen: Fix warning in C++ mode on MacOS X.
26217         * lib/string.in.h (strnlen): Use the modern idiom.
26218         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26219         defining strnlen as a macro already in <config.h>.
26220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26221         REPLACE_STRNLEN.
26222         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26223         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26225 2010-04-08  James Youngman  <jay@gnu.org>
26227         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26228         the example.
26230 2010-04-09  Jim Meyering  <meyering@redhat.com>
26232         maint.mk: print better diagnostic when there is no $(_hv_file)
26233         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26234         announce that when $(_hv_file) (aka help-version) does not exist.
26236         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26237         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26238         not try to interpret its random input bytes.  Jarno Rajahalme reported
26239         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26240         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26241         (mktempd_): Likewise, just in case.
26243         ftruncate: add two years to projected module removal date: 2012
26244         * m4/ftruncate.m4: Adjust comments.
26246         ftruncate: mark module as obsolete; even MinGW provides it, now
26247         * modules/ftruncate (Status): Obsolete.
26248         (Notice): Say that.
26249         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26252 2010-04-08  Bruno Haible  <bruno@clisp.org>
26254         Fix side effects from tests-related modules.
26255         * modules/dprintf-posix (Comment): New section.
26256         * modules/fprintf-posix (Comment): Likewise.
26257         * modules/obstack-printf-posix (Comment): Likewise.
26258         * modules/printf-posix (Comment): Likewise.
26259         * modules/snprintf-posix (Comment): Likewise.
26260         * modules/sprintf-posix (Comment): Likewise.
26261         * modules/vasnprintf-posix (Comment): Likewise.
26262         * modules/vasprintf-posix (Comment): Likewise.
26263         * modules/vdprintf-posix (Comment): Likewise.
26264         * modules/vfprintf-posix (Comment): Likewise.
26265         * modules/vprintf-posix (Comment): Likewise.
26266         * modules/vsnprintf-posix (Comment): Likewise.
26267         * modules/vsprintf-posix (Comment): Likewise.
26268         * modules/xprintf-posix (Comment): Likewise.
26269         * modules/xvasprintf-posix (Comment): Likewise.
26270         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26271         * modules/floorf-tests (Depends-on): Likewise.
26272         * modules/round-tests (Depends-on): Likewise.
26273         * modules/roundf-tests (Depends-on): Likewise.
26274         * modules/trunc-tests (Depends-on): Likewise.
26275         * modules/truncf-tests (Depends-on): Likewise.
26276         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26277         'fprintf-posix' module is not present.
26278         * tests/test-floorf2.c (check): Likewise.
26279         * tests/test-trunc2.c (check): Likewise.
26280         * tests/test-truncf2.c (check): Likewise.
26281         * tests/test-round2.c (equal): Likewise.
26282         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26284 2010-04-07  Karl Berry  <karl@gnu.org>
26286         * config/srclist.txt,
26287         * config/srclistvars.sh,
26288         * config/srclist-update: doc fixes.
26290 2010-04-07  Jim Meyering  <meyering@redhat.com>
26292         maint.mk: add a PATH crosschecking syntax-check rule
26293         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26294         Useful if you use a test like the one in help-version (coreutils,
26295         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26296         printed by prog --version.
26298 2010-04-06  Bruno Haible  <bruno@clisp.org>
26300         Fix link error on mingw.
26301         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26302         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26304 2010-04-06  Bruno Haible  <bruno@clisp.org>
26306         Assume rmdir exists.
26307         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26309 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26311         doc: update users.txt
26312         * users.txt: Add gcal.
26314 2010-04-06  Jim Meyering  <meyering@redhat.com>
26316         init.sh: simply unset TMPDIR rather than risking env -i
26317         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26318         although it probably works fine on all Unix-based systems, some
26319         systems (Cygwin?) cannot tolerate a totally cleared environment.
26320         Suggestion from Eric Blake.
26322 2010-04-06  Jim Meyering  <meyering@redhat.com>
26324         init.sh: portability fix: use env's POSIX-specified -i option not -u
26325         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26326         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26328 2010-04-05  Bruno Haible  <bruno@clisp.org>
26330         btowc: Work around Cygwin 1.7.2 bug.
26331         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26332         does not map NUL to 0.
26333         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26335 2010-04-05  Bruno Haible  <bruno@clisp.org>
26337         Make the multithread modules work on Cygwin 1.7.2.
26338         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26339         imported symbols can be declared weak, so that it returns "no" on
26340         Cygwin 1.7.2.
26342 2010-04-05  Bruno Haible  <bruno@clisp.org>
26344         Use the module 'strncat'.
26345         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26347         Tests for module 'strncat'.
26348         * modules/strncat-tests: New file.
26349         * tests/test-strncat.c: New file.
26351         New module 'strncat'.
26352         * lib/string.in.h (strncat): New declaration.
26353         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26354         * m4/strncat.m4: New file, based on m4/memchr.m4.
26355         * modules/strncat: New file.
26356         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26357         is declared.
26358         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26359         REPLACE_STRNCAT.
26360         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26361         REPLACE_STRNCAT.
26362         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26363         module.
26364         * tests/test-string-c++.cc: Check signature of strncat.
26366 2010-04-05  Jim Meyering  <meyering@redhat.com>
26368         xstrtoumax-tests: convert to use init.sh
26369         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26370         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26371         Use Exit, not exit.
26372         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26374         xstrtoimax-tests: convert to use init.sh
26375         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26376         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26377         Use Exit, not exit.
26378         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26380 2010-04-05  Bruno Haible  <bruno@clisp.org>
26382         sys_socket: Avoid #define replacements in C++ mode.
26383         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26384         warning to the function if possible, rather than #defining the symbol
26385         to a dysfunctional alias.
26387 2010-04-05  Bruno Haible  <bruno@clisp.org>
26389         fseeko: Fix C++ test error on mingw.
26390         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26391         gl_FUNC_FSEEKO.
26392         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26393         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26394         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26395         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26397 2010-04-05  Bruno Haible  <bruno@clisp.org>
26399         duplocale: Improve test output.
26400         * tests/test-duplocale.c (main): Print reason for skipped test.
26402 2010-04-05  Bruno Haible  <bruno@clisp.org>
26404         Assume rmdir exists.
26405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26406         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26408 2010-04-05  Bruno Haible  <bruno@clisp.org>
26410         Fix link error on Solaris 8 with cc.
26411         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26413 2010-04-05  Bruno Haible  <bruno@clisp.org>
26415         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26416         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26418 2010-04-05  Bruno Haible  <bruno@clisp.org>
26420         vasprintf: Update documentation.
26421         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26423 2010-04-05  Bruno Haible  <bruno@clisp.org>
26425         ptsname: Improve test.
26426         * tests/test-ptsname.c (main): Also try the various master names of BSD
26427         systems.
26429 2010-04-05  Bruno Haible  <bruno@clisp.org>
26431         memchr: Avoid a possible C++ test error.
26432         * lib/string.in.h (memchr): Provide declaration if function is missing.
26433         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26434         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26436         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26438 2010-04-05  Bruno Haible  <bruno@clisp.org>
26440         strtok_r: Improve idiom.
26441         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26442         AC_LIBOBJ is used.
26444 2010-04-05  Bruno Haible  <bruno@clisp.org>
26446         strdup: Improve idiom.
26447         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26448         AC_LIBOBJ is used.
26449         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26450         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26451         when AC_LIBOBJ is used.
26453 2010-04-05  Bruno Haible  <bruno@clisp.org>
26455         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26456         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26457         don't set REPLACE_MBSINIT to 1.
26458         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26459         don't set REPLACE_MBRTOWC to 1.
26460         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26461         exist, don't set REPLACE_MBSRTOWCS to 1.
26462         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26463         exist, don't set REPLACE_MBSNRTOWCS to 1.
26464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26465         don't set REPLACE_WCRTOMB to 1.
26466         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26467         exist, don't set REPLACE_WCSRTOMBS to 1.
26468         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26469         exist, don't set REPLACE_WCSNRTOMBS to 1.
26471 2010-04-05  Bruno Haible  <bruno@clisp.org>
26473         ldexpl: Improve idiom.
26474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26475         make sure to set HAVE_DECL_LDEXPL to 0.
26477 2010-04-05  Jim Meyering  <meyering@redhat.com>
26479         xstrtol-tests: convert to use init.sh
26480         * modules/xstrtol-tests (Files): Add tests/init.sh.
26481         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26482         Use Exit, not exit.
26483         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26485         atexit-tests: convert to use init.sh
26486         * modules/atexit-tests (Files): Add tests/init.sh.
26487         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26488         Use Exit, not exit.
26489         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26491         init.sh: fix typo
26492         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26494         init.sh: make it easier for a test script to write to the tty, ...
26495         when using automake's parallel-tests mode.
26496         * tests/init.sh (stderr_fileno_): Define overridable variable.
26497         (warn_): New function, to use it.
26498         (fail_, skip_, framework_failure_): Use warn_.
26500 2010-04-04  Bruno Haible  <bruno@clisp.org>
26502         btowc: Avoid warning.
26503         * lib/btowc.c: Include <stdlib.h>.
26504         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26506 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26507             Bruno Haible  <bruno@clisp.org>
26509         wchar: Port to NetBSD 1.5.
26510         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26511         * lib/wctype.in.h (WEOF): Likewise.
26513 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26514             Bruno Haible  <bruno@clisp.org>
26516         Port extended stdio to NetBSD 1.5.
26517         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26518         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26519         older.
26521 2010-04-04  Bruno Haible  <bruno@clisp.org>
26523         string: Remove unused substitution.
26524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26525         HAVE_DECL_STRERROR.
26526         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26528 2010-04-04  Bruno Haible  <bruno@clisp.org>
26530         strtod: Avoid a possible C++ test error.
26531         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26532         set REPLACE_STRTOD.
26534 2010-04-04  Bruno Haible  <bruno@clisp.org>
26536         strerror: Update documentation.
26537         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26539 2010-04-04  Bruno Haible  <bruno@clisp.org>
26541         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26542         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26543         _GL_CXXALIAS_SYS_CAST.
26545 2010-04-04  Bruno Haible  <bruno@clisp.org>
26547         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26548         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26549         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26550         REPLACE_FREXPL to 1.
26551         * doc/posix-functions/frexpl.texi: Update documentation.
26553 2010-04-04  Bruno Haible  <bruno@clisp.org>
26555         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26556         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26558 2010-04-04  Bruno Haible  <bruno@clisp.org>
26560         Implement nanosleep for native Windows.
26561         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26563 2010-04-04  Bruno Haible  <bruno@clisp.org>
26565         math: Fix some C++ test errors on Solaris 8.
26566         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26568 2010-04-04  Bruno Haible  <bruno@clisp.org>
26570         math: Fix some C++ test errors on Cygwin.
26571         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26572         truncl): Provide declaration if the system does not have it.
26573         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26574         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26575         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26576         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26577         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26578         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26579         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26580         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26581         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26582         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26583         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26584         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26585         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26586         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26587         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26588         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26590         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26591         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26592         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26593         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26594         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26596 2010-04-04  Bruno Haible  <bruno@clisp.org>
26598         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26599         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26600         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26601         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26602         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26603         * m4/isinf.m4 (gl_ISINF): Likewise.
26604         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26606 2010-04-04  Bruno Haible  <bruno@clisp.org>
26608         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26609         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26611 2010-04-04  Bruno Haible  <bruno@clisp.org>
26613         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26614         * modules/tmpfile (configure.ac): Update.
26616         tmpfile: Fix C++ test error on mingw.
26617         * lib/stdio.in.h (tmpfile): New declaration.
26618         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26619         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26620         * modules/tmpfile (Depends-on): Add stdio.
26621         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26622         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26623         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26624         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26625         REPLACE_TMPFILE.
26626         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26628 2010-04-04  Bruno Haible  <bruno@clisp.org>
26630         ioctl: Fix C++ test error on mingw.
26631         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26632         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26633         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26635 2010-04-03  Bruno Haible  <bruno@clisp.org>
26637         wcwidth: Fix C++ test error on mingw.
26638         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26640         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26642 2010-04-03  Bruno Haible  <bruno@clisp.org>
26644         nanosleep: Fix C++ test error on mingw.
26645         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26646         * lib/time.in.h (nanosleep): Use modern idiom.
26647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26648         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26649         REPLACE_NANOSLEEP to 1.
26650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26651         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26653 2010-04-03  Bruno Haible  <bruno@clisp.org>
26655         strptime: Fix C++ test error on mingw.
26656         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26657         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26658         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26659         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26661         not REPLACE_STRPTIME.
26662         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26663         REPLACE_STRPTIME.
26665 2010-04-03  Bruno Haible  <bruno@clisp.org>
26667         timegm: Fix C++ test error on mingw.
26668         * lib/time.in.h (timegm): Use modern idiom.
26669         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26670         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26672         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26674 2010-04-03  Bruno Haible  <bruno@clisp.org>
26676         timegm: Assume declaration if function exists.
26677         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26678         if it exists. Don't clobber ac_cv_func_timegm.
26680 2010-04-03  Bruno Haible  <bruno@clisp.org>
26682         time_r: Fix C++ test error on mingw.
26683         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26684         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26685         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26686         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26687         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26689 2010-04-03  Bruno Haible  <bruno@clisp.org>
26691         time_r: Minor updates.
26692         * modules/time_r (Description): Mention the provided functions.
26693         * lib/time_r.c: Don't include <string.h>.
26694         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26695         * doc/posix-functions/localtime_r.texi: Likewise.
26697 2010-04-03  Bruno Haible  <bruno@clisp.org>
26699         time: Fix regression introduced on 2010-03-08.
26700         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26701         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26703 2010-04-03  Jim Meyering  <meyering@redhat.com>
26705         maint.mk: don't silently disable project-specific syntax-check rules
26706         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26707         that they need to convert their project-specific syntax-check rules
26708         to use the new _sc_search_regexp.
26710 2010-04-03  Bruno Haible  <bruno@clisp.org>
26712         fchdir: Fix regression introduced on 2010-03-08.
26713         * lib/unistd.in.h (fchdir): Fix declaration.
26714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26716         REPLACE_FCHDIR.
26717         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26718         REPLACE_FCHDIR.
26720 2010-04-03  Bruno Haible  <bruno@clisp.org>
26722         getpagesize: Fix C++ test error on mingw.
26723         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26724         system does not declare the function.
26725         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26726         declared.
26727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26728         HAVE_DECL_GETPAGESIZE.
26729         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26731 2010-04-03  Bruno Haible  <bruno@clisp.org>
26733         stdio: Make C++ tests work on mingw.
26734         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26735         does not declare the function.
26737 2010-04-03  Bruno Haible  <bruno@clisp.org>
26739         ftello: Fix C++ test error on mingw.
26740         * lib/stdio.in.h (ftello): Use modern idiom.
26741         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26742         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26743         is missing and that it needs to be replaced.
26744         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26746         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26748 2010-04-03  Bruno Haible  <bruno@clisp.org>
26750         fseeko: Fix C++ test error on mingw.
26751         * lib/stdio.in.h (fseeko): Use modern idiom.
26752         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26753         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26754         is missing and that it needs to be replaced.
26755         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26757         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26759 2010-04-03  Bruno Haible  <bruno@clisp.org>
26761         mkstemp: Fix C++ test error on mingw.
26762         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26764         function is missing and that it needs to be replaced.
26765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26766         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26768 2010-04-03  Bruno Haible  <bruno@clisp.org>
26770         stpncpy: Fix C++ test error on mingw.
26771         * lib/string.in.h (stpncpy): Use modern idiom.
26772         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26773         function is missing and that it needs to be replaced.
26774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26775         REPLACE_STPNCPY.
26776         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26778 2010-04-03  Bruno Haible  <bruno@clisp.org>
26780         sys_stat: Fix C++ test error on mingw.
26781         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26782         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26784 2010-04-03  Bruno Haible  <bruno@clisp.org>
26786         pty: Update doc.
26787         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26789 2010-04-03  Bruno Haible  <bruno@clisp.org>
26791         unistd: Fix C++ test error on mingw.
26792         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26794 2010-04-03  Bruno Haible  <bruno@clisp.org>
26796         Update doc regarding mingw.
26797         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26798         * doc/glibc-functions/login_tty.texi: Likewise.
26799         * doc/glibc-functions/forkpty.texi: Likewise.
26801 2010-04-03  Bruno Haible  <bruno@clisp.org>
26803         stdlib: Avoid compilation failure of c-strtold on mingw.
26804         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26806 2010-04-03  Bruno Haible  <bruno@clisp.org>
26808         locale: Make C++ tests work on Cygwin and mingw.
26809         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26810         cannot provide the function.
26811         Reported by Simon Josefsson.
26813 2010-04-03  Bruno Haible  <bruno@clisp.org>
26815         localename: Port to MacOS X 10.6.
26816         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26817         memory layout of the locales in MacOS X 10.6 as well.
26818         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26820 2010-04-02  Bruno Haible  <bruno@clisp.org>
26822         gnulib-tool: Ensure that long-running tests are executed last.
26823         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26824         running tests after the one for the other tests.
26826 2010-04-02  Bruno Haible  <bruno@clisp.org>
26828         gnulib-tool: Ensure the tests in the main directory are executed first.
26829         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26830         start with the current directory.
26832 2010-04-02  Bruno Haible  <bruno@clisp.org>
26834         Tests for module 'havelib', moved here from GNU gettext.
26835         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26836         modifications.
26837         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26838         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26839         with modifications.
26840         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26841         modifications.
26842         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26843         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26844         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26845         with modifications.
26846         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26847         with modifications.
26848         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26849         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26850         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26851         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26852         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26853         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26854         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26855         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26856         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26857         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26858         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26859         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26860         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26861         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26862         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26863         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26864         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26865         with modifications.
26866         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26867         with modifications.
26868         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26869         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26870         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26871         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26872         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26873         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26874         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26875         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26876         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26877         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26878         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26879         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26880         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26881         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26882         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26883         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26884         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26885         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26886         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26887         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26888         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26889         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26890         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26891         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26892         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26893         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26894         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26895         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26896         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26897         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26898         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26899         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26900         * tests/havelib/rpathx/rpathx.c: New file, from
26901         gettext/autoconf-lib-link.
26902         * tests/havelib/rpathx/Makefile.am: New file, from
26903         gettext/autoconf-lib-link.
26904         * tests/havelib/rpathx/configure.ac: New file, from
26905         gettext/autoconf-lib-link with modifications.
26906         * tests/havelib/rpathy/rpathy.c: New file, from
26907         gettext/autoconf-lib-link.
26908         * tests/havelib/rpathy/Makefile.am: New file, from
26909         gettext/autoconf-lib-link.
26910         * tests/havelib/rpathy/configure.ac: New file, from
26911         gettext/autoconf-lib-link with modifications.
26912         * tests/havelib/rpathz/rpathz.c: New file, from
26913         gettext/autoconf-lib-link.
26914         * tests/havelib/rpathz/Makefile.am: New file, from
26915         gettext/autoconf-lib-link.
26916         * tests/havelib/rpathz/configure.ac: New file, from
26917         gettext/autoconf-lib-link with modifications.
26918         * tests/havelib/rpathlx/usex.c: New file, from
26919         gettext/autoconf-lib-link.
26920         * tests/havelib/rpathlx/Makefile.am: New file, from
26921         gettext/autoconf-lib-link.
26922         * tests/havelib/rpathlx/configure.ac: New file, from
26923         gettext/autoconf-lib-link with modifications.
26924         * tests/havelib/rpathly/usey.c: New file, from
26925         gettext/autoconf-lib-link.
26926         * tests/havelib/rpathly/Makefile.am: New file, from
26927         gettext/autoconf-lib-link.
26928         * tests/havelib/rpathly/configure.ac: New file, from
26929         gettext/autoconf-lib-link with modifications.
26930         * tests/havelib/rpathlz/usez.c: New file, from
26931         gettext/autoconf-lib-link.
26932         * tests/havelib/rpathlz/Makefile.am: New file, from
26933         gettext/autoconf-lib-link.
26934         * tests/havelib/rpathlz/configure.ac: New file, from
26935         gettext/autoconf-lib-link with modifications.
26936         * tests/havelib/rpathlyx/usey.c: New file, from
26937         gettext/autoconf-lib-link.
26938         * tests/havelib/rpathlyx/Makefile.am: New file, from
26939         gettext/autoconf-lib-link.
26940         * tests/havelib/rpathlyx/configure.ac: New file, from
26941         gettext/autoconf-lib-link with modifications.
26942         * tests/havelib/rpathlzyx/usez.c: New file, from
26943         gettext/autoconf-lib-link.
26944         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26945         gettext/autoconf-lib-link.
26946         * tests/havelib/rpathlzyx/configure.ac: New file, from
26947         gettext/autoconf-lib-link with modifications.
26948         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26949         with modifications.
26951 2010-04-02  Bruno Haible  <bruno@clisp.org>
26953         gnulib-tool: Create distributed built sources also for the tests.
26954         * gnulib-tool (func_create_testdir): Also generate distributed built
26955         sources in the tests directory.
26957 2010-04-02  Bruno Haible  <bruno@clisp.org>
26959         gnulib-tool: Obey user's environment variables.
26960         * gnulib-tool (func_create_testdir): When creating built sources,
26961         respect the environment variables for autoconf, automake, etc. given by
26962         the user.
26964 2010-04-02  Bruno Haible  <bruno@clisp.org>
26966         gnulib-tool: Provide the value of --m4-base to modules.
26967         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26968         of gl_m4_base.
26970 2010-04-02  Eric Blake  <eblake@redhat.com>
26972         maint.mk: fix some fallout
26973         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26974         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26976 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26978         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26979         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26980         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26981         (sc_cast_of_x_alloc_return_value): Likewise.
26982         (sc_cast_of_alloca_return_value): Likewise.
26983         (sc_space_tab): Likewise.
26984         (sc_prohibit_atoi_atof): Likewise.
26985         (sc_prohibit_magic_number_exit): Likewise.
26986         (sc_error_exit_success): Likewise.
26987         (sc_file_system): Likewise.
26988         (sc_prohibit_have_config_h): Likewise.
26989         (sc_require_config_h): Likewise.
26990         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26991         (sc_obsolete_symbols): Likewise.
26992         (sc_changelog): Likewise.
26993         (sc_program_name): Likewise.
26994         (sc_the_the): Likewise.
26995         (sc_trailing_blank): Likewise.
26996         (sc_two_space_separator_in_usage): Likewise.
26997         (sc_useless_cpp_parens): Likewise.
26998         (sc_GPL_version): Likewise.
26999         (sc_GFDL_version): Likewise.
27000         (sc_texinfo_acronym): Likewise.
27001         (sc_prohibit_cvs_keyword): Likewise.
27002         (sc_prohibit_stat_st_blocks): Likewise.
27003         (sc_prohibit_S_IS_definition): Likewise.
27004         (sc_redundant_const): Likewise.
27005         (sc_makefile_TAB_only_indentation): Likewise.
27006         (sc_m4_quote_check): Likewise.
27007         (sc_makefile_path_separator_check): Likewise.
27008         (sc_copyright_check): Likewise.
27009         (sc_Wundef_boolean): Likewise.
27010         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27012         maint.mk: match 0 or more whitespace-before-function-call '('
27013         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27014         that have zero or two-and-more spaces between the function name
27015         and the open parenthesis.
27016         (sc_error_message_warn_fatal): Likewise.
27017         (sc_error_message_uppercase): Likewise.
27018         (sc_error_message_period): Likewise.
27020 2010-03-31  Eric Blake  <eblake@redhat.com>
27022         maint.mk: check for [ as well as test
27023         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27024         Based on a libvirt report by Matthias Bolte.
27026         gnumakefile: don't squelch _version output
27027         * top/GNUmakefile (_version): Create one-shot dependency rather
27028         than using $(shell) when version must be regenerated.
27029         (_autoreconf): Run verbosely, by default.
27031         sys_time: avoid compiler warnings
27032         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27033         unconditional, fixing regression from 2010-03-29.
27034         Reported by Simon Josefsson.
27036 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27038         maint.mk: s/_header_without_use/_sc_header_without_use/
27039         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27040         (sc_prohibit_assert_without_use): Use the new name.
27041         (sc_prohibit_close_stream_without_use): Likewise.
27042         (sc_prohibit_getopt_without_use): Likewise.
27043         (sc_prohibit_quotearg_without_use): Likewise.
27044         (sc_prohibit_quote_without_use): Likewise.
27045         (sc_prohibit_long_options_without_use): Likewise.
27046         (sc_prohibit_inttostr_without_use): Likewise.
27047         (sc_prohibit_ignore_value_without_use): Likewise.
27048         (sc_prohibit_error_without_use): Likewise.
27049         (sc_prohibit_xalloc_without_use): Likewise.
27050         (sc_prohibit_hash_without_use): Likewise.
27051         (sc_prohibit_hash_pjw_without_use): Likewise.
27052         (sc_prohibit_safe_read_without_use): Likewise.
27053         (sc_prohibit_argmatch_without_use): Likewise.
27054         (sc_prohibit_canonicalize_without_use): Likewise.
27055         (sc_prohibit_root_dev_ino_without_use): Likewise.
27056         (sc_prohibit_openat_without_use): Likewise.
27057         (sc_prohibit_c_ctype_without_use): Likewise.
27058         (sc_prohibit_signal_without_use): Likewise.
27059         (sc_prohibit_intprops_without_use): Likewise.
27061 2010-03-30  Eric Blake  <eblake@redhat.com>
27063         maint: improve module indicators
27064         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27065         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27066         columns, and avoid extra macro expansion.
27068         fdopendir: work around FreeBSD bug
27069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27070         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27071         * modules/dirent (Makefile.am): Substitute it.
27072         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27073         declaration.
27074         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27075         fix.
27076         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27078 2010-03-29  Bruno Haible  <bruno@clisp.org>
27080         Emit #pragma system_header after the inclusion guard, not before.
27081         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27082         guard that spans the entire file, not before. This enables an
27083         optimization in GCC's preprocessor.
27084         * lib/ctype.in.h: Likewise.
27085         * lib/dirent.in.h: Likewise.
27086         * lib/errno.in.h: Likewise.
27087         * lib/float.in.h: Likewise.
27088         * lib/getopt.in.h: Likewise.
27089         * lib/iconv.in.h: Likewise.
27090         * lib/langinfo.in.h: Likewise.
27091         * lib/locale.in.h: Likewise.
27092         * lib/math.in.h: Likewise.
27093         * lib/netdb.in.h: Likewise.
27094         * lib/netinet_in.in.h: Likewise.
27095         * lib/pty.in.h: Likewise.
27096         * lib/sched.in.h: Likewise.
27097         * lib/se-selinux.in.h: Likewise.
27098         * lib/search.in.h: Likewise.
27099         * lib/spawn.in.h: Likewise.
27100         * lib/stdarg.in.h: Likewise.
27101         * lib/stdint.in.h: Likewise.
27102         * lib/string.in.h: Likewise.
27103         * lib/strings.in.h: Likewise.
27104         * lib/sys_file.in.h: Likewise.
27105         * lib/sys_ioctl.in.h: Likewise.
27106         * lib/sys_time.in.h: Likewise.
27107         * lib/sys_times.in.h: Likewise.
27108         * lib/sys_utsname.in.h: Likewise.
27109         * lib/sys_wait.in.h: Likewise.
27110         * lib/sysexits.in.h: Likewise.
27111         * lib/wctype.in.h: Likewise.
27113 2010-03-28  James Youngman  <jay@gnu.org>
27115         save-cwd: don't leak a file descriptor when the caller execs.
27116         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27117         saved file descriptor.
27118         * modules/save-cwd (Depends-on): Depend on cloexec.
27120 2010-03-29  Bruno Haible  <bruno@clisp.org>
27122         Remove vestiges of fts-lgpl module.
27123         * lib/fts_.h: Assume GNULIB_FTS is 1.
27124         * lib/fts.c: Likewise.
27125         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27127 2010-03-28  Bruno Haible  <bruno@clisp.org>
27129         Fix definition of tests witness macro.
27130         * gnulib-tool (func_import): Fix definition of witness macro.
27132 2010-03-28  Bruno Haible  <bruno@clisp.org>
27134         Fix ioctl's protoype on glibc systems.
27135         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27136         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27137         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27138         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27139         signature. If not, arrange to replace the ioctl function.
27140         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27141         REPLACE_IOCTL.
27142         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27143         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27144         Reported by Ludovic Courtès <ludo@gnu.org>.
27146 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27148         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27149         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27150         made it so grep -r --include=GLOB* ... did not work.
27152 2010-03-26  Jim Meyering  <meyering@redhat.com>
27153             Eric Blake  <eblake@redhat.com>
27155         maint.mk: prohibit use of test's -o and -a operators
27156         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27158 2010-03-28  Bruno Haible  <bruno@clisp.org>
27160         Remove unused GNULIB_XYZ macro definitions.
27161         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27162         invocation.
27164 2010-03-28  Bruno Haible  <bruno@clisp.org>
27166         Mark privileged tests modules.
27167         * modules/idpriv-drop-tests (Status): New section.
27168         * modules/idpriv-droptemp-tests (Status): New section.
27170 2010-03-28  Bruno Haible  <bruno@clisp.org>
27172         Split C++ tests into separate tests modules.
27173         * modules/dirent-c++-tests: New file, extracted from
27174         modules/dirent-tests.
27175         * modules/dirent-tests: Depend on it.
27176         * modules/fcntl-h-c++-tests: New file, extracted from
27177         modules/fcntl-h-tests.
27178         * modules/fcntl-h-tests: Depend on it.
27179         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27180         * modules/glob-tests: Depend on it.
27181         * modules/iconv-h-c++-tests: New file, extracted from
27182         modules/iconv-h-tests.
27183         * modules/iconv-h-tests: Depend on it.
27184         * modules/langinfo-c++-tests: New file, extracted from
27185         modules/langinfo-tests.
27186         * modules/langinfo-tests: Depend on it.
27187         * modules/locale-c++-tests: New file, extracted from
27188         modules/locale-tests.
27189         * modules/locale-tests: Depend on it.
27190         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27191         * modules/math-tests: Depend on it.
27192         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27193         * modules/pty-tests: Depend on it.
27194         * modules/search-c++-tests: New file, extracted from
27195         modules/search-tests.
27196         * modules/search-tests: Depend on it.
27197         * modules/signal-c++-tests: New file, extracted from
27198         modules/signal-tests.
27199         * modules/signal-tests: Depend on it.
27200         * modules/spawn-c++-tests: New file, extracted from
27201         modules/spawn-tests.
27202         * modules/spawn-tests: Depend on it.
27203         * modules/stdio-c++-tests: New file, extracted from
27204         modules/stdio-tests.
27205         * modules/stdio-tests: Depend on it.
27206         * modules/stdlib-c++-tests: New file, extracted from
27207         modules/stdlib-tests.
27208         * modules/stdlib-tests: Depend on it.
27209         * modules/string-c++-tests: New file, extracted from
27210         modules/string-tests.
27211         * modules/string-tests: Depend on it.
27212         * modules/sys_ioctl-c++-tests: New file, extracted from
27213         modules/sys_ioctl-tests.
27214         * modules/sys_ioctl-tests: Depend on it.
27215         * modules/sys_select-c++-tests: New file, extracted from
27216         modules/sys_select-tests.
27217         * modules/sys_select-tests: Depend on it.
27218         * modules/sys_socket-c++-tests: New file, extracted from
27219         modules/sys_socket-tests.
27220         * modules/sys_socket-tests: Depend on it.
27221         * modules/sys_stat-c++-tests: New file, extracted from
27222         modules/sys_stat-tests.
27223         * modules/sys_stat-tests: Depend on it.
27224         * modules/sys_time-c++-tests: New file, extracted from
27225         modules/sys_time-tests.
27226         * modules/sys_time-tests: Depend on it.
27227         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27228         * modules/time-tests: Depend on it.
27229         * modules/unistd-c++-tests: New file, extracted from
27230         modules/unistd-tests.
27231         * modules/unistd-tests: Depend on it.
27232         * modules/wchar-c++-tests: New file, extracted from
27233         modules/wchar-tests.
27234         * modules/wchar-tests: Depend on it.
27235         * modules/wctype-c++-tests: New file, extracted from
27236         modules/wctype-tests.
27237         * modules/wctype-tests: Depend on it.
27238         Reported by Simon Josefsson.
27240 2010-03-28  Bruno Haible  <bruno@clisp.org>
27242         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27243         * gnulib-tool (func_exists_module): New function, extracted from
27244         func_verify_module.
27245         (func_verify_module): Use it.
27246         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27247         'foo' only if 'foo' exists.
27248         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27249         module.
27251 2010-03-28  Bruno Haible  <bruno@clisp.org>
27253         gnulib-tool: Add support for special categories of tests.
27254         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27255         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27256         (func_usage): Document them.
27257         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27258         inc_unportable_tests, inc_all_tests): New variables.
27259         (func_acceptable): Consider these variables.
27260         (func_modules_transitive_closure): Make it work when the 'Status' field
27261         consists of multiple words.
27262         (func_import): Store and restore the values of inc_cxx_tests,
27263         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27264         inc_all_tests in gnulib-comp.m4.
27265         (func_create_testdir): Set inc_all_tests to true.
27266         * doc/gnulib.texi (Extra tests modules): New section.
27267         Suggested by Jim Meyering.
27269 2010-03-28  Bruno Haible  <bruno@clisp.org>
27271         ansi-c++-opt: Allow turning off the C++ build by default.
27272         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27273         gl_CXX_CHOICE_DEFAULT_NO is defined.
27274         Requested by Eric Blake.
27276 2010-03-28  Bruno Haible  <bruno@clisp.org>
27278         unistd: Avoid #define replacements in C++ mode.
27279         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27280         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27281         setsockopt, shutdown, select): In C++, attach a warning to the function
27282         if possible, rather than #defining the symbol to a dysfunctional alias.
27283         Reported by John W. Eaton <jwe@gnu.org>.
27285 2010-03-28  Bruno Haible  <bruno@clisp.org>
27287         Fix link errors on mingw.
27288         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27289         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27290         $(LIBSOCKET).
27291         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27292         $(LIBSOCKET).
27294 2010-03-28  Bruno Haible  <bruno@clisp.org>
27295             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27297         lib-ignore: Determine different options for different compilers.
27298         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27299         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27300         Add comments.
27301         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27302         * NEWS: Mention the change.
27304 2010-03-27  Bruno Haible  <bruno@clisp.org>
27306         Remove unused GNULIB_XYZ macro definitions.
27307         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27308         * modules/fseek (configure.ac): Likewise.
27309         * modules/ioctl (configure.ac): Likewise.
27310         * modules/open (configure.ac): Likewise.
27311         * modules/stdlib-safer (configure.ac): Likewise.
27313 2010-03-27  Bruno Haible  <bruno@clisp.org>
27315         Add a remark about certain modules.
27316         * modules/malloc (Comment): New section.
27317         * modules/realloc (Comment): Likewise.
27318         * modules/sigpipe (Comment): Likewise.
27320 2010-03-27  Bruno Haible  <bruno@clisp.org>
27322         Resolve conflict between the two kinds of module indicators.
27323         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27324         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27325         * modules/canonicalize (configure.ac): Invoke
27326         gl_MODULE_INDICATOR_FOR_TESTS.
27327         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27328         GNULIB_XYZ.
27329         * tests/test-dirent-c++.cc: Likewise.
27330         * tests/test-dirent-safer.c: Likewise.
27331         * tests/test-dup2.c: Likewise.
27332         * tests/test-fchdir.c: Likewise.
27333         * tests/test-fcntl-h-c++.cc: Likewise.
27334         * tests/test-getopt.c: Likewise.
27335         * tests/test-getopt.h: Likewise.
27336         * tests/test-langinfo-c++.cc: Likewise.
27337         * tests/test-locale-c++.cc: Likewise.
27338         * tests/test-math-c++.cc: Likewise.
27339         * tests/test-pty-c++.cc: Likewise.
27340         * tests/test-search-c++.cc: Likewise.
27341         * tests/test-signal-c++.cc: Likewise.
27342         * tests/test-spawn-c++.cc: Likewise.
27343         * tests/test-stdio-c++.cc: Likewise.
27344         * tests/test-stdlib-c++.cc: Likewise.
27345         * tests/test-string-c++.cc: Likewise.
27346         * tests/test-sys_ioctl-c++.cc: Likewise.
27347         * tests/test-sys_select-c++.cc: Likewise.
27348         * tests/test-sys_socket-c++.cc: Likewise.
27349         * tests/test-sys_stat-c++.cc: Likewise.
27350         * tests/test-sys_time-c++.cc: Likewise.
27351         * tests/test-time-c++.cc: Likewise.
27352         * tests/test-unistd-c++.cc: Likewise.
27353         * tests/test-wchar-c++.cc: Likewise.
27354         * tests/uninorm/test-u8-nfc.c: Likewise.
27355         * tests/uninorm/test-u8-nfd.c: Likewise.
27356         * tests/uninorm/test-u8-nfkc.c: Likewise.
27357         * tests/uninorm/test-u8-nfkd.c: Likewise.
27358         * tests/uninorm/test-u16-nfc.c: Likewise.
27359         * tests/uninorm/test-u16-nfd.c: Likewise.
27360         * tests/uninorm/test-u16-nfkc.c: Likewise.
27361         * tests/uninorm/test-u16-nfkd.c: Likewise.
27362         * tests/uninorm/test-u32-nfc.c: Likewise.
27363         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27364         * tests/uninorm/test-u32-nfd.c: Likewise.
27365         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27366         * tests/uninorm/test-u32-nfkc.c: Likewise.
27367         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27368         * tests/uninorm/test-u32-nfkd.c: Likewise.
27369         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27370         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27372 2010-03-27  Bruno Haible  <bruno@clisp.org>
27374         Distinguish two kinds of module indicators.
27375         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27376         gl_MODULE_INDICATOR.
27377         (gl_MODULE_INDICATOR): New macro.
27378         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27379         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27380         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27381         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27382         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27383         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27384         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27385         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27386         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27387         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27388         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27389         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27391         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27392         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27393         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27394         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27395         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27396         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27397         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27398         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27399         * modules/cloexec (configure.ac): Likewise.
27400         * modules/getopt-gnu (configure.ac): Likewise.
27401         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27402         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27403         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27404         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27406 2010-03-27  Bruno Haible  <bruno@clisp.org>
27408         New module description field 'Comment'.
27409         * gnulib-tool: New option --extract-comment.
27410         (func_usage): Document it.
27411         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27412         (func_get_comment): New function.
27413         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27415 2010-03-27  Bruno Haible  <bruno@clisp.org>
27417         Addendum to 2010-02-07 commit.
27418         * gnulib-tool (func_usage): Document --extract-applicability option.
27420 2010-03-27  Bruno Haible  <bruno@clisp.org>
27422         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27423         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27424         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27425         rather than link errors.
27427 2010-03-27  Bruno Haible  <bruno@clisp.org>
27429         Avoid side effects from tests-related modules on the compilation of lib.
27430         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27431         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27432         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27433         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27434         macro.
27435         (func_import): Define a witness macro. Assign it a value that depends
27436         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27437         tests-related modules.
27438         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27439         Reported by Jim Meyering.
27441 2010-03-27  Bruno Haible  <bruno@clisp.org>
27443         Factorize common .m4 code.
27444         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27445         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27446         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27447         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27448         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27449         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27450         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27451         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27452         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27453         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27454         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27455         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27456         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27457         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27458         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27459         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27460         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27461         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27462         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27463         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27464         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27466         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27467         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27468         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27469         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27470         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27471         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27472         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27473         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27474         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27475         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27477 2010-03-27  Bruno Haible  <bruno@clisp.org>
27479         Fix a compilation error on Cygwin with g++ >= 4.3.
27480         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27481         if it is undefined or if we alias it to chmod.
27482         (lstat): Don't warn about the use of this function if it is undefined
27483         or if we alias it to stat.
27484         Reported by Simon Josefsson.
27486 2010-03-27  Bruno Haible  <bruno@clisp.org>
27488         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27489         * modules/getlogin (configure.ac): Update.
27491         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27492         * modules/getlogin_r (configure.ac): Update.
27494         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27496         * modules/inet_ntop (configure.ac): Update.
27498         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27499         * modules/inet_pton (configure.ac): Update.
27501         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27502         * modules/mbslen (configure.ac): Update.
27504         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27505         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27506         * modules/forkpty (configure.ac): Update.
27507         * modules/openpty (configure.ac): Update.
27509 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27511         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27512         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27514 2010-03-25  Eric Blake  <eblake@redhat.com>
27516         maint: use pragma consistently across replacement headers
27517         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27518         * lib/dirent.in.h (system_header): Likewise.
27519         * lib/errno.in.h (system_header): Likewise.
27520         * lib/float.in.h (system_header): Likewise.
27521         * lib/getopt.in.h (system_header): Likewise.
27522         * lib/iconv.in.h (system_header): Likewise.
27523         * lib/inttypes.in.h (system_header): Likewise.
27524         * lib/langinfo.in.h (system_header): Likewise.
27525         * lib/locale.in.h (system_header): Likewise.
27526         * lib/math.in.h (system_header): Likewise.
27527         * lib/netdb.in.h (system_header): Likewise.
27528         * lib/netinet_in.in.h (system_header): Likewise.
27529         * lib/pty.in.h (system_header): Likewise.
27530         * lib/sched.in.h (system_header): Likewise.
27531         * lib/se-selinux.in.h (system_header): Likewise.
27532         * lib/search.in.h (system_header): Likewise.
27533         * lib/spawn.in.h (system_header): Likewise.
27534         * lib/stdarg.in.h (system_header): Likewise.
27535         * lib/stdint.in.h (system_header): Likewise.
27536         * lib/string.in.h (system_header): Likewise.
27537         * lib/strings.in.h (system_header): Likewise.
27538         * lib/sys_file.in.h (system_header): Likewise.
27539         * lib/sys_ioctl.in.h (system_header): Likewise.
27540         * lib/sys_socket.in.h (system_header): Likewise.
27541         * lib/sys_times.in.h (system_header): Likewise.
27542         * lib/sys_utsname.in.h (system_header): Likewise.
27543         * lib/sys_wait.in.h (system_header): Likewise.
27544         * lib/sysexits.in.h (system_header): Likewise.
27545         * lib/unistd.in.h (system_header): Likewise.
27546         * lib/wctype.in.h (system_header): Likewise.
27548         arpa/inet: fix mingw compilation warning
27549         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27550         Reported by Matthew Bolte.
27552 2010-03-25  Bruno Haible  <bruno@clisp.org>
27554         Avoid collision between gnulib wrapper and libintl wrapper.
27555         * lib/printf.c (printf): Don't define if a printf wrapper is already
27556         defined in intl/printf.c.
27557         Reported by Michel Boaventura <michel@michelboaventura.com>.
27559 2010-03-25  Bruno Haible  <bruno@clisp.org>
27561         Use ANSI C.
27562         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27564 2010-03-25  Bruno Haible  <bruno@clisp.org>
27566         Minor formatting changes.
27567         * lib/acosl.c: Insert space before function argument list.
27568         * lib/argz.c: Likewise.
27569         * lib/asinl.c: Likewise.
27570         * lib/expl.c: Likewise.
27571         * lib/gen-uni-tables.c: Likewise.
27572         * lib/gettext.h: Likewise.
27573         * lib/glthread/lock.h: Likewise.
27574         * lib/tanl.c: Likewise.
27575         * lib/uniname/uniname.c: Likewise.
27576         * tests/test-idpriv-drop.c: Likewise.
27577         * tests/test-idpriv-droptemp.c: Likewise.
27578         * tests/test-lock.c: Likewise.
27579         * tests/test-tls.c: Likewise.
27580         * lib/argp-help.c: Insert space before function-like macro argument
27581         list.
27582         * lib/memcmp.c: Likewise.
27583         * tests/test-base64.c: Likewise.
27584         * lib/localename.c: Insert space before sizeof's argument list.
27585         * lib/safe-alloc.h: Likewise.
27586         * lib/file-set.h: Insert space before macro argument list.
27587         * tests/test-argp.c: Likewise.
27588         * lib/argp-namefrob.h: Insert space before function parameter list.
27589         * lib/getaddrinfo.c: Likewise.
27590         * lib/netdb.in.h: Likewise.
27591         * lib/parse-duration.h: Likewise.
27592         * lib/parse-duration.c: Likewise.
27593         * lib/poll.c: Likewise.
27594         * lib/select.c: Likewise.
27595         * lib/trim.h: Likewise.
27596         * tests/test-usleep.c: Likewise.
27597         * lib/ldexpl.c: Insert space before function parameter list and before
27598         function argument list.
27599         * lib/logl.c: Likewise.
27600         * lib/sqrtl.c: Likewise.
27601         * lib/trim.c: Likewise.
27602         * lib/cosl.c: Use GNU style indentation. Insert space before function
27603         argument list.
27604         * lib/sinl.c: Likewise.
27605         * lib/tsearch.c: Insert space after 'for'.
27606         Reported by Jim Meyering.
27608 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27610         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27611         config header before grepping, as it's not present before
27612         autoreconf/configure are run.  Reported by Simon Josefsson.
27614 2010-03-23  Bruno Haible  <bruno@clisp.org>
27616         pt_chown: Make it work with automake < 1.11.
27617         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27618         Reported by Simon Josefsson.
27620 2010-03-23  Bruno Haible  <bruno@clisp.org>
27622         pt_chown: Don't depend on GPLed modules.
27623         * lib/pt_chown.c: Don't include idpriv.h.
27624         (main): Don't drop privileges.
27625         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27626         Reported by Simon Josefsson.
27628 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27630         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27631         suggestions from karl@freefriends.org (Karl Berry).
27633 2010-03-22  Eric Blake  <eblake@redhat.com>
27635         gethostname: further tweaks
27636         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27637         are overriding gethostname.
27638         Suggested by Bruno Haible.
27640 2010-03-21  Bruno Haible  <bruno@clisp.org>
27642         Fix comments.
27643         * lib/forkpty.c (rpl_forkpty): Fix comment.
27644         * lib/openpty.c (rpl_openpty): Likewise.
27645         Reported by Eric Blake.
27647 2010-03-22  Eric Blake  <eblake@redhat.com>
27649         gethostname: fix build on mingw
27650         * lib/unistd.in.h (includes): Work around fact that mingw
27651         <winsock2.h> re-includes <unistd.h>, by avoiding any
27652         redeclarations if we are being included by <winsock2.h>.
27653         Reported by Matthias Bolte.
27655 2010-03-21  Bruno Haible  <bruno@clisp.org>
27657         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27658         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27659         modifications.
27660         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27661         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27662         provide the replacement.
27663         * modules/forkpty (Depends-on): Add openpty, login_tty.
27664         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27665         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27666         * doc/glibc-functions/forkpty.texi: More supported platforms.
27667         * config/srclist.txt: Add forkpty.c (commented).
27669 2010-03-21  Bruno Haible  <bruno@clisp.org>
27671         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27672         (Makefile.am): Verify that PTY_LIB is defined.
27674         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27676 2010-03-21  Bruno Haible  <bruno@clisp.org>
27678         Tests for module 'login_tty'.
27679         * modules/login_tty-tests: New file.
27680         * tests/test-login_tty.c: New file.
27682         New module 'login_tty'.
27683         * lib/login_tty.c: New file.
27684         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27685         * modules/login_tty: New file.
27686         * doc/glibc-functions/login_tty.texi: Mention the new module.
27688 2010-03-21  Bruno Haible  <bruno@clisp.org>
27690         login_tty: Documentation.
27691         * doc/glibc-functions/login_tty.texi: New file.
27692         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27694 2010-03-21  Bruno Haible  <bruno@clisp.org>
27696         pty: Consistent macro naming.
27697         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27698         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27699         * modules/pty (configure.ac): Update.
27701 2010-03-21  Bruno Haible  <bruno@clisp.org>
27703         Tests for openpty: Make stricter.
27704         * tests/test-openpty.c (main): Add test of canonical processing and
27705         erase.
27706         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27708         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27709         * lib/openpty.c (openpty): New replacement function.
27710         * lib/pty.in.h: Include <termios.h>.
27711         (openpty): Update declaration. Add comments.
27712         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27713         is not declared, arrange to provide the replacement. Check for _getpty
27714         and posix_openpt.
27715         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27716         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27717         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27718         * modules/pty-tests (test_pty_c___LDADD): New variable.
27719         * doc/glibc-functions/openpty.texi: More supported platforms.
27721 2010-03-21  Bruno Haible  <bruno@clisp.org>
27723         setenv: Tweaks.
27724         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27725         the test program.
27726         * doc/posix-functions/setenv.texi: Update platforms list.
27728 2010-03-21  Bruno Haible  <bruno@clisp.org>
27730         New module 'unlockpt'.
27731         * lib/unlockpt.c: New file, from glibc with modifications.
27732         * m4/unlockpt.m4: New file.
27733         * modules/unlockpt: New file.
27734         * lib/stdlib.in.h (unlockpt): New declaration.
27735         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27736         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27737         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27738         HAVE_UNLOCKPT.
27739         * doc/posix-functions/unlockpt.texi: Mention the new module.
27740         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27741         * config/srclist.txt: Add unlockpt.c (commented).
27743 2010-03-21  Jim Meyering  <meyering@redhat.com>
27745         maint.mk: prohibit inclusion of "intprops.h" without use
27746         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27748 2010-03-21  Bruno Haible  <bruno@clisp.org>
27750         New module 'grantpt'.
27751         * lib/grantpt.c: New file, from glibc with modifications.
27752         * m4/grantpt.m4: New file.
27753         * modules/grantpt: New file.
27754         * lib/stdlib.in.h (grantpt): New declaration.
27755         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27756         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27757         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27758         HAVE_GRANTPT.
27759         * doc/posix-functions/grantpt.texi: Mention the new module.
27760         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27761         * config/srclist.txt: Add grantpt.c (commented).
27763 2010-03-21  Bruno Haible  <bruno@clisp.org>
27765         New module 'pt_chown'.
27766         * lib/pt_chown.c: New file, from glibc with modifications.
27767         * lib/pty-private.h: New file, from glibc with modifications.
27768         * modules/pt_chown: New file.
27769         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27771 2010-03-21  Bruno Haible  <bruno@clisp.org>
27773         Tests for module 'ptsname'.
27774         * modules/ptsname-tests: New file.
27775         * tests/test-ptsname.c: New file.
27777         New module 'ptsname'.
27778         * lib/ptsname.c: New file, from glibc with modifications.
27779         * m4/ptsname.m4: New file.
27780         * modules/ptsname: New file.
27781         * lib/stdlib.in.h (ptsname): New declaration.
27782         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27783         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27784         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27785         HAVE_PTSNAME.
27786         * doc/posix-functions/ptsname.texi: Mention the new module.
27787         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27788         * config/srclist.txt: Add ptsname.c (commented).
27790 2010-03-21  Bruno Haible  <bruno@clisp.org>
27792         Tests for module 'ttyname_r'.
27793         * modules/ttyname_r-tests: New file.
27794         * tests/test-ttyname_r.c: New file.
27796         New module 'ttyname_r'.
27797         * lib/ttyname_r.c: New file.
27798         * m4/ttyname_r.m4: New file.
27799         * modules/ttyname_r: New file.
27800         * lib/unistd.in.h (ttyname_r): New declaration.
27801         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27802         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27803         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27804         HAVE_TTYNAME_R.
27805         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27806         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27808 2010-03-20  Bruno Haible  <bruno@clisp.org>
27810         signal: Undefine macro definitions in C++ mode.
27811         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27812         sigfillset): Undefine macro definitions from the system header in C++
27813         mode.
27814         Reported by John W. Eaton <jwe@gnu.org>.
27816 2010-03-20  Bruno Haible  <bruno@clisp.org>
27818         Ensure no #include statements inside extern "C" { ... }.
27819         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27820         contain #include statements.
27821         * lib/time.in.h: Likewise.
27823 2010-03-20  Bruno Haible  <bruno@clisp.org>
27825         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27826         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27827         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27828         Reported by John W. Eaton <jwe@gnu.org>.
27830 2010-03-20  Bruno Haible  <bruno@clisp.org>
27832         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27833         Reported by Jim Meyering.
27835 2010-03-20  Bruno Haible  <bruno@clisp.org>
27837         pipe: Set errno upon failure.
27838         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27839         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27840         errno value in error message.
27842 2010-03-20  Bruno Haible  <bruno@clisp.org>
27843             Jim Meyering  <meyering@redhat.com>
27845         lchown: Avoid "unused variable" warning.
27846         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27848 2010-03-20  Bruno Haible  <bruno@clisp.org>
27850         Work around unlink() bug on MacOS X 10.5.6.
27851         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27852         attempting to unlink a parent directory.
27853         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27854         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27855         activate for the replacement function.
27856         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27858 2010-03-20  Bruno Haible  <bruno@clisp.org>
27860         Fix link errors on Solaris 8.
27861         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27862         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27864 2010-03-19  Jim Meyering  <meyering@redhat.com>
27866         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27867         The _LIBC implementation of build_range_exp correctly honors the
27868         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27869         However, the non-_LIBC implementation would ignore that syntax-bit
27870         flag and return REG_ERANGE unconditionally.
27871         This change makes it honor that flag.
27872         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27873         Make two pointer parameters "const".
27874         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27875         (parse_bracket_exp): Update caller.
27877         regex.m4: correct the reversed range endpoint ([b-a]) test
27878         * m4/regex.m4: When requiring that [b-a] evoke failure,
27879         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27880         test pass once again for x86-based systems.
27882 2010-03-19  Bruno Haible  <bruno@clisp.org>
27884         scandir: Fix link error on Solaris 8.
27885         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27886         macros.
27888 2010-03-19  Bruno Haible  <bruno@clisp.org>
27890         getusershell: Fix documentation.
27891         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27892         module.
27893         * doc/glibc-functions/setusershell.texi: Likewise.
27895         getusershell: Provide declaration, missing on Solaris 9.
27896         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27897         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27898         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27899         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27901         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27902         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27903         HAVE_GETUSERSHELL.
27904         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27906 2010-03-19  Bruno Haible  <bruno@clisp.org>
27908         wctype: Provide iswblank function.
27909         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27910         exists and is fine.
27911         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27912         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27913         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27914         * doc/posix-functions/iswblank.texi: Update.
27916 2010-03-19  Bruno Haible  <bruno@clisp.org>
27918         Tests of module 'pty' in C++ mode.
27919         * modules/pty-tests: New file.
27920         * tests/test-pty-c++.cc: New file.
27921         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27923 2010-03-19  Eric Blake  <eblake@redhat.com>
27925         logb: fix documentation
27926         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27927         1.5 declaration bug.
27929         forkpty, openpty: prefer glibc's const-safe prototype
27930         * lib/forkpty.c (rpl_forkpty): New file.
27931         * lib/openpty.c (rpl_openpty): Likewise.
27932         * modules/forkpty (Files): Distribute it.
27933         * modules/openpty (Files): Likewise.
27934         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27935         check...
27936         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27937         replacement for for non-const BSD signature.
27938         * modules/pty (Makefile.am): Substitute witnesses.
27939         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27940         * tests/test-forkpty.c: Update signature check.
27941         * tests/test-openpty.c: Likewise.
27942         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27943         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27945         forkpty, openpty: split functions into new modules
27946         * modules/pty (Makefile.am): Substitute new witnesses.
27947         (Libraries): Move library detection...
27948         * modules/forkpty: ...into new module.
27949         * modules/openpty: Another new module.
27950         * modules/pty-tests: Rename and split...
27951         * modules/forkpty-tests: ...to this...
27952         * modules/openpty-tests: ...and this.
27953         * tests/test-pty.c: Rename and split...
27954         * tests/test-forkpty.c: ...to this...
27955         * tests/test-openpty.c: ...and this.
27956         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27957         (gl_PTY): Split library searching...
27958         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27959         (gl_FORKPTY, gl_OPENPTY): New macros.
27960         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27961         * NEWS: Mention the split.
27962         * MODULES.html.sh (Misc): Document the modules.
27963         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27964         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27966         pty: improve replacement header
27967         * lib/pty.in.h: New file.
27968         * modules/pty (Files): Ship it.
27969         (Makefile.am): Always build replacement.
27970         * m4/pty.m4: Rename...
27971         * m4/pty_h.m4: ...to this.
27972         (gl_PTY): Modernize setting of witness macros; update check of
27973         forkpty to take proper advantage of cache.
27974         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27976         getopt: avoid compiler warning
27977         * lib/getopt.c (attribute_hidden): Remove unused macro.
27979 2010-03-18  Bruno Haible  <bruno@clisp.org>
27981         Fix link errors on Solaris 8.
27982         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27983         * modules/search-tests (test_search_c___LDADD): Likewise.
27984         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27985         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27986         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27987         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27988         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27989         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27990         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27992 2010-03-18  Bruno Haible  <bruno@clisp.org>
27994         Fix bug introduced on 2010-03-14.
27995         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27996         (gl_SPAWN_H): Require it.
27997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27998         Reported by Simon Josefsson.
28000 2010-03-18  Bruno Haible  <bruno@clisp.org>
28002         Fix typo introduced on 2009-12-31.
28003         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28004         posix_spawn_file_actions_adddup2.
28006 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28007         and Eric Blake  <eblake@redhat.com>
28009         test-vc-list-files-git: make more robust
28010         * tests/test-vc-list-files-git.sh: Unset problematic environment
28011         variables.  Chain commands together.
28013 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28015         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28016         `AC_CHECK_DECL' invocation.
28018 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28020         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28021         appears before executable statements. Suggested by Petr Sumbera
28022         <Petr.Sumbera@Sun.COM>.
28024 2010-03-14  Bruno Haible  <bruno@clisp.org>
28026         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28027         portability problems. Instead use a simpler test.
28028         (main): Check that invalid arguments are rejected only on Linux.
28030 2010-03-14  Bruno Haible  <bruno@clisp.org>
28032         Fix bug introduced on 2009-12-31.
28033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28034         gl_PREREQ_SYS_H_WINSOCK2 always.
28035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28036         SYS_SOCKET_H variable.
28037         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28038         Update comments.
28039         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28040         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28041         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28042         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28043         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28045 2010-03-14  Bruno Haible  <bruno@clisp.org>
28047         Fix values returned by sinl, cosl.
28048         * lib/trigl.h: Add specification comments.
28049         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28050         that combines the values from the precomputed table with the values of
28051         the Chebyshev polynomials.
28053 2010-03-14  Bruno Haible  <bruno@clisp.org>
28055         Fix compilation error when modules 'posix_spawn[p]' are not used.
28056         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28057         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28059 2010-03-14  Bruno Haible  <bruno@clisp.org>
28061         Fix compilation error on mingw when module 'time_r' is not used.
28062         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28063         is 1.
28064         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28065         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28066         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28069 2010-03-14  Bruno Haible  <bruno@clisp.org>
28071         Fix compilation error with Sun C.
28072         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28073         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28074         instead of GCC specific ULONG_LONG_MAX.
28075         * lib/xstrtoll.c: Likewise.
28076         * lib/xstrtoull.c: Likewise.
28078 2010-03-13  Bruno Haible  <bruno@clisp.org>
28080         Allow the user to disable C++ code and tests.
28081         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28082         (gl_PROG_ANSI_CXX): Require it.
28084 2010-03-13  Bruno Haible  <bruno@clisp.org>
28086         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28087         cases.
28089 2010-03-13  Bruno Haible  <bruno@clisp.org>
28091         Test that gnulib does not break the standard C++ headers.
28092         * tests/test-locale-c++2.cc: New file.
28093         * modules/locale-tests (Files): Add it.
28094         (Makefile.am): Compile it for test-locale-c++.
28095         * tests/test-math-c++2.cc: New file.
28096         * modules/math-tests (Files): Add it.
28097         (Makefile.am): Compile it for test-math-c++.
28098         * tests/test-signal-c++2.cc: New file.
28099         * modules/signal-tests (Files): Add it.
28100         (Makefile.am): Compile it for test-signal-c++.
28101         * tests/test-stdio-c++2.cc: New file.
28102         * modules/stdio-tests (Files): Add it.
28103         (Makefile.am): Compile it for test-stdio-c++.
28104         * tests/test-stdlib-c++2.cc: New file.
28105         * modules/stdlib-tests (Files): Add it.
28106         (Makefile.am): Compile it for test-stdlib-c++.
28107         * tests/test-string-c++2.cc: New file.
28108         * modules/string-tests (Files): Add it.
28109         (Makefile.am): Compile it for test-string-c++.
28110         * tests/test-time-c++2.cc: New file.
28111         * modules/time-tests (Files): Add it.
28112         (Makefile.am): Compile it for test-time-c++.
28113         Reported by John W. Eaton <jwe@gnu.org>.
28115 2010-03-13  Bruno Haible  <bruno@clisp.org>
28117         * gnulib-tool (func_usage): Clarify which options are available for
28118         --create-testdir and --create-megatestdir.
28120 2010-03-13  Bruno Haible  <bruno@clisp.org>
28122         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28123         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28124         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28125         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28126         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28127         when appropriate.
28128         Reported by Jim Meyering.
28130 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28132         * gnulib-tool (func_import): Explain origin of code.
28134 2010-03-12  Bruno Haible  <bruno@clisp.org>
28136         Fix problem with automake's definition of CXXLINK.
28137         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28138         Reported by Simon Josefsson and Ludovic Courtès.
28140 2010-03-12  Bruno Haible  <bruno@clisp.org>
28142         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28143         stable releases.
28145 2010-03-11  Bruno Haible  <bruno@clisp.org>
28147         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28148         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28149         whether the system provides one variant or multiple variants of the
28150         function.
28151         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28152         C++ compilers.
28153         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28154         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28155         Reported by Jim Meyering.
28157 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28159         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28161 2010-03-08  Bruno Haible  <bruno@clisp.org>
28163         gnulib-tool: Add support for --libtool in --create-testdir.
28164         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28165         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28167 2010-03-08  Eric Blake  <eblake@redhat.com>
28169         gnulib-tool.texi: mention possibility of git submodule
28170         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28171         submodules.
28172         * doc/.gitignore: Ignore another generated file.
28174 2010-03-08  Karl Berry  <karl@gnu.org>
28176         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28177         of committing gnulib files while skipping others.
28179 2010-03-07  Bruno Haible  <bruno@clisp.org>
28181         Tests of module 'wctype' in C++ mode.
28182         * tests/test-wctype-c++.cc: New file.
28183         * modules/wctype-tests (Files): Add it and tests/signature.h.
28184         (Depends-on): Add ansi-c++-opt.
28185         (Makefile.am): Arrange to compile and run test-wctype-c++.
28187         Tests of module 'wchar' in C++ mode.
28188         * tests/test-wchar-c++.cc: New file.
28189         * modules/wchar-tests (Files): Add it and tests/signature.h.
28190         (Depends-on): Add ansi-c++-opt.
28191         (Makefile.am): Arrange to compile and run test-wchar-c++.
28192         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28193         gl_MODULE_INDICATOR.
28195         Tests of module 'unistd' in C++ mode.
28196         * tests/test-unistd-c++.cc: New file.
28197         * modules/unistd-tests (Files): Add it and tests/signature.h.
28198         (Depends-on): Add ansi-c++-opt.
28199         (Makefile.am): Arrange to compile and run test-unistd-c++.
28200         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28201         gl_MODULE_INDICATOR.
28203         Tests of module 'time' in C++ mode.
28204         * tests/test-time-c++.cc: New file.
28205         * modules/time-tests (Files): Add it and tests/signature.h.
28206         (Depends-on): Add ansi-c++-opt.
28207         (Makefile.am): Arrange to compile and run test-time-c++.
28208         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28210         Tests of module 'sys_time' in C++ mode.
28211         * tests/test-sys_time-c++.cc: New file.
28212         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28213         (Depends-on): Add ansi-c++-opt.
28214         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28215         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28216         gl_MODULE_INDICATOR.
28218         Tests of module 'sys_stat' in C++ mode.
28219         * tests/test-sys_stat-c++.cc: New file.
28220         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28221         (Depends-on): Add ansi-c++-opt.
28222         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28223         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28224         gl_MODULE_INDICATOR.
28226         Tests of module 'sys_socket' in C++ mode.
28227         * tests/test-sys_socket-c++.cc: New file.
28228         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28229         (Depends-on): Add ansi-c++-opt.
28230         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28231         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28232         gl_MODULE_INDICATOR.
28234         Tests of module 'sys_select' in C++ mode.
28235         * tests/test-sys_select-c++.cc: New file.
28236         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28237         (Depends-on): Add ansi-c++-opt.
28238         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28239         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28240         gl_MODULE_INDICATOR.
28242         Tests of module 'sys_ioctl' in C++ mode.
28243         * tests/test-sys_ioctl-c++.cc: New file.
28244         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28245         (Depends-on): Add ansi-c++-opt.
28246         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28247         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28248         gl_MODULE_INDICATOR.
28250         Tests of module 'string' in C++ mode.
28251         * tests/test-string-c++.cc: New file.
28252         * modules/string-tests (Files): Add it and tests/signature.h.
28253         (Depends-on): Add ansi-c++-opt.
28254         (Makefile.am): Arrange to compile and run test-string-c++.
28255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28256         gl_MODULE_INDICATOR.
28258         Tests of module 'stdlib' in C++ mode.
28259         * tests/test-stdlib-c++.cc: New file.
28260         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28261         (Depends-on): Add ansi-c++-opt.
28262         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28263         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28264         gl_MODULE_INDICATOR.
28266         Tests of module 'stdio' in C++ mode.
28267         * tests/test-stdio-c++.cc: New file.
28268         * modules/stdio-tests (Files): Add it and tests/signature.h.
28269         (Depends-on): Add ansi-c++-opt.
28270         (Makefile.am): Arrange to compile and run test-stdio-c++.
28271         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28272         gl_MODULE_INDICATOR.
28274         Tests of module 'spawn' in C++ mode.
28275         * tests/test-spawn-c++.cc: New file.
28276         * modules/spawn-tests (Files): Add it and tests/signature.h.
28277         (Depends-on): Add ansi-c++-opt.
28278         (Makefile.am): Arrange to compile and run test-spawn-c++.
28279         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28280         gl_MODULE_INDICATOR.
28282         Tests of module 'signal' in C++ mode.
28283         * tests/test-signal-c++.cc: New file.
28284         * modules/signal-tests (Files): Add it and tests/signature.h.
28285         (Depends-on): Add ansi-c++-opt.
28286         (Makefile.am): Arrange to compile and run test-signal-c++.
28287         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28288         gl_MODULE_INDICATOR.
28290         Tests of module 'search' in C++ mode.
28291         * tests/test-search-c++.cc: New file.
28292         * modules/search-tests (Files): Add it and tests/signature.h.
28293         (Depends-on): Add ansi-c++-opt.
28294         (Makefile.am): Arrange to compile and run test-search-c++.
28295         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28296         gl_MODULE_INDICATOR.
28298         Tests of module 'math' in C++ mode.
28299         * tests/test-math-c++.cc: New file.
28300         * modules/math-tests (Files): Add it and tests/signature.h.
28301         (Depends-on): Add ansi-c++-opt.
28302         (Makefile.am): Arrange to compile and run test-math-c++.
28303         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28305         Tests of module 'locale' in C++ mode.
28306         * tests/test-locale-c++.cc: New file.
28307         * modules/locale-tests (Files): Add it and tests/signature.h.
28308         (Depends-on): Add ansi-c++-opt.
28309         (Makefile.am): Arrange to compile and run test-locale-c++.
28310         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28311         gl_MODULE_INDICATOR.
28313         Tests of module 'langinfo' in C++ mode.
28314         * tests/test-langinfo-c++.cc: New file.
28315         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28316         (Depends-on): Add ansi-c++-opt.
28317         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28318         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28319         gl_MODULE_INDICATOR.
28321         Tests of module 'iconv-h' in C++ mode.
28322         * tests/test-iconv-h-c++.cc: New file.
28323         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28324         (Depends-on): Add ansi-c++-opt.
28325         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28327         Tests of module 'glob' in C++ mode.
28328         * tests/test-glob-c++.cc: New file.
28329         * modules/glob-tests (Files): Add it.
28330         (Depends-on): Add ansi-c++-opt.
28331         (Makefile.am): Arrange to compile and run test-glob-c++.
28333         Tests of module 'fcntl-h' in C++ mode.
28334         * tests/test-fcntl-h-c++.cc: New file.
28335         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28336         (Depends-on): Add ansi-c++-opt.
28337         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28338         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28339         gl_MODULE_INDICATOR.
28341         Tests of module 'dirent' in C++ mode.
28342         * tests/test-dirent-c++.cc: New file.
28343         * modules/dirent-tests (Files): Add it and tests/signature.h.
28344         (Depends-on): Add ansi-c++-opt.
28345         (Makefile.am): Arrange to compile and run test-dirent-c++.
28346         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28347         gl_MODULE_INDICATOR.
28349         New module 'ansi-c++-opt'.
28350         * modules/ansi-c++-opt: New file.
28351         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28353         Document C++ namespace mode.
28354         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28356         wctype: Avoid #define replacements in C++ mode.
28357         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28358         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28359         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28360         In C++, define a namespaced alias symbol.
28361         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28362         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28363         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28364         rule.
28366         wchar: Avoid #define replacements in C++ mode.
28367         * lib/wchar.in.h: Include c++defs.h.
28368         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28369         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28370         symbol.
28371         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28372         * modules/wchar (Depends-on): Add c++defs.
28373         (Makefile.am): Update wchar.h rule.
28375         unistd: Avoid #define replacements in C++ mode.
28376         * lib/unistd.in.h: Include c++defs.h.
28377         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28378         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28379         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28380         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28381         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28382         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28383         symbol.
28384         (environ): Update.
28385         * modules/unistd (Depends-on): Add c++defs.
28386         (Makefile.am): Update unistd.h rule.
28388         time: Avoid #define replacements in C++ mode.
28389         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28390         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28391         define a namespaced alias symbol.
28392         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28393         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28394         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28395         * modules/time (Depends-on): Add c++defs, warn-on-use.
28396         (Makefile.am): Update time.h rule.
28397         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28398         * modules/nanosleep (configure.ac): Likewise.
28399         * modules/strptime (configure.ac): Likewise.
28400         * modules/timegm (configure.ac): Likewise.
28402         sys_time: Avoid #define replacements in C++ mode.
28403         * lib/sys_time.in.h: Include c++defs.h.
28404         (gettimeofday): In C++, define a namespaced alias symbol.
28405         * modules/sys_time (Depends-on): Add c++defs.
28406         (Makefile.am): Update sys/time.h rule.
28408         sys_stat: Avoid #define replacements in C++ mode.
28409         * lib/sys_stat.in.h: Include c++defs.h.
28410         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28411         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28412         namespaced alias symbol.
28413         In C++, define a namespaced alias symbol.
28414         * modules/sys_stat (Depends-on): Add c++defs.
28415         (Makefile.am): Update sys/stat.h rule.
28417         sys_socket: Avoid #define replacements in C++ mode.
28418         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28419         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28420         definitions also when the system has a <sys/socket.h>.
28421         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28422         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28423         In C++, define a namespaced alias symbol.
28424         * modules/sys_socket (Depends-on): Add c++defs.
28425         (Makefile.am): Update sys/socket.h rule.
28427         sys_select: Avoid #define replacements in C++ mode.
28428         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28429         definitions also when the system has a <sys/select.h>.
28430         (select): In C++, define a namespaced alias symbol.
28431         * modules/sys_select (Depends-on): Add c++defs.
28432         (Makefile.am): Update sys/select.h rule.
28434         sys_ioctl: Avoid #define replacements in C++ mode.
28435         * lib/sys_ioctl.in.h: Include c++defs.h.
28436         (ioctl): In C++, define a namespaced alias symbol.
28437         * modules/sys_ioctl (Depends-on): Add c++defs.
28438         (Makefile.am): Update sys/ioctl.h rule.
28440         string: Avoid #define replacements in C++ mode.
28441         * lib/string.in.h: Include c++defs.h.
28442         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28443         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28444         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28445         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28446         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28447         * modules/string (Depends-on): Add c++defs.
28448         (Makefile.am): Update string.h rule.
28450         stdlib: Avoid #define replacements in C++ mode.
28451         * lib/stdlib.in.h: Include c++defs.h.
28452         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28453         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28454         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28455         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28456         symbol.
28457         * modules/stdlib (Depends-on): Add c++defs.
28458         (Makefile.am): Update stdlib.h rule.
28460         stdio: Avoid #define replacements in C++ mode.
28461         * lib/stdio.in.h: Include c++defs.h.
28462         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28463         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28464         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28465         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28466         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28467         namespaced alias symbol.
28468         * modules/stdio (Depends-on): Add c++defs.
28469         (Makefile.am): Update stdio.h rule.
28471         spawn: Avoid #define replacements in C++ mode.
28472         * lib/spawn.in.h: Include c++defs.h.
28473         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28474         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28475         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28476         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28477         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28478         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28479         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28480         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28481         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28482         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28483         In C++, define a namespaced alias symbol.
28484         * modules/spawn (Depends-on): Add c++defs.
28485         (Makefile.am): Update spawn.h rule.
28487         signal: Avoid #define replacements in C++ mode.
28488         * lib/signal.in.h: Include c++defs.h.
28489         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28490         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28491         namespaced alias symbol.
28492         * modules/signal (Depends-on): Add c++defs.
28493         (Makefile.am): Update signal.h rule.
28495         search: Avoid #define replacements in C++ mode.
28496         * lib/search.in.h: Include c++defs.h.
28497         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28498         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28499         symbol.
28500         * modules/search (Depends-on): Add c++defs.
28501         (Makefile.am): Update search.h rule.
28503         math: Avoid #define replacements in C++ mode.
28504         * lib/math.in.h: Include c++defs.h.
28505         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28506         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28507         trunc, truncl): In C++, define a namespaced alias symbol.
28508         * modules/math (Depends-on): Add c++defs.
28509         (Makefile.am): Update math.h rule.
28511         locale: Avoid #define replacements in C++ mode.
28512         * lib/locale.in.h: Include c++defs.h.
28513         (duplocale): In C++, define a namespaced alias symbol.
28514         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28515         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28516         * modules/locale (Depends-on): Add c++defs.
28517         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28519         langinfo: Avoid #define replacements in C++ mode.
28520         * lib/langinfo.in.h: Include c++defs.h.
28521         (nl_langinfo): In C++, define a namespaced alias symbol.
28522         * modules/langinfo (Depends-on): Add c++defs.
28523         (Makefile.am): Update langinfo.h rule.
28525         iconv-h: Avoid #define replacements in C++ mode.
28526         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28527         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28528         symbol.
28529         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28530         whenever iconv is present.
28531         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28532         (Makefile.am): Update iconv.h rule.
28534         glob: Avoid #define replacements in C++ mode.
28535         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28536         (_gl_glob_errfunc_fn): New type.
28537         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28538         symbol.
28539         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28540         (Makefile.am): Update glob.h rule.
28542         fcntl-h: Avoid #define replacements in C++ mode.
28543         * lib/fcntl.in.h: Include c++defs.h.
28544         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28545         * modules/fcntl-h (Depends-on): Add c++defs.
28546         (Makefile.am): Update fcntl.h rule.
28548         dirent: Avoid #define replacements in C++ mode.
28549         * lib/dirent.in.h: Include c++defs.h.
28550         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28551         namespaced alias symbol.
28552         (dirfd): Update declaration.
28553         * modules/dirent (Depends-on): Add c++defs.
28554         (Makefile.am): Update dirent.h rule.
28556         ctype: Make it usable in C++ code.
28557         * lib/ctype.in.h: Include c++defs.h.
28558         (isblank): Declare as extern "C".
28559         * modules/ctype (Depends-on): Add c++defs.
28560         (Makefile.am): Update ctype.h rule.
28562         New module 'c++defs'.
28563         * modules/c++defs: New file.
28564         * build-aux/c++defs.h: New file.
28565         Reported by John W. Eaton <jwe@gnu.org>.
28567 2010-03-07  Bruno Haible  <bruno@clisp.org>
28569         logb: Provide missing declaration for Cygwin.
28570         * lib/math.in.h (logb): New declaration.
28571         * m4/logb.m4: New file.
28572         * modules/logb (Files): Add m4/logb.m4.
28573         (Depends-on): Add math.
28574         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28575         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28577         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28578         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28580 2010-03-07  Bruno Haible  <bruno@clisp.org>
28582         Fix test-cond link error.
28583         * tests/test-cond.c: Include <stdio.h>.
28585 2010-03-07  Bruno Haible  <bruno@clisp.org>
28587         Fix test-dirent-safer link error.
28588         * modules/dirent-safer-tests (Makefile.am): Define
28589         test_dirent_safer_LDADD.
28591 2010-03-07  Bruno Haible  <bruno@clisp.org>
28593         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28594         among default module list.
28596 2010-03-07  Bruno Haible  <bruno@clisp.org>
28598         Fix link error on platforms with GNU libiconv.
28599         * modules/unistr/u8-strcoll-tests (Makefile): Define
28600         test_u8_strcoll_LDADD.
28601         * modules/unistr/u16-strcoll-tests (Makefile): Define
28602         test_u16_strcoll_LDADD.
28603         * modules/unistr/u32-strcoll-tests (Makefile): Define
28604         test_u32_strcoll_LDADD.
28606 2010-03-07  Bruno Haible  <bruno@clisp.org>
28608         Use POSIX declarations for socket functions.
28609         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28610         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28611         rpl_sendto): Change declaration to match POSIX.
28612         * lib/connect.c (rpl_connect): Likewise.
28613         * lib/accept.c (rpl_accept): Likewise.
28614         * lib/bind.c (rpl_bind): Likewise.
28615         * lib/getpeername.c (rpl_getpeername): Likewise.
28616         * lib/getsockname.c (rpl_getsockname): Likewise.
28617         * lib/recv.c (rpl_recv): Likewise.
28618         * lib/send.c (rpl_send): Likewise.
28619         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28620         * lib/sendto.c (rpl_sendto): Likewise.
28622 2010-03-06  Bruno Haible  <bruno@clisp.org>
28624         Clarify access, euidaccess, faccessat.
28625         * doc/posix-functions/faccessat.texi: Mention security problem under
28626         "Other problems", not "Portability problems".
28627         * doc/posix-functions/access.texi: Likewise. Mention a related security
28628         problem.
28629         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28630         * lib/euidaccess.c: Add comments about platforms.
28631         * lib/unistd.in.h (access, euidaccess): Add warnings.
28633 2010-03-07  Bruno Haible  <bruno@clisp.org>
28635         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28636         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28637         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28638         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28639         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28640         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28641         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28642         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28643         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28644         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28645         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28646         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28647         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28648         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28649         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28650         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28651         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28652         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28653         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28654         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28655         Likewise.
28656         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28657         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28658         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28659         Likewise.
28660         * tests/test-spawn.c (main): Make it work when
28661         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28663 2010-03-07  Bruno Haible  <bruno@clisp.org>
28665         Fix incorrect Makefile.am generation in German locale.
28666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28667         Execute sed command with character range in C locale.
28669 2010-03-06  Bruno Haible  <bruno@clisp.org>
28671         Tests for module 'iconv-h'.
28672         * modules/iconv-h-tests: New file.
28673         * tests/test-iconv-h.c: New file.
28675         New module 'iconv-h'.
28676         * modules/iconv-h: New file.
28677         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28678         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28679         (configure.ac): Remove gl_ICONV_H.
28680         (Makefile.am): Remove rule for iconv.h.
28682 2010-03-06  Bruno Haible  <bruno@clisp.org>
28684         More consistent naming of *.m4 files.
28685         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28686         * modules/wctype (Files): Update.
28688         More consistent naming of *.m4 files.
28689         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28690         * modules/wchar (Files): Update.
28692 2010-03-06  Jim Meyering  <meyering@redhat.com>
28694         euidaccess: relax license to LGPLv2+
28695         * modules/euidaccess (License): Relax to LGPLv2+.
28697 2010-03-06  Bruno Haible  <bruno@clisp.org>
28699         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28700         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28701         (Makefile.am): Augment lib_SOURCES instead.
28703 2010-03-04  Jim Meyering  <meyering@redhat.com>
28705         utime: remove obsolete module
28706         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28707         unnecessary for years, and has been marked as obsolete for 10 months.
28708         * modules/utime: Remove file.
28709         * lib/utime.c: Remove file.
28710         * m4/utime.m4: Remove file.
28711         * m4/utimes-null.m4: Remove file.
28712         * doc/posix-functions/utime.texi (utime): Remove reference to
28713         the module.  Move the sole "fixed by gnulib" item into the
28714         "problems not fixed by Gnulib" list.
28715         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28717 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28719         * modules/exit (License): Relax license to LGPLv2+.
28720         (Status): Mark as obsolete.
28721         * NEWS: Mention deprecated 'exit' module.
28722         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28723         of now obsolete 'exit'.
28725 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28727         fts-lgpl: remove unused module
28728         * modules/fts-lgpl: Remove.
28729         * MODULES.html.sh (func_all_modules): Adjust.
28730         * check-module (find_included_lib_files): Adjust.
28731         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28733 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28735         copy-acl: enhance Solaris ACL error handling
28736         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28737         * lib/set-mode-acl.c (qset_acl): Likewise.
28739 2010-03-02  Bruno Haible  <bruno@clisp.org>
28741         spawn: Don't override the system defined values on FreeBSD 8.
28742         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28743         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28744         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28745         if HAVE_POSIX_SPAWN is 1.
28746         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28748 2010-03-01  Bruno Haible  <bruno@clisp.org>
28750         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28751         regarding Automake.
28753 2010-02-25  Bruno Haible  <bruno@clisp.org>
28755         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28756         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28757         setting, not afterwards.
28758         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28760 2010-02-24  Eric Blake  <eblake@redhat.com>
28762         bootstrap, git-version-gen: use timestamp
28763         * build-aux/git-version-gen (scriptversion): Force UTC.
28764         * build-aux/bootstrap (scriptversion): New variable.
28766         bootstrap: allow older git
28767         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28768         older than 1.6.4.  Requested by the libvirt project.
28770 2010-02-23  Eric Blake  <eblake@redhat.com>
28772         warn-on-use: work with old autoconf
28773         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28774         AS_VAR semantics of autoconf 2.60.
28775         Reported by Bruno Haible.
28777         bootstrap: improve some comments
28778         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28779         clarification comments.
28781         gettimeofday: provide correct function
28782         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28783         when replacement is declared, otherwise provide gettimeofday.
28784         Reported by Michael Goffioul.
28786 2010-02-23  Jim Meyering  <meyering@redhat.com>
28788         lib-ignore: relax license to "unlimited", not LGPLv2+
28789         * modules/lib-ignore (License): Relax to "unlimited".
28791 2010-02-23  Jim Meyering  <meyering@redhat.com>
28793         lib-ignore: relax license to LGPLv2+
28794         * modules/lib-ignore (License): Relax to LGPLv2+.
28796 2010-02-22  Eric Blake  <eblake@redhat.com>
28798         lseek: avoid bash 3.2 broken pipe bug
28799         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28800         warning from bash 3.2.
28801         Reported by Ben Pfaff, with analysis from Bruno Haible.
28803         bootstrap: support non-FSF copyright holder
28804         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28805         bootstrap.conf override of COPYRIGHT_HOLDER.
28806         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28808         bootstrap: interoperate with gettext 0.14.1
28809         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28811         bootstrap: allow for alternate submodule location
28812         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28813         hardcoding submodule location.
28814         (gnulib_mk): Allow direct use of Makefile.am.
28816         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28817         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28818         rather than reconfiguring where the submodule points.
28820         gettimeofday: restore support for platforms that lack function
28821         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28822         replacement if function is missing.
28823         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28824         * modules/sys_time (Makefile.am): Substitute it.
28825         * lib/sys_time.in.h (gettimeofday): Check it.
28826         Reported by Michael Goffioul.
28828 2010-02-21  Bruno Haible  <bruno@clisp.org>
28830         * lib/stdio.in.h (obstack_printf): Fix typo.
28832 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28834         vc-list-files: use bzr ls's -R option
28835         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28836         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28838 2010-02-21  Jim Meyering  <meyering@redhat.com>
28840         init.sh: fix EXEEXT shims to work also for names like test-prog
28841         * tests/init.sh: Re-exec a better shell, when needed.
28842         If the current shell lacks support for posix $(...), an init.sh-using
28843         test will now try to find a shell that supports that.  If EXEEXT is
28844         nonempty, we also require support for hyphen-in-alias-name and shell
28845         substitutions like ${var#glob}.  Failure to find such a shell results
28846         in a skipped test.
28848 2010-02-21  Bruno Haible  <bruno@clisp.org>
28850         Really work around around "broken pipe" error message from bash 3.2.
28851         * gnulib-tool (func_reset_sigpipe): Remove function.
28852         (echo): In bash 3.2, define to a function that uses printf.
28853         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28855 2010-02-20  Bruno Haible  <bruno@clisp.org>
28857         Restore support for automake 1.9.6 with autoconf 2.61.
28858         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28859         Reported by James Youngman <jay@gnu.org>.
28861 2010-02-20  Bruno Haible  <bruno@clisp.org>
28863         Improve *printf warning condition.
28864         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28865         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28866         and the function is overridden due to SIGPIPE emulation.
28868 2010-02-20  Bruno Haible  <bruno@clisp.org>
28870         * lib/stdio.in.h: Tweak comments.
28872 2010-02-19  Bruno Haible  <bruno@clisp.org>
28874         Make it easier to find modules. New gnulib-tool option '--find'.
28875         * gnulib-tool: New option --find.
28876         (func_usage): Document it.
28877         (func_sanitize_modulelist): New function, extracted from
28878         func_all_modules.
28879         (func_all_modules): Invoke it.
28880         * doc/gnulib-tool.texi (Which modules?): New node.
28882 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28884         * lib/sys_select.in.h: Provide select replacement even if
28885         sys/select.h exists on a system, for Interix.
28887 2010-02-18  Jim Meyering  <meyering@redhat.com>
28889         init.sh: don't use $(...) just yet
28890         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28891         to accommodate e.g., Solaris' /bin/sh.
28893 2010-02-17  Bruno Haible  <bruno@clisp.org>
28895         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28896         Reported by Ludovic Courtès <ludo@gnu.org>.
28898 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28900         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28901         linking with -lintl.
28903 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28905         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28906         if not provided by the system's netdb.h.  Reported by
28907         ludo@gnu.org (Ludovic Courtès).
28909 2010-02-15  Jim Meyering  <meyering@redhat.com>
28911         init.sh: improve portability and efficiency
28912         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28913         "dummy" in a for loop.
28914         Use '!', not '^' to select the complement of a character set used
28915         in a "case" statement.
28916         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28917         Suggestions from Eric Blake.
28919         init.sh: automatically accommodate programs with the .exe suffix
28920         Automatically arrange for an invocation of "prog" to execute the
28921         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28922         may use the simpler "prog", yet still work when built on a system
28923         that requires specifying the added suffix.
28924         Do this by constructing a function named "prog" that invokes
28925         "prog.exe" for each .exe file in selected directories.
28926         * tests/init.sh (find_exe_basenames_): New function.
28927         (create_exe_shim_functions_): New function.
28928         (path_prepend_): Use it.
28930         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28931         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28932         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28934 2010-02-14  Jim Meyering  <meyering@redhat.com>
28936         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28937         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28938         (sc_prohibit_hash_pjw_without_use): New rule.
28940         maint.mk: allow the default upload destination dir to be overridden
28941         * top/maint.mk (upload_dest_dir_): Define with a default that
28942         preserves the status quo.
28943         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28944         Reported by Peter Simons.
28946         maint.mk: prohibit inclusion of "hash.h" without_use
28947         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28949 2010-02-10  Jim Meyering  <meyering@redhat.com>
28951         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28952         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28954 2010-02-09  Eric Blake  <ebb9@byu.net>
28955         and Bruno Haible  <bruno@clisp.org>
28957         obstack-printf-posix: ensure declaration
28958         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28959         extracted from gl_FUNC_OBSTACK_PRINTF.
28960         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28961         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28962         Likewise.
28963         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28964         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28965         0.
28967 2010-02-08  Bruno Haible  <bruno@clisp.org>
28969         gnulib-tool: Fix typo in 2010-02-07 commit.
28970         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28971         Reported by Eric Blake.
28973 2010-02-07  Bruno Haible  <bruno@clisp.org>
28975         gnulib-tool: Fix up caching patches.
28976         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28977         option --no-cache. Use associative arrays when supported by the shell.
28978         (sed_comments): New variable.
28979         (modcache): Renamed from do_cache.
28980         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28981         abbreviate unnecessarily.
28982         (have_associative): New variable.
28983         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28984         way also for ksh and zsh.
28985         (func_init_sed_convert_to_cache_statements): New function, extracted
28986         from func_cache_lookup_module. Add support for associative arrays.
28987         Don't set the c_MODULE_cached variable here. Ignore all lines before
28988         the first field header. Remove only the final newline, not all trailing
28989         newlines. Support empty fields correctly. Limit the use of 'eval' to
28990         assignments.
28991         (func_get_description, func_get_status, func_get_notice,
28992         func_get_applicability, func_get_filelist, func_get_dependencies,
28993         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28994         func_get_automake_snippet, func_get_include_directive,
28995         func_get_link_directive, func_get_license, func_get_maintainer):
28996         Update documentation. List the unoptimized code first. Add support for
28997         associative arrays. Limit the use of 'eval' to assignments.
28998         (func_get_applicability): Undo stylistic pessimisations.
28999         (func_get_automake_snippet, func_get_include_directive): Reduce code
29000         duplication.
29001         (func_modules_transitive_closure, func_modules_add_dummy,
29002         func_modules_notice, func_modules_to_filelist, func_add_file,
29003         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29004         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29005         func_create_testdir, func_create_megatestdir): Update documentation.
29007 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29009         * gnulib-tool (func_cache_lookup_module): Store the module name
29010         belonging to the cache variable; error out if two different
29011         module names map to the same cache variable name.
29013 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29015         gnulib-tool: Make caching optional.
29016         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29017         Update matching short versions of --no-changelog.
29018         (func_usage): Update.
29019         (sed_extract_cache_prog): Renamed from ...
29020         (sed_extract_prog): ... this; revert to old extraction script.
29021         (func_get_description, func_get_status)
29022         (func_get_notice, func_get_applicability, func_get_filelist)
29023         (func_get_dependencies, func_get_autoconf_early_snippet)
29024         (func_get_autoconf_snippet, func_get_automake_snippet)
29025         (func_get_include_directive, func_get_link_directive)
29026         (func_get_license, func_get_maintainer): If $do_cache is false,
29027         use old, non-caching extraction scripts.
29028         Suggestion by Bruno Haible.
29030 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29032         gnulib-tool: cache module metainformation.
29033         * gnulib-tool (sed_extract_prog): Match newline before each
29034         header, and rewrite header to a shell variable suffix.
29035         (func_cache_var, func_cache_lookup_module): New functions,
29036         to turn a module name into a cache variable prefix, and to
29037         look up and cache module metainformation.
29038         (func_get_description, func_get_status)
29039         (func_get_notice, func_get_applicability, func_get_filelist)
29040         (func_get_dependencies, func_get_autoconf_early_snippet)
29041         (func_get_autoconf_snippet, func_get_automake_snippet)
29042         (func_get_include_directive, func_get_link_directive)
29043         (func_get_license, func_get_maintainer): Use
29044         func_cache_lookup_module.
29046 2010-02-07  Bruno Haible  <bruno@clisp.org>
29048         fnctl: Fix missing dependency.
29049         * modules/fcntl (Depends-on): Add getdtablesize.
29050         Reported by John W. Eaton <jwe@gnu.org>.
29052 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29054         Argp: fix recognition of short alias options.
29056         * lib/argp-parse.c (convert_options): Fix improper use of
29057         `|' between character values.
29058         * tests/test-argp.c (group1_option): New alias option
29059         --read (-r).
29060         (group1_parser): Special handling for 'r'.
29061         (test15): New test case.
29062         (test_fun): Add test15.
29063         * tests/test-argp-2.sh: Update expected --help and --usage
29064         outputs.
29066 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29068         * tests/test-argp.c: Fix indentation.
29070 2010-02-04  Eric Blake  <ebb9@byu.net>
29072         gettimeofday: expose type of second argument
29073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29074         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29075         * tests/test-gettimeofday.c: Use it to silence warning.
29076         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29077         the issue.
29079 2010-02-03  Jim Meyering  <meyering@redhat.com>
29081         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29082         * lib/regcomp.c (TYPE_SIGNED): Define.
29083         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29085         regcomp.c: avoid a new -Wshadow warning
29086         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29088 2010-02-01  Jim Meyering  <meyering@redhat.com>
29090         removing useless parentheses in cpp #define directives
29091         For motivation, see commit c0221df4, "define STREQ(a,b)
29092         consistently, removing useless parentheses"
29093         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29094         * lib/mountlist.c (MNT_IGNORE): Likewise.
29095         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29097 2010-02-01  Eric Blake  <ebb9@byu.net>
29099         sys_time: use link-warning
29100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29101         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29102         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29103         * modules/sys_time (Depends-on): Add warn-on-use.
29104         (Makefile.am): Always build replacement.
29105         (configure.ac): Update substitutions.
29106         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29107         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29108         bother with SYS_TIME_H.
29109         * modules/gettimeofday (configure.ac): Declare indicator.
29110         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29111         in use.
29113         closein-tests: silence compiler warning
29114         * tests/test-closein.c (main): Ignore fread result.
29115         * modules/closein-tests (Depends-on): Add ignore-value.
29117         tests: silence warning about system return
29118         * tests/test-areadlink-with-size.c (main): Ignore system result.
29119         * tests/test-areadlink.c (main): Likewise.
29120         * tests/test-areadlinkat-with-size.c (main): Likewise.
29121         * tests/test-areadlinkat.c (main): Likewise.
29122         * tests/test-canonicalize-lgpl.c (main): Likewise.
29123         * tests/test-canonicalize.c (main): Likewise.
29124         * tests/test-chown.c (main): Likewise.
29125         * tests/test-fchownat.c (main): Likewise.
29126         * tests/test-fdutimensat.c (main): Likewise.
29127         * tests/test-fstatat.c (main): Likewise.
29128         * tests/test-futimens.c (main): Likewise.
29129         * tests/test-lchown.c (main): Likewise.
29130         * tests/test-link.c (main): Likewise.
29131         * tests/test-linkat.c (main): Likewise.
29132         * tests/test-lstat.c (main): Likewise.
29133         * tests/test-mkdir.c (main): Likewise.
29134         * tests/test-mkdirat.c (main): Likewise.
29135         * tests/test-mkfifo.c (main): Likewise.
29136         * tests/test-mkfifoat.c (main): Likewise.
29137         * tests/test-mknod.c (main): Likewise.
29138         * tests/test-readlink.c (main): Likewise.
29139         * tests/test-remove.c (main): Likewise.
29140         * tests/test-rename.c (main): Likewise.
29141         * tests/test-renameat.c (main): Likewise.
29142         * tests/test-rmdir.c (main): Likewise.
29143         * tests/test-symlink.c (main): Likewise.
29144         * tests/test-symlinkat.c (main): Likewise.
29145         * tests/test-unlink.c (main): Likewise.
29146         * tests/test-unlinkat.c (main): Likewise.
29147         * tests/test-utimens.c (main): Likewise.
29148         * tests/test-utimensat.c (main): Likewise.
29149         * modules/areadlink-tests (Depends-on): Add ignore-value.
29150         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29151         * modules/areadlinkat-tests (Depends-on): Likewise.
29152         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29153         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29154         * modules/canonicalize-tests (Depends-on): Likewise.
29155         * modules/chown-tests (Depends-on): Likewise.
29156         * modules/fdutimensat-tests (Depends-on): Likewise.
29157         * modules/futimens-tests (Depends-on): Likewise.
29158         * modules/lchown-tests (Depends-on): Likewise.
29159         * modules/link-tests (Depends-on): Likewise.
29160         * modules/linkat-tests (Depends-on): Likewise.
29161         * modules/lstat-tests (Depends-on): Likewise.
29162         * modules/mkdir-tests (Depends-on): Likewise.
29163         * modules/mkfifo-tests (Depends-on): Likewise.
29164         * modules/mkfifoat-tests (Depends-on): Likewise.
29165         * modules/mknod-tests (Depends-on): Likewise.
29166         * modules/openat-tests (Depends-on): Likewise.
29167         * modules/readlink-tests (Depends-on): Likewise.
29168         * modules/remove-tests (Depends-on): Likewise.
29169         * modules/rename-tests (Depends-on): Likewise.
29170         * modules/renameat-tests (Depends-on): Likewise.
29171         * modules/rmdir-tests (Depends-on): Likewise.
29172         * modules/symlink-tests (Depends-on): Likewise.
29173         * modules/symlinkat-tests (Depends-on): Likewise.
29174         * modules/unlink-tests (Depends-on): Likewise.
29175         * modules/utimens-tests (Depends-on): Likewise.
29176         * modules/utimensat-tests (Depends-on): Likewise.
29178 2010-01-31  Bruno Haible  <bruno@clisp.org>
29180         Perform the same test for many <math.h> functions.
29181         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29182         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29183         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29184         of gl_MATHFUNC.
29185         * modules/acos (configure.ac): Likewise.
29186         * modules/asin (configure.ac): Likewise.
29187         * modules/atan (configure.ac): Likewise.
29188         * modules/atan2 (configure.ac): Likewise.
29189         * modules/cbrt (configure.ac): Likewise.
29190         * modules/copysign (configure.ac): Likewise.
29191         * modules/cos (configure.ac): Likewise.
29192         * modules/cosh (configure.ac): Likewise.
29193         * modules/erf (configure.ac): Likewise.
29194         * modules/erfc (configure.ac): Likewise.
29195         * modules/exp (configure.ac): Likewise.
29196         * modules/fmod (configure.ac): Likewise.
29197         * modules/hypot (configure.ac): Likewise.
29198         * modules/j0 (configure.ac): Likewise.
29199         * modules/j1 (configure.ac): Likewise.
29200         * modules/jn (configure.ac): Likewise.
29201         * modules/lgamma (configure.ac): Likewise.
29202         * modules/log (configure.ac): Likewise.
29203         * modules/log10 (configure.ac): Likewise.
29204         * modules/log1p (configure.ac): Likewise.
29205         * modules/pow (configure.ac): Likewise.
29206         * modules/remainder (configure.ac): Likewise.
29207         * modules/sin (configure.ac): Likewise.
29208         * modules/sinh (configure.ac): Likewise.
29209         * modules/tan (configure.ac): Likewise.
29210         * modules/tanh (configure.ac): Likewise.
29211         * modules/y0 (configure.ac): Likewise.
29212         * modules/y1 (configure.ac): Likewise.
29213         * modules/yn (configure.ac): Likewise.
29214         Suggested by Paolo Bonzini.
29216 2010-01-31  Bruno Haible  <bruno@clisp.org>
29218         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29220 2010-01-31  Bruno Haible  <bruno@clisp.org>
29222         Work around getdelim() bug on FreeBSD 8.0.
29223         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29224         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29225         not work.
29226         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29227         is 1.
29228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29229         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29230         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29231         a non-zero size.
29232         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29234 2010-01-31  Bruno Haible  <bruno@clisp.org>
29236         Work around getline() bug on FreeBSD 8.0.
29237         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29238         and a non-zero size.
29239         * tests/test-getline.c (main): Likewise.
29240         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29241         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29243 2010-01-28  Eric Blake  <ebb9@byu.net>
29245         regex: fix build failure
29246         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29247         platforms.
29249 2010-01-28  Jim Meyering  <meyering@redhat.com>
29251         regex: do not ignore memory allocation failure
29252         * lib/regex_internal.c (create_cd_newstate): Detect
29253         re_node_set_init_copy failure.   Extracted from glibc commit
29254         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29256         regex: sync more white-space changes from libc
29257         * lib/regex_internal.c: White-space only changes.
29258         * lib/regexec.c: Likewise.
29260         regex: add many uses of __attribute_warn_unused_result__
29261         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29262         * lib/regexec.c: Likewise.
29263         Extracted from a messy glibc commit.
29265         regcomp.c: spelling and merge-artifact from glibc
29266         * lib/regcomp.c: Merge remainder of glibc's
29267         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29269         regcomp.c: sync white-space changes from glibc
29270         * lib/regcomp.c: Merge to accommodate white space
29271         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29273         regcomp.c: do not ignore internal return values
29274         * lib/regcomp.c: Do not ignore internal return values.
29275         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29276         but without its white-space changes and spelling fixes.
29278         regex_internal.h: define __attribute_warn_unused_result__
29279         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29281         maint: add a syntax-check rule to check for vulnerable Makefile.in
29282         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29284 2010-01-27  Jim Meyering  <meyering@redhat.com>
29286         ncftpput-ftp: clean up spaces
29287         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29288         Remove trailing blanks.
29290 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29292         * build-aux/git-version-gen: Fix copyright statement.
29293         * build-aux/gnupload: Likewise.
29294         * tests/test-arcfour.c: Likewise.
29295         * tests/test-arctwo.c: Likewise.
29296         * tests/test-count-one-bits.c: Likewise.
29297         * tests/test-crc.c: Likewise.
29298         * tests/test-des.c: Likewise.
29299         * tests/test-gc-arcfour.c: Likewise.
29300         * tests/test-gc-arctwo.c: Likewise.
29301         * tests/test-gc-des.c: Likewise.
29302         * tests/test-gc-hmac-md5.c: Likewise.
29303         * tests/test-gc-hmac-sha1.c: Likewise.
29304         * tests/test-gc-md2.c: Likewise.
29305         * tests/test-gc-md4.c: Likewise.
29306         * tests/test-gc-md5.c: Likewise.
29307         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29308         * tests/test-gc-rijndael.c: Likewise.
29309         * tests/test-gc-sha1.c: Likewise.
29310         * tests/test-gc.c: Likewise.
29311         * tests/test-gethostname.c: Likewise.
29312         * tests/test-gettimeofday.c: Likewise.
29313         * tests/test-hash.c: Likewise.
29314         * tests/test-hmac-md5.c: Likewise.
29315         * tests/test-hmac-sha1.c: Likewise.
29316         * tests/test-md2.c: Likewise.
29317         * tests/test-md4.c: Likewise.
29318         * tests/test-md5.c: Likewise.
29319         * tests/test-memchr.c: Likewise.
29320         * tests/test-memchr2.c: Likewise.
29321         * tests/test-memcmp.c: Likewise.
29322         * tests/test-memmem.c: Likewise.
29323         * tests/test-memrchr.c: Likewise.
29324         * tests/test-rawmemchr.c: Likewise.
29325         * tests/test-read-file.c: Likewise.
29326         * tests/test-rijndael.c: Likewise.
29327         * tests/test-sockets.c: Likewise.
29328         * tests/test-strchrnul.c: Likewise.
29329         * tests/test-strstr.c: Likewise.
29330         * tests/test-strtod.c: Likewise.
29331         * build-aux/ncftpput-ftp: Likewise.
29333 2010-01-26  Eric Blake  <ebb9@byu.net>
29335         ignore-value: update recommended header name
29336         * modules/ignore-value (Include): Only use <> for headers that
29337         exist in glibc.
29339 2010-01-26  Jim Meyering  <meyering@redhat.com>
29341         test-userspec.c: avoid compiler warnings
29342         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29343         and "initialization discards qualifiers..." warnings.
29344         Put the first "uid" in its own scope, and make char* members "const".
29346 2010-01-25  Bruno Haible  <bruno@clisp.org>
29348         gnulib-tool: Make warning diagnostics consistent.
29349         * gnulib-tool (func_warning): New function.
29350         Use it everywhere where gnulib-tool produces output to stderr and it is
29351         not a fatal error.
29353 2010-01-25  Bruno Haible  <bruno@clisp.org>
29355         Fix test dependencies.
29356         * modules/xstrtol-tests (Depends-on): Add inttypes.
29357         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29359 2010-01-25 Pádraig Brady <P@draigBrady.com>
29361         syntax-check: detect incorrect boolean macro values in config.h
29362         * modules/maintainer-makefile (configure.ac): Parameterize the location
29363         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29364         The logic is from Eric Blake and the location indicated by Jim Meyering.
29365         Note the more natural CONFIG_HEADER name is prohibited by automake
29366         for backwards compatibility reasons.
29367         * top/maint.mk (sc_Wundef_boolean): New rule.
29369 2010-01-25  Jim Meyering  <meyering@redhat.com>
29371         bootstrap: detect MacOS 10.6's shasum, too
29372         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29373         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29375 2010-01-23  Jim Meyering  <meyering@redhat.com>
29377         xstrtoll: new module
29378         * modules/xstrtoll: New file.
29379         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29380         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29381         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29382         ./configure fails if you use this module and lack "long long".
29383         * modules/xstrtoll-tests: New module.
29384         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29385         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29386         new init.sh-based test framework.
29388 2010-01-24  Bruno Haible  <bruno@clisp.org>
29390         Tests for module 'yn'.
29391         * modules/yn-tests: New file.
29392         * tests/test-yn.c: New file.
29394         Tests for module 'y1'.
29395         * modules/y1-tests: New file.
29396         * tests/test-y1.c: New file.
29398         Tests for module 'y0'.
29399         * modules/y0-tests: New file.
29400         * tests/test-y0.c: New file.
29402         Tests for module 'tanh'.
29403         * modules/tanh-tests: New file.
29404         * tests/test-tanh.c: New file.
29406         Tests for module 'tan'.
29407         * modules/tan-tests: New file.
29408         * tests/test-tan.c: New file.
29410         Tests for module 'sqrt'.
29411         * modules/sqrt-tests: New file.
29412         * tests/test-sqrt.c: New file.
29414         Tests for module 'sinh'.
29415         * modules/sinh-tests: New file.
29416         * tests/test-sinh.c: New file.
29418         Tests for module 'sin'.
29419         * modules/sin-tests: New file.
29420         * tests/test-sin.c: New file.
29422         Tests for module 'rint'.
29423         * modules/rint-tests: New file.
29424         * tests/test-rint.c: New file.
29426         Tests for module 'remainder'.
29427         * modules/remainder-tests: New file.
29428         * tests/test-remainder.c: New file.
29430         Tests for module 'pow'.
29431         * modules/pow-tests: New file.
29432         * tests/test-pow.c: New file.
29434         Tests for module 'nextafter'.
29435         * modules/nextafter-tests: New file.
29436         * tests/test-nextafter.c: New file.
29438         Tests for module 'modf'.
29439         * modules/modf-tests: New file.
29440         * tests/test-modf.c: New file.
29442         Tests for module 'logb'.
29443         * modules/logb-tests: New file.
29444         * tests/test-logb.c: New file.
29446         Tests for module 'log1p'.
29447         * modules/log1p-tests: New file.
29448         * tests/test-log1p.c: New file.
29450         Tests for module 'log10'.
29451         * modules/log10-tests: New file.
29452         * tests/test-log10.c: New file.
29454         Tests for module 'log'.
29455         * modules/log-tests: New file.
29456         * tests/test-log.c: New file.
29458         Tests for module 'lgamma'.
29459         * modules/lgamma-tests: New file.
29460         * tests/test-lgamma.c: New file.
29462         Tests for module 'ldexp'.
29463         * modules/ldexp-tests: New file.
29464         * tests/test-ldexp.c: New file.
29466         Tests for module 'jn'.
29467         * modules/jn-tests: New file.
29468         * tests/test-jn.c: New file.
29470         Tests for module 'j1'.
29471         * modules/j1-tests: New file.
29472         * tests/test-j1.c: New file.
29474         Tests for module 'j0'.
29475         * modules/j0-tests: New file.
29476         * tests/test-j0.c: New file.
29478         Tests for module 'hypot'.
29479         * modules/hypot-tests: New file.
29480         * tests/test-hypot.c: New file.
29482         Tests for module 'fmod'.
29483         * modules/fmod-tests: New file.
29484         * tests/test-fmod.c: New file.
29486         Tests for module 'fabs'.
29487         * modules/fabs-tests: New file.
29488         * tests/test-fabs.c: New file.
29490         Tests for module 'exp'.
29491         * modules/exp-tests: New file.
29492         * tests/test-exp.c: New file.
29494         Tests for module 'erfc'.
29495         * modules/erfc-tests: New file.
29496         * tests/test-erfc.c: New file.
29498         Tests for module 'erf'.
29499         * modules/erf-tests: New file.
29500         * tests/test-erf.c: New file.
29502         Tests for module 'cosh'.
29503         * modules/cosh-tests: New file.
29504         * tests/test-cosh.c: New file.
29506         Tests for module 'cos'.
29507         * modules/cos-tests: New file.
29508         * tests/test-cos.c: New file.
29510         Tests for module 'copysign'.
29511         * modules/copysign-tests: New file.
29512         * tests/test-copysign.c: New file.
29514         Tests for module 'cbrt'.
29515         * modules/cbrt-tests: New file.
29516         * tests/test-cbrt.c: New file.
29518         Tests for module 'atan2'.
29519         * modules/atan2-tests: New file.
29520         * tests/test-atan2.c: New file.
29522         Tests for module 'atan'.
29523         * modules/atan-tests: New file.
29524         * tests/test-atan.c: New file.
29526         Tests for module 'asin'.
29527         * modules/asin-tests: New file.
29528         * tests/test-asin.c: New file.
29530         Tests for module 'acos'.
29531         * modules/acos-tests: New file.
29532         * tests/test-acos.c: New file.
29534 2010-01-24  Bruno Haible  <bruno@clisp.org>
29536         Fix tests for common <math.h> functions.
29537         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29538         code snippet that references the function pointer, rather than merely
29539         calling the function. Substitute the FUNC_LIBM variable.
29540         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29541         * modules/acos (configure.ac): Likewise.
29542         * modules/asin (configure.ac): Likewise.
29543         * modules/atan (configure.ac): Likewise.
29544         * modules/atan2 (configure.ac): Likewise.
29545         * modules/cbrt (configure.ac): Likewise.
29546         * modules/copysign (configure.ac): Likewise.
29547         * modules/cos (configure.ac): Likewise.
29548         * modules/cosh (configure.ac): Likewise.
29549         * modules/erf (configure.ac): Likewise.
29550         * modules/erfc (configure.ac): Likewise.
29551         * modules/exp (configure.ac): Likewise.
29552         * modules/fabs (configure.ac): Likewise.
29553         * modules/fmod (configure.ac): Likewise.
29554         * modules/hypot (configure.ac): Likewise.
29555         * modules/j0 (configure.ac): Likewise.
29556         * modules/j1 (configure.ac): Likewise.
29557         * modules/jn (configure.ac): Likewise.
29558         * modules/ldexp (configure.ac): Likewise.
29559         * modules/lgamma (configure.ac): Likewise.
29560         * modules/log (configure.ac): Likewise.
29561         * modules/log10 (configure.ac): Likewise.
29562         * modules/log1p (configure.ac): Likewise.
29563         * modules/logb (configure.ac): Likewise.
29564         * modules/modf (configure.ac): Likewise.
29565         * modules/nextafter (configure.ac): Likewise.
29566         * modules/pow (configure.ac): Likewise.
29567         * modules/remainder (configure.ac): Likewise.
29568         * modules/rint (configure.ac): Likewise.
29569         * modules/sin (configure.ac): Likewise.
29570         * modules/sinh (configure.ac): Likewise.
29571         * modules/tan (configure.ac): Likewise.
29572         * modules/tanh (configure.ac): Likewise.
29573         * modules/y0 (configure.ac): Likewise.
29574         * modules/y1 (configure.ac): Likewise.
29575         * modules/yn (configure.ac): Likewise.
29577 2010-01-24  Bruno Haible  <bruno@clisp.org>
29579         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29580         * tests/test-acosl.c (x): New variable.
29581         (main): Store argument in x and fetch it from x.
29582         * tests/test-asinl.c (x): New variable.
29583         (main): Store argument in x and fetch it from x.
29584         * tests/test-atanl.c (x): New variable.
29585         (main): Store argument in x and fetch it from x.
29586         * tests/test-cosl.c (x): New variable.
29587         (main): Store argument in x and fetch it from x.
29588         * tests/test-expl.c (x): New variable.
29589         (main): Store argument in x and fetch it from x.
29590         * tests/test-logl.c (x): New variable.
29591         (main): Store argument in x and fetch it from x.
29592         * tests/test-sinl.c (x): New variable.
29593         (main): Store argument in x and fetch it from x.
29594         * tests/test-sqrtl.c (x): New variable.
29595         (main): Store argument in x and fetch it from x.
29596         * tests/test-tanl.c (x): New variable.
29597         (main): Store argument in x and fetch it from x.
29599 2010-01-24  Bruno Haible  <bruno@clisp.org>
29601         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29602         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29603         assignments to the initial TESTS_ENVIRONMENT.
29604         * doc/gnulib.texi (Unit test modules): Document it.
29605         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29606         TESTS_ENVIRONMENT.
29607         * modules/btowc-tests (Makefile.am): Likewise.
29608         * modules/c-stack-tests (Makefile.am): Likewise.
29609         * modules/c-strcase-tests (Makefile.am): Likewise.
29610         * modules/copy-file-tests (Makefile.am): Likewise.
29611         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29612         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29613         * modules/mbrtowc-tests (Makefile.am): Likewise.
29614         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29615         * modules/mbscasestr-tests (Makefile.am): Likewise.
29616         * modules/mbschr-tests (Makefile.am): Likewise.
29617         * modules/mbscspn-tests (Makefile.am): Likewise.
29618         * modules/mbsinit-tests (Makefile.am): Likewise.
29619         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29620         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29621         * modules/mbspbrk-tests (Makefile.am): Likewise.
29622         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29623         * modules/mbsrchr-tests (Makefile.am): Likewise.
29624         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29625         * modules/mbsspn-tests (Makefile.am): Likewise.
29626         * modules/mbsstr-tests (Makefile.am): Likewise.
29627         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29628         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29629         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29630         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29631         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29632         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29633         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29634         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29635         * modules/wcrtomb-tests (Makefile.am): Likewise.
29636         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29637         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29638         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29639         assignments from TESTS_ENVIRONMENT.
29640         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29641         augmentation.
29642         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29643         * modules/atexit-tests (Makefile.am): Likewise.
29644         * modules/binary-io-tests (Makefile.am): Likewise.
29645         * modules/closein-tests (Makefile.am): Likewise.
29646         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29647         * modules/exclude-tests (Makefile.am): Likewise.
29648         * modules/fflush-tests (Makefile.am): Likewise.
29649         * modules/fpending-tests (Makefile.am): Likewise.
29650         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29651         * modules/freadahead-tests (Makefile.am): Likewise.
29652         * modules/freadptr-tests (Makefile.am): Likewise.
29653         * modules/freadseek-tests (Makefile.am): Likewise.
29654         * modules/fseek-tests (Makefile.am): Likewise.
29655         * modules/fseeko-tests (Makefile.am): Likewise.
29656         * modules/ftell-tests (Makefile.am): Likewise.
29657         * modules/ftello-tests (Makefile.am): Likewise.
29658         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29659         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29660         * modules/lseek-tests (Makefile.am): Likewise.
29661         * modules/parse-duration-tests (Makefile.am): Likewise.
29662         * modules/perror-tests (Makefile.am): Likewise.
29663         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29664         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29665         * modules/pipe-tests (Makefile.am): Likewise.
29666         * modules/pread-tests (Makefile.am): Likewise.
29667         * modules/printf-posix-tests (Makefile.am): Likewise.
29668         * modules/select-tests (Makefile.am): Likewise.
29669         * modules/sigpipe-tests (Makefile.am): Likewise.
29670         * modules/tsearch-tests (Makefile.am): Likewise.
29671         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29672         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29673         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29674         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29675         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29676         * modules/version-etc-tests (Makefile.am): Likewise.
29677         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29678         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29679         * modules/xalloc-die-tests (Makefile.am): Likewise.
29680         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29681         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29682         * modules/xstrtol-tests (Makefile.am): Likewise.
29683         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29684         * modules/yesno-tests (Makefile.am): Likewise.
29685         Suggested by Jim Meyering.
29687 2010-01-24  Bruno Haible  <bruno@clisp.org>
29689         More documentation.
29690         * doc/gnulib.texi (Writing modules): New chapter.
29691         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29692         the new chapter.
29694 2010-01-24  Jim Meyering  <meyering@redhat.com>
29696         maint.mk: do not prepend "./" after filtering
29697         * top/maint.mk (_prepend_srcdir_prefix): New variable
29698         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29699         "./" when $(srcdir) is ".".
29701         define STREQ(a,b) consistently, removing useless parentheses
29702         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29703         since the only risk is that "a" or "b" contains an unparenthesized
29704         comma, but if either did that, STREQ would have 3 or more arguments.
29705         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29706         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29707         * lib/hash-triple.c (STREQ): Likewise.
29708         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29709         * lib/getugroups.c (STREQ): Likewise.
29711 2010-01-23  Jim Meyering  <meyering@redhat.com>
29713         maint.mk: fix syntax-check in a non-srcdir build directory
29714         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29715         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29717 2010-01-22  Jim Meyering  <meyering@redhat.com>
29719         userspec: add unit tests
29720         * tests/test-userspec.c: New file.
29721         * modules/userspec-tests: Likewise.
29723 2010-01-21  Jim Meyering  <meyering@redhat.com>
29725         maint.mk: handle source file names containing "." robustly
29726         * top/maint.mk (_dot_escaped_srcdir): Define.
29727         (VC_LIST): Use it in LHS of sed substitution.
29729 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29731         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29732         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29733         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29734         from a non-srcdir build.
29736 2010-01-20  Eric Blake  <ebb9@byu.net>
29738         warn-on-use: use instead of link-warning
29739         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29740         * modules/unistd (Depends-on, Makefile.am): Likewise.
29741         * modules/arpa_inet (Depends-on): Replace link-warning with
29742         warn-on-use.
29743         (Makefile.am): Update rules accordingly.
29744         * modules/ctype (Depends-on, Makefile.am): Likewise.
29745         * modules/dirent (Depends-on, Makefile.am): Likewise.
29746         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29747         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29748         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29749         * modules/locale (Depends-on, Makefile.am): Likewise.
29750         * modules/math (Depends-on, Makefile.am): Likewise.
29751         * modules/search (Depends-on, Makefile.am): Likewise.
29752         * modules/signal (Depends-on, Makefile.am): Likewise.
29753         * modules/spawn (Depends-on, Makefile.am): Likewise.
29754         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29755         * modules/string (Depends-on, Makefile.am): Likewise.
29756         * modules/strings (Depends-on, Makefile.am): Likewise.
29757         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29758         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29759         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29760         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29761         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29762         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29763         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29764         * modules/wchar (Depends-on, Makefile.am): Likewise.
29765         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29766         should be poisoned.
29767         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29768         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29769         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29770         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29771         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29772         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29773         * m4/math_h.m4 (gl_MATH_H): Likewise.
29774         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29775         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29776         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29777         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29778         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29779         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29780         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29781         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29782         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29786         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29787         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29788         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29789         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29790         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29791         GL_LINK_WARNING.
29792         * lib/ctype.in.h: Likewise.
29793         * lib/dirent.in.h: Likewise.
29794         * lib/fcntl.in.h: Likewise.
29795         * lib/inttypes.in.h: Likewise.
29796         * lib/langinfo.in.h: Likewise.
29797         * lib/locale.in.h: Likewise.
29798         * lib/math.in.h: Likewise.
29799         * lib/search.in.h: Likewise.
29800         * lib/signal.in.h: Likewise.
29801         * lib/spawn.in.h: Likewise.
29802         * lib/stdio.in.h: Likewise.
29803         * lib/stdlib.in.h: Likewise.
29804         * lib/string.in.h: Likewise.
29805         * lib/strings.in.h: Likewise.
29806         * lib/sys_file.in.h: Likewise.
29807         * lib/sys_ioctl.in.h: Likewise.
29808         * lib/sys_select.in.h: Likewise.
29809         * lib/sys_socket.in.h: Likewise.
29810         * lib/sys_stat.in.h: Likewise.
29811         * lib/sys_times.in.h: Likewise.
29812         * lib/sys_utsname.in.h: Likewise.
29813         * lib/unistd.in.h: Likewise.
29814         * lib/wchar.in.h: Likewise.
29816 2010-01-20  Bruno Haible  <bruno@clisp.org>
29818         Avoid duplicate -lm.
29819         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29820         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29822         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29823         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29824         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29825         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29826         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29827         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29828         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29829         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29830         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29831         Reported by Paolo Bonzini.
29833 2010-01-19  Bruno Haible  <bruno@clisp.org>
29835         langinfo, nl_langinfo: Relicense under LGPLv2+.
29836         * modules/langinfo (License): Change to LGPLv2+.
29837         * modules/nl_langinfo (License): Likewise.
29838         Patch by David Lutterkort <lutter@redhat.com>.
29840 2010-01-19  Bruno Haible  <bruno@clisp.org>
29842         Avoid compilation error with cc on OSF/1 5.1.
29843         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29844         statement, not before.
29845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29847 2010-01-18  Bruno Haible  <bruno@clisp.org>
29849         Avoid a link error due to the __printf__ symbol.
29850         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29851         and 2.6.x.
29852         (__format__, __printf__): Remove definitions.
29853         * lib/argp-fmtstream.h: Likewise.
29854         * lib/argp.h: Likewise.
29855         * lib/error.h: Likewise.
29856         * lib/vasnprintf.h: Likewise.
29857         * lib/xprintf.h: Likewise.
29858         * lib/xvasprintf.h: Likewise.
29859         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29861 2010-01-18  Bruno Haible  <bruno@clisp.org>
29863         Tests for module 'tanl'.
29864         * modules/tanl-tests: New file.
29865         * tests/test-tanl.c: New file.
29867         Tests for module 'sqrtl'.
29868         * modules/sqrtl-tests: New file.
29869         * tests/test-sqrtl.c: New file.
29871         Tests for module 'sinl'.
29872         * modules/sinl-tests: New file.
29873         * tests/test-sinl.c: New file.
29875         Tests for module 'logl'.
29876         * modules/logl-tests: New file.
29877         * tests/test-logl.c: New file.
29879         Tests for module 'expl'.
29880         * modules/expl-tests: New file.
29881         * tests/test-expl.c: New file.
29883         Tests for module 'cosl'.
29884         * modules/cosl-tests: New file.
29885         * tests/test-cosl.c: New file.
29887         Tests for module 'atanl'.
29888         * modules/atanl-tests: New file.
29889         * tests/test-atanl.c: New file.
29891         Tests for module 'asinl'.
29892         * modules/asinl-tests: New file.
29893         * tests/test-asinl.c: New file.
29895         Tests for module 'acosl'.
29896         * modules/acosl-tests: New file.
29897         * tests/test-acosl.c: New file.
29899         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29900         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29901         tanl): Use the standard gnulib idiom.
29902         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29903         * lib/sinl.c: Likewise.
29904         * lib/tanl.c: Don't include trigl.c.
29905         (kernel_tanl): Make static.
29906         * lib/sincosl.c: Include trigl.h first.
29907         * lib/trigl.c: Likewise.
29908         * m4/acosl.m4: New file.
29909         * m4/asinl.m4: New file.
29910         * m4/atanl.m4: New file.
29911         * m4/cosl.m4: New file.
29912         * m4/expl.m4: New file.
29913         * m4/logl.m4: New file.
29914         * m4/sinl.m4: New file.
29915         * m4/sqrtl.m4: New file.
29916         * m4/tanl.m4: New file.
29917         * m4/mathl.m4: Remove file.
29918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29919         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29920         Don't initialize GNULIB_MATHL.
29921         * modules/acosl: New file.
29922         * modules/asinl: New file.
29923         * modules/atanl: New file.
29924         * modules/cosl: New file.
29925         * modules/expl: New file.
29926         * modules/logl: New file.
29927         * modules/sinl: New file.
29928         * modules/sqrtl: New file.
29929         * modules/tanl: New file.
29930         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29931         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29932         substitute GNULIB_MATHL.
29933         * modules/mathl: Rewritten.
29934         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29935         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29936         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29937         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29938         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29939         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29940         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29941         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29942         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29944 2010-01-18  Bruno Haible  <bruno@clisp.org>
29946         sqrt: Make gl_FUNC_SQRT requirable.
29947         * m4/sqrt.m4: New file.
29948         * modules/sqrt (Files): Add it.
29949         (configure.ac): Invoke gl_FUNC_SQRT.
29951 2010-01-18  Bruno Haible  <bruno@clisp.org>
29953         New modules for common <math.h> functions.
29954         * m4/mathfunc.m4: New file.
29955         * modules/acos: New file.
29956         * modules/asin: New file.
29957         * modules/atan: New file.
29958         * modules/atan2: New file.
29959         * modules/cbrt: New file.
29960         * modules/copysign: New file.
29961         * modules/cos: New file.
29962         * modules/cosh: New file.
29963         * modules/erf: New file.
29964         * modules/erfc: New file.
29965         * modules/exp: New file.
29966         * modules/fabs: New file.
29967         * modules/fmod: New file.
29968         * modules/hypot: New file.
29969         * modules/j0: New file.
29970         * modules/j1: New file.
29971         * modules/jn: New file.
29972         * modules/ldexp: New file.
29973         * modules/lgamma: New file.
29974         * modules/log: New file.
29975         * modules/log10: New file.
29976         * modules/log1p: New file.
29977         * modules/logb: New file.
29978         * modules/modf: New file.
29979         * modules/nextafter: New file.
29980         * modules/pow: New file.
29981         * modules/remainder: New file.
29982         * modules/rint: New file.
29983         * modules/sin: New file.
29984         * modules/sinh: New file.
29985         * modules/sqrt: New file.
29986         * modules/tan: New file.
29987         * modules/tanh: New file.
29988         * modules/y0: New file.
29989         * modules/y1: New file.
29990         * modules/yn: New file.
29991         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29992         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29993         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29994         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29995         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29996         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29997         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29998         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29999         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30000         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30001         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30002         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30003         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30004         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30005         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30006         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30007         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30008         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30009         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30010         * doc/posix-functions/log.texi: Mention the 'log' module.
30011         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30012         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30013         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30014         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30015         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30016         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30017         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30018         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30019         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30020         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30021         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30022         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30023         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30024         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30025         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30026         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30028 2010-01-18  Jim Meyering  <meyering@redhat.com>
30030         ignore-value: relax license to LGPLv2+
30031         * modules/ignore-value (License): Relax to LGPLv2+.
30033         getdate: don't leak when TZ contains two or more '"'s
30034         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30035         double quote in TZ after the first one.
30037         readtokens: do not leak internal token_lengths buffer
30038         * lib/readtokens.c (readtokens): Free the local, lengths,
30039         when the supplied "token_lengths" parameter is NULL.
30041 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30043         Fix a couple of missing LIBTHREAD link failures on AIX.
30044         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30045         $(LIBTHREAD).
30046         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30048         Link test-poll against INET_PTON_LIB.
30049         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30050         for inet_pton on Solaris 10.
30052 2010-01-17  Bruno Haible  <bruno@clisp.org>
30054         unistdio/*-sprintf: Fix typo in module description.
30055         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30056         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30057         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30058         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30059         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30060         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30061         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30064 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30066         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30067         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30068         variables in shell case patterns, for AIX and HP-UX ksh.
30070         Split large sed scripts, for HP-UX sed.
30071         * modules/stdio: Split sed scripts around 50 sed commands,
30072         to avoid HP-UX limit of 99 commands, in the near future.
30073         * modules/string: Likewise.
30074         * modules/unistd: Likewise.
30076         gnulib-tool: avoid writing in the current directory.
30077         * gnulib-tool (func_emit_lib_Makefile_am)
30078         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30079         not in the current directory, so concurrent gnulib-tool
30080         instances do not interfere.
30082 2010-01-16  Jim Meyering  <meyering@redhat.com>
30084         doc: update users.txt
30085         * users.txt: Add grep.
30086         (diffutils, gzip): Update URLs.
30088 2010-01-12  Bruno Haible  <bruno@clisp.org>
30090         posix_spawn: Avoid test failure on Cygwin.
30091         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30092         characters.
30093         Reported by Simon Josefsson.
30095 2010-01-12  Bruno Haible  <bruno@clisp.org>
30097         * tests/test-cond.c (main): When skipping the test, show the reason.
30099 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30101         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30103 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30105         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30106         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30108 2010-01-12  Eric Blake  <ebb9@byu.net>
30110         build: guarantee AS_VAR_IF
30111         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30112         (gl_AS_VAR_IF): Move...
30113         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30114         Reported by Simon Josefsson.
30116 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30118         * lib/stdio.in.h: Fix typo.
30120 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30122         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30123         libgpg-error.
30125 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30127         * tests/test-xalloc-die.sh: Use $EXEEXT.
30129 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30130             Bruno Haible  <bruno@clisp.org>
30132         getlogin, getlogin_r: Avoid test failure.
30133         * tests/test-getlogin.c: Include <stdio.h>.
30134         (main): Skip the test when the function fails because stdin is not a
30135         tty.
30136         * tests/test-getlogin_r.c: Include <stdio.h>.
30137         (main): Skip the test when the function fails because stdin is not a
30138         tty.
30140 2010-01-11  Eric Blake  <ebb9@byu.net>
30142         tests: avoid more large file warnings
30143         * tests/test-fflush.c: Avoid warning about ftell use.
30144         * tests/test-fseek.c: Avoid warning about fseek use.
30146 2010-01-10  Bruno Haible  <bruno@clisp.org>
30148         nproc: Work better on Linux when /proc and /sys are not mounted.
30149         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30150         as lower bound when, on glibc/Linux systems,
30151         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30152         Suggested by Pádraig Brady <P@draigbrady.com>.
30153         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30155         nproc: Refactor.
30156         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30157         extracted from num_processors.
30158         (num_processors): Call it.
30160 2010-01-11  Jim Meyering  <meyering@redhat.com>
30162         utimecmp: avoid new warning from upcoming gcc-4.5.0
30163         * lib/utimecmp.c (BILLION): Define using #define rather than an
30164         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30166 2010-01-11  Eric Blake  <ebb9@byu.net>
30168         math: add portability warnings for classification macros
30169         * modules/math (Depends-on): Add warn-on-use.
30170         (Makefile.am): Provide new substitutions.
30171         * m4/math_h.m4 (gl_MATH_H): Require inline.
30172         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30173         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30174         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30175         implement warnings.
30177         unistd: warn on use of environ without module
30178         * modules/unistd (Depends-on): Add warn-on-use.
30179         (Makefile.am): Provide new substitutions.
30180         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30181         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30183         stdio: warn on suspicious uses
30184         * modules/stdio (Depends-on): Add warn-on-use.
30185         (Makefile.am): Provide new substitutions.
30186         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30187         fseeko.
30188         * lib/stdio.in.h (gets): Always warn on use.
30189         (fseek, ftell): Adjust when warnings are issued, and honor
30190         _GL_NO_LARGE_FILES as a way to silence the warning.
30191         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30192         any warning about large file offsets.
30193         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30194         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30195         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30196         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30197         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30198         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30199         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30200         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30202         warn-on-use: new module
30203         * modules/warn-on-use: New file.
30204         * build-aux/warn-on-use.h: Likewise.
30205         * m4/warn-on-use.m4: Likewise.
30206         * MODULES.html.sh (Support for building): Mention it.
30208 2010-01-10  Bruno Haible  <bruno@clisp.org>
30210         Tests for module 'unistr/u32-strdup'.
30211         * modules/unistr/u32-strdup-tests: New file.
30212         * tests/unistr/test-u32-strdup.c: New file.
30214         Tests for module 'unistr/u16-strdup'.
30215         * modules/unistr/u16-strdup-tests: New file.
30216         * tests/unistr/test-u16-strdup.c: New file.
30218         Tests for module 'unistr/u8-strdup'.
30219         * modules/unistr/u8-strdup-tests: New file.
30220         * tests/unistr/test-u8-strdup.c: New file.
30221         * tests/unistr/test-strdup.h: New file.
30223         Tests for module 'unistr/u32-strncmp'.
30224         * modules/unistr/u32-strncmp-tests: New file.
30225         * tests/unistr/test-u32-strncmp.c: New file.
30227         Tests for module 'unistr/u16-strncmp'.
30228         * modules/unistr/u16-strncmp-tests: New file.
30229         * tests/unistr/test-u16-strncmp.c: New file.
30231         Tests for module 'unistr/u8-strncmp'.
30232         * modules/unistr/u8-strncmp-tests: New file.
30233         * tests/unistr/test-u8-strncmp.c: New file.
30234         * tests/unistr/test-strncmp.h: New file.
30236         Tests for module 'unistr/u32-strcoll'.
30237         * modules/unistr/u32-strcoll-tests: New file.
30238         * tests/unistr/test-u32-strcoll.c: New file.
30240         Tests for module 'unistr/u16-strcoll'.
30241         * modules/unistr/u16-strcoll-tests: New file.
30242         * tests/unistr/test-u16-strcoll.c: New file.
30244         Tests for module 'unistr/u8-strcoll'.
30245         * modules/unistr/u8-strcoll-tests: New file.
30246         * tests/unistr/test-u8-strcoll.c: New file.
30248         Tests for module 'unistr/u32-strcmp'.
30249         * modules/unistr/u32-strcmp-tests: New file.
30250         * tests/unistr/test-u32-strcmp.c: New file.
30251         * tests/unistr/test-u32-strcmp.h: New file.
30253         Tests for module 'unistr/u16-strcmp'.
30254         * modules/unistr/u16-strcmp-tests: New file.
30255         * tests/unistr/test-u16-strcmp.c: New file.
30256         * tests/unistr/test-u16-strcmp.h: New file.
30258         Tests for module 'unistr/u8-strcmp'.
30259         * modules/unistr/u8-strcmp-tests: New file.
30260         * tests/unistr/test-u8-strcmp.c: New file.
30261         * tests/unistr/test-u8-strcmp.h: New file.
30262         * tests/unistr/test-strcmp.h: New file.
30264         Tests for module 'unistr/u32-strncat'.
30265         * modules/unistr/u32-strncat-tests: New file.
30266         * tests/unistr/test-u32-strncat.c: New file.
30268         Tests for module 'unistr/u16-strncat'.
30269         * modules/unistr/u16-strncat-tests: New file.
30270         * tests/unistr/test-u16-strncat.c: New file.
30272         Tests for module 'unistr/u8-strncat'.
30273         * modules/unistr/u8-strncat-tests: New file.
30274         * tests/unistr/test-u8-strncat.c: New file.
30275         * tests/unistr/test-strncat.h: New file.
30277         Tests for module 'unistr/u32-strcat'.
30278         * modules/unistr/u32-strcat-tests: New file.
30279         * tests/unistr/test-u32-strcat.c: New file.
30281         Tests for module 'unistr/u16-strcat'.
30282         * modules/unistr/u16-strcat-tests: New file.
30283         * tests/unistr/test-u16-strcat.c: New file.
30285         Tests for module 'unistr/u8-strcat'.
30286         * modules/unistr/u8-strcat-tests: New file.
30287         * tests/unistr/test-u8-strcat.c: New file.
30288         * tests/unistr/test-strcat.h: New file.
30290         Tests for module 'unistr/u32-stpncpy'.
30291         * modules/unistr/u32-stpncpy-tests: New file.
30292         * tests/unistr/test-u32-stpncpy.c: New file.
30294         Tests for module 'unistr/u16-stpncpy'.
30295         * modules/unistr/u16-stpncpy-tests: New file.
30296         * tests/unistr/test-u16-stpncpy.c: New file.
30298         Tests for module 'unistr/u8-stpncpy'.
30299         * modules/unistr/u8-stpncpy-tests: New file.
30300         * tests/unistr/test-u8-stpncpy.c: New file.
30301         * tests/unistr/test-stpncpy.h: New file.
30303         Tests for module 'unistr/u32-strncpy'.
30304         * modules/unistr/u32-strncpy-tests: New file.
30305         * tests/unistr/test-u32-strncpy.c: New file.
30307         Tests for module 'unistr/u16-strncpy'.
30308         * modules/unistr/u16-strncpy-tests: New file.
30309         * tests/unistr/test-u16-strncpy.c: New file.
30311         Tests for module 'unistr/u8-strncpy'.
30312         * modules/unistr/u8-strncpy-tests: New file.
30313         * tests/unistr/test-u8-strncpy.c: New file.
30314         * tests/unistr/test-strncpy.h: New file.
30316         Tests for module 'unistr/u32-stpcpy'.
30317         * modules/unistr/u32-stpcpy-tests: New file.
30318         * tests/unistr/test-u32-stpcpy.c: New file.
30320         Tests for module 'unistr/u16-stpcpy'.
30321         * modules/unistr/u16-stpcpy-tests: New file.
30322         * tests/unistr/test-u16-stpcpy.c: New file.
30324         Tests for module 'unistr/u8-stpcpy'.
30325         * modules/unistr/u8-stpcpy-tests: New file.
30326         * tests/unistr/test-u8-stpcpy.c: New file.
30327         * tests/unistr/test-stpcpy.h: New file.
30329         Tests for module 'unistr/u32-strcpy'.
30330         * modules/unistr/u32-strcpy-tests: New file.
30331         * tests/unistr/test-u32-strcpy.c: New file.
30333         Tests for module 'unistr/u16-strcpy'.
30334         * modules/unistr/u16-strcpy-tests: New file.
30335         * tests/unistr/test-u16-strcpy.c: New file.
30337         Tests for module 'unistr/u8-strcpy'.
30338         * modules/unistr/u8-strcpy-tests: New file.
30339         * tests/unistr/test-u8-strcpy.c: New file.
30340         * tests/unistr/test-strcpy.h: New file.
30342         Tests for module 'unistr/u32-strnlen'.
30343         * modules/unistr/u32-strnlen-tests: New file.
30344         * tests/unistr/test-u32-strnlen.c: New file.
30346         Tests for module 'unistr/u16-strnlen'.
30347         * modules/unistr/u16-strnlen-tests: New file.
30348         * tests/unistr/test-u16-strnlen.c: New file.
30350         Tests for module 'unistr/u8-strnlen'.
30351         * modules/unistr/u8-strnlen-tests: New file.
30352         * tests/unistr/test-u8-strnlen.c: New file.
30353         * tests/unistr/test-strnlen.h: New file.
30355         Tests for module 'unistr/u32-strlen'.
30356         * modules/unistr/u32-strlen-tests: New file.
30357         * tests/unistr/test-u32-strlen.c: New file.
30359         Tests for module 'unistr/u16-strlen'.
30360         * modules/unistr/u16-strlen-tests: New file.
30361         * tests/unistr/test-u16-strlen.c: New file.
30363         Tests for module 'unistr/u8-strlen'.
30364         * modules/unistr/u8-strlen-tests: New file.
30365         * tests/unistr/test-u8-strlen.c: New file.
30367         Tests for module 'unistr/u32-prev'.
30368         * modules/unistr/u32-prev-tests: New file.
30369         * tests/unistr/test-u32-prev.c: New file.
30371         Tests for module 'unistr/u16-prev'.
30372         * modules/unistr/u16-prev-tests: New file.
30373         * tests/unistr/test-u16-prev.c: New file.
30375         Tests for module 'unistr/u8-prev'.
30376         * modules/unistr/u8-prev-tests: New file.
30377         * tests/unistr/test-u8-prev.c: New file.
30379         Tests for module 'unistr/u32-next'.
30380         * modules/unistr/u32-next-tests: New file.
30381         * tests/unistr/test-u32-next.c: New file.
30383         Tests for module 'unistr/u16-next'.
30384         * modules/unistr/u16-next-tests: New file.
30385         * tests/unistr/test-u16-next.c: New file.
30387         Tests for module 'unistr/u8-next'.
30388         * modules/unistr/u8-next-tests: New file.
30389         * tests/unistr/test-u8-next.c: New file.
30391         Tests for module 'unistr/u32-strmbtouc'.
30392         * modules/unistr/u32-strmbtouc-tests: New file.
30393         * tests/unistr/test-u32-strmbtouc.c: New file.
30395         Tests for module 'unistr/u16-strmbtouc'.
30396         * modules/unistr/u16-strmbtouc-tests: New file.
30397         * tests/unistr/test-u16-strmbtouc.c: New file.
30399         Tests for module 'unistr/u8-strmbtouc'.
30400         * modules/unistr/u8-strmbtouc-tests: New file.
30401         * tests/unistr/test-u8-strmbtouc.c: New file.
30403         Tests for module 'unistr/u32-strmblen'.
30404         * modules/unistr/u32-strmblen-tests: New file.
30405         * tests/unistr/test-u32-strmblen.c: New file.
30407         Tests for module 'unistr/u16-strmblen'.
30408         * modules/unistr/u16-strmblen-tests: New file.
30409         * tests/unistr/test-u16-strmblen.c: New file.
30411         Tests for module 'unistr/u8-strmblen'.
30412         * modules/unistr/u8-strmblen-tests: New file.
30413         * tests/unistr/test-u8-strmblen.c: New file.
30415         Tests for module 'unistr/u32-cpy-alloc'.
30416         * modules/unistr/u32-cpy-alloc-tests: New file.
30417         * tests/unistr/test-u32-cpy-alloc.c: New file.
30419         Tests for module 'unistr/u16-cpy-alloc'.
30420         * modules/unistr/u16-cpy-alloc-tests: New file.
30421         * tests/unistr/test-u16-cpy-alloc.c: New file.
30423         Tests for module 'unistr/u8-cpy-alloc'.
30424         * modules/unistr/u8-cpy-alloc-tests: New file.
30425         * tests/unistr/test-u8-cpy-alloc.c: New file.
30426         * tests/unistr/test-cpy-alloc.h: New file.
30428         Tests for module 'unistr/u32-mbsnlen'.
30429         * modules/unistr/u32-mbsnlen-tests: New file.
30430         * tests/unistr/test-u32-mbsnlen.c: New file.
30432         Tests for module 'unistr/u16-mbsnlen'.
30433         * modules/unistr/u16-mbsnlen-tests: New file.
30434         * tests/unistr/test-u16-mbsnlen.c: New file.
30436         Tests for module 'unistr/u8-mbsnlen'.
30437         * modules/unistr/u8-mbsnlen-tests: New file.
30438         * tests/unistr/test-u8-mbsnlen.c: New file.
30440         Tests for module 'unistr/u32-chr'.
30441         * modules/unistr/u32-chr-tests: New file.
30442         * tests/unistr/test-u32-chr.c: New file.
30444         Tests for module 'unistr/u16-chr'.
30445         * modules/unistr/u16-chr-tests: New file.
30446         * tests/unistr/test-u16-chr.c: New file.
30448         Tests for module 'unistr/u8-chr'.
30449         * modules/unistr/u8-chr-tests: New file.
30450         * tests/unistr/test-u8-chr.c: New file.
30451         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30453         Tests for module 'unistr/u32-cmp2'.
30454         * modules/unistr/u32-cmp2-tests: New file.
30455         * tests/unistr/test-u32-cmp2.c: New file.
30457         Tests for module 'unistr/u16-cmp2'.
30458         * modules/unistr/u16-cmp2-tests: New file.
30459         * tests/unistr/test-u16-cmp2.c: New file.
30461         Tests for module 'unistr/u8-cmp2'.
30462         * modules/unistr/u8-cmp2-tests: New file.
30463         * tests/unistr/test-u8-cmp2.c: New file.
30464         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30466         Tests for module 'unistr/u32-cmp'.
30467         * modules/unistr/u32-cmp-tests: New file.
30468         * tests/unistr/test-u32-cmp.c: New file.
30470         Tests for module 'unistr/u16-cmp'.
30471         * modules/unistr/u16-cmp-tests: New file.
30472         * tests/unistr/test-u16-cmp.c: New file.
30474         Tests for module 'unistr/u8-cmp'.
30475         * modules/unistr/u8-cmp-tests: New file.
30476         * tests/unistr/test-u8-cmp.c: New file.
30477         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30479         Tests for module 'unistr/u32-set'.
30480         * modules/unistr/u32-set-tests: New file.
30481         * tests/unistr/test-u32-set.c: New file.
30483         Tests for module 'unistr/u16-set'.
30484         * modules/unistr/u16-set-tests: New file.
30485         * tests/unistr/test-u16-set.c: New file.
30487         Tests for module 'unistr/u8-set'.
30488         * modules/unistr/u8-set-tests: New file.
30489         * tests/unistr/test-u8-set.c: New file.
30490         * tests/unistr/test-set.h: New file.
30492         Tests for module 'unistr/u32-move'.
30493         * modules/unistr/u32-move-tests: New file.
30494         * tests/unistr/test-u32-move.c: New file.
30496         Tests for module 'unistr/u16-move'.
30497         * modules/unistr/u16-move-tests: New file.
30498         * tests/unistr/test-u16-move.c: New file.
30500         Tests for module 'unistr/u8-move'.
30501         * modules/unistr/u8-move-tests: New file.
30502         * tests/unistr/test-u8-move.c: New file.
30503         * tests/unistr/test-move.h: New file.
30505         Tests for module 'unistr/u32-cpy'.
30506         * modules/unistr/u32-cpy-tests: New file.
30507         * tests/unistr/test-u32-cpy.c: New file.
30509         Tests for module 'unistr/u16-cpy'.
30510         * modules/unistr/u16-cpy-tests: New file.
30511         * tests/unistr/test-u16-cpy.c: New file.
30513         Tests for module 'unistr/u8-cpy'.
30514         * modules/unistr/u8-cpy-tests: New file.
30515         * tests/unistr/test-u8-cpy.c: New file.
30516         * tests/unistr/test-cpy.h: New file.
30518 2010-01-09  Bruno Haible  <bruno@clisp.org>
30520         Tests for module 'unistr/u32-uctomb'.
30521         * modules/unistr/u32-uctomb-tests: New file.
30522         * tests/unistr/test-u32-uctomb.c: New file.
30524         Tests for module 'unistr/u16-uctomb'.
30525         * modules/unistr/u16-uctomb-tests: New file.
30526         * tests/unistr/test-u16-uctomb.c: New file.
30528         Tests for module 'unistr/u8-uctomb'.
30529         * modules/unistr/u8-uctomb-tests: New file.
30530         * tests/unistr/test-u8-uctomb.c: New file.
30532         Tests for module 'unistr/u32-mbtoucr'.
30533         * modules/unistr/u32-mbtoucr-tests: New file.
30534         * tests/unistr/test-u32-mbtoucr.c: New file.
30536         Tests for module 'unistr/u16-mbtoucr'.
30537         * modules/unistr/u16-mbtoucr-tests: New file.
30538         * tests/unistr/test-u16-mbtoucr.c: New file.
30540         Tests for module 'unistr/u8-mbtoucr'.
30541         * modules/unistr/u8-mbtoucr-tests: New file.
30542         * tests/unistr/test-u8-mbtoucr.c: New file.
30544         Tests for module 'unistr/u32-mbtouc'.
30545         * modules/unistr/u32-mbtouc-tests: New file.
30546         * tests/unistr/test-u32-mbtouc.c: New file.
30548         Tests for module 'unistr/u16-mbtouc'.
30549         * modules/unistr/u16-mbtouc-tests: New file.
30550         * tests/unistr/test-u16-mbtouc.c: New file.
30552         Tests for module 'unistr/u8-mbtouc'.
30553         * modules/unistr/u8-mbtouc-tests: New file.
30554         * tests/unistr/test-u8-mbtouc.c: New file.
30556         Tests for module 'unistr/u32-mbtouc-unsafe'.
30557         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30558         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30559         * tests/unistr/test-u32-mbtouc.h: New file.
30561         Tests for module 'unistr/u16-mbtouc-unsafe'.
30562         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30563         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30564         * tests/unistr/test-u16-mbtouc.h: New file.
30566         Tests for module 'unistr/u8-mbtouc-unsafe'.
30567         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30568         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30569         * tests/unistr/test-u8-mbtouc.h: New file.
30571         Tests for module 'unistr/u32-mblen'.
30572         * modules/unistr/u32-mblen-tests: New file.
30573         * tests/unistr/test-u32-mblen.c: New file.
30575         Tests for module 'unistr/u16-mblen'.
30576         * modules/unistr/u16-mblen-tests: New file.
30577         * tests/unistr/test-u16-mblen.c: New file.
30579         Tests for module 'unistr/u8-mblen'.
30580         * modules/unistr/u8-mblen-tests: New file.
30581         * tests/unistr/test-u8-mblen.c: New file.
30583         Tests for module 'unistr/u32-to-u16'.
30584         * modules/unistr/u32-to-u16-tests: New file.
30585         * tests/unistr/test-u32-to-u16.c: New file.
30587         Tests for module 'unistr/u32-to-u8'.
30588         * modules/unistr/u32-to-u8-tests: New file.
30589         * tests/unistr/test-u32-to-u8.c: New file.
30591         Tests for module 'unistr/u16-to-u32'.
30592         * modules/unistr/u16-to-u32-tests: New file.
30593         * tests/unistr/test-u16-to-u32.c: New file.
30595         Tests for module 'unistr/u16-to-u8'.
30596         * modules/unistr/u16-to-u8-tests: New file.
30597         * tests/unistr/test-u16-to-u8.c: New file.
30599         Tests for module 'unistr/u8-to-u32'.
30600         * modules/unistr/u8-to-u32-tests: New file.
30601         * tests/unistr/test-u8-to-u32.c: New file.
30603         Tests for module 'unistr/u8-to-u16'.
30604         * modules/unistr/u8-to-u16-tests: New file.
30605         * tests/unistr/test-u8-to-u16.c: New file.
30607         Tests for module 'unistr/u32-check'.
30608         * modules/unistr/u32-check-tests: New file.
30609         * tests/unistr/test-u32-check.c: New file.
30611         Tests for module 'unistr/u16-check'.
30612         * modules/unistr/u16-check-tests: New file.
30613         * tests/unistr/test-u16-check.c: New file.
30615         Tests for module 'unistr/u8-check'.
30616         * modules/unistr/u8-check-tests: New file.
30617         * tests/unistr/test-u8-check.c: New file.
30619         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30620         (category_equals): New function.
30621         (main): Add more tests.
30622         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30624         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30626 2010-01-10  Bruno Haible  <bruno@clisp.org>
30628         unistr/u*-strcoll: Try harder to distinguish different strings.
30629         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30630         compare s1 and s2 to see if they are different.
30632 2010-01-10  Bruno Haible  <bruno@clisp.org>
30634         unistr/u*-stpncpy: Fix the return value.
30635         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30636         description of the return value consistent with stpncpy in glibc.
30637         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30638         written non-NUL unit.
30640 2010-01-10  Bruno Haible  <bruno@clisp.org>
30642         unistr/u*-next: Add missing dependencies.
30643         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30644         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30645         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30647 2010-01-10  Bruno Haible  <bruno@clisp.org>
30649         unistr/u8-mbsnlen: Fix return value for incomplete character.
30650         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30651         u8_mblen.
30652         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30653         Remove unistr/u8-mblen.
30654         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30655         u16_mblen.
30656         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30657         Remove unistr/u16-mblen.
30659 2010-01-10  Bruno Haible  <bruno@clisp.org>
30661         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30662         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30663         Reported by Brian Gough <bjg@gnu.org> and
30664         Chris Clayton <chris2553@googlemail.com> via
30665         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30667 2010-01-09  Bruno Haible  <bruno@clisp.org>
30669         unistr/u16-to-u32: Reject invalid input.
30670         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30671         u16_mbtouc.
30672         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30673         Remove unistr/u16-mbtouc.
30675         unistr/u16-to-u8: Reject invalid input.
30676         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30677         u16_mbtouc.
30678         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30679         Remove unistr/u16-mbtouc.
30681         unistr/u8-to-u32: Reject invalid input.
30682         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30683         u8_mbtouc.
30684         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30685         Remove unistr/u8-mbtouc.
30687         unistr/u8-to-u16: Reject invalid input.
30688         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30689         u8_mbtouc.
30690         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30691         Remove unistr/u8-mbtouc.
30693 2010-01-09  Bruno Haible  <bruno@clisp.org>
30695         Tests for module 'getlogin'.
30696         * modules/getlogin-tests: New file.
30697         * tests/test-getlogin.c: New file.
30699         New module 'getlogin'.
30700         * lib/unistd.in.h (getlogin): New declaration.
30701         * lib/getlogin.c: New file.
30702         * m4/getlogin.m4: New file.
30703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30704         HAVE_GETLOGIN.
30705         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30706         HAVE_GETLOGIN.
30707         * modules/getlogin: New file.
30708         * doc/posix-functions/getlogin.texi: Mention the new module.
30709         Reported by John W. Eaton <jwe@gnu.org>.
30711 2010-01-09  Bruno Haible  <bruno@clisp.org>
30713         getlogin_r: Support for native Windows.
30714         * lib/getlogin_r.c: Include <windows.h>
30715         (getlogin_r): Implement for native Windows.
30716         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30717         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30718         via John W. Eaton <jwe@gnu.org>.
30720 2010-01-09  Bruno Haible  <bruno@clisp.org>
30722         getlogin_r: Small fixes.
30723         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30724         succeeds.
30725         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30726         before testing whether getlogin_r is declared. No need to set
30727         HAVE_DECL_GETLOGIN_R to 1.
30728         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30730 2010-01-09  Bruno Haible  <bruno@clisp.org>
30732         * lib/unistd.in.h (getlogin_r): Add comment.
30734 2010-01-09  Bruno Haible  <bruno@clisp.org>
30736         Tests for module 'getlogin_r'.
30737         * modules/getlogin_r-tests: New file.
30738         * tests/test-getlogin_r.c: New file.
30740 2010-01-09  Jim Meyering  <meyering@redhat.com>
30742         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30743         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30744         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30746 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30748         * lib/dup2.c (rpl_dup2): Improve comment.
30750 2010-01-08  Eric Blake  <ebb9@byu.net>
30752         maint.mk: allow packages to add makefile @@ exceptions
30753         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30754         (sc_makefile_check): Rename...
30755         (sc_makefile_at_at_check): ...to this, and use hook.
30757         dup2: work around mingw bug
30758         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30759         Reported by Simon Josefsson.
30761 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30763         glob: Fix C++ compilation.
30764         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30765         C++.
30767 2010-01-07  Bruno Haible  <bruno@clisp.org>
30769         Fix indentation of wctype.in.h, broken since 2007-01-06.
30770         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30772 2010-01-07  Bruno Haible  <bruno@clisp.org>
30774         mbslen: Avoid collision with system function.
30775         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30776         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30777         * m4/mbslen.m4: New file.
30778         * modules/mbslen (Files): Add it.
30779         (configure.ac): Invoke gl_MBSLEN.
30780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30781         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30782         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30783         via Ian Beckwith <ianb@erislabs.net>.
30785 2010-01-07  Bruno Haible  <bruno@clisp.org>
30787         dirent: Document the last fix.
30788         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30790 2010-01-07  Bruno Haible  <bruno@clisp.org>
30792         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30793         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30794         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30795         va_list are defined.
30796         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30797         Reported by Eric Blake.
30799 2010-01-07  Bruno Haible  <bruno@clisp.org>
30801         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30802         * modules/xlist (Depends-on): Add 'list',
30803         * modules/xoset (Depends-on): Add 'oset'.
30804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30806 2010-01-07  Bruno Haible  <bruno@clisp.org>
30808         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30809         * doc/posix-functions/strncasecmp.texi: Likewise.
30811 2010-01-07  Bruno Haible  <bruno@clisp.org>
30813         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30815 2010-01-07  John W. Eaton  <jwe@octave.org>
30817         wctype: allow C++ use
30818         * lib/wctype.in.h: Add extern "C" block for C++.
30820 2010-01-06  Eric Blake  <ebb9@byu.net>
30822         maint.mk: detect incorrect GFDL usage
30823         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30825 2010-01-06  Jim Meyering  <meyering@redhat.com>
30826         and Eric Blake  <ebb9@byu.net>
30828         maint.mk: ignore multi-line copyright in NEWS
30829         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30831 2010-01-06  Eric Blake  <ebb9@byu.net>
30833         select: add missing dependency
30834         * modules/select-tests (Depends-on): Move sockets dependency...
30835         * modules/select (Depends-on): ...here.
30836         Reported by Ian Beckwith.
30838         doc: regenerate INSTALL
30839         * doc/INSTALL: Reflect recent autoconf update.
30840         * doc/INSTALL.ISO: Likewise.
30841         * doc/INSTALL.UTF-8: Likewise.
30843         pread: fix compilation on glibc
30844         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30845         Reported by Ralf Wildenhues.
30847         dirent: fix test failure
30848         * lib/dirent.in.h (includes): Guarantee ino_t.
30849         Reported by Ralf Wildenhues.
30851 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30853         linkat, renameat: avoid bad free
30854         * lib/at-func2.c (at_func2): Fix typo.
30855         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30857 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30859         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30860         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30861         to avoid failure of symlink test later.
30863 2010-01-06  Eric Blake  <ebb9@byu.net>
30865         stdio, unistd: guarantee ssize_t
30866         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30867         2008 are exposed when needed.
30868         * lib/stdio.in.h (includes): Likewise.
30869         Reported by Ralf Wildenhues.
30871 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30873         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30874         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30875         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30877 2010-01-06  Jim Meyering  <meyering@redhat.com>
30879         readtokens: this module *does* require xalloc.h
30880         It uses only functions that were omitted by the old syntax-check rule.
30881         * lib/readtokens.c: Include "xalloc.h" once again.
30882         * modules/readtokens (Depends-on): Add xalloc.
30883         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30885 2010-01-05  Eric Blake  <ebb9@byu.net>
30887         maint: support 'make announcement' from a VPATH build
30888         * top/maint.mk (announcement): Look for correct NEWS file.
30890 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30892         utimens (fdutimens): ignore a negative FD, per contract
30893         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30894         when we have a valid file descriptor.  Otherwise, using a brand
30895         new glibc (with just-patched futimens that now fails with EBADF)
30896         would cause this function to fail with ENOSYS.
30897         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30898         See also http://bugzilla.redhat.com/552320.
30900 2010-01-05  Eric Blake  <ebb9@byu.net>
30902         strcase: document what it provides
30903         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30904         gnulib module.
30905         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30906         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30908 2010-01-05  Jim Meyering  <meyering@redhat.com>
30910         maint: remove useless inclusions of "xalloc.h"
30911         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30912         * lib/readtokens.c: Likewise.
30913         * lib/same.c: Likewise.
30914         * modules/getloadavg (Depends-on): Remove xalloc.
30915         * modules/readtokens: Likewise.
30916         * modules/same: Likewise.
30918         maint.mk: include 4 more function names in alloca.h-checking regexp
30919         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30920         regexp.  Before, we would give a false-positive (saying alloca.h
30921         is included unnecessarily) when the only uses involved omitted symbols.
30923         xalloc.h: use consistent formatting
30924         * lib/xalloc.h: Move declarations to start in the first column.
30926 2010-01-05  Eric Blake  <ebb9@byu.net>
30928         mkdir: avoid xalloc
30929         * lib/mkdir.c (includes): Drop unused header.
30930         Reported by John W. Eaton.
30932 2010-01-04  Jim Meyering  <meyering@redhat.com>
30934         nl_langinfo: avoid configure-time syntax error
30935         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30936         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30937         the empty string.  Don't let that provoke a shell syntax error.
30939         regcomp, regexec, fnmatch: avoid array bounds read error
30940         * lib/regcomp.c (build_equiv_class): From glibc:
30941         Use only the low 24 bits of a findidx return value as an index
30942         into the weights array.  Patch by Ulrich Drepper:
30943         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30944         * lib/regexec.c (check_node_accept_bytes): Likewise.
30945         * lib/fnmatch_loop.c (FCT): Likewise.
30947         regcomp: skip collseq lookup when there are no rules
30948         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30949         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30951         regcomp: recognize ill-formed { } expressions
30952         * lib/regcomp.c (parse_dup_op): From glibc:
30953         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30955         regcomp: fix typo in comment
30956         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30957         s/satisfy/satisfies/.
30959         regcomp: sync from glibc: remove dead store
30960         * lib/regcomp.c (duplicate_node_closure): Remove useless
30961         search_duplicated_node call and dead store.
30963         regcomp: sync from glibc; always use nl_langinfo
30964         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30965         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30966         * modules/regex (Depends-on): Add nl_langinfo.
30968 2010-01-04  Eric Blake  <ebb9@byu.net>
30970         fdopendir: fix configure test
30971         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30973 2010-01-01  Bruno Haible  <bruno@clisp.org>
30975         wchar: Remove unused configure check.
30976         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30978 2010-01-01  Eric Blake  <ebb9@byu.net>
30980         headers: make check of system header explicit
30981         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30982         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30983         ourselves.
30984         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30986         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30987         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30988         internals.
30989         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30990         missing.
30991         Suggested by Bruno Haible.
30993 2010-01-01  Jim Meyering  <meyering@redhat.com>
30995         ChangeLog: tweak to eliminate unnecessary copyright line
30996         * ChangeLog: Remove a copyright line that was mistakenly updated
30997         by today's update-copyright run.  Reported by Eric Blake.
30999         test-update-copyright: don't let envvar setting cause test failure
31000         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31002 2010-01-01  Bruno Haible  <bruno@clisp.org>
31004         localename: Avoid gcc warning.
31005         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31006         function if it is not used.
31008 2010-01-01  Jim Meyering  <meyering@redhat.com>
31010         update nearly all FSF copyright year lists to include 2010
31011         Use the same procedure as for 2009, outlined in
31012         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31014         version-etc: set COPYRIGHT_YEAR to 2010
31015         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31017 2009-12-31  Eric Blake  <ebb9@byu.net>
31019         doc: correct availability of cygwin 1.5.x getopt
31020         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31021         variables.
31022         * doc/posix-functions/opterr.texi (opterr): Likewise.
31023         * doc/posix-functions/optind.texi (optind): Likewise.
31024         * doc/posix-functions/optopt.texi (optopt): Likewise.
31025         * doc/posix-functions/tzname.texi (tzname): Likewise.
31027         openat: update maintainer
31028         * modules/openat (Maintainer): Add myself.
31030         utimens: avoid shadowing warning
31031         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31032         buffers into one, to avoid shadowing, as well as avoiding a
31033         redundant stat.
31034         Reported by Jim Meyering.
31036         test-dup2: avoid compiler warning
31037         * tests/test-dup2.c (is_inheritable): Only define if used.
31039 2010-01-01  Bruno Haible  <bruno@clisp.org>
31041         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31042         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31043         defined, use wctomb instead of wcrtomb.
31045 2010-01-01  Bruno Haible  <bruno@clisp.org>
31047         iconv: Reject native Solaris iconv.
31048         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31049         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31051 2009-12-31  Bruno Haible  <bruno@clisp.org>
31053         * tests/test-signal.c (main): Remove test of 'SIG'.
31055 2009-12-31  Bruno Haible  <bruno@clisp.org>
31057         spawn: Fix incomplete fix.
31058         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31059         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31060         warnings for GNULIB_POSIXCHECK again.
31061         Reported by Eric Blake.
31063 2009-12-31  Bruno Haible  <bruno@clisp.org>
31065         Avoid namespace pollution on glibc systems.
31066         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31067         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31068         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31069         glibc systems.
31071 2009-12-31  Bruno Haible  <bruno@clisp.org>
31073         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31074         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31075         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31076         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31077         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31078         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31079         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31081 2009-12-31  Bruno Haible  <bruno@clisp.org>
31083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31084         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31085         afterwards.
31087 2009-12-31  Bruno Haible  <bruno@clisp.org>
31089         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31090         SYS_UTSNAME_H.
31092 2009-12-31  Bruno Haible  <bruno@clisp.org>
31094         spawn: Fix misapplied patch.
31095         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31096         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31097         warnings for GNULIB_POSIXCHECK.
31099 2009-12-31  Bruno Haible  <bruno@clisp.org>
31101         times: Update after sys_times changed.
31102         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31103         * modules/times (Files): Add it.
31104         (configure.ac): Invoke gl_FUNC_TIMES.
31106 2009-12-31  Bruno Haible  <bruno@clisp.org>
31108         Use AC_C_INLINE where necessary.
31109         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31110         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31111         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31112         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31113         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31114         * m4/mbiter.m4 (gl_MBITER): Likewise.
31115         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31116         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31117         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31118         * modules/u64 (configure.ac): Likewise.
31120 2009-12-31  Bruno Haible  <bruno@clisp.org>
31122         Use AC_C_INLINE instead of module 'inline' where possible.
31123         * modules/inline (Description): Clarify purpose.
31124         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31125         * modules/count-one-bits (Depends-on): Remove inline.
31126         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31127         * modules/openat (Depends-on): Remove inline.
31128         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31129         instead of depending on module 'inline'.
31130         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31131         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31132         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31133         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31134         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31135         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31136         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31137         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31138         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31139         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31140         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31141         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31142         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31143         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31144         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31145         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31146         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31147         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31148         Likewise.
31149         * modules/unictype/property-ascii-hex-digit (Depends-on,
31150         configure.ac): Likewise.
31151         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31152         configure.ac): Likewise.
31153         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31154         configure.ac): Likewise.
31155         * modules/unictype/property-bidi-block-separator (Depends-on,
31156         configure.ac): Likewise.
31157         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31158         configure.ac): Likewise.
31159         * modules/unictype/property-bidi-common-separator (Depends-on,
31160         configure.ac): Likewise.
31161         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31162         Likewise.
31163         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31164         configure.ac): Likewise.
31165         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31166         configure.ac): Likewise.
31167         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31168         configure.ac): Likewise.
31169         * modules/unictype/property-bidi-european-digit (Depends-on,
31170         configure.ac): Likewise.
31171         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31172         configure.ac): Likewise.
31173         * modules/unictype/property-bidi-left-to-right (Depends-on,
31174         configure.ac): Likewise.
31175         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31176         configure.ac): Likewise.
31177         * modules/unictype/property-bidi-other-neutral (Depends-on,
31178         configure.ac): Likewise.
31179         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31180         Likewise.
31181         * modules/unictype/property-bidi-segment-separator (Depends-on,
31182         configure.ac): Likewise.
31183         * modules/unictype/property-bidi-whitespace (Depends-on,
31184         configure.ac): Likewise.
31185         * modules/unictype/property-combining (Depends-on, configure.ac):
31186         Likewise.
31187         * modules/unictype/property-composite (Depends-on, configure.ac):
31188         Likewise.
31189         * modules/unictype/property-currency-symbol (Depends-on,
31190         configure.ac): Likewise.
31191         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31192         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31193         Likewise.
31194         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31195         configure.ac): Likewise.
31196         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31197         Likewise.
31198         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31199         Likewise.
31200         * modules/unictype/property-extender (Depends-on, configure.ac):
31201         Likewise.
31202         * modules/unictype/property-format-control (Depends-on, configure.ac):
31203         Likewise.
31204         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31205         Likewise.
31206         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31207         Likewise.
31208         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31209         Likewise.
31210         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31211         Likewise.
31212         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31213         Likewise.
31214         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31215         Likewise.
31216         * modules/unictype/property-id-start (Depends-on, configure.ac):
31217         Likewise.
31218         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31219         Likewise.
31220         * modules/unictype/property-ids-binary-operator (Depends-on,
31221         configure.ac): Likewise.
31222         * modules/unictype/property-ids-trinary-operator (Depends-on,
31223         configure.ac): Likewise.
31224         * modules/unictype/property-ignorable-control (Depends-on,
31225         configure.ac): Likewise.
31226         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31227         Likewise.
31228         * modules/unictype/property-join-control (Depends-on, configure.ac):
31229         Likewise.
31230         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31231         Likewise.
31232         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31233         Likewise.
31234         * modules/unictype/property-logical-order-exception (Depends-on,
31235         configure.ac): Likewise.
31236         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31237         Likewise.
31238         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31239         * modules/unictype/property-non-break (Depends-on, configure.ac):
31240         Likewise.
31241         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31242         Likewise.
31243         * modules/unictype/property-numeric (Depends-on, configure.ac):
31244         Likewise.
31245         * modules/unictype/property-other-alphabetic (Depends-on,
31246         configure.ac): Likewise.
31247         * modules/unictype/property-other-default-ignorable-code-point
31248         (Depends-on, configure.ac): Likewise.
31249         * modules/unictype/property-other-grapheme-extend (Depends-on,
31250         configure.ac): Likewise.
31251         * modules/unictype/property-other-id-continue (Depends-on,
31252         configure.ac): Likewise.
31253         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31254         Likewise.
31255         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31256         Likewise.
31257         * modules/unictype/property-other-math (Depends-on, configure.ac):
31258         Likewise.
31259         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31260         Likewise.
31261         * modules/unictype/property-paired-punctuation (Depends-on,
31262         configure.ac): Likewise.
31263         * modules/unictype/property-paragraph-separator (Depends-on,
31264         configure.ac): Likewise.
31265         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31266         Likewise.
31267         * modules/unictype/property-pattern-white-space (Depends-on,
31268         configure.ac): Likewise.
31269         * modules/unictype/property-private-use (Depends-on, configure.ac):
31270         Likewise.
31271         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31272         Likewise.
31273         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31274         Likewise.
31275         * modules/unictype/property-radical (Depends-on, configure.ac):
31276         Likewise.
31277         * modules/unictype/property-sentence-terminal (Depends-on,
31278         configure.ac): Likewise.
31279         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31280         Likewise.
31281         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31282         * modules/unictype/property-terminal-punctuation (Depends-on,
31283         configure.ac): Likewise.
31284         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31285         Likewise.
31286         * modules/unictype/property-unassigned-code-value (Depends-on,
31287         configure.ac): Likewise.
31288         * modules/unictype/property-unified-ideograph (Depends-on,
31289         configure.ac): Likewise.
31290         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31291         Likewise.
31292         * modules/unictype/property-variation-selector (Depends-on,
31293         configure.ac): Likewise.
31294         * modules/unictype/property-white-space (Depends-on, configure.ac):
31295         Likewise.
31296         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31297         Likewise.
31298         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31299         Likewise.
31300         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31301         Likewise.
31302         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31303         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31304         Likewise.
31306 2009-12-31  Bruno Haible  <bruno@clisp.org>
31308         Remove unnecessary AC_C_INLINE invocation.
31309         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31310         since 2009-08-21.
31312 2009-12-31  Jim Meyering  <meyering@redhat.com>
31314         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31315         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31316         With this change, we can all remove the gpg_key_ID = ... definition
31317         from our respective cfg.mk files.
31319         maint.mk: create announcement template in ~/, not in /tmp
31320         * top/maint.mk (emit_upload_commands): Adjust.
31321         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31322         Remove temporary file, .ci-msg.
31324 2009-12-31  Eric Blake  <ebb9@byu.net>
31326         link-warning: always build headers with link warnings
31327         * modules/arpa_inet (Makefile.am): Always build replacement
31328         header.
31329         * modules/ctype (Makefile.am): Likewise.
31330         * modules/dirent (Makefile.am): Likewise.
31331         * modules/inttypes (Makefile.am): Likewise.
31332         * modules/langinfo (Makefile.am): Likewise.
31333         * modules/locale (Makefile.am): Likewise.
31334         * modules/spawn (Makefile.am): Likewise.
31335         * modules/sys_file (Makefile.am): Likewise.
31336         * modules/sys_ioctl (Makefile.am): Likewise.
31337         * modules/sys_select (Makefile.am): Likewise.
31338         * modules/sys_socket (Makefile.am): Likewise.
31339         * modules/sys_times (Makefile.am): Likewise.
31340         * modules/sys_utsname (Makefile.am): Likewise.
31341         * modules/sys_wait (Makefile.am): Likewise.
31342         * modules/wchar (Makefile.am): Likewise.
31343         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31344         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31345         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31346         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31347         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31348         Likewise.
31349         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31350         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31351         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31352         Likewise.
31353         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31354         Likewise.
31355         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31356         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31357         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31358         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31359         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31360         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31361         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31362         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31363         (gl_WCHAR_H_DEFAULTS): Likewise.
31365 2009-12-31  Eric Blake  <ebb9@byu.net>
31367         signal, spawn: use link warnings
31368         * lib/signal.in.h (sigset_t): Make unconditional.
31369         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31370         (sigpending, sigprocmask, sigaction): Add link warnings.
31371         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31372         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31373         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31374         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31375         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31376         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31377         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31378         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31379         (posix_spawn_file_actions_destroy)
31380         (posix_spawn_file_actions_addopen)
31381         (posix_spawn_file_actions_addclose)
31382         (posix_spawn_file_actions_adddup2): Likewise.
31383         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31384         * tests/test-signal.c (main): Enhance test.
31386         spawn: improve wrapper support
31387         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31388         (gl_SPAWN_H_DEFAULTS): New defaults.
31389         * modules/spawn (Makefile.am): Substitute them.
31390         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31391         Only declare if missing or broken.
31393         sys_times, sys_utsname: use include_next
31394         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31395         header.
31396         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31397         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31398         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31399         * modules/sys_times (Depends-on): Add include_next.
31400         (Makefile.am): Substitute additional values.
31401         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31402         * lib/sys_times.in.h (includes): Include native header, if
31403         available.
31404         * lib/sys_utsname.in.h (includes): Likewise.
31405         * tests/test-sys_times.c (main): Enhance test.
31407         fdutimensat: revert prior patch
31408         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31409         utimens.h.
31410         Reported by Bruno Haible.
31412 2009-12-30  Eric Blake  <ebb9@byu.net>
31414         sys_wait: drop link-warning dependency
31415         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31416         link-warning efforts.
31417         * lib/sys_wait.in.h: Likewise.
31419         fdutimensat: remove bogus dependency
31420         * modules/fdutimensat (Depends-on): Drop inline.
31422         unistd: fix typo
31423         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31425 2009-12-30  Bruno Haible  <bruno@clisp.org>
31427         Fix compilation error with Solaris cc.
31428         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31429         * lib/unicase/u16-is-invariant.c: Likewise.
31430         * lib/unicase/u32-is-invariant.c: Likewise.
31431         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31433 2009-12-30  Bruno Haible  <bruno@clisp.org>
31435         Fix test crash.
31436         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31437         locales.
31438         Reported by Simon Josefsson <simon@josefsson.org>.
31440 2009-12-30  Bruno Haible  <bruno@clisp.org>
31442         Fix compilation error on most platforms.
31443         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31444         Reported by Simon Josefsson <simon@josefsson.org>
31445         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31447 2009-12-30  Eric Blake  <ebb9@byu.net>
31449         futimens, utimensat: work around ntfs-3g bug
31450         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31451         a ctime bug is present, and expand workaround to cover ntfs-3g.
31452         * lib/utimens.c (fdutimens, lutimens): Likewise.
31453         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31454         (validate_timespec): Adjust return value.
31455         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31456         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31457         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31459 2009-12-29  Eric Blake  <ebb9@byu.net>
31461         link-warning: make usage consistent
31462         * modules/ctype (Depends-on): Add link-warning.
31463         (Makefile.am): Update rules accordingly.
31464         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31465         * modules/locale (Depends-on, Makefile.am): Likewise.
31466         * modules/sys_file (Makefile.am): Likewise.
31467         * modules/getopt-posix (Makefile.am): Delete unused link warning
31468         efforts.
31469         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31470         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31471         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31472         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31474         stdio: remove unused variables
31475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31476         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31477         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31479         tests: test more substitute headers
31480         * modules/ctype-tests: New file.
31481         * modules/dirent-tests: Likewise.
31482         * modules/spawn-tests: Likewise.
31483         * modules/sys_file-tests: Likewise.
31484         * modules/sys_ioctl-tests: Likewise.
31485         * modules/sys_wait-tests: Likewise.
31486         * tests/test-ctype.c: Likewise.
31487         * tests/test-dirent.c: Likewise.
31488         * tests/test-spawn.c: Likewise.
31489         * tests/test-sys_file.c: Likewise.
31490         * tests/test-sys_ioctl.c: Likewise.
31491         * tests/test-sys_wait.c: Likewise.
31492         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31493         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31494         whether or not flock is in use.
31496         tests: remove License section from module
31497         * modules/arpa_inet-tests: Remove unneeded section.
31498         * modules/byteswap-tests: Likewise.
31499         * modules/ceilf-tests: Likewise.
31500         * modules/ceill-tests: Likewise.
31501         * modules/crypto/des-tests: Likewise.
31502         * modules/crypto/gc-arcfour-tests: Likewise.
31503         * modules/crypto/gc-arctwo-tests: Likewise.
31504         * modules/crypto/gc-des-tests: Likewise.
31505         * modules/crypto/gc-hmac-md5-tests: Likewise.
31506         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31507         * modules/crypto/gc-md2-tests: Likewise.
31508         * modules/crypto/gc-md4-tests: Likewise.
31509         * modules/crypto/gc-md5-tests: Likewise.
31510         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31511         * modules/crypto/gc-rijndael-tests: Likewise.
31512         * modules/crypto/gc-sha1-tests: Likewise.
31513         * modules/crypto/gc-tests: Likewise.
31514         * modules/crypto/md2-tests: Likewise.
31515         * modules/crypto/md4-tests: Likewise.
31516         * modules/fcntl-h-tests: Likewise.
31517         * modules/floorf-tests: Likewise.
31518         * modules/floorl-tests: Likewise.
31519         * modules/frexp-nolibm-tests: Likewise.
31520         * modules/frexp-tests: Likewise.
31521         * modules/frexpl-nolibm-tests: Likewise.
31522         * modules/frexpl-tests: Likewise.
31523         * modules/getaddrinfo-tests: Likewise.
31524         * modules/inttypes-tests: Likewise.
31525         * modules/isfinite-tests: Likewise.
31526         * modules/isinf-tests: Likewise.
31527         * modules/ldexpl-tests: Likewise.
31528         * modules/locale-tests: Likewise.
31529         * modules/math-tests: Likewise.
31530         * modules/netdb-tests: Likewise.
31531         * modules/netinet_in-tests: Likewise.
31532         * modules/printf-frexp-tests: Likewise.
31533         * modules/printf-frexpl-tests: Likewise.
31534         * modules/priv-set-tests: Likewise.
31535         * modules/random_r-tests: Likewise.
31536         * modules/round-tests: Likewise.
31537         * modules/roundf-tests: Likewise.
31538         * modules/roundl-tests: Likewise.
31539         * modules/search-tests: Likewise.
31540         * modules/select-tests: Likewise.
31541         * modules/signal-tests: Likewise.
31542         * modules/stdbool-tests: Likewise.
31543         * modules/stddef-tests: Likewise.
31544         * modules/stdint-tests: Likewise.
31545         * modules/stdio-tests: Likewise.
31546         * modules/stdlib-tests: Likewise.
31547         * modules/string-tests: Likewise.
31548         * modules/strings-tests: Likewise.
31549         * modules/sys_select-tests: Likewise.
31550         * modules/sys_socket-tests: Likewise.
31551         * modules/sys_stat-tests: Likewise.
31552         * modules/sys_time-tests: Likewise.
31553         * modules/sys_utsname-tests: Likewise.
31554         * modules/sysexits-tests: Likewise.
31555         * modules/time-tests: Likewise.
31556         * modules/trunc-tests: Likewise.
31557         * modules/truncf-tests: Likewise.
31558         * modules/truncl-tests: Likewise.
31559         * modules/tsearch-tests: Likewise.
31560         * modules/unistd-tests: Likewise.
31561         * modules/wchar-tests: Likewise.
31562         * modules/wctype-tests: Likewise.
31564         tests: fix license on several tests
31565         * tests/test-des.c: Update to GPLv3+.
31566         * tests/test-flock.c: Likewise.
31567         * tests/test-fsync.c: Likewise.
31568         * tests/test-futimens.h: Likewise.
31569         * tests/test-gc-arcfour.c: Likewise.
31570         * tests/test-gc-arctwo.c: Likewise.
31571         * tests/test-gc-des.c: Likewise.
31572         * tests/test-gc-hmac-md5.c: Likewise.
31573         * tests/test-gc-hmac-sha1.c: Likewise.
31574         * tests/test-gc-md2.c: Likewise.
31575         * tests/test-gc-md4.c: Likewise.
31576         * tests/test-gc-md5.c: Likewise.
31577         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31578         * tests/test-gc-rijndael.c: Likewise.
31579         * tests/test-gc-sha1.c: Likewise.
31580         * tests/test-gc.c: Likewise.
31581         * tests/test-getcwd.c: Likewise.
31582         * tests/test-link.c: Likewise.
31583         * tests/test-link.h: Likewise.
31584         * tests/test-lutimens.h: Likewise.
31585         * tests/test-md2.c: Likewise.
31586         * tests/test-md4.c: Likewise.
31587         * tests/test-mkdir.h: Likewise.
31588         * tests/test-rename.c: Likewise.
31589         * tests/test-rename.h: Likewise.
31590         * tests/test-safe-alloc.c: Likewise.
31591         * tests/test-utimens-common.h: Likewise.
31592         * tests/test-utimens.h: Likewise.
31594         maint: sync license texts
31595         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31596         * doc/gpl-3.0.texi: Revert copyright year update.
31597         * doc/lgpl-3.0.texi: Likewise.
31599 2009-12-29  Jim Meyering  <meyering@redhat.com>
31601         update nearly all FSF copyright year lists to include 2009
31602         The files named by the following are exempted:
31603             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31604               test -f "$dst" && { echo "$dst"; continue; }
31605               test -d "$dst" || continue
31606               echo "$dst"/$(basename "$src")
31607             done > exempt
31608             git ls-files tests/unictype >> exempt
31609         In the remaining files, convert to all-interval notation if
31610         - there is already at least one year interval like 2000-2003
31611         - the file is maintained by me
31612         - the file is in lib/uni*/, where that style already prevails
31613         Otherwise, use update-copyright's default.
31615 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31616         and Eric Blake  <ebb9@byu.net>
31618         tests: don't require debug system() to pass
31619         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31620         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31621         * tests/test-unlink.h (test_unlink_func): Likewise.
31622         * tests/test-fstatat.c (main): ...into callers.
31623         * tests/test-lstat.c (main): Likewise.
31624         * tests/test-rmdir.c (main): Likewise.
31625         * tests/test-unlink.c (main): Likewise.
31626         * tests/test-unlinkat.c (main): Likewise.
31627         * tests/test-areadlink-with-size.c (main): Don't require a
31628         debug-only system call to pass, aiding cross-testing to mingw.
31629         * tests/test-areadlink.c (main): Likewise.
31630         * tests/test-areadlinkat-with-size.c (main): Likewise.
31631         * tests/test-areadlinkat.c (main): Likewise.
31632         * tests/test-canonicalize-lgpl.c (main): Likewise.
31633         * tests/test-canonicalize.c (main): Likewise.
31634         * tests/test-chown.c (main): Likewise.
31635         * tests/test-fchownat.c (main): Likewise.
31636         * tests/test-lchown.c (main): Likewise.
31637         * tests/test-fdutimensat.c (main): Likewise.
31638         * tests/test-futimens.c (main): Likewise.
31639         * tests/test-link.c (main): Likewise.
31640         * tests/test-linkat.c (main): Likewise.
31641         * tests/test-mkdir.c (main): Likewise.
31642         * tests/test-mkdirat.c (main): Likewise.
31643         * tests/test-mkfifo.c (main): Likewise.
31644         * tests/test-mkfifoat.c (main): Likewise.
31645         * tests/test-mknod.c (main): Likewise.
31646         * tests/test-readlink.c (main): Likewise.
31647         * tests/test-remove.c (main): Likewise.
31648         * tests/test-rename.c (main): Likewise.
31649         * tests/test-renameat.c (main): Likewise.
31650         * tests/test-symlink.c (main): Likewise.
31651         * tests/test-symlinkat.c (main): Likewise.
31652         * tests/test-utimens.c (main): Likewise.
31653         * tests/test-utimensat.c (main): Likewise.
31655 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31657         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31658         on $(UNUSED_PARAMETER_H) to avoid build failure.
31660 2009-12-28  Jim Meyering  <meyering@redhat.com>
31662         update-copyright: you may specify a max. line length other than 72
31663         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31665         maint: use consistent FSF copyright line syntax
31666         * lib/posixtm.c: Add missing comma in FSF copyright line.
31667         * lib/posixtm.h: Likewise.
31668         * lib/getugroups.c: Add missing ", Inc.".
31670         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31671         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31672         FSF copyright line.  Remove trailing blanks.
31674 2009-12-28  Eric Blake  <ebb9@byu.net>
31676         test-dup2: reduce dependencies
31677         * modules/cloexec (Configure.ac): Set witness.
31678         * modules/dup2-tests (Depends-on): Drop cloexec.
31679         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31680         not present.
31681         Suggested by Bruno Haible.
31683 2009-12-26  Bruno Haible  <bruno@clisp.org>
31685         Remove an unneeded dependency.
31686         * modules/fseterr (Depends-on): Remove dup2.
31688 2009-12-26  Eric Blake  <ebb9@byu.net>
31690         tests: use macros.h in more places
31691         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31692         (ASSERT_STREAM): Provide default of stderr.
31693         * tests/test-dirent-safer.c: Include macros.h, using alternate
31694         stream for assertions.
31695         * tests/test-dup-safer.c: Likewise.
31696         * tests/test-freopen-safer.c: Likewise.
31697         * tests/test-getopt.c: Likewise.
31698         * tests/test-openat-safer.c: Likewise.
31699         * tests/test-pipe.c: Likewise.
31700         * tests/test-popen-safer.c: Likewise.
31701         * modules/dirent-safer-tests (Files): Include macros.h.
31702         * modules/unistd-safer-tests (Files): Likewise.
31703         * modules/freopen-safer-tests (Files): Likewise.
31704         * modules/getopt-posix-tests (Files): Likewise.
31705         * modules/openat-safer-tests (Files): Likewise.
31706         * modules/pipe-tests (Files): Likewise.
31708 2009-12-26  Bruno Haible  <bruno@clisp.org>
31710         javacomp: Portability fix.
31711         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31712         that it also works on Solaris.
31714 2009-12-26  Bruno Haible  <bruno@clisp.org>
31716         localename: Fix storage allocation of gl_locale_name_thread's result.
31717         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31718         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31719         all platforms that have 'uselocale'.
31720         (gl_locale_name_thread_unsafe): New function, extracted from
31721         gl_locale_name_thread.
31722         (gl_locale_name_thread): Call struniq on all platforms that have
31723         'uselocale'.
31724         * tests/test-localename.c (test_locale_name_thread): Check that the
31725         resulting strings are permanently allocated.
31726         * modules/localename-tests (Depends-on): Add strdup.
31728 2009-12-26  Bruno Haible  <bruno@clisp.org>
31730         * tests/test-localename.c (categories): Fill in the strings.
31732 2009-12-26  Jim Meyering  <meyering@redhat.com>
31734         isdir: complete the removal of m4/isdir.m4
31735         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31737         isdir: clean up, since at least grep still uses it
31738         * lib/isdir.c: Include "isdir.h".
31739         (S_ISDIR): Remove now-unneeded definition.
31740         * modules/isdir (Files): Add lib/isdir.h.
31741         * lib/isdir.h: New file, with declaration.
31742         * m4/isdir.m4: Remove file -- unneeded.
31744 2009-12-25  Bruno Haible  <bruno@clisp.org>
31746         selinux-h: Make generated .h files standalone.
31747         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31748         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31749         * lib/se-selinux.in.h: Likewise.
31750         * modules/selinux-h (Depends-on): Add unused-parameter.
31751         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31752         selinux/selinux.h and selinux/context.h.
31753         Suggested by Eric Blake.
31755 2009-12-25  Bruno Haible  <bruno@clisp.org>
31757         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31758         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31759         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31760         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31761         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31763 2009-12-24  Bruno Haible  <bruno@clisp.org>
31765         openat: Fix warning.
31766         * lib/openat-proc.c: Include <unistd.h>.
31768 2009-12-24  Bruno Haible  <bruno@clisp.org>
31770         New module 'unused-parameter'.
31771         * build-aux/unused-parameter.h: New file, extracted from earlier
31772         gnulib-common.m4.
31773         * modules/unused-parameter: New file.
31774         * lib/unistr.h: Include unused-parameter.h.
31775         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31776         _GL_UNUSED.
31777         * modules/unistr/base (Depends-on): Add unused-parameter.
31779 2009-12-24  Bruno Haible  <bruno@clisp.org>
31781         Add missing dependencies to 'extensions' module.
31782         * m4/extensions.m4: Add comment.
31783         * modules/accept4 (Depends-on): Add extensions.
31784         * modules/dup3 (Depends-on): Likewise.
31785         * modules/fcntl (Depends-on): Likewise.
31786         * modules/futimens (Depends-on): Likewise.
31787         * modules/mknod (Depends-on): Likewise.
31788         * modules/pipe2 (Depends-on): Likewise.
31789         * modules/stat-time (Depends-on): Likewise.
31790         * modules/strcasestr-simple (Depends-on): Likewise.
31791         * modules/strsignal (Depends-on): Likewise.
31792         * modules/utimensat (Depends-on): Likewise.
31793         * modules/localcharset (Depends-on): Likewise. Needed because of
31794         gl_FCNTL_O_FLAGS.
31795         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31796         AC_TYPE_MBSTATE_T.
31797         * modules/wcsnrtombs (Depends-on): Likewise.
31798         * modules/wcsrtombs (Depends-on): Likewise.
31800 2009-12-24  Bruno Haible  <bruno@clisp.org>
31802         binary-io: Avoid gcc warning due to SET_BINARY.
31803         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31804         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31806 2009-12-24  Bruno Haible  <bruno@clisp.org>
31808         Avoid future namespace pollution on glibc systems.
31809         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31810         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31811         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31812         glibc systems.
31814 2009-12-24  Bruno Haible  <bruno@clisp.org>
31816         Refactor common macros used in tests.
31817         * tests/macros.h: New file.
31818         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31819         and/or <stdlib.h>, if appropriate.
31820         (ASSERT, SIZEOF): Remove macros.
31821         * tests/test-areadlink-with-size.c: Likewise.
31822         * tests/test-areadlinkat.c: Likewise.
31823         * tests/test-areadlinkat-with-size.c: Likewise.
31824         * tests/test-argmatch.c: Likewise.
31825         * tests/test-argv-iter.c: Likewise.
31826         * tests/test-array-mergesort.c: Likewise.
31827         * tests/test-array_list.c: Likewise.
31828         * tests/test-array_oset.c: Likewise.
31829         * tests/test-avltree_list.c: Likewise.
31830         * tests/test-avltree_oset.c: Likewise.
31831         * tests/test-avltreehash_list.c: Likewise.
31832         * tests/test-base64.c: Likewise.
31833         * tests/test-binary-io.c: Likewise.
31834         * tests/test-bitrotate.c: Likewise.
31835         * tests/test-btowc.c: Likewise.
31836         * tests/test-byteswap.c: Likewise.
31837         * tests/test-c-ctype.c: Likewise.
31838         * tests/test-c-stack.c: Likewise.
31839         * tests/test-c-strcasecmp.c: Likewise.
31840         * tests/test-c-strcasestr.c: Likewise.
31841         * tests/test-c-strncasecmp.c: Likewise.
31842         * tests/test-c-strstr.c: Likewise.
31843         * tests/test-canonicalize-lgpl.c: Likewise.
31844         * tests/test-canonicalize.c: Likewise.
31845         * tests/test-carray_list.c: Likewise.
31846         * tests/test-ceilf1.c: Likewise.
31847         * tests/test-ceilf2.c: Likewise.
31848         * tests/test-ceill.c: Likewise.
31849         * tests/test-chown.c: Likewise.
31850         * tests/test-cloexec.c: Likewise.
31851         * tests/test-copy-acl.c: Likewise.
31852         * tests/test-copy-file.c: Likewise.
31853         * tests/test-count-one-bits.c: Likewise.
31854         * tests/test-dprintf-posix.c: Likewise.
31855         * tests/test-dup2.c: Likewise.
31856         * tests/test-dup3.c: Likewise.
31857         * tests/test-duplocale.c: Likewise.
31858         * tests/test-fbufmode.c: Likewise.
31859         * tests/test-fchdir.c: Likewise.
31860         * tests/test-fchownat.c: Likewise.
31861         * tests/test-fcntl-safer.c: Likewise.
31862         * tests/test-fcntl.c: Likewise.
31863         * tests/test-fdopendir.c: Likewise.
31864         * tests/test-fdutimensat.c: Likewise.
31865         * tests/test-fflush2.c: Likewise.
31866         * tests/test-file-has-acl.c: Likewise.
31867         * tests/test-filevercmp.c: Likewise.
31868         * tests/test-flock.c: Likewise.
31869         * tests/test-floorf1.c: Likewise.
31870         * tests/test-floorf2.c: Likewise.
31871         * tests/test-floorl.c: Likewise.
31872         * tests/test-fnmatch.c: Likewise.
31873         * tests/test-fopen.h: Likewise.
31874         * tests/test-fpending.c: Likewise.
31875         * tests/test-fprintf-posix.c: Likewise.
31876         * tests/test-fpurge.c: Likewise.
31877         * tests/test-freadable.c: Likewise.
31878         * tests/test-freadahead.c: Likewise.
31879         * tests/test-freading.c: Likewise.
31880         * tests/test-freadptr.c: Likewise.
31881         * tests/test-freadptr2.c: Likewise.
31882         * tests/test-freadseek.c: Likewise.
31883         * tests/test-freopen.c: Likewise.
31884         * tests/test-frexp.c: Likewise.
31885         * tests/test-frexpl.c: Likewise.
31886         * tests/test-fseek.c: Likewise.
31887         * tests/test-fseeko.c: Likewise.
31888         * tests/test-fstatat.c: Likewise.
31889         * tests/test-fstrcmp.c: Likewise.
31890         * tests/test-fsync.c: Likewise.
31891         * tests/test-ftell.c: Likewise.
31892         * tests/test-ftello.c: Likewise.
31893         * tests/test-func.c: Likewise.
31894         * tests/test-futimens.c: Likewise.
31895         * tests/test-fwritable.c: Likewise.
31896         * tests/test-fwriting.c: Likewise.
31897         * tests/test-getcwd.c: Likewise.
31898         * tests/test-getdate.c: Likewise.
31899         * tests/test-getdelim.c: Likewise.
31900         * tests/test-getdtablesize.c: Likewise.
31901         * tests/test-getgroups.c: Likewise.
31902         * tests/test-getline.c: Likewise.
31903         * tests/test-getndelim2.c: Likewise.
31904         * tests/test-glob.c: Likewise.
31905         * tests/test-hash.c: Likewise.
31906         * tests/test-i-ring.c: Likewise.
31907         * tests/test-iconv-utf.c: Likewise.
31908         * tests/test-iconv.c: Likewise.
31909         * tests/test-idpriv-drop.c: Likewise.
31910         * tests/test-idpriv-droptemp.c: Likewise.
31911         * tests/test-inet_ntop.c: Likewise.
31912         * tests/test-inet_pton.c: Likewise.
31913         * tests/test-isblank.c: Likewise.
31914         * tests/test-isfinite.c: Likewise.
31915         * tests/test-isinf.c: Likewise.
31916         * tests/test-isnan.c: Likewise.
31917         * tests/test-isnand.h: Likewise.
31918         * tests/test-isnanf.h: Likewise.
31919         * tests/test-isnanl.h: Likewise.
31920         * tests/test-lchown.c: Likewise.
31921         * tests/test-ldexpl.c: Likewise.
31922         * tests/test-link.c: Likewise.
31923         * tests/test-linkat.c: Likewise.
31924         * tests/test-linked_list.c: Likewise.
31925         * tests/test-linkedhash_list.c: Likewise.
31926         * tests/test-localename.c: Likewise.
31927         * tests/test-lseek.c: Likewise.
31928         * tests/test-lstat.c: Likewise.
31929         * tests/test-mbmemcasecmp.c: Likewise.
31930         * tests/test-mbmemcasecoll.c: Likewise.
31931         * tests/test-mbrtowc.c: Likewise.
31932         * tests/test-mbscasecmp.c: Likewise.
31933         * tests/test-mbscasestr1.c: Likewise.
31934         * tests/test-mbscasestr2.c: Likewise.
31935         * tests/test-mbscasestr3.c: Likewise.
31936         * tests/test-mbscasestr4.c: Likewise.
31937         * tests/test-mbschr.c: Likewise.
31938         * tests/test-mbscspn.c: Likewise.
31939         * tests/test-mbsinit.c: Likewise.
31940         * tests/test-mbsncasecmp.c: Likewise.
31941         * tests/test-mbsnrtowcs.c: Likewise.
31942         * tests/test-mbspbrk.c: Likewise.
31943         * tests/test-mbspcasecmp.c: Likewise.
31944         * tests/test-mbsrchr.c: Likewise.
31945         * tests/test-mbsrtowcs.c: Likewise.
31946         * tests/test-mbsspn.c: Likewise.
31947         * tests/test-mbsstr1.c: Likewise.
31948         * tests/test-mbsstr2.c: Likewise.
31949         * tests/test-mbsstr3.c: Likewise.
31950         * tests/test-memchr.c: Likewise.
31951         * tests/test-memchr2.c: Likewise.
31952         * tests/test-memcmp.c: Likewise.
31953         * tests/test-memmem.c: Likewise.
31954         * tests/test-memrchr.c: Likewise.
31955         * tests/test-mkdir.c: Likewise.
31956         * tests/test-mkdirat.c: Likewise.
31957         * tests/test-mkfifo.c: Likewise.
31958         * tests/test-mkfifoat.c: Likewise.
31959         * tests/test-mknod.c: Likewise.
31960         * tests/test-nanosleep.c: Likewise.
31961         * tests/test-nl_langinfo.c: Likewise.
31962         * tests/test-obstack-printf.c: Likewise.
31963         * tests/test-open.c: Likewise.
31964         * tests/test-openat.c: Likewise.
31965         * tests/test-pipe-filter-gi1.c: Likewise.
31966         * tests/test-pipe-filter-gi2-main.c: Likewise.
31967         * tests/test-pipe-filter-ii1.c: Likewise.
31968         * tests/test-pipe-filter-ii2-main.c: Likewise.
31969         * tests/test-pipe2.c: Likewise.
31970         * tests/test-popen.h: Likewise.
31971         * tests/test-posixtm.c: Likewise.
31972         * tests/test-pread.c: Likewise.
31973         * tests/test-printf-frexp.c: Likewise.
31974         * tests/test-printf-frexpl.c: Likewise.
31975         * tests/test-printf-posix.c: Likewise.
31976         * tests/test-priv-set.c: Likewise.
31977         * tests/test-quotearg.c: Likewise.
31978         * tests/test-random_r.c: Likewise.
31979         * tests/test-rawmemchr.c: Likewise.
31980         * tests/test-rbtree_list.c: Likewise.
31981         * tests/test-rbtree_oset.c: Likewise.
31982         * tests/test-rbtreehash_list.c: Likewise.
31983         * tests/test-readlink.c: Likewise.
31984         * tests/test-remove.c: Likewise.
31985         * tests/test-rename.c: Likewise.
31986         * tests/test-renameat.c: Likewise.
31987         * tests/test-rmdir.c: Likewise.
31988         * tests/test-round1.c: Likewise.
31989         * tests/test-roundf1.c: Likewise.
31990         * tests/test-roundl.c: Likewise.
31991         * tests/test-safe-alloc.c: Likewise.
31992         * tests/test-sameacls.c: Likewise.
31993         * tests/test-set-mode-acl.c: Likewise.
31994         * tests/test-setenv.c: Likewise.
31995         * tests/test-sigaction.c: Likewise.
31996         * tests/test-signbit.c: Likewise.
31997         * tests/test-sleep.c: Likewise.
31998         * tests/test-snprintf-posix.c: Likewise.
31999         * tests/test-snprintf.c: Likewise.
32000         * tests/test-sprintf-posix.c: Likewise.
32001         * tests/test-stat-time.c: Likewise.
32002         * tests/test-stat.c: Likewise.
32003         * tests/test-strcasestr.c: Likewise.
32004         * tests/test-strchrnul.c: Likewise.
32005         * tests/test-strerror.c: Likewise.
32006         * tests/test-striconv.c: Likewise.
32007         * tests/test-striconveh.c: Likewise.
32008         * tests/test-striconveha.c: Likewise.
32009         * tests/test-strsignal.c: Likewise.
32010         * tests/test-strstr.c: Likewise.
32011         * tests/test-strtod.c: Likewise.
32012         * tests/test-strverscmp.c: Likewise.
32013         * tests/test-symlink.c: Likewise.
32014         * tests/test-symlinkat.c: Likewise.
32015         * tests/test-trunc1.c: Likewise.
32016         * tests/test-trunc2.c: Likewise.
32017         * tests/test-truncf1.c: Likewise.
32018         * tests/test-truncf2.c: Likewise.
32019         * tests/test-truncl.c: Likewise.
32020         * tests/test-uname.c: Likewise.
32021         * tests/test-unlink.c: Likewise.
32022         * tests/test-unlinkat.c: Likewise.
32023         * tests/test-unsetenv.c: Likewise.
32024         * tests/test-usleep.c: Likewise.
32025         * tests/test-utimens.c: Likewise.
32026         * tests/test-utimensat.c: Likewise.
32027         * tests/test-vasnprintf-posix.c: Likewise.
32028         * tests/test-vasnprintf-posix2.c: Likewise.
32029         * tests/test-vasnprintf.c: Likewise.
32030         * tests/test-vasprintf-posix.c: Likewise.
32031         * tests/test-vasprintf.c: Likewise.
32032         * tests/test-vdprintf-posix.c: Likewise.
32033         * tests/test-vfprintf-posix.c: Likewise.
32034         * tests/test-vprintf-posix.c: Likewise.
32035         * tests/test-vsnprintf-posix.c: Likewise.
32036         * tests/test-vsnprintf.c: Likewise.
32037         * tests/test-vsprintf-posix.c: Likewise.
32038         * tests/test-wcrtomb.c: Likewise.
32039         * tests/test-wcsnrtombs.c: Likewise.
32040         * tests/test-wcsrtombs.c: Likewise.
32041         * tests/test-wctype.c: Likewise.
32042         * tests/test-wcwidth.c: Likewise.
32043         * tests/test-xfprintf-posix.c: Likewise.
32044         * tests/test-xmemdup0.c: Likewise.
32045         * tests/test-xprintf-posix.c: Likewise.
32046         * tests/test-xvasprintf.c: Likewise.
32047         * tests/unicase/test-locale-language.c: Likewise.
32048         * tests/unicase/test-mapping-part1.h: Likewise.
32049         * tests/unicase/test-predicate-part1.h: Likewise.
32050         * tests/unicase/test-u8-casecmp.c: Likewise.
32051         * tests/unicase/test-u8-casecoll.c: Likewise.
32052         * tests/unicase/test-u8-casefold.c: Likewise.
32053         * tests/unicase/test-u8-is-cased.c: Likewise.
32054         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32055         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32056         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32057         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32058         * tests/unicase/test-u8-tolower.c: Likewise.
32059         * tests/unicase/test-u8-totitle.c: Likewise.
32060         * tests/unicase/test-u8-toupper.c: Likewise.
32061         * tests/unicase/test-u16-casecmp.c: Likewise.
32062         * tests/unicase/test-u16-casecoll.c: Likewise.
32063         * tests/unicase/test-u16-casefold.c: Likewise.
32064         * tests/unicase/test-u16-is-cased.c: Likewise.
32065         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32066         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32067         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32068         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32069         * tests/unicase/test-u16-tolower.c: Likewise.
32070         * tests/unicase/test-u16-totitle.c: Likewise.
32071         * tests/unicase/test-u16-toupper.c: Likewise.
32072         * tests/unicase/test-u32-casecmp.c: Likewise.
32073         * tests/unicase/test-u32-casecoll.c: Likewise.
32074         * tests/unicase/test-u32-casefold.c: Likewise.
32075         * tests/unicase/test-u32-is-cased.c: Likewise.
32076         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32077         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32078         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32079         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32080         * tests/unicase/test-u32-tolower.c: Likewise.
32081         * tests/unicase/test-u32-totitle.c: Likewise.
32082         * tests/unicase/test-u32-toupper.c: Likewise.
32083         * tests/unicase/test-ulc-casecmp.c: Likewise.
32084         * tests/unicase/test-ulc-casecoll.c: Likewise.
32085         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32086         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32087         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32088         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32089         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32090         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32091         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32092         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32093         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32094         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32095         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32096         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32097         * tests/unictype/test-bidi_byname.c: Likewise.
32098         * tests/unictype/test-bidi_name.c: Likewise.
32099         * tests/unictype/test-bidi_of.c: Likewise.
32100         * tests/unictype/test-bidi_test.c: Likewise.
32101         * tests/unictype/test-block_list.c: Likewise.
32102         * tests/unictype/test-block_of.c: Likewise.
32103         * tests/unictype/test-block_test.c: Likewise.
32104         * tests/unictype/test-categ_and.c: Likewise.
32105         * tests/unictype/test-categ_and_not.c: Likewise.
32106         * tests/unictype/test-categ_byname.c: Likewise.
32107         * tests/unictype/test-categ_name.c: Likewise.
32108         * tests/unictype/test-categ_none.c: Likewise.
32109         * tests/unictype/test-categ_of.c: Likewise.
32110         * tests/unictype/test-categ_or.c: Likewise.
32111         * tests/unictype/test-categ_test_withtable.c: Likewise.
32112         * tests/unictype/test-combining.c: Likewise.
32113         * tests/unictype/test-decdigit.c: Likewise.
32114         * tests/unictype/test-digit.c: Likewise.
32115         * tests/unictype/test-mirror.c: Likewise.
32116         * tests/unictype/test-numeric.c: Likewise.
32117         * tests/unictype/test-pr_byname.c: Likewise.
32118         * tests/unictype/test-pr_test.c: Likewise.
32119         * tests/unictype/test-predicate-part1.h: Likewise.
32120         * tests/unictype/test-scripts.c: Likewise.
32121         * tests/unictype/test-sy_c_ident.c: Likewise.
32122         * tests/unictype/test-sy_java_ident.c: Likewise.
32123         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32124         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32125         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32126         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32127         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32128         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32129         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32130         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32131         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32132         * tests/uninorm/test-compat-decomposition.c: Likewise.
32133         * tests/uninorm/test-composition.c: Likewise.
32134         * tests/uninorm/test-decomposing-form.c: Likewise.
32135         * tests/uninorm/test-decomposition.c: Likewise.
32136         * tests/uninorm/test-u8-nfc.c: Likewise.
32137         * tests/uninorm/test-u8-nfd.c: Likewise.
32138         * tests/uninorm/test-u8-nfkc.c: Likewise.
32139         * tests/uninorm/test-u8-nfkd.c: Likewise.
32140         * tests/uninorm/test-u8-normcmp.c: Likewise.
32141         * tests/uninorm/test-u8-normcoll.c: Likewise.
32142         * tests/uninorm/test-u16-nfc.c: Likewise.
32143         * tests/uninorm/test-u16-nfd.c: Likewise.
32144         * tests/uninorm/test-u16-nfkc.c: Likewise.
32145         * tests/uninorm/test-u16-nfkd.c: Likewise.
32146         * tests/uninorm/test-u16-normcmp.c: Likewise.
32147         * tests/uninorm/test-u16-normcoll.c: Likewise.
32148         * tests/uninorm/test-u32-nfc.c: Likewise.
32149         * tests/uninorm/test-u32-nfd.c: Likewise.
32150         * tests/uninorm/test-u32-nfkc.c: Likewise.
32151         * tests/uninorm/test-u32-nfkd.c: Likewise.
32152         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32153         * tests/uninorm/test-u32-normcmp.c: Likewise.
32154         * tests/uninorm/test-u32-normcoll.c: Likewise.
32155         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32156         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32157         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32158         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32159         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32160         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32161         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32162         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32163         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32164         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32165         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32166         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32167         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32168         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32169         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32170         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32171         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32172         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32173         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32174         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32175         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32176         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32177         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32178         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32179         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32180         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32181         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32182         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32183         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32184         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32185         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32186         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32187         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32188         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32189         * tests/uniwidth/test-u8-width.c: Likewise.
32190         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32191         * tests/uniwidth/test-u16-width.c: Likewise.
32192         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32193         * tests/uniwidth/test-u32-width.c: Likewise.
32194         * tests/uniwidth/test-uc_width.c: Likewise.
32195         * tests/uniwidth/test-uc_width2.c: Likewise.
32196         * modules/acl-tests (Files): Add tests/macros.h.
32197         * modules/areadlink-tests (Files): Likewise.
32198         * modules/areadlink-with-size-tests (Files): Likewise.
32199         * modules/areadlinkat-tests (Files): Likewise.
32200         * modules/areadlinkat-with-size-tests (Files): Likewise.
32201         * modules/argmatch-tests (Files): Likewise.
32202         * modules/argv-iter-tests (Files): Likewise.
32203         * modules/array-list-tests (Files): Likewise.
32204         * modules/array-mergesort-tests (Files): Likewise.
32205         * modules/array-oset-tests (Files): Likewise.
32206         * modules/avltree-list-tests (Files): Likewise.
32207         * modules/avltree-oset-tests (Files): Likewise.
32208         * modules/avltreehash-list-tests (Files): Likewise.
32209         * modules/base64-tests (Files): Likewise.
32210         * modules/binary-io-tests (Files): Likewise.
32211         * modules/bitrotate-tests (Files): Likewise.
32212         * modules/btowc-tests (Files): Likewise.
32213         * modules/byteswap-tests (Files): Likewise.
32214         * modules/c-ctype-tests (Files): Likewise.
32215         * modules/c-stack-tests (Files): Likewise.
32216         * modules/c-strcase-tests (Files): Likewise.
32217         * modules/c-strcasestr-tests (Files): Likewise.
32218         * modules/c-strstr-tests (Files): Likewise.
32219         * modules/canonicalize-lgpl-tests (Files): Likewise.
32220         * modules/canonicalize-tests (Files): Likewise.
32221         * modules/carray-list-tests (Files): Likewise.
32222         * modules/ceilf-tests (Files): Likewise.
32223         * modules/ceill-tests (Files): Likewise.
32224         * modules/chown-tests (Files): Likewise.
32225         * modules/cloexec-tests (Files): Likewise.
32226         * modules/copy-file-tests (Files): Likewise.
32227         * modules/count-one-bits-tests (Files): Likewise.
32228         * modules/dprintf-posix-tests (Files): Likewise.
32229         * modules/dup2-tests (Files): Likewise.
32230         * modules/dup3-tests (Files): Likewise.
32231         * modules/duplocale-tests (Files): Likewise.
32232         * modules/fbufmode-tests (Files): Likewise.
32233         * modules/fchdir-tests (Files): Likewise.
32234         * modules/fcntl-safer-tests (Files): Likewise.
32235         * modules/fcntl-tests (Files): Likewise.
32236         * modules/fdopendir-tests (Files): Likewise.
32237         * modules/fdutimensat-tests (Files): Likewise.
32238         * modules/fflush-tests (Files): Likewise.
32239         * modules/filevercmp-tests (Files): Likewise.
32240         * modules/flock-tests (Files): Likewise.
32241         * modules/floorf-tests (Files): Likewise.
32242         * modules/floorl-tests (Files): Likewise.
32243         * modules/fnmatch-tests (Files): Likewise.
32244         * modules/fopen-safer-tests (Files): Likewise.
32245         * modules/fopen-tests (Files): Likewise.
32246         * modules/fpending-tests (Files): Likewise.
32247         * modules/fprintf-posix-tests (Files): Likewise.
32248         * modules/fpurge-tests (Files): Likewise.
32249         * modules/freadable-tests (Files): Likewise.
32250         * modules/freadahead-tests (Files): Likewise.
32251         * modules/freading-tests (Files): Likewise.
32252         * modules/freadptr-tests (Files): Likewise.
32253         * modules/freadseek-tests (Files): Likewise.
32254         * modules/freopen-tests (Files): Likewise.
32255         * modules/frexp-nolibm-tests (Files): Likewise.
32256         * modules/frexp-tests (Files): Likewise.
32257         * modules/frexpl-nolibm-tests (Files): Likewise.
32258         * modules/frexpl-tests (Files): Likewise.
32259         * modules/fseek-tests (Files): Likewise.
32260         * modules/fseeko-tests (Files): Likewise.
32261         * modules/fstrcmp-tests (Files): Likewise.
32262         * modules/fsync-tests (Files): Likewise.
32263         * modules/ftell-tests (Files): Likewise.
32264         * modules/ftello-tests (Files): Likewise.
32265         * modules/func-tests (Files): Likewise.
32266         * modules/futimens-tests (Files): Likewise.
32267         * modules/fwritable-tests (Files): Likewise.
32268         * modules/fwriting-tests (Files): Likewise.
32269         * modules/getcwd-tests (Files): Likewise.
32270         * modules/getdate-tests (Files): Likewise.
32271         * modules/getdelim-tests (Files): Likewise.
32272         * modules/getdtablesize-tests (Files): Likewise.
32273         * modules/getgroups-tests (Files): Likewise.
32274         * modules/getline-tests (Files): Likewise.
32275         * modules/getndelim2-tests (Files): Likewise.
32276         * modules/glob-tests (Files): Likewise.
32277         * modules/hash-tests (Files): Likewise.
32278         * modules/i-ring-tests (Files): Likewise.
32279         * modules/iconv-tests (Files): Likewise.
32280         * modules/iconv_open-utf-tests (Files): Likewise.
32281         * modules/idpriv-drop-tests (Files): Likewise.
32282         * modules/idpriv-droptemp-tests (Files): Likewise.
32283         * modules/inet_ntop-tests (Files): Likewise.
32284         * modules/inet_pton-tests (Files): Likewise.
32285         * modules/isblank-tests (Files): Likewise.
32286         * modules/isfinite-tests (Files): Likewise.
32287         * modules/isinf-tests (Files): Likewise.
32288         * modules/isnan-tests (Files): Likewise.
32289         * modules/isnand-nolibm-tests (Files): Likewise.
32290         * modules/isnand-tests (Files): Likewise.
32291         * modules/isnanf-nolibm-tests (Files): Likewise.
32292         * modules/isnanf-tests (Files): Likewise.
32293         * modules/isnanl-nolibm-tests (Files): Likewise.
32294         * modules/isnanl-tests (Files): Likewise.
32295         * modules/lchown-tests (Files): Likewise.
32296         * modules/ldexpl-tests (Files): Likewise.
32297         * modules/link-tests (Files): Likewise.
32298         * modules/linkat-tests (Files): Likewise.
32299         * modules/linked-list-tests (Files): Likewise.
32300         * modules/linkedhash-list-tests (Files): Likewise.
32301         * modules/localename-tests (Files): Likewise.
32302         * modules/lseek-tests (Files): Likewise.
32303         * modules/lstat-tests (Files): Likewise.
32304         * modules/mbmemcasecmp-tests (Files): Likewise.
32305         * modules/mbmemcasecoll-tests (Files): Likewise.
32306         * modules/mbrtowc-tests (Files): Likewise.
32307         * modules/mbscasecmp-tests (Files): Likewise.
32308         * modules/mbscasestr-tests (Files): Likewise.
32309         * modules/mbschr-tests (Files): Likewise.
32310         * modules/mbscspn-tests (Files): Likewise.
32311         * modules/mbsinit-tests (Files): Likewise.
32312         * modules/mbsncasecmp-tests (Files): Likewise.
32313         * modules/mbsnrtowcs-tests (Files): Likewise.
32314         * modules/mbspbrk-tests (Files): Likewise.
32315         * modules/mbspcasecmp-tests (Files): Likewise.
32316         * modules/mbsrchr-tests (Files): Likewise.
32317         * modules/mbsrtowcs-tests (Files): Likewise.
32318         * modules/mbsspn-tests (Files): Likewise.
32319         * modules/mbsstr-tests (Files): Likewise.
32320         * modules/memchr-tests (Files): Likewise.
32321         * modules/memchr2-tests (Files): Likewise.
32322         * modules/memcmp-tests (Files): Likewise.
32323         * modules/memmem-tests (Files): Likewise.
32324         * modules/memrchr-tests (Files): Likewise.
32325         * modules/mkdir-tests (Files): Likewise.
32326         * modules/mkfifo-tests (Files): Likewise.
32327         * modules/mkfifoat-tests (Files): Likewise.
32328         * modules/mknod-tests (Files): Likewise.
32329         * modules/nanosleep-tests (Files): Likewise.
32330         * modules/nl_langinfo-tests (Files): Likewise.
32331         * modules/obstack-printf-tests (Files): Likewise.
32332         * modules/open-tests (Files): Likewise.
32333         * modules/openat-tests (Files): Likewise.
32334         * modules/pipe-filter-gi-tests (Files): Likewise.
32335         * modules/pipe-filter-ii-tests (Files): Likewise.
32336         * modules/pipe2-tests (Files): Likewise.
32337         * modules/popen-safer-tests (Files): Likewise.
32338         * modules/popen-tests (Files): Likewise.
32339         * modules/posixtm-tests (Files): Likewise.
32340         * modules/pread-tests (Files): Likewise.
32341         * modules/printf-frexp-tests (Files): Likewise.
32342         * modules/printf-frexpl-tests (Files): Likewise.
32343         * modules/printf-posix-tests (Files): Likewise.
32344         * modules/priv-set-tests (Files): Likewise.
32345         * modules/quotearg-tests (Files): Likewise.
32346         * modules/random_r-tests (Files): Likewise.
32347         * modules/rawmemchr-tests (Files): Likewise.
32348         * modules/rbtree-list-tests (Files): Likewise.
32349         * modules/rbtree-oset-tests (Files): Likewise.
32350         * modules/rbtreehash-list-tests (Files): Likewise.
32351         * modules/readlink-tests (Files): Likewise.
32352         * modules/remove-tests (Files): Likewise.
32353         * modules/rename-tests (Files): Likewise.
32354         * modules/renameat-tests (Files): Likewise.
32355         * modules/rmdir-tests (Files): Likewise.
32356         * modules/round-tests (Files): Likewise.
32357         * modules/roundf-tests (Files): Likewise.
32358         * modules/roundl-tests (Files): Likewise.
32359         * modules/safe-alloc-tests (Files): Likewise.
32360         * modules/setenv-tests (Files): Likewise.
32361         * modules/sigaction-tests (Files): Likewise.
32362         * modules/signbit-tests (Files): Likewise.
32363         * modules/sleep-tests (Files): Likewise.
32364         * modules/snprintf-posix-tests (Files): Likewise.
32365         * modules/snprintf-tests (Files): Likewise.
32366         * modules/sprintf-posix-tests (Files): Likewise.
32367         * modules/stat-tests (Files): Likewise.
32368         * modules/stat-time-tests (Files): Likewise.
32369         * modules/strcasestr-tests (Files): Likewise.
32370         * modules/strchrnul-tests (Files): Likewise.
32371         * modules/strerror-tests (Files): Likewise.
32372         * modules/striconv-tests (Files): Likewise.
32373         * modules/striconveh-tests (Files): Likewise.
32374         * modules/striconveha-tests (Files): Likewise.
32375         * modules/strsignal-tests (Files): Likewise.
32376         * modules/strstr-tests (Files): Likewise.
32377         * modules/strtod-tests (Files): Likewise.
32378         * modules/strverscmp-tests (Files): Likewise.
32379         * modules/symlink-tests (Files): Likewise.
32380         * modules/symlinkat-tests (Files): Likewise.
32381         * modules/trunc-tests (Files): Likewise.
32382         * modules/truncf-tests (Files): Likewise.
32383         * modules/truncl-tests (Files): Likewise.
32384         * modules/uname-tests (Files): Likewise.
32385         * modules/unicase/cased-tests (Files): Likewise.
32386         * modules/unicase/ignorable-tests (Files): Likewise.
32387         * modules/unicase/locale-language-tests (Files): Likewise.
32388         * modules/unicase/tolower-tests (Files): Likewise.
32389         * modules/unicase/totitle-tests (Files): Likewise.
32390         * modules/unicase/toupper-tests (Files): Likewise.
32391         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32392         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32393         * modules/unicase/u8-casefold-tests (Files): Likewise.
32394         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32395         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32396         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32397         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32398         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32399         * modules/unicase/u8-tolower-tests (Files): Likewise.
32400         * modules/unicase/u8-totitle-tests (Files): Likewise.
32401         * modules/unicase/u8-toupper-tests (Files): Likewise.
32402         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32403         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32404         * modules/unicase/u16-casefold-tests (Files): Likewise.
32405         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32406         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32407         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32408         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32409         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32410         * modules/unicase/u16-tolower-tests (Files): Likewise.
32411         * modules/unicase/u16-totitle-tests (Files): Likewise.
32412         * modules/unicase/u16-toupper-tests (Files): Likewise.
32413         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32414         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32415         * modules/unicase/u32-casefold-tests (Files): Likewise.
32416         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32417         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32418         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32419         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32420         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32421         * modules/unicase/u32-tolower-tests (Files): Likewise.
32422         * modules/unicase/u32-totitle-tests (Files): Likewise.
32423         * modules/unicase/u32-toupper-tests (Files): Likewise.
32424         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32425         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32426         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32427         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32428         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32429         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32430         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32431         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32432         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32433         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32434         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32435         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32436         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32437         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32438         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32439         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32440         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32441         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32442         * modules/unictype/block-list-tests (Files): Likewise.
32443         * modules/unictype/block-of-tests (Files): Likewise.
32444         * modules/unictype/block-test-tests (Files): Likewise.
32445         * modules/unictype/category-C-tests (Files): Likewise.
32446         * modules/unictype/category-Cc-tests (Files): Likewise.
32447         * modules/unictype/category-Cf-tests (Files): Likewise.
32448         * modules/unictype/category-Cn-tests (Files): Likewise.
32449         * modules/unictype/category-Co-tests (Files): Likewise.
32450         * modules/unictype/category-Cs-tests (Files): Likewise.
32451         * modules/unictype/category-L-tests (Files): Likewise.
32452         * modules/unictype/category-Ll-tests (Files): Likewise.
32453         * modules/unictype/category-Lm-tests (Files): Likewise.
32454         * modules/unictype/category-Lo-tests (Files): Likewise.
32455         * modules/unictype/category-Lt-tests (Files): Likewise.
32456         * modules/unictype/category-Lu-tests (Files): Likewise.
32457         * modules/unictype/category-M-tests (Files): Likewise.
32458         * modules/unictype/category-Mc-tests (Files): Likewise.
32459         * modules/unictype/category-Me-tests (Files): Likewise.
32460         * modules/unictype/category-Mn-tests (Files): Likewise.
32461         * modules/unictype/category-N-tests (Files): Likewise.
32462         * modules/unictype/category-Nd-tests (Files): Likewise.
32463         * modules/unictype/category-Nl-tests (Files): Likewise.
32464         * modules/unictype/category-No-tests (Files): Likewise.
32465         * modules/unictype/category-P-tests (Files): Likewise.
32466         * modules/unictype/category-Pc-tests (Files): Likewise.
32467         * modules/unictype/category-Pd-tests (Files): Likewise.
32468         * modules/unictype/category-Pe-tests (Files): Likewise.
32469         * modules/unictype/category-Pf-tests (Files): Likewise.
32470         * modules/unictype/category-Pi-tests (Files): Likewise.
32471         * modules/unictype/category-Po-tests (Files): Likewise.
32472         * modules/unictype/category-Ps-tests (Files): Likewise.
32473         * modules/unictype/category-S-tests (Files): Likewise.
32474         * modules/unictype/category-Sc-tests (Files): Likewise.
32475         * modules/unictype/category-Sk-tests (Files): Likewise.
32476         * modules/unictype/category-Sm-tests (Files): Likewise.
32477         * modules/unictype/category-So-tests (Files): Likewise.
32478         * modules/unictype/category-Z-tests (Files): Likewise.
32479         * modules/unictype/category-Zl-tests (Files): Likewise.
32480         * modules/unictype/category-Zp-tests (Files): Likewise.
32481         * modules/unictype/category-Zs-tests (Files): Likewise.
32482         * modules/unictype/category-and-not-tests (Files): Likewise.
32483         * modules/unictype/category-and-tests (Files): Likewise.
32484         * modules/unictype/category-byname-tests (Files): Likewise.
32485         * modules/unictype/category-name-tests (Files): Likewise.
32486         * modules/unictype/category-none-tests (Files): Likewise.
32487         * modules/unictype/category-of-tests (Files): Likewise.
32488         * modules/unictype/category-or-tests (Files): Likewise.
32489         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32490         * modules/unictype/combining-class-tests (Files): Likewise.
32491         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32492         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32493         * modules/unictype/ctype-blank-tests (Files): Likewise.
32494         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32495         * modules/unictype/ctype-digit-tests (Files): Likewise.
32496         * modules/unictype/ctype-graph-tests (Files): Likewise.
32497         * modules/unictype/ctype-lower-tests (Files): Likewise.
32498         * modules/unictype/ctype-print-tests (Files): Likewise.
32499         * modules/unictype/ctype-punct-tests (Files): Likewise.
32500         * modules/unictype/ctype-space-tests (Files): Likewise.
32501         * modules/unictype/ctype-upper-tests (Files): Likewise.
32502         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32503         * modules/unictype/decimal-digit-tests (Files): Likewise.
32504         * modules/unictype/digit-tests (Files): Likewise.
32505         * modules/unictype/mirror-tests (Files): Likewise.
32506         * modules/unictype/numeric-tests (Files): Likewise.
32507         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32508         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32509         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32510         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32511         Likewise.
32512         * modules/unictype/property-bidi-block-separator-tests (Files):
32513         Likewise.
32514         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32515         Likewise.
32516         * modules/unictype/property-bidi-common-separator-tests (Files):
32517         Likewise.
32518         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32519         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32520         Likewise.
32521         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32522         Likewise.
32523         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32524         Likewise.
32525         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32526         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32527         Likewise.
32528         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32529         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32530         Likewise.
32531         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32532         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32533         * modules/unictype/property-bidi-segment-separator-tests (Files):
32534         Likewise.
32535         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32536         * modules/unictype/property-byname-tests (Files): Likewise.
32537         * modules/unictype/property-combining-tests (Files): Likewise.
32538         * modules/unictype/property-composite-tests (Files): Likewise.
32539         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32540         * modules/unictype/property-dash-tests (Files): Likewise.
32541         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32542         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32543         Likewise.
32544         * modules/unictype/property-deprecated-tests (Files): Likewise.
32545         * modules/unictype/property-diacritic-tests (Files): Likewise.
32546         * modules/unictype/property-extender-tests (Files): Likewise.
32547         * modules/unictype/property-format-control-tests (Files): Likewise.
32548         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32549         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32550         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32551         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32552         * modules/unictype/property-hyphen-tests (Files): Likewise.
32553         * modules/unictype/property-id-continue-tests (Files): Likewise.
32554         * modules/unictype/property-id-start-tests (Files): Likewise.
32555         * modules/unictype/property-ideographic-tests (Files): Likewise.
32556         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32557         * modules/unictype/property-ids-trinary-operator-tests (Files):
32558         Likewise.
32559         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32560         * modules/unictype/property-iso-control-tests (Files): Likewise.
32561         * modules/unictype/property-join-control-tests (Files): Likewise.
32562         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32563         * modules/unictype/property-line-separator-tests (Files): Likewise.
32564         * modules/unictype/property-logical-order-exception-tests (Files):
32565         Likewise.
32566         * modules/unictype/property-lowercase-tests (Files): Likewise.
32567         * modules/unictype/property-math-tests (Files): Likewise.
32568         * modules/unictype/property-non-break-tests (Files): Likewise.
32569         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32570         * modules/unictype/property-numeric-tests (Files): Likewise.
32571         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32572         * modules/unictype/property-other-default-ignorable-code-point-tests
32573         (Files): Likewise.
32574         * modules/unictype/property-other-grapheme-extend-tests (Files):
32575         Likewise.
32576         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32577         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32578         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32579         * modules/unictype/property-other-math-tests (Files): Likewise.
32580         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32581         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32582         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32583         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32584         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32585         * modules/unictype/property-private-use-tests (Files): Likewise.
32586         * modules/unictype/property-punctuation-tests (Files): Likewise.
32587         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32588         * modules/unictype/property-radical-tests (Files): Likewise.
32589         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32590         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32591         * modules/unictype/property-space-tests (Files): Likewise.
32592         * modules/unictype/property-terminal-punctuation-tests (Files):
32593         Likewise.
32594         * modules/unictype/property-test-tests (Files): Likewise.
32595         * modules/unictype/property-titlecase-tests (Files): Likewise.
32596         * modules/unictype/property-unassigned-code-value-tests (Files):
32597         Likewise.
32598         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32599         * modules/unictype/property-uppercase-tests (Files): Likewise.
32600         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32601         * modules/unictype/property-white-space-tests (Files): Likewise.
32602         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32603         * modules/unictype/property-xid-start-tests (Files): Likewise.
32604         * modules/unictype/property-zero-width-tests (Files): Likewise.
32605         * modules/unictype/scripts-tests (Files): Likewise.
32606         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32607         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32608         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32609         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32610         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32611         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32612         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32613         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32614         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32615         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32616         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32617         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32618         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32619         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32620         * modules/uninorm/composition-tests (Files): Likewise.
32621         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32622         * modules/uninorm/decomposition-tests (Files): Likewise.
32623         * modules/uninorm/filter-tests (Files): Likewise.
32624         * modules/uninorm/nfc-tests (Files): Likewise.
32625         * modules/uninorm/nfd-tests (Files): Likewise.
32626         * modules/uninorm/nfkc-tests (Files): Likewise.
32627         * modules/uninorm/nfkd-tests (Files): Likewise.
32628         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32629         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32630         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32631         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32632         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32633         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32634         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32635         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32636         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32637         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32638         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32639         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32640         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32641         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32642         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32643         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32644         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32645         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32646         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32647         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32648         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32649         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32650         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32651         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32652         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32653         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32654         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32655         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32656         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32657         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32658         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32659         * modules/uniwidth/u8-width-tests (Files): Likewise.
32660         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32661         * modules/uniwidth/u16-width-tests (Files): Likewise.
32662         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32663         * modules/uniwidth/u32-width-tests (Files): Likewise.
32664         * modules/uniwidth/width-tests (Files): Likewise.
32665         * modules/unlink-tests (Files): Likewise.
32666         * modules/unsetenv-tests (Files): Likewise.
32667         * modules/usleep-tests (Files): Likewise.
32668         * modules/utimens-tests (Files): Likewise.
32669         * modules/utimensat-tests (Files): Likewise.
32670         * modules/vasnprintf-posix-tests (Files): Likewise.
32671         * modules/vasnprintf-tests (Files): Likewise.
32672         * modules/vasprintf-posix-tests (Files): Likewise.
32673         * modules/vasprintf-tests (Files): Likewise.
32674         * modules/vdprintf-posix-tests (Files): Likewise.
32675         * modules/vfprintf-posix-tests (Files): Likewise.
32676         * modules/vprintf-posix-tests (Files): Likewise.
32677         * modules/vsnprintf-posix-tests (Files): Likewise.
32678         * modules/vsnprintf-tests (Files): Likewise.
32679         * modules/vsprintf-posix-tests (Files): Likewise.
32680         * modules/wcrtomb-tests (Files): Likewise.
32681         * modules/wcsnrtombs-tests (Files): Likewise.
32682         * modules/wcsrtombs-tests (Files): Likewise.
32683         * modules/wctype-tests (Files): Likewise.
32684         * modules/wcwidth-tests (Files): Likewise.
32685         * modules/xmemdup0-tests (Files): Likewise.
32686         * modules/xprintf-posix-tests (Files): Likewise.
32687         * modules/xvasprintf-tests (Files): Likewise.
32689 2009-12-24  Eric Blake  <ebb9@byu.net>
32691         test-nanosleep: fix typo
32692         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32693         patch.
32694         Reported by Bruno Haible.
32696 2009-12-24  Bruno Haible  <bruno@clisp.org>
32698         Reduce namespace pollution on glibc systems.
32699         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32700         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32701         systems.
32702         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32703         <getopt.h> on glibc systems.
32704         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32705         systems.
32706         * lib/fcntl.c: Include <unistd.h> here instead.
32708 2009-12-24  Bruno Haible  <bruno@clisp.org>
32710         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32712 2009-12-24  Eric Blake  <ebb9@byu.net>
32714         tests: add signature checks
32715         * tests/signature.h (SIGNATURE_CHECK): New file.
32716         * modules/atexit-tests (Files): Use it.
32717         * modules/btowc-tests (Files): Likewise.
32718         * modules/canonicalize-lgpl-tests (Files): Likewise.
32719         * modules/ceilf-tests (Files): Likewise.
32720         * modules/ceill-tests (Files): Likewise.
32721         * modules/chown-tests (Files): Likewise.
32722         * modules/dprintf-posix-tests (Files): Likewise.
32723         * modules/dup2-tests (Files): Likewise.
32724         * modules/dup3-tests (Files): Likewise.
32725         * modules/duplocale-tests (Files): Likewise.
32726         * modules/fchdir-tests (Files): Likewise.
32727         * modules/fcntl-tests (Files): Likewise.
32728         * modules/fdopendir-tests (Files): Likewise.
32729         * modules/fflush-tests (Files): Likewise.
32730         * modules/flock-tests (Files): Likewise.
32731         * modules/floorf-tests (Files): Likewise.
32732         * modules/floorl-tests (Files): Likewise.
32733         * modules/fnmatch-tests (Files): Likewise.
32734         * modules/fopen-tests (Files): Likewise.
32735         * modules/fprintf-posix-tests (Files): Likewise.
32736         * modules/freopen-tests (Files): Likewise.
32737         * modules/frexp-nolibm-tests (Files): Likewise.
32738         * modules/frexp-tests (Files): Likewise.
32739         * modules/frexpl-nolibm-tests (Files): Likewise.
32740         * modules/frexpl-tests (Files): Likewise.
32741         * modules/fseek-tests (Files): Likewise.
32742         * modules/fseeko-tests (Files): Likewise.
32743         * modules/fsync-tests (Files): Likewise.
32744         * modules/ftell-tests (Files): Likewise.
32745         * modules/ftello-tests (Files): Likewise.
32746         * modules/futimens-tests (Files): Likewise.
32747         * modules/getaddrinfo-tests (Files): Likewise.
32748         * modules/getcwd-tests (Files): Likewise.
32749         * modules/getdelim-tests (Files): Likewise.
32750         * modules/getdtablesize-tests (Files): Likewise.
32751         * modules/getgroups-tests (Files): Likewise.
32752         * modules/gethostname-tests (Files): Likewise.
32753         * modules/getline-tests (Files): Likewise.
32754         * modules/getopt-posix-tests (Files): Likewise.
32755         * modules/gettimeofday-tests (Files): Likewise.
32756         * modules/glob-tests (Files): Likewise.
32757         * modules/iconv-tests (Files): Likewise.
32758         * modules/inet_ntop-tests (Files): Likewise.
32759         * modules/inet_pton-tests (Files): Likewise.
32760         * modules/isblank-tests (Files): Likewise.
32761         * modules/lchown-tests (Files): Likewise.
32762         * modules/ldexpl-tests (Files): Likewise.
32763         * modules/link-tests (Files): Likewise.
32764         * modules/linkat-tests (Files): Likewise.
32765         * modules/lseek-tests (Files): Likewise.
32766         * modules/lstat-tests (Files): Likewise.
32767         * modules/mbrtowc-tests (Files): Likewise.
32768         * modules/mbsinit-tests (Files): Likewise.
32769         * modules/mbsnrtowcs-tests (Files): Likewise.
32770         * modules/mbsrtowcs-tests (Files): Likewise.
32771         * modules/memchr-tests (Files): Likewise.
32772         * modules/memcmp-tests (Files): Likewise.
32773         * modules/memmem-tests (Files): Likewise.
32774         * modules/memrchr-tests (Files): Likewise.
32775         * modules/mkdir-tests (Files): Likewise.
32776         * modules/mkfifo-tests (Files): Likewise.
32777         * modules/mkfifoat-tests (Files): Likewise.
32778         * modules/mknod-tests (Files): Likewise.
32779         * modules/nanosleep-tests (Files): Likewise.
32780         * modules/nl_langinfo-tests (Files): Likewise.
32781         * modules/obstack-printf-tests (Files): Likewise.
32782         * modules/open-tests (Files): Likewise.
32783         * modules/openat-tests (Files): Likewise.
32784         * modules/perror-tests (Files): Likewise.
32785         * modules/pipe2-tests (Files): Likewise.
32786         * modules/poll-tests (Files): Likewise.
32787         * modules/popen-tests (Files): Likewise.
32788         * modules/posix_spawn-tests (Files): Likewise.
32789         * modules/posix_spawnp-tests (Files): Likewise.
32790         * modules/pread-tests (Files): Likewise.
32791         * modules/printf-posix-tests (Files): Likewise.
32792         * modules/pty-tests (Files): Likewise.
32793         * modules/random_r-tests (Files): Likewise.
32794         * modules/rawmemchr-tests (Files): Likewise.
32795         * modules/readlink-tests (Files): Likewise.
32796         * modules/remove-tests (Files): Likewise.
32797         * modules/rename-tests (Files): Likewise.
32798         * modules/renameat-tests (Files): Likewise.
32799         * modules/rmdir-tests (Files): Likewise.
32800         * modules/round-tests (Files): Likewise.
32801         * modules/roundf-tests (Files): Likewise.
32802         * modules/roundl-tests (Files): Likewise.
32803         * modules/select-tests (Files): Likewise.
32804         * modules/setenv-tests (Files): Likewise.
32805         * modules/sigaction-tests (Files): Likewise.
32806         * modules/sleep-tests (Files): Likewise.
32807         * modules/snprintf-posix-tests (Files): Likewise.
32808         * modules/snprintf-tests (Files): Likewise.
32809         * modules/sprintf-posix-tests (Files): Likewise.
32810         * modules/stat-tests (Files): Likewise.
32811         * modules/strcasestr-tests (Files): Likewise.
32812         * modules/strchrnul-tests (Files): Likewise.
32813         * modules/strerror-tests (Files): Likewise.
32814         * modules/strsignal-tests (Files): Likewise.
32815         * modules/strstr-tests (Files): Likewise.
32816         * modules/strtod-tests (Files): Likewise.
32817         * modules/strverscmp-tests (Files): Likewise.
32818         * modules/symlink-tests (Files): Likewise.
32819         * modules/symlinkat-tests (Files): Likewise.
32820         * modules/times-tests (Files): Likewise.
32821         * modules/trunc-tests (Files): Likewise.
32822         * modules/truncf-tests (Files): Likewise.
32823         * modules/truncl-tests (Files): Likewise.
32824         * modules/tsearch-tests (Files): Likewise.
32825         * modules/uname-tests (Files): Likewise.
32826         * modules/unlink-tests (Files): Likewise.
32827         * modules/unsetenv-tests (Files): Likewise.
32828         * modules/usleep-tests (Files): Likewise.
32829         * modules/utimensat-tests (Files): Likewise.
32830         * modules/vasprintf-tests (Files): Likewise.
32831         * modules/vdprintf-posix-tests (Files): Likewise.
32832         * modules/vfprintf-posix-tests (Files): Likewise.
32833         * modules/vprintf-posix-tests (Files): Likewise.
32834         * modules/vsnprintf-posix-tests (Files): Likewise.
32835         * modules/vsnprintf-tests (Files): Likewise.
32836         * modules/vsprintf-posix-tests (Files): Likewise.
32837         * modules/wcrtomb-tests (Files): Likewise.
32838         * modules/wcsnrtombs-tests (Files): Likewise.
32839         * modules/wcsrtombs-tests (Files): Likewise.
32840         * modules/wcwidth-tests (Files): Likewise.
32841         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32842         * tests/test-isinf.c (isinf): Likewise.
32843         * tests/test-isnan.c (isnan): Likewise.
32844         * tests/test-signbit.c (signbit): Likewise.
32845         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32846         declaration, either as macro or with correct signature.
32847         (select): Ensure function under test is declared with correct
32848         signature in correct header.
32849         * tests/test-atexit.c (atexit): Likewise.
32850         * tests/test-btowc.c (btowc): Likewise.
32851         * tests/test-canonicalize-lgpl.c (realpath)
32852         (canonicalize_file_name): Likewise.
32853         * tests/test-ceilf1.c (ceilf): Likewise.
32854         * tests/test-ceill.c (ceill): Likewise.
32855         * tests/test-chown.c (chown): Likewise.
32856         * tests/test-dprintf-posix.c (dprintf): Likewise.
32857         * tests/test-dup2.c (dup2): Likewise.
32858         * tests/test-dup3.c (dup3): Likewise.
32859         * tests/test-duplocale.c (duplocale): Likewise.
32860         * tests/test-fchdir.c (fchdir): Likewise.
32861         * tests/test-fchownat.c (fchownat): Likewise.
32862         * tests/test-fcntl.c (fcntl): Likewise.
32863         * tests/test-fdopendir.c (fdopendir): Likewise.
32864         * tests/test-fflush.c (fflush): Likewise.
32865         * tests/test-flock.c (flock): Likewise.
32866         * tests/test-floorf1.c (floorf): Likewise.
32867         * tests/test-floorl.c (floorl): Likewise.
32868         * tests/test-fnmatch.c (fnmatch): Likewise.
32869         * tests/test-fopen.c (fopen): Likewise.
32870         * tests/test-fprintf-posix.c (fprintf): Likewise.
32871         * tests/test-freopen.c (freopen): Likewise.
32872         * tests/test-frexp.c (frexp): Likewise.
32873         * tests/test-frexpl.c (frexpl): Likewise.
32874         * tests/test-fseek.c (fseek): Likewise.
32875         * tests/test-fseeko.c (fseeko): Likewise.
32876         * tests/test-fstatat.c (fstatat): Likewise.
32877         * tests/test-fsync.c (fsync): Likewise.
32878         * tests/test-ftell.c (ftell): Likewise.
32879         * tests/test-ftello.c (ftello): Likewise.
32880         * tests/test-futimens.c (futimens): Likewise.
32881         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32882         (gai_strerror): Likewise.
32883         * tests/test-getcwd.c (getcwd): Likewise.
32884         * tests/test-getdelim.c (getdelim): Likewise.
32885         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32886         * tests/test-getgroups.c (getgroups): Likewise.
32887         * tests/test-gethostname.c (gethostname): Likewise.
32888         * tests/test-getline.c (getline): Likewise.
32889         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32890         Likewise.
32891         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32892         * tests/test-glob.c (glob, globfree): Likewise.
32893         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32894         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32895         * tests/test-inet_pton.c (inet_pton): Likewise.
32896         * tests/test-isblank.c (isblank): Likewise.
32897         * tests/test-lchown.c (lchown): Likewise.
32898         * tests/test-ldexpl.c (ldexpl): Likewise.
32899         * tests/test-link.c (link): Likewise.
32900         * tests/test-linkat.c (linkat): Likewise.
32901         * tests/test-lseek.c (lseek): Likewise.
32902         * tests/test-lstat.c (lstat): Likewise.
32903         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32904         * tests/test-mbsinit.c (mbsinit): Likewise.
32905         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32906         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32907         * tests/test-memchr.c (memchr): Likewise.
32908         * tests/test-memcmp.c (memcmp): Likewise.
32909         * tests/test-memmem.c (memmem): Likewise.
32910         * tests/test-memrchr.c (memrchr): Likewise.
32911         * tests/test-mkdir.c (mkdir): Likewise.
32912         * tests/test-mkdirat.c (mkdirat): Likewise.
32913         * tests/test-mkfifo.c (mkfifo): Likewise.
32914         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32915         * tests/test-mknod.c (mknod): Likewise.
32916         * tests/test-nanosleep.c (nanosleep): Likewise.
32917         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32918         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32919         Likewise.
32920         * tests/test-open.c (open): Likewise.
32921         * tests/test-openat.c (openat): Likewise.
32922         * tests/test-perror.c (perror): Likewise.
32923         * tests/test-pipe2.c (pipe2): Likewise.
32924         * tests/test-poll.c (poll): Likewise.
32925         * tests/test-popen.c (popen, pclose): Likewise.
32926         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32927         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32928         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32929         (posix_spawn_file_actions_destroy)
32930         (posix_spawn_file_actions_addclose)
32931         (posix_spawn_file_actions_addopen)
32932         (posix_spawn_file_actions_adddup2): Likewise.
32933         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32934         * tests/test-pread.c (pread): Likewise.
32935         * tests/test-printf-posix.c (printf): Likewise.
32936         * tests/test-pty.c (openpty, forkpty): Likewise.
32937         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32938         (random_r): Likewise.
32939         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32940         * tests/test-readlink.c (readlink): Likewise.
32941         * tests/test-remove.c (remove): Likewise.
32942         * tests/test-rename.c (rename): Likewise.
32943         * tests/test-renameat.c (renameat): Likewise.
32944         * tests/test-rmdir.c (rmdir): Likewise.
32945         * tests/test-round1.c (round): Likewise.
32946         * tests/test-roundf1.c (roundf): Likewise.
32947         * tests/test-roundl.c (roundl): Likewise.
32948         * tests/test-setenv.c (setenv): Likewise.
32949         * tests/test-sigaction.c (sigaction): Likewise.
32950         * tests/test-sleep.c (sleep): Likewise.
32951         * tests/test-snprintf.c (snprintf): Likewise.
32952         * tests/test-sprintf-posix.c (sprintf): Likewise.
32953         * tests/test-stat.c (stat): Likewise.
32954         * tests/test-stpncpy.c (stpncpy): Likewise.
32955         * tests/test-strcasestr.c (strcasestr): Likewise.
32956         * tests/test-strchrnul.c (strchrnul): Likewise.
32957         * tests/test-strerror.c (strerror): Likewise.
32958         * tests/test-strsignal.c (strsignal): Likewise.
32959         * tests/test-strstr.c (strstr): Likewise.
32960         * tests/test-strtod.c (strtod): Likewise.
32961         * tests/test-strverscmp.c (strverscmp): Likewise.
32962         * tests/test-symlink.c (symlink): Likewise.
32963         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32964         * tests/test-times.c (times): Likewise.
32965         * tests/test-trunc1.c (trunc): Likewise.
32966         * tests/test-truncf1.c (truncf): Likewise.
32967         * tests/test-truncl.c (truncl): Likewise.
32968         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32969         Likewise.
32970         * tests/test-uname.c (uname): Likewise.
32971         * tests/test-unlink.c (unlink): Likewise.
32972         * tests/test-unlinkat.c (unlinkat): Likewise.
32973         * tests/test-unsetenv.c (unsetenv): Likewise.
32974         * tests/test-usleep.c (usleep): Likewise.
32975         * tests/test-utimensat.c (utimensat): Likewise.
32976         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32977         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32978         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32979         * tests/test-vprintf-posix.c (vprintf): Likewise.
32980         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32981         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32982         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32983         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32984         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32985         * tests/test-wcwidth.c (wcwidth): Likewise.
32987         build: pull in conditional headers during GNULIB_POSIXCHECK
32988         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32989         definitions from any conditionally-included headers.
32990         * lib/stdlib.in.h (includes): Likewise.
32991         * lib/unistd.in.h (includes): Likewise.
32993 2009-12-24  Bruno Haible  <bruno@clisp.org>
32995         * tests/test-argv-iter.c: Include header file being tested immediately
32996         after config.h.
32997         * tests/test-base64.c: Likewise.
32998         * tests/test-flock.c: Likewise.
32999         * tests/test-fsync.c: Likewise.
33000         * tests/test-getdate.c: Likewise.
33001         * tests/test-getndelim2.c: Likewise.
33002         * tests/test-isfinite.c: Likewise.
33003         * tests/test-isinf.c: Likewise.
33004         * tests/test-strerror.c: Likewise.
33005         * tests/test-strsignal.c: Likewise.
33007 2009-12-23  Eric Blake  <ebb9@byu.net>
33009         unistd: work around cygwin bug
33010         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33011         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33012         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33014 2009-12-23  Bruno Haible  <bruno@clisp.org>
33016         localename: More tests.
33017         * tests/test-localename.c (SIZEOF): New macro.
33018         (categories): New variable.
33019         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33020         test_locale_name_default): Add test w.r.t. thread locale.
33021         (test_locale_name_thread): New function.
33022         (main): Invoke it.
33024         localename: Make aware of thread locale.
33025         * lib/localename.h (gl_locale_name_thread): New declaration.
33026         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33027         behaviour with respect to thread locale.
33028         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33029         <langinfo.h>, glthread/lock.h.
33030         (SIZE_BITS): New macro.
33031         (string_hash): New function.
33032         (struct hash_node): New type.
33033         (HASH_TABLE_SIZE): New macro.
33034         (struniq_hash_table, struniq_lock): New variables.
33035         (struniq): New function.
33036         (gl_locale_name_thread): New function.
33037         (gl_locale_name): Invoke it.
33038         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33039         * modules/localename (Depends-on): Add lock.
33040         Reported by Mike Gran <spk121@yahoo.com>.
33042 2009-12-23  Eric Blake  <ebb9@byu.net>
33044         va-args: new module
33045         * modules/va-args: New file.
33046         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33047         * MODULES.html.sh (Core language properties): Mention it.
33049         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33050         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33051         named alias for __attribute__((__unused__)).
33052         * lib/chown.c: Update client.
33053         * lib/fchmodat.c: Likewise.
33054         * lib/fts.c: Likewise.
33055         * lib/getdate.y: Likewise.
33056         * lib/getgroups.c: Likewise.
33057         * lib/getopt.c: Likewise.
33058         * lib/getugroups.c: Likewise.
33059         * lib/mkdir.c: Likewise.
33060         * lib/mkfifo.c: Likewise.
33061         * lib/mkfifoat.c: Likewise.
33062         * lib/mknod.c: Likewise.
33063         * lib/mknodat.c: Likewise.
33064         * lib/readlink.c: Likewise.
33065         * lib/se-context.in.h: Likewise.
33066         * lib/se-selinux.in.h: Likewise.
33067         * lib/sockets.c: Likewise.
33068         * lib/symlink.c: Likewise.
33069         * lib/symlinkat.c: Likewise.
33070         * lib/unicodeio.c: Likewise.
33071         * lib/unistr.h: Likewise.
33072         * tests/test-areadlink.c: Likewise.
33073         * tests/test-areadlinkat.c: Likewise.
33074         * tests/test-filenamecat.c: Likewise.
33075         * tests/test-fseeko.c: Likewise.
33076         * tests/test-ftello.c: Likewise.
33077         * tests/test-getdate.c: Likewise.
33078         * tests/test-getgroups.c: Likewise.
33079         * tests/test-gethostname.c: Likewise.
33080         * tests/test-quotearg.c: Likewise.
33081         * tests/test-version-etc.c: Likewise.
33082         * tests/test-xalloc-die.c: Likewise.
33083         * tests/test-xfprintf-posix.c: Likewise.
33084         * tests/test-xprintf-posix.c: Likewise.
33085         * tests/test-xvasprintf.c: Likewise.
33087         tests: avoid compiler warnings
33088         * tests/test-fcntl.c (main): Delete unused parameters.
33089         * tests/test-freopen-safer.c (main): Likewise.
33090         * tests/test-xalloc-die.c (main): Mark unused parameters.
33091         * tests/test-fseeko.c (main): Likewise.
33092         * tests/test-ftello.c (main): Likewise.
33093         * tests/test-nanosleep.c (main): Avoid declaration warning.
33094         * tests/test-sleep.c (main): Likewise.
33095         * tests/test-unsetenv.c (main): Silence warning about string
33096         literal.
33097         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33099 2009-12-23  Bruno Haible  <bruno@clisp.org>
33101         * tests/test-localename.c (test_locale_name): New function, extracted
33102         from main. Also test mixed situations.
33103         (test_locale_name_posix, test_locale_name_environ,
33104         test_locale_name_default): New functions.
33105         (main): Invoke them all.
33106         * modules/localename-tests (configure.ac): Test for newlocale.
33108 2009-12-23  Bruno Haible  <bruno@clisp.org>
33110         unistd: Ensure getcwd gets declared before being overridden.
33111         * lib/unistd.in.h: Conditionally include <io.h>.
33113 2009-12-22  Bruno Haible  <bruno@clisp.org>
33115         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33116         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33117         (gl_WCHAR_H): Invoke it.
33118         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33119         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33120         Reported by Karl Berry <karl@freefriends.org>.
33122 2009-12-22  Eric Blake  <ebb9@byu.net>
33124         math, unistd: avoid redundant includes
33125         * lib/math.in.h (isnan): No need to re-include <math.h>.
33126         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33128         getsubopt: work around cygwin bug
33129         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33130         avoid conflicting with system getsubopt.
33131         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33132         bug.
33134         getopt: synchronize from glibc
33135         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33136         parameter order.  Adjust all callers.
33137         (_getopt_internal_r, main): Adjust quoting in error messages.
33138         Drop considerations for outdated POSIX 1003.2 error message.
33139         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33140         callers.
33141         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33143         test-getopt: test stderr behavior
33144         * modules/getopt-posix-tests (Depends-on): Add dup2.
33145         * tests/test-getopt.c (ASSERT): Avoid stderr.
33146         (main): Move stderr to a temporary file.
33147         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33148         Instead, add parameter to inform caller if output occurred.
33149         (test_getopt): Adjust all existing tests to expect silence, and
33150         add new tests of leading ":".
33151         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33152         glibc shortcomings with leading "-:" or "+:" in optstring.
33153         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33154         Likewise.
33155         * doc/posix-functions/getopt.texi (getopt): Likewise.
33157         test-getopt: enhance test
33158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33159         supports optind=0.
33160         * tests/test-getopt.c (OPTIND_MIN): Move...
33161         * tests/test-getopt.h (OPTIND_MIN): ...here.
33162         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33163         Require that optind=0 works, since modern BSD supports it in
33164         addition to optreset, and since coreutils expects it.
33165         (test_getopt_long_only): New test.
33166         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33167         glibc shortcomings with 'W;', and enforcement of optind=0.
33168         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33169         Likewise.
33171 2009-12-21  Bruno Haible  <bruno@clisp.org>
33173         localename: Improvements for MacOS X and Cygwin.
33174         * lib/localename.h (gl_locale_name_environ): New declaration.
33175         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33176         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33177         (gl_locale_name_posix): Invoke it.
33178         (gl_locale_name_default): Add comments. Use Windows native API also on
33179         Cygwin.
33181 2009-12-21  Bruno Haible  <bruno@clisp.org>
33183         Update list of Win32 locale ids.
33184         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33185         (LANG_SAMI): Renamed from LANG_SAAMI.
33186         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33187         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33188         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33189         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33190         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33191         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33192         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33193         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33194         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33195         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33196         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33197         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33198         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33199         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33200         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33201         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33202         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33203         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33204         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33205         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33206         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33207         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33208         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33209         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33210         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33211         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33212         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33213         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33214         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33215         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33216         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33217         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33218         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33219         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33220         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33221         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33222         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33223         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33224         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33225         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33226         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33227         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33228         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33229         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33230         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33231         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33232         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33233         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33234         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33235         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33236         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33237         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33238         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33239         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33240         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33241         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33242         Add more languages and countries for Sami, Sorbian. Add more countries
33243         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33244         for Pashto. Change country for Syriac, Tswana.
33246 2009-12-21  Eric Blake  <ebb9@byu.net>
33248         test-utimens: avoid spurious failure
33249         * tests/test-chown.h (nap): Factor...
33250         * tests/nap.h: ...into new file.
33251         * tests/test-lchown.h (nap): Avoid duplication.
33252         * tests/test-utimens-common.h (nap): Use shared implementation,
33253         necessary on file systems with 1-second resolution.
33254         * modules/chown-tests (Files): Include new file.
33255         * modules/fdutimensat-tests (Files): Likewise.
33256         * modules/futimens-tests (Files): Likewise.
33257         * modules/lchown-tests (Files): Likewise.
33258         * modules/openat-tests (Files): Likewise.
33259         * modules/utimens-tests (Files): Likewise.
33260         * modules/utimensat-tests (Files): Likewise.
33262 2009-12-19  Eric Blake  <ebb9@byu.net>
33264         futimens, utimensat: work around Linux bug
33265         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33266         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33267         * lib/utimensat.c (rpl_utimensat): Work around it.
33268         * lib/futimens.c (rpl_futimens): Adjust comment.
33270         utimens: work around Linux ctime bug
33271         * lib/utimens.c (detect_ctime_bug): New helper function.
33272         (update_timespec): Differentiate between workaround needed for
33273         this bug vs. what is needed for systems that lack utimensat.
33274         (fdutimens, lutimens): Work around bug.
33276         utimens: check for ctime update
33277         * tests/test-utimens-common.h (check_ctime): Define.
33278         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33279         * tests/test-futimens.h (test_futimens): Likewise.
33280         * tests/test-lutimens.h (test_lutimens): Likewise.
33281         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33282         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33284 2009-12-19  Bruno Haible  <bruno@clisp.org>
33286         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33287         * tests/test-dprintf-posix2.sh: New file.
33288         * tests/test-dprintf-posix2.c: New file.
33289         * modules/dprintf-posix-tests (Files): Add them.
33290         (configure.ac): Check for getrlimit and setrlimit.
33291         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33293 2009-12-19  Bruno Haible  <bruno@clisp.org>
33295         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33296         * tests/test-fprintf-posix3.sh: New file.
33297         * tests/test-fprintf-posix3.c: New file.
33298         * modules/fprintf-posix-tests (Files): Add them.
33299         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33301 2009-12-19  Eric Blake  <ebb9@byu.net>
33303         dirfd: fix prototype
33304         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33305         * lib/dirfd.c (dirfd): Likewise.
33307         canonicalize: reduce memory usage
33308         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33309         allocation to size.
33310         Reported by Solar Designer <solar@openwall.com>.
33312 2009-12-19  Bruno Haible  <bruno@clisp.org>
33314         New module attribute 'Applicability'.
33315         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33316         * gnulib-tool: New option --extract-applicability.
33317         (func_usage): Document it.
33318         (sed_extract_prog): Recognize it.
33319         (func_get_applicability): New function.
33320         (func_import): Generalize handling of 'link-warning' module.
33321         * modules/link-warning (Applicability): New section.
33322         * modules/arg-nonnull (Applicability): New section.
33323         Repoted by Simon Josefsson <simon@josefsson.org>.
33325 2009-12-19  Bruno Haible  <bruno@clisp.org>
33327         fflush: tweak
33328         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33329         * lib/fseeko.c (rpl_fseeko): Likewise.
33331 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33333         * lib/gl_list.h: Fix typo in comment.
33335 2009-12-16  Eric Blake  <ebb9@byu.net>
33337         fcntl: use to simplify other modules
33338         * modules/cloexec (Depends-on): Add fcntl.
33339         * modules/fchdir (Depends-on): Likewise.
33340         * modules/fd-safer-flag (Depends-on): Likewise.
33341         * modules/unistd-safer (Depends-on): Likewise.
33342         * modules/dup3 (configure.ac): Set module indicator.
33343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33344         missing.
33345         * lib/fchdir.c (_gl_register_dup): Fix comment.
33346         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33347         * lib/dup-safer.c (dup_safer): Likewise.
33348         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33349         * lib/dup3.c (dup3): Likewise.
33350         * tests/test-fchdir.c (main): Enhance test.
33351         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33353         fcntl: port portions of fcntl to mingw
33354         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33355         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33356         replacement for mingw.
33357         * modules/fcntl (Description): Update.
33358         (Depends-on): Add dup2.
33359         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33360         * modules/fcntl-h (Makefile.am): Substitute it.
33361         * lib/fcntl.in.h (fcntl): Update declaration.
33362         (F_DUPFD, F_GETFD): New macros, when needed.
33363         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33364         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33365         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33366         we now guarantee.
33368         fcntl: work around cygwin bug in F_DUPFD
33369         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33370         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33371         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33372         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33373         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33375         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33376         * modules/fcntl (Files): List new files.
33377         (configure.ac): Run a test.
33378         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33379         * lib/fcntl.c (rpl_fcntl): Likewise.
33380         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33381         (gl_FCNTL_H): Always replace fcntl.h.
33382         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33383         * lib/fcntl.in.h (fcntl): Declare replacement.
33384         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33385         needed, plus a witness.
33386         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33387         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33388         * tests/test-fcntl.c: New file.
33389         * modules/fcntl-tests: Likewise.
33391         binary-io: avoid potential compilation warning
33392         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33393         directives.
33395         fflush: avoid compilation error on NetBSD
33396         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33397         between off_t and fpos_t, since the latter is sometimes a struct.
33398         * lib/fseeko.c (rpl_fseeko): Likewise.
33399         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33401 2009-12-15  Eric Blake  <ebb9@byu.net>
33403         fcntl-h, stdio, sys_ioctl: fix declarations
33404         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33405         function must not take arguments.
33406         * lib/sys_ioctl.in.h (ioctl): Likewise.
33407         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33408         (open): Add a link warning.
33410 2009-12-15  Jim Meyering  <meyering@redhat.com>
33412         areadlink, areadlink-with-size: relax license to LGPLv2+
33413         * modules/areadlink (License): Relax to LGPLv2+.
33414         * modules/areadlink-with-size (License): Likewise.
33416 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33417             Bruno Haible  <bruno@clisp.org>
33419         *printf: Fix memory leak.
33420         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33421         * lib/vfprintf.c (vfprintf): Likewise.
33422         * lib/dprintf.c (dprintf): Likewise.
33423         * lib/vdprintf.c (vdprintf): Likewise.
33425 2009-12-14  Eric Blake  <ebb9@byu.net>
33427         accept4: adjust module dependencies
33428         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33430         utimens: one more try at avoiding compiler warning
33431         * lib/utimens.c (lutimens): Lower scope of result.
33433 2009-12-13  Bruno Haible  <bruno@clisp.org>
33435         Move the malloc checking from module 'list' to new module 'xlist'.
33436         * modules/xlist: New file.
33437         * lib/gl_xlist.h: New file.
33438         * lib/gl_xlist.c: New file.
33439         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33440         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33441         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33442         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33443         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33444         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33445         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33446         gl_sortedlist_nx_add): New declarations.
33447         (struct gl_list_implementation): Rename and change methods accordingly.
33448         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33449         (gl_list_nx_create): Renamed from gl_list_create.
33450         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33451         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33452         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33453         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33454         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33455         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33456         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33457         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33458         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33459         gl_list_create_empty.
33460         (gl_list_nx_create): Renamed from gl_list_create.
33461         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33462         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33463         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33464         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33465         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33466         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33467         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33468         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33469         * lib/gl_array_list.c: Don't include xalloc.h.
33470         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33471         NULL upon out-of-memory.
33472         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33473         out-of-memory.
33474         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33475         Change return type to 'int'.
33476         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33477         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33478         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33479         upon out-of-memory.
33480         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33481         upon out-of-memory.
33482         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33483         upon out-of-memory.
33484         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33485         upon out-of-memory.
33486         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33487         out-of-memory.
33488         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33489         Update.
33490         (gl_array_list_implementation): Update.
33491         * lib/gl_carray_list.c: Don't include xalloc.h.
33492         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33493         Return NULL upon out-of-memory.
33494         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33495         out-of-memory.
33496         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33497         Change return type to 'int'.
33498         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33499         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33500         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33501         upon out-of-memory.
33502         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33503         upon out-of-memory.
33504         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33505         out-of-memory.
33506         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33507         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33508         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33509         Update.
33510         (gl_carray_list_implementation): Update.
33511         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33512         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33513         gl_linked_create_empty. Return NULL upon out-of-memory.
33514         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33515         out-of-memory.
33516         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33517         Change return type to 'int'. Return -1 upon out-of-memory.
33518         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33519         out-of-memory.
33520         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33521         upon out-of-memory.
33522         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33523         upon out-of-memory.
33524         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33525         NULL upon out-of-memory.
33526         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33527         upon out-of-memory.
33528         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33529         out-of-memory.
33530         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33531         Update.
33532         * lib/gl_linked_list.c: Don't include xalloc.h.
33533         (gl_linked_list_implementation): Update.
33534         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33535         (add_to_bucket): Change return type to 'int'.
33536         (gl_linkedhash_list_implementation): Update.
33537         * lib/gl_anytree_list1.h (free_subtree): New function.
33538         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33539         gl_tree_create_empty. Return NULL upon out-of-memory.
33540         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33541         Change return type to 'int'. Return -1 upon out-of-memory.
33542         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33543         out-of-memory.
33544         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33545         (gl_tree_remove_node): New function, moved here from
33546         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33547         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33548         Update.
33549         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33550         malloc, not xmalloc. Return NULL upon out-of-memory.
33551         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33552         out-of-memory.
33553         (gl_tree_remove_node_from_tree): New function, extracted from
33554         gl_tree_remove_node.
33555         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33556         upon out-of-memory.
33557         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33558         out-of-memory.
33559         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33560         upon out-of-memory.
33561         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33562         upon out-of-memory.
33563         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33564         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33565         not xmalloc. Return NULL upon out-of-memory.
33566         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33567         out-of-memory.
33568         (gl_tree_remove_node_from_tree): New function, extracted from
33569         gl_tree_remove_node.
33570         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33571         upon out-of-memory.
33572         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33573         out-of-memory.
33574         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33575         upon out-of-memory.
33576         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33577         upon out-of-memory.
33578         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33579         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33580         gl_anytree_list1.h before gl_anyavltree_list2.h.
33581         (gl_avltree_list_implementation): Update.
33582         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33583         gl_anytree_list1.h before gl_anyavltree_list2.h.
33584         (gl_rbtree_list_implementation): Update.
33585         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33586         Change return type to 'int'. Return -1 upon out-of-memory. Use
33587         __builtin_expect.
33588         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33589         (gl_avltreehash_list_implementation): Update.
33590         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33591         (gl_rbtreehash_list_implementation): Update.
33592         * modules/array-list (Depends-on): Remove xalloc.
33593         * modules/carray-list (Depends-on): Likewise.
33594         * modules/linked-list (Depends-on): Likewise.
33595         * modules/linkedhash-list (Depends-on): Likewise.
33596         * modules/avltree-list (Depends-on): Likewise.
33597         * modules/rbtree-list (Depends-on): Likewise.
33598         * modules/avltreehash-list (Depends-on): Likewise.
33599         * modules/rbtreehash-list (Depends-on): Likewise.
33601         * modules/xsublist: New file.
33602         * lib/gl_xsublist.h: New file.
33603         * lib/gl_xsublist.c: New file.
33604         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33605         (gl_sublist_nx_create): New declaration.
33606         * lib/gl_sublist.c: Don't include xalloc.h.
33607         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33608         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33609         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33610         Change return type to 'int'. Return -1 upon out-of-memory.
33611         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33612         upon out-of-memory.
33613         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33614         NULL upon out-of-memory.
33615         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33616         upon out-of-memory.
33617         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33618         NULL upon out-of-memory.
33619         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33620         NULL upon out-of-memory.
33621         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33622         upon out-of-memory.
33623         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33624         (gl_sublist_list_implementation): Update.
33625         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33626         upon out-of-memory.
33627         * modules/sublist (Depends-on): Remove xalloc.
33629         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33630         * tests/test-carray_list.c: Likewise.
33631         * tests/test-linked_list.c: Likewise.
33632         * tests/test-linkedhash_list.c: Likewise.
33633         * tests/test-avltree_list.c: Likewise.
33634         * tests/test-rbtree_list.c: Likewise.
33635         * tests/test-avltreehash_list.c: Likewise.
33636         * tests/test-rbtreehash_list.c: Likewise.
33637         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33638         * modules/carray-list-tests (Makefile.am): Likewise.
33639         * modules/linked-list-tests (Makefile.am): Likewise.
33640         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33641         * modules/avltree-list-tests (Makefile.am): Likewise.
33642         * modules/rbtree-list-tests (Makefile.am): Likewise.
33643         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33644         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33646         * NEWS: Mention the changes.
33648         * lib/clean-temp.c: Include gl_xlist.h.
33649         * modules/clean-temp (Depends-on): Add xlist.
33651         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33652         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33654         * tests/test-array_oset.c: Include gl_xlist.h.
33655         * modules/array-oset-tests (Depends-on): Add xlist.
33657         Reported by José E. Marchesi <jemarch@gnu.org>.
33659 2009-12-13  Bruno Haible  <bruno@clisp.org>
33661         Move the malloc checking from module 'oset' to new module 'xoset'.
33662         * modules/xoset: New file.
33663         * lib/gl_xoset.h: New file.
33664         * lib/gl_xoset.c: New file.
33665         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33666         declarations.
33667         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33668         (struct gl_oset_implementation): Rename and change methods accordingly.
33669         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33670         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33671         'int'. Mark as __warn_unused_result__.
33672         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33673         gl_oset_create_empty.
33674         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33675         'int'.
33676         * lib/gl_array_oset.c: Don't include xalloc.h.
33677         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33678         malloc, not xmalloc.
33679         (grow): Change return type to 'int'. Don't call xalloc_die.
33680         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33681         to 'int'.
33682         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33683         'int'.
33684         (gl_array_oset_implementation): Update.
33685         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33686         gl_tree_create_empty.
33687         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33688         'int'.
33689         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33690         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33691         xmalloc.
33692         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33693         not xmalloc.
33694         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33695         xmalloc.
33696         (gl_avltree_oset_implementation): Update.
33697         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33698         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33699         xmalloc.
33700         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33701         not xmalloc.
33702         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33703         xmalloc.
33704         (gl_rbtree_oset_implementation): Update.
33705         * modules/array-oset (Depends-on): Remove xalloc.
33706         * modules/avltree-oset (Depends-on): Likewise.
33707         * modules/rbtree-oset (Depends-on): Likewise.
33708         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33709         * tests/test-avltree_oset.c: Likewise.
33710         * tests/test-rbtree_oset.c: Likewise.
33711         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33712         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33713         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33714         * NEWS: Mention the change.
33716 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33718         maint.mk: allow a project to override release-prep commands
33719         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33720         commands into a new rule.
33721         (release-prep): New rule.
33722         (release-prep-hook): New overridable variable.
33724 2009-12-13  Bruno Haible  <bruno@clisp.org>
33726         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33728 2009-12-13  Jim Meyering  <meyering@redhat.com>
33730         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33731         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33733 2009-12-12  Bruno Haible  <bruno@clisp.org>
33735         duplocale: Tweak.
33736         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33738 2009-12-12  Karl Berry  <karl@gnu.org>
33740         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33742 2009-12-12  Bruno Haible  <bruno@clisp.org>
33744         * m4/po.m4: Undo incorrect untabification.
33746 2009-12-12  Bruno Haible  <bruno@clisp.org>
33748         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33749         * modules/c-strtod (Depends-on): Add locale.
33750         * modules/c-strtold (Depends-on): Likewise.
33752 2009-12-12  Bruno Haible  <bruno@clisp.org>
33754         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33756 2009-12-11  Eric Blake  <ebb9@byu.net>
33758         setenv: relax requirement in light of POSIX ruling
33759         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33760         not NULL.
33761         * tests/test-setenv.c (main): Relax test.
33762         * tests/test-unsetenv.c (main): Likewise.
33763         * doc/posix-functions/setenv.texi (setenv): Document this.
33764         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33766 2009-12-11  Bruno Haible  <bruno@clisp.org>
33768         New module 'fd-safer-flag'.
33769         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33770         * lib/dup-safer.c (dup_safer_flag): Remove function.
33771         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33772         * lib/fd-safer.c (fd_safer_flag): Remove function.
33773         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33774         * modules/cloexec (configure.ac): Drop indicator macro.
33775         * modules/fd-safer-flag: New file.
33776         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33777         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33778         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33780 2009-12-11  Bruno Haible  <bruno@clisp.org>
33782         Tests for module 'nl_langinfo'.
33783         * modules/nl_langinfo-tests: New file.
33784         * tests/test-nl_langinfo.sh: New file.
33785         * tests/test-nl_langinfo.c: New file.
33787         New module 'nl_langinfo'.
33788         * lib/nl_langinfo.c: New file.
33789         * m4/nl_langinfo.m4: New file.
33790         * modules/nl_langinfo: New file.
33791         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33793 2009-12-11  Bruno Haible  <bruno@clisp.org>
33795         Tests for module 'langinfo'.
33796         * modules/langinfo-tests: New file.
33797         * tests/test-langinfo.c: New file.
33799         New module 'langinfo'.
33800         * lib/langinfo.in.h: New file.
33801         * m4/langinfo_h.m4: New file.
33802         * modules/langinfo: New file.
33803         * doc/posix-headers/langinfo.texi: Mention the new module.
33805 2009-12-11  Bruno Haible  <bruno@clisp.org>
33807         * lib/config.charset: Untabify.
33809 2009-12-11  Bruno Haible  <bruno@clisp.org>
33811         * modules/unistd-safer (configure.ac): Drop indicator macro.
33813 2009-12-11  Bruno Haible  <bruno@clisp.org>
33815         Move pipe2-safer code to its own file.
33816         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33817         * lib/pipe-safer.c (pipe2_safer): Remove function.
33818         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33819         (Makefile.am): Add it to lib_SOURCES.
33821 2009-12-10  Bruno Haible  <bruno@clisp.org>
33823         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33825 2009-12-10  Bruno Haible  <bruno@clisp.org>
33827         Declare which arguments expect non-NULL values, for GCC and clang.
33828         * build-aux/arg-nonnull.h: New file.
33829         * modules/arg-nonnull: New file.
33830         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33831         (inet_ntop, inet_pton): Use it.
33832         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33833         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33834         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33835         (open, openat): Use it.
33836         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33837         (fnmatch): Use it.
33838         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33839         (getopt, getopt_long, getopt_long_only): Use it.
33840         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33841         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33842         Use it.
33843         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33844         (iconv_open): Use it.
33845         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33846         (strtoimax, strtoumax): Use it.
33847         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33848         (duplocale): Use it.
33849         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33850         (frexp, frexpl): Use it.
33851         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33852         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33853         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33854         (tsearch, tfind, tdelete, twalk): Use it.
33855         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33856         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33857         sigpending): Use it.
33858         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33859         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33860         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33861         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33862         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33863         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33864         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33865         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33866         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33867         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33868         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33869         Use it.
33870         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33871         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33872         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33873         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33874         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33875         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33876         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33877         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33878         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33879         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33880         strtoull, unsetenv): Use it.
33881         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33882         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33883         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33884         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33885         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33886         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33887         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33888         (strcasecmp, strncasecmp): Use it.
33889         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33890         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33891         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33892         rpl_setsockopt): Use it.
33893         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33894         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33895         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33896         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33897         (gettimeofday): Use it.
33898         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33899         (times): Use it.
33900         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33901         (uname): Use it.
33902         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33903         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33904         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33905         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33906         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33907         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33908         unlinkat, write): Use it.
33909         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33910         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33911         * lib/argv-iter.h: Include arg-nonnull.h.
33912         (_ATTRIBUTE_NONNULL_): Remove macro.
33913         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33914         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33915         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33916         optimization.
33917         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33918         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33919         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33920         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33921         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33922         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33923         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33924         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33925         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33926         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33927         * modules/dirent (Depends-on): Add arg-nonnull.
33928         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33929         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33930         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33931         * modules/fnmatch (Depends-on): Add arg-nonnull.
33932         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33933         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33934         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33935         * modules/glob (Depends-on): Add arg-nonnull.
33936         (Makefile.am): Insert arg-nonnull.h into glob.h.
33937         * modules/iconv_open (Depends-on): Add arg-nonnull.
33938         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33939         * modules/inttypes (Depends-on): Add arg-nonnull.
33940         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33941         * modules/locale (Depends-on): Add arg-nonnull.
33942         (Makefile.am): Insert arg-nonnull.h into locale.h.
33943         * modules/math (Depends-on): Add arg-nonnull.
33944         (Makefile.am): Insert arg-nonnull.h into math.h.
33945         * modules/netdb (Depends-on): Add arg-nonnull.
33946         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33947         * modules/search (Depends-on): Add arg-nonnull.
33948         (Makefile.am): Insert arg-nonnull.h into search.h.
33949         * modules/signal (Depends-on): Add arg-nonnull.
33950         (Makefile.am): Insert arg-nonnull.h into signal.h.
33951         * modules/spawn (Depends-on): Add arg-nonnull.
33952         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33953         * modules/stdio (Depends-on): Add arg-nonnull.
33954         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33955         * modules/stdlib (Depends-on): Add arg-nonnull.
33956         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33957         * modules/string (Depends-on): Add arg-nonnull.
33958         (Makefile.am): Insert arg-nonnull.h into string.h.
33959         * modules/strings (Depends-on): Add arg-nonnull.
33960         (Makefile.am): Insert arg-nonnull.h into strings.h.
33961         * modules/sys_socket (Depends-on): Add arg-nonnull.
33962         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33963         * modules/sys_stat (Depends-on): Add arg-nonnull.
33964         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33965         * modules/sys_time (Depends-on): Add arg-nonnull.
33966         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33967         * modules/sys_times (Depends-on): Add arg-nonnull.
33968         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33969         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33970         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33971         * modules/time (Depends-on): Add arg-nonnull.
33972         (Makefile.am): Insert arg-nonnull.h into time.h.
33973         * modules/unistd (Depends-on): Add arg-nonnull.
33974         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33975         * modules/wchar (Depends-on): Add arg-nonnull.
33976         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33977         * modules/argv-iter (Depends-on): Add arg-nonnull.
33978         * tests/test-canonicalize.c (null_ptr): New function.
33979         (main): Use it.
33980         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33981         (main): Use it.
33982         * tests/test-memmem.c (null_ptr): New function.
33983         (main): Use it.
33984         Reported by Jim Meyering.
33986 2009-12-10  Bruno Haible  <bruno@clisp.org>
33988         Use spaces for indentation, not tabs.
33989         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33990         * m4/*.m4: Untabify.
33991         * build-aux/*.h: Untabify.
33992         * tests/**/*.[hc]: Untabify.
33993         * README: New section "Indent with spaces, not TABs", based on
33994         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33995         * NEWS: Mention the change.
33997 2009-12-10  Bruno Haible  <bruno@clisp.org>
33999         pty test: Fix link error.
34000         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34001         test_pty_LDADD.
34003 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34005         * modules/pty: New file.
34006         * modules/pty-tests: New file.
34007         * m4/pty.m4: New file.
34008         * tests/test-pty.c: New file.
34009         * doc/glibc-headers/pty.texi: Modified.
34010         * doc/glibc-functions/forkpty.texi: Modified.
34011         * doc/glibc-functions/openpty.texi: Modified.
34013 2009-12-10  Bruno Haible  <bruno@clisp.org>
34015         Avoid syntax error in C++ mode.
34016         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34018 2009-12-10  Bruno Haible  <bruno@clisp.org>
34020         Use sed with option -e.
34021         * gnulib-tool (func_version, func_emit_copyright_notice,
34022         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34023         option -e to sed.
34024         * modules/link-warning (Makefile.am): Likewise.
34026 2009-12-10  Jim Meyering  <meyering@redhat.com>
34028         mgetgroups: do not write bytes beyond end of malloc'd buffer
34029         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34030         username, we call getgroups with a one-element-shorter buffer,
34031         but still told it the length was original, max_n_groups.
34033 2009-12-09  Eric Blake  <ebb9@byu.net>
34035         cloexec: relax license
34036         * modules/cloexec (Maintainer): Add myself.
34037         (License): Use LGPL, not GPL.
34039         link-warning: optimize generation
34040         * modules/link-warning (Makefile.am): Reduce process usage.
34042 2009-12-09  Bruno Haible  <bruno@clisp.org>
34044         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34045         workaround was added on 2009-11-17.
34047 2009-12-09  Jim Meyering  <meyering@redhat.com>
34048             Bruno Haible  <bruno@clisp.org>
34050         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34051         * modules/link-warning (Makefile.am): Make the comment-removing sed
34052         command more robust in the face of bootstrap-prepended comment lines.
34054 2009-12-09  Bruno Haible  <bruno@clisp.org>
34056         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34057         most one group.
34059 2009-12-09  Simon Josefsson <simon@josefsson.org>
34060             Bruno Haible  <bruno@clisp.org>
34062         * build-aux/link-warning.h: Add copyright notice.
34063         * modules/link-warning (Makefile.am): Generate link-warning.h from
34064         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34065         * NEWS: Mention change in link-warning module.
34066         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34067         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34068         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34069         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34070         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34071         * modules/math (Makefile.am): Add dependency to math.h.
34072         * modules/search (Makefile.am): Add dependency to search.h.
34073         * modules/signal (Makefile.am): Add dependency to signal.h.
34074         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34075         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34076         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34077         * modules/string (Makefile.am): Add dependency to string.h.
34078         * modules/strings (Makefile.am): Add dependency to strings.h.
34079         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34080         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34081         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34082         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34083         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34084         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34085         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34086         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34087         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34089 2009-12-09  Bruno Haible  <bruno@clisp.org>
34091         fchdir: Optimize away rpl_fstat when possible.
34092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34093         REPLACE_OPEN_DIRECTORY.
34094         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34096 2009-12-09  Bruno Haible  <bruno@clisp.org>
34098         * lib/fchdir.c: Update comment.
34100 2009-12-09  Bruno Haible  <bruno@clisp.org>
34102         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34104 2009-12-08  Eric Blake  <ebb9@byu.net>
34106         fchdir: avoid memory leak on re-registration.
34107         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34109 2009-12-08  Jim Meyering  <meyering@redhat.com>
34111         init.sh: avoid Solaris 10 /bin/sh portability problem
34112         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34113         sourced script:
34114           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34115           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34116           bar
34117         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34118         and two tests used that idiom.
34119         * tests/init.sh: Update suggested usage comments.
34120         (path_prepend_): New function, to be used in place
34121         of the --src-path=DIR option.
34122         (setup_): Move PATH-prepending code into path_prepend_.
34123         * tests/test-pread.sh: Adapt to new usage.
34124         * tests/test-xalloc-die.sh: Likewise.
34126 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34128         * doc/gnulib.texi (Glibc pty.h): Add.
34129         * doc/glibc-functions/forkpty.texi: Add.
34130         * doc/glibc-functions/openpty.texi: Add.
34131         Suggested by Bruno Haible.
34133 2009-12-08  Eric Blake  <ebb9@byu.net>
34135         fchdir: fix logic bugs
34136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34137         * tests/test-fchdir.c (main): Enhance test.
34138         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34139         is in use.
34141         dup2: fix logic bugs
34142         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34143         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34144         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34145         exists.
34146         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34148 2009-12-07  Eric Blake  <ebb9@byu.net>
34150         unlink: fix m4 detection
34151         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34153         unistd-safer: add unit test
34154         * modules/unistd-safer-tests: New file.
34155         * tests/test-dup-safer.c: Likewise.
34156         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34157         * tests/test-dup2.c (setmode): Likewise.
34158         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34160         cloexec: preserve text vs. binary across dup_cloexec
34161         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34162         mode.
34163         * modules/dup2-tests (Depends-on): Add binary-io.
34164         * modules/cloexec-tests (Depends-on): Likewise.
34165         * tests/test-dup2.c (setmode, is_mode): New helpers.
34166         (main): Add tests that translation mode is preserved.
34167         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34168         Reported by Bruno Haible.
34170         mgetgroups: reduce duplicate listings
34171         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34172         resulting array.
34173         * tests/test-chown.h (test_chown): Simplify client.
34174         * tests/test-lchown.h (test_lchown): Likewise.
34176 2009-12-06  Bruno Haible  <bruno@clisp.org>
34178         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34179         value.
34181 2009-12-06  Bruno Haible  <bruno@clisp.org>
34183         * lib/progname.c: Include stdio.h, stdlib.h.
34184         (set_program_name): Reject a NULL argument.
34186 2009-12-05  Eric Blake  <ebb9@byu.net>
34188         pipe2-safer: new module
34189         * modules/pipe2-safer: New file.
34190         * lib/unistd-safer.h (pipe2_safer): New prototype.
34191         * lib/unistd--.h (pipe2): New wrapper.
34192         * lib/pipe-safer.c (pipe2_safer): New function.
34193         * modules/pipe (Depends-on): Add pipe2-safer.
34194         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34196         stdlib-safer: preserve cloexec flag for mkostemp[s]
34197         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34198         fd_safer_flag.
34200         unistd-safer: allow preservation of cloexec status via flag
34201         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34202         prototypes.
34203         * lib/dup-safer.c (dup_safer_flag): New function.
34204         * lib/fd-safer.c (fd_safer_flag): Likewise.
34205         * modules/cloexec (configure.ac): Set witness.
34207         test-dup2: enhance test
34208         * modules/dup2-tests (Depends-on): Add cloexec.
34209         * tests/test-dup2.c (main): Enhance test.
34211         cloexec: add dup_cloexec
34212         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34213         header and comments.
34214         * lib/cloexec.c (set_cloexec_flag): Add comments.
34215         (dup_cloexec): New function, with mingw implementation borrowed
34216         from...
34217         * lib/w32spawn.h (dup_noinherit): ...here.
34218         * modules/execute (Depends-on): Add cloexec.
34219         * modules/pipe (Depends-on): Likewise.
34220         * modules/cloexec (Depends-on): Add dup2.
34221         * modules/cloexec-tests (Files): New file.
34222         * tests/test-cloexec.c: Likewise.
34224         test-xalloc-die: fix test for mingw
34225         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34226         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34227         directory and .exe suffix off argv[0] output.
34229         test-fseeko: fix test for mingw
34230         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34231         than undefining fseek, so test will pass on mingw.
34233 2009-12-05  Bruno Haible  <bruno@clisp.org>
34235         * lib/progname.h (set_program_name): Clarify specification.
34236         * lib/progname.c (set_program_name): Likewise.
34237         Reported by Jim Meyering.
34239 2009-12-05  Jim Meyering  <meyering@redhat.com>
34241         maint.mk: backslash-escape parens in default regexp
34242         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34243         backslash-escape the literal parentheses.
34245         maint.mk: news-date-check: use grep -E
34246         * top/maint.mk (today): Define a Make variable, not a...
34247         (news-date-check): ...shell variable.
34248         (news-date-regexp): Use the Make variable.
34249         Use grep's -E option.  Change the failing diagnostic to mention
34250         the variable, $(news-date-regexp).
34252 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34254         maintainer-makefile: allow customization of NEWS entry format
34255         * top/maint.mk (news-date-regexp): New overridable variable.
34256         (news-date-check): Use it.
34258 2009-12-04  Eric Blake  <ebb9@byu.net>
34260         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34261         * lib/mgetgroups.h (xgetgroups): New prototype.
34262         * lib/mgetgroups.c (xgetgroups): New wrapper.
34263         (mgetgroups): Handle ENOSYS.
34264         * modules/mgetgroups (Depends-on): Add realloc.
34265         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34267         mgetgroups: avoid argument promotion issues with -1
34268         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34269         for invalid gid_t.
34270         * tests/test-chown.h (getegid, test_chown): Likewise.
34271         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34273 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34275         exclude: Fix header file problems.
34276         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34278 2009-12-01  Jim Meyering  <meyering@redhat.com>
34280         fts: fts_open: do not let an empty string cause immediate failure
34281         This is required in support of GNU rm, for which the command
34282         "rm A '' B" must process and remove both A and B, in spite of
34283         the empty string argument.
34284         * lib/fts.c (fts_open): Do not let the presence of an empty string
34285         cause fts_open to fail immediately.  Most fts-using tools must be
34286         able to process all arguments, in order, and can be expected to
34287         diagnose such arguments themselves.
34289 2009-11-30  Eric Blake  <ebb9@byu.net>
34291         utimens: fix compilation error
34292         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34293         Declare variable at right scope.
34295 2009-11-29  Jim Meyering  <meyering@redhat.com>
34297         bootstrap: handle perl-5.11's changed --version output
34298         * build-aux/bootstrap (get_version): Handle perl separately,
34299         since perl-5.11's --version output is different.
34301 2009-11-28  Jim Meyering  <meyering@redhat.com>
34303         userspec: depend on the inttostr module, too
34304         * modules/userspec (Depends-on): Add inttostr.
34306         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34307         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34308         number of MAXUID when it evaluates to (uid_t) -1.
34309         Likewise for group ID.  Reported by Matt McCutchen in
34310         <http://savannah.gnu.org/bugs/?28113>
34312         userspec: reformat to use spaces, not TABs
34313         * lib/userspec.c: Expand TABs to spaces.
34314         Add Emacs' "indent-tabs-mode: nil" hint.
34316 2009-11-27  Eric Blake  <ebb9@byu.net>
34318         getopt-gnu: flush out another BSD bug
34319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34320         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34321         flush out BSD bug.
34322         * tests/test-getopt.h (test_getopt): End lists with NULL.
34323         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34324         (test_getopt_long_posix): Enhance test.
34325         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34326         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34327         getopt-gnu.
34328         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34329         Likewise.
34331 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34333         * modules/idpriv-droptemp-tests (Notice): Fix text.
34335 2009-11-27  Jim Meyering  <meyering@redhat.com>
34337         test-xalloc-die: avoid spurious failure due to libtool argv difference
34338         In a libtool-enabled project, this test would fail due to a difference
34339         in the emitted program name, e.g.,
34340         -test-xalloc-die: memory exhausted
34341         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34342         Use program to avoid that.
34343         * modules/xalloc-die-tests (Depends-on): Add progname.
34344         * tests/test-xalloc-die.c: Include progname.h".
34345         (program_name): Remove decl.
34346         (main): Call set_program_name.
34347         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34349 2009-11-26  Richard Jones  <rjones@redhat.com>
34351         w32sock: leave win32 error in place.
34352         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34354 2009-11-26  Eric Blake  <ebb9@byu.net>
34356         init.sh: suggest to use skip_ and fail_ functions in comments
34357         * tests/init.sh: Add a sentence.
34359 2009-11-25  Bruno Haible  <bruno@clisp.org>
34361         init.sh: add documentation in comments
34362         * tests/init.sh: Add some developer and user documentation.
34364 2009-11-26  Jim Meyering  <meyering@redhat.com>
34366         init.sh: accommodate even those who specify bogus srcdir manually
34367         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34368         configure-time tests to be sanitized, so that there is no need to
34369         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34370         (with no double quotes) suffices.  However, since tests may be
34371         invoked manually, and since you may explicitly set srcdir to the
34372         name of a directory containing spaces, do quote its uses here.
34373         * tests/test-pread.sh: Likewise.
34374         Suggested by Bruno Haible.
34376         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34377         * tests/test-pread.sh: Write no data into the pipe, because
34378         test-pread actually reads none.  This avoids a diagnostic,
34379         "bash: echo: write error: Broken pipe", that arises in the unusual
34380         event something is ignoring SIGPIPE, and might be interpreted
34381         as some sort of failure.  Reported by Bruno Haible.
34383 2009-11-25  Jim Meyering  <meyering@redhat.com>
34385         test-pread: cover failure with ESPIPE and EINVAL
34386         * tests/test-pread.c (main): Test for failure, too.
34387         * tests/test-pread.sh: Invoke with stdin on a pipe.
34388         Suggested by Eric Blake.
34390         pread: improvement and fix
34391         * modules/pread (Depends-on): Depend on lseek, for portability to
34392         e.g., mingw.  Suggested by Eric Blake.
34393         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34395         unistd.in.h: correct declaration of pread
34396         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34397         Reported by Richard W.M. Jones.
34399         test-pread.sh: distribute the test script
34400         * modules/pread-tests (Files): Include test-pread.sh.
34402         test-pread.sh: clean up
34403         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34404         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34405         That is unnecessary, since it's always ".".
34406         Suggestion from Eric Blake.
34408         test-pread.sh: make executable
34409         * tests/test-pread.sh: Set executable bit.
34410         Reported by Eric Blake.
34412         correct typo in test-pread.sh
34413         * tests/test-pread.sh: Add #! line.
34415         test pread
34416         * tests/test-pread.c: New file.
34417         * tests/test-pread.sh: Likewise.
34418         * modules/pread-tests: Likewise.
34420         pread: new module
34421         * modules/pread: New file.
34422         * lib/unistd.in.h (pread): Define/declare.
34423         * lib/pread.c (pread): New file.
34424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34425         * modules/unistd (Makefile.am): Substitute witnesses.
34426         * doc/posix-functions/pread.texi (pread): Update.
34427         * MODULES.html.sh: Add pread.
34429 2009-11-25  Jim Meyering  <meyering@redhat.com>
34431         tests/init.sh: new file to be used via most *.sh tests
34432         * tests/init.sh: New file.
34434 2009-11-25  Eric Blake  <ebb9@byu.net>
34436         utimens: work around older Linux failure with symlinks
34437         * lib/utimens.c (lutimensat_works_really): New variable.
34438         (fdutimens, lutimens): Use it to manage kernels that support
34439         nanosecond times on files, but not on symlinks.
34440         Reported by OndÅ™ej Vašík.
34442         utimes: fix configure grammar
34443         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34445 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34447         regex: Fix fastmap for multibyte character ranges.
34448         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34449         characters when a multibyte character range is included.
34451 2009-11-22  Andy Wingo  <wingo@pobox.com>
34453         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34454         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34456 2009-11-24  Bruno Haible  <bruno@clisp.org>
34458         doc: Most *_l functions exist in MacOS X 10.5.
34459         * doc/posix-functions/duplocale.texi: Update platforms list.
34460         * doc/posix-functions/freelocale.texi: Likewise.
34461         * doc/posix-functions/newlocale.texi: Likewise.
34462         * doc/posix-functions/uselocale.texi: Likewise.
34463         * doc/posix-functions/isalnum_l.texi: Likewise.
34464         * doc/posix-functions/isalpha_l.texi: Likewise.
34465         * doc/posix-functions/isblank_l.texi: Likewise.
34466         * doc/posix-functions/iscntrl_l.texi: Likewise.
34467         * doc/posix-functions/isdigit_l.texi: Likewise.
34468         * doc/posix-functions/isgraph_l.texi: Likewise.
34469         * doc/posix-functions/islower_l.texi: Likewise.
34470         * doc/posix-functions/isprint_l.texi: Likewise.
34471         * doc/posix-functions/ispunct_l.texi: Likewise.
34472         * doc/posix-functions/isspace_l.texi: Likewise.
34473         * doc/posix-functions/isupper_l.texi: Likewise.
34474         * doc/posix-functions/iswalnum_l.texi: Likewise.
34475         * doc/posix-functions/iswalpha_l.texi: Likewise.
34476         * doc/posix-functions/iswblank_l.texi: Likewise.
34477         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34478         * doc/posix-functions/iswctype_l.texi: Likewise.
34479         * doc/posix-functions/iswdigit_l.texi: Likewise.
34480         * doc/posix-functions/iswgraph_l.texi: Likewise.
34481         * doc/posix-functions/iswlower_l.texi: Likewise.
34482         * doc/posix-functions/iswprint_l.texi: Likewise.
34483         * doc/posix-functions/iswpunct_l.texi: Likewise.
34484         * doc/posix-functions/iswspace_l.texi: Likewise.
34485         * doc/posix-functions/iswupper_l.texi: Likewise.
34486         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34487         * doc/posix-functions/isxdigit_l.texi: Likewise.
34488         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34489         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34490         * doc/posix-functions/strcoll_l.texi: Likewise.
34491         * doc/posix-functions/strfmon_l.texi: Likewise.
34492         * doc/posix-functions/strftime_l.texi: Likewise.
34493         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34494         * doc/posix-functions/strxfrm_l.texi: Likewise.
34495         * doc/posix-functions/tolower_l.texi: Likewise.
34496         * doc/posix-functions/toupper_l.texi: Likewise.
34497         * doc/posix-functions/towctrans_l.texi: Likewise.
34498         * doc/posix-functions/towlower_l.texi: Likewise.
34499         * doc/posix-functions/towupper_l.texi: Likewise.
34500         * doc/posix-functions/wcscoll_l.texi: Likewise.
34501         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34502         * doc/posix-functions/wctrans_l.texi: Likewise.
34503         * doc/posix-functions/wctype_l.texi: Likewise.
34504         * doc/glibc-functions/strptime_l.texi: Likewise.
34505         * doc/glibc-functions/strtod_l.texi: Likewise.
34506         * doc/glibc-functions/strtof_l.texi: Likewise.
34507         * doc/glibc-functions/strtol_l.texi: Likewise.
34508         * doc/glibc-functions/strtold_l.texi: Likewise.
34509         * doc/glibc-functions/strtoll_l.texi: Likewise.
34510         * doc/glibc-functions/strtoul_l.texi: Likewise.
34511         * doc/glibc-functions/strtoull_l.texi: Likewise.
34512         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34513         * doc/glibc-functions/wcstod_l.texi: Likewise.
34514         * doc/glibc-functions/wcstof_l.texi: Likewise.
34515         * doc/glibc-functions/wcstol_l.texi: Likewise.
34516         * doc/glibc-functions/wcstold_l.texi: Likewise.
34517         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34518         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34519         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34521 2009-11-24  Bruno Haible  <bruno@clisp.org>
34523         duplocale: Fix logic bug.
34524         * lib/duplocale.c: Don't include <langinfo.h>.
34525         (_NL_LOCALE_NAME): Remove macro.
34526         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34527         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34529 2009-11-23  Jim Meyering  <meyering@redhat.com>
34531         test-update-copyright: don't hard-code /usr/bin/perl
34532         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34533         perl to print the current year.  Gilles Espinasse reported that
34534         the replaced use of perl was hard-coded as /usr/bin/perl.
34536 2009-11-23  Bruno Haible  <bruno@clisp.org>
34538         duplocale: Add support for glibc 2.3.x.
34539         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34541 2009-11-22  Bruno Haible  <bruno@clisp.org>
34543         vasnprintf: Tiny optimization.
34544         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34545         MacOS X.
34547 2009-11-22  Bruno Haible  <bruno@clisp.org>
34549         Tests for module 'duplocale'.
34550         * modules/duplocale-tests: New file.
34551         * tests/test-duplocale.c: New file.
34553         New module 'duplocale'.
34554         * m4/duplocale.m4: New file.
34555         * lib/locale.in.h (duplocale): New declaration.
34556         * lib/duplocale.c: New file.
34557         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34558         gl_LOCALE_H_DEFAULTS): New macros.
34559         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34560         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34561         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34562         REPLACE_DUPLOCALE.
34563         * modules/duplocale: New file.
34564         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34566 2009-11-22  Bruno Haible  <bruno@clisp.org>
34568         * modules/locale-tests (configure.ac): Test for newlocale function.
34569         * tests/test-locale.c: When the system has extended locale functions,
34570         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34572         locale: Make locale_t available when possible.
34573         * lib/locale.in.h: Include <xlocale.h> when it exists.
34574         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34575         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34576         * modules/locale (Depends-on): Add extensions.
34577         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34578         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34580 2009-11-22  Bruno Haible  <bruno@clisp.org>
34582         Add comments.
34583         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34584         invocation.
34585         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34586         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34587         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34589 2009-11-22  Bruno Haible  <bruno@clisp.org>
34591         error: account for the possibility of freopen (stdout).
34592         * lib/error.c: Include <unistd.h>.
34593         (flush_stdout): New function, extracted from error and error_at_line.
34594         Determine stdout's fd dynamically.
34595         (error, error_at_line): Invoke flush_stdout.
34596         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34597         * modules/error (Depends-on): Add unistd.
34599 2009-11-22  Bruno Haible  <bruno@clisp.org>
34601         diffseq: Add comment.
34602         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34604 2009-11-22  Jim Meyering  <meyering@redhat.com>
34606         c-stack: avoid defining an unused static function
34607         * lib/c-stack.c (find_stack_direction): Do not define this function
34608         when it will not be used.
34610         diffseq: avoid spurious gcc warnings
34611         * lib/diffseq.h (IF_LINT2): Define.
34612         (compareseq): Use it to initialize two members of "part".
34613         This avoids two used-uninitialized warnings.
34615 2009-11-21  Jim Meyering  <meyering@redhat.com>
34617         c-stack: avoid "ignoring return value of `write'" warning
34618         * lib/c-stack.c: Include "ignore-value.h".
34619         (die): Explicitly ignore each write return value.
34620         * modules/c-stack (Depends-on): Add ignore-value.
34622 2009-11-21  Bruno Haible  <bruno@clisp.org>
34624         diffseq: reduce scope of variable 'best'.
34625         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34626         variable, earlier used for two different purposes.
34628 2009-11-21  Jim Meyering  <meyering@redhat.com>
34630         diffseq: remove useless assignment to "best"
34631         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34632         assignment.  At that point "best" is already guaranteed to be zero.
34634 2009-11-20  Eric Blake  <ebb9@byu.net>
34636         build: mention ftp redirector in release announcements
34637         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34638         values that used to come from cfg.mk; mention FTP redirect URL.
34639         * build-aux/announce-gen: Mention the mirror list.
34640         Suggested by Karl Berry.
34642         nanosleep: improve port to mingw
34643         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34645         LIB_NANOSLEEP, but only when needed.
34646         * modules/select (Link): Document LIBSOCKET.
34647         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34648         enough.
34650         nanosleep: work around cygwin bug
34651         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34652         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34653         bug.
34654         (getnow): Delete, not needed.
34655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34656         LIB_CLOCK_GETTIME.
34657         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34658         clock-time, gettime.
34659         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34660         bug.
34661         * modules/nanosleep-tests: New test.
34662         * tests/test-nanosleep.c: New file.
34664         sleep: work around cygwin bug
34665         * lib/sleep.c (rpl_sleep): Work around the bug.
34666         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34667         (gl_PREREQ_SLEEP): Delete unused macro.
34668         * modules/sleep (Depends-on): Add verify.
34669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34670         * modules/unistd (Makefile.am): Substitute witness.
34671         * lib/unistd.in.h (sleep): Update prototype.
34672         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34673         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34674         * modules/sleep-tests (Depends-on): Check for alarm.
34676 2009-11-20  Jim Meyering  <meyering@redhat.com>
34678         maint.mk: improve sc_prohibit_magic_number_exit
34679         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34680         so it does not match uses like System.exit(1).
34681         Add comments showing how to correct all offenders.
34683 2009-11-19  Eric Blake  <ebb9@byu.net>
34685         xalloc-die-tests: add missing library
34686         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34688         test-xvasprintf: silence compiler warnings
34689         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34690         empty string from gcc.
34692 2009-11-19  Jim Meyering  <meyering@redhat.com>
34694         xfreopen: new module, from coreutils
34695         * modules/xfreopen: New module.
34696         * lib/xfreopen.c: New file.
34697         * lib/xfreopen.h: New file.
34698         * MODULES.html.sh (File stream based Input/Output"): Add it.
34700 2009-11-19  Eric Blake  <ebb9@byu.net>
34702         manywarnings: depend on warnings
34703         * modules/manywarnings (Depends-on): Add warnings.
34705         build: avoid compiler warnings
34706         * lib/select.c (rpl_select): Delete unused variable.
34707         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34709 2009-11-18  Eric Blake  <ebb9@byu.net>
34711         tests: avoid false negative with --with-packager
34712         * tests/test-version-etc.sh: Discard packager information.
34713         * tests/test-argp-version-etc-1.sh: Likewise.
34714         Reported by Mike Frysinger.
34716         utimens: fix regression on Solaris
34717         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34718         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34719         can only change fd timestamps via futimesat.  Instead, use an
34720         additional witness macro to avoid BSD bug.
34721         Reported by Jim Meyering.
34723 2009-11-17  Eric Blake  <ebb9@byu.net>
34725         usleep: use it to simplify tests
34726         * modules/stat-time-tests (Depends-on): Add usleep.
34727         (configure.ac): Drop usleep check.
34728         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34729         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34730         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34731         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34732         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34733         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34734         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34735         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34736         Likewise.
34737         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34738         * tests/test-lchown.h (nap): Likewise.
34739         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34740         * tests/test-stat-time.c (nap): Likewise.
34741         * tests/test-utimens-common.h (nap): Update comments.
34743         usleep: new module
34744         * modules/usleep: New file.
34745         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34746         * lib/usleep.c (usleep): Likewise.
34747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34748         * modules/unistd (Makefile.am): Substitute witnesses.
34749         * lib/unistd.in.h (usleep): Add declaration.
34750         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34751         * MODULES.html.sh (Date and time): Likewise.
34752         * modules/usleep-tests (Depends-on): New test.
34753         * tests/test-usleep.c: New file.
34755         chown: work around OpenBSD bug
34756         * lib/chown.c (rpl_chown): Work around the bug.
34757         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34758         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34759         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34760         * modules/chown (Depends-on): Add stdbool.
34761         * modules/lchown (Depends-on): Likewise.
34762         * doc/posix-functions/chown.texi (chown): Document the bug.
34763         * doc/posix-functions/lchown.texi (lchown): Likewise.
34764         * tests/test-lchown.h (test_chown): Relax test.
34766         mkstemp: avoid conflict with C++ keyword template
34767         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34768         * lib/mkostemp.c (mkostemp): Likewise.
34769         * lib/mkostemps.c (mkostemps): Likewise.
34770         * lib/mkstemp.c (mkstemp): Likewise.
34771         * lib/mkstemps.c (mkstemps): Likewise.
34773         xalloc-die-tests: optimize
34774         * tests/test-xalloc-die.sh: Reduce number of processes.
34776 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34778         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34779         patch from ludo@gnu.org (Ludovic Courtès).
34781 2009-11-17  Jim Meyering  <meyering@redhat.com>
34783         version-etc: use proper license string
34784         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34785         * modules/version-etc-fsf: Likewise.
34787 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34789         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34790         printed to stdout.  Deal with EOL differences.
34792 2009-11-17  Eric Blake  <ebb9@byu.net>
34794         unsetenv: work around Solaris bug
34795         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34796         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34797         Reported by Jim Meyering.
34799         vasnprintf: avoid compiler warnings
34800         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34801         variables.
34802         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34804 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34806         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34807         settings since xalloc-die is no longer the self test,
34808         xalloc-die.sh is.
34810 2009-11-17  Jim Meyering  <meyering@redhat.com>
34812         test-xalloc-die.sh: make the code agree with the commit log
34813         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34814         at the end, just in case you happen to have a test-xalloc-die
34815         program in some other PATH directory.
34817         test-xalloc-die.sh: fix a portability bug
34818         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34819         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34820         Otherwise, argv[0] (as often seen in diagnostics) would be too
34821         system-dependent, sometimes with, and sometimes without the leading "./".
34823         version-etc-fsf: relax license to LGPLv3+
34824         * modules/version-etc-fsf (License): Relax license.
34826 2009-11-16  Eric Blake  <ebb9@byu.net>
34828         xalloc-die-tests: avoid printing null pointer
34829         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34830         shell script.
34831         * tests/test-xalloc-die.c (program_name): Declare.
34832         * tests/test-xalloc-die.sh (tmpfiles): New file.
34834         setenv, unsetenv: work around various bugs
34835         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34836         (setenv) [HAVE_SETENV]: Work around bugs.
34837         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34838         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34839         for bugs.
34840         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34841         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34843         * modules/stdlib (Makefile.am): Update substitutions.
34844         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34845         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34846         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34847         * modules/setenv-tests: New test.
34848         * modules/unsetenv-tests: Likewise.
34849         * tests/test-setenv.c: New file.
34850         * tests/test-unsetenv.c: Likewise.
34852 2009-11-16  Jim Meyering  <meyering@redhat.com>
34854         version-etc: relax license to LGPLv3+
34855         * modules/version-etc (License): Relax license.
34857         better AC_REQUIRE expanded-before-required-warning avoidance
34858         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34859         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34860         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34861         which is no longer needed.
34863 2009-11-16  Eric Blake  <ebb9@byu.net>
34865         test-freading: clean up temporary file
34866         * tests/test-freading.c (main): Remove file on success, and use
34867         ASSERT more liberally.
34868         Reported by Jim Meyering.
34870 2009-11-16  Jim Meyering  <meyering@redhat.com>
34872         avoid new AC_REQUIRE expanded-before-required warnings
34873         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34874         merely using it.
34875         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34876         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34878 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34880         * tests/test-xalloc-die.c: New file.
34881         * modules/xalloc-die-tests: New file.
34882         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34883         XFAIL_TESTS so it can be appended by modules.
34885 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34887         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34888         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34890 2009-11-14  Eric Blake  <ebb9@byu.net>
34892         fnmatch: avoid compiler warning
34893         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34894         to silence compiler warning about mismatch signedness in ?:.
34895         Reported by Robert Millan.
34897         intprops: add double-inclusion guard
34898         * lib/intprops.h: Allow idempotent includes.
34899         Suggested by Bruce Korb.
34901         openat: detect Solaris fchownat bug
34902         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34903         penalizing glibc chownat when only lchownat is broken.
34904         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34905         trailing slash bugs.
34906         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34907         * modules/openat-tests (Files): Include more files.
34908         (Depends-on): Add mgetgroups, sleep, stat-time.
34909         (configure.ac): Add additional checks.
34910         (Makefile.am): Build new test.
34911         * tests/test-fchownat.c: New file.
34913         lchown: detect Solaris and FreeBSD bug
34914         * lib/lchown.c (rpl_lchown): Work around bug.
34915         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34917         * modules/unistd (Makefile.am): Populate it.
34918         * lib/unistd.in.h (lchown): Update declaration.
34919         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34920         * modules/lchown-tests: New file.
34921         * tests/test-lchown.h (test_lchown): Likewise.
34922         * tests/test-lchown.c (main): Likewise.
34924         chown: detect Solaris and FreeBSD bug
34925         * lib/chown.c (rpl_chown): Work around bug.
34926         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34927         (gl_PREREQ_CHOWN): Delete.
34928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34929         * modules/unistd (Makefile.am): Populate it.
34930         * lib/unistd.in.h (chown): Update declaration.
34931         * lib/lchown.c (chown): Update client.
34932         * modules/lchown (Depends-on): Add lstat.
34933         * doc/posix-functions/chown.texi (chown): Document the bug.
34934         * doc/posix-functions/getgroups.texi (getgroups): Document
34935         getgroups pitfall.
34936         * modules/chown-tests: New file.
34937         * tests/test-chown.h (test_chown): Likewise.
34938         * tests/test-chown.c (main): Likewise.
34940 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34942         gnulib-tool: correctly detect absence of m4 directories
34943         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34945 2009-11-14  Jim Meyering  <meyering@redhat.com>
34947         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34948         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34950 2009-11-14  John W. Eaton  <jwe@gnu.org>
34952         strftime.h: wrap funtion declaration in extern "C" block
34953         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34955 2009-11-13  Eric Blake  <ebb9@byu.net>
34957         getgroups: avoid compiler warning
34958         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34960         getgroups: work around FreeBSD bug
34961         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34962         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34963         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34964         * tests/test-getgroups.c (main): Fix buffer overrun.
34966         getgroups: avoid compilation failure
34967         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34968         * modules/getgroups (Depends-on): Add stdint.
34970 2009-11-13  Jim Meyering  <meyering@redhat.com>
34972         test-getgroups: avoid compilation failure
34973         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34975 2009-11-13  Eric Blake  <ebb9@byu.net>
34977         mgetgroups: new module, taken from coreutils
34978         * modules/mgetgroups: New file.
34979         * lib/mgetgroups.h: Likewise.
34980         * lib/mgetgroups.c (mgetgroups): Likewise.
34981         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34982         * MODULES.html.sh (Users and groups): Mention it.
34984         getgroups: don't expose GETGROUPS_T to user
34985         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34986         an element at a time if GETGROUPS_T is wrong size.
34987         * lib/getugroups.h (getugroups): Change signature.
34988         * lib/unistd.in.h (getgroups): Likewise.
34989         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34990         signature needs fixing.
34991         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34992         AC_TYPE_GETGROUPS.
34993         * modules/group-member (Depends-on): Add getgroups.
34994         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34995         (group_member): Rely on getgroups replacement.
34996         * lib/getugroups.c (getugroups): Use gid_t.
34997         * tests/test-getgroups.c (main): Likewise.
34998         * NEWS: Mention the signature change.
34999         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35000         problem with signature.
35001         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35002         GETGROUPS_T is still useful for setgroups.
35004         getgroups, getugroups: provide stubs for mingw
35005         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35006         * lib/getugroups.c (getugroups): Likewise.
35007         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35008         function.  Modernize replacement scheme.
35009         (gl_PREREQ_GETGROUPS): Delete.
35010         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35011         * modules/getgroups (configure.ac): Declare witness.
35012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35013         * modules/unistd (Depends-on): Substitute witness.
35014         * lib/unistd.in.h (getgroups): Declare replacement.
35016         getgroups: avoid calling exit
35017         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35018         drop xalloc.
35019         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35020         dependencies.
35021         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35022         exiting, in the rare case of malloc failure.
35024         getgroups: fix logic error
35025         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35026         has more than 20 groups.
35027         * modules/getgroups-tests: New test.
35028         * tests/test-getgroups.c: New file.
35030 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35032         * tests/test-base64.c: Improve.
35034 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35036         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35037         Blake <ebb9@byu.net>.
35039 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35041         * tests/test-xvasprintf.c: Add %s%s related checks.
35043 2009-11-12  Eric Blake  <ebb9@byu.net>
35045         version-etc: match standards.texi style
35046         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35047         and use <> only for URLs.
35049 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35051         fts: do not fail on a submount during traversal
35052         * lib/fts.c (fts_build): Read the stat info again after opening
35053         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35054         Original report at http://bugzilla.redhat.com/501848.
35056 2009-11-12  Jim Meyering  <meyering@redhat.com>
35058         bootstrap: sync from coreutils
35059         * build-aux/bootstrap (bootstrap_epilogue): New function.
35060         Use git_modules_config in one more place.  This make bootstrap's
35061         --gnulib-srcdir option more useful for testing.
35063         bootstrap: generalize autoheader check
35064         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35065         AC_CONFIG_HEADERS.
35067 2009-11-11  Eric Blake  <ebb9@byu.net>
35069         mkfifoat: use new modules for Solaris and BSD bugs
35070         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35071         * lib/mkfifoat.c (mknodat): Split...
35072         * lib/mknodat.c (mknodat): ...into new file.
35073         * modules/mkfifoat (Files): Ship new file.
35074         (Depends-on): Add mkfifo, mknod.
35075         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35076         (Depends-on): Add symlink.
35077         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35078         redundant with test_mkfifo.h.
35079         (do_mkfifoat, do_mknodat): New helpers.
35081         mknod: new module
35082         * modules/mknod: New file.
35083         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35084         * lib/mknod.c (mknod): Likewise.
35085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35086         defaults.
35087         * modules/sys_stat (Makefile.am): Substitute them.
35088         * lib/sys_stat.in.h (mknod): Declare replacement.
35089         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35090         Document it.
35091         * doc/posix-functions/mknod.texi (mknod): Likewise.
35092         * modules/mknod-tests: New test.
35093         * tests/test-mknod.c: Likewise.
35095         mkfifo: new module
35096         * modules/mkfifo: New file.
35097         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35098         * lib/mkfifo.c (mkfifo): Likewise.
35099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35100         defaults.
35101         * modules/sys_stat (Makefile.am): Substitute them.
35102         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35103         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35104         Document it.
35105         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35106         * modules/mkfifo-tests: New test.
35107         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35108         from test-mkfifoat.c.
35109         * tests/test-mkfifo.c: New file.
35111         readlink: detect FreeBSD bug
35112         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35113         slash on symlink.
35114         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35115         * tests/test-readlink.h (test_readlink): Enhance test.
35117         symlink: detect FreeBSD bug
35118         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35119         slash on symlink.
35120         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35121         * tests/test-symlink.h (test_symlink): Enhance test.
35123 2009-11-10  Eric Blake  <ebb9@byu.net>
35125         link: detect FreeBSD bug
35126         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35127         symlink.
35128         * doc/posix-functions/link.texi (link): Document the bug.
35129         * tests/test-link.h (test_link): Enhance test.
35130         * tests/test-linkat.c (main): Update caller.
35132         unlink, remove: detect FreeBSD bug
35133         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35134         slash on symlink.
35135         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35136         * doc/posix-functions/remove.texi (remove): Likewise.
35137         * tests/test-unlink.h (test_unlink): Enhance test.
35138         * tests/test-remove.c (main): Likewise.
35140 2009-11-09  Eric Blake  <ebb9@byu.net>
35142         rename: detect FreeBSD bug
35143         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35144         slash on symlink.
35145         * modules/renameat-tests (Depends-on): Add filenamecat.
35146         * tests/test-rename.h (test_rename): Allow one more errno.
35147         * tests/test-renameat.c (main): Likewise.
35148         * doc/posix-functions/rename.texi (rename): Document the bug.
35150         open: detect FreeBSD bug
35151         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35152         symlink.
35153         * doc/posix-functions/open.texi (open): Document the bug.
35154         * doc/posix-functions/utimes.texi (utimes): Likewise.
35155         * tests/test-open.h (test_open): Add parameters, and test symlink
35156         handling.
35157         * tests/test-open.c (main): Adjust caller.
35158         * tests/test-fcntl-safer.c (main): Likewise.
35159         * modules/open-tests (Depends-on): Add stdbool, symlink.
35160         * modules/fcntl-safer-tests (Depends-on): Likewise.
35161         * tests/test-openat.c (main): Add test-open tests.
35163         stat: detect FreeBSD bug
35164         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35165         symlink.
35166         * doc/posix-functions/stat.texi (stat): Document the bug.
35167         * tests/test-stat.h (test_stat_func): Add argument.
35168         * tests/test-stat.c (main): Adjust caller.
35169         * tests/test-fstatat.c (main): Likewise.
35170         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35171         Reported by Jim Meyering.
35173 2009-11-09  James Youngman  <jay@gnu.org>
35175         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35176         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35178 2009-11-08  Jim Meyering  <meyering@redhat.com>
35180         utimens: remove invalid futimesat call
35181         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35182         It used the file descriptor of the target file as the DIR_FD
35183         parameter and NULL as the file name.  That caused failure with
35184         errno == EFAULT on FreeBSD-8.0-rc2
35186 2009-11-07  Eric Blake  <ebb9@byu.net>
35188         fflush, freadseek: use fseeko, not fseek
35189         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35190         (clear_ungetc_buffer): Avoid potential problems on large files.
35191         * lib/freadseek.c (freadseek): Likewise.
35192         * modules/freadseek (Depends-on): Add fseeko.
35193         * modules/fseek (configure.ac): Set a witness.
35194         * tests/test-fflush.c (main): Use fseeko.
35195         * tests/test-fpurge.c (fseek): Disable link warning.
35196         * tests/test-freadable.c (fseek): Likewise.
35197         * tests/test-freading.c (fseek): Likewise.
35198         * tests/test-fseeko.c (fseek): Likewise.
35199         * tests/test-ftell.c (fseek): Likewise.
35200         * tests/test-ftello.c (fseek): Likewise.
35201         * tests/test-fwritable.c (fseek): Likewise.
35202         * tests/test-fwriting.c (fseek): Likewise.
35204 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35206         * modules/memchr (Depends-on): Drop getpagesize dependency.
35208 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35210         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35211         Reported by Ludovic Courtès.
35212         * build-aux/pmccabe2html: Improve example usage.
35213         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35215 2009-11-06  Jim Meyering  <meyering@redhat.com>
35217         do-release-commit-and-tag: New module.
35218         Automate the release-commit and tag process.
35219         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35220         * modules/do-release-commit-and-tag: New file.
35221         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35223 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35225         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35226         because test-select.c uses inet_pton.
35228 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35230         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35231         GETADDRINFO_LIB.  Bump serial number.
35232         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35233         Suggested by Eric Blake <ebb9@byu.net>.
35235 2009-11-05  Eric Blake  <ebb9@byu.net>
35237         strtod: detect darwin bug
35238         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35239         Reported by Leo Davis.
35241         freopen-safer: new module
35242         * modules/freopen-safer: New module.
35243         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35244         * lib/freopen-safer.c (freopen_safer): New file.
35245         * lib/stdio-safer.h (freopen_safer): New declaration.
35246         * lib/stdio--.h (freopen): New override.
35247         * MODULES.html.sh (File stream based Input/Output): Mention it.
35248         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35249         freopen-safer module.
35250         * doc/posix-functions/stderr.texi (stderr): Likewise.
35251         * doc/posix-functions/stdin.texi (stdin): Likewise.
35252         * doc/posix-functions/stdout.texi (stdout): Likewise.
35253         * modules/freopen-safer-tests: New test.
35254         * tests/test-reopen-safer.c: New file.
35256 2009-11-05  Jim Meyering  <meyering@redhat.com>
35258         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35259         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35261 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35263         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35265 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35267         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35269 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35271         Fix link error.
35272         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35273         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35275 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35277         * tests/test-func.c: Also test value of __func__.
35279 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35281         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35282         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35284 2009-11-05  Bruno Haible  <bruno@clisp.org>
35286         Fix link error.
35287         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35288         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35289         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35291 2009-11-05  Bruno Haible  <bruno@clisp.org>
35293         Tests for module 'inet_pton'.
35294         * modules/inet_pton-tests: New file.
35295         * tests/test-inet_pton.c: New file.
35297 2009-11-05  Bruno Haible  <bruno@clisp.org>
35299         Tests for module 'inet_ntop'.
35300         * modules/inet_ntop-tests: New file.
35301         * tests/test-inet_ntop.c: New file.
35303 2009-11-04  Eric Blake  <ebb9@byu.net>
35305         stdlib-safer: wrap all mkstemp variants
35306         * modules/mkostemp (configure.ac): Set witness.
35307         * modules/mkostemps (configure.ac): Likewise.
35308         * modules/mkstemps (configure.ac): Likewise.
35309         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35310         (mkstemps_safer): Wrap more functions.
35311         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35312         wrapping.
35313         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35314         (mkstemps_safer): Implement the wrappers.
35316         mkstemps, mkostemps: new modules
35317         * modules/mkostemps: New module.
35318         * modules/mkstemps: Likewise.
35319         * lib/mkostemps.c (mkostemps): New file.
35320         * lib/mkstemps.c (mkstemps): Likewise.
35321         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35322         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35324         * modules/stdlib (Makefile.am): Substitute them.
35325         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35326         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35327         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35328         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35329         * MODULES.html.sh (File system functions): Mention them.
35331         tempname: resync from glibc
35332         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35333         same values for __GT_FILE as glibc.  Abort even when assertions
35334         are disabled.
35335         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35336         match its value otherwise.  Allow idempotent inclusion.
35337         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35338         * lib/mkostemp.c (mkostemp): Likewise.
35339         * lib/mkstemp.c (mkstemp): Likewise.
35340         * lib/tmpfile.c (tmpfile): Likewise.
35341         * NEWS: Document this.
35343         utimens: fix use of futimens on older Linux
35344         * lib/utimens.c (fdutimens): Use updated, rather than original,
35345         timespec to avoid bug in older Linux kernel.
35346         Reported by Simon Josefsson.
35348 2009-11-04  Bruno Haible  <bruno@clisp.org>
35350         Make num_processors more flexible and consistent.
35351         * lib/nproc.h (enum nproc_query): New type.
35352         (num_processors): Add a 'query' argument.
35353         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35354         (num_processors): Add a 'query' argument. Test the value of the
35355         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35356         mingw, count the number of CPUs available for the current process.
35357         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35358         Check for sched_getaffinity and sched_getaffinity_np.
35359         * modules/nproc (Depends-on): Add c-ctype, extensions.
35360         * NEWS: Mention the change.
35362 2009-11-03  Bruno Haible  <bruno@clisp.org>
35364         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35366 2009-11-03  Jim Meyering  <meyering@redhat.com>
35368         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35369         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35370         if it is defined.
35372 2009-11-02  Eric Blake  <ebb9@byu.net>
35374         mktime, timegm: share common declaration
35375         * lib/mktime-internal.h: New file.
35376         * lib/mktime.c: Use it rather than open-coding a declaration.
35377         * lib/timegm.c: Likewise.
35378         * modules/mktime (Files): Ship it.
35379         * modules/timegm (Files): Likewise.
35380         Suggested by Bruno Haible.
35382         test-update-copyright: update test to match script changes
35383         * tests/test-update-copyright.sh: Avoid hard-coding perl
35384         location.  Don't update *.bak created by earlier runs.
35386 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35387             Simon Josefsson  <simon@josefsson.org>
35388             Bruno Haible  <bruno@clisp.org>
35390         Fix link error on Solaris 8.
35391         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35392         also in libnsl. Define also INET_PTON_LIB.
35393         * modules/inet_pton (Link): New section.
35395 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35396             Bruno Haible  <bruno@clisp.org>
35398         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35399         * modules/inet_ntop (Link): New section.
35400         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35402 2009-11-02  Eric Blake  <ebb9@byu.net>
35404         maint: avoid compiler warnings in m4 macros
35405         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35406         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35408 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35410         * m4/pmccabe2html.m4: Remove file.
35411         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35412         function.  Change maintainer.
35413         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35414         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35415         Courtès).
35417 2009-10-31  Eric Blake  <ebb9@byu.net>
35419         fseeko: fix m4 regression
35420         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35421         regression from 2009-10-27.
35422         Reported by Ralf Wildenhues.
35424 2009-10-31  Jim Meyering  <meyering@redhat.com>
35426         inttostr: aesthetics and improved (compile-time) safety
35427         Define inttype_is_signed rather than inttype_is_unsigned,
35428         since the sole use is via "#if inttype_is_signed".
35429         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35430         inttype_is_unsigned.
35431         * lib/offtostr.c (inttype_is_signed): Likewise.
35432         * lib/uinttostr.c (inttype_is_signed): Likewise.
35433         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35434         * lib/inttostr.c (inttostr): Use verify to cross-check the
35435         inttype_is_signed value and the signedness of the actual type.
35436         * modules/inttostr (Depends-on): Add verify.
35438 2009-10-30  Eric Blake  <ebb9@byu.net>
35440         build: avoid compiler warnings
35441         * lib/fchmodat.c (lchmod): Mark unused variables.
35442         * lib/getopt.c (_getopt_initialize): Likewise.
35443         * lib/mktime.c (__mktime_internal): Provide prototype.
35444         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35445         older gcc that do not understand #pragma GCC diagnostic.
35446         * lib/uinttostr.c (inttype_is_unsigned): Define.
35447         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35449 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35451         stat: fix compilation on AIX
35452         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35453         only see struct stat64.
35455 2009-10-30  Eric Blake  <ebb9@byu.net>
35457         exclude: make more robust
35458         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35459         rather than masking a coding bug.
35460         Suggested by Bruno Haible.
35462 2009-10-30  Jim Meyering  <meyering@redhat.com>
35464         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35465         Rather than putting #!/usr/bin/perl on the first line,
35466         start with a variant of what's recommended by "man perlrun" that
35467         invokes the first "perl" program from your shell's search path.
35468         * build-aux/gitlog-to-changelog: Replace #!... as above.
35469         Add a "Local Variables" perl mode setting.
35470         Prompted by a patch from Ludovic Courtès.
35471         Improved by Eric Blake.
35472         * build-aux/useless-if-before-free: Likewise.
35473         * build-aux/announce-gen: Likewise.
35474         * build-aux/update-copyright: Likewise.
35476 2009-10-29  Eric Blake  <ebb9@byu.net>
35478         filenamecat-lgpl: adjust clients
35479         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35480         filenamecat.
35481         * modules/renameat (Depends-on): Likewise.
35483         filenamecat: split into filenamecat-lgpl
35484         * modules/filenamecat-lgpl: New module.
35485         * modules/filenamecat (Files): Move library-safe files into
35486         filenamecat-lgpl.
35487         (Depends-on): Add filenamecat-lgpl.
35488         (configure.ac): Declare witness.
35489         * lib/filenamecat.h (file_name_concat): Only declare when using
35490         GPL module.
35491         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35492         Move...
35493         * lib/filenamecat-lgpl.c: ...into new file.
35494         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35495         (gl_FILE_NAME_CONCAT): Use it.
35496         * MODULES.html.sh (File system functions): Mention new module.
35498         argp: avoid memory leak
35499         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35500         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35501         base_name, since the latter malloc()s and can call exit().
35502         Leak introduced 2006-07-03.
35504         dirname-lgpl: adjust clients that don't need full dirname
35505         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35506         * modules/filenamecat (Depends-on): Likewise.
35507         * modules/linkat (Depends-on): Likewise.
35508         * modules/mkancesdirs (Depends-on): Likewise.
35509         * modules/mkdir (Depends-on): Likewise.
35510         * modules/openat (Depends-on): Likewise.
35511         * modules/savewd (Depends-on): Likewise.
35512         * modules/rename (Depends-on): Likewise.
35513         (License): Relax license.
35514         * modules/mkdir-tests (Depends-on): Drop progname.
35515         (Makefile.am): Delete unneeded LDADD.
35516         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35518         dirname: split into dirname-lgpl
35519         * modules/dirname-lgpl: New module.
35520         * modules/dirname (Files): Move library-safe files into
35521         dirname-lgpl.
35522         (Depends-on): Add dirname-lgpl.
35523         (configure.ac): Declare witness.
35524         * modules/double-slash-root (License): Relax license.
35525         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35526         module.
35527         * lib/dirname.c (dir_len, mdir_name): Move...
35528         * lib/dirname-lgpl.c: ...into new file.
35529         * lib/basename.c (last_component, base_len): Move...
35530         * lib/basename-lgpl.c: ...into new file.
35531         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35532         (gl_DIRNAME): Use it.
35533         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35534         Mention new module.
35535         * modules/dirname-tests (Depends-on): Add progname.
35536         * tests/test-dirname.c (program_name): Delete.
35538         mkdir: make safe for libraries
35539         * modules/mkdir (Depends-on): Drop xalloc.
35540         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35541         exit.
35543         tests: avoid some compiler warnings
35544         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35545         literals.
35546         * tests/test-memchr.c (main): Avoid type mismatch.
35547         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35548         * tests/test-base64.c (main): Likewise.
35549         * tests/test-getdelim.c (main): Likewise.
35550         * tests/test-gethostname.c (main): Likewise.
35551         * tests/test-getline.c (main): Likewise.
35552         * tests/test-netinet_in.c (main): Likewise.
35553         * tests/test-select.c (open_server_socket, main): Likewise.
35554         * tests/test-select-stdin.c (main): Likewise.
35555         * tests/test-sockets.c (main): Likewise.
35556         * tests/test-strsignal.c (main): Likewise.
35557         * tests/test-sys_select.c (main): Likewise.
35558         * tests/test-sys_socket.c (main): Likewise.
35559         * tests/test-u64.c (main): Likewise.
35560         * tests/test-xfprintf-posix.c (main): Likewise.
35561         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35563         sockets: avoid compiler warning
35564         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35566         maint: detect usage(1) and other suspicious exits
35567         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35569 2009-10-29  Jim Meyering  <meyering@redhat.com>
35571         timespec: long-to-int truncation could make timespec_cmp malfunction
35572         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35573         a multiple of 2^32 nanoseconds as no difference.
35575 2009-10-28  Jim Meyering  <meyering@redhat.com>
35577         fprintftime: wrap macro code argument in "do {...} while(0)"
35578         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35579         cpy macro must be a statement that can be followed by a semicolon.
35580         Now that the else clause contains a comment and is hence longer
35581         than one line, I require curly braces.  That in turn requires
35582         that we wrap this code block in the standard do...while(0).
35584         fprintftime: remove stray semicolon from previous change
35585         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35587         fprintftime: avoid a warning about ignored fwrite return value
35588         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35589         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35590         that is unsafe.
35591         * modules/fprintftime (Depends-on): Add ignore-value.
35593         exclude: avoid an unwarranted warning
35594         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35596 2009-10-27  Eric Blake  <ebb9@byu.net>
35598         fseek: avoid compilation failure when fflush is replaced
35599         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35600         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35601         module is in use.
35602         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35603         module is not in use; since REPLACE_FSEEK worked otherwise.
35604         (GNULIB_FTELLO): Likewise for ftell.
35605         Reported by Ian Beckwith and others.
35607 2009-10-27  Bruno Haible  <bruno@clisp.org>
35609         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35610         Reported by Jim Meyering.
35612 2009-10-27  Jim Meyering  <jim@meyering.net>
35613             Bruno Haible  <bruno@clisp.org>
35615         Avoid warning despite dropping the return value of fwrite.
35616         * lib/unicodeio.c: Include ignore-value.h.
35617         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35618         * modules/unicodeio (Depends-on): Add ignore-value.
35620 2009-10-26  Eric Blake  <ebb9@byu.net>
35622         areadlinkat: fix fallback path
35623         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35624         pointer and zero.
35626 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35628         Use a better IO block size for modern systems
35629         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35630         * lib/md2.c: Likewise.
35631         * lib/md4.c: Likewise.
35632         * lib/md5.c: Likewise.
35633         * lib/sha1.c: Likewise.
35634         * lib/sha256.c: Likewise.
35635         * lib/sha512.c: Likewise.
35637 2009-10-22  Eric Blake  <ebb9@byu.net>
35639         tests: avoid several compiler warnings
35640         * tests/test-getcwd.c (main): Avoid buffer underflow.
35641         * tests/test-getdate.c (main): String literals are not safe with
35642         putenv, so use setenv.  Declare unused argument.
35643         * modules/getdate-tests (Depends-on): Add setenv.
35644         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35645         problems with string literals in char *.
35646         * tests/test-hash.c (main): Avoid shadowing declaration.
35647         (insert_new): Treat string literals as char const *.
35648         * tests/test-getopt.h (test_getopt): Likewise.
35649         (getopt_loop): Alter types to minimize casting elsewhere.
35650         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35651         (test_getopt_long_posix): Likewise.
35652         (do_getopt_long): Add wrapper to minimize casting.
35653         * tests/test-atexit.c (clear_temp_file): Use void.
35654         * tests/test-areadlink-with-size.c (main): Declare unused
35655         arguments.
35656         * tests/test-areadlink.c (main): Likewise.
35657         * tests/test-areadlinkat-with-size.c (main): Likewise.
35658         * tests/test-areadlinkat.c (main): Likewise.
35659         * tests/test-canonicalize-lgpl.c (main): Likewise.
35660         * tests/test-canonicalize.c (main): Likewise.
35661         * tests/test-dirent-safer.c (main): Likewise.
35662         * tests/test-dirname.c (main): Likewise.
35663         * tests/test-dup2.c (main): Likewise.
35664         * tests/test-fchdir.c (main): Likewise.
35665         * tests/test-fcntl-h.c (main): Likewise.
35666         * tests/test-fcntl-safer.c (main): Likewise.
35667         * tests/test-fdopendir.c (main): Likewise.
35668         * tests/test-fdutimensat.c (main): Likewise.
35669         * tests/test-fflush.c (main): Likewise.
35670         * tests/test-filenamecat.c (main): Likewise.
35671         * tests/test-filevercmp.c (main): Likewise.
35672         * tests/test-fopen-safer.c (main): Likewise.
35673         * tests/test-fopen.c (main): Likewise.
35674         * tests/test-fpending.c (main): Likewise.
35675         * tests/test-fpurge.c (main): Likewise.
35676         * tests/test-freading.c (main): Likewise.
35677         * tests/test-fstatat.c (main): Likewise.
35678         * tests/test-fsync.c (main): Likewise.
35679         * tests/test-futimens.c (main): Likewise.
35680         * tests/test-getndelim2.c (main): Likewise.
35681         * tests/test-gettimeofday.c (main): Likewise.
35682         * tests/test-getopt.c (main): Likewise.
35683         * tests/test-i-ring.c (main): Likewise.
35684         * tests/test-inttypes.c (main): Likewise.
35685         * tests/test-link.c (main): Likewise.
35686         * tests/test-lstat.c (main): Likewise.
35687         * tests/test-math.c (main): Likewise.
35688         * tests/test-md5.c (main): Likewise.
35689         * tests/test-memchr2.c (main): Likewise.
35690         * tests/test-memrchr.c (main): Likewise.
35691         * tests/test-mkdir.c (main): Likewise.
35692         * tests/test-mkdirat.c (main): Likewise.
35693         * tests/test-mkfifoat.c (main): Likewise.
35694         * tests/test-open.c (main): Likewise.
35695         * tests/test-openat-safer.c (main): Likewise.
35696         * tests/test-openat.c (main): Likewise.
35697         * tests/test-quotearg.c (main): Likewise.
35698         * tests/test-rawmemchr.c (main): Likewise.
35699         * tests/test-readlink.c (main): Likewise.
35700         * tests/test-remove.c (main): Likewise.
35701         * tests/test-rename.c (main): Likewise.
35702         * tests/test-renameat.c (main): Likewise.
35703         * tests/test-rmdir.c (main): Likewise.
35704         * tests/test-sha1.c (main): Likewise.
35705         * tests/test-signal.c (main): Likewise.
35706         * tests/test-sigaction.c (main): Likewise.
35707         * tests/test-stat.c (main): Likewise.
35708         * tests/test-stat-time.c (main): Likewise.
35709         * tests/test-stddef.c (main): Likewise.
35710         * tests/test-stdint.c (main): Likewise.
35711         * tests/test-stdio.c (main): Likewise.
35712         * tests/test-stdlib.c (main): Likewise.
35713         * tests/test-strchrnul.c (main): Likewise.
35714         * tests/test-strerror.c (main): Likewise.
35715         * tests/test-string.c (main): Likewise.
35716         * tests/test-strtod.c (main): Likewise.
35717         * tests/test-strverscmp.c (main): Likewise.
35718         * tests/test-symlink.c (main): Likewise.
35719         * tests/test-symlinkat.c (main): Likewise.
35720         * tests/test-sys_stat.c (main): Likewise.
35721         * tests/test-sys_time.c (main): Likewise.
35722         * tests/test-time.c (main): Likewise.
35723         * tests/test-unistd.c (main): Likewise.
35724         * tests/test-unlink.c (main): Likewise.
35725         * tests/test-unlinkat.c (main): Likewise.
35726         * tests/test-utimens.c (main): Likewise.
35727         * tests/test-utimensat.c (main): Likewise.
35728         * tests/test-version-etc.c (main): Likewise.
35729         * tests/test-wchar.c (main): Likewise.
35730         * tests/test-wctype.c (main): Likewise.
35731         * tests/test-xprintf-posix.c (main): Likewise.
35732         * tests/test-posixtm.c (main): Likewise.
35733         (STREQ): Delete unused macro.
35734         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35735         shadowed variables.
35736         * tests/test-memchr.c (main): Likewise.
35738 2009-10-21  Eric Blake  <ebb9@byu.net>
35740         areadlinkat: avoid failure on older glibc
35741         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35742         rather than mis-comparing 0 against FUNC_RESULT of char*.
35744 2009-10-21  Bruno Haible  <bruno@clisp.org>
35746         * modules/stpncpy (License): Relicense under LGPLv2+.
35747         Reported by David Lutterkort <lutter@redhat.com>.
35749 2009-10-20  Eric Blake  <ebb9@byu.net>
35751         utimensat: work around Solaris 9 bug
35752         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35753         has trailing slash bugs.
35754         * tests/test-lutimens.h (test_lutimens): Enhance test.
35755         * tests/test-utimens.h (test_utimens): Likewise.
35756         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35757         * doc/posix-functions/utimes.texi (utimes): Likewise.
35758         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35759         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35760         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35761         * doc/posix-functions/futimens.texi (futimens): Likewise.
35763         fdutimensat: new module
35764         * modules/fdutimensat: New file.
35765         * lib/fdutimensat.c (fdutimensat): Likewise.
35766         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35767         * MODULES.html.sh (File system functions): Mention module.
35768         * modules/fdutimensat-tests: New test.
35769         * tests/test-fdutimensat.c: Likewise.
35771         doc: regenerate INSTALL
35772         * doc/INSTALL: Reflect recent autoconf update.
35773         * doc/INSTALL.ISO: Likewise.
35774         * doc/INSTALL.UTF-8: Likewise.
35776 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35778         acl: warn if ACL support is not detected
35779         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35781 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35783         * lib/nproc.h: Add extern "C" block for C++.
35785 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35786             Bruno Haible  <bruno@clisp.org>
35788         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35789         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35790         * doc/posix-functions/isalpha.texi: Likewise.
35791         * doc/posix-functions/isblank.texi: Likewise.
35792         * doc/posix-functions/iscntrl.texi: Likewise.
35793         * doc/posix-functions/isdigit.texi: Likewise.
35794         * doc/posix-functions/isgraph.texi: Likewise.
35795         * doc/posix-functions/islower.texi: Likewise.
35796         * doc/posix-functions/isprint.texi: Likewise.
35797         * doc/posix-functions/ispunct.texi: Likewise.
35798         * doc/posix-functions/isspace.texi: Likewise.
35799         * doc/posix-functions/isupper.texi: Likewise.
35800         * doc/posix-functions/isxdigit.texi: Likewise.
35802 2009-10-18  Bruno Haible  <bruno@clisp.org>
35804         Tests for module 'isblank'.
35805         * modules/isblank-tests: New file.
35806         * tests/test-isblank.c: New file.
35808         New module 'isblank'.
35809         * lib/isblank.c: New file.
35810         * m4/isblank.m4: New file.
35811         * modules/isblank: New file.
35812         * doc/posix-functions/isblank.texi: Mention the new module.
35814 2009-10-18  Bruno Haible  <bruno@clisp.org>
35816         New module 'ctype'.
35817         * lib/ctype.in.h: New file.
35818         * m4/ctype.m4: New file.
35819         * modules/ctype: New file.
35820         * doc/posix-headers/ctype.texi: Mention the new module.
35822 2009-10-18  Jim Meyering  <meyering@redhat.com>
35824         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35825         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35826         right after its initialization, rather than farther down.
35827         Keeping these in close proximity makes it easier to ensure
35828         that each such variable is initialized.  E.g.,
35830             LIB_CLOCK_GETTIME=
35831             AC_SUBST([LIB_CLOCK_GETTIME])
35833         This change also increments these serial numbers.
35834         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35838 2009-10-18  Bruno Haible  <bruno@clisp.org>
35840         Don't let environment variables perturb build.
35841         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35842         (gl_PREREQ_GETHRXTIME): ... not here.
35844 2009-10-18  Bruno Haible  <bruno@clisp.org>
35846         Avoid symlink attack in localcharset module.
35847         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35848         (O_NOFOLLOW): Define fallback.
35849         (get_charset_aliases): Don't open the file if it is a symbolic link.
35850         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35851         gl_FCNTL_H.
35852         (gl_FCNTL_H): Require it.
35853         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35854         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35855         Reported by Fergal Glynn <fglynn@veracode.com>.
35857 2009-10-18  Bruno Haible  <bruno@clisp.org>
35859         Implement nproc for mingw.
35860         * lib/nproc.c: Include <windows.h>
35861         (num_processors): On native Windows platforms, try GetSystemInfo.
35863 2009-10-18  Bruno Haible  <bruno@clisp.org>
35865         Implement nproc for IRIX.
35866         * lib/nproc.c: Include <sys/sysmp.h>.
35867         (num_processors): On IRIX systems, try sysmp.
35868         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35870 2009-10-18  Bruno Haible  <bruno@clisp.org>
35872         Implement nproc for HP-UX.
35873         * lib/nproc.c: Include <sys/pstat.h>
35874         (num_processors): On HP-UX systems, try pstat_getdynamic.
35875         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35876         pstat_getdynamic.
35878 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35879             Bruno Haible  <bruno@clisp.org>
35881         Implement nproc for NetBSD, OpenBSD.
35882         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35883         (ARRAY_SIZE): New macro.
35884         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35885         * m4/nproc.m4: New file.
35886         * modules/nproc (Files): Add m4/nproc.m4.
35887         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35888         (Makefile.am): Instead, augment lib_SOURCES.
35890 2009-10-18  Bruno Haible  <bruno@clisp.org>
35892         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35893         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35894         sys/param.h.
35896 2009-10-16  Eric Blake  <ebb9@byu.net>
35898         utimensat: new module
35899         * modules/utimensat: New file.
35900         * lib/utimensat.c (utimensat): Likewise.
35901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35902         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35903         so we can work around Linux bugs.
35904         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35905         * modules/sys_stat (Makefile.am): Substitute them.
35906         * lib/sys_stat.in.h (utimensat): Declare it.
35907         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35908         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35909         * modules/utimensat-tests: New test.
35910         * tests/test-utimensat.c: Likewise.
35912         utimens: let lutimens work on non-symlinks
35913         * lib/utimens.c (lutimens): Fall back to utimens rather than
35914         failing with ENOSYS, when file is not a symlink.
35915         (utimens): Reduce redirection.
35916         * tests/test-lutimens.h (test_lutimens): Update test to cover
35917         non-symlinks.
35918         * tests/test-utimens.h (test_utimens): Update test to cover
35919         symlinks.
35920         * tests/test-utimens.c (main): Update caller.
35922         utimens: cache whether utimensat syscall works
35923         * lib/utimens.c (utimensat_works_really): New cache variable.
35924         (fdutimens, lutimens): Use it to avoid failing syscall.
35926         test-stat-time, test-utimens: improve portability
35927         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35928         ext4 on alpha, and for cygwin.
35929         * tests/test-utimens-common.h: New file.
35930         (nap): Factor delays into single function.
35931         * tests/test-lutimens.h (test_lutimens): Use new header.
35932         * tests/test-futimens.h (test_futimens): Likewise.
35933         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35934         timestamps to occur from same machine, as was done previously for
35935         test_utimens.
35936         * modules/utimens-tests (Files): Ship new file.
35937         * modules/futimens-tests (Files): Likewise.
35938         Reported in part by Jim Meyering.
35940         sys_stat: sort replacement declarations
35941         * lib/sys_stat.in.h: Sort declarations.
35942         * lib/futimens.c (futimens): Fix typo.
35944 2009-10-15  Jim Meyering  <meyering@redhat.com>
35946         don't let environment settings perturb build
35947         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35948         could cause a configure-time and/or build-time malfunction.
35949         Typically, a configure-time function-in-library test is performed
35950         via code like this:
35952           LIB_VAR=
35953           AC_SUBST([LIB_VAR])
35954           prefix_saved_LIBS=$LIBS
35955             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35956                        [test "$ac_cv_search_FUNC" = "none required" ||
35957                         LIB_VAR=$ac_cv_search_FUNC])
35958           LIBS=$prefix_saved_LIBS
35960         However, in each of the files affected by this change, the LIB_VAR=
35961         initialization was omitted.  Thus, when set in the environment, its
35962         value would propagate into generated Makefiles when FUNC is not found
35963         in LIB_NAME.
35964         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35965         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35968 2009-10-14  Eric Blake  <ebb9@byu.net>
35970         fchdir: avoid infinite recursion in mingw
35971         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35972         recursing.
35974         test-stat-time: port to mingw
35975         * tests/test-stat-time.c (force_unlink): Return a value.
35976         (test_ctime) [W32]: Fix compilation error.
35977         (nap): Don't call usleep with too large an argument.  Use
35978         force_unlink.
35979         * doc/pastposix-functions/usleep.texi (usleep): Document the
35980         portability issue.
35982 2009-10-13  Jim Meyering  <meyering@redhat.com>
35984         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35985         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35986         * modules/pipe-filter-ii: Likewise.
35987         * modules/sys_socket-tests: Likewise.
35988         * modules/tsearch-tests: Likewise.
35989         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35990         (check): Depend on it.
35992 2009-10-12  Eric Blake  <ebb9@byu.net>
35994         utimens-tests: port to NFS file systems
35995         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35996         comparisons to avoid spurious failures from timestamp drift
35997         between NFS machines.
35999 2009-10-12  Eric Blake  <ebb9@byu.net>
36001         stat-time-tests: minor cleanups
36002         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36003         * tests/test-stat-time.c (nap): Separate assignment from call.
36004         Suggested by Paolo Bonzini and Bruno Haible.
36006         sys_stat: guarantee struct timespec
36007         * lib/sys_stat.in.h (includes): Always include <time.h>
36008         * modules/sys_stat (Depends-on): Add time.
36009         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36010         mode_t permission values.
36011         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36012         get at subsecond timestamps.
36014 2009-10-10  Eric Blake  <ebb9@byu.net>
36016         futimens: new module
36017         * modules/futimens: New file.
36018         * lib/futimens.c (futimens): Likewise.
36019         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36020         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36021         we can work around Linux bugs.
36022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36023         * modules/sys_stat (Makefile.am): Substitute them.
36024         * lib/sys_stat.in.h (futimens): Declare it.
36025         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36026         * doc/posix-functions/futimens.texi (futimens): Likewise.
36027         * modules/futimens-tests: New test.
36028         * tests/test-futimens.c: Likewise.
36030         utimens: introduce fdutimens
36031         * lib/utimens.h (fdutimens): New prototype.
36032         * lib/utimens.c (gl_futimens): Move guts...
36033         (fdutimens): ...to new interface.
36034         * tests/test-utimens.c (do_fdutimens): Use it.
36036         utimens: add UTIME_NOW and UTIME_OMIT support
36037         * lib/utimens.c (validate_timespec, update_timespec): New helper
36038         functions.
36039         (gl_futimens, lutimens): Use them.
36040         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36041         stdbool, sys_stat.
36042         (Link): Mention resulting library dependency.
36043         * modules/utimecmp (Link): Likewise.
36044         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36045         (Makefile.am): Pick up library dependency.
36046         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36047         definition.
36048         * tests/test-sys_stat.c: Test the definitions.
36049         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36050         * NEWS: Document library dependency.
36052         utimecmp: support symlink timestamps
36053         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36054         hashing when possible.  Use pathconf when available.
36055         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36056         * modules/utimecmp (Depends-on): Add lstat.
36058         utimens: add lutimens interface
36059         * lib/utimens.c (lutimens): New function.
36060         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36061         * lib/utimens.h (lutimens): Declare new interface.
36062         * tests/test-utimens.c (main): Enhance test.
36063         * tests/test-lutimens.h (test_lutimens): New file.
36064         * modules/utimens-tests (Files): Distribute it.
36065         (Depends-on): Add symlink.
36066         (configure.ac): Check for usleep.
36068         utimens: validate futimens usage
36069         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36070         fewer syscalls on failure later on.  Avoid compiler warning on
36071         mingw.
36072         * modules/utimens (Depends-on): Add dup2.
36074         utimens: add test
36075         * modules/utimens-tests: New test.
36076         * tests/test-utimens.h: New file.
36077         * tests/test-futimens.h: Likewise.
36078         * tests/test-utimens.c: Likewise.
36080         doc: mention timestamp portability issues
36081         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36082         instead.
36083         * doc/posix-functions/utime.texi (utime): Likewise.
36084         * doc/posix-functions/utimes.texi (utimes): Likewise.
36085         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36086         instead.
36087         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36088         module.
36089         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36090         Mention weakness with symlink timestamps.
36091         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36092         to utimensat/futimens instead.
36093         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36095         test-dup2: enhance test
36096         * tests/test-dup2.c (main): Also check AT_FDCWD.
36098         test-stat-time: avoid more spurious failures
36099         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36100         xfs; and avoid race if the two timestamps cross quantization edge.
36102         relocatable: prefer 'file system' over 'filesystem'
36103         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36104         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36105         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36106         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36107         * lib/relocatable.c (compute_curr_prefix): Likewise.
36109 2009-10-10  Jim Meyering  <meyering@redhat.com>
36111         stat-time-tests: check for the usleep function
36112         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36114 2009-10-10  Bruno Haible  <bruno@clisp.org>
36116         * modules/xnanosleep: Put the Link section after the Include section.
36118 2009-10-09  Eric Blake  <ebb9@byu.net>
36120         dup2: work around FreeBSD 6.1 bug
36121         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36122         * doc/posix-functions/dup2.texi (dup2): Document it.
36123         Reported by Nelson H. F. Beebe and Jim Meyering.
36125         test-stat-time: port to buggy NFS clients
36126         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36127         (test_ctime): Also skip test if mtime and ctime are skewed.
36129         maint: prefer 'file system' over 'filesystem'
36130         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36131         * doc/posix-functions/lstat.texi (lstat): Likewise.
36132         * lib/file-has-acl.c (file_has_acl): Likewise.
36133         * lib/fwriteerror.c [TEST]: Likewise.
36134         * tests/test-areadlink.h (test_areadlink): Likewise.
36135         * tests/test-areadlinkat-with-size.c (main): Likewise.
36136         * tests/test-areadlinkat.c (main): Likewise.
36137         * tests/test-canonicalize-lgpl.c (main): Likewise.
36138         * tests/test-canonicalize.c (main): Likewise.
36139         * tests/test-fstatat.c (main): Likewise.
36140         * tests/test-linkat.c (main): Likewise.
36141         * tests/test-lstat.h (test_lstat_func): Likewise.
36142         * tests/test-mkdir.h (test_mkdir): Likewise.
36143         * tests/test-readlink.h (test_readlink): Likewise.
36144         * tests/test-remove.c (main): Likewise.
36145         * tests/test-rename.h (test_rename): Likewise.
36146         * tests/test-renameat.c (main): Likewise.
36147         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36148         * tests/test-symlink.h (test_symlink): Likewise.
36149         * tests/test-symlinkat.c (main): Likewise.
36150         * tests/test-unlink.h (test_unlink_func): Likewise.
36151         * tests/test-unlinkat.c (main): Likewise.
36153         maint: make realtime library usage explicit
36154         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36155         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36156         * modules/settime (Link): Likewise.
36157         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36159         test-stat-time: speed up execution
36160         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36161         warning on mingw.
36162         (nap): New helper function.
36163         (prepare_test): Use it to reduce sleep time.
36164         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36165         execution.
36166         * modules/stat-time-tests (configure.ac): Check for usleep.
36168 2009-10-09  Jim Meyering  <meyering@redhat.com>
36170         selinux-h: always use getfilecon wrappers
36171         * lib/getfilecon.c: New file.
36172         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36173         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36174         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36175         (fgetfilecon): Provide a stub.
36176         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36177         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36178         file unconditionally.
36179         When <selinux/selinux.h> is found, arrange to use wrappers.
36180         * modules/selinux-h (Files): Add getfilecon.c.
36181         (Makefile.am): Substitute include-next-related bits
36182         into the now-always-generated selinux/selinux.h file.
36183         * doc/glibc-functions/lgetfilecon.texi: New file.
36184         * doc/glibc-functions/fgetfilecon.texi: New file.
36185         * doc/glibc-functions/getfilecon.texi: New file.
36186         * doc/glibc-functions/getfilecon-desc.texi: New file.
36187         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36188         which to pull in the new files.
36189         * MODULES.html.sh (Misc): Add selinux-h.
36191 2009-10-08  Jim Meyering  <meyering@redhat.com>
36193         unistd: fix comment typo
36194         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36196 2009-10-08  Eric Blake  <ebb9@byu.net>
36198         areadlink: use SIZE_MAX consistently
36199         * modules/areadlink (Depends-on): Add stdint.
36200         * modules/areadlink-with-size (Depends-on): Likewise.
36201         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36202         gives NULL; drop sys/types, since unistd gives size_t; and add
36203         stdint for SIZE_MAX.
36204         (SIZE_MAX): Rely on headers.
36205         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36206         and add stdint.
36207         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36208         (SIZE_MAX): Likewise.
36209         (INITIAL_BUF_SIZE): Turn into enum.
36210         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36212 2009-10-08  Jim Meyering  <meyering@redhat.com>
36214         areadlinkat: avoid compilation failure
36215         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36216         Fix typo in comment.
36218 2009-10-07  Eric Blake  <ebb9@byu.net>
36220         areadlinkat-with-size: new module
36221         * modules/areadlinkat-with-size: New module.
36222         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36223         * lib/areadlink.h (areadlinkat): Declare it.
36224         * MODULES.html.sh (File system functions): Mention it.
36225         * modules/areadlinkat-with-size-tests: New test.
36226         * tests/test-areadlinkat-with-size.c: New file.
36228         xreadlinkat: new module
36229         * modules/xreadlinkat: New module.
36230         * lib/xreadlinkat.c (xreadlinkat): New file.
36231         * lib/xreadlink.h (xreadlinkat): Declare it.
36232         * MODULES.html.sh (File system functions): Mention it.
36234         areadlinkat: new module
36235         * lib/at-func.c (FUNC_FAIL): New define.
36236         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36237         * modules/areadlinkat: New module.
36238         * lib/linkat.c (areadlinkat): Move...
36239         * lib/areadlinkat.c (areadlinkat): ...to new file.
36240         * lib/areadlink.h (areadlinkat): Declare it.
36241         * modules/linkat (Depends-on): Add areadlinkat.
36242         * MODULES.html.sh (File system functions): Mention it.
36243         * modules/areadlinkat-tests: New test.
36244         * tests/test-areadlinkat.c: New file.
36246         areadlink, areadlink-with-size: add tests
36247         * modules/areadlink-tests: New test.
36248         * modules/areadlink-with-size-tests: Likewise.
36249         * tests/test-areadlink.h: New file.
36250         * tests/test-areadlink.c: Likewise.
36251         * tests/test-areadlink-with-size.c: Likewise.
36253         maint: minor cleanups
36254         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36255         _UNUSED_PARAMETER_ instead.
36256         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36257         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36258         * modules/linkat-tests (Files): Distribute test-link.h.
36260         openat, utimens: whitespace cleanup
36261         * lib/openat.c: Prefer space throughout, rather than mix of 8
36262         spaces vs. tabs.
36263         * lib/at-func.c: Likewise.
36264         * lib/utimens.c: Likewise.
36266         openat: avoid using wrong fd
36267         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36268         working directory chooses same fd.
36269         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36271         mkdir, mkdirat: fix cygwin 1.5.x bug
36272         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36273         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36274         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36275         bug.
36276         (gl_PREREQ_MKDIR): Delete unused macro.
36277         * modules/mkdir (Files): Track file rename.
36278         (configure.ac): Update macro name.
36279         * modules/openat (Depends-on): Add mkdir.
36280         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36282         mkdir, mkdirat: add tests
36283         * modules/mkdir-tests: New test.
36284         * tests/test-mkdir.h: New file.
36285         * tests/test-mkdir.c: Likewise.
36286         * tests/test-mkdirat.c: Likewise.
36287         * modules/openat-tests (Files): Add new files.
36288         (Makefile.am): Run new test.
36290 2009-10-06  Eric Blake  <ebb9@byu.net>
36292         doc: tweak *at function documentation
36293         * doc/posix-functions/faccessat.texi (faccessat): Mention
36294         known issue with replacement.
36295         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36296         * doc/posix-functions/linkat.texi (linkat): Likewise.
36297         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36298         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36299         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36300         * doc/posix-functions/renameat.texi (renameat): Likewise.
36301         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36303         openat: fix GNU/Hurd bug in unlinkat
36304         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36305         broken.
36306         * doc/posix-functions/unlink.texi (unlink): Document this.
36307         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36309         fdopendir: fix GNU/Hurd bug
36310         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36311         allowing non-directory fds.
36312         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36313         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36314         * modules/dirent (Makefile.am): Substitute it.
36315         * lib/dirent.in.h (fdopendir): Declare replacement.
36316         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36317         * tests/test-fdopendir.c (main): Test something other than
36318         /dev/null, since on Hurd that behaves like a directory.
36320         test-symlink: port to GNU/Hurd
36321         * tests/test-symlink.h (test_symlink): Relax expected errno.
36323         doc: tweak more cygwin information
36324         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36325         now compatible with glibc.
36326         * doc/posix-functions/getopt.texi (getopt): Likewise.
36328         getopt-gnu: add another test
36329         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36330         guarantee behavior relied on by m4.
36331         * tests/test-getopt.c (main): Use it.
36332         * modules/getopt-posix-tests (Depends-on): Add setenv.
36333         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36335         getopt: fix compilation on darwin
36336         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36337         include.
36338         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36339         Reported by Ludovic Courtès.
36341 2009-10-06  Bruno Haible  <bruno@clisp.org>
36343         * modules/size_max (Description): Discourage its use.
36344         Reported by Simon Josefsson.
36346 2009-10-06  Jim Meyering  <meyering@redhat.com>
36348         linkat: avoid compilation failure
36349         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36351 2009-10-05  Eric Blake  <ebb9@byu.net>
36353         linkat: support Linux 2.6.17
36354         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36355         linkat on Linux, but allow cache variable override.
36356         * lib/linkat.c (rpl_linkat): Define override.
36357         * modules/linkat (Depends-on): Add symlinkat.
36358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36359         * modules/unistd (Makefile.am): Substitute it.
36360         * lib/unistd.in.h (linkat): Declare replacement.
36361         Reported by Pádraig Brady.
36363         quotearg: port test to systems with C.UTF-8 locale
36364         * tests/test-quotearg.c (struct result_strings): Add another
36365         member, differentiating between C.ASCII and C.UTF-8 handling.
36366         (compare_strings): Add parameter.
36367         (main): Adjust all callers.
36369         getopt: avoid clash with FreeBSD _getopt_internal
36370         * lib/getopt.in.h (_getopt_internal): Override the name.
36371         * lib/getopt_int.h (includes): Pick up any overrides.
36372         Reported by Reuben Thomas.
36374         hash: allow C89 compilation
36375         * lib/hash.c (check_tuning): Move declaration before statement.
36376         Reported by Reuben Thomas.
36378 2009-10-05  Karl Berry  <karl@gnu.org>
36380         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36382 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36383             Bruno Haible  <bruno@clisp.org>
36385         * lib/uname.c (uname): Use a table-driven algorithm to compute
36386         Windows NT versions.
36388 2009-10-04  Bruno Haible  <bruno@clisp.org>
36390         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36391         program_invocation_short_name.
36392         * modules/progname (configure.ac): Test for presence of
36393         program_invocation_short_name.
36394         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36396 2009-10-04  Bruno Haible  <bruno@clisp.org>
36398         * lib/progname.c (set_program_name): Fix comment.
36399         Reported by Jim Meyering.
36401 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36402             Bruno Haible  <bruno@clisp.org>
36404         * lib/uname.c: Include <string.h>.
36405         (uname): Do only one call to GetVersionEx in the common case.
36407 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36408             Bruno Haible  <bruno@clisp.org>
36410         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36411         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36412         (uname): Add support for Windows CE and various non-x86 CPU types.
36414 2009-10-03  Bruno Haible  <bruno@clisp.org>
36416         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36417         invocation to tests/configure.ac.
36418         Reported by Ian Beckwith <ianb@erislabs.net>.
36420 2009-10-02  Eric Blake  <ebb9@byu.net>
36422         fchdir: avoid compiler warning
36423         * lib/fchdir.c (canonicalize_file_name)
36424         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36426         test-open: support mingw errno values
36427         * tests/test-open.h (test_open): Relax test.
36428         * tests/test-fopen.h (test_fopen): Likewise.
36429         * tests/test-openat-safer.c (main): Likewise.
36431         open: fix opening directory on mingw
36432         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36434         test-open: on GNU/Hurd, /dev/null is a directory
36435         * tests/test-fopen.h (main): Rename...
36436         (test_fopen): ...to this.  Use a guaranteed non-directory when
36437         confirming open behavior on trailing slash.
36438         * tests/test-openat-safer.c (main): Likewise.
36439         * tests/test-open.h (main): Likewise....
36440         (test_open): ...to this.
36441         * tests/test-fopen.c (main): Adjust caller.
36442         * tests/test-fopen-safer.c (main): Likewise.
36443         * tests/test-open.c (main): Likewise.
36444         * tests/test-fcntl-safer.c (main): Likewise.
36445         Reported by Samuel Thibault.
36447         rename, fchdir: don't ignore chdir failure
36448         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36449         * lib/rename.c (rpl_rename) [W32]: Likewise.
36450         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36451         an empty destination directory if source cannot be renamed,
36452         although there is still possibility for failure.
36453         * doc/posix-functions/rename.texi (rename): Document the race.
36454         Reported by Jim Meyering.
36456         maint: cleanup whitespace in recent commits
36457         * lib/rename.c (rpl_rename): Remove tabs.
36458         * tests/test-link.h (test_link): Likewise.
36459         * lib/fchdir.c (get_name): Likewise.
36460         Reported by Jim Meyering.
36462 2009-10-02  Ben Pfaff  <blp@gnu.org>
36464         relocatable-prog-wrapper: Add missing dependency on
36465         double-slash-root.
36466         * modules/relocatable-prog-wrapper: Add dependency.
36467         Reported by Ian Beckwith <ianb@erislabs.net>.
36469 2009-10-02  Eric Blake  <ebb9@byu.net>
36471         renameat: fix Solaris bugs
36472         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36473         needed fixing.
36474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36475         * modules/stdio (Makefile.am): Substitute it.
36476         * lib/stdio.in.h (renameat): Declare replacement.
36477         * lib/renameat.c (rpl_renameat): Implement fix.
36479         renameat: new module
36480         * modules/renameat: New file.
36481         * lib/renameat.c (renameat): Likewise.
36482         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36484         * modules/stdio (Makefile.am): Substitute them.
36485         * lib/stdio.in.h (renameat): Declare it.
36486         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36487         * doc/posix-functions/renameat.texi (renameat): Likewise.
36488         * modules/renameat-tests: New test.
36489         * tests/test-renameat.c: Likewise.
36491         rename: fix mingw bugs
36492         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36493         directory overwrite bugs.
36495         rename: fix another cygwin 1.5 bug
36496         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36497         checks.
36498         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36499         unnecessary cygwin workarounds.  Also work around bug with moving
36500         full directory onto an empty one.
36501         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36503         rename-dest-slash: merge into rename module
36504         * modules/rename-dest-slash (Status): Mark obsolete.
36505         (Depends-on): Add rename.
36506         (Files): Let rename do it all.
36507         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36508         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36509         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36510         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36511         * lib/rename.c (rpl_rename): Update comments.
36513         rename: fix cygwin 1.5.x bugs
36514         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36515         * lib/rename.c (rpl_rename): Work around them.
36516         * modules/rename (Depends-on): Add same-inode.
36518         rename: fix Solaris 10 bug
36519         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36520         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36521         was the only bug.
36523         rename: fix Solaris 9 bug
36524         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36525         on non-directory.  Avoid calling exit.
36526         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36527         strdup.
36528         * modules/rename-tests (Depends-on): Drop lstat.
36529         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36530         (gl_PREREQ_RENAME): Delete unused macro.
36532         rename-dest-slash: fix NetBSD bug
36533         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36534         links.
36535         * modules/rename-dest-slash (Depends-on): Add same-inode.
36537         rename-tests: new test, exposes several platform bugs
36538         * modules/rename-tests: New file.
36539         * tests/test-rename.h: Likewise.
36540         * tests/test-rename.c: Likewise.
36541         * doc/posix-functions/rename.texi (rename): Improve documentation,
36542         including bugs that will eventually be fixed in gnulib.
36544 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36546         * lib/uname.c: Include <stdlib.h>
36547         (uname): Assume version info is available.
36549 2009-10-02  Jim Meyering  <meyering@redhat.com>
36551         gnu-web-doc-update: correct --help output
36552         * build-aux/gnu-web-doc-update: Make --help output relevant.
36554         gnu-web-doc-update: add standard options
36555         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36557         gnu-web-doc-update: New module.
36558         Use this script to automatically update the on-line web documentation
36559         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36560         * modules/gnu-web-doc-update: New file, from coreutils.
36561         * build-aux/gnu-web-doc-update: New script.
36563 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36565         link: LoadLibrary is not needed.
36566         * lib/link.c: Use GetModuleHandle.
36568 2009-10-01  Eric Blake  <ebb9@byu.net>
36570         getopt: bump serial number
36571         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36572         change.
36574         tests: tighten link, rmdir, and remove tests
36575         * tests/test-link.h (includes): No need to use <config.h> here.
36576         Clean up if directory hard link was created, otherwise test for
36577         trailing '.'.
36578         * tests/test-linkat.c (main): Simplify.
36579         * tests/test-remove.c (main): Enhance test for trailing '.'.
36580         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36582 2009-10-01  Jim Meyering  <meyering@redhat.com>
36584         maint.mk: requiring "make major" was annoying, for a "minor" release.
36585         What is intended is "stable", to contrast with alpha and beta,
36586         so require "make stable", not "make major".
36587         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36588         (get_tool_versions): Likewise.
36589         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36591 2009-09-30  Ben Pfaff  <blp@gnu.org>
36593         Fix broken build of replacement for Windows tmpfile().
36594         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36595         flags argument added along with the 'mkostemp' module.
36597 2009-09-28  Bruno Haible  <bruno@clisp.org>
36599         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36600         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36601         to 'remove_elt'.
36602         (gl_list_remove): Update.
36603         * lib/gl_list.c (gl_list_remove): Update.
36604         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36605         to 'remove_elt'.
36606         (gl_oset_remove): Update.
36607         * lib/gl_list.c (gl_oset_remove): Update.
36608         Reported by Eric Blake.
36610 2009-09-28  Eric Blake  <ebb9@byu.net>
36612         doc: mention yet more cygwin 1.7 status
36613         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36614         cygwin.
36615         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36616         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36618         argp: fix test failure
36619         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36620         that are not upper-case.  Pass correct range to tolower.
36622 2009-09-27  Jim Meyering  <meyering@redhat.com>
36624         test-yesno: work around sparc-dash here-document infelicity
36625         Without this change, the literal \177 byte in a here document
36626         would make dash 0.5.5.1-3 access uninitialized memory.
36627         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36628         Instead, use a marker, "@", and filter through tr to create the desired
36629         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36631 2009-09-27  Bruno Haible  <bruno@clisp.org>
36633         Disable untested support for new flavours of ACLs on AIX.
36634         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36635         progress.
36636         * lib/set-mode-acl.c (qset_acl): Likewise.
36638 2008-12-07  Bruno Haible  <bruno@clisp.org>
36640         Add support for new flavours of ACLs on AIX. (Untested.)
36641         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36642         (file_has_acl): Add support for newer AIX.
36643         * lib/set-mode-acl.c (qset_acl): Likewise.
36644         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36645         Rainer Tammer <tammer@tammer.net>.
36647 2009-09-26  Eric Blake  <ebb9@byu.net>
36649         argp: fix compilation of getopt
36650         * lib/getopt.in.h (includes): Use different guard than glibc.
36651         Reported by Sergey Poznyakoff.
36653         doc: mention more cygwin 1.7 status
36654         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36655         bug.
36656         * doc/posix-functions/execl.texi (execl): Likewise.
36657         * doc/posix-functions/execle.texi (execle): Likewise.
36658         * doc/posix-functions/execlp.texi (execlp): Likewise.
36659         * doc/posix-functions/execv.texi (execv): Likewise.
36660         * doc/posix-functions/execve.texi (execve): Likewise.
36661         * doc/posix-functions/execvp.texi (execvp): Likewise.
36662         * doc/glibc-functions/canonicalize_file_name.texi
36663         (canonicalize_file_name): Cygwin 1.7 now provides this.
36664         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36665         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36666         on AT_SYMLINK_NOFOLLOW.
36668 2009-09-24  Eric Blake  <ebb9@byu.net>
36670         test-linkat: make test more robust
36671         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36673         getopt: fix inclusion guards for cygwin
36674         * modules/getopt-posix (Depends-on): Add include-next.
36675         (Makefile.am): Substitute more items in replacement header.
36676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36677         <getopt.h>.
36678         * lib/getopt.in.h (includes): Use split inclusion guard, and
36679         prefer <getopt.h> over include <unistd.h> when one is present.
36680         (option): Also override name of 'struct option'.
36682         same-inode: revert prior change; it is not yet ready
36683         * NEWS: Undo mention of this change.
36684         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36685         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36686         * lib/cycle-check.c (cycle_check): Likewise.
36687         * lib/same.c (same_name): Likewise.
36688         * lib/at-func2.c (at_func2): Likewise.
36690 2009-09-23  Eric Blake  <ebb9@byu.net>
36692         linkat: new module
36693         * modules/linkat: New file.
36694         * lib/at-func2.c (at_func2): Likewise.
36695         * lib/linkat.c (linkat): Likewise.
36696         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36697         * lib/openat-priv.h (at_func2): Add declaration.
36698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36699         * modules/unistd (Makefile.am): Substitute them.
36700         * lib/unistd.in.h (linkat): Declare it.
36701         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36702         * doc/posix-functions/linkat.texi (linkat): Likewise.
36703         * doc/posix-functions/link.texi (link): Tweak wording.
36704         * tests/test-link.c (main): Move guts...
36705         * tests/test-link.h (test_link): ...into new file.
36706         * modules/linkat-tests: New test.
36707         * tests/test-linkat.c: Likewise.
36708         * modules/link-tests (Files): Ship new file.
36709         (Depends-on): Add stdbool.
36711         dirname: add library-safe mdir_name
36712         * lib/dirname.h (mdir_name): New prototype.
36713         * lib/dirname.c (dir_name): Move guts...
36714         (mdir_name): ...to new function that avoids xalloc_die.
36716         fchdir: another mingw fix
36717         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36718         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36719         on mingw (where it has not yet been ported), and make it optional
36720         elsewhere.
36721         (_gl_register_fd): Use it.
36723         same-inode: make SAME_INODE tri-state, to port to mingw
36724         * NEWS: Mention this change.
36725         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36726         st_ino always being 0.
36727         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36728         * lib/cycle-check.c (cycle_check): Likewise.
36729         * lib/same.c (same_name): Likewise.
36731         lstat: avoid mingw compilation error
36732         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36733         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36734         lstat ourselves.
36735         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36736         was adequate.
36737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36738         the checks for lstat.
36739         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36741         link: fix test failure on Solaris 9
36742         * lib/link.c (rpl_link): Don't assume link will catch bogus
36743         trailing slash on source.
36745         test-symlinkat: enhance test
36746         * tests/test-readlink.c (main): Move guts...
36747         * tests/test-readlink.h (test_readlink): ...into new file.
36748         * tests/test-symlink.c (main): Move guts...
36749         * tests/test-symlink.h (test_symlink): ...into new file.
36750         * tests/test-symlinkat.c (main): Use new files for further
36751         coverage.
36752         (do_symlink, do_readlink): New helper functions.
36753         * modules/symlink-tests (Files): Ship new file.
36754         (Depends-on): Add stdbool.
36755         * modules/readlink-tests (Files): Ship new file.
36756         (Depends-on): Add stdbool.
36757         * modules/symlinkat-tests (Files): Use new files.
36759 2009-09-23  Eric Blake  <ebb9@byu.net>
36761         readlink: document portability issue with symlink length
36762         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36763         systems have bogus st_size on symlinks, and mention the
36764         areadlink-with-size module.
36765         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36766         * doc/posix-functions/readlink.texi (readlink): Mention the
36767         areadlink module, and ERANGE failure.
36768         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36769         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36771         readlink: fix Solaris 9 bug with trailing slash
36772         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36773         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36774         * doc/posix-functions/readlink.texi (readlink): Document this.
36775         * modules/readlink-tests: New test.
36776         * tests/test-readlink.c: Likewise.
36778         readlink: fix cygwin 1.5.x bug with return type
36779         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36780         * lib/unistd.in.h (readlink): Use ssize_t.
36781         * lib/readlink.c (readlink): Likewise.
36782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36783         * modules/unistd (Makefile.am): Substitute it.
36784         * lib/unistd.in.h (readlink): Declare replacement.
36785         * doc/posix-functions/readlink.texi (readlink): Document this.
36787         symlink: use throughout gnulib
36788         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36789         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36790         symlink is not used.
36791         * modules/symlinkat (Depends-on): Add symlink.
36792         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36793         * modules/canonicalize-tests (Depends-on): Likewise.
36794         * modules/lstat-tests (Depends-on): Likewise.
36795         * modules/openat-tests (Depends-on): Likewise.
36796         * modules/remove-tests (Depends-on): Likewise.
36797         * modules/rmdir-tests (Depends-on): Likewise.
36798         * modules/unlink-tests (Depends-on): Likewise.
36799         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36800         * tests/test-canonicalize.c (symlink): Likewise.
36801         * tests/test-fstatat.c (symlink): Likewise.
36802         * tests/test-lstat.c (symlink): Likewise.
36803         * tests/test-remove.c (symlink): Likewise.
36804         * tests/test-rmdir.c (symlink): Likewise.
36805         * tests/test-unlink.c (symlink): Likewise.
36806         * tests/test-unlinkat.c (symlink): Likewise.
36808         symlink: new module, for Solaris 9 bug
36809         * modules/symlink: New file.
36810         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36811         * lib/symlink.c: Likewise.
36812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36813         * modules/unistd (Makefile.am): Substitute them.
36814         * lib/unistd.in.h (symlink): Declare replacement.
36815         * MODULES.html.sh (File system functions): Mention it.
36816         * doc/posix-functions/symlink.texi (symlink): Likewise.
36817         * modules/symlink-tests: New test.
36818         * tests/test-symlink.c: Likewise.
36820 2009-09-23  Bruno Haible  <bruno@clisp.org>
36822         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36823         when needed.
36824         Test case: gnulib-tool --import --with-tests atexit inttypes.
36825         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36827 2009-09-23  Bruno Haible  <bruno@clisp.org>
36829         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36830         subcommand, not in a subshell.
36832 2009-09-22  Eric Blake  <ebb9@byu.net>
36834         unistd: sort replacement declarations
36835         * lib/unistd.in.h: Sort declarations.
36837         open, openat: minor optimization
36838         * lib/open.c (open): If open succeeded, len is non-zero.
36839         * lib/openat.c (rpl_openat): Likewise.
36841         link-follow: ensure correct result
36842         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36843         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36844         distinguish between possible failures.
36846 2009-09-21  Eric Blake  <ebb9@byu.net>
36848         fts: avoid compiler warning
36849         * lib/fts.c (dirent_inode_sort_may_be_useful)
36850         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36852 2009-09-19  Bruno Haible  <bruno@clisp.org>
36854         * lib/progreloc.c (canonicalize_file_name): New declaration.
36856 2009-09-19  Eric Blake  <ebb9@byu.net>
36858         link: fix quoting
36859         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36861         openat: fix openat bugs on Solaris 9
36862         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36863         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36864         * modules/openat (Depends-on): Add open.
36865         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36866         * modules/fcntl-h (Makefile.am): Substitute it.
36867         * lib/fcntl.in.h (openat): Declare replacement.
36868         * doc/posix-functions/openat.texi (openat): Document this.
36870         openat: move fstatat and unlinkat into correct files
36871         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36872         compiled.
36873         * lib/openat.c (fstatat, unlinkat): Move...
36874         * lib/fstatat.c (fstatat): ...into correct files.
36875         * lib/unlinkat.c (unlinkat): Likewise.
36877         openat: fix unlinkat bugs on Solaris 9
36878         * lib/unlinkat.c (unlinkat): New file.
36879         * modules/openat (Depends-on): Add unlink.
36880         (Files): Distribute it.
36881         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36882         trailing slash behavior is broken.
36883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36884         * modules/unistd (Makefile.am): Substitute it.
36885         * lib/unistd.in.h (unlinkat): Declare replacement.
36886         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36888         openat: fix fstatat bugs on Solaris 9
36889         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36890         stat.
36891         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36893         test-unlinkat: enhance test, to expose Solaris 9 bug
36894         * tests/test-unlink.c (main): Factor guts...
36895         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36896         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36897         * tests/test-rmdir.c (main): Adjust caller.
36898         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36899         (unlinker): New helper function.
36900         (rmdirat): Enhance check.
36901         * modules/rmdir-tests (Depends-on): Add stdbool.
36902         * modules/unlink-tests (Depends-on): Likewise.
36903         (Files): Add test-unlink.h.
36904         * modules/openat-tests (Files): Likewise.
36905         (Depends-on): Add unlinkdir.
36907         test-fstatat: new test, to expose Solaris 9 bugs
36908         * tests/test-stat.c (main): Factor guts...
36909         * tests/test-stat.h (test_stat_func): ...into new file.
36910         * tests/test-lstat.c (main): Factor guts...
36911         * tests/test-lstat.h (test_lstat_func): ...into new file.
36912         * tests/test-fstatat.c: New file.
36913         * modules/stat-tests (Files): Add test-stat.h.
36914         * modules/lstat-tests (Files): Add test-lstat.h.
36915         (Depends-on): Add stdbool.
36916         * modules/openat-tests (Depends-on): Add pathmax.
36917         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36918         (Makefile.am): Run new test.
36920         remove: new module, for mingw and Solaris 9 bugs
36921         * modules/remove: New file.
36922         * lib/remove.c: Likewise.
36923         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36925         * modules/stdio (Makefile.am): Use them.
36926         * lib/stdio.in.h (remove): Declare replacement.
36927         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36928         * doc/posix-functions/remove.texi (remove): Likewise.
36929         * modules/remove-tests: New test.
36930         * tests/test-remove.c: Likewise.
36932         unlink: new module, for Solaris 9 bug
36933         * modules/unlink: New file.
36934         * lib/unlink.c: Likewise.
36935         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36937         * modules/unistd (Makefile.am): Use them.
36938         * lib/unistd.in.h (stat): Declare replacement.
36939         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36940         * doc/posix-functions/unlink.texi (unlink): Likewise.
36941         * modules/unlink-tests: New test.
36942         * tests/test-unlink.c: Likewise.
36944         lstat: fix Solaris 9 bug
36945         * lib/lstat.c (lstat): Also check for trailing slash on
36946         non-symlink, non-directories.  Use stat module to simplify logic.
36947         * doc/posix-functions/lstat.texi (lstat): Document it.
36948         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36949         (configure.ac): Check for symlink.
36950         * tests/test-lstat.c (main): Add more tests.
36952         stat: add as dependency to other modules
36953         * modules/chown (Depends-on): Add stat.
36954         * modules/euidaccess (Depends-on): Likewise.
36955         * modules/fchdir (Depends-on): Likewise.
36956         * modules/isdir (Depends-on): Likewise.
36957         * modules/link (Depends-on): Likewise.
36958         * modules/lstat (Depends-on): Likewise.
36959         * modules/mkdir-p (Depends-on): Likewise.
36960         * modules/modechange (Depends-on): Likewise.
36961         * modules/open (Depends-on): Likewise.
36962         * modules/readlink (Depends-on): Likewise.
36963         * modules/same (Depends-on): Likewise.
36965         stat: fix Solaris 9 bug
36966         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36967         slash.
36968         * lib/stat.c (rpl_stat): Work around it.
36969         * doc/posix-functions/stat.texi (stat): Update documentation.
36971         stat: new module, for mingw bug
36972         * modules/stat: New file.
36973         * lib/stat.c: Likewise.
36974         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36976         * modules/sys_stat (Makefile.am): Use them.
36977         * lib/sys_stat.in.h (stat): Declare replacement.
36978         * lib/openat.c (fstatat): Deal with lstat and stat being function
36979         macros.
36980         * modules/openat (Depends-on): Add inline.
36981         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36982         * doc/posix-functions/stat.texi (stat): Likewise.
36983         * modules/stat-tests: New test.
36984         * tests/test-stat.c: Likewise.
36986 2009-09-19  Jim Meyering  <meyering@redhat.com>
36988         syntax-check: detect unnecessary inclusion of canonicalize.h
36989         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36991 2009-09-19  Eric Blake  <ebb9@byu.net>
36993         canonicalize-lgpl: adjust clients to use correct header
36994         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36995         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36996         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36997         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36998         * lib/progreloc.c (includes): Likewise.
37000 2009-09-19  Jim Meyering  <meyering@redhat.com>
37002         test-posixtm.c: correct a comment
37003         * tests/test-posixtm.c: Correct first-line comment.
37004         Spotted by Eric Blake.
37006 2009-09-16  Jim Meyering  <meyering@redhat.com>
37008         posixtm-tests: make T const-correct; add a test case
37009         * tests/test-posixtm.c (T): Declare const.
37010         Add a test for -(2^31+1).
37011         Remove useless can-succeed-only-in-2002 test.
37013         posixtm-tests: adjust the sole failing test
37014         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37015         expected output matches what mktime now produces.  Cross-checked via
37016         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37018         posixtm: move #ifdef'd tests into a new module
37019         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37020         * tests/test-posixtm.c: ... this new file.
37021         * modules/posixtm-tests: New module.
37023 2009-09-19  Eric Blake  <ebb9@byu.net>
37025         openat: simplify use of at-func.c
37026         * lib/at-func.c (includes): Include prerequisites here, to
37027         simplify requirements on client files.
37028         * lib/openat-priv.h: Add double-inclusion guard.
37029         * lib/faccessat.c (includes): Simplify.
37030         * lib/fchmodat.c (includes): Likewise.
37031         * lib/fchownat.c (includes): Likewise.
37032         * lib/mkdirat.c (includes): Likewise.
37033         * lib/mkfifoat.c (includes): Likewise.
37034         * lib/symlinkat.c (includes): Likewise.
37036         openat: allow return of fd 0
37037         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37038         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37039         unistd-safer.
37040         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37041         <fcntl.h>; this module does not leak fds.
37042         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37043         must be allowed to return 0, leaving openat_safer to add the
37044         safety.
37045         (openat_permissive): Avoid writing to just-opened fd 2 if
37046         restoring the current directory fails.
37047         * lib/openat-die.c (openat_restore_fail): Add comment.
37048         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37049         (save_cwd): Guarantee safe fd, but without use of open_safer.
37050         * tests/test-openat.c: New test.
37051         * modules/openat-tests (Files, Makefile.am): Distribute and build
37052         new file.
37054         relocatable-prog-wrapper: fix build
37055         * modules/relocatable-prog-wrapper (Files): Update name of
37056         canonicalize m4 file, broken on 2009-09-17.
37057         Reported by emad hajjar <aleppos@hotmail.com>.
37059 2009-09-19  Bruno Haible  <bruno@clisp.org>
37061         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37062         * lib/safe-alloc.c: Likewise.
37063         Reported by Ian Beckwith <ianb@erislabs.net>.
37065 2009-09-18  Bruno Haible  <bruno@clisp.org>
37067         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37068         Reported by <erobles@sensacd.com.mx>.
37070 2009-09-17  Eric Blake  <ebb9@byu.net>
37072         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37073         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37074         slashes when checking if last component is missing.
37075         * tests/test-canonicalize.c (main): Test this.
37077         canonicalize, canonicalize-lgpl: honor // if distinct from /
37078         * modules/canonicalize (Files): Add double-slash-root.m4.
37079         * modules/canonicalize-lgpl (Files): Likewise.
37080         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37081         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37082         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37083         fallback definition.
37084         (canonicalize_filename_mode): Use it to protect //.
37085         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37086         (__realpath): Likewise.
37087         * tests/test-canonicalize.c (main): Test this.
37088         * tests/test-canonicalize-lgpl.c (main): Likewise.
37089         * modules/canonicalize-tests (Depends-on): Add same-inode.
37090         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37092         canonicalize-lgpl: fix glibc bug with trailing slash
37093         * m4/canonicalize-lgpl.m4: Move contents...
37094         * m4/canonicalize.m4: ...here.
37095         (gl_CANONICALIZE_LGPL): Factor realpath check...
37096         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37097         glibc 2.3.5 bug, fixed 2005-04-27.
37098         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37099         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37100         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37101         * modules/canonicalize-lgpl (Files): Manage file rename.
37102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37103         * modules/stdlib (Makefile.am): Substitute witness.
37104         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37105         is needed.
37106         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37107         replacement is required.
37108         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37109         * doc/glibc-functions/canonicalize_file_name.texi
37110         (canonicalize_file_name): Document this.
37111         * doc/posix-functions/realpath.texi (realpath): Likewise.
37113         canonicalize-lgpl: reject non-directory with trailing slash
37114         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37115         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37116         catches failures in glibc 2.3.5.
37117         * tests/test-canonicalize.c (main): Likewise.
37119         canonicalize-lgpl: use native realpath if it works
37120         * lib/canonicalize-lgpl.c (realpath): Guard with
37121         FUNC_REALPATH_WORKS.
37122         * lib/stdlib.in.h (realpath): Make declaration optional based on
37123         HAVE_REALPATH.
37124         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37125         native realpath works.
37126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37127         * modules/stdlib (Makefile.am): Substitute witness.
37129         canonicalize, canonicalize-lgpl: use <stdlib.h>
37130         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37131         (Include): Mention <stdlib.h>.
37132         (configure.ac): Mention functions we provide.
37133         * modules/canonicalize (configure.ac): Likewise.
37134         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37135         realpath if canonicalize_file_name is missing.
37136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37137         * modules/stdlib (Makefile.am): Substitute witnesses.
37138         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37139         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37140         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37141         * NEWS: Document this.
37142         * doc/glibc-functions/canonicalize_file_name.texi
37143         (canonicalize_file_name): Likewise.
37144         * doc/posix-functions/realpath.texi (realpath): Likewise.
37145         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37147         test-canonicalize: consolidate into single C program
37148         * tests/test-canonicalize.sh: Delete; move setup into...
37149         * tests/test-canonicalize.c (main): ...the program, making it
37150         easier to run in debugger.  Add some tests.
37151         * modules/canonicalize-tests (Files): Remove unused file.
37152         (Depends-on): Add progname.
37153         (configure.ac, Makefile.am): Simplify.
37155         test-canonicalize-lgpl: consolidate into single C program
37156         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37157         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37158         easier to run in debugger.  Add some tests.
37159         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37160         (configure.ac, Makefile.am): Simplify.
37162         canonicalize: avoid resolvepath
37163         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37164         unnecessary checks.
37165         * lib/canonicalize.c (includes): Simplify.
37166         (canonicalize_file_name): Drop resolvepath implementation.
37167         * modules/canonicalize (Depends-on): Drop filenamecat.
37169         canonicalize: don't lose errno
37170         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37171         over calls to free.
37173         canonicalize: simplify errno handling
37174         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37175         assignment.
37177         canonicalize, canonicalize-lgpl: update module dependencies
37178         * modules/canonicalize (Depends-on): Add extensions, lstat,
37179         pathmax, stdlib.
37180         (Files): Drop pathmax.h.
37181         (configure.ac): Adjust macro name.
37182         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37183         lstat, stdlib, sys_stat.
37184         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37185         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37186         extensions.
37187         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37188         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37189         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37190         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37191         declaration, if available.
37192         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37193         we can rely on the readlink module.
37194         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37195         (includes): Use <unistd.h> unconditionally.
37197 2009-09-17  Eric Blake  <ebb9@byu.net>
37199         maint: make Include sections of modules consistent
37200         * modules/alloca: Use only header name; no need to list #include.
37201         * modules/alloca-opt: Likewise.
37202         * modules/arpa_inet: Likewise.
37203         * modules/canon-host: Likewise.
37204         * modules/configmake: Likewise.
37205         * modules/dirent: Likewise.
37206         * modules/eealloc: Likewise.
37207         * modules/environ: Likewise.
37208         * modules/fchdir: Likewise.
37209         * modules/fcntl: Likewise.
37210         * modules/fcntl-h: Likewise.
37211         * modules/gethrxtime: Likewise.
37212         * modules/gettime: Likewise.
37213         * modules/ignore-value: Likewise.
37214         * modules/inet_ntop: Likewise.
37215         * modules/inet_pton: Likewise.
37216         * modules/inttypes: Likewise.
37217         * modules/isnand-nolibm: Likewise.
37218         * modules/isnanf-nolibm: Likewise.
37219         * modules/mbchar: Likewise.
37220         * modules/mbfile: Likewise.
37221         * modules/mbiter: Likewise.
37222         * modules/mbuiter: Likewise.
37223         * modules/netdb: Likewise.
37224         * modules/netinet_in: Likewise.
37225         * modules/nproc: Likewise.
37226         * modules/pagealign_alloc: Likewise.
37227         * modules/poll: Likewise.
37228         * modules/printf-frexp: Likewise.
37229         * modules/pthread: Likewise.
37230         * modules/putenv: Likewise.
37231         * modules/random_r: Likewise.
37232         * modules/relocatable-prog: Likewise.
37233         * modules/search: Likewise.
37234         * modules/select: Likewise.
37235         * modules/selinux-h: Likewise.
37236         * modules/settime: Likewise.
37237         * modules/signal: Likewise.
37238         * modules/size_max: Likewise.
37239         * modules/socklen: Likewise.
37240         * modules/ssize_t: Likewise.
37241         * modules/stdarg: Likewise.
37242         * modules/stdbool: Likewise.
37243         * modules/stddef: Likewise.
37244         * modules/stdint: Likewise.
37245         * modules/stdio: Likewise.
37246         * modules/stdlib: Likewise.
37247         * modules/string: Likewise.
37248         * modules/strings: Likewise.
37249         * modules/sys_file: Likewise.
37250         * modules/sys_ioctl: Likewise.
37251         * modules/sys_select: Likewise.
37252         * modules/sys_socket: Likewise.
37253         * modules/sys_stat: Likewise.
37254         * modules/sys_time: Likewise.
37255         * modules/sys_times: Likewise.
37256         * modules/sys_utsname: Likewise.
37257         * modules/sys_wait: Likewise.
37258         * modules/sysexits: Likewise.
37259         * modules/time: Likewise.
37260         * modules/times: Likewise.
37261         * modules/tmpfile: Likewise.
37262         * modules/trim: Likewise.
37263         * modules/unistd: Likewise.
37264         * modules/wchar: Likewise.
37265         * modules/wctype: Likewise.
37267 2009-09-17  Bruno Haible  <bruno@clisp.org>
37269         Make getdate.y compile on QNX and NetBSD 5 / i386.
37270         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37271         TIME_T_FITS_IN_LONG_INT.
37272         * lib/getdate.y (long_time_t): New type.
37273         (relative_time): Change type of 'seconds' field to long_time_t.
37274         (get_date): Update types of local variables. Check against overflow
37275         during conversion from long_time_t to time_t.
37276         Reported by Matt Kraai <kraai@ftbfs.org>
37277         and Hasso Tepper <hasso@netbsd.org>.
37279 2009-09-17  Bruno Haible  <bruno@clisp.org>
37281         * modules/COPYING: Update copyright years.
37282         * modules/README: Likeiwse.
37283         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37284         Reported by Ian Beckwith <ianb@erislabs.net>.
37286 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37288         * users.txt: Update references for gnuit package.
37290 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37292         * m4/getdelim.m4: Fix typo in copyright line.
37294 2009-09-17  Bruno Haible  <bruno@clisp.org>
37296         * lib/atoll.c: Use the standard header with GPL copyright.
37297         * lib/argz.in.h: Likewise.
37298         * lib/glob.c: Likewise.
37299         * lib/glob-libc.h: Likewise.
37300         * lib/random_r.c: Likewise.
37301         * lib/siglist.h: Likewise.
37302         * lib/strsignal.c: Likewise.
37303         Reported by Ian Beckwith <ianb@erislabs.net>.
37305 2009-09-17  Eric Blake  <ebb9@byu.net>
37307         rmdir: ensure correct dependency order
37308         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37310 2009-09-17  Bruno Haible  <bruno@clisp.org>
37312         Disable assertion that fails on NetBSD 5 / i386.
37313         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37314         Reported by Sam Steingold <sds@gnu.org>
37315         and Hasso Tepper <hasso@netbsd.org>.
37317 2009-09-16  Eric Blake  <ebb9@byu.net>
37319         unlinkdir: port to mingw
37320         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37321         on which no one can unlink a directory.
37323         stdlib: sort witness names
37324         * modules/stdlib (Makefile.am): Sort replacements.
37325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37326         * lib/stdlib.in.h: Likewise.
37328         parse-duration-tests: avoid link failure
37329         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37330         LIBINTL.
37331         Reported by Tom G. Christensen.
37333         openat-tests: ensure unlinkat behaves like rmdir
37334         * tests/test-rmdir.c (main): Factor guts...
37335         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37336         * modules/rmdir-tests (Files): Ship new file.
37337         * modules/openat-tests: New test.
37338         * tests/test-unlinkat.c: Likewise.
37340         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37341         * modules/rmdir-errno (Status, Notice): Now obsolete.
37343         rmdir: work around cygwin 1.5.x and mingw bugs
37344         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37345         * lib/rmdir.c (rmdir): Work around it.
37346         * modules/rmdir (Status, Notice): No longer obsolete.
37347         (Files): Add dos.m4.
37348         (Depends-on): Add unistd.
37349         (configure.ac): Set witnesses.
37350         (License): Relax to LGPLv2+.
37351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37352         * modules/unistd (Makefile.am): Substitute witnesses.
37353         * lib/unistd.in.h (rmdir): Declare replacement.
37354         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37355         * modules/rmdir-tests: New tests.
37356         * tests/test-rmdir.c: Likewise.
37358 2009-09-15  Eric Blake  <ebb9@byu.net>
37360         fchdir: improve use of replacement functions
37361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37363         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37364         REPLACE_CLOSEDIR.
37365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37366         * modules/sys_stat (Makefile.am): Substitute correct witness.
37367         * modules/dirent (Makefile.am): Likewise.
37368         * modules/unistd (Makefile.am): Likewise.
37369         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37370         * lib/unistd.in.h (dup): Likewise.
37371         * lib/sys_stat.in.h (fstat): Likewise.
37373         maint: ignore gnulib-tool temp files
37374         * .gitignore: Ignore files created during gnulib-tool --test.
37376 2009-09-13  Jim Meyering  <meyering@redhat.com>
37378         posixtm: don't reject a time that specify "60" as the number of seconds
37379         * lib/posixtm.c (posixtime): The code to reject invalid dates
37380         would also reject a time specified with the .60 suffix.
37381         But POSIX allows that, in order to accommodate leap seconds.
37382         So don't reject it.
37383         (main): Adjust tests accordingly.
37384         * modules/posixtm (Depends-on): Add stpcpy.
37386 2009-09-11  Jim Meyering  <meyering@redhat.com>
37388         announce-gen: include [$release_type] in emitted Subject:
37389         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37390         e.g., [stable] in the emitted Subject: line.
37392 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37394         Remove obsolete macros from several modules.
37395         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37396         obsolete Autoconf macros with their modern counterparts.
37397         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37398         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37400         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37401         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37402         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37404         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37405         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37406         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37407         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37409         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37410         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37411         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37412         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37413         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37414         * m4/time_r.m4 (gl_TIME_R): Likewise.
37415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37416         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37417         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37419         Fix copyright header in build-aux scripts.
37420         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37421         recommendation.
37422         * build-aux/ncftpput-ftp: Likewise.
37423         * build-aux/update-copyright: Likewise.
37425 2009-09-09  Eric Blake  <ebb9@byu.net>
37427         test-link: allow Linux choice of errno
37428         * tests/test-link.c (main): Relax test for alternate error.
37430         strndup: fix improper m4 caching
37431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37432         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37433         (gl_PREREQ_STRNDUP): Delete.
37434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37435         * modules/string (Makefile.am): Substitute it.
37436         * lib/string.in.h (strndup): Modernize prototype.
37438         getcwd: port to mingw
37439         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37440         different from the POSIX assumptions made throughout the getcwd
37441         module; fortunately, the mingw getcwd does not need replacement.
37442         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37443         * modules/getcwd-tests: New test.
37444         * tests/test-getcwd.c: Likewise.
37446         link: fix platform bugs
37447         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37448         * lib/link.c (link): Work around them.  Fix related mingw bug.
37449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37450         * modules/unistd (Makefile.am): Substitute it.
37451         * lib/unistd.in.h (link): Declare replacement.
37452         * doc/posix-functions/link.texi (link): Document this.
37453         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37455         test-link: consolidate into single C program, test more cases
37456         * tests/test-link.sh: Delete.
37457         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37458         at least Cygwin and Solaris.
37459         * modules/link-tests (Files): Remove unused file.
37460         (Depends-on): Add errno, sys_stat.
37461         (Makefile.am): Simplify.
37463 2009-09-08  Bruno Haible  <bruno@clisp.org>
37465         Work around towlower, towupper bug on mingw.
37466         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37467         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37468         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37469         * doc/posix-functions/towupper.texi: Likewise.
37470         Reported by Eric Blake.
37472 2009-09-08  Jim Meyering  <meyering@redhat.com>
37474         build: don't try to run autoheader if we don't use it
37475         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37476         is not used in configure.ac.
37478 2009-09-08  Eric Blake  <ebb9@byu.net>
37480         euidaccess: fix compilation error
37481         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37483         rawmemchr: relax license
37484         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37485         okay.
37486         Reported by Jim Meyering.
37488         mkfifoat: new module
37489         * modules/mkfifoat: New file.
37490         * lib/mkfifoat.c: Likewise.
37491         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37492         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37493         * modules/sys_stat (Makefile.am): Use them.
37494         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37495         * MODULES.html.sh (File system functions): Mention module.
37496         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37497         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37498         * modules/mkfifoat-tests: New test.
37499         * tests/test-mkfifoat.c: Likewise.
37501         strchrnul: relax license
37502         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37503         okay.
37504         Reported by Jim Meyering.
37506 2009-09-08  Eric Blake  <ebb9@byu.net>
37508         fstatat: fix compilation on Solaris
37509         * lib/fstatat.c (includes): Add fcntl.h.
37510         Reported by Pádraig Brady.
37512 2009-09-07  Eric Blake  <ebb9@byu.net>
37514         rename: modernize replacement
37515         * modules/rename (Depends-on): Add stdio.
37516         (configure.ac): Declare witness.
37517         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37518         stdio take care of replacement.
37519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37520         * modules/stdio (Makefile.am): Substitute them.
37521         * lib/stdio.in.h (rename): Declare replacement.
37522         * lib/rename.c (includes): Allow cross-compilation to non-windows
37523         machines.
37524         * doc/posix-functions/rename.texi (rename): Improve
37525         documentation.
37527         stdio: sort witness names
37528         * modules/stdio (Makefile.am): Sort replacements.
37529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37530         * lib/stdio.in.h: Likewise.
37532         getcwd: minor cleanups
37533         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37534         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37536         openat: provide more convenience names
37537         * modules/faccessat (configure.ac): Add C witness.
37538         * lib/unistd.in.h (readlinkat): Fix typo.
37539         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37540         convenience wrappers.
37541         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37542         wrappers in syntax checks.
37544 2009-09-06  Eric Blake  <ebb9@byu.net>
37546         doc: fix comments in recent patches
37547         * lib/faccessat.c: Mention correct function.
37548         * lib/fchmodat.c: Likewise.
37549         * lib/fchownat.c: Likewise.
37550         * lib/symlinkat.c: Likewise.
37551         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37552         constants.
37554         faccessat, symlinkat: continue cleanup of previous patch
37555         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37556         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37557         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37559         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37560         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37561         set.
37563 2009-09-06  Bruno Haible  <bruno@clisp.org>
37565         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37566         (fstatat): Declare if GNULIB_FSTATAT is set.
37567         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37568         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37569         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37570         * modules/fcntl-h (Files): Remove m4/openat.m4.
37571         * modules/sys_stat (Files): Remove m4/openat.m4.
37572         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37573         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37574         * modules/unistd (Files): Remove m4/openat.m4.
37575         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37576         GNULIB_OPENAT.
37577         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37578         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37580         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37581         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37582         gl_OPENAT_DEFAULTS.
37583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37584         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37585         Don't require gl_OPENAT_DEFAULTS.
37586         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37587         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37588         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37589         (gl_OPENAT_DEFAULTS): Remove macro.
37591 2009-09-06  Bruno Haible  <bruno@clisp.org>
37593         * modules/openat (configure.ac): Remove unneeded witness.
37595 2009-09-06  Bruno Haible  <bruno@clisp.org>
37597         Set errno to ENOSYS when a function is entirely unsupported.
37598         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37599         EOPNOTSUPP.
37600         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37601         * modules/chown (Depends-on): Remove errno.
37603 2009-09-06  Bruno Haible  <bruno@clisp.org>
37605         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37607 2009-09-06  Bruno Haible  <bruno@clisp.org>
37609         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37611 2009-09-06  Ben Pfaff  <blp@gnu.org>
37612             Bruno Haible  <bruno@clisp.org>
37614         Work around a glibc bug in strtok_r.
37615         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37616         Undefine if UNDEFINE_STRTOK_R is set.
37617         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37619         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37620         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37621         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37622         UNDEFINE_STRTOK_R.
37623         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37625 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37627         exclude: minor fix
37628         * lib/exclude.c: Include wctype.h
37630 2009-09-06  Akim Demaille  <demaille@gostai.com>
37632         bootstrap: improve error message
37633         * build-aux/bootstrap (find_tool): Upon failure, report the list
37634         of candidates.
37635         Honor the initial value of the envvar.
37637 2009-09-05  Eric Blake  <ebb9@byu.net>
37639         symlinkat: new module
37640         * modules/symlinkat: New file.
37641         * lib/symlinkat.c: Likewise.
37642         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37644         * modules/unistd (Makefile.am): Use them.
37645         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37646         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37647         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37648         * MODULES.html.sh (File system functions): Mention module.
37649         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37650         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37651         * modules/symlinkat-tests: New test.
37652         * tests/test-symlinkat.c: Likewise.
37654         test-openat-safer: add more checks
37655         * tests/test-openat-safer.c (main): Check more code paths.
37657 2009-09-05  Jim Meyering  <meyering@redhat.com>
37659         syntax-check: detect unnecessary inclusion of openat.h
37660         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37662 2009-09-05  Bruno Haible  <bruno@clisp.org>
37664         Support towlower, towupper.
37665         * doc/posix-functions/towlower.texi: Mention module wctype.
37666         * doc/posix-functions/towupper.texi: Likewise.
37667         * lib/wctype.in.h (towlower, towupper): New functions.
37668         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37669         (ASSERT): New macro.
37670         (e): New variable.
37671         (main): Test also towlower, towupper. Test WEOF argument.
37672         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37674 2009-09-05  Bruno Haible  <bruno@clisp.org>
37676         Fix conversion behaviour when the input is invalid.
37677         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37678         mark occurring in first pass of indirect conversion.
37679         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37680         input.
37681         Found by clang's static analyzer.
37683 2009-09-05  Bruno Haible  <bruno@clisp.org>
37685         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37686         where direct conversion is possible.
37688 2009-09-04  Eric Blake  <ebb9@byu.net>
37690         openat: fail with ENOENT on empty name
37691         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37692         buffer.
37694         link-follow: fix logic bug in prior patch
37695         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37696         reversed sense of yes and no in prior patch.  Avoid confusing
37697         compilation failure with desired semantics.
37699         link-follow: accomodate mingw and cross-compilation
37700         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37701         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37702         cross-compilation results to -1, to make linkat easier to
37703         implement when cross-compiling.  Trivially support mingw.
37704         * modules/link-follow (configure.ac): Call new name.
37705         * NEWS: Mention this.
37707 2009-09-03  Eric Blake  <ebb9@byu.net>
37709         faccessat: compile replacement
37710         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37711         needed.
37713         fts: fix compilation error
37714         * lib/fts.c (includes): Re-add "openat.h", for
37715         openat_needs_fchdir.
37717         faccessat: new module
37718         * modules/faccessat: New file.
37719         * lib/faccessat.c: Likewise.
37720         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37722         * modules/unistd (Makefile.am): Use it.
37723         * lib/unistd.in.h (faccessat): Declare it.
37724         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37725         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37726         * MODULES.html.sh (File system functions): Mention it.
37727         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37728         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37730         euidaccess: prefer POSIX over non-standard implementation
37731         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37732         * lib/euidaccess.c (euidaccess): Use it if available.
37734         openat: make template easier to use
37735         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37736         AT_FUNC_F2 to be undefined.
37737         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37738         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37739         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37740         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37741         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37742         Likewise.
37743         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37744         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37745         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37746         Likewise.
37748         openat: declare in POSIX headers
37749         * NEWS: Mention this.
37750         * modules/openat (configure.ac): Declare witnesses.
37751         (Depends-on): Add fcntl-h, sys_stat, unistd.
37752         (Include): Mention correct headers.
37753         * modules/fcntl-h (Depends-on): Add link-warning.
37754         (Files): Add openat.m4.
37755         (Makefile.am): Substitute witnesses.
37756         * modules/sys_stat (Files, Makefile.am): Likewise.
37757         * modules/unistd (Files, Makefile.am): Likewise.
37758         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37759         (gl_OPENAT_DEFAULTS): New macro.
37760         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37762         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37763         (SYS_STAT_H): Remove unused variable.
37764         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37765         * lib/fcntl--.h (includes): Remove unneeded header.
37766         * lib/openat-safer.c (includes): Likewise.
37767         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37768         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37769         appropriate headers.
37770         (__OPENAT_PREFIX): Delete.
37771         * lib/fcntl.in.h (openat): Provide declaration.
37772         (AT_FDCWD): Fix Solaris bug.
37773         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37774         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37775         * lib/fchmodat.c (includes):  Adjust to find declaration.
37776         * lib/fchownat.c (includes): Likewise.
37777         * lib/mkdirat.c (includes): Likewise.
37778         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37779         still visible.
37781 2009-09-02  Eric Blake  <ebb9@byu.net>
37783         errno: use consistently
37784         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37785         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37786         * lib/canonicalize.c (ELOOP): Likewise.
37787         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37788         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37789         * lib/lchown.c (EOPNOTSUPP): Likewise.
37790         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37791         * lib/savewd.c (ESTALE): Likewise.
37792         * lib/settime.c (ENOSYS): Likewise.
37793         * lib/utimens.c (ENOSYS): Likewise.
37794         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37795         * lib/chdir-safer.c (ELOOP): Likewise.
37796         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37797         * modules/c-stack (Depends-on): Add errno.
37798         * modules/canonicalize (Depends-on): Likewise.
37799         * modules/chdir-safer (Depends-on): Likewise.
37800         * modules/fdopendir (Depends-on): Likewise.
37801         * modules/inet_ntop (Depends-on): Likewise.
37802         * modules/inet_pton (Depends-on): Likewise.
37803         * modules/lchown (Depends-on): Likewise.
37804         * modules/openat (Depends-on): Likewise.
37805         * modules/savewd (Depends-on): Likewise.
37806         * modules/settime (Depends-on): Likewise.
37807         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37809         fts: avoid leaking fds
37810         * modules/fts (Depends-on): Add cloexec.
37811         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37812         flag.
37814         fts: make directory fds more robust
37815         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37816         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37818         backupfile, chdir-long, fts, savedir: make safer
37819         * lib/backupfile.c (includes): Use "dirent--.h", since
37820         numbered_backup can write to stderr during readdir.
37821         * lib/savedir.c (includes): Likewise.
37822         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37823         emulation can write to stderr on failure.
37824         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37825         * lib/getcwd.c: Document why opendir_safer is unused.
37826         * lib/glob.c: Likewise.
37827         * lib/scandir.c: Likewise.
37828         * lib/openat-proc.c: Likewise, for open_safer.
37829         * modules/backupfile (Depends-on): Add dirent-safer.
37830         * modules/savedir (Depends-on): Likewise.
37831         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37832         * modules/chdir-long (Depends-on): Add openat-safer.
37834         openat-safer: new module
37835         * modules/openat-safer: New file.
37836         * lib/openat-safer.c: Likewise.
37837         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37838         * lib/fcntl-safer.h (openat_safer): Declare.
37839         * lib/fcntl--.h (openat): Override.
37840         * MODULES.html.sh (File descriptor based I/O): Mention it.
37841         * lib/openat.h: Add double-inclusion guards.
37842         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37843         "fcntl--.h", so we can implement openat.
37844         * modules/openat-safer-tests: New test.
37845         * tests/test-openat-safer.c: New file.
37847         dirent-safer: new module
37848         * modules/dirent-safer: New file.
37849         * lib/dirent--.h: Likewise.
37850         * lib/dirent-safer.h: Likewise.
37851         * lib/opendir-safer.c: Likewise.
37852         * m4/dirent-safer.m4: Likewise.
37853         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37854         * modules/dirent-safer-tests: New test.
37855         * tests/test-dirent-safer.c: New file.
37856         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37858         fdopendir: optimize on mingw
37859         * lib/unistd.in.h (_gl_directory_name): New prototype.
37860         * lib/fchdir.c (_gl_directory_name): Implement it.
37861         (fchdir): Use it to simplify implementation.
37862         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37863         fchdir, when available, to avoid calling [f]chdir().
37865         fdopendir: split into its own module
37866         * lib/openat.c (fdopendir): Move...
37867         * lib/fdopendir.c: ...into new file.
37868         * modules/fdopendir: New module.
37869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37870         * modules/openat (Depends-on): Add fdopendir.
37871         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37872         fdopendir here.
37873         * modules/savedir (Depends-on): Only need fdopendir, not full
37874         openat.
37875         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37876         * lib/openat.h (fdopendir): Drop prototype.
37877         * lib/dirent.in.h (fdopendir): Provide prototype.
37878         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37879         * modules/dirent (Makefile.am): Substitute them.
37880         * MODULES.html.sh (File system functions): Mention it.
37881         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37882         * modules/fdopendir-tests: New file.
37883         * tests/test-fdopendir.c: Likewise.
37885         fchdir: use more consistent macro convention
37886         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37887         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37888         REPLACE_FCHDIR, rather than relying on config.h macros.
37889         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37890         inside a single make-time REPLACE_FCHDIR block, rather than using
37891         the config.h FCHDIR_REPLACEMENT.
37892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37893         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37894         Manage fstat replacement.
37895         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37896         REPLACE_FCHDIR.
37897         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37898         (Makefile.am): Substitute REPLACE_FCHDIR.
37899         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37900         FCHDIR_REPLACEMENT.
37901         * lib/dup-safer.c (dup_safer): Likewise.
37902         * lib/dup2.c (rpl_dup2): Likewise.
37903         * lib/dup3.c (rpl_dup3): Likewise.
37904         * lib/open.c (rpl_open): Likewise.
37906         fchdir: simplify error handling, and support dup3
37907         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37908         stdbool, malloc-posix, realloc-posix.
37909         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37910         (ensure_dirs_slot): Return false on allocation failure.
37911         (rpl_dup2): Delete.
37912         (_gl_register_dup): New function.
37913         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37914         (_gl_register_fd): Close fd on allocation failure.
37915         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37916         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37917         prototype.
37918         (rpl_dup2_fchdir): Delete prototype.
37919         * lib/open.c (open): Update caller.
37920         * lib/dup2.c (dup2): Track fchdir metadata.
37921         * lib/dup3.c (dup3): Likewise.
37922         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37925 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37927         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37928         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37929         don't pass arguments to AC_OUTPUT.
37931 2009-09-02  Bruno Haible  <bruno@clisp.org>
37933         * modules/mkdtemp (License): Relicense under LGPLv2+.
37934         Reported by Paolo Bonzini.
37936 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37938         Replace uses of obsolete autoconf macros in Jim's modules.
37939         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37940         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37941         can evoke a warning from autoconf when run with -Wobsolete
37942         enabled.  They were declared obsolete for good reasons (see
37943         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37944         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37945         should not continue using the deprecated macros.
37946         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37947         obsolete Autoconf macros with modern counterparts.
37948         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37949         * m4/dos.m4 (gl_AC_DOS): Likewise.
37950         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37951         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37952         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37953         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37954         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37955         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37956         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37957         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37958         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37959         Likewise.
37960         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37961         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37962         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37963         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37964         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37965         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37967 2009-09-01  Eric Blake  <ebb9@byu.net>
37969         fchdir: fix off-by-one bug in previous patch
37970         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37971         (_gl_unregister_fd): Delete useless if.
37973 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37975         maint.mk: sort the list of syntax-check rules
37976         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37977         easier to get a sense of progress when the rules are run sequentially
37978         and take a long time.
37980 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37982         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37983         * modules/netinet_in: Likewise.
37984         * modules/sys_file: Likewise.
37985         * modules/sys_ioctl: Likewise.
37986         * modules/sys_select: Likewise.
37987         * modules/sys_socket: Likewise.
37988         * modules/sys_stat: Likewise.
37989         * modules/sys_time: Likewise.
37990         * modules/sys_times: Likewise.
37991         * modules/sys_utsname: Likewise.
37992         * modules/sys_wait: Likewise.
37994 2009-09-01  Jim Meyering  <meyering@redhat.com>
37996         fts: help ensure that return values are not ignored
37997         * lib/fts_.h (__GNUC_PREREQ): Define.
37998         (__attribute_warn_unused_result__): Define.
37999         (fts_children, fts_close, fts_open, fts_read): Declare with
38000         __attribute_warn_unused_result__.
38002         fts: fts_close now fails also when closing a dir file descriptor fails
38003         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38004         and propagate to caller, along with errno.
38006         announce-gen: correct formatting in --help output
38007         * build-aux/announce-gen (usage): Move the one-line description in
38008         --help output "up", to where it belongs, just after Usage:.
38010 2009-08-31  Eric Blake  <ebb9@byu.net>
38012         fchdir: port to mingw
38013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38014         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38015         opened, then use a substitute.
38016         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38017         replacement.
38018         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38019         (_gl_register_fd): No need to check stat if open already filters
38020         all directories.
38021         (fchdir): Fix error condition to match POSIX.
38022         * modules/fchdir (Depends-on): Add sys_stat.
38023         * doc/posix-functions/open.texi (open): Document the limitation.
38024         * modules/fchdir-tests: New file.
38025         * tests/test-fchdir.c: Likewise.
38027         canonicalize: allow cross-testing from cygwin to mingw
38028         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38029         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38030         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38031         Likewise.
38032         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38033         target does not support symlinks.
38034         * tests/test-canonicalize-lgpl.sh: Likewise.
38036         chown: avoid compilation warning on mingw
38037         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38038         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38039         mingw.
38040         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38041         * modules/chown (Depends-on): Add errno.
38043 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38045         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38046         command.
38048 2009-08-31  Jim Meyering  <meyering@redhat.com>
38050         canonicalize: remove useless initialization
38051         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38052         initialization of local, "end".
38054 2009-08-30  Bruno Haible  <bruno@clisp.org>
38056         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38057         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38058         ENOSYS.
38060 2009-08-30  Bruno Haible  <bruno@clisp.org>
38062         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38063         /usr/xpg4/bin/tr when it exists.
38064         * tests/test-pipe-filter-gi1.sh: Likewise.
38066 2009-08-30  Bruno Haible  <bruno@clisp.org>
38068         Work around deficient /usr/bin/id program on Solaris.
38069         * tests/test-file-has-acl.sh (ID): New variable.
38070         * tests/test-set-mode-acl.sh (ID): Likewise.
38071         * tests/test-copy-acl.sh (ID): Likewise.
38072         * tests/test-copy-file.sh (ID): Likewise.
38074 2009-08-30  Bruno Haible  <bruno@clisp.org>
38076         New module 'xstriconveh'.
38077         * lib/xstriconveh.h: New file.
38078         * lib/xstriconveh.c: New file.
38079         * modules/xstriconveh: New file.
38081 2009-08-30  Bruno Haible  <bruno@clisp.org>
38083         Make it easier to use mem_cd_iconveh.
38084         * lib/striconveh.h (iconveh_t): New type.
38085         (iconveh_open, iconveh_close): New declarations.
38086         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38087         with a single 'const iconveh_t *' argument.
38088         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38089         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38090         with a single 'const iconveh_t *' argument.
38091         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38092         * tests/test-striconveh.c (main): Update.
38093         * NEWS: Mention the change.
38095 2009-08-30  Bruno Haible  <bruno@clisp.org>
38097         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38098         problem.
38100 2009-08-30  Bruno Haible  <bruno@clisp.org>
38102         Work around iconv_open problem on Solaris.
38103         * lib/iconv_open-solaris.gperf: New file.
38104         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38105         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38106         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38107         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38108         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38109         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38111 2009-08-29  Jim Meyering  <meyering@redhat.com>
38113         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38114         * top/maint.mk (cvs-check): Remove target; it was just an alias
38115         to the better-named vc-diff-check.
38116         (maintainer-distcheck): Remove rule.  It was used only from
38117         the (alpha/beta/major) target, and all of its commands but one
38118         were coreutils-specific.
38119         (vc-dist): Remove rule.
38120         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38121         Run vc-diff-check, not vc-dist.
38122         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38124 2009-08-27  Bruno Haible  <bruno@clisp.org>
38126         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38127         of 0.
38129 2009-08-27  Bruno Haible  <bruno@clisp.org>
38131         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38132         compilers.
38133         * doc/func.texi: Document the SunPRO C bug.
38135 2009-08-27  Bruno Haible  <bruno@clisp.org>
38137         Fix link error on Solaris.
38138         * tests/test-parse-duration.c (xstrdup): Remove function.
38140 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38142         ignore-value: handle pointer types, too
38143         * lib/ignore-value.h (__attribute__): Remove definition.
38144         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38145         of a more concise and more-often effective "(void) i" statement.
38146         (ignore_ptr): New function to suppress warnings from functions that
38147         return pointers, and to make it explicit that one function doesn't
38148         handle all cases.
38150 2009-08-25  Bruno Haible  <bruno@clisp.org>
38152         dup2: work around a Linux bug.
38153         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38154         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38155         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38156         Reported by Simon Josefsson.
38158 2009-08-25  Jim Meyering  <meyering@redhat.com>
38160         libguestfs uses gnulib
38161         * users.txt: Add libguestfs.
38163 2009-08-24  Eric Blake  <ebb9@byu.net>
38165         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38166         * lib/pipe2.c (includes): Add binary-io.h.
38167         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38169 2009-08-24  Bruno Haible  <bruno@clisp.org>
38171         Tolerate declared but missing accept4 syscall.
38172         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38173         available.
38174         * lib/sys_socket.in.h (accept4): If the function is already present,
38175         override it.
38176         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38177         * modules/accept4 (Makefile.am): Compile accept4.c always.
38178         Reported by Paolo Bonzini and Eric Blake.
38180 2009-08-23  Bruno Haible  <bruno@clisp.org>
38182         New module 'accept4'.
38183         * lib/sys_socket.in.h (accept4): New declaration.
38184         * lib/accept4.c: New file.
38185         * m4/accept4.m4: New file.
38186         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38187         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38188         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38189         HAVE_ACCEPT4.
38190         * modules/accept4: New file.
38191         * doc/glibc-functions/accept4.texi: Mention the new module.
38193 2009-08-24  Jim Meyering  <meyering@redhat.com>
38195         progname: also set global program_invocation_name, when possible
38196         Before this change, a libtool-enabled program that calls glibc's
38197         error function would report the program name as
38198         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38199         * modules/progname (configure.ac): Check for a declaration of
38200         program_invocation_name.
38201         * lib/progname.c:  Include <errno.h>.
38202         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38203         Set program_invocation_name.
38205 2009-08-23  Bruno Haible  <bruno@clisp.org>
38207         * lib/dup3.c: Include <string.h>.
38209 2009-08-23  Bruno Haible  <bruno@clisp.org>
38211         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38212         * lib/pipe2.c (pipe2): Likewise.
38213         Suggested by Eric Blake.
38215 2009-08-23  Bruno Haible  <bruno@clisp.org>
38217         Tolerate declared but missing dup3 syscall.
38218         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38219         * lib/unistd.in.h (dup3): If the function is already present,
38220         override it.
38221         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38222         * modules/dup3 (Makefile.am): Compile dup3.c always.
38223         Reported by Paolo Bonzini.
38225 2009-08-23  Bruno Haible  <bruno@clisp.org>
38227         Tolerate declared but missing pipe2 syscall.
38228         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38229         available.
38230         * lib/unistd.in.h (pipe2): If the function is already present,
38231         override it.
38232         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38233         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38234         Reported by Paolo Bonzini.
38236 2009-08-23  Bruno Haible  <bruno@clisp.org>
38238         * lib/pipe2.c (pipe2): Move #ifs inside function.
38240 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38242         quotearg: document limitations of quote_these_too
38243         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38244         those limitations are created.
38245         * lib/quotearg.h (set_char_quoting): Document that digits and
38246         letters that are special after backslash are not permitted.
38247         (quotearg_char): Cross-reference set_char_quoting documentation.
38249 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38251         quotearg: implement custom_quoting_style
38252         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38253         right_quote fields.
38254         (set_custom_quoting): New public function.
38255         (quotearg_buffer_restyled): Add left_quote and right_quote
38256         arguments, handle them very much like locale quoting, and update
38257         all uses.
38258         (quotearg_n_custom): New public function.
38259         (quotearg_n_custom_mem): New public function.
38260         (quotearg_custom): New public function.
38261         (quotearg_custom_mem): New public function.
38262         * lib/quotearg.h: Prototype and document new public functions.
38263         (enum quoting_style): For escape_quoting_style and
38264         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38265         ignored even though they're otherwise like c_quoting_style.
38266         Add custom_quoting_style member and document with comparison to
38267         clocale_quoting_style.
38268         * tests/test-quotearg.c (custom_quotes): New array.
38269         (custom_results): New array.
38270         (main): Extend to test custom quoting.
38272 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38274         quotearg: fix right quote escaping when it's in quote_these_too
38275         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38276         quote, be sure to prepend only one backslash.
38277         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38278         (main): Test it.
38280 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38282         quotearg-tests: test escaping of embedded locale quotes
38283         * tests/test-quotearg.c (struct result_strings): Add member for
38284         new input.
38285         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38286         (inputs): Add new input.
38287         (results_g): Add expected results.
38288         (flag_results): Likewise.
38289         (locale_results): Likewise.
38290         (compare_strings): Check those.
38292 2009-08-23  Bruno Haible  <bruno@clisp.org>
38294         Tests for module 'dup3'.
38295         * modules/dup3-tests: New file.
38296         * tests/test-dup3.c: New file.
38298         New module 'dup3'.
38299         * lib/unistd.in.h (dup3): New declaration.
38300         * lib/dup3.c: New file.
38301         * m4/dup3.m4: New file.
38302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38303         HAVE_DUP3.
38304         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38305         * modules/dup3: New file.
38306         * doc/glibc-functions/dup3.texi: Mention the new module.
38308 2009-08-23  Bruno Haible  <bruno@clisp.org>
38310         Tweak the dup2 test.
38311         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38312         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38313         the test file is still empty. Fix argument order of lseek.
38315 2009-08-23  Bruno Haible  <bruno@clisp.org>
38317         Avoid test link errors when the modules getopt-gnu, gettext are used.
38318         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38321 2009-08-23  Bruno Haible  <bruno@clisp.org>
38323         Fix getdtablesize() on mingw.
38324         * lib/getdtablesize.c (getdtablesize): Implement differently.
38325         * lib/unistd.in.h (getdtablesize): Improve comment.
38327 2009-08-23  Bruno Haible  <bruno@clisp.org>
38329         New module 'mkostemp'.
38330         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38331         * lib/stdlib.in.h (mksotemp): New declaration.
38332         * lib/mkostemp.c: New file, from glibc with modifications.
38333         * lib/tempname.h (GT_FILE): Remove outdated comment.
38334         (gen_tempname): Add flags argument.
38335         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38336         (__GT_FILE): Map to 1.
38337         (small_open, large_open): Remove macros.
38338         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38339         * lib/mkstemp.c (mkstemp): Update.
38340         * lib/mkdtemp.c (mkdtemp): Likewise.
38341         * m4/mkostemp.m4: New file.
38342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38343         HAVE_MKOSTEMP.
38344         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38345         HAVE_MKOSTEMP.
38346         * modules/mkostemp: New file, based on modules/mkstemp.
38347         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38348         * NEWS: Mention the change.
38350 2009-08-23  Bruno Haible  <bruno@clisp.org>
38352         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38353         Reported by Eric Blake.
38355 2009-08-23  Bruno Haible  <bruno@clisp.org>
38357         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38358         Reported by Eric Blake.
38360 2009-08-23  Bruno Haible  <bruno@clisp.org>
38362         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38363         * modules/pipe2 (Depends-on): Likewise.
38365 2009-08-23  Eric Blake  <ebb9@byu.net>
38367         fcntl-h: add O_TTY_INIT support
38368         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38369         * tests/test-fcntl-h.c (o): Test it.
38370         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38372         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38373         * modules/fcntl: Move <fcntl.h> header replacement...
38374         * modules/fcntl-h: ...to new name, so as not to collide with
38375         like-named function.
38376         * tests/test-fcntl.c: Rename...
38377         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38378         * modules/fcntl-tests: Rename...
38379         * modules/fcntl-h-tests: ...to this.  Update test file name.
38380         * modules/chdir-long (Depends-on): Update clients.
38381         * modules/chdir-safer (Depends-on): Likewise.
38382         * modules/fcntl-safer (Depends-on): Likewise.
38383         * modules/fts (Depends-on): Likewise.
38384         * modules/mkancesdirs (Depends-on): Likewise.
38385         * modules/mkdir-p (Depends-on): Likewise.
38386         * modules/open (Depends-on): Likewise.
38387         * modules/savewd (Depends-on): Likewise.
38388         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38389         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38391 2009-08-22  Bruno Haible  <bruno@clisp.org>
38393         * modules/binary-io (License): Relicense under LGPL.
38394         * modules/pipe2 (License): Likewise.
38396 2009-08-22  Bruno Haible  <bruno@clisp.org>
38398         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38399         return value.
38400         * lib/pipe-filter-gi.c (filter_init): Likewise.
38401         Reported by Eric Blake.
38403 2009-08-22  Bruno Haible  <bruno@clisp.org>
38405         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38406         * modules/pipe (Depends-on): Add pipe2.
38408 2009-08-22  Bruno Haible  <bruno@clisp.org>
38410         Tests for module 'pipe2'.
38411         * modules/pipe2-tests: New file.
38412         * tests/test-pipe2.c: New file.
38414         New module 'pipe2'.
38415         * lib/unistd.in.h (pipe2): New declaration.
38416         * lib/pipe2.c: New file.
38417         * m4/pipe2.m4: New file.
38418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38419         HAVE_PIPE2.
38420         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38421         * modules/pipe2: New file.
38422         * doc/glibc-functions/pipe2.texi: Mention the new module.
38424 2009-08-22  Bruno Haible  <bruno@clisp.org>
38426         Reference some new glibc functions.
38427         * doc/glibc-functions/accept4.texi: New file.
38428         * doc/glibc-functions/dup3.texi: New file.
38429         * doc/glibc-functions/mkostemp.texi: New file.
38430         * doc/glibc-functions/pipe2.texi: New file.
38431         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38432         (Glibc sys/socket.h): Refer to accept4.
38433         (Glibc unistd.h): Refer to dup3, pipe2.
38434         Reported by Eric Blake.
38436 2009-08-22  Jim Meyering  <meyering@redhat.com>
38437             Bruno Haible  <bruno@clisp.org>
38439         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38440         This makes it so packages using automake-1.11's silent-rules option
38441         can print e.g., a single "GEN    configmake.h" line, rather than
38442         the 30+ statements that perform the job.  If you want to see the
38443         actual commands, you can still run "make V=1".
38444         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38445         so that make output is abbreviated when those variables are defined
38446         appropriately.
38447         * modules/argz: Likewise.
38448         * modules/arpa_inet: Likewise.
38449         * modules/byteswap: Likewise.
38450         * modules/configmake: Likewise.
38451         * modules/dirent: Likewise.
38452         * modules/errno: Likewise.
38453         * modules/fcntl: Likewise.
38454         * modules/float: Likewise.
38455         * modules/fnmatch: Likewise.
38456         * modules/getopt-posix: Likewise.
38457         * modules/glob: Likewise.
38458         * modules/iconv_open: Likewise.
38459         * modules/inttypes: Likewise.
38460         * modules/localcharset: Likewise.
38461         * modules/locale: Likewise.
38462         * modules/math: Likewise.
38463         * modules/netdb: Likewise.
38464         * modules/netinet_in: Likewise.
38465         * modules/poll: Likewise.
38466         * modules/posix_spawnp-tests: Likewise.
38467         * modules/sched: Likewise.
38468         * modules/search: Likewise.
38469         * modules/selinux-h: Likewise.
38470         * modules/signal: Likewise.
38471         * modules/spawn: Likewise.
38472         * modules/stdarg: Likewise.
38473         * modules/stdbool: Likewise.
38474         * modules/stddef: Likewise.
38475         * modules/stdint: Likewise.
38476         * modules/stdio: Likewise.
38477         * modules/stdlib: Likewise.
38478         * modules/string: Likewise.
38479         * modules/strings: Likewise.
38480         * modules/sys_file: Likewise.
38481         * modules/sys_ioctl: Likewise.
38482         * modules/sys_select: Likewise.
38483         * modules/sys_socket: Likewise.
38484         * modules/sys_stat: Likewise.
38485         * modules/sys_time: Likewise.
38486         * modules/sys_times: Likewise.
38487         * modules/sys_utsname: Likewise.
38488         * modules/sys_wait: Likewise.
38489         * modules/sysexits: Likewise.
38490         * modules/time: Likewise.
38491         * modules/unistd: Likewise.
38492         * modules/wchar: Likewise.
38493         * modules/wctype: Likewise.
38495 2009-08-22  Jim Meyering  <meyering@redhat.com>
38497         announce-gen: detect write failure
38498         * build-aux/announce-gen: Add Coda at end.
38499         Remove equivalent-but-more-verbose block at top.
38501 2009-08-19  Akim Demaille  <demaille@gostai.com>
38503         bootstrap: --help to stdout.
38504         * bootstrap (usage): Don't send --help to stderr.
38505         Use a here doc instead of a long string.
38507 2009-08-21  Eric Blake  <ebb9@byu.net>
38509         test-popen-safer: split from test-popen
38510         * tests/test-popen.c (main): Move...
38511         * tests/test-popen.h: ...into new file.
38512         * tests/test-popen-safer2.c: New file.
38513         * modules/popen-tests (Files): Add test-popen.h.
38514         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38515         Suggested by Bruno Haible.
38517         test-fcntl-safer: split from test-open
38518         * tests/test-open.c (main): Move...
38519         * tests/test-open.h: ...into new file.
38520         * tests/test-fcntl-safer.c: New file.
38521         * modules/open-tests (Files): Add test-open.h.
38522         * modules/fcntl-safer-tests: New file.
38523         Suggested by Bruno Haible.
38525         test-fopen-safer: split from test-fopen
38526         * tests/test-fopen.c (main): Move...
38527         * tests/test-fopen.h: ...into new file.
38528         * tests/test-fopen-safer.c: New file.
38529         * modules/fopen-tests (Files): Add test-fopen.h.
38530         * modules/fopen-safer-tests: New file.
38531         Suggested by Bruno Haible.
38533 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38535         popen-safer: test O_CLOEXEC at run-time.
38536         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38538 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38540         fcntl: move more flags to the header
38541         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38542         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38543         * lib/fcntl.in.h: Do both things here.
38545 2009-08-21  Jim Meyering  <meyering@redhat.com>
38547         consistently remove $@-t before redirecting to it
38548         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38549         * modules/alloca-opt: Likewise.
38550         * modules/byteswap: Likewise.
38551         * modules/fnmatch: Likewise.
38552         * modules/getopt-posix: Likewise.
38553         * modules/glob: Likewise.
38554         * modules/poll: Likewise.
38555         * modules/posix_spawnp-tests: Likewise.
38556         * modules/sys_socket: Likewise.
38557         * modules/sysexits: Likewise.
38559 2009-08-21  Eric Blake  <ebb9@byu.net>
38561         popen: simplify access to original popen
38562         * lib/popen.c (rpl_popen): No need to worry about popen being a
38563         macro.
38564         Reported by Bruno Haible.
38566 2009-08-20  Eric Blake  <ebb9@byu.net>
38568         build: avoid some compiler warnings
38569         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38570         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38571         type.
38572         (new_exclude_segment, excluded_file_pattern_p)
38573         (excluded_file_name_p): Reduce scope.
38574         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38575         old-style declaration.
38577 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38579         * tests/test-exclude1.sh: Handle Windows EOL.
38580         * tests/test-exclude2.sh: Likewise.
38581         * tests/test-exclude3.sh: Likewise.
38582         * tests/test-exclude4.sh: Likewise.
38583         * tests/test-exclude5.sh: Likewise.
38584         * tests/test-exclude6.sh: Likewise.
38585         * tests/test-exclude7.sh: Likewise.
38587 2009-08-19  Akim Demaille  <demaille@gostai.com>
38589         bootstrap: find sha1sum when named gsha1sum.
38590         * bootstrap (find_tool): New.
38591         ($SHA1SUM): New.
38592         Use it.
38594 2009-08-20  Jim Meyering  <meyering@redhat.com>
38596         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38597         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38598         expression that converts "." in a file name to "\." in the resulting
38599         regexp.  Start with a dummy statement, so that prior shell variable
38600         definitions are expanded portably.  Reported by Simon Josefsson.
38602 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38604         Fix polling for writeability of a screen buffer.
38605         * lib/poll.c: Distinguish input and screen buffers for the
38606         Win32 implementation.
38607         * lib/select.c: Likewise.
38609 2009-08-19  Eric Blake  <ebb9@byu.net>
38611         popen-safer: prevent popen from clobbering std descriptors
38612         * modules/popen-safer: New file.
38613         * lib/popen-safer.c: Likewise.
38614         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38615         * lib/stdio--.h (popen): Provide override.
38616         * lib/stdio-safer.h (popen_safer): Provide declaration.
38617         * tests/test-popen.c (includes): Partially test this.
38618         * modules/popen-safer-tests: New file, for more tests.
38619         * tests/test-popen-safer.c: Likewise.
38620         * MODULES.html.sh (file stream based Input/Output): Mention it.
38622         tests: test some of the *-safer modules
38623         * modules/fopen-safer (Depends-on): Add fopen.
38624         * modules/fcntl-safer (Depends-on): Add fcntl.
38625         * modules/stdlib-safer (Depends-on): Add stdlib.
38626         (configure.ac): Set indicator.
38627         * modules/unistd-safer (configure.ac): Likewise.
38628         * modules/tmpfile-safer (configure.ac): Likewise.
38629         (Depends-on): Add tmpfile.
38630         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38631         active.
38632         * tests/test-fopen.c (includes): Test safer versions when they are
38633         in use.
38634         * tests/test-open.c (includes): Likewise.
38636         popen: fix cygwin 1.5 bug when stdin closed
38637         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38638         * modules/popen: New file.
38639         * modules/popen-tests: Likewise.
38640         * tests/test-popen.c: Likewise.
38641         * m4/popen.m4: Likewise.
38642         * lib/popen.c: Likewise.
38643         * lib/stdio.in.h (popen): New declaration.
38644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38645         * modules/stdio (Makefile.am): Likewise.
38646         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38648 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38650         maint.mk: give full control over update-copyright exclusions
38651         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38652         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38653         (update-copyright): Don't force inclusion of top-level
38654         ChangeLog.  Don't force exclusion of all COPYING files, but make
38655         them the default exclusion instead.
38657 2009-08-16  Bruno Haible  <bruno@clisp.org>
38659         Fix test failures on Solaris 10.
38660         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38661         tests when Solaris iconv() is used.
38662         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38663         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38664         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38665         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38666         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38668 2009-08-16  Bruno Haible  <bruno@clisp.org>
38670         Fix test failures on Solaris 10.
38671         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38672         'tr' program and pass it as first argument.
38673         * tests/test-pipe-filter-gi1.sh: Likewise.
38674         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38675         program as first argument.
38676         * tests/test-pipe-filter-gi1.c (main): Likewise.
38678 2009-08-16  Eric Blake  <ebb9@byu.net>
38680         fpurge: fix previous commits
38681         * modules/fpurge (Makefile.am): Make replacement conditional,
38682         partially reverting 2007-04-29 change; missed in previous
38683         attempt.
38684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38685         is missing.
38687 2009-08-16  Bruno Haible  <bruno@clisp.org>
38689         Clarify fpurge's effect on the file position.
38690         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38691         * tests/test-fpurge.c (main): Make a second pass for checking the file
38692         position.
38694 2009-08-16  Bruno Haible  <bruno@clisp.org>
38696         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38697         declaration of fpurge is missing.
38698         * tests/test-fpurge.c (main): Check that the file has not more contents
38699         than expected. Close the file before removing it.
38701 2009-08-15  Eric Blake  <ebb9@byu.net>
38703         fpurge: don't wrap working cygwin implementation
38704         * lib/fpurge.c (fpurge): Fix comment typo.
38705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38706         1.7 to avoid replacement.
38707         * tests/test-fpurge.c (main): Enhance test.
38709 2009-08-15  Eric Blake  <ebb9@byu.net>
38710         and Jim Meyering  <meyering@redhat.com>
38712         test-update-copyright: skip if perl is insufficient
38713         * tests/test-update-copyright.sh: Failure to run maintainer tool
38714         should not cause testsuite failure on cygwin 1.5.
38716 2009-08-14  Eric Blake  <ebb9@byu.net>
38718         doc: mention more functions added in cygwin 1.7.0
38719         * doc/posix-headers/limits.texi (limits.h): Update for recent
38720         cygwin additions.
38721         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38722         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38723         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38724         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38725         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38727 2009-08-14  Eric Blake  <ebb9@byu.net>
38729         maint.mk: simplify update-copyright rule
38730         * top/maint.mk (update-copyright-local): Delete, and document how
38731         to do it in cfg.mk instead.
38732         (update-copyright-exclude-regexp): Delete, and document how to do
38733         it in .x-update-copyright instead.
38734         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38735         exclude ChangeLog.
38737 2009-08-14  Bruno Haible  <bruno@clisp.org>
38739         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38741 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38743         maint.mk: support update-copyright-env
38744         * top/maint.mk (update-copyright-env): Define place-holder.
38745         (update-copyright): Expand $(update-copyright-env) before
38746         invoking update-copyright.
38748 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38750         update-copyright: implement forced reformatting
38751         * build-aux/update-copyright: Implement and document
38752         UPDATE_COPYRIGHT_FORCE.
38753         * tests/test-update-copyright.sh: Test it.
38755 2009-08-14  Eric Blake  <ebb9@byu.net>
38756         and Bruno Haible  <bruno@clisp.org>
38758         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38759         * tests/test-locale.c: Revert previous patch related to NULL.
38760         * tests/test-stdio.c: Likewise.
38761         * tests/test-stdlib.c: Likewise.
38762         * tests/test-string.c: Likewise.
38763         * tests/test-unistd.c: Likewise.
38764         * modules/time-tests (Depends-on): Add verify.
38765         * modules/wchar-tests (Depends-on): Likewise.
38766         * tests/test-time.c: Test for NULL compliance.
38767         * tests/test-wchar.c: Likewise.
38768         * modules/locale (Depends-on): Add stddef.
38769         * modules/stdio (Depends-on): Likewise.
38770         * modules/stdlib (Depends-on): Likewise.
38771         * modules/string (Depends-on): Likewise.
38772         * modules/time (Depends-on): Likewise.
38773         * modules/unistd (Depends-on): Likewise.
38774         * modules/wchar (Depends-on): Likewise.
38775         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38776         * lib/stdlib.in.h (includes): Likewise.
38777         * lib/string.in.h (includes): Likewise.
38778         * lib/time.in.h (includes): Likewise.
38779         * lib/unistd.in.h (includes): Likewise.
38780         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38781         replaced.
38782         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38783         * m4/stddef_h.m4: New file.
38784         * modules/stddef: Likewise.
38785         * lib/stddef.in.h: Likewise.
38786         * modules/stddef-tests: Likewise.
38787         * tests/test-stddef.c: Likewise.
38788         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38789         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38790         * doc/posix-headers/locale.texi (locale.h): Likewise.
38791         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38792         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38793         * doc/posix-headers/string.texi (string.h): Likewise.
38794         * doc/posix-headers/time.texi (time.h): Likewise.
38795         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38796         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38798 2009-08-14  Eric Blake  <ebb9@byu.net>
38800         doc: improve git diff of texinfo files
38801         * .gitattributes: Add rule for *.texi files, with hint on how to
38802         use it.
38803         Copied from m4, and based on a report by Bruno Haible.
38805 2009-08-14  Bruno Haible  <bruno@clisp.org>
38807         Disable multithread support by default on Cygwin 1.5.x for real.
38808         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38810 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38812         update-copyright: much ado about intervals
38813         * build-aux/update-copyright: Implement and document
38814         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38815         of copyright year intervals.
38816         Also, document UPDATE_COPYRIGHT_YEAR.
38817         * tests/test-update-copyright.sh: Test it.
38819         update-copyright: convert 2-digit to 4-digit years
38820         * build-aux/update-copyright: Implement and document.
38821         * tests/test-update-copyright.sh: Update.
38823 2009-08-14  Jim Meyering  <meyering@redhat.com>
38825         test-exclude: avoid coreutils "make check" failure
38826         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38827         just as in test-argmatch.c.
38829 2009-08-13  Eric Blake  <ebb9@byu.net>
38831         test-dup2: fix bad assumption
38832         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38833         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38835         test-version-etc: fix CRLF portability issue
38836         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38837         recognize \r.
38838         * tests/test-argp-version-etc-1.sh: Likewise.
38840         getopt: update client modules
38841         * modules/argp (Depends-on): Use getopt-gnu.
38842         * modules/git-merge-changelog (Depends-on): Likewise.
38843         * modules/long-options (Depends-on): Likewise.
38844         * modules/xstrtol (Depends-on): Likewise.
38846 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38848         * tests/test-version-etc.sh: Don't fail on different
38849         project/version.  Don't fail on CRLF differences.  Rewrite to use
38850         multiple -e instead of multiple sed forks, suggested by Eric Blake
38851         <ebb9@byu.net>.
38852         * tests/test-argp-version-etc-1.sh: Likewise.
38854 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38856         * tests/test-version-etc.sh: Don't fail on different
38857         project/version.
38859 2009-08-12  Bruno Haible  <bruno@clisp.org>
38861         Tests for modules 'getopt-posix', 'getopt-gnu'.
38862         * modules/getopt-posix-tests: New file.
38863         * tests/test-getopt.c: New file.
38864         * tests/test-getopt.h: New file.
38865         * tests/test-getopt_long.h: New file.
38867         New modules 'getopt-posix', 'getopt-gnu'.
38868         * modules/getopt-gnu: New file, renamed from modules/getopt.
38869         * modules/getopt-posix: New file.
38870         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38871         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38872         (gl_GETOPT): Remove macro.
38873         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38874         Disable the test against BSD systems that declare optreset. Test
38875         against mingw bug. Test against lack of support of optional arguments
38876         on many platforms.
38877         * doc/glibc-headers/getopt.texi: Update module name and list of
38878         relevant platforms.
38879         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38880         'getopt-gnu' and more portability problems.
38881         * NEWS: Mention the changes.
38883 2009-08-12  Bruno Haible  <bruno@clisp.org>
38885         Ensure that optarg etc. get declared by <unistd.h>.
38886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38887         AC_USE_SYSTEM_EXTENSIONS.
38888         * modules/getopt (Depends-on): Add 'extensions'.
38890 2009-08-12  Bruno Haible  <bruno@clisp.org>
38892         Avoid test link errors.
38893         * modules/pipe-filter-ii-tests (Makefile.am): Define
38894         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38895         * modules/pipe-filter-gi-tests (Makefile.am): Define
38896         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38899 2009-08-12  Bruno Haible  <bruno@clisp.org>
38901         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38902         gl_GETOPT_SUBSTITUTE before.
38903         (gl_GETOPT): Use it.
38904         * m4/argp.m4 (gl_ARGP): Update.
38905         Reported by Sergey Poznyakoff.
38907         * m4/getopt.m4: Reorder macros.
38908         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38909         (gl_GETOPT_SUBSTITUTE): Remove macro.
38911 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38913         Minor improvement in gitlog-to-changelog
38915         * build-aux/gitlog-to-changelog: New option `--format' makes
38916         output format string configurable.
38918 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38920         Optimize exclude: use hash tables for non-wildcard patterns.
38922         * lib/exclude.c: Include hash.h and mbuiter.h
38923         (struct exclude_pattern, exclude_segment): New data types.
38924         (struct exclude): Rewrite.
38925         (fnmatch_pattern_has_wildcards): New function.
38926         (new_exclude_segment, free_exclude_segment): New functions.
38927         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38928         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38929         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38930         * modules/exclude: Depend on hash and mbuiter.
38932         * modules/exclude-tests: New file.
38933         * tests/test-exclude.c: New file.
38934         * tests/test-exclude1.sh: New file.
38935         * tests/test-exclude2.sh: New file.
38936         * tests/test-exclude3.sh: New file.
38937         * tests/test-exclude4.sh: New file.
38938         * tests/test-exclude5.sh: New file.
38939         * tests/test-exclude6.sh: New file.
38940         * tests/test-exclude7.sh: New file.
38942 2009-08-12  Bruno Haible  <bruno@clisp.org>
38944         Ensure that getopt() gets declared by <unistd.h>.
38945         * lib/unistd.in.h: Conditionally include getopt.h.
38946         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38947         Set GNULIB_UNISTD_H_GETOPT.
38948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38949         GNULIB_UNISTD_H_GETOPT.
38950         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38952 2009-08-12  Bruno Haible  <bruno@clisp.org>
38954         Clarify logic.
38955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38956         gl_replace_getopt instead of GETOPT_H.
38958 2009-08-12  Bruno Haible  <bruno@clisp.org>
38960         * m4/getopt.m4: Add comments.
38962 2009-08-12  Bruno Haible  <bruno@clisp.org>
38964         Disable multithread support by default on Cygwin 1.5.x.
38965         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38966         set gl_use_threads=no if not specified otherwise.
38968 2009-08-11  Bruno Haible  <bruno@clisp.org>
38970         Avoid compilation error on NetBSD 5.0.
38971         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38972         * tests/test-stdio.c: Likewise.
38973         * tests/test-stdlib.c: Likewise.
38974         * tests/test-string.c: Likewise.
38975         * tests/test-unistd.c: Likewise.
38976         Reported by Greg Troxel <gdt@ir.bbn.com>
38977         at <https://savannah.gnu.org/support/?106973>.
38979 2009-08-11  Bruno Haible  <bruno@clisp.org>
38981         * modules/dup2-tests (Depends-on): Remove close.
38983         Undo 2009-07-19 commit.
38984         * modules/acl-tests (Depends-on): Remove close.
38985         * modules/binary-io-tests (Depends-on): Likewise.
38986         * modules/closein-tests (Depends-on): Likewise.
38987         * modules/flock-tests (Depends-on): Likewise.
38988         * modules/fsync-tests (Depends-on): Likewise.
38989         * modules/lseek-tests (Depends-on): Likewise.
38990         * modules/pipe-tests (Depends-on): Likewise.
38991         * modules/posix_spawn-tests (Depends-on): Likewise.
38992         * modules/posix_spawnp-tests (Depends-on): Likewise.
38993         * modules/stat-time-tests (Depends-on): Likewise.
38994         * modules/yesno-tests (Depends-on): Likewise.
38996 2009-08-10  Bruno Haible  <bruno@clisp.org>
38998         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39000 2009-08-10  Bruno Haible  <bruno@clisp.org>
39002         Fix a gcc warning.
39003         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39005 2009-08-10  Bruno Haible  <bruno@clisp.org>
39007         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39008         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39009         not only the first time.
39010         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39011         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39012         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39013         is 1, not only the the first time.
39015 2009-08-10  Bruno Haible  <bruno@clisp.org>
39017         Make it possible to use module 'gethostname' without module 'close'.
39018         * lib/unistd.in.h (close): Evoke a link error only if
39019         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39021         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39022         * modules/unistd (Makefile.am): Substitute
39023         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39024         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39025         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39026         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39027         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39028         * modules/sys_ioctl (Makefile.am): Substitute
39029         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39030         * modules/socket (configure.ac): On native Windows, set
39031         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39032         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39033         Reported by Sam Steingold <sds@gnu.org>.
39035 2009-08-10  Bruno Haible  <bruno@clisp.org>
39037         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39038         * modules/ioctl (configure.ac): Likewise.
39040 2009-08-10  Bruno Haible  <bruno@clisp.org>
39042         Avoid collision between gnulib wrapper and libintl wrapper.
39043         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39044         already defined in intl/printf.c.
39045         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39046         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39048 2009-08-09  Bruno Haible  <bruno@clisp.org>
39050         Make <sys/select.h> really self-contained, also on Solaris 10.
39051         * lib/sys_select.in.h: Include <string.h>.
39052         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39053         Solaris 10 problem.
39054         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39055         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39056         Reported by Jim Meyering.
39058 2009-08-09  Bruno Haible  <bruno@clisp.org>
39060         Avoid warnings from 'aclocal' that are due to a use of macro name
39061         AM_XGETTEXT_OPTION that is not defined in automake.
39062         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39063         automake.
39064         * modules/error (configure.ac): Likewise.
39065         * modules/propername (configure.ac): Likewise.
39066         * modules/vasprintf (configure.ac): Likewise.
39067         * modules/verror (configure.ac): Likewise.
39068         * modules/xprintf (configure.ac): Likewise.
39069         * modules/xvasprintf (configure.ac): Likewise.
39071 2009-08-08  Bruno Haible  <bruno@clisp.org>
39073         Avoid compilation error in C++ mode.
39074         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39075         Reported by Sam Steingold <sds@gnu.org>.
39077 2009-08-08  Bruno Haible  <bruno@clisp.org>
39079         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39080         for the various Unix platforms.
39081         * doc/posix-headers/limits.texi: Update platforms list regarding
39082         HOST_NAME_MAX.
39083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39085 2009-08-07  Jim Meyering  <meyering@redhat.com>
39087         selinux-at: fix typo in a comment
39088         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39089         Spotted by Paolo Bonzini.
39091         selinux-at: remove redundant m4 code, add documentation
39092         * modules/selinux-at (configure.ac): Remove redundant code.
39093         LIB_SELINUX is already set via the dependent module, selinux-h.
39094         (Include): Add quotes around selinux-at.h.
39095         * lib/selinux-at.h: Add documentation.
39096         Reported by Bruno Haible in
39097         http://marc.info/?l=gnulib-bug&m=124958988300749
39099 2009-08-07  Bruno Haible  <bruno@clisp.org>
39101         Avoid link error on MacOS X 10.3 and 10.4.
39102         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39103         on non-ELF systems.
39104         * lib/argp-pv.c (argp_program_version): Likewise.
39105         Reported by Simon Josefsson.
39107 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39109         * tests/test-version-etc.sh: Use $EXEEXT.
39111 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39113         update-copyright: update documentation to point to maint.mk
39114         * build-aux/update-copyright: Here.
39116 2009-08-06  Jim Meyering  <meyering@redhat.com>
39118         maint.mk: support update-copyright-local
39119         * top/maint.mk (update-copyright-local): Define place-holder.
39120         (update-copyright): Depend on $(update-copyright-local).
39122 2009-08-06  Jim Meyering  <meyering@redhat.com>
39124         selinux-at: new module
39125         Initially written for coreutils, this module will soon be
39126         used by findutils, too.
39127         * MODULES.html.sh [Misc]: Add selinux-at.
39128         * lib/selinux-at.h: New file, from coreutils.
39129         * lib/selinux-at.c: Likewise.
39130         * modules/selinux-at: Likewise.
39131         (License): Change from LGPL to GPL, since it depends
39132         on the GPL'd openat module.
39134         doc: update README
39135         * README: Remove references to cogito.
39136         Remove cvs-repo-updating instructions from 2007.
39137         Don't imply that CVS is better if you have limited disk space.
39139 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39141         update-copyright: support C-style comments
39142         * build-aux/update-copyright: Implement and document.
39143         * tests/test-update-copyright.sh: Test.
39145 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39147         update-copyright: support omitted "(C)"
39148         * build-aux/update-copyright: Implement and document.  Also,
39149         allow variable whitespace before "(C)".
39150         * tests/test-update-copyright.sh: Test.
39152 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39154         update-copyright: don't trip on non-FSF copyright statements
39155         * build-aux/update-copyright: Fix so that the first correctly
39156         formatted FSF copyright statement is recognized no matter what
39157         appears before it.  Update documentation.
39158         * tests/test-update-copyright.sh: Test that.
39160 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39162         update-copyright: clean up code a little
39163         * build-aux/update-copyright: Append "_re" to the name of any
39164         variable holding a regular expression.
39165         Replace "old" and "new" with "stmt" in variable names.
39166         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39167         handled correctly.
39168         Format code more consistently.
39170 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39172         update-copyright-tests: improve portability
39173         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39174         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39176 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39178         update-copyright: support @copyright{} and &copy;
39179         * build-aux/update-copyright: Implement and document.
39180         * tests/test-update-copyright.sh: Test.
39182 2009-08-04  Jim Meyering  <meyering@redhat.com>
39184         update-copyright-tests: correctly test EOL=\r\n handling
39185         * tests/test-update-copyright.sh: Put \r at the end of some lines
39186         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39188         maint.mk: make update-copyright exclusion list more configurable
39189         * top/maint.mk (update-copyright): Default to excluding COPYING,
39190         but allow an override, in case someone does want to update that file.
39192         maint.mk: don't update copyright date in COPYING
39193         * top/maint.mk (update-copyright): Exclude COPYING.
39195         maint.mk: add a copyright-updating rule
39196         * top/maint.mk (update-copyright): New rule.
39197         Derived from coreutils/Makefile.am.
39199         update-copyright: rename some variables
39200         * build-aux/update-copyright: Rename a few variables for clarity.
39201         Tweak syntax.  List Joel E. Denny as coauthor.
39203 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39205         update-copyright: fix bug for 2-digit last year and add tests
39206         * build-aux/update-copyright: Fix bug.
39207         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39208         specified.
39209         * modules/update-copyright-tests: New
39210         * tests/test-update-copyright.sh: New.
39212 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39214         update-copyright: handle leading tabs in line prefix
39215         * build-aux/update-copyright: Count leading tabs as 8 spaces
39216         when computing margin.  This helps with the formatting of
39217         ChangeLogs, for example.
39218         Fix documentation a little.
39220 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39222         update-copyright: support EOL=\r\n
39223         * build-aux/update-copyright: Implement that.
39225 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39227         update-copyright: automatically format copyright statements
39228         * build-aux/update-copyright: Implement that.
39229         Also, be a little more predictable and safer by always failing
39230         when the full copyright format is not perfectly recognized as an
39231         unbroken whole.  Discussed at
39232         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39233         Rewrite documentation.
39235 2009-08-03  Bruno Haible  <bruno@clisp.org>
39237         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39239 2009-08-02  Bruno Haible  <bruno@clisp.org>
39241         Tests for module 'uname'.
39242         * modules/uname-tests: New file.
39243         * tests/test-uname.c: New file.
39245         New module 'uname'.
39246         * lib/uname.c: New file.
39247         * m4/uname.m4: New file.
39248         * modules/uname: New file.
39249         * doc/posix-functions/uname.texi: Mention the new module.
39251 2009-08-02  Bruno Haible  <bruno@clisp.org>
39253         Tests for module 'sys_utsname'.
39254         * modules/sys_utsname-tests: New file.
39255         * tests/test-sys_utsname.c: New file.
39257         New module 'sys_utsname'.
39258         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39259         * m4/sys_utsname_h.m4: New file.
39260         * modules/sys_utsname: New file.
39261         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39263 2009-08-02  Bruno Haible  <bruno@clisp.org>
39265         Implicitly initialize the sockets library.
39266         * lib/gethostname.c: Include sockets.h.
39267         (rpl_gethostname): Invoke gl_sockets_startup.
39268         * lib/socket.c: Include sockets.h.
39269         (rpl_socket): Invoke gl_sockets_startup.
39270         * modules/gethostname (Depends-on): Add sockets.
39271         * modules/socket (Depends-on): Likewise.
39272         * tests/test-poll.c: Don't include sockets.h.
39273         (main): Don't invoke gl_sockets_startup.
39274         * tests/test-select.c: Don't include sockets.h.
39275         (main): Don't invoke gl_sockets_startup.
39277 2009-08-02  Bruno Haible  <bruno@clisp.org>
39279         Allow multiple calls to gl_sockets_startup.
39280         * lib/sockets.c (initialized_sockets_version): New variable.
39281         (gl_sockets_startup): Do nothing if already called for this or a higher
39282         version.
39283         (gl_sockets_cleanup): Reset initialized_sockets_version.
39285 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39287         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39288         different project/version.
39290 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39291             Bruno Haible  <bruno@clisp.org>
39293         Tests for module 'pipe-filter-gi'.
39294         * modules/pipe-filter-gi-tests: New file.
39295         * tests/test-pipe-filter-gi1.sh: New file.
39296         * tests/test-pipe-filter-gi1.c: New file.
39297         * tests/test-pipe-filter-gi2.sh: New file.
39298         * tests/test-pipe-filter-gi2-main.c: New file.
39299         * tests/test-pipe-filter-gi2-child.c: New file.
39301         New module 'pipe-filter-gi'.
39302         * lib/pipe-filter-gi.c: New file.
39303         * modules/pipe-filter-gi: New file.
39305 2009-08-02  Bruno Haible  <bruno@clisp.org>
39306             Paolo Bonzini  <bonzini@gnu.org>
39308         Tests for module 'pipe-filter-ii'.
39309         * modules/pipe-filter-ii-tests: New file.
39310         * tests/test-pipe-filter-ii1.sh: New file.
39311         * tests/test-pipe-filter-ii1.c: New file.
39312         * tests/test-pipe-filter-ii2.sh: New file.
39313         * tests/test-pipe-filter-ii2-main.c: New file.
39314         * tests/test-pipe-filter-ii2-child.c: New file.
39316         New module 'pipe-filter-ii'.
39317         * lib/pipe-filter.h: New file.
39318         * lib/pipe-filter-ii.c: New file.
39319         * lib/pipe-filter-aux.h: New file.
39320         * modules/pipe-filter-ii: New file.
39322 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39324         * lib/gc-libgcrypt.c: Change copyright to FSF.
39325         * lib/gc-gnulib.c: Likewise.
39327 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39329         * lib/gethostname.c: Include limits.h.
39331 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39332             Bruno Haible  <bruno@clisp.org>
39334         Ensure HOST_NAME_MAX as part of the gethostname module.
39335         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39336         define also HOST_NAME_MAX.
39337         * tests/test-gethostname.c: Include <limits.h>.
39338         (main): Check also HOST_NAME_MAX.
39339         * doc/posix-headers/limits.texi: Document the mingw problem.
39341 2009-08-02  Bruno Haible  <bruno@clisp.org>
39343         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39344         Add comments.
39346 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39348         * lib/gethostname.c: Add Windows wrapper.
39349         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39350         * modules/gethostname: Depend on sys_socket & errno, for also
39351         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39352         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39354 2009-07-31  Jim Meyering  <meyering@redhat.com>
39356         getloadavg: fix symbol name in comment
39357         * lib/getloadavg.c: Correct a typo I introduced when adding
39358         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39359         Matt Kraai spotted the problem.
39361 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39363         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39364         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39365         code also if ! defined N_NAME_POINTER.
39366         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39367         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39368         but the n_name member is a 12-byte array.
39370 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39372         update-copyright: generalize comment handling
39373         * build-aux/update-copyright: Handle copyright statements
39374         within more comment styles.
39375         Document usage.
39376         Report any file with an external copyright holder or parse failure.
39378 2009-07-29  Jim Meyering  <meyering@redhat.com>
39380         mktime: correct setting of REPLACE_MKTIME
39381         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39383         update-copyright: new module
39384         * modules/update-copyright: New file.
39385         * build-aux/update-copyright: New file.
39386         * MODULES.html.sh (maint+release support): Add update-copyright.
39388 2009-07-27  Bruno Haible  <bruno@clisp.org>
39390         Fix compilation error when <ctime> is used and mktime is replaced.
39391         * lib/time.in.h (mktime): New declaration.
39392         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39393         REPLACE_MKTIME instead of defining mktime in config.h.
39394         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39395         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39396         Reported by Ross McFarland <rwmcfa1@neces.com>.
39398 2009-07-27  Bruno Haible  <bruno@clisp.org>
39400         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39401         Reported by Matt Kraai <mkraai@beckman.com>.
39403 2009-07-25  Jim Meyering  <meyering@redhat.com>
39405         maint.mk: avoid warnings about missing files
39406         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39407         diagnostic when .prev-version does not exist.
39408         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39409         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39410         nonexistent cfg.mk.
39411         Suggestions from Simon Josefsson.
39413 2009-07-25  Bruno Haible  <bruno@clisp.org>
39415         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39416         defined as macros. Needed on QNX 6.4.1.
39417         Reported by Matt Kraai <mkraai@beckman.com>.
39419 2009-07-23  Jim Meyering  <meyering@redhat.com>
39421         maint.mk: invoke "make dist" with a working value of XZ_OPT
39422         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39424 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39426         Make fseeko.c compile on QNX.
39427         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39429 2009-07-22  Peter Simons  <simons@cryp.to>
39431         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39432         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39433         * lib/md4.h: Likewise.
39434         * lib/md5.h: Likewise.
39435         * lib/sha1.h: Likewise.
39436         * lib/sha256.h: Likewise.
39437         * lib/sha512.h: Likewise.
39439         tests-sha1: don't assign literal string to 'char *' variable
39440         * tests/test-sha1.c (main): Declare locals with "const" to match
39441         attributes of the right hand side.
39443 2009-07-21  Eric Blake  <ebb9@byu.net>
39445         dup2: fix more mingw problems
39446         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39447         fd to itself.
39448         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39449         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39450         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39451         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39452         care of mingw bugs.
39454 2009-07-21  Jim Meyering  <meyering@redhat.com>
39456         vc-list-files: avoid failure when /bin/sh is dash
39457         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39458         On some Debian based systems, /bin/sh is a symlink to dash, and running
39459         this command would omit the "/" following each 'tests' prefix:
39460           dash -x build-aux/vc-list-files -C . tests
39461         That is because bash and dash work differently:
39462           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39463           bash ok
39464           dash odd
39466 2009-07-21  Eric Blake  <ebb9@byu.net>
39468         dup2-tests: test previous patch
39469         * modules/dup2-tests: New file.
39470         * tests/test-dup2.c: Likewise.
39471         * tests/test-open.c (main): Avoid unspecified behavior.
39472         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39473         test.
39475         dup2: work around mingw and cygwin 1.5 bug
39476         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39478         * modules/unistd (Makefile.am): Substitute it.
39479         * lib/unistd.in.h (dup2): Declare the replacement.
39480         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39481         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39482         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39483         * modules/execute (Depends-on): Add dup2.
39484         * modules/fseterr (Depends-on): Likewise.
39485         * modules/pipe (Depends-on): Likewise.
39486         * modules/posix_spawn-internal (Depends-on): Likewise.
39488 2009-07-21  Bruno Haible  <bruno@clisp.org>
39490         * modules/.gitattributes: New file.
39492 2009-07-20  Bruno Haible  <bruno@clisp.org>
39494         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39495         (main): Use it.
39497 2009-07-20  Eric Blake  <ebb9@byu.net>
39499         test-pipe: make a bit more robust.
39500         * tests/test-pipe.c (myerr): Allow error messages regardless of
39501         what we do to stderr.
39502         (test_pipe): Rearrange to avoid deadlock.
39503         (child_main): Try a larger read, to ensure we avoided deadlock.
39504         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39505         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39506         if misused.
39508 2009-07-19  Jim Meyering  <meyering@redhat.com>
39510         fts: avoid false-positive cycle-detection
39511         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39512         for each new command line argument.
39514 2009-07-19  Bruno Haible  <bruno@clisp.org>
39516         Fix build error on mingw with the modules sys_select and unistd.
39517         * modules/acl-tests (Depends-on): Add close.
39518         * modules/binary-io-tests (Depends-on): Likewise.
39519         * modules/closein-tests (Depends-on): Likewise.
39520         * modules/flock-tests (Depends-on): Likewise.
39521         * modules/fsync-tests (Depends-on): Likewise.
39522         * modules/lseek-tests (Depends-on): Likewise.
39523         * modules/pipe-tests (Depends-on): Likewise.
39524         * modules/posix_spawn-tests (Depends-on): Likewise.
39525         * modules/posix_spawnp-tests (Depends-on): Likewise.
39526         * modules/stat-time-tests (Depends-on): Likewise.
39527         * modules/yesno-tests (Depends-on): Likewise.
39529 2009-07-19  Bruno Haible  <bruno@clisp.org>
39531         Unify conditionals.
39532         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39533         macros, not at the compiler macros.
39534         * lib/pipe.c: Likewise.
39535         * lib/execute.c: Likewise.
39536         * lib/spawni.c: Likewise.
39538 2009-07-19  Bruno Haible  <bruno@clisp.org>
39540         Fix handling of closed stdin/stdout/stderr on mingw.
39541         * lib/w32spawn.h: Include unistd.h.
39542         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39543         file descriptor with O_NOINHERIT flag.
39544         (fd_safer_noinherit): New function, based on fd-safer.c.
39545         (dup_safer_noinherit): New function, based on dup-safer.c.
39546         (undup_safer_noinherit): New function.
39547         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39548         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39549         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39550         instead of fd_safer.
39551         * tests/test-pipe.c: Include <windows.h>.
39552         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39553         result.
39555         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39556         from main.
39557         (test_pipe): Pass an extra argument for disambiguation.
39558         (main): Invoke parent_main or child_main.
39560         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39561         consistently.
39563 2009-07-18  Eric Blake  <ebb9@byu.net>
39565         test-pipe: fix mingw build
39566         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39568 2009-07-18  Bruno Haible  <bruno@clisp.org>
39570         * modules/pipe-tests (Makefile.am): Fix typo.
39572 2009-07-18  Eric Blake  <ebb9@byu.net>
39574         error: fix mingw build
39575         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39576         Reported by Bruno Haible.
39578         error: avoid undefined use of stdout
39579         * lib/error.c (error, error_at_line): Check that fd 1 is open
39580         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39581         is handling faults and the close_stdout module wants to report the
39582         detection of closed stdout as an error.
39584 2009-07-17  Eric Blake  <ebb9@byu.net>
39586         pipe: be robust in face of closed fds
39587         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39588         should cause child to misbehave.
39589         * modules/pipe-tests: New module.
39590         * tests/test-pipe.c: New file.
39591         * tests/test-pipe.sh: New file.
39592         Reported by Akim Demaille.
39594 2009-07-14  Bruno Haible  <bruno@clisp.org>
39596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39597         Reported by anonymous kc.
39599 2009-07-07  Jim Meyering  <meyering@redhat.com>
39601         maint.mk: don't look for translatable strings in *.m4 or *.mk
39602         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39603         when searching for translatable strings.
39605 2009-07-05  Jim Meyering  <meyering@redhat.com>
39607         remove superfluous parentheses in STREQ definition
39608         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39609         * lib/getugroups.c (STREQ): Likewise.
39610         * lib/fnmatch.c (STREQ): Likewise.
39611         Spotted by Bruno Haible.
39613 2009-07-04  Jim Meyering  <meyering@redhat.com>
39615         argv-iter: new module
39616         * MODULES.html.sh: Add argv-iter.
39617         * lib/argv-iter.c, lib/argv-iter.h: New files.
39618         * modules/argv-iter: New file.
39619         * modules/argv-iter-tests: New file.
39620         * tests/test-argv-iter.c: Test it.
39622 2009-07-04  Bruno Haible  <bruno@clisp.org>
39624         Fix assertion.
39625         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39626         contains more exact copies of a given entry than file2, leave the extra
39627         copies unpaired rather than aborting.
39628         Reported by Eric Blake.
39630 2009-07-02  Bruno Haible  <bruno@clisp.org>
39632         Speedup git-merge-changelog for git cherry-pick.
39633         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39634         (entries_mapping_get): New function, extracted from compute_mapping.
39635         (entries_mapping_reverse_get): New function.
39636         (compute_mapping): Add a 'full' argument. Return the result in a
39637         'struct entries_mapping'.
39638         (main): Update. Access the mappings through entries_mapping_get.
39639         Reported by Eric Blake.
39641 2009-07-02  Bruno Haible  <bruno@clisp.org>
39643         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39644         best_i.
39646 2009-07-02  Bruno Haible  <bruno@clisp.org>
39648         Speed up approximate search for matching ChangeLog entries.
39649         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39650         argument. Call fstrcmp_bounded instead of fstrcmp.
39651         (compute_mapping, try_split_merged_entry, main): Update callers.
39653 2009-07-02  Bruno Haible  <bruno@clisp.org>
39655         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39657 2009-06-30  Bruno Haible  <bruno@clisp.org>
39659         Reduce the number of uc_is_cased calls.
39660         * lib/unicase.h (casing_suffix_context_t): Add
39661         'first_char_except_ignorable' field.
39662         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39663         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39664         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39665         Update initializer.
39666         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39667         case-ignorable characters.
39668         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39669         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39670         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39671         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39672         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39674 2009-06-30  Bruno Haible  <bruno@clisp.org>
39676         Tests for module 'unicase/ignorable'.
39677         * modules/unicase/ignorable-tests: New file.
39678         * tests/unicase/test-ignorable.c: New file, generated by
39679         gen-uni-tables.
39681         Tests for module 'unicase/cased'.
39682         * modules/unicase/cased-tests: New file.
39683         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39684         * tests/unicase/test-predicate-part1.h: New file, derived from
39685         tests/unictype/test-predicate-part1.h.
39686         * tests/unicase/test-predicate-part2.h: New file, same as
39687         tests/unictype/test-predicate-part2.h.
39689         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39690         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39691         (output_casing_properties): New function.
39692         (main): Call it.
39693         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39694         * lib/unicase/cased.c: Include unictype/bitmap.h.
39695         (uc_is_cased): Define through a bitmap lookup.
39696         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39697         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39698         (uc_is_case_ignorable): Define through a bitmap lookup.
39699         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39700         lib/unictype/bitmap.h.
39701         (Depends-on): Add inline. Clean up.
39702         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39703         lib/unictype/bitmap.h.
39704         (Depends-on): Add inline. Clean up.
39705         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39706         recognition.
39707         * tests/unicase/test-u16-tolower.c (main): Likewise.
39708         * tests/unicase/test-u32-tolower.c (main): Likewise.
39710 2009-06-30  Bruno Haible  <bruno@clisp.org>
39712         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39713         * lib/unicase/u16-casemap.c: Likewise.
39714         * lib/unicase/u32-casemap.c: Likewise.
39716 2009-06-29  Bruno Haible  <bruno@clisp.org>
39718         Define u32_casefold as a wrapper around u32_ct_casefold.
39719         * lib/unicase/u32-casefold.c: Update.
39720         * modules/unicase/u32-casefold (Depends-on): Add
39721         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39722         unicase/empty-suffix-context. Clean up.
39724         Define u16_casefold as a wrapper around u16_ct_casefold.
39725         * lib/unicase/u16-casefold.c: Update.
39726         * modules/unicase/u16-casefold (Depends-on): Add
39727         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39728         unicase/empty-suffix-context. Clean up.
39730         Define u8_casefold as a wrapper around u8_ct_casefold.
39731         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39732         * lib/unicase/u8-casefold.c: Update.
39733         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39734         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39736         Define u32_totitle as a wrapper around u32_ct_totitle.
39737         * lib/unicase/u32-totitle.c: Update.
39738         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39739         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39741         Define u16_totitle as a wrapper around u16_ct_totitle.
39742         * lib/unicase/u16-totitle.c: Update.
39743         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39744         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39746         Define u8_totitle as a wrapper around u8_ct_totitle.
39747         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39748         functions.
39749         (FUNC): Delegate to U_CT_TOTITLE.
39750         * lib/unicase/u8-totitle.c: Update.
39751         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39752         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39754         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39755         invocation.
39756         * modules/unicase/u32-tolower (Depends-on): Add
39757         unicase/empty-prefix-context, unicase/empty-suffix-context.
39759         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39760         invocation.
39761         * modules/unicase/u16-tolower (Depends-on): Add
39762         unicase/empty-prefix-context, unicase/empty-suffix-context.
39764         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39765         * modules/unicase/u8-tolower (Depends-on): Add
39766         unicase/empty-prefix-context, unicase/empty-suffix-context.
39768         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39769         invocation.
39770         * modules/unicase/u32-toupper (Depends-on): Add
39771         unicase/empty-prefix-context, unicase/empty-suffix-context.
39773         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39774         invocation.
39775         * modules/unicase/u16-toupper (Depends-on): Add
39776         unicase/empty-prefix-context, unicase/empty-suffix-context.
39778         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39779         * modules/unicase/u8-toupper (Depends-on): Add
39780         unicase/empty-prefix-context, unicase/empty-suffix-context.
39782         New module 'unicase/u32-ct-casefold'.
39783         * lib/unicase/u32-ct-casefold.c: New file.
39784         * modules/unicase/u32-ct-casefold: New file.
39786         New module 'unicase/u16-ct-casefold'.
39787         * lib/unicase/u16-ct-casefold.c: New file.
39788         * modules/unicase/u16-ct-casefold: New file.
39790         New module 'unicase/u8-ct-casefold'.
39791         * lib/unicase/u8-ct-casefold.c: New file.
39792         * lib/unicase/u-ct-casefold.h: New file, derived from
39793         lib/unicase/u-casefold.h.
39794         * modules/unicase/u8-ct-casefold: New file.
39796         New module 'unicase/u32-ct-totitle'.
39797         * lib/unicase/u32-ct-totitle.c: New file.
39798         * modules/unicase/u32-ct-totitle: New file.
39800         New module 'unicase/u16-ct-totitle'.
39801         * lib/unicase/u16-ct-totitle.c: New file.
39802         * modules/unicase/u16-ct-totitle: New file.
39804         New module 'unicase/u8-ct-totitle'.
39805         * lib/unicase/u8-ct-totitle.c: New file.
39806         * lib/unicase/u-ct-totitle.h: New file, derived from
39807         lib/unicase/u-totitle.h.
39808         * modules/unicase/u8-ct-totitle: New file.
39810         New module 'unicase/u32-ct-tolower'.
39811         * lib/unicase/u32-ct-tolower.c: New file.
39812         * modules/unicase/u32-ct-tolower: New file.
39814         New module 'unicase/u16-ct-tolower'.
39815         * lib/unicase/u16-ct-tolower.c: New file.
39816         * modules/unicase/u16-ct-tolower: New file.
39818         New module 'unicase/u8-ct-tolower'.
39819         * lib/unicase/u8-ct-tolower.c: New file.
39820         * modules/unicase/u8-ct-tolower: New file.
39822         New module 'unicase/u32-ct-toupper'.
39823         * lib/unicase/u32-ct-toupper.c: New file.
39824         * modules/unicase/u32-ct-toupper: New file.
39826         New module 'unicase/u16-ct-toupper'.
39827         * lib/unicase/u16-ct-toupper.c: New file.
39828         * modules/unicase/u16-ct-toupper: New file.
39830         New module 'unicase/u8-ct-toupper'.
39831         * lib/unicase/u8-ct-toupper.c: New file.
39832         * modules/unicase/u8-ct-toupper: New file.
39834         Add context arguments to u*_casemap functions.
39835         * lib/unicase/unicasemap.h: Include unicase.h.
39836         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39837         suffix_context arguments.
39838         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39839         functions.
39840         (FUNC): Add prefix_context and suffix_context arguments. Use
39841         uc_is_cased and uc_is_case_ignorable.
39842         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39843         * lib/unicase/u16-casemap.c: Likewise.
39844         * lib/unicase/u32-casemap.c: Likewise.
39845         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39846         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39847         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39848         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39849         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39850         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39852         New module 'unicase/u32-suffix-context'.
39853         * lib/unicase/u32-suffix-context.c: New file.
39854         * modules/unicase/u32-suffix-context: New file.
39856         New module 'unicase/u16-suffix-context'.
39857         * lib/unicase/u16-suffix-context.c: New file.
39858         * modules/unicase/u16-suffix-context: New file.
39860         New module 'unicase/u8-suffix-context'.
39861         * lib/unicase/u8-suffix-context.c: New file.
39862         * lib/unicase/u-suffix-context.h: New file.
39863         * modules/unicase/u8-suffix-context: New file.
39865         New module 'unicase/empty-suffix-context'.
39866         * lib/unicase/empty-suffix-context.c: New file.
39867         * modules/unicase/empty-suffix-context: New file.
39869         New module 'unicase/u32-prefix-context'.
39870         * lib/unicase/u32-prefix-context.c: New file.
39871         * modules/unicase/u32-prefix-context: New file.
39873         New module 'unicase/u16-prefix-context'.
39874         * lib/unicase/u16-prefix-context.c: New file.
39875         * modules/unicase/u16-prefix-context: New file.
39877         New module 'unicase/u8-prefix-context'.
39878         * lib/unicase/u8-prefix-context.c: New file.
39879         * lib/unicase/u-prefix-context.h: New file.
39880         * lib/unicase/context.h: New file.
39881         * modules/unicase/u8-prefix-context: New file.
39883         New module 'unicase/empty-prefix-context'.
39884         * lib/unicase/empty-prefix-context.c: New file.
39885         * modules/unicase/empty-prefix-context: New file.
39887         New module 'unicase/ignorable'.
39888         * lib/unicase/ignorable.c: New file.
39889         * modules/unicase/ignorable: New file.
39891         New module 'unicase/cased'.
39892         * lib/unicase/caseprop.h: New file.
39893         * lib/unicase/cased.c: New file.
39894         * modules/unicase/cased: New file.
39896         New functions for case mapping of substrings.
39897         * lib/unicase.h (casing_prefix_context_t): New type.
39898         (unicase_empty_prefix_context): New variable.
39899         (u8_casing_prefix_context, u16_casing_prefix_context,
39900         u32_casing_prefix_context, u8_casing_prefixes_context,
39901         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39902         declarations.
39903         (casing_suffix_context_t): New type.
39904         (unicase_empty_suffix_context): New variable.
39905         (u8_casing_suffix_context, u16_casing_suffix_context,
39906         u32_casing_suffix_context, u8_casing_suffixes_context,
39907         u16_casing_suffixes_context, u32_casing_suffixes_context,
39908         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39909         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39910         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39911         declarations.
39913 2009-06-28  Jim Meyering  <meyering@redhat.com>
39915         boostrap: indent only with spaces
39916         * build-aux/bootstrap: Indent only with spaces, never TABs.
39918         bootstrap: split long lines
39919         * build-aux/bootstrap: Keep line length < 80.
39921         bootstrap: sync from coreutils
39922         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39923         just as autoreconf does.  Verify a list of prerequisite
39924         package-name,version-number pairs if defined in bootstrap.conf.
39925         Refer to README-prereq, if prerequisites are not satisfied.
39927 2009-06-27  Eric Blake  <ebb9@byu.net>
39929         tests: add test for bogus NULL definition
39930         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39931         * tests/test-stdlib.c: Likewise.
39932         * tests/test-string.c: Likewise.
39933         * tests/test-locale.c: Likewise.
39934         * tests/test-unistd.c: Likewise.
39935         * modules/stdio-tests (Depends-on): Add verify.
39936         * modules/stdlib-tests (Depends-on): Likewise.
39937         * modules/string-tests (Depends-on): Likewise.
39938         * modules/locale-tests (Depends-on): Likewise.
39939         * modules/unistd-tests (Depends-on): Likewise.
39941 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39943         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39944         self-explaining comment.
39945         * m4/selinux-selinux-h: Update serial.
39946         (gl_LIBSELINUX): New macro, adding a warning for missing development
39947         packages to code extracted from...
39948         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39949         Add warning for missing development packages here, too.
39951 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39953         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39955 2009-06-25  Eric Blake  <ebb9@byu.net>
39957         version-etc: fix regression
39958         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39959         gcc.
39960         (version_etc): Use it, to catch bugs with trailing NULL.
39961         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39962         (version_etc_va): Fix logic bug.
39963         * modules/version-etc-tests: Add test.
39964         * tests/test-version-etc.c: New file.
39965         * tests/test-version-etc.sh: Likewise.
39967 2009-06-25  Sam Steingold  <sds@gnu.org>
39969         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39970         mbtowc declaration.
39972 2009-06-25  Eric Blake  <ebb9@byu.net>
39974         fpurge: migrate into <stdio.h>
39975         * lib/fpurge.h: Delete...
39976         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39977         * lib/fpurge.c (fpurge): Change declaring header.
39978         * modules/fpurge (Files): Drop deleted file.
39979         (Depends-on): Add stdio.
39980         (configure.ac): Set witness.
39981         * modules/stdio (Makefile.am): Support fpurge macros.
39982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39983         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39984         * lib/fflush.c: Update client.
39985         * tests/test-fpurge.c: Likewise.
39986         * NEWS: Mention the change.
39988 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39990         * lib/argp-version-etc.c (program_authors): Add const
39991         qualifier.
39992         * lib/version-etc.c: Fix typos in the comments.
39993         * modules/argp-version-etc: Depends on version-etc.
39995 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39997         argp-version-etc: new module.
39999         * lib/argp-version-etc.c: New file.
40000         * lib/argp-version-etc.h: New file.
40001         * modules/argp-version-etc: New file.
40002         * modules/argp-version-etc-tests: New file.
40003         * tests/test-argp-version-etc.c: New test.
40004         * tests/test-argp-version-etc-1.sh: New test.
40006 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40008         Provide additional interfaces and documentation for version-etc
40009         module.
40011         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40012         interfaces.
40013         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40014         prototypes.
40016 2009-06-24  Bruno Haible  <bruno@clisp.org>
40018         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40019         HAVE_LIB${NAME} macro.
40020         Reported by Sam Steingold <sds@gnu.org>.
40022 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40024         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40025         needed.
40027 2009-06-21  Bruno Haible  <bruno@clisp.org>
40029         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40030         work.
40031         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40032         together with LIB${NAME}, LTLIB${NAME}.
40033         Reported by Sam Steingold <sds@gnu.org>.
40035 2009-06-20  Jim Meyering  <meyering@redhat.com>
40037         tests: make sc_require_test_exit_idiom more generic
40038         * top/maint.mk (Exit_witness_file): New overridable variable.
40039         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40040         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40042 2009-06-19  Jim Meyering  <meyering@redhat.com>
40044         hash: reverse order of src/dst parameters in an internal interface
40045         * lib/hash.c (transfer_entries): Reverse order of parameters to
40046         put DST before SRC.  Adjust callers.
40048         tests: test-hash: avoid wholesale duplication
40049         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40050         Instead, use a loop and add a single conditional.
40052         tests: test-hash: allow seed selection via a command line argument
40053         * tests/test-hash.c (get_seed): New function.
40054         (main): Use it.
40056 2009-06-19  Eric Blake  <ebb9@byu.net>
40058         hash: avoid memory leak on allocation failure
40059         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40060         failure.  Factor repeated algorithm...
40061         (transfer_entries): ...into new helper routine.
40062         (hash_delete): React to hash_rehash return value.
40064         hash: reduce memory pressure in hash_rehash no-op case
40065         * lib/hash.c (next_prime): Avoid overflow.
40066         (hash_initialize): Factor bucket size computation...
40067         (compute_bucket_size): ...into new helper function.
40068         (hash_rehash): Use new function and open coding to reduce memory
40069         pressure, and avoid a memory leak in USE_OBSTACK code.
40070         Reported by Jim Meyering.
40072 2009-06-18  Eric Blake  <ebb9@byu.net>
40074         hash: make rotation more obvious
40075         * modules/hash (Depends-on): Add bitrotate and stdint.
40076         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40077         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40078         (SIZE_MAX): Rely on headers for definition.
40079         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40080         (raw_hasher): Use rotr_sz.
40081         Suggested by Jim Meyering.
40083         hash: fix memory leak in last patch
40084         * lib/hash.c (hash_rehash): Avoid memory leak.
40086         hash: avoid no-op rehashing
40087         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40089         hash: provide default callback functions
40090         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40091         (hash_initialize): Use them as defaults.
40092         * tests/test-hash.c (main): Test this.
40094         hash: minor optimization
40095         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40096         when possible.
40097         (hash_initialize): Document this promise.
40098         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40099         * tests/test-hash.c (hash_compare_strings): Test this.
40101 2009-06-18  Bruno Haible  <bruno@clisp.org>
40103         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40104         going to be replaced anyway.
40106 2009-06-18  Bruno Haible  <bruno@clisp.org>
40108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40109         in one place.
40110         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40111         be replaced anyway.
40113 2009-06-18  Eric Blake  <ebb9@byu.net>
40115         hash: check for resize before insertion
40116         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40117         threshold before insertion, so that a pathological hash_rehash
40118         that fills every bucket can still trigger another rehash.
40120 2009-06-18  Jim Meyering  <meyering@redhat.com>
40122         hash-tests: add a loop around the small tests
40123         * tests/test-hash.c (main): Repeat small tests with selected
40124         small initial table sizes.
40126 2009-06-17  Eric Blake  <ebb9@byu.net>
40128         hash: minor cleanups
40129         * lib/hash.h (hash_entry): Make opaque, by moving...
40130         * lib/hash.c (hash_entry): ...here.
40131         (hash_insert): Clarify restrictions on what can be inserted.
40132         (hash_get_next): Clarify when it is safe to remove an element
40133         during traversal.
40134         (check_tuning): Skip verification when tuning is known safe.
40135         (hash_initialize): Clarify restrictions on tuning.
40137 2009-06-17  Jim Meyering  <jim@meyering.net>
40138         and Eric Blake  <ebb9@byu.net>
40140         hash-tests: new module
40141         * modules/hash-tests: New file.
40142         * tests/test-hash.c: New file.
40144 2009-06-17  Eric Blake  <ebb9@byu.net>
40146         strstr-simple: document new module
40147         * MODULES.html.sh: Document new module.
40149         strstr, strcasestr: replace on platforms with broken memchr
40150         * modules/strstr: Split into...
40151         * modules/strstr-simple: ...new module that does not care about
40152         performance, but does care about glibc bug.
40153         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40154         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40155         if platform memchr is broken, per Debian bug 521737.
40156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40157         memchr.
40158         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40159         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40160         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40161         * modules/mountlist (Depends-on): Add strstr-simple.
40162         * modules/gen-uni-tables (Depends-on): Likewise.
40163         * modules/argz (Depends-on): Add strstr.
40165 2009-06-17  Bruno Haible  <bruno@clisp.org>
40167         * modules/posix_spawn-internal (Depends-on): Add errno.
40169 2009-06-17  Bruno Haible  <bruno@clisp.org>
40171         Define missing ESTALE on Interix 3.5.
40172         * lib/errno.in.h (ESTALE): Assign a value if missing.
40173         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40174         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40175         missing.
40176         * doc/posix-headers/errno.texi: Mention the Interix bug.
40177         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40179 2009-06-15  Eric Blake  <ebb9@byu.net>
40181         memchr, memchr2: add valgrind exception
40182         * lib/memchr.valgrind: New file.
40183         * lib/memchr2.valgrind: New file.
40184         * modules/memchr (Files): Distribute valgrind file.
40185         * modules/memchr2 (Files): Likewise.
40187         docs: memchr is no longer obsolete
40188         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40189         * lib/string.in.h (memchr): Simplify logic.
40191 2009-06-14  Jim Meyering  <meyering@redhat.com>
40193         link-follow: fix the "checking..." message to not mention trailing slash
40194         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40195         never considered trailing slashes.
40197 2009-06-14  Bruno Haible  <bruno@clisp.org>
40199         * m4/memchr.m4: Mention also the bug on IA-64.
40200         * doc/posix-functions/memchr.texi: Likewise.
40202 2009-06-12  Eric Blake  <ebb9@byu.net>
40204         memchr: detect broken x86_64 and alpha implementations
40205         * modules/memchr-tests (Depends-on): Move mmap detection...
40206         * modules/memchr (Depends-on): ...here.
40207         (configure.ac): Set indicator.
40208         * lib/string.in.h (memchr): Declare replacement.
40209         * modules/string (Makefile.am): Trigger replacement.
40210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40211         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40212         bugs.
40213         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40214         * modules/getpagesize (License): Relax license.
40216 2009-06-11  Bruno Haible  <bruno@clisp.org>
40218         * lib/idpriv.h: Add more references.
40220 2009-06-08  Bruno Haible  <bruno@clisp.org>
40222         Tests for module 'idpriv-droptemp'.
40223         * modules/idpriv-droptemp-tests: New file.
40224         * tests/test-idpriv-droptemp.sh: New file.
40225         * tests/test-idpriv-droptemp.su.sh: New file.
40226         * tests/test-idpriv-droptemp.c: New file.
40228         New module 'idpriv-droptemp'.
40229         * lib/idpriv-droptemp.c: New file.
40230         * modules/idpriv-droptemp: New file.
40232 2009-06-08  Bruno Haible  <bruno@clisp.org>
40234         Tests for module 'idpriv-drop'.
40235         * modules/idpriv-drop-tests: New file.
40236         * tests/test-idpriv-drop.sh: New file.
40237         * tests/test-idpriv-drop.su.sh: New file.
40238         * tests/test-idpriv-drop.c: New file.
40240         New module 'idpriv-drop'.
40241         * lib/idpriv.h: New file.
40242         * lib-idpriv-drop.c: New file.
40243         * m4/idpriv.m4: New file.
40244         * modules/idpriv-drop: New file.
40246 2009-06-08  Bruno Haible  <bruno@clisp.org>
40248         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40250         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40251         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40252         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40253         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40254         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40256 2009-06-08  Eric Blake  <ebb9@byu.net>
40258         test-strstr: use memory fence, when possible
40259         * tests/test-strstr.c (main): Use memory fence, in order to be
40260         more likely to trigger Debian bug 521737.
40261         * modules/strstr-tests (Files): Pull in additional files.
40263         memchr: no longer obsolete, for wider field testing
40264         * modules/memchr (Status, Notice): Delete, this module is no
40265         longer obsolete.
40266         * modules/vasnprintf (Depends-on): Add memchr.
40268 2009-06-07  Jim Meyering  <meyering@redhat.com>
40270         hash: declare some functions with the warn_unused_result attribute
40271         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40273 2009-06-07  Bruno Haible  <bruno@clisp.org>
40275         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40276         Reported by Eric Blake.
40278 2009-06-06  Eric Blake  <ebb9@byu.net>
40280         test-alignof: fix typo with long double
40281         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40282         compiler error.
40284 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40286         Escape non-texinfo { and }s.
40287         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40288         markup error.
40290 2009-06-04  Jim Meyering  <meyering@redhat.com>
40292         gitlog-to-changelog: don't infloop on an empty commit log
40293         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40294         Reported by Boris Petersen <transacid@centerim.org>.
40296 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40298         version-etc: extend for packagers
40299         Add three new configure options, intended for packagers:
40300           --with-packager="packager name"
40301           --with-packager-version="packager-specific version"
40302           --with-packager-bug-reports="packager bug reporting"
40303         An example with coreutils:
40304           $ ./configure \
40305             --with-packager=Gentoo \
40306             --with-packager-bug-report=http://bugs.gentoo.org/ \
40307             --with-packager-version="patchset 1.6"
40308           $ ./src/ls --version | head -n2
40309           ls (GNU coreutils) 7.1-dirty
40310           Packaged by Gentoo (patchset 1.6)
40311         Note that the bug reporting info via --help doesn't show up because
40312         coreutils uses its own custom emit_bug_reporting_address() implementation
40313         in src/system.h.  If it didn't, it'd look like:
40314           $ ./src/ls --help | tail -n4
40315           Report bugs to <bug-coreutils@gnu.org>.
40316           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40317           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40318           General help using GNU software: <http://www.gnu.org/gethelp/>.
40319         * lib/version-etc.c: Print new information, if provided.
40320         * m4/version-etc.m4: New file.
40321         * modules/version-etc (Files): Add m4/version-etc.m4.
40322         (configure.ac): Add gl_VERSION_ETC.
40324 2009-05-31  Bruno Haible  <bruno@clisp.org>
40326         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40327         and 'int64_t'.
40328         * modules/alignof-tests (Dependencies): Add stdint.
40329         Reported by Eric Blake.
40331 2009-05-31  Bruno Haible  <bruno@clisp.org>
40333         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40334         restriction due to compiler bugs.
40335         Reported by Eric Blake.
40337 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40338             Bruno Haible  <bruno@clisp.org>
40340         Fix test-alignof failure.
40341         * lib/alignof.h (alignof_slot): New macro.
40342         (alignof_type): New macro, with the same semantics as the previous
40343         'alignof'.
40344         (alignof): Alias to alignof_slot.
40345         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40346         check that the results are usable as constant expressions.
40348 2009-05-31  Bruno Haible  <bruno@clisp.org>
40350         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40351         * tests/test-memchr.c (main): Check that memchr does not read past the
40352         first occurrence of the byte.
40353         * tests/test-strstr.c (main): Update comment.
40354         Suggested by Eric Blake.
40356 2009-05-30  Bruno Haible  <bruno@clisp.org>
40358         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40359         detail how to use dumpbin.
40360         Reported by David Byron <dbyron@dbyron.com>.
40362 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40364         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40366 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40368         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40370 2009-05-28  Bruno Haible  <bruno@clisp.org>
40372         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40373         build-aux/ files.
40375 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40377         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40379 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40381         * gnulib-tool (sed_transform_main_lib_file)
40382         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40383         regexps.
40385 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40387         * tests/test-strstr.c: Add another self-test.
40388         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40389         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40391 2009-05-23  Bruno Haible  <bruno@clisp.org>
40393         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40394         change.
40396 2009-05-21  Bruno Haible  <bruno@clisp.org>
40398         Simplify use of mode_t varargs.
40399         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40400         uses 'mode_t' or 'int'.
40401         * lib/openat.c (openat): Likewise.
40402         * lib/open-safer.c (open_safer): Likewise.
40403         * m4/mode_t.m4: New file.
40404         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40405         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40406         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40407         * modules/open (Files): Add m4/mode_t.m4.
40408         * modules/openat (Files): Likewise.
40409         * modules/fcntl-safer (Files): Likewise.
40410         Suggested by Eric Blake.
40412 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40414         * doc/glibc-functions/fallocate.texi: New file.
40415         * doc/gnulib.texi: Include it.
40417 2009-05-21  Eric Blake  <ebb9@byu.net>
40418             Bruno Haible  <bruno@clisp.org>
40420         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40421         invocations.
40422         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40424 2009-05-21  Eric Blake  <ebb9@byu.net>
40425             Bruno Haible  <bruno@clisp.org>
40427         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40428         include_next. Fix of 2008-11-20 commit.
40429         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40430         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40431         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40432         NEXT_MATH_H.
40433         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40434         instead of NEXT_MATH_H.
40436 2009-05-21  Bruno Haible  <bruno@clisp.org>
40438         Avoid redefinition warnings for SIZE_MAX.
40439         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40440         Reported by Simon Josefsson.
40442 2009-05-21  Bruno Haible  <bruno@clisp.org>
40444         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40445         AC_CACHE_VAL.
40447 2009-05-20  Bruno Haible  <bruno@clisp.org>
40449         Make zeroptr.h work on mingw.
40450         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40451         mprotect.
40452         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40453         * modules/memchr2-tests (configure.ac): Likewise.
40454         * modules/memcmp-tests (configure.ac): Likewise.
40455         * modules/memmem-tests (configure.ac): Likewise.
40456         * modules/memrchr-tests (configure.ac): Likewise.
40457         Reported by Simon Josefsson.
40459 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40461         * tests/test-glob.c: Include string.h for strcmp prototype.
40463 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40465         * modules/getdelim (Depends-on): Add explicit stdint, although it
40466         was implicitly already pulled in via realloc-posix.
40467         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40469 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40471         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40472         G. Christensen" <tgc@jupiterrise.com>.
40473         * m4/sys_socket_h.m4: Check for sa_family_t.
40474         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40475         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40476         * tests/test-sys_socket.c: Check that sa_family_t works.
40478 2009-05-18  Eric Blake  <ebb9@byu.net>
40480         maint.mk: allow gnulib_dir in VPATH build
40481         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40483 2009-05-15  Jim Meyering  <meyering@redhat.com>
40485         maint.mk: Give gnulib_dir a default definition.
40486         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40487         Thus, most packages no longer need to specify this variable in cfg.mk
40489 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40491         rename.m4: fix typos that would make non-mingw cross-configure fail
40492         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40494 2009-05-13  Eric Blake  <ebb9@byu.net>
40496         mmap-anon: avoid out-of-order autoconf expansion
40497         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40498         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40499         * modules/memchr-tests (Depends-on): Add extensions.
40500         * modules/memchr2-tests (Depends-on): Add extensions.
40501         * modules/memcmp-tests (Depends-on): Add extensions.
40502         * modules/memmem-tests (Depends-on): Add extensions.
40503         * modules/memrchr-tests (Depends-on): Add extensions.
40505 2009-05-13  Bruno Haible  <bruno@clisp.org>
40507         Make some tests ISO C 99 compliant.
40508         * tests/zerosize-ptr.h: New file.
40509         * tests/test-memchr.c: Include zerosize-ptr.h.
40510         (main): Use a zero-size object pointer instead of NULL.
40511         * tests/test-memchr2.c: Include zerosize-ptr.h.
40512         (main): Use a zero-size object pointer instead of NULL.
40513         * tests/test-memcmp.c: Include zerosize-ptr.h.
40514         (main): Use a zero-size object pointer instead of NULL.
40515         * tests/test-memmem.c: Include zerosize-ptr.h.
40516         (main): Use a zero-size object pointer instead of NULL.
40517         * tests/test-memrchr.c: Include zerosize-ptr.h.
40518         (main): Use a zero-size object pointer instead of NULL.
40519         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40520         m4/mmap-anon.m4.
40521         (Depends-on): Add getpagesize.
40522         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40523         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40524         m4/mmap-anon.m4.
40525         (Depends-on): Add getpagesize.
40526         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40527         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40528         m4/mmap-anon.m4.
40529         (Depends-on): Add getpagesize.
40530         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40531         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40532         m4/mmap-anon.m4.
40533         (Depends-on): Add getpagesize.
40534         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40535         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40536         m4/mmap-anon.m4.
40537         (Depends-on): Add getpagesize.
40538         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40540 2009-05-12  Bruno Haible  <bruno@clisp.org>
40542         Tests for module 'alignof'.
40543         * modules/alignof-tests: New file.
40544         * tests/test-alignof.c: New file.
40546 2009-05-12  Bruno Haible  <bruno@clisp.org>
40548         Fix alignof macro.
40549         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40550         vendor compilers that are always correct.
40552 2009-05-12  Bruno Haible  <bruno@clisp.org>
40554         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40555         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40556         not whether its fully works.
40558 2009-05-12  Bruno Haible  <bruno@clisp.org>
40560         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40562 2009-05-12  Jim Meyering  <meyering@redhat.com>
40564         * top/maint.mk: Adjust backslash alignment.
40566 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40568         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40570 2009-05-11  Eric Blake  <ebb9@byu.net>
40572         argp: avoid undefined behavior
40573         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40574         macros.
40576 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40578         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40579         user.name to prevent git commit from complaining.
40581 2009-05-10  Bruno Haible  <bruno@clisp.org>
40583         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40584         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40585         it rewrites every file name only once.
40586         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40588 2009-05-08  Bruno Haible  <bruno@clisp.org>
40590         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40591         instead of 'max'.
40593 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40595         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40596         sockaddr_storage test.
40598 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40600         * modules/sys_socket (Makefile.am): Substitute
40601         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40602         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40603         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40604         * tests/test-sys_socket.c: Check sockaddr_storage.
40606 2009-05-08  Bruno Haible  <bruno@clisp.org>
40608         New module 'alignof'.
40609         * lib/alignof.h: New file.
40610         * modules/alignof: New file.
40612 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40613             Bruno Haible  <bruno@clisp.org>
40615         Fix test-file-has-acl on FreeBSD.
40616         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40617         mask is implicitly added.
40618         * tests/test-file-has-acl.c: Include <signal.h>.
40619         (main): Terminate the test after 5 seconds.
40620         * modules/acl-tests (configure.ac): Check for alarm function.
40622 2009-05-04  Bruno Haible  <bruno@clisp.org>
40624         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40625         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40626         * modules/errno (configure.ac): Drop AC_REQUIRE.
40627         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40628         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40630 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40632         * modules/glob-tests: New module.
40633         * tests/test-glob.c: Add.
40635 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40637         * modules/fnmatch-tests: New module.
40638         * tests/test-fnmatch.c: Add.
40640 2009-05-04  Eric Blake  <ebb9@byu.net>
40642         maint: make the new no-submodule-changes rule VPATH-safe
40643         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40645 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40646             Bruno Haible  <bruno@clisp.org>
40648         acl: Fix infinite loop on FreeBSD.
40649         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40650         of return value from acl_get_entry.
40651         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40652         Likewise.
40654 2009-05-03  Bruno Haible  <bruno@clisp.org>
40656         * lib/acl-internal.h (acl_entries): Clarify return value.
40657         * lib/acl_entries.c (acl_entries): Likewise.
40659 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40661         Bug fix in acl module.
40662         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40664 2009-05-03  Bruno Haible  <bruno@clisp.org>
40666         Create gperf-generated file in the source dir, not in the build dir.
40667         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40668         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40669         * modules/unicase/locale-language (unicase/locale-languages.h):
40670         Likewise.
40671         * modules/unicase/special-casing (unicase/special-casing-table.h):
40672         Likewise.
40673         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40674         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40675         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40676         Reported by Ralf Wildenhues.
40678 2009-05-03  Bruno Haible  <bruno@clisp.org>
40680         * modules/fnmatch (Description, configure.ac): Taken from
40681         fnmatch-posix.
40682         * modules/fnmatch-posix: Turn into a symbolic reference to the
40683         'fnmatch' module, and deprecate.
40684         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40686 2009-05-03  Bruno Haible  <bruno@clisp.org>
40688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40689         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40690         Reported by Ralf Wildenhues.
40692 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40694         * m4/fnmatch.m4: Fix fnmatch re-define.
40696 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40698         priv-set: new module and tests; adapt write-any-file
40699         * lib/priv-set.c: New file.
40700         * lib/priv-set.h: New file.
40701         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40702         * lib/write-any-file.c: Simplify by using priv-set module.
40703         * m4/priv-set.m4: New file.
40704         * modules/priv-set: New file.
40705         * modules/unlinkdir: Add dependency on priv-set module.
40706         * modules/write-any-file: Likewise.
40708         Tests for module 'priv-set'.
40709         * modules/priv-set-tests: New file.
40710         * tests/test-priv-set.c: New file.
40712 2009-05-03  Jim Meyering  <meyering@redhat.com>
40713             Bruno Haible  <bruno@clisp.org>
40715         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40716         use the converted UTF-8 variant of the name instead.
40718 2009-05-03  Jim Meyering  <meyering@redhat.com>
40720         tests: tighten some getdate tests
40721         * tests/test-getdate.c (main): Tighten tests: require equality,
40722         not just greater than.  Set TZ envvar to UTC0.
40724 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40726         getdate: correctly interpret "next monday" when run on a Monday
40727         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40728         that e.g., "next tues" (when run on a tuesday) results in a date
40729         that is one week in the future, and not today's date.
40730         I.e., add a week when the wday is the same as the current one.
40731         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40732         and earlier by Martin Bernreuther and Jan Minář.
40733         * tests/test-getdate.c (main): Check that "next DAY" is always in
40734         the future and that "last DAY" is always in the past.
40736 2009-05-02  Jim Meyering  <meyering@redhat.com>
40738         build: ensure that a release build fails when a submodule is unclean
40739         * top/maint.mk (no-submodule-changes): New rule.
40740         (alpha beta major): Depend on it.
40742 2009-05-02  Bruno Haible  <bruno@clisp.org>
40744         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40745         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40746         shell variable gl_fnmatch_required to detect which variant is
40747         requested.
40748         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40749         gl_FUNC_FNMATCH_POSIX.
40750         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40751         exclude fnmatch-posix.
40753 2009-05-02  Bruno Haible  <bruno@clisp.org>
40755         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40756         * modules/mbsrtowcs (License): Change to LGPLv2+.
40757         * modules/strnlen1 (License): Likewise.
40758         Reported by Simon Josefsson.
40760 2009-05-02  Bruno Haible  <bruno@clisp.org>
40762         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40763         "cross".
40764         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40765         gnulib-tool was called with option --source-base=lib.
40767 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40769         Use automake *-local hooks without commands, for extensibility.
40770         * modules/localcharset (Makefile.am): Rename install-exec-local
40771         rule to install-exec-localcharset, and make it a prerequisite of
40772         install-exec-local.  Likewise, rename the uninstall-local rule to
40773         uninstall-localcharset, and make it a prerequisite of the former.
40775 2009-05-01  Bruno Haible  <bruno@clisp.org>
40777         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40778         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40779         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40781         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40782         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40783         m4/locale-zh.m4, m4/codeset.m4.
40785         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40786         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40787         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40788         m4/locale-zh.m4.
40790         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40791         REPLACE_WCRTOMB if mbstate_t must be replaced.
40792         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40793         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40795 2009-05-01  Bruno Haible  <bruno@clisp.org>
40797         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40798         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40799         dngettext, dcngettext, textdomain, bindtextdomain,
40800         bind_textdomain_codeset): Undefine before redefining.
40802 2009-04-30  Bruno Haible  <bruno@clisp.org>
40804         Fix bug introduced on 2009-04-25.
40805         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40806         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40807         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40808         is defined.
40809         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40810         is defined.
40811         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40812         is defined.
40813         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40815 2009-04-28  Bruno Haible  <bruno@clisp.org>
40817         Comment tweaks.
40818         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40819         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40820         * lib/unicase.h (u*_casexfrm): Likewise.
40821         Reported by Paolo Bonzini.
40823 2009-04-28  Bruno Haible  <bruno@clisp.org>
40825         Fix a compilation error.
40826         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40827         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40828         Reported by Jim Meyering.
40830 2009-04-27  Bruno Haible  <bruno@clisp.org>
40832         New module 'libunistring'.
40833         * modules/libunistring: New file.
40834         * m4/libunistring.m4: New file.
40835         * MODULES.html.sh (Unicode string functions): Add it.
40837 2009-04-27  Eric Blake  <ebb9@byu.net>
40839         maint.mk: allow package-specific header to provide <config.h>
40840         * top/maint.mk (sc_require_config_h): New variable.
40841         (sc_require_config_h, sc_require_config_h_first): Use it.
40843 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40845         * top/maint.mk (sc_avoid_if_before_free): Except
40846         useless-if-before-free script.
40848 2009-04-27  Eric Blake  <ebb9@byu.net>
40850         maintainer-makefile: depend on all required helper scripts
40851         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40852         useless-if-before-free.
40853         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40854         version, rather than assuming gnulib checkout is available.
40855         Reported by Simen Josefsson.
40857 2009-04-26  Bruno Haible  <bruno@clisp.org>
40859         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40860         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40861         "../" or "..".
40863 2009-04-26  Bruno Haible  <bruno@clisp.org>
40865         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40866         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40867         AC_LIB_HAVE_LINKFLAGS.
40869 2009-04-26  Bruno Haible  <bruno@clisp.org>
40871         Simplify calling convention of u*_conv_from_encoding.
40872         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40873         u32_conv_from_encoding): Expect a resultbuf argument and return the
40874         result directly as a pointer.
40875         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40876         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40877         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40878         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40879         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40880         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40881         Update.
40882         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40883         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40884         * lib/vasnprintf.c (VASNPRINTF): Update.
40885         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40886         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40887         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40888         * NEWS: Mention the change.
40890 2009-04-26  Bruno Haible  <bruno@clisp.org>
40892         Simplify calling convention of u*_conv_to_encoding.
40893         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40894         u32_conv_to_encoding): Expect a resultbuf argument and return the
40895         result directly as a pointer.
40896         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40897         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40898         freeing scaled_offsets if mem_iconveha failed.
40899         * lib/unicase/u-casexfrm.h (FUNC): Update.
40900         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40901         * lib/vasnprintf.c (VASNPRINTF): Update.
40902         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40903         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40904         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40905         * NEWS: Mention the change.
40907 2009-04-26  Bruno Haible  <bruno@clisp.org>
40909         Avoid test failures on AIX and OSF/1.
40910         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40911         malloc(0).
40912         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40913         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40914         Likewise.
40915         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40916         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40917         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40918         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40919         * doc/posix-functions/malloc.texi: Document the portability problem
40920         related to malloc(0).
40922 2009-04-26  Bruno Haible  <bruno@clisp.org>
40924         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40925         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40926         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40928 2009-04-25  Bruno Haible  <bruno@clisp.org>
40930         Avoid link error when creating a namespace clean library.
40931         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40932         as macro with arguments if already defined as an alias.
40933         * lib/signbitf.c (gl_signbitf): Don't undefine.
40934         * lib/signbitd.c (gl_signbitd): Don't undefine.
40935         * lib/signbitl.c (gl_signbitl): Don't undefine.
40937 2009-04-25  Jim Meyering  <meyering@redhat.com>
40939         vc-list-files: fix another quoting bug
40940         * build-aux/vc-list-files: Avoid sed backslash expansion
40941         of pathological directory names.
40943 2009-04-25  Eric Blake  <ebb9@byu.net>
40945         vc-list-files: fix shell quoting error
40946         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40947         timestamp.
40949 2009-04-25  Jim Meyering  <meyering@redhat.com>
40951         vc-list-files: restore lost functionality with subdir argument
40952         * build-aux/vc-list-files: When given a non-"." sub-directory
40953         argument, substitute the $dir/ prefix back onto each resulting name.
40954         Otherwise, coreutils' root_tests check would fail.
40956 2009-04-24  Eric Blake  <ebb9@byu.net>
40958         vc-list-files: ignore git symlinks
40959         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40960         than ls-files, to ignore git symlinks.
40962         maint.mk: import improvements from m4
40963         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40964         (move_if_change): Delete unused macro.
40965         (news-date-check, vc-diff-check): Support VPATH builds.
40966         (announcement): Likewise.  Split --bootstrap-tools list...
40967         (boostrap-tools): ...into separate list, which can be overridden
40968         in cfg.mk.
40969         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40970         requiring dependency on useless-if-before-free module.
40971         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40972         Support VPATH builds.
40974 2009-04-24  Jim Meyering  <meyering@redhat.com>
40976         maint.mk: remove coreutils-specific rules and variables
40977         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40978         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40979         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40981         maint.mk: remove obsolete rule
40982         * top/maint.mk (rel-check): Remove rule.
40983         (WGET, WGETFLAGS): Remove now-unused variables.
40985 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40987         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40988         consistency.
40990         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40991         '$(PATH_SEPARATOR)' instead of ':'.
40993 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40995         * lib/getopt1.c (main): Use 'const' for static array.
40997 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40999         * top/maint.mk: Sync with coreutils.
41000         * NEWS: Explain incompatibilities.
41002 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41003             Bruno Haible  <bruno@clisp.org>
41005         Fix cross-compilation results.
41006         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41007         statement, as third argument of AC_TRY_RUN.
41008         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41009         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41010         Likewise.
41011         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41012         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41013         Likewise.
41014         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41016         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41018 2009-04-20  Bruno Haible  <bruno@clisp.org>
41020         Avoid test failure on mingw.
41021         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41023 2009-04-20  Bruno Haible  <bruno@clisp.org>
41025         Avoid compilation error on mingw.
41026         * modules/localename-tests (Depends-on): Add locale.
41028 2009-04-19  Bruno Haible  <bruno@clisp.org>
41030         Support for building a shared library on Windows platforms.
41031         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41032         (main): Test the presence of UNINORM_NFC here.
41033         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41034         (main): Test the presence of UNINORM_NFD here.
41035         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41036         (main): Test the presence of UNINORM_NFKC here.
41037         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41038         (main): Test the presence of UNINORM_NFKD here.
41040 2009-04-19  Bruno Haible  <bruno@clisp.org>
41042         Avoid a compiler warning.
41043         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41044         Change type of variable 'sequence'.
41046 2009-04-19  Bruno Haible  <bruno@clisp.org>
41048         * modules/configmake (Makefile.am): When the contents of configmake.h
41049         does not change, arrange to preserve its modification time.
41051 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41053         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41054         gettext domain.
41056 2009-04-16  Jim Meyering  <meyering@redhat.com>
41058         useless-if-before-free: improve conversion code
41059         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41060         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41062 2009-04-14  Bruno Haible  <bruno@clisp.org>
41064         * modules/fcntl (Depends-on): Add extensions.
41065         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41067 2009-04-12  Ben Pfaff  <blp@gnu.org>
41069         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41070         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41072 2009-03-20  Ben Pfaff  <blp@gnu.org>
41074         Make rename replace existing destinations on Windows.
41075         * m4/rename.m4: Add test for Mingw.
41076         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41077         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41078         * doc/posix-functions/rename.texi: Document.
41080 2009-04-10  Bruno Haible  <bruno@clisp.org>
41082         New include file "iconveh.h".
41083         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41084         * lib/striconveh.h: Include it.
41085         (enum iconv_ilseq_handler): Remove definition.
41086         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41087         striconveh.h.
41088         * lib/striconveha.c: Include striconveh.h.
41089         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41090         * modules/striconveh (Files): Add lib/iconveh.h.
41091         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41092         lib/striconveh.h.
41094 2009-04-10  Bruno Haible  <bruno@clisp.org>
41096         * lib/uniconv.h: Update comment.
41098 2009-04-10  Bruno Haible  <bruno@clisp.org>
41100         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41101         always.
41102         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41103         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41104         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41105         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41106         "unistring-notinline.h", so that the function gets defined always.
41107         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41108         * lib/unistr/u8-uctomb.c: Likewise.
41109         * lib/unistr/u16-mbtouc.c: Likewise.
41110         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41111         * lib/unistr/u16-uctomb.c: Likewise.
41112         * lib/unistr/u32-mbtouc.c: Likewise.
41113         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41114         * lib/unistr/u32-uctomb.c: Likewise.
41116 2009-04-10  Bruno Haible  <bruno@clisp.org>
41118         Mark 'utime' obsolete.
41119         * modules/utime (Status, Notice): New sections.
41120         Suggested by Jim Meyering.
41122         Fix cross-compile guess for utime test.
41123         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41124         autoconf.
41125         * doc/posix-functions/utime.texi: Give more precisions.
41126         Reported by Jan <ipif@ymail.com>.
41128 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41130         filevercmp: correct today's change
41131         * lib/filevercmp.c: Also handle coreutils' test inputs.
41132         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41134         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41135         for reporting it.
41136         * lib/filevercmp.c: Special handle for "", "." and "..".
41137         * tests/test-filevercmp.c: Enlarge the set suite.
41139 2009-04-07  Jim Meyering  <meyering@redhat.com>
41141         useless-if-before-free: show how to remove braced useless free, too
41142         * build-aux/useless-if-before-free: still only in a comment, though.
41144 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41146         maint.mk: import changes to syntax-check macros from coreutils
41147         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41148         Use them in the relevant macros.
41150 2009-04-06  Bruno Haible  <bruno@clisp.org>
41152         Fix unportable use of bit-fields.
41153         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41154         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41155         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41157 2009-04-06  Bruno Haible  <bruno@clisp.org>
41159         Avoid test failures on AIX and OSF/1.
41160         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41161         that malloc(0) = NULL.
41162         * tests/unicase/test-u8-tolower.c (check): Likewise.
41163         * tests/unicase/test-u8-totitle.c (check): Likewise.
41164         * tests/unicase/test-u8-toupper.c (check): Likewise.
41165         * tests/unicase/test-u16-casefold.c (check): Likewise.
41166         * tests/unicase/test-u16-tolower.c (check): Likewise.
41167         * tests/unicase/test-u16-totitle.c (check): Likewise.
41168         * tests/unicase/test-u16-toupper.c (check): Likewise.
41169         * tests/unicase/test-u32-casefold.c (check): Likewise.
41170         * tests/unicase/test-u32-tolower.c (check): Likewise.
41171         * tests/unicase/test-u32-totitle.c (check): Likewise.
41172         * tests/unicase/test-u32-toupper.c (check): Likewise.
41173         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41174         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41175         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41176         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41177         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41178         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41179         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41180         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41181         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41182         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41183         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41184         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41186 2009-04-05  Bruno Haible  <bruno@clisp.org>
41188         Work around an autoconf limitation.
41189         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41190         comment line if it would be longer than 3 KB.
41192 2009-04-05  Bruno Haible  <bruno@clisp.org>
41194         Avoid test failure with libiconv-1.13.
41195         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41196         of the expected test results.
41198 2009-04-05  Bruno Haible  <bruno@clisp.org>
41200         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41201         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41202         that it should be installed.
41204 2009-04-05  Bruno Haible  <bruno@clisp.org>
41206         * gnulib-tool: New option --copy-file.
41207         (func_usage): Document it.
41208         (func_dest_tmpfilename): Moved out of func_import.
41209         (func_add_file, func_update_file): New functions, extracted from
41210         func_import.
41211         (func_import): Update.
41213 2009-04-05  Karl Berry  <karl@gnu.org>
41215         * README: prominently mention gnulib-tool.
41216         Rearrange sections so getting the code is near the top.
41218 2009-04-05  Bruno Haible  <bruno@clisp.org>
41220         * lib/unicase.h: Mention u*_cmp2.
41221         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41222         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41223         * lib/unicase/ulc-casecmp.c: Likewise.
41224         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41225         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41226         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41227         unistr/u8-cmp.
41228         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41229         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41230         unistr/u16-cmp.
41231         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41232         unistr/u32-cmp.
41234         * lib/uninorm.h: Mention u*_cmp2.
41235         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41236         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41237         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41238         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41239         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41240         unistr/u8-cmp.
41241         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41242         unistr/u16-cmp.
41243         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41244         unistr/u32-cmp.
41246         New module 'unistr/u32-cmp2'.
41247         * lib/unistr/u32-cmp2.c: New file.
41248         * modules/unistr/u32-cmp2: New file.
41250         New module 'unistr/u16-cmp2'.
41251         * lib/unistr/u16-cmp2.c: New file.
41252         * modules/unistr/u16-cmp2: New file.
41254         New module 'unistr/u8-cmp2'.
41255         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41256         * lib/unistr/u8-cmp2.c: New file.
41257         * lib/unistr/u-cmp2.h: New file.
41258         * modules/unistr/u8-cmp2: New file.
41260 2009-04-05  Bruno Haible  <bruno@clisp.org>
41262         * lib/unictype.h (uc_property_is_valid): New macro.
41263         * tests/unictype/test-pr_byname.c (main): Use it.
41265         * lib/unistr.h: Doc fixes.
41266         * lib/uniconv.h: Doc fixes.
41267         * lib/unictype.h: Doc fixes.
41269 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41271         Port coreutils 7.2 to Solaris 8.
41273         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41274         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41275         for Solaris 8.  This is a bit of a hack, as it means it's the
41276         caller's responsibility to add -lnsl if needed, but most likely it
41277         won't be needed since only getaddrinfo uses this and getaddrinfo
41278         isn't needed on Solaris 8.
41280         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41281         problem to Solaris 8 encountered with coreutils 7.2, which
41282         resulted in a message "fnmatch.c:292: warning: passing argument 4
41283         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41284         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41286 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41288         * m4/ld-version-script.m4: Add FIXME comment.
41290 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41292         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41293         SOVERSION variable.
41295 2009-04-02  Bruno Haible  <bruno@clisp.org>
41297         * Makefile (info, html, dvi, pdf): Combine the rules.
41298         Suggested by Jim Meyering.
41300 2009-04-01  Bruno Haible  <bruno@clisp.org>
41302         * Makefile (info, html, dvi, pdf): New targets.
41303         Reported by Reuben Thomas <rrt@sc3d.org>.
41305 2009-04-01  Bruno Haible  <bruno@clisp.org>
41307         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41308         can be put into PATH.
41309         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41311 2009-04-01  Bruno Haible  <bruno@clisp.org>
41313         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41315 2009-04-01  Bruno Haible  <bruno@clisp.org>
41317         Rename module 'visibility'.
41318         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41319         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41320         * doc/gnulib.texi: Update.
41321         * MODULES.html.sh (Misc): Update.
41322         * NEWS: Mention the change.
41324 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41326         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41327         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41328         Eric Blake <ebb9@byu.net> for review.
41329         * MODULES.html.sh: Add lib-msvc-compat.
41330         * doc/gnulib.texi: Link to new section.
41331         * m4/ld-output-def.m4: New file.
41332         * doc/ld-output-def.texi: New file.
41334 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41336         Rename ld-version-script to lib-symbol-versions.  Suggested by
41337         Bruno Haible <bruno@clisp.org>.
41338         * modules/ld-version-script: Renamed to lib-symbol-versions.
41339         * doc/ld-version-script.texi: Fix module name.
41340         * MODULES.html.sh: Add lib-symbol-versions.
41342 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41344         * modules/u64-tests: New file.
41345         * tests/test-u64.c: New file.
41347 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41349         * MODULES.html.sh: Mention u64.
41350         * modules/u64: New module.
41351         * modules/crypto/sha512: Depend on u64 module instead of providing
41352         u64.h.
41354 2009-03-27  Eric Blake  <ebb9@byu.net>
41356         test-strerror: make debugging EAI_SYSTEM easier
41357         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41358         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41359         failure was EAI_SYSTEM.
41361 2009-03-25  Bruno Haible  <bruno@clisp.org>
41363         Fix a problem with --enable-relocatable on Solaris 7.
41364         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41365         since 2008-02-24.
41367 2009-03-25  Eric Blake  <ebb9@byu.net>
41369         test-sockets: avoid gcc warning
41370         * tests/test-sockets.c (main): Silence compiler warning.
41372 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41374         New modules nproc, pthread, contributed by Glen Lenker.
41376         * MODULES.html.sh: Add pthread, nproc.
41377         * lib/nproc.c: New file.
41378         * lib/nproc.h: New file.
41379         * lib/pthread.in.h: New file.
41380         * m4/pthread.m4: New file.
41381         * modules/nproc: New file.
41382         * modules/pthread: New file.
41384 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41386         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41387         New variable.
41389 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41391         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41392         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41393         * tests/test-filevercmp.c: Add tests for backup suffixes.
41395 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41397         * modules/stdlib (Depends-on): Add stdint, needed when defining
41398         struct random_data on, for example, HP-UX 10.20.  Reported by
41399         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41401 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41403         * lib/readline.c (readline): Call fflush on stdout after printing
41404         prompt.
41406 2009-03-20  Bruno Haible  <bruno@clisp.org>
41408         Remove dependency from 'close' module to -lws2_32 on native Windows.
41409         * lib/close-hook.h: New file.
41410         * lib/close-hook.c: New file.
41411         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41412         w32sock.h.
41413         (_gl_close_fd_maybe_socket): Remove function.
41414         (rpl_close): Invoke execute_all_close_hooks instead of
41415         _gl_close_fd_maybe_socket.
41416         * lib/sockets.c: Include close-hook.h, w32sock.h.
41417         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41418         (close_sockets_hook): New variable.
41419         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41420         (gl_sockets_cleanup): Unregister it.
41421         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41422         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41423         * modules/close-hook: New file.
41424         * modules/close (Files): Remove lib/w32sock.h.
41425         (Depends-on): Add close-hook.
41426         (Link): Remove section.
41427         * modules/sockets (Files): Add lib/w32sock.h.
41428         (Depends-on): Add close-hook.
41429         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41430         invocation.
41431         * NEWS: Mention that LIB_CLOSE is gone.
41433 2009-03-23  Eric Blake  <ebb9@byu.net>
41435         signal-tests: test previous patch
41436         * tests/test-signal.c: New file.
41437         * modules/signal-tests: Likewise.
41439         signal.h: always support 'volatile sig_atomic_t'
41440         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41441         (gl_SIGNAL_H_DEFAULTS): Add a default.
41442         * modules/signal (Makefile.am): Substitute if needed.
41443         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41444         users can blindly add volatile.
41445         * doc/posix-headers/signal.texi (signal.h): Document it.
41446         Reported by Matthew Woehlke.
41448 2009-03-23  Jim Meyering  <meyering@redhat.com>
41450         pathmax: PATH_MAX: use pathconf only when available
41451         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41452         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41453         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41454         This avoids a link failure in a PSP cross-compilation environment
41455         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41457         * lib/vasnprintf.c (divide): Fix typo in comment.
41459 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41461         * gnulib-tool (func_filter_filelist): Fix comment.
41463 2009-03-20  Bruno Haible  <bruno@clisp.org>
41465         Make sockets.h self-contained.
41466         * lib/sockets.c: Include sockets.h first.
41467         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41469 2009-03-19  Eric Blake  <ebb9@byu.net>
41471         doc: mention more functions added in cygwin 1.7.0
41472         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41473         addition.
41474         * doc/posix-functions/log2f.texi: Likewise.
41476 2009-03-19  Jim Meyering  <meyering@redhat.com>
41478         fsusage: avoid syntax error due to statement-before-declaration
41479         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41480         after all declarations.  Reported by Matthew Woehlke in
41481         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41483 2009-03-18  Eric Blake  <ebb9@byu.net>
41485         build-aux/compile: sync from automake
41486         * build-aux/compile: New file, from automake.
41487         * config/srclist.txt: Mention build-aux/compile.
41489 2009-03-17  Bruno Haible  <bruno@clisp.org>
41491         * lib/git-merge-changelog.c: Fix typo in comment.
41492         Reported by Reuben Thomas <rrt@sc3d.org>.
41494 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41496         * m4/regex.m4: update and improve help for
41497         --without-included-regex.
41499 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41501         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41502         failure on missing include files.
41504 2009-03-17  Eric Blake  <ebb9@byu.net>
41506         doc: mention more functions added in cygwin 1.7.0
41507         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41508         addition.
41509         * doc/posix-functions/fwscanf.texi: Likewise.
41510         * doc/posix-functions/swprintf.texi: Likewise.
41511         * doc/posix-functions/swscanf.texi: Likewise.
41512         * doc/posix-functions/vfwprintf.texi: Likewise.
41513         * doc/posix-functions/vfwscanf.texi: Likewise.
41514         * doc/posix-functions/vswprintf.texi: Likewise.
41515         * doc/posix-functions/vswscanf.texi: Likewise.
41516         * doc/posix-functions/vwprintf.texi: Likewise.
41517         * doc/posix-functions/vwscanf.texi: Likewise.
41518         * doc/posix-functions/wcscasecmp.texi: Likewise.
41519         * doc/posix-functions/wcsdup.texi: Likewise.
41520         * doc/posix-functions/wcsftime.texi: Likewise.
41521         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41522         * doc/posix-functions/wprintf.texi: Likewise.
41523         * doc/posix-functions/wscanf.texi: Likewise.
41524         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41526 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41528         maint.mk: really add $(AM_MAKEFLAGS)
41529         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41530         was inadvertently omitted in the last commit.
41531         Spotted by Bruno Haible.
41533         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41534         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41535         $(AM_MAKEFLAGS)' rather than plain `make'.
41537         gnulib-tool: execute $MAKE not make
41538         * gnulib-tool: Default $MAKE to 'make'.
41539         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41540         than make.  Initialize $MAKE in the do-autobuild script.
41542         gnulib-tool: use $MAKE not make in generated files
41543         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41544         make, in generated files.  Initialize $MAKE in the do-autobuild
41545         script.
41547         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41549         GNUmakefile: disable parallelism only for multiple, recursive targets
41550         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41551         additions in the Makefile.
41552         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41553         by Automake.
41554         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41555         are listed on the command line and at least one of them is
41556         listed in $(ALL_RECURSIVE_TARGETS).
41558 2009-03-14  Bruno Haible  <bruno@clisp.org>
41560         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41561         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41562         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41563         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41564         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41565         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41566         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41567         unistr/u8-uctomb.
41568         * modules/unistr/u8-strchr (Depends-on): Likewise.
41569         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41570         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41571         unistr/u16-uctomb.
41572         * modules/unistr/u16-strchr (Depends-on): Likewise.
41573         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41575 2009-03-12  Bruno Haible  <bruno@clisp.org>
41577         Work around select() bug on Interix 3.5.
41578         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41579         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41580         * m4/select.m4: New file.
41581         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41582         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41583         * modules/select (Files): Add m4/select.m4.
41584         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41585         * modules/nanosleep (Depends-on): Add select.
41586         * modules/poll (Depends-on): Likewise.
41587         * doc/posix-functions/select.texi: Mention the Interix bug.
41588         Reported by Markus Duft <mduft@gentoo.org>.
41590         * lib/select.c: Renamed from lib/winsock-select.c.
41591         * modules/select (Files): Add lib/select.c, remove
41592         lib/winsock-select.c.
41593         (configure.ac): Update.
41595 2009-03-12  Jim Meyering  <meyering@redhat.com>
41597         avoid gcc warnings about unused macro definitions
41598         * lib/readtokens.c (STREQ): Remove unused definition.
41599         * lib/xmalloc.c (SIZE_MAX): Likewise.
41600         * lib/openat-die.c (N_): Likewise.
41601         * lib/mountlist.c (SIZE_MAX): Remove definition.
41602         Instead, include <stdint.h>.
41603         * lib/readutmp.c: Likewise.
41604         * modules/readutmp (Depends-on): Add stdint.
41605         * modules/mountlist (Depends-on): Add stdint.
41606         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41608 2009-03-10  Bruno Haible  <bruno@clisp.org>
41610         Tests for module 'mbmemcasecoll'.
41611         * modules/mbmemcasecoll-tests: New file.
41612         * tests/test-mbmemcasecoll1.sh: New file.
41613         * tests/test-mbmemcasecoll2.sh: New file.
41614         * tests/test-mbmemcasecoll3.sh: New file.
41615         * tests/test-mbmemcasecoll.c: New file.
41617         New module 'mbmemcasecoll'.
41618         * lib/mbmemcasecoll.h: New file.
41619         * lib/mbmemcasecoll.c: New file.
41620         * modules/mbmemcasecoll: New file.
41622         * tests/test-mbmemcasecmp.h: New file, extracted from
41623         tests/test-mbmemcasecmp.c.
41624         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41625         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41626         (main): Update.
41627         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41629 2009-03-09  Bruno Haible  <bruno@clisp.org>
41631         Tests for module 'mbmemcasecmp'.
41632         * modules/mbmemcasecmp-tests: New file.
41633         * tests/test-mbmemcasecmp1.sh: New file.
41634         * tests/test-mbmemcasecmp2.sh: New file.
41635         * tests/test-mbmemcasecmp3.sh: New file.
41636         * tests/test-mbmemcasecmp.c: New file.
41638         New module 'mbmemcasecmp'.
41639         * lib/mbmemcasecmp.h: New file.
41640         * lib/mbmemcasecmp.c: New file.
41641         * modules/mbmemcasecmp: New file.
41643 2009-03-09  Bruno Haible  <bruno@clisp.org>
41645         Tests for module 'unicase/ulc-casecoll'.
41646         * modules/unicase/ulc-casecoll-tests: New file.
41647         * tests/unicase/test-ulc-casecoll1.sh: New file.
41648         * tests/unicase/test-ulc-casecoll2.sh: New file.
41649         * tests/unicase/test-ulc-casecoll.c: New file.
41651         New module 'unicase/ulc-casecoll'.
41652         * lib/unicase.h (ulc_casecoll): New declaration.
41653         * lib/unicase/ulc-casecoll.c: New file.
41654         * modules/unicase/ulc-casecoll: New file.
41656         New module 'unicase/ulc-casexfrm'.
41657         * lib/unicase.h (ulc_casexfrm): New declaration.
41658         * lib/unicase/ulc-casexfrm.c: New file.
41659         * modules/unicase/ulc-casexfrm: New file.
41661 2009-03-09  Bruno Haible  <bruno@clisp.org>
41663         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41664         invocations.
41666         * m4/mbscasecmp.m4: Remove file.
41667         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41668         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41670         * m4/mbscasestr.m4: Remove file.
41671         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41672         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41674         * m4/mbschr.m4: Remove file.
41675         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41676         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41678         * m4/mbscspn.m4: Remove file.
41679         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41680         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41682         * m4/mbslen.m4: Remove file.
41683         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41684         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41686         * m4/mbsncasecmp.m4: Remove file.
41687         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41688         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41690         * m4/mbsnlen.m4: Remove file.
41691         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41692         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41694         * m4/mbspbrk.m4: Remove file.
41695         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41696         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41698         * m4/mbspcasecmp.m4: Remove file.
41699         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41700         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41702         * m4/mbsrchr.m4: Remove file.
41703         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41704         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41706         * m4/mbssep.m4: Remove file.
41707         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41708         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41710         * m4/mbsspn.m4: Remove file.
41711         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41712         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41714         * m4/mbsstr.m4: Remove file.
41715         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41716         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41718         * m4/mbstok_r.m4: Remove file.
41719         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41720         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41722         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41724         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41725         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41727         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41729 2009-03-08  Bruno Haible  <bruno@clisp.org>
41731         Tests for module 'unicase/ulc-casecmp'.
41732         * modules/unicase/ulc-casecmp-tests: New file.
41733         * tests/unicase/test-ulc-casecmp1.sh: New file.
41734         * tests/unicase/test-ulc-casecmp2.sh: New file.
41735         * tests/unicase/test-ulc-casecmp.c: New file.
41737         New module 'unicase/ulc-casecmp'.
41738         * lib/unicase.h (ulc_casecmp): New declaration.
41739         * lib/unicase/ulc-casecmp.c: New file.
41740         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41741         'const SRC_UNIT *'.
41742         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41743         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41744         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41745         * modules/unicase/ulc-casecmp: New file.
41747         Tests for module 'unicase/u32-is-cased'.
41748         * modules/unicase/u32-is-cased-tests: New file.
41749         * tests/unicase/test-u32-is-cased.c: New file.
41751         Tests for module 'unicase/u16-is-cased'.
41752         * modules/unicase/u16-is-cased-tests: New file.
41753         * tests/unicase/test-u16-is-cased.c: New file.
41755         Tests for module 'unicase/u8-is-cased'.
41756         * modules/unicase/u8-is-cased-tests: New file.
41757         * tests/unicase/test-u8-is-cased.c: New file.
41758         * tests/unicase/test-is-cased.h: New file.
41760         New module 'unicase/u32-is-cased'.
41761         * lib/unicase/u32-is-cased.c: New file.
41762         * modules/unicase/u32-is-cased: New file.
41764         New module 'unicase/u16-is-cased'.
41765         * lib/unicase/u16-is-cased.c: New file.
41766         * modules/unicase/u16-is-cased: New file.
41768         New module 'unicase/u8-is-cased'.
41769         * lib/unicase/u8-is-cased.c: New file.
41770         * lib/unicase/u-is-cased.h: New file.
41771         * modules/unicase/u8-is-cased: New file.
41773         Tests for module 'unicase/u32-is-casefolded'.
41774         * modules/unicase/u32-is-casefolded-tests: New file.
41775         * tests/unicase/test-u32-is-casefolded.c: New file.
41777         Tests for module 'unicase/u16-is-casefolded'.
41778         * modules/unicase/u16-is-casefolded-tests: New file.
41779         * tests/unicase/test-u16-is-casefolded.c: New file.
41781         Tests for module 'unicase/u8-is-casefolded'.
41782         * modules/unicase/u8-is-casefolded-tests: New file.
41783         * tests/unicase/test-u8-is-casefolded.c: New file.
41784         * tests/unicase/test-is-casefolded.h: New file.
41786         New module 'unicase/u32-is-casefolded'.
41787         * lib/unicase/u32-is-casefolded.c: New file.
41788         * modules/unicase/u32-is-casefolded: New file.
41790         New module 'unicase/u16-is-casefolded'.
41791         * lib/unicase/u16-is-casefolded.c: New file.
41792         * modules/unicase/u16-is-casefolded: New file.
41794         New module 'unicase/u8-is-casefolded'.
41795         * lib/unicase/u8-is-casefolded.c: New file.
41796         * modules/unicase/u8-is-casefolded: New file.
41798         Tests for module 'unicase/u32-is-titlecase'.
41799         * modules/unicase/u32-is-titlecase-tests: New file.
41800         * tests/unicase/test-u32-is-titlecase.c: New file.
41802         Tests for module 'unicase/u16-is-titlecase'.
41803         * modules/unicase/u16-is-titlecase-tests: New file.
41804         * tests/unicase/test-u16-is-titlecase.c: New file.
41806         Tests for module 'unicase/u8-is-titlecase'.
41807         * modules/unicase/u8-is-titlecase-tests: New file.
41808         * tests/unicase/test-u8-is-titlecase.c: New file.
41809         * tests/unicase/test-is-titlecase.h: New file.
41811         New module 'unicase/u32-is-titlecase'.
41812         * lib/unicase/u32-is-titlecase.c: New file.
41813         * modules/unicase/u32-is-titlecase: New file.
41815         New module 'unicase/u16-is-titlecase'.
41816         * lib/unicase/u16-is-titlecase.c: New file.
41817         * modules/unicase/u16-is-titlecase: New file.
41819         New module 'unicase/u8-is-titlecase'.
41820         * lib/unicase/u8-is-titlecase.c: New file.
41821         * modules/unicase/u8-is-titlecase: New file.
41823         Tests for module 'unicase/u32-is-lowercase'.
41824         * modules/unicase/u32-is-lowercase-tests: New file.
41825         * tests/unicase/test-u32-is-lowercase.c: New file.
41827         Tests for module 'unicase/u16-is-lowercase'.
41828         * modules/unicase/u16-is-lowercase-tests: New file.
41829         * tests/unicase/test-u16-is-lowercase.c: New file.
41831         Tests for module 'unicase/u8-is-lowercase'.
41832         * modules/unicase/u8-is-lowercase-tests: New file.
41833         * tests/unicase/test-u8-is-lowercase.c: New file.
41834         * tests/unicase/test-is-lowercase.h: New file.
41836         New module 'unicase/u32-is-lowercase'.
41837         * lib/unicase/u32-is-lowercase.c: New file.
41838         * modules/unicase/u32-is-lowercase: New file.
41840         New module 'unicase/u16-is-lowercase'.
41841         * lib/unicase/u16-is-lowercase.c: New file.
41842         * modules/unicase/u16-is-lowercase: New file.
41844         New module 'unicase/u8-is-lowercase'.
41845         * lib/unicase/u8-is-lowercase.c: New file.
41846         * modules/unicase/u8-is-lowercase: New file.
41848         Tests for module 'unicase/u32-is-uppercase'.
41849         * modules/unicase/u32-is-uppercase-tests: New file.
41850         * tests/unicase/test-u32-is-uppercase.c: New file.
41852         Tests for module 'unicase/u16-is-uppercase'.
41853         * modules/unicase/u16-is-uppercase-tests: New file.
41854         * tests/unicase/test-u16-is-uppercase.c: New file.
41856         Tests for module 'unicase/u8-is-uppercase'.
41857         * modules/unicase/u8-is-uppercase-tests: New file.
41858         * tests/unicase/test-u8-is-uppercase.c: New file.
41859         * tests/unicase/test-is-uppercase.h: New file.
41861         New module 'unicase/u32-is-uppercase'.
41862         * lib/unicase/u32-is-uppercase.c: New file.
41863         * modules/unicase/u32-is-uppercase: New file.
41865         New module 'unicase/u16-is-uppercase'.
41866         * lib/unicase/u16-is-uppercase.c: New file.
41867         * modules/unicase/u16-is-uppercase: New file.
41869         New module 'unicase/u8-is-uppercase'.
41870         * lib/unicase/u8-is-uppercase.c: New file.
41871         * modules/unicase/u8-is-uppercase: New file.
41873         New module 'unicase/u32-is-invariant'.
41874         * lib/unicase/u32-is-invariant.c: New file.
41875         * modules/unicase/u32-is-invariant: New file.
41877         New module 'unicase/u16-is-invariant'.
41878         * lib/unicase/u16-is-invariant.c: New file.
41879         * modules/unicase/u16-is-invariant: New file.
41881         New module 'unicase/u8-is-invariant'.
41882         * lib/unicase/u8-is-invariant.c: New file.
41883         * lib/unicase/invariant.h: New file.
41884         * lib/unicase/u-is-invariant.h: New file.
41885         * modules/unicase/u8-is-invariant: New file.
41887         Tests for module 'unicase/u32-casecoll'.
41888         * modules/unicase/u32-casecoll-tests: New file.
41889         * tests/unicase/test-u32-casecoll.c: New file.
41891         Tests for module 'unicase/u16-casecoll'.
41892         * modules/unicase/u16-casecoll-tests: New file.
41893         * tests/unicase/test-u16-casecoll.c: New file.
41895         Tests for module 'unicase/u8-casecoll'.
41896         * modules/unicase/u8-casecoll-tests: New file.
41897         * tests/unicase/test-u8-casecoll.c: New file.
41899         New module 'unicase/u32-casecoll'.
41900         * lib/unicase/u32-casecoll.c: New file.
41901         * modules/unicase/u32-casecoll: New file.
41903         New module 'unicase/u16-casecoll'.
41904         * lib/unicase/u16-casecoll.c: New file.
41905         * modules/unicase/u16-casecoll: New file.
41907         New module 'unicase/u8-casecoll'.
41908         * lib/unicase/u8-casecoll.c: New file.
41909         * lib/unicase/u-casecoll.h: New file.
41910         * modules/unicase/u8-casecoll: New file.
41912         New module 'unicase/u32-casexfrm'.
41913         * lib/unicase/u32-casexfrm.c: New file.
41914         * modules/unicase/u32-casexfrm: New file.
41916         New module 'unicase/u16-casexfrm'.
41917         * lib/unicase/u16-casexfrm.c: New file.
41918         * modules/unicase/u16-casexfrm: New file.
41920         New module 'unicase/u8-casexfrm'.
41921         * lib/unicase/u8-casexfrm.c: New file.
41922         * lib/unicase/u-casexfrm.h: New file.
41923         * modules/unicase/u8-casexfrm: New file.
41925         Tests for module 'unicase/u32-casecmp'.
41926         * modules/unicase/u32-casecmp-tests: New file.
41927         * tests/unicase/test-u32-casecmp.c: New file.
41929         Tests for module 'unicase/u16-casecmp'.
41930         * modules/unicase/u16-casecmp-tests: New file.
41931         * tests/unicase/test-u16-casecmp.c: New file.
41933         Tests for module 'unicase/u8-casecmp'.
41934         * modules/unicase/u8-casecmp-tests: New file.
41935         * tests/unicase/test-u8-casecmp.c: New file.
41936         * tests/unicase/test-casecmp.h: New file.
41938         New module 'unicase/u32-casecmp'.
41939         * lib/unicase/u32-casecmp.c: New file.
41940         * modules/unicase/u32-casecmp: New file.
41942         New module 'unicase/u16-casecmp'.
41943         * lib/unicase/u16-casecmp.c: New file.
41944         * modules/unicase/u16-casecmp: New file.
41946         New module 'unicase/u8-casecmp'.
41947         * lib/unicase/u8-casecmp.c: New file.
41948         * lib/unicase/u-casecmp.h: New file.
41949         * modules/unicase/u8-casecmp: New file.
41951         Tests for module 'unicase/u32-casefold'.
41952         * modules/unicase/u32-casefold-tests: New file.
41953         * tests/unicase/test-u32-casefold.c: New file.
41955         Tests for module 'unicase/u16-casefold'.
41956         * modules/unicase/u16-casefold-tests: New file.
41957         * tests/unicase/test-u16-casefold.c: New file.
41959         Tests for module 'unicase/u8-casefold'.
41960         * modules/unicase/u8-casefold-tests: New file.
41961         * tests/unicase/test-u8-casefold.c: New file.
41963         New module 'unicase/u32-casefold'.
41964         * lib/unicase/u32-casefold.c: New file.
41965         * modules/unicase/u32-casefold: New file.
41967         New module 'unicase/u16-casefold'.
41968         * lib/unicase/u16-casefold.c: New file.
41969         * modules/unicase/u16-casefold: New file.
41971         New module 'unicase/u8-casefold'.
41972         * lib/unicase/u8-casefold.c: New file.
41973         * lib/unicase/u-casefold.h: New file.
41974         * modules/unicase/u8-casefold: New file.
41976         New module 'unicase/tocasefold'.
41977         * lib/unicase/casefold.h: New file.
41978         * lib/unicase/tocasefold.c: New file.
41979         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41980         * modules/unicase/tocasefold: New file.
41982         Tests for module 'unicase/u32-totitle'.
41983         * modules/unicase/u32-totitle-tests: New file.
41984         * tests/unicase/test-u32-totitle.c: New file.
41986         Tests for module 'unicase/u16-totitle'.
41987         * modules/unicase/u16-totitle-tests: New file.
41988         * tests/unicase/test-u16-totitle.c: New file.
41990         Tests for module 'unicase/u8-totitle'.
41991         * modules/unicase/u8-totitle-tests: New file.
41992         * tests/unicase/test-u8-totitle.c: New file.
41994         New module 'unicase/u32-totitle'.
41995         * lib/unicase/u32-totitle.c: New file.
41996         * modules/unicase/u32-totitle: New file.
41998         New module 'unicase/u16-totitle'.
41999         * lib/unicase/u16-totitle.c: New file.
42000         * modules/unicase/u16-totitle: New file.
42002         New module 'unicase/u8-totitle'.
42003         * lib/unicase/u8-totitle.c: New file.
42004         * lib/unicase/u-totitle.h: New file.
42005         * modules/unicase/u8-totitle: New file.
42007         Tests for module 'unicase/u32-tolower'.
42008         * modules/unicase/u32-tolower-tests: New file.
42009         * tests/unicase/test-u32-tolower.c: New file.
42011         Tests for module 'unicase/u16-tolower'.
42012         * modules/unicase/u16-tolower-tests: New file.
42013         * tests/unicase/test-u16-tolower.c: New file.
42015         Tests for module 'unicase/u8-tolower'.
42016         * modules/unicase/u8-tolower-tests: New file.
42017         * tests/unicase/test-u8-tolower.c: New file.
42019         New module 'unicase/u32-tolower'.
42020         * lib/unicase/u32-tolower.c: New file.
42021         * modules/unicase/u32-tolower: New file.
42023         New module 'unicase/u16-tolower'.
42024         * lib/unicase/u16-tolower.c: New file.
42025         * modules/unicase/u16-tolower: New file.
42027         New module 'unicase/u8-tolower'.
42028         * lib/unicase/u8-tolower.c: New file.
42029         * modules/unicase/u8-tolower: New file.
42031         Tests for module 'unicase/u32-toupper'.
42032         * modules/unicase/u32-toupper-tests: New file.
42033         * tests/unicase/test-u32-toupper.c: New file.
42035         Tests for module 'unicase/u16-toupper'.
42036         * modules/unicase/u16-toupper-tests: New file.
42037         * tests/unicase/test-u16-toupper.c: New file.
42039         Tests for module 'unicase/u8-toupper'.
42040         * modules/unicase/u8-toupper-tests: New file.
42041         * tests/unicase/test-u8-toupper.c: New file.
42043         New module 'unicase/u32-toupper'.
42044         * lib/unicase/u32-toupper.c: New file.
42045         * modules/unicase/u32-toupper: New file.
42047         New module 'unicase/u16-toupper'.
42048         * lib/unicase/u16-toupper.c: New file.
42049         * modules/unicase/u16-toupper: New file.
42051         New module 'unicase/u8-toupper'.
42052         * lib/unicase/u8-toupper.c: New file.
42053         * modules/unicase/u8-toupper: New file.
42055         New module 'unicase/u32-casemap'.
42056         * lib/unicase/u32-casemap.c: New file.
42057         * modules/unicase/u32-casemap: New file.
42059         New module 'unicase/u16-casemap'.
42060         * lib/unicase/u16-casemap.c: New file.
42061         * modules/unicase/u16-casemap: New file.
42063         New module 'unicase/u8-casemap'.
42064         * lib/unicase/unicasemap.h: New file.
42065         * lib/unicase/u8-casemap.c: New file.
42066         * lib/unicase/u-casemap.h: New file.
42067         * modules/unicase/u8-casemap: New file.
42069         New module 'unicase/special-casing'.
42070         * lib/unicase/special-casing.h: New file.
42071         * lib/unicase/special-casing.c: New file.
42072         * lib/unicase/special-casing-table.gperf: New file, generated by
42073         gen-uni-tables.c.
42074         * modules/unicase/special-casing: New file.
42076         Tests for module 'unicase/locale-language'.
42077         * modules/unicase/locale-language-tests: New file.
42078         * tests/unicase/test-locale-language.sh: New file.
42079         * tests/unicase/test-locale-language.c: New file.
42081         New module 'unicase/locale-language'.
42082         * lib/unicase/locale-language.c: New file.
42083         * lib/unicase/locale-languages.gperf: New file.
42084         * modules/unicase/locale-language: New file.
42086         Generate more tables for case conversion and case folding.
42087         * lib/gen-uni-tables.c (SCC_*): New enum items.
42088         (struct special_casing_rule): New type.
42089         (casing_rules, num_casing_rules, allocated_casing_rules): New
42090         variables.
42091         (add_casing_rule, fill_casing_rules): New functions.
42092         (struct casefold_rule): New type.
42093         (casefolding_rules, num_casefolding_rules,
42094         allocated_casefolding_rules): New variables.
42095         (fill_casefolding_rules): New function.
42096         (unicode_casefold): New variable.
42097         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42098         sort_casing_rules, output_casing_rules): New functions.
42099         (main): Accept to more arguments: SpecialCasing.txt and
42100         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42101         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42102         Output mapping for casefolding.
42104         * lib/unicase.h: Include stdbool.h, uninorm.h.
42105         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42106         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42107         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42108         arguments.
42109         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42110         resultp arguments.
42111         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42112         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42113         resultp arguments.
42114         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42115         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42116         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42117         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42118         declarations.
42119         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42121 2009-03-08  Bruno Haible  <bruno@clisp.org>
42123         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42124         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42125         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42126         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42128 2009-03-07  Bruno Haible  <bruno@clisp.org>
42130         Adjust u*_normcmp, u*_normcoll API.
42131         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42132         u16_normcoll, u32_normcoll): Change failure conventions.
42133         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42134         errno and return -1.
42135         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42137 2009-03-07  Bruno Haible  <bruno@clisp.org>
42139         Tests for module 'uninorm/u32-normcoll'.
42140         * modules/uninorm/u32-normcoll-tests: New file.
42141         * tests/uninorm/test-u32-normcoll.c: New file.
42143         Tests for module 'uninorm/u16-normcoll'.
42144         * modules/uninorm/u16-normcoll-tests: New file.
42145         * tests/uninorm/test-u16-normcoll.c: New file.
42147         Tests for module 'uninorm/u8-normcoll'.
42148         * modules/uninorm/u8-normcoll-tests: New file.
42149         * tests/uninorm/test-u8-normcoll.c: New file.
42151 2009-03-07  Bruno Haible  <bruno@clisp.org>
42153         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42154         tests/uninorm/test-u32-normcmp.c.
42155         * tests/uninorm/test-u32-normcmp.c: Include it.
42156         (test_nonascii): New function, extracted from main. Add some more
42157         tests.
42158         (main): Invoke test_ascii and test_nonascii.
42159         * modules/uninorm/u32-normcmp-tests (Files): Add
42160         tests/uninorm/test-u32-normcmp.h.
42161         (Depends-on): Remove uninorm/u32-normcmp.
42163         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42164         tests/uninorm/test-u16-normcmp.c.
42165         * tests/uninorm/test-u16-normcmp.c: Include it.
42166         (test_nonascii): New function, extracted from main. Add some more
42167         tests.
42168         (main): Invoke test_ascii and test_nonascii.
42169         * modules/uninorm/u16-normcmp-tests (Files): Add
42170         tests/uninorm/test-u16-normcmp.h.
42171         (Depends-on): Remove uninorm/u16-normcmp.
42173         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42174         tests/uninorm/test-u8-normcmp.c.
42175         * tests/uninorm/test-u8-normcmp.c: Include it.
42176         (test_nonascii): New function, extracted from main. Add some more
42177         tests.
42178         (main): Invoke test_ascii and test_nonascii.
42179         * modules/uninorm/u8-normcmp-tests (Files): Add
42180         tests/uninorm/test-u8-normcmp.h.
42181         (Depends-on): Remove uninorm/u8-normcmp.
42183 2009-03-07  Bruno Haible  <bruno@clisp.org>
42185         New module 'uninorm/u32-normcoll'.
42186         * lib/uninorm/u32-normcoll.c: New file.
42187         * modules/uninorm/u32-normcoll: New file.
42189         New module 'uninorm/u16-normcoll'.
42190         * lib/uninorm/u16-normcoll.c: New file.
42191         * modules/uninorm/u16-normcoll: New file.
42193         New module 'uninorm/u8-normcoll'.
42194         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42195         declarations.
42196         * lib/uninorm/u8-normcoll.c: New file.
42197         * lib/uninorm/u-normcoll.h: New file.
42198         * modules/uninorm/u8-normcoll: New file.
42200         New module 'uninorm/u32-normxfrm'.
42201         * lib/uninorm/u32-normxfrm.c: New file.
42202         * modules/uninorm/u32-normxfrm: New file.
42204         New module 'uninorm/u16-normxfrm'.
42205         * lib/uninorm/u16-normxfrm.c: New file.
42206         * modules/uninorm/u16-normxfrm: New file.
42208         New module 'uninorm/u8-normxfrm'.
42209         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42210         declarations.
42211         * lib/uninorm/u8-normxfrm.c: New file.
42212         * lib/uninorm/u-normxfrm.h: New file.
42213         * modules/uninorm/u8-normxfrm: New file.
42215 2009-03-07  Bruno Haible  <bruno@clisp.org>
42217         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42218         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42219         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42221 2009-03-07  Bruno Haible  <bruno@clisp.org>
42223         New module 'memxfrm'.
42224         * lib/memxfrm.h: New file.
42225         * lib/memxfrm.c: New file.
42226         * modules/memxfrm: New file.
42228 2009-03-07  Bruno Haible  <bruno@clisp.org>
42230         New module 'memcmp2'.
42231         * lib/memcmp2.h: New file.
42232         * lib/memcmp2.c: New file.
42233         * modules/memcmp2: New file.
42235 2009-03-07  Bruno Haible  <bruno@clisp.org>
42237         Tests for module 'uninorm/decomposing-form'.
42238         * modules/uninorm/decomposing-form-tests: New file.
42239         * tests/uninorm/test-decomposing-form.c: New file.
42241         New module 'uninorm/decomposing-form'.
42242         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42243         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42244         Add 'decomposing_variant' field.
42245         * lib/uninorm/decomposing-form.c: New file.
42246         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42247         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42248         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42249         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42250         * modules/uninorm/decomposing-form: New file.
42251         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42252         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42254 2009-03-07  Bruno Haible  <bruno@clisp.org>
42256         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42257         strings.
42259 2009-03-06  Bruno Haible  <bruno@clisp.org>
42261         Tests for module 'uninorm/u32-normcmp'.
42262         * tests/uninorm/test-u32-normcmp.c: New file.
42263         * modules/uninorm/u32-normcmp-tests: New file.
42265         Tests for module 'uninorm/u16-normcmp'.
42266         * tests/uninorm/test-u16-normcmp.c: New file.
42267         * modules/uninorm/u16-normcmp-tests: New file.
42269         Tests for module 'uninorm/u8-normcmp'.
42270         * tests/uninorm/test-u8-normcmp.c: New file.
42271         * modules/uninorm/u8-normcmp-tests: New file.
42273         New module 'uninorm/u32-normcmp'.
42274         * lib/uninorm/u32-normcmp.c: New file.
42275         * modules/uninorm/u32-normcmp: New file.
42277         New module 'uninorm/u16-normcmp'.
42278         * lib/uninorm/u16-normcmp.c: New file.
42279         * modules/uninorm/u16-normcmp: New file.
42281         New module 'uninorm/u8-normcmp'.
42282         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42283         declarations.
42284         * lib/uninorm/u8-normcmp.c: New file.
42285         * lib/uninorm/u-normcmp.h: New file.
42286         * modules/uninorm/u8-normcmp: New file.
42288 2009-03-06  Bruno Haible  <bruno@clisp.org>
42290         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42291         Reported by Eric Blake.
42293 2009-03-06  Eric Blake  <ebb9@byu.net>
42294             Bruno Haible  <bruno@clisp.org>
42296         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42297         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42298         condition.
42299         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42300         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42301         condition.
42302         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42304 2009-03-06  Eric Blake  <ebb9@byu.net>
42306         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42307         to avoid compiler warnings.
42308         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42310 2009-03-05  Bruno Haible  <bruno@clisp.org>
42312         * tests/test-ftell.c (main): Disable test beyond end of file on
42313         FreeMiNT.
42314         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42316 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42318         * lib/filevercmp.c: Move hidden files up in ordering.
42319         * tests/test-filevercmp.c: Add tests for hidden files.
42321 2009-03-04  Bruno Haible  <bruno@clisp.org>
42323         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42324         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42325         AM_CFLAGS.
42326         Reported by Simon Josefsson.
42328 2009-03-03  Bruno Haible  <bruno@clisp.org>
42330         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42331         Reported by Simon Josefsson.
42333         * doc/ld-version-script.texi: Update node reference.
42335 2009-03-03  Bruno Haible  <bruno@clisp.org>
42337         * modules/visibility (License): Change to 'unlimited'.
42338         Suggested by Simon Josefsson.
42340 2009-03-03  Jim Meyering  <meyering@redhat.com>
42342         unlinkdir: cannot_unlink_dir may modify process state
42343         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42344         it's neither thread-safe nor appropriate for use in a library.
42346 2009-03-03  Eric Blake  <ebb9@byu.net>
42348         test-closein: silence test under Darwin
42349         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42350         care if it dies from EPIPE or EBADF.
42352 2009-03-03  Bruno Haible  <bruno@clisp.org>
42354         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42355         earlier.
42356         * doc/visibility.texi: Fix @node and @section.
42358 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42360         * doc/gnulib.texi: Link to sections for ld version script and
42361         visibility.
42362         * doc/visibility.texi: Add @node and @section.
42363         * modules/ld-version-script: New module.
42364         * m4/ld-version-script.m4: New file.
42365         * doc/ld-version-script.texi: New file.
42367 2009-03-02  David Lutterkort  <lutter@redhat.com>
42369         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42372 2009-03-02  Bruno Haible  <bruno@clisp.org>
42374         * doc/visibility.texi: Mention libtool's -export-symbols option.
42376 2009-03-02  Jim Meyering  <meyering@redhat.com>
42378         announce-gen: new option: --no-print-checksums
42379         * build-aux/announce-gen (usage): Describe it.
42380         (print_checksums): Print a newline here, not in the [*] footnote.
42381         (main): Honor it.
42383 2009-03-01  Bruno Haible  <bruno@clisp.org>
42385         Use socklen_t in the native Windows replacements prototypes.
42386         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42387         instead of 'int'.
42388         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42389         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42390         * modules/getsockopt (Depends-on): Add socklen.
42391         * modules/setsockopt (Depends-on): Add socklen.
42393 2009-03-01  Bruno Haible  <bruno@clisp.org>
42395         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42396         least 4.2.
42398 2009-03-01  Eric Blake  <ebb9@byu.net>
42399             Bruno Haible  <bruno@clisp.org>
42401         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42402         error messages.
42403         * lib/wait-process.c (wait_subprocess): Omit error message about
42404         deadly signal sent to the child of termsigp != NULL.
42406 2009-03-01  Eric Blake  <ebb9@byu.net>
42408         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42410 2009-03-01  Bruno Haible  <bruno@clisp.org>
42412         Avoid a gcc warning.
42413         * tests/test-sched.c (b): Make global.
42414         Reported by Eric Blake.
42416 2009-01-19  Martin Lambers  <marlam@marlam.de>
42418         Provide POSIX semantics for socket timeout options on W32.
42419         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42420         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42421         * modules/setsockopt: Depend on sys_time module for struct timeval.
42422         * modules/getsockopt: Depend on sys_time module for struct timeval.
42424 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42426         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42427         __USE_GNU, for consistency with netdb.in.h.
42428         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42430 2009-03-01  Bruno Haible  <bruno@clisp.org>
42432         More support for FreeMiNT.
42433         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42434         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42436 2009-03-01  Bruno Haible  <bruno@clisp.org>
42438         More support for FreeMiNT.
42439         * lib/fpurge.c (fpurge): Correct last commit.
42440         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42442 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42444         Fix unportable awk script in vc-list-files.
42445         * build-aux/vc-list-files: In the replacement awk script, use
42446         substr with a second argument of 1, not zero.
42447         Report by Simon Josefsson.
42449 2009-02-28  Bruno Haible  <bruno@clisp.org>
42451         More support for FreeMiNT.
42452         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42453         to FreeMiNT today.
42454         * lib/fwriting.c (fwriting): Likewise.
42455         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42457 2009-02-28  Bruno Haible  <bruno@clisp.org>
42459         * tests/test-freadseek.c (main): Disable test beyond end of file on
42460         FreeMiNT.
42461         * tests/test-ftello.c (main): Likewise.
42462         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42464 2009-02-28  Bruno Haible  <bruno@clisp.org>
42466         Add tentative support for FreeMiNT.
42467         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42468         * lib/fpurge.c (fpurge): Likewise.
42469         * lib/freadable.c (freadable): Likewise.
42470         * lib/freading.c (freading): Likewise.
42471         * lib/freadptr.c (freadptr): Likewise.
42472         * lib/freadseek.c (freadptrinc): Likewise.
42473         * lib/fseeko.c (rpl_fseeko): Likewise.
42474         * lib/fseterr.c (fseterr): Likewise.
42475         * lib/fwritable.c (fwritable): Likewise.
42476         * lib/fwriting.c (fwriting): Likewise.
42477         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42478         Hourihane.
42479         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42481 2009-02-28  Bruno Haible  <bruno@clisp.org>
42483         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42484         SIGCHLD.
42485         Reported by Jim Meyering.
42487 2009-02-28  Bruno Haible  <bruno@clisp.org>
42489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42490         Mention the results of these tests on various platforms.
42491         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42492         order.
42493         * doc/posix-functions/printf.texi: Likewise.
42494         * doc/posix-functions/snprintf.texi: Likewise.
42495         * doc/posix-functions/sprintf.texi: Likewise.
42496         * doc/posix-functions/vfprintf.texi: Likewise.
42497         * doc/posix-functions/vprintf.texi: Likewise.
42498         * doc/posix-functions/vsnprintf.texi: Likewise.
42499         * doc/posix-functions/vsprintf.texi: Likewise.
42500         * doc/glibc-functions/obstack_printf.texi: Likewise.
42501         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42503 2009-02-28  Bruno Haible  <bruno@clisp.org>
42505         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42506         Reported by Loïc Minier <lool@dooz.org>.
42508 2009-02-27  Bruno Haible  <bruno@clisp.org>
42510         * gnulib-tool (func_import): Make the sed expression used to create the
42511         sed script for updating the .gitignore file POSIX compliant.
42512         Reported by Eric Blake.
42514 2009-02-27  Bruno Haible  <bruno@clisp.org>
42516         * gnulib-tool (sed): Don't alias as "sed --posix".
42517         Reported by Eric Blake.
42519 2009-02-27  Bruno Haible  <bruno@clisp.org>
42521         Avoid test link errors.
42522         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42523         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42524         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42525         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42528 2009-02-27  Bruno Haible  <bruno@clisp.org>
42530         Avoid spurious "(cached)" in configure output.
42531         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42532         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42533         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42534         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42535         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42536         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42537         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42538         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42539         Reported by Eric Blake.
42541 2009-02-27  Eric Blake  <ebb9@byu.net>
42543         printf: fix regression in previous patch
42544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42546 2009-02-27  Bruno Haible  <bruno@clisp.org>
42548         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42549         value.
42550         * lib/stdint.in.h: Likewise.
42551         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42553 2009-02-27  Eric Blake  <ebb9@byu.net>
42555         doc: mention more functions added in cygwin 1.7.0
42556         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42557         addition.
42558         * doc/posix-functions/open_wmemstream.texi: Likewise.
42559         * doc/posix-functions/wcsnlen.texi: Likewise.
42560         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42561         * doc/posix-functions/wcstod.texi: Likewise.
42562         * doc/posix-functions/wcstof.texi: Likewise.
42563         * doc/posix-functions/wcstoimax.texi: Likewise.
42564         * doc/posix-functions/wcstok.texi: Likewise.
42565         * doc/posix-functions/wcstoumax.texi: Likewise.
42567         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42569         * doc/posix-functions/fprintf.texi: Update.
42570         * doc/posix-functions/printf.texi: Update.
42571         * doc/posix-functions/snprintf.texi: Update.
42572         * doc/posix-functions/sprintf.texi: Update.
42573         * doc/posix-functions/vfprintf.texi: Update.
42574         * doc/posix-functions/vprintf.texi: Update.
42575         * doc/posix-functions/vsnprintf.texi: Update.
42576         * doc/posix-functions/vsprintf.texi: Update.
42577         * doc/glibc-functions/obstack_printf.texi: Update.
42578         * doc/glibc-functions/obstack_vprintf.texi: Update.
42580 2009-02-26  Eric Blake  <ebb9@byu.net>
42582         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42583         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42584         compilation bug by using runtime conversion.
42585         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42586         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42587         * modules/ceill-tests (Files): Use nan.h.
42588         * modules/floorl-tests (Files): Likewise.
42589         * modules/frexpl-tests (Files): Likewise.
42590         * modules/isnanl-tests (Files): Likewise.
42591         * modules/ldexpl-tests (Files): Likewise.
42592         * modules/roundl-tests (Files): Likewise.
42593         * modules/truncl-tests (Files): Likewise.
42594         * tests/test-ceill.c (main): Use a working NaN.
42595         * tests/test-floorl.c (main): Likewise.
42596         * tests/test-frexpl.c (main): Likewise.
42597         * tests/test-isnan.c (test_long_double): Likewise.
42598         * tests/test-isnanl.h (main): Likewise.
42599         * tests/test-ldexpl.h (main): Likewise.
42600         * tests/test-roundl.h (main): Likewise.
42601         * tests/test-truncl.h (main): Likewise.
42602         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42604 2009-02-26  Eric Blake  <ebb9@byu.net>
42605             Bruno Haible  <bruno@clisp.org>
42607         Work around a *printf bug with %ls on Solaris.
42608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42609         precision is specified, sprintf stops converting the wide string
42610         argument when the number of bytes that have been produced by this
42611         conversion equals or exceeds the precision.
42612         * doc/posix-functions/fprintf.texi: Update.
42613         * doc/posix-functions/printf.texi: Update.
42614         * doc/posix-functions/snprintf.texi: Update.
42615         * doc/posix-functions/sprintf.texi: Update.
42616         * doc/posix-functions/vfprintf.texi: Update.
42617         * doc/posix-functions/vprintf.texi: Update.
42618         * doc/posix-functions/vsnprintf.texi: Update.
42619         * doc/posix-functions/vsprintf.texi: Update.
42620         * doc/glibc-functions/obstack_printf.texi: Update.
42621         * doc/glibc-functions/obstack_vprintf.texi: Update.
42623 2009-02-26  Eric Blake  <ebb9@byu.net>
42625         stdlib: favor compiler check of random.h
42626         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42627         to avoid an ObjC random.h installed by Swarm.
42629 2009-02-26  Bruno Haible  <bruno@clisp.org>
42631         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42632         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42633         Reported by Gary V. Vaughan <gary@gnu.org>.
42635 2009-02-26  Bruno Haible  <bruno@clisp.org>
42637         Fix *printf behaviour regarding the %ls directive.
42638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42639         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42640         NEED_PRINTF_DIRECTIVE_LS.
42641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42642         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42644         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42645         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42646         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42647         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42650         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42651         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42652         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42656         * doc/posix-functions/fprintf.texi: Update.
42657         * doc/posix-functions/printf.texi: Update.
42658         * doc/posix-functions/snprintf.texi: Update.
42659         * doc/posix-functions/sprintf.texi: Update.
42660         * doc/posix-functions/vfprintf.texi: Update.
42661         * doc/posix-functions/vprintf.texi: Update.
42662         * doc/posix-functions/vsnprintf.texi: Update.
42663         * doc/posix-functions/vsprintf.texi: Update.
42664         * doc/glibc-functions/obstack_printf.texi: Update.
42665         * doc/glibc-functions/obstack_vprintf.texi: Update.
42666         Reported by Eric Blake.
42668 2009-02-25  Bruno Haible  <bruno@clisp.org>
42670         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42671         with known value.
42672         Reported by Gary V. Vaughan <gary@gnu.org>.
42674 2009-02-25  Bruno Haible  <bruno@clisp.org>
42676         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42677         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42678         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42679         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42680         Reported by Gary V. Vaughan <gary@gnu.org>.
42682 2009-02-25  Bruno Haible  <bruno@clisp.org>
42684         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42685         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42686         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42687         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42688         Reported by Gary V. Vaughan <gary@gnu.org>.
42690 2009-02-25  Eric Blake  <ebb9@byu.net>
42692         tests: skip fseek/ftell tests if ungetc is broken
42693         * m4/ungetc.m4: New file.
42694         * modules/fseek-tests: Split test, so ungetc dependency is
42695         separate from rest of test.
42696         * modules/fseeko-tests: Likewise.
42697         * modules/ftell-tests: Likewise.
42698         * modules/ftello-tests: Likewise.
42699         * tests/test-fseek.c (main): Isolate ungetc dependency.
42700         * tests/test-fseeko.c (main): Likewise.
42701         * tests/test-ftell.c (main): Likewise.
42702         * tests/test-ftello.c (main): Likewise.
42703         * tests/test-fseek2.sh: New file.
42704         * tests/test-fseeko2.sh: Likewise.
42705         * tests/test-ftell2.sh: Likewise.
42706         * tests/test-ftello2.sh: Likewise.
42708 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42710         test-getaddrinfo: fix usage of skip return code 77
42711         * tests/test-gettaddrinfo.c: Return skip code 77 only
42712         for first occurance of skip (4x77 is not 77)
42714 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42716         strtod: avoid C99 decl-after-statement
42717         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42719 2009-02-24  Eric Blake  <ebb9@byu.net>
42721         strtod: detect HP-UX 11.31 bug
42722         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42723         Reported by Gary V. Vaughan.
42725 2009-02-23  Bruno Haible  <bruno@clisp.org>
42727         Fix invalid read past end of memory block.
42728         * lib/vasnprintf.c (DCHAR_SET): Define.
42729         (local_wcslen): Define only when needed.
42730         (local_strnlen, local_wcsnlen): New functions.
42731         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42732         directives that involve a conversion ourselves.
42733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42734         wcsnlen, mbrtowc, wcrtomb.
42735         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42736         * tests/test-vasprintf-posix.c (test_function): Likewise.
42737         * tests/test-snprintf-posix.h (test_function): Likewise.
42738         * tests/test-sprintf-posix.h (test_function): Likewise.
42739         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42741 2009-02-22  Bruno Haible  <bruno@clisp.org>
42743         Implement new clarified decomposition of Hangul syllables.
42744         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42745         of type LTV, return only a pairwise decomposition.
42746         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42747         Likewise.
42748         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42749         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42750         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42752 2009-02-22  Bruno Haible  <bruno@clisp.org>
42754         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42755         zero-length results and shrink excess allocated memory.
42756         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42757         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42758         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42759         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42760         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42761         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42762         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42763         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42764         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42765         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42766         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42767         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42769 2009-02-21  Bruno Haible  <bruno@clisp.org>
42771         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42772         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42773         spaces after a period. Put a space between a macro name and its
42774         argument list. Trivial rewordings.
42775         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42776         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42777         (main): Return 0 explicitly.
42779 2009-02-21  Bruno Haible  <bruno@clisp.org>
42781         Tests for module 'uninorm/filter'.
42782         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42783         * modules/uninorm/filter-tests: New file.
42785         New module 'uninorm/filter'.
42786         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42787         uninorm_filter_flush, uninorm_filter_free): New declarations.
42788         * lib/uninorm/uninorm-filter.c: New file.
42789         * modules/uninorm/filter: New file.
42791 2009-02-21  Bruno Haible  <bruno@clisp.org>
42793         Tests for module 'uninorm/nfkc'.
42794         * tests/uninorm/test-nfkc.c: New file.
42795         * tests/uninorm/test-u8-nfkc.c: New file.
42796         * tests/uninorm/test-u16-nfkc.c: New file.
42797         * tests/uninorm/test-u32-nfkc.c: New file.
42798         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42799         * tests/uninorm/test-u32-nfkc-big.c: New file.
42800         * modules/uninorm/nfkc-tests: New file.
42802         New module 'uninorm/nfkc'.
42803         * lib/uninorm/nfkc.c: New file.
42804         * modules/uninorm/nfkc: New file.
42806         Tests for module 'uninorm/nfkd'.
42807         * tests/uninorm/test-nfkd.c: New file.
42808         * tests/uninorm/test-u8-nfkd.c: New file.
42809         * tests/uninorm/test-u16-nfkd.c: New file.
42810         * tests/uninorm/test-u32-nfkd.c: New file.
42811         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42812         * tests/uninorm/test-u32-nfkd-big.c: New file.
42813         * modules/uninorm/nfkd-tests: New file.
42815         New module 'uninorm/nfkd'.
42816         * lib/uninorm/nfkd.c: New file.
42817         * modules/uninorm/nfkd: New file.
42819         Tests for module 'uninorm/nfc'.
42820         * tests/uninorm/test-nfc.c: New file.
42821         * tests/uninorm/test-u8-nfc.c: New file.
42822         * tests/uninorm/test-u16-nfc.c: New file.
42823         * tests/uninorm/test-u32-nfc.c: New file.
42824         * tests/uninorm/test-u32-nfc-big.sh: New file.
42825         * tests/uninorm/test-u32-nfc-big.c: New file.
42826         * modules/uninorm/nfc-tests: New file.
42828         New module 'uninorm/nfc'.
42829         * lib/uninorm/nfc.c: New file.
42830         * modules/uninorm/nfc: New file.
42832         Tests for module 'uninorm/nfd'.
42833         * tests/uninorm/test-nfd.c: New file.
42834         * tests/uninorm/test-u8-nfd.c: New file.
42835         * tests/uninorm/test-u16-nfd.c: New file.
42836         * tests/uninorm/test-u32-nfd.c: New file.
42837         * tests/uninorm/test-u32-nfd-big.sh: New file.
42838         * tests/uninorm/test-u32-nfd-big.c: New file.
42839         * tests/uninorm/test-u32-normalize-big.h: New file.
42840         * tests/uninorm/test-u32-normalize-big.c: New file.
42841         * tests/uninorm/NormalizationTest.txt: New file, created from
42842         Unicode 5.1.0 NormalizationTest.txt.
42843         * modules/uninorm/nfd-tests: New file.
42845         New module 'uninorm/nfd'.
42846         * lib/uninorm/nfd.c: New file.
42847         * modules/uninorm/nfd: New file.
42849         New module 'uninorm/u32-normalize'.
42850         * lib/uninorm/u32-normalize.c: New file.
42851         * modules/uninorm/u32-normalize: New file.
42853         New module 'uninorm/u16-normalize'.
42854         * lib/uninorm/u16-normalize.c: New file.
42855         * modules/uninorm/u16-normalize: New file.
42857         New module 'uninorm/u8-normalize'.
42858         * lib/uninorm/u8-normalize.c: New file.
42859         * lib/uninorm/normalize-internal.h: New file.
42860         * lib/uninorm/u-normalize-internal.h: New file.
42861         * modules/uninorm/u8-normalize: New file.
42863         New module 'uninorm/decompose-internal'.
42864         * lib/uninorm/decompose-internal.c: New file.
42865         * modules/uninorm/decompose-internal: New file.
42867         Tests for module 'uninorm/composition'.
42868         * tests/uninorm/test-composition.c: New file.
42869         * modules/uninorm/composition-tests: New file.
42871         New module 'uninorm/composition'.
42872         * lib/uninorm/composition.c: New file.
42873         * lib/uninorm/composition-table.gperf: New file, generated by
42874         gen-uni-tables.
42875         * modules/uninorm/composition: New file.
42877         Tests for module 'uninorm/compat-decomposition'.
42878         * tests/uninorm/test-compat-decomposition.c: New file.
42879         * modules/uninorm/compat-decomposition-tests: New file.
42881         New module 'uninorm/compat-decomposition'.
42882         * lib/uninorm/decompose-internal.h: New file.
42883         * lib/uninorm/compat-decomposition.c: New file.
42884         * modules/uninorm/compat-decomposition: New file.
42886         Tests for module 'uninorm/canonical-decomposition'.
42887         * tests/uninorm/test-canonical-decomposition.c: New file.
42888         * modules/uninorm/canonical-decomposition-tests: New file.
42890         New module 'uninorm/canonical-decomposition'.
42891         * lib/uninorm/canonical-decomposition.c: New file.
42892         * modules/uninorm/canonical-decomposition: New file.
42894         Tests for module 'uninorm/decomposition'.
42895         * tests/uninorm/test-decomposition.c: New file.
42896         * modules/uninorm/decomposition-tests: New file.
42898         New module 'uninorm/decomposition'.
42899         * lib/uninorm/decomposition.c: New file.
42900         * modules/uninorm/decomposition: New file.
42902         New module 'uninorm/decomposition-table'.
42903         * lib/uninorm/decomposition-table.h: New file.
42904         * lib/uninorm/decomposition-table.c: New file.
42905         * lib/uninorm/decomposition-table1.h: New file, generated by
42906         gen-uni-tables.
42907         * lib/uninorm/decomposition-table2.h: New file, generated by
42908         gen-uni-tables.
42909         * modules/uninorm/decomposition-table: New file.
42911         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42912         (UC_DECOMP_*): New enumeration items.
42913         (get_decomposition): New function.
42914         (struct decomp_table): New type.
42915         (output_decomposition, output_decomposition_tables): New functions.
42916         (unicode_composition_exclusions): New variable.
42917         (fill_composition_exclusions, debug_output_composition_tables): New
42918         functions.
42919         (main): Accept one more argument. Invoke fill_composition_exclusions.
42920         Output decomposition and composition tables.
42922         New module 'uninorm/base'.
42923         * lib/uninorm.h: New file.
42924         * lib/unictype.h: Update comment.
42925         * modules/uninorm/base: New file.
42927 2009-02-21  David Lutterkort  <lutter@redhat.com>
42929         Tests for module 'safe-alloc'.
42930         * tests/test-safe-alloc.c: New file.
42931         * modules/safe-alloc-tests: New file.
42933         New module 'safe-alloc'.
42934         * lib/safe-alloc.h: New file.
42935         * lib/safe-alloc.c: New file.
42936         * m4/safe-alloc.m4: New file.
42937         * modules/safe-alloc: New file.
42938         * doc/safe-alloc.texi: New file.
42939         * doc/gnulib.texi: Include it.
42940         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42941         safe-alloc.
42943 2009-02-18  Bruno Haible  <bruno@clisp.org>
42945         Fix link error on non-glibc systems.
42946         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42947         variable.
42948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42950 2009-02-18  Jim Meyering  <meyering@redhat.com>
42952         fts: avoid used-uninitialized error due to recent change
42953         * lib/fts.c (fts_read): Guard uses of the new member,
42954         parent->fts_n_dirs_remaining, since it's not relevant for
42955         the parent of a directory specified on the command-line.
42957 2009-02-17  James Youngman  <jay@gnu.org>
42958             Bruno Haible  <bruno@clisp.org>
42960         * m4/include_next.m4: Reformulate comment.
42962 2009-02-16  Jim Meyering  <meyering@redhat.com>
42964         fts: add #if guards so that the fts_lgpl module still builds
42965         * lib/fts.c: Guard just-added hash-table-using parts with
42966         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42967         Reported by Simon Josefsson.
42969 2009-02-15  Bruno Haible  <bruno@clisp.org>
42971         * modules/array-mergesort-tests: New file.
42972         * tests/test-array-mergesort.c: New file.
42974         New module 'array-mergesort'.
42975         * modules/array-mergesort: New file.
42976         * lib/array-mergesort.h: New file.
42978 2009-02-15  Bruno Haible  <bruno@clisp.org>
42980         Fix 2009-02-07 commit.
42981         * lib/gen-uni-tables.c (output_predicate, output_category,
42982         output_combclass, output_bidi_category, output_decimal_digit,
42983         output_digit, output_numeric, output_mirror, output_scripts,
42984         output_ident_category, output_simple_mapping): Fix format directives.
42985         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42987 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42989         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42990         fixes are available from IBM.
42992 2009-02-13  Jim Meyering  <meyering@redhat.com>
42994         fts: arrange not to stat non-directories in more cases
42995         This makes GNU find (when it doesn't need to stat each file)
42996         *much* more efficient at traversing reiserfs file systems.
42997         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42998         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42999         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43000         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43001         (leaf_optimization_applies): New function.
43002         (LCO_hash, LCO_compare): New helper functions.
43003         (link_count_optimize_ok): New function.
43004         (fts_stat): Initialize new member (if dir).
43005         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43006         we've just stat'ed a directory.  Skip the stat call when possible.
43007         ---
43008         Note this AFS-related exchange:
43009         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43010         and note find's pioctl call in find/fstype.c.
43011         But that is necessary only if you want to enable the
43012         optimization for AFS, and for now, I don't.
43014         fts: move a function definition "up" (no semantic change)
43015         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43016         "up" to precede upcoming use of a related function.
43018 2009-02-11  Jim Meyering  <meyering@redhat.com>
43020         fts: correct internal computation of nlinks (optimization-related)
43021         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43022         whether the current entry is a directory, so don't test it.
43024 2009-02-10  Bruno Haible  <bruno@clisp.org>
43026         Tests for module 'uniwbrk/ulc-wordbreaks'.
43027         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43028         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43029         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43031         Tests for module 'uniwbrk/u32-wordbreaks'.
43032         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43033         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43035         Tests for module 'uniwbrk/u16-wordbreaks'.
43036         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43037         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43039         Tests for module 'uniwbrk/u8-wordbreaks'.
43040         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43041         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43043 2009-02-10  Bruno Haible  <bruno@clisp.org>
43045         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43046         property.
43047         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43048         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43049         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43051 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43053         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43054         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43056 2009-02-10  Bruno Haible  <bruno@clisp.org>
43058         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43059         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43060         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43061         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43062         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43063         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43065 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43067         * lib/sockets.h (gl_fd_to_handle): New function.
43069         * tests/test-sockets.c: Call gl_fd_to_handle.
43071 2009-02-09  Bruno Haible  <bruno@clisp.org>
43073         * doc/havelib.texi: Document the conventions on bi-arch systems.
43075 2009-02-08  Bruno Haible  <bruno@clisp.org>
43077         Document the AC_LIB_LINKFLAGS macro.
43078         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43079         * doc/gnulib.texi: Include it.
43081 2009-02-08  Bruno Haible  <bruno@clisp.org>
43083         Fix wrong order of sections, compared to TOC.
43084         * doc/gnulib.texi: Include relocatable-maint.texi after the
43085         "Regular expressions" node, not before.
43087 2009-02-08  Bruno Haible  <bruno@clisp.org>
43089         Tests for module 'unicase/totitle'.
43090         * modules/unicase/totitle-tests: New file.
43092         Tests for module 'unicase/tolower'.
43093         * modules/unicase/tolower-tests: New file.
43095         Tests for module 'unicase/toupper'.
43096         * modules/unicase/toupper-tests: New file.
43097         * tests/unicase/test-mapping-part1.h: New file.
43098         * tests/unicase/test-mapping-part2.h: New file.
43100         New module 'unicase/totitle'.
43101         * modules/unicase/totitle: New file.
43102         * lib/unicase/totitle.c: New file.
43104         New module 'unicase/tolower'.
43105         * modules/unicase/tolower: New file.
43106         * lib/unicase/tolower.c: New file.
43108         New module 'unicase/toupper'.
43109         * modules/unicase/toupper: New file.
43110         * lib/unicase/toupper.c: New file.
43111         * lib/unicase/simple-mapping.h: New file.
43113         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43114         (mapping_table): New structure.
43115         (output_simple_mapping): New function.
43116         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43117         * modules/gen-uni-tables (Description): Update.
43118         * lib/unicase/toupper.h: New file, automatically generated by
43119         gen-uni-tables.
43120         * lib/unicase/tolower.h: New file, automatically generated by
43121         gen-uni-tables.
43122         * lib/unicase/totitle.h: New file, automatically generated by
43123         gen-uni-tables.
43124         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43125         gen-uni-tables.
43126         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43127         gen-uni-tables.
43128         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43129         gen-uni-tables.
43131         New module 'unicase/base'.
43132         * modules/unicase/base: New file.
43133         * lib/unicase.h: New file.
43135 2009-02-08  Bruno Haible  <bruno@clisp.org>
43137         New module 'uniwbrk/ulc-wordbreaks'.
43138         * modules/uniwbrk/ulc-wordbreaks: New file.
43139         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43141         New module 'uniwbrk/u32-wordbreaks'.
43142         * modules/uniwbrk/u32-wordbreaks: New file.
43143         * lib/uniwbrk/u32-wordbreaks.c: New file.
43145         New module 'uniwbrk/u16-wordbreaks'.
43146         * modules/uniwbrk/u16-wordbreaks: New file.
43147         * lib/uniwbrk/u16-wordbreaks.c: New file.
43149         New module 'uniwbrk/u8-wordbreaks'.
43150         * modules/uniwbrk/u8-wordbreaks: New file.
43151         * lib/uniwbrk/u8-wordbreaks.c: New file.
43152         * lib/uniwbrk/u-wordbreaks.h: New file.
43154         New module 'uniwbrk/table'.
43155         * modules/uniwbrk/table: New file.
43156         * lib/uniwbrk/wbrktable.h: New file.
43157         * lib/uniwbrk/wbrktable.c: New file.
43159         New module 'uniwbrk/wordbreak-property'.
43160         * modules/uniwbrk/wordbreak-property: New file.
43161         * lib/uniwbrk/wordbreak-property.c: New file.
43163         * lib/gen-uni-tables.c (WBP_*): New enum items.
43164         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43165         (unicode_org_wbp): New variable.
43166         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43167         New functions.
43168         (wbp_table): New structure.
43169         (output_wbp, output_wbrk_tables): New functions.
43170         (main): Accept additional argument. Invoke fill_org_wbp,
43171         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43172         output_wbrk_tables.
43173         * modules/gen-uni-tables (Description): Update.
43174         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43175         gen-uni-tables.
43177         New module 'uniwbrk/base'.
43178         * modules/uniwbrk/base: New file.
43179         * lib/uniwbrk.h: New file.
43181 2009-02-08  Bruno Haible  <bruno@clisp.org>
43183         Update to Unicode 5.1.0.
43184         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43185         U+2185..U+2188.
43186         (is_property_default_ignorable_code_point): Don't include characters
43187         of category Cc or Cs and not-a-characters.
43188         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43189         U+0D79, U+109E, U+109F, U+A60C.
43190         * lib/unictype/bidi_of.h: Regenerated.
43191         * lib/unictype/blocks.h: Regenerated.
43192         * lib/unictype/categ_C.h: Regenerated.
43193         * lib/unictype/categ_Cf.h: Regenerated.
43194         * lib/unictype/categ_Cn.h: Regenerated.
43195         * lib/unictype/categ_L.h: Regenerated.
43196         * lib/unictype/categ_Ll.h: Regenerated.
43197         * lib/unictype/categ_Lm.h: Regenerated.
43198         * lib/unictype/categ_Lo.h: Regenerated.
43199         * lib/unictype/categ_Lu.h: Regenerated.
43200         * lib/unictype/categ_M.h: Regenerated.
43201         * lib/unictype/categ_Mc.h: Regenerated.
43202         * lib/unictype/categ_Me.h: Regenerated.
43203         * lib/unictype/categ_Mn.h: Regenerated.
43204         * lib/unictype/categ_N.h: Regenerated.
43205         * lib/unictype/categ_Nd.h: Regenerated.
43206         * lib/unictype/categ_Nl.h: Regenerated.
43207         * lib/unictype/categ_No.h: Regenerated.
43208         * lib/unictype/categ_P.h: Regenerated.
43209         * lib/unictype/categ_Pd.h: Regenerated.
43210         * lib/unictype/categ_Pe.h: Regenerated.
43211         * lib/unictype/categ_Pf.h: Regenerated.
43212         * lib/unictype/categ_Pi.h: Regenerated.
43213         * lib/unictype/categ_Po.h: Regenerated.
43214         * lib/unictype/categ_Ps.h: Regenerated.
43215         * lib/unictype/categ_S.h: Regenerated.
43216         * lib/unictype/categ_Sk.h: Regenerated.
43217         * lib/unictype/categ_Sm.h: Regenerated.
43218         * lib/unictype/categ_So.h: Regenerated.
43219         * lib/unictype/categ_of.h: Regenerated.
43220         * lib/unictype/combining.h: Regenerated.
43221         * lib/unictype/ctype_alnum.h: Regenerated.
43222         * lib/unictype/ctype_alpha.h: Regenerated.
43223         * lib/unictype/ctype_graph.h: Regenerated.
43224         * lib/unictype/ctype_lower.h: Regenerated.
43225         * lib/unictype/ctype_print.h: Regenerated.
43226         * lib/unictype/ctype_punct.h: Regenerated.
43227         * lib/unictype/ctype_upper.h: Regenerated.
43228         * lib/unictype/decdigit.h: Regenerated.
43229         * lib/unictype/digit.h: Regenerated.
43230         * lib/unictype/mirror.h: Regenerated.
43231         * lib/unictype/numeric.h: Regenerated.
43232         * lib/unictype/pr_alphabetic.h: Regenerated.
43233         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43234         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43235         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43236         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43237         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43238         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43239         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43240         * lib/unictype/pr_combining.h: Regenerated.
43241         * lib/unictype/pr_dash.h: Regenerated.
43242         * lib/unictype/pr_decimal_digit.h: Regenerated.
43243         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43244         * lib/unictype/pr_deprecated.h: Regenerated.
43245         * lib/unictype/pr_diacritic.h: Regenerated.
43246         * lib/unictype/pr_extender.h: Regenerated.
43247         * lib/unictype/pr_format_control.h: Regenerated.
43248         * lib/unictype/pr_grapheme_base.h: Regenerated.
43249         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43250         * lib/unictype/pr_grapheme_link.h: Regenerated.
43251         * lib/unictype/pr_id_continue.h: Regenerated.
43252         * lib/unictype/pr_id_start.h: Regenerated.
43253         * lib/unictype/pr_ideographic.h: Regenerated.
43254         * lib/unictype/pr_ignorable_control.h: Regenerated.
43255         * lib/unictype/pr_lowercase.h: Regenerated.
43256         * lib/unictype/pr_math.h: Regenerated.
43257         * lib/unictype/pr_numeric.h: Regenerated.
43258         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43259         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43260         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43261         * lib/unictype/pr_other_id_continue.h: Regenerated.
43262         * lib/unictype/pr_other_lowercase.h: Regenerated.
43263         * lib/unictype/pr_other_math.h: Regenerated.
43264         * lib/unictype/pr_punctuation.h: Regenerated.
43265         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43266         * lib/unictype/pr_soft_dotted.h: Regenerated.
43267         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43268         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43269         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43270         * lib/unictype/pr_uppercase.h: Regenerated.
43271         * lib/unictype/pr_xid_continue.h: Regenerated.
43272         * lib/unictype/pr_xid_start.h: Regenerated.
43273         * lib/unictype/pr_zero_width.h: Regenerated.
43274         * lib/unictype/scripts.h: Regenerated.
43275         * lib/unictype/scripts_byname.gperf: Regenerated.
43276         * lib/unictype/sy_java_ident.h: Regenerated.
43277         * lib/unilbrk/lbrkprop1.h: Regenerated.
43278         * lib/unilbrk/lbrkprop2.h: Regenerated.
43279         * tests/unictype/test-categ_C.c: Regenerated.
43280         * tests/unictype/test-categ_Cf.c: Regenerated.
43281         * tests/unictype/test-categ_Cn.c: Regenerated.
43282         * tests/unictype/test-categ_L.c: Regenerated.
43283         * tests/unictype/test-categ_Ll.c: Regenerated.
43284         * tests/unictype/test-categ_Lm.c: Regenerated.
43285         * tests/unictype/test-categ_Lo.c: Regenerated.
43286         * tests/unictype/test-categ_Lu.c: Regenerated.
43287         * tests/unictype/test-categ_M.c: Regenerated.
43288         * tests/unictype/test-categ_Mc.c: Regenerated.
43289         * tests/unictype/test-categ_Me.c: Regenerated.
43290         * tests/unictype/test-categ_Mn.c: Regenerated.
43291         * tests/unictype/test-categ_N.c: Regenerated.
43292         * tests/unictype/test-categ_Nd.c: Regenerated.
43293         * tests/unictype/test-categ_Nl.c: Regenerated.
43294         * tests/unictype/test-categ_No.c: Regenerated.
43295         * tests/unictype/test-categ_P.c: Regenerated.
43296         * tests/unictype/test-categ_Pd.c: Regenerated.
43297         * tests/unictype/test-categ_Pe.c: Regenerated.
43298         * tests/unictype/test-categ_Pf.c: Regenerated.
43299         * tests/unictype/test-categ_Pi.c: Regenerated.
43300         * tests/unictype/test-categ_Po.c: Regenerated.
43301         * tests/unictype/test-categ_Ps.c: Regenerated.
43302         * tests/unictype/test-categ_S.c: Regenerated.
43303         * tests/unictype/test-categ_Sk.c: Regenerated.
43304         * tests/unictype/test-categ_Sm.c: Regenerated.
43305         * tests/unictype/test-categ_So.c: Regenerated.
43306         * tests/unictype/test-ctype_alnum.c: Regenerated.
43307         * tests/unictype/test-ctype_alpha.c: Regenerated.
43308         * tests/unictype/test-ctype_graph.c: Regenerated.
43309         * tests/unictype/test-ctype_lower.c: Regenerated.
43310         * tests/unictype/test-ctype_print.c: Regenerated.
43311         * tests/unictype/test-ctype_punct.c: Regenerated.
43312         * tests/unictype/test-ctype_upper.c: Regenerated.
43313         * tests/unictype/test-decdigit.h: Regenerated.
43314         * tests/unictype/test-digit.h: Regenerated.
43315         * tests/unictype/test-numeric.h: Regenerated.
43316         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43317         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43318         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43319         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43320         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43321         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43322         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43323         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43324         * tests/unictype/test-pr_combining.c: Regenerated.
43325         * tests/unictype/test-pr_dash.c: Regenerated.
43326         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43327         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43328         * tests/unictype/test-pr_deprecated.c: Regenerated.
43329         * tests/unictype/test-pr_diacritic.c: Regenerated.
43330         * tests/unictype/test-pr_extender.c: Regenerated.
43331         * tests/unictype/test-pr_format_control.c: Regenerated.
43332         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43333         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43334         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43335         * tests/unictype/test-pr_id_continue.c: Regenerated.
43336         * tests/unictype/test-pr_id_start.c: Regenerated.
43337         * tests/unictype/test-pr_ideographic.c: Regenerated.
43338         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43339         * tests/unictype/test-pr_lowercase.c: Regenerated.
43340         * tests/unictype/test-pr_math.c: Regenerated.
43341         * tests/unictype/test-pr_numeric.c: Regenerated.
43342         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43343         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43344         Regenerated.
43345         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43346         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43347         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43348         * tests/unictype/test-pr_other_math.c: Regenerated.
43349         * tests/unictype/test-pr_punctuation.c: Regenerated.
43350         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43351         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43352         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43353         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43354         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43355         * tests/unictype/test-pr_uppercase.c: Regenerated.
43356         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43357         * tests/unictype/test-pr_xid_start.c: Regenerated.
43358         * tests/unictype/test-pr_zero_width.c: Regenerated.
43360         Update to Unicode 5.1.0.
43361         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43362         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43363         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43364         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43365         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43366         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43367         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43368         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43369         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43370         (nonspacing_table_ind): Update.
43371         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43373         Update to Unicode 5.1.0.
43374         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43375         code transform.
43376         * lib/uniname/uniname.c (unicode_character_name,
43377         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43378         * lib/uniname/uninames.h: Regenerated.
43379         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43381 2009-02-07  Bruno Haible  <bruno@clisp.org>
43383         Merge gen-ctype and gen-lbrk into a single program.
43384         * lib/gen-uni-tables.c: New file, incorporating
43385         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43386         Add directory prefixes to the names of the generated files.
43387         * lib/unictype/gen-ctype.c: Remove file.
43388         * lib/unilbrk/gen-lbrk.c: Remove file.
43389         * modules/gen-uni-tables: New file.
43390         * modules/unictype/gen-ctype: Remove file.
43391         * modules/unilbrk/gen-lbrk: Remove file.
43393 2009-02-07  Bruno Haible  <bruno@clisp.org>
43395         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43397         New module 'unistr/u32-strcoll'.
43398         * modules/unistr/u32-strcoll: New file.
43399         * lib/unistr/u32-strcoll.c: New file.
43401         New module 'unistr/u16-strcoll'.
43402         * modules/unistr/u16-strcoll: New file.
43403         * lib/unistr/u16-strcoll.c: New file.
43405         New module 'unistr/u8-strcoll'.
43406         * modules/unistr/u8-strcoll: New file.
43407         * lib/unistr/u8-strcoll.c: New file.
43408         * lib/unistr/u-strcoll.h: New file.
43410 2009-02-07  Bruno Haible  <bruno@clisp.org>
43412         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43413         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43414         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43415         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43416         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43417         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43419 2009-02-07  Bruno Haible  <bruno@clisp.org>
43421         Make 64-bit clean.
43422         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43423         output_combclass, output_bidi_category, output_decimal_digit,
43424         output_digit, output_numeric, output_mirror, output_scripts,
43425         output_ident_category): Use proper width specifier in format strings.
43427 2009-02-07  Bruno Haible  <bruno@clisp.org>
43429         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43430         failure behaviour.
43432 2009-02-07  Jim Meyering  <meyering@redhat.com>
43434         regex: avoid compilation failure with upcoming gcc-4.4
43435         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43436         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43437         "... error: integer overflow in preprocessor expression".
43439 2009-02-05  Ben Pfaff  <blp@gnu.org>
43441         Fix link errors on Windows when close module is used.
43442         * modules/close: Add $(LIB_CLOSE) to Link section.
43443         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43444         $(LIB_CLOSE) on Windows.
43446 2009-02-05  Jim Meyering  <meyering@redhat.com>
43448         still avoid unused-parameter warnings, but do it cleanly
43449         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43450         (get_fs_usage): Cast to void instead.
43451         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43452         (dev_from_mount_options, read_file_system_list): Cast to void.
43453         Prompted by Bruno Haible.
43455 2009-02-04  Jim Meyering  <meyering@redhat.com>
43457         fsusage.c: correct copyright year
43458         * lib/fsusage.c: Reflect year in which the change is pushed into
43460         avoid misc. warnings
43461         * lib/fsusage.c (UNUSED_PARAM): Define.
43462         (get_fs_usage): Mark parameter "disk" as unused.
43463         * lib/getugroups.c (getgrent): Use "void" in prototype.
43464         * lib/mountlist.c: Mark unused parameters.
43465         (read_file_system_list): Declare a local with "const".
43466         * lib/nanosleep.c (getnow): Declare static.
43467         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43469         dirfd: set errno upon failure
43470         * lib/dirfd.c: Include <errno.h>.
43471         Set errno to ENOTSUP when returning -1.
43472         * modules/dirfd (Depends-on): Add errno.
43473         Suggested by John Kodis <kodis@comcast.net>.
43475 2009-02-01  Bruno Haible  <bruno@clisp.org>
43477         Don't assume sizeof (long) >= sizeof (void *).
43478         * lib/memcmp.c: Include stdint.h.
43479         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43480         srcp2 to 'const byte *'.
43481         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43482         types to uintptr_t.
43483         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43484         * modules/memcmp (Depends-on): Add stdint.
43485         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43487 2009-01-30  Eric Blake  <ebb9@byu.net>
43489         fix more require-before-expand issues
43490         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43491         expand, AC_PROG_AWK.
43492         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43494 2009-01-28  Eric Blake  <ebb9@byu.net>
43496         version-etc: use consistent URL formatting
43497         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43498         Improve formatting.  Use fputs for string without %.
43500 2009-01-28  Jim Meyering  <meyering@redhat.com>
43502         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43503         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43504         "underquoted definition of NAME" from autoconf-2.59.
43506 2009-01-28  Bruno Haible  <bruno@clisp.org>
43508         * doc/gnulib.texi: Add "Obsolete modules" to index.
43510 2009-01-28  Jim Meyering  <meyering@redhat.com>
43512         useless-if-before-free: recognize more variants
43513         * build-aux/useless-if-before-free: Also recognize e.g.,
43514         if (NULL != p) free (p);
43516 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43518         test-getaddrinfo: skip (don't fail) this test when there's no network
43519         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43520         on the presumption that it means you lack network access.
43522 2009-01-26  Jim Meyering  <meyering@redhat.com>
43524         fflush: avoid warnings on modern systems
43525         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43526         pos and result, into scopes where they're used.
43528 2009-01-26  Eric Blake  <ebb9@byu.net>
43530         Silence warning reintroduced by recent extensions patch.
43531         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43532         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43533         autoconf.
43535         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43536         * m4/00gnulib.m4: New file.
43537         * gnulib-tool (func_get_filelist): Always use it.
43538         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43539         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43541 2009-01-25  Bruno Haible  <bruno@clisp.org>
43543         Make test-quotearg work on MacOS X and AIX.
43544         * tests/test-quotearg.sh: New file.
43545         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43546         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43547         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43548         include <libintl.h>.
43549         (fake_locale): Remove variable.
43550         (gettext, dgettext, dcgettext): Remove functions.
43551         (main): Instead of setting a fake locale, set a real locale. Call
43552         textdomain and bindtextdomain.
43553         * modules/quotearg-tests (Files): Add the new files.
43554         (Depends-on): Add gettext, setenv, unsetenv.
43555         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43556         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43557         Augment TESTS_ENVIRONMENT.
43559 2009-01-25  Bruno Haible  <bruno@clisp.org>
43561         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43562         fr_FR.ISO8859-1 locale on MacOS X.
43563         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43564         ja_JP.eucJP locale on MacOS X.
43565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43566         zh_CN.GB18030 locale on MacOS X.
43568 2009-01-25  Bruno Haible  <bruno@clisp.org>
43570         Avoid link errors on MacOS X 10.3.
43571         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43572         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43574 2009-01-25  Bruno Haible  <bruno@clisp.org>
43576         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43577         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43578         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43579         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43580         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43581         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43582         posix_spawnattr_init, posix_spawnattr_setsigmask,
43583         posix_spawnattr_setflags, posix_spawnattr_destroy.
43585         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43586         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43587         * modules/execute (Files): Remove m4/posix_spawn.m4.
43588         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43589         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43590         posix_spawnattr_init, posix_spawnattr_setsigmask,
43591         posix_spawnattr_setflags, posix_spawnattr_destroy.
43593 2009-01-25  Bruno Haible  <bruno@clisp.org>
43595         * lib/glthread/threadlib.c: Include <stdlib.h>.
43597 2009-01-25  Bruno Haible  <bruno@clisp.org>
43599         * lib/glthread/threadlib.c (dummy): New declaration.
43601 2009-01-25  Bruno Haible  <bruno@clisp.org>
43603         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43604         multibyte characters also for the GB18030 encoding. Don't crash when
43605         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43607 2009-01-25  Bruno Haible  <bruno@clisp.org>
43609         Avoid redefining 'struct random_data' on OSF/1 5.1.
43610         * lib/stdlib.in.h: Include <random.h> if it exists.
43611         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43612         HAVE_RANDOM_H. Include <random.h> when testing whether
43613         'struct random_data' exists.
43614         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43616 2009-01-25  Bruno Haible  <bruno@clisp.org>
43618         Don't install charset.alias on MacOS X >= 10.3.
43619         * lib/localcharset.c (DARWIN7): New macro.
43620         (get_charset_aliases): Hardcode the result for Darwin7.
43621         * modules/localcharset (install-exec-local): Don't install
43622         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43624 2009-01-25  Bruno Haible  <bruno@clisp.org>
43626         Don't install charset.alias on mingw and Cygwin.
43627         * modules/localcharset (install-exec-local): Don't install
43628         charset.alias on mingw and Cygwin, if the file does not yet exist.
43629         The result for these platforms is hardcoded in localcharset.c.
43631 2009-01-25  Bruno Haible  <bruno@clisp.org>
43633         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43634         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43635         before requiring AC_USE_SYSTEM_EXTENSIONS.
43637 2009-01-25  Jim Meyering  <meyering@redhat.com>
43639         c-strtod: avoid warnings
43640         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43641         "assignment discards qualifiers from pointer target type" warnings.
43643 2009-01-24  Bruno Haible  <bruno@clisp.org>
43645         Add support for non-UTF-8 locales on MacOS X.
43646         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43647         canonical encodings. For Darwin 7 and newer, don't map traditional
43648         encodings to UTF-8.
43649         Reported by Vincent Lefevre <vincent@vinc17.org>
43650         at <http://savannah.gnu.org/bugs/?25235>.
43652 2009-01-24  Bruno Haible  <bruno@clisp.org>
43654         * doc/gnulib.texi (Obsolete modules): New section.
43655         Reported by Mike Frysinger <vapier@gentoo.org>.
43657 2009-01-24  Bruno Haible  <bruno@clisp.org>
43659         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43660         (%.dvi): New rule.
43662 2009-01-24  Bruno Haible  <bruno@clisp.org>
43664         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43665         Reported by Eric Blake.
43667 2009-01-24  Bruno Haible  <bruno@clisp.org>
43669         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43670         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43671         Reported by Gary V. Vaughan <gary@gnu.org>.
43673 2009-01-24  Bruno Haible  <bruno@clisp.org>
43675         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43677 2009-01-23  Bruno Haible  <bruno@clisp.org>
43679         Make c-strtod, c-strtold usable in libraries.
43680         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43681         (C_STRTOD): Call strdup instead of xstrdup.
43682         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43683         * modules/c-strtold (Depends-on): Likewise.
43684         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43685         * NEWS: Mention the change.
43686         Reported by Michael Gold <mgold@ncf.ca>.
43688 2009-01-23  Jim Meyering  <meyering@redhat.com>
43690         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43691         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43692         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43694 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43696         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43697         GNU CoreUtils.
43698         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43699         * modules/version-etc (Description): Update.
43701 2009-01-22  Bruno Haible  <bruno@clisp.org>
43703         Cache the C locale object.
43704         * lib/c-strtod.c (c_locale_cache): New variable.
43705         (c_locale): New function.
43706         (C_STRTOD): Use it, and don't call freelocale.
43707         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43708         Suggested by Paolo Bonzini.
43710 2009-01-21  Bruno Haible  <bruno@clisp.org>
43712         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43713         conditions other than overflow.
43715 2009-01-21  Bruno Haible  <bruno@clisp.org>
43717         * lib/c-strtod.c: Include errno.h.
43718         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43719         value from STRTOD_L and STRTOD.
43721 2009-01-21  Bruno Haible  <bruno@clisp.org>
43722         and Jim Meyering  <meyering@redhat.com>
43724         nanosleep: skip configure test (fail it) for apple universal builds
43725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43726         universal builds, assume that nanosleep does not work.
43727         * modules/nanosleep (Depends-on): Add multiarch.
43729         mktime: skip configure test (fail it) for apple universal builds
43730         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43731         universal builds, assume that mktime does not work.
43732         * modules/mktime (Depends-on): Add multiarch.
43734 2009-01-21  Eric Blake  <ebb9@byu.net>
43736         multiarch: avoid expand-before-require warning
43737         * modules/multiarch (configure.ac): Require, rather than expand,
43738         gl_MULTIARCH.
43739         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43740         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43741         enforce that all clients require it.  Partial reversion of
43742         2008-12-29 patch.
43744         error: avoid expand-before-require warning
43745         * modules/errno (configure.ac): Require, rather than expand,
43746         gl_HEADER_ERRNO_H.
43747         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43748         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43749         enforce that all clients require it.
43751         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43752         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43753         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43754         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43756 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43758         Revert:
43759         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43761         regex: do not depend on obsolete modules.
43762         * modules/regex: Remove memcmp and memmove.
43764 2009-01-20  Bruno Haible  <bruno@clisp.org>
43766         Make the 'link' module link on Windows NT 4.
43767         * lib/link.c (_WIN32_WINNT): Don't define.
43768         (CreateHardLinkFuncType): New type.
43769         (CreateHardLinkFunc, initialized): New variables.
43770         (initialize): New function.
43771         (link): Invoke CreateHardLink indirectly through the function pointer.
43773 2009-01-20  Bruno Haible  <bruno@clisp.org>
43775         Fix compilation failure on mingw.
43776         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43778 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43780         * doc/c-strtod.texi: Mention a couple of restrictions.
43782 2009-01-20  Jim Meyering  <meyering@redhat.com>
43784         gettimeofday: move more declarations out of functions
43785         * lib/gettimeofday.c: Move extern declarations of tzset and
43786         gmtime out of containing functions.  Prompted by Bruno Haible.
43788 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43790         regex: do not depend on obsolete modules.
43791         * modules/regex: Remove memcmp and memmove.
43793 2009-01-19  Bruno Haible  <bruno@clisp.org>
43795         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43796         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43797         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43798         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43799         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43801 2009-01-19  Bruno Haible  <bruno@clisp.org>
43803         * tests/test-link.c: Include <errno.h>.
43804         (main): Exit with code 77 when a hard link cannot be created due to
43805         the file system.
43806         * tests/test-link.sh: Skip test when a hard link cannot be created due
43807         to the file system.
43808         Suggested by Eric Blake.
43810 2009-01-19  Martin Lambers  <marlam@marlam.de>
43812         * modules/link-tests: New file.
43813         * tests/test-link.sh: New file.
43814         * tests/test-link.c: New file.
43816 2009-01-19  Eric Blake  <ebb9@byu.net>
43818         doc: mention another function added in cygwin 1.7.0
43819         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43820         Another new function in cygwin 1.7.
43822 2009-01-19  Bruno Haible  <bruno@clisp.org>
43824         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43825         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43826         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43827         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43828         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43829         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43830         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43831         * m4/md4.m4 (gl_MD4): Likewise.
43832         * m4/md5.m4 (gl_MD5): Likewise.
43833         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43834         * m4/sha1.m4 (gl_SHA1): Likewise.
43835         * m4/sha256.m4 (gl_SHA256): Likewise.
43836         * m4/sha512.m4 (gl_SHA512): Likewise.
43838 2009-01-19  Bruno Haible  <bruno@clisp.org>
43840         * modules/uniname/uniname-tests (Depends-on): Add progname.
43841         * tests/uniname/test-uninames.c: Include progname.h.
43842         (main): Call set_program_name.
43844         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43845         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43846         (main): Call set_program_name.
43848         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43849         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43850         (main): Call set_program_name.
43852         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43853         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43854         (main): Call set_program_name.
43856         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43857         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43858         (main): Call set_program_name.
43860         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43861         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43862         (main): Call set_program_name.
43864         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43865         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43866         (main): Call set_program_name.
43868         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43869         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43870         (main): Call set_program_name.
43872         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43873         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43874         (main): Call set_program_name.
43876 2009-01-19  Eric Blake  <ebb9@byu.net>
43878         test-unistd: test previous patch
43879         * tests/test-unistd.c: Test *_FILENO macros.
43881         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43882         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43883         Guarantee a definition.
43884         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43885         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43886         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43887         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43888         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43889         Likewise.
43890         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43891         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43892         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43893         Likewise.
43894         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43895         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43896         (STDERR_FILENO): Likewise.
43897         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43898         (STDERR_FILENO): Likewise.
43899         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43900         (STDERR_FILENO): Likewise.
43901         Reported by Elbert Pol.
43903 2009-01-19  Eric Blake  <ebb9@byu.net>
43905         doc: mention more functions added in cygwin 1.7.0
43906         * doc/posix-functions/abort.texi (abort): Update wording related
43907         to cygwin.
43908         * doc/posix-functions/daylight.texi (daylight): Likewise.
43909         * doc/posix-functions/optarg.texi (optarg): Likewise.
43910         * doc/posix-functions/optarg.texi (opterr): Likewise.
43911         * doc/posix-functions/optarg.texi (optind): Likewise.
43912         * doc/posix-functions/optarg.texi (optopt): Likewise.
43913         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43914         worked in 1.5.x, and was withdrawn in 1.7.
43915         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43916         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43917         cygwin versions.
43918         * doc/posix-functions/perror.texi (perror): Likewise.
43919         * doc/posix-functions/printf.texi (printf): Likewise.
43920         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43921         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43922         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43923         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43924         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43925         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43926         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43927         Likewise.
43928         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43929         Likewise.
43930         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43931         this function.
43932         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43933         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43934         Likewise.
43935         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43936         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43937         * doc/posix-functions/confstr.texi (confstr): Likewise.
43938         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43939         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43940         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43941         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43942         * doc/posix-functions/fputws.texi (fputws): Likewise.
43943         * doc/posix-functions/fwide.texi (fwide): Likewise.
43944         * doc/posix-functions/getwc.texi (getwc): Likewise.
43945         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43946         * doc/posix-functions/putwc.texi (putwc): Likewise.
43947         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43948         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43949         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43950         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43951         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43952         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43953         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43954         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43955         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43956         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43957         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43959 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43961         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43962         * lib/ioctl.c: Include <sys/ioctl.h>.
43964 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43966         * modules/getdate-tests (Depends-on): Add progname.
43967         * tests/test-getdate.c: Use progname module, to avoid link errors
43968         on non-glibc systems.
43970 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43972         * modules/filenamecat-tests (Depends-on): Add progname.
43973         * modules/fstrcmp-tests (Depends-on): Likewise.
43975         * tests/test-filenamecat.c: Use progname module, to avoid link
43976         errors on non-glibc systems.
43977         * tests/test-fstrcmp.c: Likewise.
43979 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43981         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43982         * lib/gettimeofday.c: Move extern declaration out of function.
43984 2009-01-18  Bruno Haible  <bruno@clisp.org>
43986         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43987         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43988         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43990 2009-01-18  Bruno Haible  <bruno@clisp.org>
43992         * lib/strftime.c (MEMPCPY): Remove unused macro.
43993         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43995 2009-01-18  Martin Lambers  <marlam@marlam.de>
43997         New module 'link'.
43998         * lib/unistd.in.h (link): New declaration.
43999         * lib/link.c: New file.
44000         * m4/link.m4: New file.
44001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44002         HAVE_LINK.
44003         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44004         * modules/link: New file.
44005         * doc/posix-functions/link.texi: Mention the new module.
44007 2009-01-18  Bruno Haible  <bruno@clisp.org>
44009         * tests/test-avltree_list.c (main): Call set_program_name.
44010         * tests/test-avltree_oset.c (main): Likewise.
44011         * tests/test-obstack-printf.c: Include progname.h.
44012         (main): Call set_program_name.
44013         * tests/test-quotearg.c: Include progname.h.
44014         (main): Call set_program_name.
44015         * tests/test-xmemdup0.c: Include progname.h.
44016         (main): Call set_program_name.
44018 2009-01-18  Bruno Haible  <bruno@clisp.org>
44020         New module 'alphasort'.
44021         * lib/dirent.in.h (alphasort): New declaration.
44022         * lib/alphasort.c: New file, from glibc with modifications.
44023         * m4/alphasort.m4: New file.
44024         * modules/alphasort: New file.
44025         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44026         HAVE_ALPHASORT.
44027         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44028         HAVE_ALPHASORT.
44029         * doc/posix-functions/alphasort.texi: Mention the new module and the
44030         portability problems.
44032 2009-01-18  Bruno Haible  <bruno@clisp.org>
44034         New module 'scandir'.
44035         * lib/dirent.in.h (scandir): New declaration.
44036         * lib/scandir.c: New file, from glibc with modifications.
44037         * m4/scandir.m4: New file.
44038         * modules/scandir: New file.
44039         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44040         HAVE_SCANDIR.
44041         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44042         HAVE_SCANDIR.
44043         * doc/posix-functions/scandir.texi: Mention the new module and the
44044         portability problems.
44046 2009-01-17  Bruno Haible  <bruno@clisp.org>
44048         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44049         Update documentation.
44050         (func_remove_suffix): Escape all dots in the suffix. Update
44051         documentation.
44052         (func_filter_filelist): Update documentation.
44053         Reported by Ralf Wildenhues.
44055 2009-01-17  Bruno Haible  <bruno@clisp.org>
44057         * modules/dprintf-posix-tests: New file.
44058         * tests/test-dprintf-posix.sh: New file.
44059         * tests/test-dprintf-posix.c: New file.
44061         New modules 'dprintf', 'dprintf-posix'.
44062         * lib/stdio.in.h (dprintf): New declaration.
44063         * lib/dprintf.c: New file.
44064         * m4/dprintf.m4: New file.
44065         * m4/dprintf-posix.m4: New file.
44066         * modules/dprintf: New file.
44067         * modules/dprintf-posix: New file.
44068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44069         HAVE_DPRINTF, REPLACE_DPRINTF.
44070         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44071         HAVE_DPRINTF, REPLACE_DPRINTF.
44072         * doc/posix-functions/dprintf.texi: Mention the new modules.
44074 2009-01-17  Bruno Haible  <bruno@clisp.org>
44076         * modules/vdprintf-posix-tests: New file.
44077         * tests/test-vdprintf-posix.sh: New file.
44078         * tests/test-vdprintf-posix.c: New file.
44080         New modules 'vdprintf', 'vdprintf-posix'.
44081         * lib/stdio.in.h (vdprintf): New declaration.
44082         * lib/vdprintf.c: New file.
44083         * m4/vdprintf.m4: New file.
44084         * m4/vdprintf-posix.m4: New file.
44085         * modules/vdprintf: New file.
44086         * modules/vdprintf-posix: New file.
44087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44088         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44089         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44090         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44091         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44093 2009-01-17  Bruno Haible  <bruno@clisp.org>
44095         Fix replacement of fopen on mingw.
44096         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44097         mingw.
44099 2009-01-17  Bruno Haible  <bruno@clisp.org>
44101         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44102         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44104 2009-01-17  Bruno Haible  <bruno@clisp.org>
44106         Avoid test-fflush2.sh failure on mingw.
44107         * tests/test-fflush2.c: Include binary-io.h.
44108         (main): Put standard input into binary mode.
44109         * modules/fflush-tests (Depends-on): Add binary-io.
44111 2009-01-17  Bruno Haible  <bruno@clisp.org>
44113         * lib/wchar.in.h: In another particular situation, include only the
44114         system's <wchar.h> file.
44115         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44116         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44117         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44119 2009-01-17  Bruno Haible  <bruno@clisp.org>
44121         Support for stripping executables in --enable-relocatable.
44122         * build-aux/install-reloc: Expect one more argument, or an environment
44123         variable RELOC_STRIP_PROG. If set, strip the destination program and
44124         its wrapper.
44125         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44126         RELOC_STRIP_PROG.
44127         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44128         to set RELOCATABLE_STRIP.
44129         * NEWS: Mention the new Makefile requirement.
44131 2009-01-17  Bruno Haible  <bruno@clisp.org>
44133         * build-aux/install-reloc: Remove debugging information left over by
44134         C compiler on MacOS X.
44136 2009-01-17  Bruno Haible  <bruno@clisp.org>
44138         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44139         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44140         _NSGetExecutablePath.
44142 2009-01-16  Jim Meyering  <meyering@redhat.com>
44144         strerror: avoid warnings about discarding "const"
44145         * lib/strerror.c (rpl_strerror): Instead of returning a const
44146         string from each and every "case", use a variable, and add a single
44147         cast after the switch.
44149 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44151         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44153 2009-01-16  Bruno Haible  <bruno@clisp.org>
44155         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44156         array initializer syntax that also works in C++ mode.
44157         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44159 2009-01-16  Jim Meyering  <meyering@redhat.com>
44161         poll: suppress a warning
44162         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44163         to ignore "...unsigned expression < 0 is always false" warnings.
44165 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44167         poll: remove declarations of unused variables
44168         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44169         sockbuf and optlen.
44171 2009-01-15  Bruno Haible  <bruno@clisp.org>
44173         Make fflush-after-ungetc POSIX compliant on BSD systems.
44174         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44175         (clear_ungetc_buffer): Implement also for other systems.
44176         (rpl_fflush): On glibc systems, invoke
44177         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44178         clear_ungetc_buffer after fetching the stream's position, not before.
44180 2009-01-15  Bruno Haible  <bruno@clisp.org>
44182         Make fflush-after-ungetc POSIX compliant on glibc systems.
44183         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44184         after ungetc.
44185         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44186         (rpl_fflush): On glibc systems, simply call the system's fflush
44187         function after clearing the ungetc buffer.
44188         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44189         Instead, lseek only to the end of file, then use the system's fseeko
44190         for the rest. On glibc systems, reset the EOF indicator bit.
44192 2009-01-15  Jim Meyering  <meyering@redhat.com>
44194         openmp.m4: revert quote-adding change, for portability to older autoconf
44195         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44196         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44197         Simon Josefsson noticed the problem when using autoconf-2.61.
44199 2009-01-15  Bruno Haible  <bruno@clisp.org>
44201         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44202         * tests/test-fflush2.c (ASSERT): Always fail.
44203         (main): Add two tests for fflush() after ungetc(), taking into account
44204         the Austin Group's clarification.
44205         Suggested by Eric Blake.
44207 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44209         mktime.m4: remove K&R-style function prototypes
44210         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44211         for the Sun C++ compiler.
44213 2009-01-14  Bruno Haible  <bruno@clisp.org>
44215         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44216         while including <wchar.h>.
44217         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44218         the system's <wchar.h> file.
44219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44221 2009-01-14  Bruno Haible  <bruno@clisp.org>
44223         * m4/csharp.m4: Don't mention gettext on the serial number line.
44224         * m4/csharpexec.m4: Likewise.
44225         * m4/eaccess.m4: Likewise.
44226         * m4/javaexec.m4: Likewise.
44227         * m4/sig_atomic_t.m4: Likewise.
44228         * m4/tmpdir.m4: Likewise.
44229         * m4/intldir.m4: Bump gettext version.
44230         * m4/lib-ld.m4: Likewise.
44232 2009-01-14  Bruno Haible  <bruno@clisp.org>
44234         * lib/progname.c (set_program_name): Add more comments.
44235         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44237 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44239         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44240         were sys/stat.h does not define it.
44242 2009-01-14  Jim Meyering  <meyering@redhat.com>
44244         many *.m4 files: improve m4 quoting
44245         99% of this change was performed by running the following commands:
44246         git ls-files | grep '\.m4$' | xargs perl -pi \
44247           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44248           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44249           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44250           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44251         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44252         The remainder were to add Copyright dates, increment serial numbers,
44253         undo some changes in comments, exclude m4/intl.m4, and add quotes
44254         around the "1" in ",1" where the unusual spacing prohibited the
44255         above regexps from doing the job.  For more details, see
44256         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44257         * m4/acl.m4: Modified.
44258         * m4/afs.m4: Likewise.
44259         * m4/alloca.m4: Likewise.
44260         * m4/argp.m4: Likewise.
44261         * m4/argz.m4: Likewise.
44262         * m4/atexit.m4: Likewise.
44263         * m4/bison-i18n.m4: Likewise.
44264         * m4/bison.m4: Likewise.
44265         * m4/byteswap.m4: Likewise.
44266         * m4/c-stack.m4: Likewise.
44267         * m4/c-strtod.m4: Likewise.
44268         * m4/calloc.m4: Likewise.
44269         * m4/canonicalize-lgpl.m4: Likewise.
44270         * m4/chown.m4: Likewise.
44271         * m4/clock_time.m4: Likewise.
44272         * m4/codeset.m4: Likewise.
44273         * m4/copy-file.m4: Likewise.
44274         * m4/csharp.m4: Likewise.
44275         * m4/csharpcomp.m4: Likewise.
44276         * m4/csharpexec.m4: Likewise.
44277         * m4/d-ino.m4: Likewise.
44278         * m4/d-type.m4: Likewise.
44279         * m4/dirfd.m4: Likewise.
44280         * m4/double-slash-root.m4: Likewise.
44281         * m4/eaccess.m4: Likewise.
44282         * m4/eealloc.m4: Likewise.
44283         * m4/environ.m4: Likewise.
44284         * m4/errno_h.m4: Likewise.
44285         * m4/euidaccess.m4: Likewise.
44286         * m4/execute.m4: Likewise.
44287         * m4/fatal-signal.m4: Likewise.
44288         * m4/fchdir.m4: Likewise.
44289         * m4/fcntl_h.m4: Likewise.
44290         * m4/fileblocks.m4: Likewise.
44291         * m4/filenamecat.m4: Likewise.
44292         * m4/findprog.m4: Likewise.
44293         * m4/flexmember.m4: Likewise.
44294         * m4/fnmatch.m4: Likewise.
44295         * m4/fopen.m4: Likewise.
44296         * m4/fpending.m4: Likewise.
44297         * m4/fprintf-posix.m4: Likewise.
44298         * m4/free.m4: Likewise.
44299         * m4/frexp.m4: Likewise.
44300         * m4/frexpl.m4: Likewise.
44301         * m4/fsusage.m4: Likewise.
44302         * m4/ftruncate.m4: Likewise.
44303         * m4/gc-camellia.m4: Likewise.
44304         * m4/gc-random.m4: Likewise.
44305         * m4/gc.m4: Likewise.
44306         * m4/getaddrinfo.m4: Likewise.
44307         * m4/getcwd-abort-bug.m4: Likewise.
44308         * m4/getcwd-path-max.m4: Likewise.
44309         * m4/getdate.m4: Likewise.
44310         * m4/getdomainname.m4: Likewise.
44311         * m4/getgroups.m4: Likewise.
44312         * m4/gethostname.m4: Likewise.
44313         * m4/gethrxtime.m4: Likewise.
44314         * m4/getline.m4: Likewise.
44315         * m4/getloadavg.m4: Likewise.
44316         * m4/getndelim2.m4: Likewise.
44317         * m4/getpass.m4: Likewise.
44318         * m4/gettext.m4: Likewise.
44319         * m4/gettime.m4: Likewise.
44320         * m4/gettimeofday.m4: Likewise.
44321         * m4/gnulib-common.m4: Likewise.
44322         * m4/group-member.m4: Likewise.
44323         * m4/host-os.m4: Likewise.
44324         * m4/iconv.m4: Likewise.
44325         * m4/iconv_open.m4: Likewise.
44326         * m4/inet_ntop.m4: Likewise.
44327         * m4/inet_pton.m4: Likewise.
44328         * m4/inline.m4: Likewise.
44329         * m4/intldir.m4: Likewise.
44330         * m4/intlmacosx.m4: Likewise.
44331         * m4/intmax.m4: Likewise.
44332         * m4/intmax_t.m4: Likewise.
44333         * m4/inttypes.m4: Likewise.
44334         * m4/inttypes_h.m4: Likewise.
44335         * m4/inttypes-pri.m4: Likewise.
44336         * m4/isapipe.m4: Likewise.
44337         * m4/isnand.m4: Likewise.
44338         * m4/isnanf.m4: Likewise.
44339         * m4/isnanl.m4: Likewise.
44340         * m4/javacomp.m4: Likewise.
44341         * m4/javaexec.m4: Likewise.
44342         * m4/jm-winsz1.m4: Likewise.
44343         * m4/jm-winsz2.m4: Likewise.
44344         * m4/lchown.m4: Likewise.
44345         * m4/lcmessage.m4: Likewise.
44346         * m4/ldexpl.m4: Likewise.
44347         * m4/lib-ld.m4: Likewise.
44348         * m4/lib-link.m4: Likewise.
44349         * m4/libsigsegv.m4: Likewise.
44350         * m4/link-follow.m4: Likewise.
44351         * m4/localcharset.m4: Likewise.
44352         * m4/locale-fr.m4: Likewise.
44353         * m4/locale-ja.m4: Likewise.
44354         * m4/locale-tr.m4: Likewise.
44355         * m4/locale-zh.m4: Likewise.
44356         * m4/lock.m4: Likewise.
44357         * m4/longlong.m4: Likewise.
44358         * m4/ls-mntd-fs.m4: Likewise.
44359         * m4/lstat.m4: Likewise.
44360         * m4/malloc.m4: Likewise.
44361         * m4/mathl.m4: Likewise.
44362         * m4/mbrtowc.m4: Likewise.
44363         * m4/mbstate_t.m4: Likewise.
44364         * m4/mbswidth.m4: Likewise.
44365         * m4/memchr.m4: Likewise.
44366         * m4/memcmp.m4: Likewise.
44367         * m4/memcpy.m4: Likewise.
44368         * m4/memmem.m4: Likewise.
44369         * m4/memmove.m4: Likewise.
44370         * m4/mempcpy.m4: Likewise.
44371         * m4/memrchr.m4: Likewise.
44372         * m4/memset.m4: Likewise.
44373         * m4/minmax.m4: Likewise.
44374         * m4/mkdir-slash.m4: Likewise.
44375         * m4/mkdtemp.m4: Likewise.
44376         * m4/mktime.m4: Likewise.
44377         * m4/mmap-anon.m4: Likewise.
44378         * m4/mountlist.m4: Likewise.
44379         * m4/nanosleep.m4: Likewise.
44380         * m4/nls.m4: Likewise.
44381         * m4/nocrash.m4: Likewise.
44382         * m4/open.m4: Likewise.
44383         * m4/openat.m4: Likewise.
44384         * m4/openmp.m4: Likewise.
44385         * m4/pathmax.m4: Likewise.
44386         * m4/perl.m4: Likewise.
44387         * m4/physmem.m4: Likewise.
44388         * m4/pipe.m4: Likewise.
44389         * m4/po.m4: Likewise.
44390         * m4/poll.m4: Likewise.
44391         * m4/posixtm.m4: Likewise.
44392         * m4/posixver.m4: Likewise.
44393         * m4/printf-frexp.m4: Likewise.
44394         * m4/printf-frexpl.m4: Likewise.
44395         * m4/printf-posix.m4: Likewise.
44396         * m4/printf-posix-rpl.m4: Likewise.
44397         * m4/printf.m4: Likewise.
44398         * m4/progtest.m4: Likewise.
44399         * m4/putenv.m4: Likewise.
44400         * m4/readline.m4: Likewise.
44401         * m4/readlink.m4: Likewise.
44402         * m4/readutmp.m4: Likewise.
44403         * m4/realloc.m4: Likewise.
44404         * m4/regex.m4: Likewise.
44405         * m4/relocatable.m4: Likewise.
44406         * m4/relocatable-lib.m4: Likewise.
44407         * m4/rename-dest-slash.m4: Likewise.
44408         * m4/rename.m4: Likewise.
44409         * m4/rmdir-errno.m4: Likewise.
44410         * m4/rmdir.m4: Likewise.
44411         * m4/roundf.m4: Likewise.
44412         * m4/roundl.m4: Likewise.
44413         * m4/rpmatch.m4: Likewise.
44414         * m4/save-cwd.m4: Likewise.
44415         * m4/selinux-selinux-h.m4: Likewise.
44416         * m4/setenv.m4: Likewise.
44417         * m4/settime.m4: Likewise.
44418         * m4/sig2str.m4: Likewise.
44419         * m4/sig_atomic_t.m4: Likewise.
44420         * m4/signalblocking.m4: Likewise.
44421         * m4/signbit.m4: Likewise.
44422         * m4/sigpipe.m4: Likewise.
44423         * m4/sockets.m4: Likewise.
44424         * m4/sockpfaf.m4: Likewise.
44425         * m4/st_dm_mode.m4: Likewise.
44426         * m4/stat-time.m4: Likewise.
44427         * m4/stdbool.m4: Likewise.
44428         * m4/stdint.m4: Likewise.
44429         * m4/stdint_h.m4: Likewise.
44430         * m4/stpcpy.m4: Likewise.
44431         * m4/stpncpy.m4: Likewise.
44432         * m4/strcase.m4: Likewise.
44433         * m4/strchrnul.m4: Likewise.
44434         * m4/strcspn.m4: Likewise.
44435         * m4/strdup.m4: Likewise.
44436         * m4/strftime.m4: Likewise.
44437         * m4/strndup.m4: Likewise.
44438         * m4/strnlen.m4: Likewise.
44439         * m4/strpbrk.m4: Likewise.
44440         * m4/strptime.m4: Likewise.
44441         * m4/strsep.m4: Likewise.
44442         * m4/strtod.m4: Likewise.
44443         * m4/strtoimax.m4: Likewise.
44444         * m4/strtok_r.m4: Likewise.
44445         * m4/strtol.m4: Likewise.
44446         * m4/strtoll.m4: Likewise.
44447         * m4/strtoul.m4: Likewise.
44448         * m4/strtoull.m4: Likewise.
44449         * m4/strtoumax.m4: Likewise.
44450         * m4/strverscmp.m4: Likewise.
44451         * m4/threadlib.m4: Likewise.
44452         * m4/timegm.m4: Likewise.
44453         * m4/tm_gmtoff.m4: Likewise.
44454         * m4/tmpdir.m4: Likewise.
44455         * m4/tmpfile.m4: Likewise.
44456         * m4/tzset.m4: Likewise.
44457         * m4/uintmax_t.m4: Likewise.
44458         * m4/unlinkdir.m4: Likewise.
44459         * m4/unlocked-io.m4: Likewise.
44460         * m4/uptime.m4: Likewise.
44461         * m4/userspec.m4: Likewise.
44462         * m4/utimbuf.m4: Likewise.
44463         * m4/utime.m4: Likewise.
44464         * m4/utimes-null.m4: Likewise.
44465         * m4/utimes.m4: Likewise.
44466         * m4/vararrays.m4: Likewise.
44467         * m4/vasnprintf.m4: Likewise.
44468         * m4/vfprintf-posix.m4: Likewise.
44469         * m4/vprintf-posix.m4: Likewise.
44470         * m4/wait-process.m4: Likewise.
44471         * m4/wchar_t.m4: Likewise.
44472         * m4/wint_t.m4: Likewise.
44473         * m4/write-any-file.m4: Likewise.
44474         * m4/yield.m4: Likewise.
44476 2009-01-13  Bruno Haible  <bruno@clisp.org>
44478         Avoid test-copy-file.sh failures when ACL support insufficient.
44479         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44480         TESTS_ENVIRONMENT.
44481         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44482         Reported by Jim Meyering.
44484 2009-01-13  Bruno Haible  <bruno@clisp.org>
44486         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44487         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44488         * modules/unistdio/u8-printf-parse (Files): Likewise.
44489         * modules/unistdio/u32-printf-parse (Files): Likewise.
44490         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44492 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44494         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44495         and m4/inttypes_h.m4 too.
44497 2009-01-12  Eric Blake  <ebb9@byu.net>
44499         tests: IRIX 6.2 cc can't compile -0.0 into .data
44500         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44501         rather than at compile-time.
44502         * tests/test-floorl.c (minus_zero): Likewise.
44503         * tests/test-frexpl.c (minus_zero): Likewise.
44504         * tests/test-isnan.c (minus_zerol): Likewise.
44505         * tests/test-isnanl.h (minus_zero): Likewise.
44506         * tests/test-ldexpl.c (minus_zero): Likewise.
44507         * tests/test-roundl.c (minus_zero): Likewise.
44508         * tests/test-signbit.c (minus_zerol): Likewise.
44509         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44510         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44511         * tests/test-truncl.c (minus_zero): Likewise.
44512         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44513         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44514         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44516 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44518         regex: fix glibc bug 9697
44519         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44520         handling.
44522 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44524         regex: fix glibc bug 697
44525         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44526         being NULL also if there are no backreferences.
44528 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44530         regex: merge glibc changes
44531         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44532         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44533         re_string_skip_chars, re_string_reconstruct): Likewise.
44534         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44536 2009-01-07  Jim Meyering  <meyering@redhat.com>
44538         poll: filter through cppi
44539         * lib/poll.c: Indent cpp directives to reflect nesting.
44541 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44543         poll: don't return uninitialized
44544         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44546 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44548         avoid compile failure on AIX 6.1
44549         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44550         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44552 2009-01-04  Jim Meyering  <meyering@redhat.com>
44554         remove duplicate inclusion of <stdio.h>
44555         * tests/test-fprintf-posix.c: Likewise.
44556         * tests/test-printf-posix.c: Likewise.
44557         * tests/test-snprintf-posix.c: Likewise.
44558         * tests/test-sprintf-posix.c: Likewise.
44559         * tests/test-vasprintf-posix.c: Likewise.
44560         * tests/test-vfprintf-posix.c: Likewise.
44561         * tests/test-vprintf-posix.c: Likewise.
44562         * tests/test-vsnprintf-posix.c: Likewise.
44563         * tests/test-vsprintf-posix.c: Likewise.
44565 2009-01-03  Jim Meyering  <meyering@redhat.com>
44567         gnulib-tool: fix sed-based filtering
44568         * gnulib-tool (func_filter_filelist): Remove extra backslash
44569         in sed_fff_filter definition.
44571 2009-01-02  Jim Meyering  <meyering@redhat.com>
44573         strftime: avoid compilation failure on Solaris 2.6
44574         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44575         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44576         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44577         be available.  Reported by Tom G. Christensen.  Details in
44578         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44580 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44581             Bruno Haible  <bruno@clisp.org>
44583         Speed up gnulib-tool by doing more string processing through shell
44584         built-ins.
44585         * gnulib-tool (fast_func_append): New variable.
44586         (func_remove_prefix, func_remove_suffix): New functions.
44587         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44588         (func_filter_filelist): New function.
44589         (func_get_dependencies): Use func_remove_suffix instead of sed.
44590         (func_get_automake_snippet): Use func_filter_filelist instead of a
44591         subshell and sed invocation.
44593 2009-01-01  Bruno Haible  <bruno@clisp.org>
44595         Fix a security bug.
44596         * gnulib-tool (func_import, import, update): Don't allow the characters
44597         '"', '$', '`', '\' in macro arguments that become part of commands that
44598         are evaluated.
44600 2009-01-01  Bruno Haible  <bruno@clisp.org>
44602         * gnulib-tool (func_reset_sigpipe): Add more comments.
44604 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44606         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44607         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44608         already know the answer.
44610 2009-01-01  Jim Meyering  <meyering@redhat.com>
44612         * lib/version-etc.c (version_etc_va): Update copyright year.
44614 2008-12-30  Bruno Haible  <bruno@clisp.org>
44616         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44617         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44618         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44620 2008-12-29  Eric Blake  <ebb9@byu.net>
44622         multiarch: avoid autoconf AC_REQUIRE bug
44623         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44624         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44625         2.63 and older.
44626         Reported by Bruno Haible, and analyzed in
44627         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44629 2008-12-29  Bruno Haible  <bruno@clisp.org>
44631         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44632         files in subdirectories correctly.
44633         Reported by Ralf Wildenhues.
44635 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44637         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44638         rather than 'join FILE -', for Solaris join.
44640 2008-12-29  Bruno Haible  <bruno@clisp.org>
44642         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44643         quoting.
44644         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44645         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44646         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44647         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44648         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44649         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44650         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44651         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44652         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44653         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44654         * m4/nls.m4 (AM_NLS): Likewise.
44655         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44656         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44657         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44658         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44659         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44660         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44661         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44662         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44663         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44664         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44665         * m4/xsize.m4 (gl_XSIZE): Likewise.
44666         Suggested by Jim Meyering.
44668 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44670         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44671         * lib/parse-duration.c: use a switch instead of cascading if's.
44673 2008-12-29  Eric Blake  <ebb9@byu.net>
44675         wchar.h: supply WEOF on Irix 5.3
44676         * lib/wchar.in.h (wint_t): Also supply WEOF.
44677         * lib/wctype.in.h (wint_t): Likewise.
44678         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44679         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44680         Reported by Tom G. Christensen.
44682 2008-12-26  Bruno Haible  <bruno@clisp.org>
44684         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44685         i486, i586, i686.
44687 2008-12-26  Bruno Haible  <bruno@clisp.org>
44689         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44691 2008-12-26  Bruno Haible  <bruno@clisp.org>
44693         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44694         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44695         not __STDC_CONSTANT_MACROS.
44696         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44698 2008-12-25  Bruno Haible  <bruno@clisp.org>
44700         Add support for universal builds to vasnprintf.
44701         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44702         universal builds, guess no.
44703         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44704         * modules/vasprintf-posix (Depends-on): Likewise.
44705         * modules/fprintf-posix (Depends-on): Likewise.
44706         * modules/vfprintf-posix (Depends-on): Likewise.
44707         * modules/snprintf-posix (Depends-on): Likewise.
44708         * modules/vsnprintf-posix (Depends-on): Likewise.
44709         * modules/sprintf-posix (Depends-on): Likewise.
44710         * modules/vsprintf-posix (Depends-on): Likewise.
44711         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44712         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44713         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44714         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44715         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44716         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44717         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44719         Add support for universal builds to <inttypes.h>.
44720         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44721         _SCNu64_PREFIX): In Apple
44722         universal builds, define directly, using _LP64.
44723         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44724         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44725         * modules/inttypes (Depends-on): Add multiarch.
44726         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44728         Add support for universal builds to <stdint.h>.
44729         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44730         universal builds, define directly, using _LP64.
44731         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44732         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44733         and size_t.
44734         * modules/stdint (Depends-on): Add multiarch.
44735         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44737         New module 'multiarch'.
44738         * modules/multiarch: New file.
44739         * m4/multiarch.m4: New file.
44741 2008-12-25  Bruno Haible  <bruno@clisp.org>
44743         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44745 2008-12-25  Bruno Haible  <bruno@clisp.org>
44747         * modules/btowc (License): Relicense under LGPLv2+.
44748         * modules/mbsinit (License): Likewise.
44749         * modules/mbrtowc (License): Likewise.
44750         * modules/wcrtomb (License): Likewise.
44751         * modules/streq (License): Likewise.
44752         Reported by David Lutterkort <lutter@redhat.com>.
44754 2008-12-23  Bruno Haible  <bruno@clisp.org>
44756         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44758 2008-12-23  Bruno Haible  <bruno@clisp.org>
44760         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44762         GETADDRINFO_LIB, not in LIBS.
44763         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44764         * modules/canon-host (Link): Likewise.
44765         * NEWS: Mention the change.
44766         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44767         GETADDRINFO_LIB.
44769 2008-12-22  Bruno Haible  <bruno@clisp.org>
44771         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44772         * doc/posix-functions/iswalpha_l.texi: Likewise.
44773         * doc/posix-functions/iswblank_l.texi: Likewise.
44774         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44775         * doc/posix-functions/iswctype_l.texi: Likewise.
44776         * doc/posix-functions/iswdigit_l.texi: Likewise.
44777         * doc/posix-functions/iswgraph_l.texi: Likewise.
44778         * doc/posix-functions/iswlower_l.texi: Likewise.
44779         * doc/posix-functions/iswprint_l.texi: Likewise.
44780         * doc/posix-functions/iswpunct_l.texi: Likewise.
44781         * doc/posix-functions/iswspace_l.texi: Likewise.
44782         * doc/posix-functions/iswupper_l.texi: Likewise.
44783         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44784         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44785         * doc/posix-functions/open_wmemstream.texi: Likewise.
44786         * doc/posix-functions/swscanf.texi: Likewise.
44787         * doc/posix-functions/towctrans_l.texi: Likewise.
44788         * doc/posix-functions/towlower.texi: Likewise.
44789         * doc/posix-functions/towlower_l.texi: Likewise.
44790         * doc/posix-functions/towupper.texi: Likewise.
44791         * doc/posix-functions/towupper_l.texi: Likewise.
44792         * doc/posix-functions/vfwprintf.texi: Likewise.
44793         * doc/posix-functions/vfwscanf.texi: Likewise.
44794         * doc/posix-functions/vswscanf.texi: Likewise.
44795         * doc/posix-functions/vwprintf.texi: Likewise.
44796         * doc/posix-functions/vwscanf.texi: Likewise.
44797         * doc/posix-functions/wcpcpy.texi: Likewise.
44798         * doc/posix-functions/wcpncpy.texi: Likewise.
44799         * doc/posix-functions/wcscasecmp.texi: Likewise.
44800         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44801         * doc/posix-functions/wcscoll_l.texi: Likewise.
44802         * doc/posix-functions/wcsdup.texi: Likewise.
44803         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44804         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44805         * doc/posix-functions/wcsnlen.texi: Likewise.
44806         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44807         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44808         * doc/posix-functions/wctrans_l.texi: Likewise.
44809         * doc/posix-functions/wctype_l.texi: Likewise.
44810         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44811         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44812         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44813         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44814         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44815         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44816         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44817         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44818         * doc/glibc-functions/wcschrnul.texi: Likewise.
44819         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44820         * doc/glibc-functions/wcstod_l.texi: Likewise.
44821         * doc/glibc-functions/wcstof_l.texi: Likewise.
44822         * doc/glibc-functions/wcstol_l.texi: Likewise.
44823         * doc/glibc-functions/wcstold_l.texi: Likewise.
44824         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44825         * doc/glibc-functions/wcstoq.texi: Likewise.
44826         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44827         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44828         * doc/glibc-functions/wcstouq.texi: Likewise.
44829         * doc/glibc-functions/wmempcpy.texi: Likewise.
44831 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44832             Eric Blake  <ebb9@byu.net>
44833             Paolo Bonzini  <bonzini@gnu.org>
44834             Bruno Haible  <bruno@clisp.org>
44836         Make c-stack work on Haiku.
44837         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44838         (c_stack_action): Use SA_ONSTACK flag.
44840 2008-12-22  Bruno Haible  <bruno@clisp.org>
44842         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44844 2008-12-22  Bruno Haible  <bruno@clisp.org>
44846         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44847         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44848         being overridden.
44849         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44850         New macros.
44851         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44853         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44854         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44856 2008-12-22  Bruno Haible  <bruno@clisp.org>
44858         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44859         from test code.
44861 2008-12-22  Eric Blake  <ebb9@byu.net>
44863         Avoid gcc warnings on cygwin.
44864         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44865         Avoid unused variable.
44866         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44867         Likewise.
44869 2008-12-22  Bruno Haible  <bruno@clisp.org>
44871         Remove HAVE_MBRTOWC conditionals.
44872         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44873         (mbscasecmp): Assume mbrtowc function.
44874         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44875         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44876         * lib/mbschr.c: Include mbuiter.h unconditionally.
44877         (mbschr): Assume mbrtowc function.
44878         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44879         (mbscspn): Assume mbrtowc function.
44880         * lib/mbslen.c: Include mbuiter.h unconditionally.
44881         (mbslen): Assume mbrtowc function.
44882         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44883         (mbsncasecmp): Assume mbrtowc function.
44884         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44885         (mbsnlen): Assume mbrtowc function.
44886         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44887         (mbspbrk): Assume mbrtowc function.
44888         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44889         (mbspcasecmp): Assume mbrtowc function.
44890         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44891         (mbsrchr): Assume mbrtowc function.
44892         * lib/mbssep.c: Include mbuiter.h unconditionally.
44893         (mbssep): Assume mbrtowc function.
44894         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44895         (mbsspn): Assume mbrtowc function.
44896         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44897         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44898         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44899         (mbstok_r): Assume mbrtowc function.
44900         * lib/propername.c: Include mbuiter.h unconditionally.
44901         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44902         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44903         (trim2): Assume mbrtowc function.
44904         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44905         (mbsnwidth): Assume mbrtowc function.
44906         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44907         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44908         fallback definitions.
44909         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44911 2008-12-22  Bruno Haible  <bruno@clisp.org>
44913         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44915 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44917         * modules/regex: Request emulations for the mb*/wc* functions we need.
44918         * m4/regex.m4: Don't look for those functions here.
44919         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44921 2008-12-22  Bruno Haible  <bruno@clisp.org>
44923         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44925 2008-12-21  Bruno Haible  <bruno@clisp.org>
44927         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44928         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44929         (Include): Remove conditionalization.
44930         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44931         (Include): Remove conditionalization.
44932         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44933         (Include): Remove conditionalization.
44934         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44935         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44936         * NEWS: Mention the change.
44937         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44938         via Sergey Poznyakoff <gray@gnu.org.ua>.
44940 2008-12-21  Bruno Haible  <bruno@clisp.org>
44942         * MODULES.html.sh (Extended multibyte and wide character utilities
44943         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44944         wcrtomb, wcsrtombs.
44945         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44946         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44947         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44948         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44950 2008-12-21  Bruno Haible  <bruno@clisp.org>
44952         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44954 2008-12-21  Bruno Haible  <bruno@clisp.org>
44956         * modules/wcsnrtombs-tests: New file.
44957         * tests/test-wcsnrtombs1.sh: New file.
44958         * tests/test-wcsnrtombs2.sh: New file.
44959         * tests/test-wcsnrtombs3.sh: New file.
44960         * tests/test-wcsnrtombs4.sh: New file.
44961         * tests/test-wcsnrtombs.c: New file.
44963         New module 'wcsnrtombs'.
44964         * lib/wchar.in.h (wcsnrtombs): New declaration.
44965         * lib/wcsnrtombs.c: New file.
44966         * lib/wcsrtombs-state.c: New file.
44967         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44968         (internal_state): Remove variable.
44969         * m4/wcsnrtombs.m4: New file.
44970         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44971         compilation units.
44972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44973         HAVE_WCSNRTOMBS.
44974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44975         HAVE_WCSNRTOMBS.
44976         * modules/wcsnrtombs: New file.
44977         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44978         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44980 2008-12-21  Bruno Haible  <bruno@clisp.org>
44982         * modules/wcsrtombs-tests: New file.
44983         * tests/test-wcsrtombs1.sh: New file.
44984         * tests/test-wcsrtombs2.sh: New file.
44985         * tests/test-wcsrtombs3.sh: New file.
44986         * tests/test-wcsrtombs4.sh: New file.
44987         * tests/test-wcsrtombs.c: New file.
44989         New module 'wcsrtombs'.
44990         * lib/wchar.in.h (wcsrtombs): New declaration.
44991         * lib/wcsrtombs.c: New file.
44992         * m4/wcsrtombs.m4: New file.
44993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44994         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44996         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44997         * modules/wcsrtombs: New file.
44998         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44999         bugs.
45001 2008-12-21  Bruno Haible  <bruno@clisp.org>
45003         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45004         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45005         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45006         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45007         if not correct.
45008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45009         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45010         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45011         m4/locale-zh.m4, m4/codeset.m4.
45012         * doc/posix-functions/wcrtomb.texi: Document the bug.
45014 2008-12-21  Bruno Haible  <bruno@clisp.org>
45016         Work around a btowc() bug on IRIX 6.5.
45017         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45018         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45019         REPLACE_WTOBC if not.
45020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45021         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45022         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45024 2008-12-21  Bruno Haible  <bruno@clisp.org>
45026         * modules/wcrtomb-tests: New file.
45027         * tests/test-wcrtomb.sh: New file.
45028         * tests/test-wcrtomb.c: New file.
45030         New module 'wcrtomb'.
45031         * lib/wchar.in.h (wcrtomb): New declaration.
45032         * lib/wcrtomb.c: New file.
45033         * m4/wcrtomb.m4: New file.
45034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45035         HAVE_WCRTOMB.
45036         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45037         HAVE_WCRTOMB.
45038         * modules/wcrtomb: New file.
45039         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45041 2008-12-21  Bruno Haible  <bruno@clisp.org>
45043         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45044         * modules/mbsrtowcs (Files): Likewise.
45045         * modules/wctob (Files): Likewise.
45046         * modules/c-strcase-tests (Files): Likewise.
45047         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45048         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45049         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45050         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45051         * modules/vasnprintf-posix-tests (Files): Likewise.
45053 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45055         gitlog-to-changelog: pass all command-line arguments to git-log
45056         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45057         it is sometimes convenient to filter the commits in various ways.
45058         gitlog-to-changelog only allows --since to specify a start date,
45059         but git-log itself supports many other filtering mechanisms.
45060         At the moment, I want to filter by branch name.  Rather than
45061         adding a --branch option to gitlog-to-changelog, it seems more
45062         flexible to simply pass all options directly to git-log and let
45063         git do the work.  Notice that this effectively makes --since a
45064         redundant option for gitlog-to-changelog, but removing it would
45065         require current usage to change since calls would then require
45066         an additional '--'.
45068 2008-12-21  Bruno Haible  <bruno@clisp.org>
45070         * modules/mbsnrtowcs-tests: New file.
45071         * tests/test-mbsnrtowcs1.sh: New file.
45072         * tests/test-mbsnrtowcs2.sh: New file.
45073         * tests/test-mbsnrtowcs3.sh: New file.
45074         * tests/test-mbsnrtowcs4.sh: New file.
45075         * tests/test-mbsnrtowcs.c: New file.
45077         New module 'mbsnrtowcs'.
45078         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45079         * lib/mbsnrtowcs.c: New file.
45080         * lib/mbsrtowcs-state.c: New file.
45081         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45082         (internal_state): Remove variable.
45083         * m4/mbsnrtowcs.m4: New file.
45084         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45085         compilation units.
45086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45087         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45088         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45089         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45090         * modules/mbsnrtowcs: New file.
45091         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45092         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45093         portability problem.
45095 2008-12-21  Bruno Haible  <bruno@clisp.org>
45097         Work around mbsrtowcs bug.
45098         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45099         (gl_FUNC_MBSRTOWCS): Invoke it.
45100         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45101         m4/locale-zh.m4.
45102         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45104 2008-12-21  Bruno Haible  <bruno@clisp.org>
45106         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45108 2008-12-21  Bruno Haible  <bruno@clisp.org>
45110         Update doc for AIX.
45111         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45112         16-bit wchar_t type.
45113         * doc/posix-functions/btowc.texi: Likewise.
45114         * doc/posix-functions/fgetwc.texi: Likewise.
45115         * doc/posix-functions/fgetws.texi: Likewise.
45116         * doc/posix-functions/fputwc.texi: Likewise.
45117         * doc/posix-functions/fputws.texi: Likewise.
45118         * doc/posix-functions/fwide.texi: Likewise.
45119         * doc/posix-functions/fwprintf.texi: Likewise.
45120         * doc/posix-functions/fwscanf.texi: Likewise.
45121         * doc/posix-functions/getwchar.texi: Likewise.
45122         * doc/posix-functions/getwc.texi: Likewise.
45123         * doc/posix-functions/iswalnum.texi: Likewise.
45124         * doc/posix-functions/iswalpha.texi: Likewise.
45125         * doc/posix-functions/iswblank.texi: Likewise.
45126         * doc/posix-functions/iswcntrl.texi: Likewise.
45127         * doc/posix-functions/iswctype.texi: Likewise.
45128         * doc/posix-functions/iswdigit.texi: Likewise.
45129         * doc/posix-functions/iswgraph.texi: Likewise.
45130         * doc/posix-functions/iswlower.texi: Likewise.
45131         * doc/posix-functions/iswprint.texi: Likewise.
45132         * doc/posix-functions/iswpunct.texi: Likewise.
45133         * doc/posix-functions/iswspace.texi: Likewise.
45134         * doc/posix-functions/iswupper.texi: Likewise.
45135         * doc/posix-functions/iswxdigit.texi: Likewise.
45136         * doc/posix-functions/mbrtowc.texi: Likewise.
45137         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45138         * doc/posix-functions/mbstowcs.texi: Likewise.
45139         * doc/posix-functions/mbtowc.texi: Likewise.
45140         * doc/posix-functions/putwchar.texi: Likewise.
45141         * doc/posix-functions/putwc.texi: Likewise.
45142         * doc/posix-functions/swprintf.texi: Likewise.
45143         * doc/posix-functions/tolower.texi: Likewise.
45144         * doc/posix-functions/toupper.texi: Likewise.
45145         * doc/posix-functions/towctrans.texi: Likewise.
45146         * doc/posix-functions/ungetwc.texi: Likewise.
45147         * doc/posix-functions/vswprintf.texi: Likewise.
45148         * doc/posix-functions/wcrtomb.texi: Likewise.
45149         * doc/posix-functions/wcscat.texi: Likewise.
45150         * doc/posix-functions/wcschr.texi: Likewise.
45151         * doc/posix-functions/wcscmp.texi: Likewise.
45152         * doc/posix-functions/wcscoll.texi: Likewise.
45153         * doc/posix-functions/wcscpy.texi: Likewise.
45154         * doc/posix-functions/wcscspn.texi: Likewise.
45155         * doc/posix-functions/wcsftime.texi: Likewise.
45156         * doc/posix-functions/wcslen.texi: Likewise.
45157         * doc/posix-functions/wcsncat.texi: Likewise.
45158         * doc/posix-functions/wcsncmp.texi: Likewise.
45159         * doc/posix-functions/wcsncpy.texi: Likewise.
45160         * doc/posix-functions/wcspbrk.texi: Likewise.
45161         * doc/posix-functions/wcsrchr.texi: Likewise.
45162         * doc/posix-functions/wcsrtombs.texi: Likewise.
45163         * doc/posix-functions/wcsspn.texi: Likewise.
45164         * doc/posix-functions/wcsstr.texi: Likewise.
45165         * doc/posix-functions/wcstod.texi: Likewise.
45166         * doc/posix-functions/wcstof.texi: Likewise.
45167         * doc/posix-functions/wcstoimax.texi: Likewise.
45168         * doc/posix-functions/wcstok.texi: Likewise.
45169         * doc/posix-functions/wcstold.texi: Likewise.
45170         * doc/posix-functions/wcstoll.texi: Likewise.
45171         * doc/posix-functions/wcstol.texi: Likewise.
45172         * doc/posix-functions/wcstombs.texi: Likewise.
45173         * doc/posix-functions/wcstoull.texi: Likewise.
45174         * doc/posix-functions/wcstoul.texi: Likewise.
45175         * doc/posix-functions/wcstoumax.texi: Likewise.
45176         * doc/posix-functions/wcswidth.texi: Likewise.
45177         * doc/posix-functions/wcsxfrm.texi: Likewise.
45178         * doc/posix-functions/wctob.texi: Likewise.
45179         * doc/posix-functions/wctomb.texi: Likewise.
45180         * doc/posix-functions/wctrans.texi: Likewise.
45181         * doc/posix-functions/wctype.texi: Likewise.
45182         * doc/posix-functions/wcwidth.texi: Likewise.
45183         * doc/posix-functions/wmemchr.texi: Likewise.
45184         * doc/posix-functions/wmemcmp.texi: Likewise.
45185         * doc/posix-functions/wmemcpy.texi: Likewise.
45186         * doc/posix-functions/wmemmove.texi: Likewise.
45187         * doc/posix-functions/wmemset.texi: Likewise.
45188         * doc/posix-functions/wprintf.texi: Likewise.
45189         * doc/posix-functions/wscanf.texi: Likewise.
45191 2008-12-21  Bruno Haible  <bruno@clisp.org>
45193         Update doc for HP-UX 11.11.
45194         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45195         in HP-UX version 11.00, not in all versions of HP-UX 11.
45196         * doc/posix-functions/fwide.texi: Likewise.
45197         * doc/posix-functions/fwprintf.texi: Likewise.
45198         * doc/posix-functions/fwscanf.texi: Likewise.
45199         * doc/posix-functions/inet_ntop.texi: Likewise.
45200         * doc/posix-functions/inet_pton.texi: Likewise.
45201         * doc/posix-functions/mbrlen.texi: Likewise.
45202         * doc/posix-functions/mbrtowc.texi: Likewise.
45203         * doc/posix-functions/mbsinit.texi: Likewise.
45204         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45205         * doc/posix-functions/swprintf.texi: Likewise.
45206         * doc/posix-functions/swscanf.texi: Likewise.
45207         * doc/posix-functions/towctrans.texi: Likewise.
45208         * doc/posix-functions/vfwprintf.texi: Likewise.
45209         * doc/posix-functions/vswprintf.texi: Likewise.
45210         * doc/posix-functions/vwprintf.texi: Likewise.
45211         * doc/posix-functions/wcrtomb.texi: Likewise.
45212         * doc/posix-functions/wcsrtombs.texi: Likewise.
45213         * doc/posix-functions/wcsstr.texi: Likewise.
45214         * doc/posix-functions/wctob.texi: Likewise.
45215         * doc/posix-functions/wctrans.texi: Likewise.
45216         * doc/posix-functions/wmemchr.texi: Likewise.
45217         * doc/posix-functions/wmemcmp.texi: Likewise.
45218         * doc/posix-functions/wmemcpy.texi: Likewise.
45219         * doc/posix-functions/wmemmove.texi: Likewise.
45220         * doc/posix-functions/wmemset.texi: Likewise.
45221         * doc/posix-functions/wprintf.texi: Likewise.
45222         * doc/posix-functions/wscanf.texi: Likewise.
45224 2008-12-21  Bruno Haible  <bruno@clisp.org>
45226         Work around a portability problem.
45227         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45228         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45230 2008-12-20  Bruno Haible  <bruno@clisp.org>
45232         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45233         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45234         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45236         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45238         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45239         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45240         set.
45241         (GNULIB_defined_mbstate_t): New macro.
45242         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45243         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45244         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45245         reuses the system's mbrtowc function but works around the bugs.
45246         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45247         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45248         macros.
45249         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45250         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45251         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45252         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45253         REPLACE_MBSINIT if mbsinit needs to be overridden.
45254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45255         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45256         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45257         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45258         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45259         m4/locale-zh.m4.
45260         (Depends): Add mbsinit.
45261         * modules/mbsinit (Depends): Add mbrtowc.
45262         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45264 2008-12-20  Bruno Haible  <bruno@clisp.org>
45266         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45267         so that there are no conversion errors on AIX.
45268         * tests/test-mbsrtowcs.c (main): LIkewise.
45270 2008-12-20  Bruno Haible  <bruno@clisp.org>
45272         Work around wctob bug on Solaris <= 9.
45273         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45274         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45276         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45277         * modules/wctob (Files): Add m4/locale-fr.m4.
45278         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45280 2008-12-20  Bruno Haible  <bruno@clisp.org>
45282         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45283         /dev/null.
45284         * tests/test-select-in.sh: Likewise.
45285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45287 2008-12-20  Bruno Haible  <bruno@clisp.org>
45289         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45290         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45291         Cygwin 1.5.x.
45293 2008-12-20  Bruno Haible  <bruno@clisp.org>
45295         Ensure mbstate_t is defined on HP-UX 11.11.
45296         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45297         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45298         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45299         AC_USE_SYSTEM_EXTENSIONS.
45300         * modules/fnmatch (Depends-on): Add extensions.
45301         * modules/mbrlen (Depends-on): Likewise.
45302         * modules/mbrtowc (Depends-on): Likewise.
45303         * modules/mbsinit (Depends-on): Likewise.
45304         * modules/mbsrtowcs (Depends-on): Likewise.
45305         * modules/mbswidth (Depends-on): Likewise.
45306         * modules/quotearg (Depends-on): Likewise.
45307         * modules/strftime (Depends-on): Likewise.
45309 2008-12-20  Bruno Haible  <bruno@clisp.org>
45311         Ensure wctob is declared on IRIX 6.5.
45312         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45313         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45314         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45315         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45316         of HAVE_WCTOB.
45317         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45318         HAVE_WCTOB.
45319         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45321 2008-12-19  Bruno Haible  <bruno@clisp.org>
45323         * modules/mbsrtowcs-tests: New file.
45324         * tests/test-mbsrtowcs1.sh: New file.
45325         * tests/test-mbsrtowcs2.sh: New file.
45326         * tests/test-mbsrtowcs3.sh: New file.
45327         * tests/test-mbsrtowcs4.sh: New file.
45328         * tests/test-mbsrtowcs.c: New file.
45330         New module 'mbsrtowcs'.
45331         * lib/wchar.in.h (mbsrtowcs): New declaration.
45332         * lib/mbsrtowcs.c: New file.
45333         * m4/mbsrtowcs.m4: New file.
45334         * modules/mbsrtowcs: New file.
45335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45336         HAVE_MBSRTOWCS.
45337         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45338         HAVE_MBSRTOWCS.
45339         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45341 2008-12-19  Bruno Haible  <bruno@clisp.org>
45343         New module 'mbrlen'.
45344         * lib/wchar.in.h (mbrlen): New declaration.
45345         * lib/mbrlen.c: New file.
45346         * m4/mbrlen.m4: New file.
45347         * modules/mbrlen: New file.
45348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45349         HAVE_MBRLEN.
45350         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45351         HAVE_MBRLEN.
45352         * doc/posix-functions/mbrlen.texi: Document the new module.
45354 2008-12-19  Bruno Haible  <bruno@clisp.org>
45356         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45357         * modules/mbrtowc (Depends-on): Add verify.
45358         Suggested by Paul Eggert.
45360 2008-12-18  Bruno Haible  <bruno@clisp.org>
45362         * modules/mbsinit-tests: New file.
45363         * tests/test-mbsinit.sh: New file.
45364         * tests/test-mbsinit.c: New file.
45366 2008-12-18  Bruno Haible  <bruno@clisp.org>
45368         * modules/mbrtowc-tests: New file.
45369         * tests/test-mbrtowc1.sh: New file.
45370         * tests/test-mbrtowc2.sh: New file.
45371         * tests/test-mbrtowc3.sh: New file.
45372         * tests/test-mbrtowc4.sh: New file.
45373         * tests/test-mbrtowc.c: New file.
45375         New module 'mbrtowc'.
45376         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45377         mbsinit and mbrtowc.
45378         (mbrtowc): New declaration.
45379         * lib/mbrtowc.c: New file.
45380         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45381         * modules/mbrtowc: New file.
45382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45383         HAVE_MBRTOWC.
45384         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45385         HAVE_MBRTOWC.
45386         * doc/posix-functions/mbrtowc.texi: Document the new module.
45388 2008-12-18  Bruno Haible  <bruno@clisp.org>
45390         New module 'wctob'.
45391         * lib/wchar.in.h (wctob): New declaration.
45392         * lib/wctob.c: New file.
45393         * m4/wctob.m4: New file.
45394         * modules/wctob: New file.
45395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45396         HAVE_WCTOB.
45397         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45398         * doc/posix-functions/wctob.texi: Document the new module.
45400 2008-12-18  Bruno Haible  <bruno@clisp.org>
45402         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45403         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45405 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45407         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45408         G. Christensen" <tgc@jupiterrise.com>.
45410         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45411         G. Christensen" <tgc@jupiterrise.com>.
45413         * lib/flock.c: Need to include string.h.  Reported by "Tom
45414         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45415         <ebb9@byu.net>.
45417 2008-12-18  Bruno Haible  <bruno@clisp.org>
45419         * m4/locale-ja.m4: New file, from GNU gettext.
45421 2008-12-17  Bruno Haible  <bruno@clisp.org>
45423         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45424         Suggested by Eric Blake.
45426 2008-12-17  Bruno Haible  <bruno@clisp.org>
45428         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45430 2008-12-17  Bruno Haible  <bruno@clisp.org>
45432         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45433         * modules/mbsinit (Depends-on): Add verify.
45434         Suggested by Paul Eggert.
45436 2008-12-17  Bruno Haible  <bruno@clisp.org>
45438         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45439         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45440         gl_FUNC_MBRTOWC.
45441         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45442         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45443         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45444         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45445         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45446         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45447         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45448         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45449         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45450         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45451         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45452         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45453         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45454         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45455         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45456         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45457         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45458         * modules/trim (configure.ac): Likewise.
45460 2008-12-17  Bruno Haible  <bruno@clisp.org>
45462         * modules/btowc-tests: New file.
45463         * tests/test-btowc1.sh: New file.
45464         * tests/test-btowc2.sh: New file.
45465         * tests/test-btowc.c: New file.
45467         New module 'btowc'.
45468         * lib/wchar.in.h (btowc): New declaration.
45469         * lib/btowc.c: New file.
45470         * m4/btowc.m4: New file.
45471         * modules/btowc: New file.
45472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45473         HAVE_BTOWC.
45474         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45475         * doc/posix-functions/btowc.texi: Document the new module.
45477 2008-12-17  Bruno Haible  <bruno@clisp.org>
45479         New module 'mbsinit'.
45480         * lib/wchar.in.h (mbsinit): New declaration.
45481         * lib/mbsinit.c: New file.
45482         * m4/mbsinit.m4: New file.
45483         * modules/mbsinit: New file.
45484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45485         HAVE_MBSINIT.
45486         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45487         HAVE_MBSINIT.
45488         * doc/posix-functions/mbsinit.texi: Document the new module.
45490 2008-12-16  Bruno Haible  <bruno@clisp.org>
45492         * lib/unistd.in.h: Add comment.
45493         * tests/test-environ.c: Don't include <stdlib.h>.
45495 2008-12-16  Bruno Haible  <bruno@clisp.org>
45497         * lib/parse-duration.h (parse_duration): Document return value
45498         convention.
45499         * lib/parse-duration.c: Include specification header first. Add
45500         comments.
45501         (_): Remove macro.
45502         (parse_year_month_day, parse_hour_minute_second): Move side effects
45503         outside of strchr call.
45504         (parse_non_iso8601): Move side effects outside of isspace call.
45505         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45506         call.
45508 2008-12-16  Bruno Haible  <bruno@clisp.org>
45510         * tests/test-parse-duration.sh: Produce no output when the test
45511         succeeds.
45513 2008-12-16  Bruno Haible  <bruno@clisp.org>
45515         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45516         expressions.
45518 2008-12-15  Bruno Haible  <bruno@clisp.org>
45520         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45521         * doc/glibc-functions/flistxattr.texi: Likewise.
45522         * doc/glibc-functions/fopencookie.texi: Likewise.
45523         * doc/glibc-functions/fremovexattr.texi: Likewise.
45524         * doc/glibc-functions/fsetxattr.texi: Likewise.
45525         * doc/glibc-functions/getxattr.texi: Likewise.
45526         * doc/glibc-functions/lgetxattr.texi: Likewise.
45527         * doc/glibc-functions/listxattr.texi: Likewise.
45528         * doc/glibc-functions/llistxattr.texi: Likewise.
45529         * doc/glibc-functions/lremovexattr.texi: Likewise.
45530         * doc/glibc-functions/lsetxattr.texi: Likewise.
45531         * doc/glibc-functions/removexattr.texi: Likewise.
45532         * doc/glibc-functions/setxattr.texi: Likewise.
45533         * doc/posix-functions/open_memstream.texi: Likewise.
45535 2008-12-15  Eric Blake  <ebb9@byu.net>
45537         Update doc for cygwin 1.7.
45538         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45539         functions.
45540         * doc/posix-functions/fchmodat.texi: Likewise.
45541         * doc/posix-functions/fchownat.texi: Likewise.
45542         * doc/posix-functions/fdopendir.texi: Likewise.
45543         * doc/posix-functions/fmemopen.texi: Likewise.
45544         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45545         * doc/posix-functions/fstatat.texi: Likewise.
45546         * doc/posix-functions/futimens.texi: Likewise.
45547         * doc/posix-functions/gai_strerror.texi: Likewise.
45548         * doc/posix-functions/getaddrinfo.texi: Likewise.
45549         * doc/posix-functions/getnameinfo.texi: Likewise.
45550         * doc/posix-functions/if_freenameindex.texi: Likewise.
45551         * doc/posix-functions/if_indextoname.texi: Likewise.
45552         * doc/posix-functions/if_nameindex.texi: Likewise.
45553         * doc/posix-functions/if_nametoindex.texi: Likewise.
45554         * doc/posix-functions/insque.texi: Likewise.
45555         * doc/posix-functions/linkat.texi: Likewise.
45556         * doc/posix-functions/llrint.texi: Likewise.
45557         * doc/posix-functions/llrintf.texi: Likewise.
45558         * doc/posix-functions/llrintl.texi: Likewise.
45559         * doc/posix-functions/lockf.texi: Likewise.
45560         * doc/posix-functions/lrintl.texi: Likewise.
45561         * doc/posix-functions/mkdirat.texi: Likewise.
45562         * doc/posix-functions/mkfifoat.texi: Likewise.
45563         * doc/posix-functions/mknodat.texi: Likewise.
45564         * doc/posix-functions/mq_close.texi: Likewise.
45565         * doc/posix-functions/mq_getattr.texi: Likewise.
45566         * doc/posix-functions/mq_notify.texi: Likewise.
45567         * doc/posix-functions/mq_open.texi: Likewise.
45568         * doc/posix-functions/mq_receive.texi: Likewise.
45569         * doc/posix-functions/mq_send.texi: Likewise.
45570         * doc/posix-functions/mq_setattr.texi: Likewise.
45571         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45572         * doc/posix-functions/mq_timedsend.texi: Likewise.
45573         * doc/posix-functions/mq_unlink.texi: Likewise.
45574         * doc/posix-functions/open_memstream.texi: Likewise.
45575         * doc/posix-functions/openat.texi: Likewise.
45576         * doc/posix-functions/posix_fadvise.texi: Likewise.
45577         * doc/posix-functions/posix_fallocate.texi: Likewise.
45578         * doc/posix-functions/posix_madvise.texi: Likewise.
45579         * doc/posix-functions/posix_memalign.texi: Likewise.
45580         * doc/posix-functions/posix_openpt.texi: Likewise.
45581         * doc/posix-functions/readlinkat.texi: Likewise.
45582         * doc/posix-functions/remque.texi: Likewise.
45583         * doc/posix-functions/renameat.texi: Likewise.
45584         * doc/posix-functions/rintl.texi: Likewise.
45585         * doc/posix-functions/sem_unlink.texi: Likewise.
45586         * doc/posix-functions/shm_open.texi: Likewise.
45587         * doc/posix-functions/shm_unlink.texi: Likewise.
45588         * doc/posix-functions/signgam.texi: Likewise.
45589         * doc/posix-functions/sigset.texi: Likewise.
45590         * doc/posix-functions/stpcpy.texi: Likewise.
45591         * doc/posix-functions/stpncpy.texi: Likewise.
45592         * doc/posix-functions/strerror.texi: Likewise.
45593         * doc/posix-functions/strtod.texi: Likewise.
45594         * doc/posix-functions/symlinkat.texi: Likewise.
45595         * doc/posix-functions/unlinkat.texi: Likewise.
45596         * doc/posix-functions/utimensat.texi: Likewise.
45597         * doc/glibc-functions/bindresvport.texi: Likewise.
45598         * doc/glibc-functions/dn_expand.texi: Likewise.
45599         * doc/glibc-functions/exp10.texi: Likewise.
45600         * doc/glibc-functions/exp10f.texi: Likewise.
45601         * doc/glibc-functions/fgetxattr.texi: Likewise.
45602         * doc/glibc-functions/flistxattr.texi: Likewise.
45603         * doc/glibc-functions/fopencookie.texi: Likewise.
45604         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45605         * doc/glibc-functions/fremovexattr.texi: Likewise.
45606         * doc/glibc-functions/fsetxattr.texi: Likewise.
45607         * doc/glibc-functions/getifaddrs.texi: Likewise.
45608         * doc/glibc-functions/getxattr.texi: Likewise.
45609         * doc/glibc-functions/lgetxattr.texi: Likewise.
45610         * doc/glibc-functions/listxattr.texi: Likewise.
45611         * doc/glibc-functions/llistxattr.texi: Likewise.
45612         * doc/glibc-functions/lremovexattr.texi: Likewise.
45613         * doc/glibc-functions/lsetxattr.texi: Likewise.
45614         * doc/glibc-functions/pow10.texi: Likewise.
45615         * doc/glibc-functions/pow10f.texi: Likewise.
45616         * doc/glibc-functions/rcmd_af.texi: Likewise.
45617         * doc/glibc-functions/removexattr.texi: Likewise.
45618         * doc/glibc-functions/res_init.texi: Likewise.
45619         * doc/glibc-functions/res_mkquery.texi: Likewise.
45620         * doc/glibc-functions/res_query.texi: Likewise.
45621         * doc/glibc-functions/res_querydomain.texi: Likewise.
45622         * doc/glibc-functions/res_send.texi: Likewise.
45623         * doc/glibc-functions/rresvport_af.texi: Likewise.
45624         * doc/glibc-functions/setxattr.texi: Likewise.
45625         * doc/glibc-functions/strcasestr.texi: Likewise.
45627 2008-12-15  Bruno Haible  <bruno@clisp.org>
45629         Fix compilation error on OSF/1 4.0.
45630         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45631         <sys/time.h>, simply delegate to the system header.
45632         Reported by Daniel Richard G. <oss@teragram.com>.
45634 2008-12-15  Bruno Haible  <bruno@clisp.org>
45636         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45637         * doc/posix-functions/fchmodat.texi: Likewise.
45638         * doc/posix-functions/fchownat.texi: Likewise.
45639         * doc/posix-functions/fdopendir.texi: Likewise.
45640         * doc/posix-functions/fstatat.texi: Likewise.
45641         * doc/posix-functions/mkdirat.texi: Likewise.
45642         * doc/posix-functions/unlinkat.texi: Likewise.
45644 2008-12-14  Bruno Haible  <bruno@clisp.org>
45646         Update doc for POSIX:2008.
45647         * doc/posix-functions/faccessat.texi: New file.
45648         * doc/posix-functions/fchmodat.texi: New file.
45649         * doc/posix-functions/fchownat.texi: New file.
45650         * doc/posix-functions/fdopendir.texi: New file.
45651         * doc/posix-functions/fstatat.texi: New file.
45652         * doc/posix-functions/futimens.texi: New file.
45653         * doc/posix-functions/linkat.texi: New file.
45654         * doc/posix-functions/mkdirat.texi: New file.
45655         * doc/posix-functions/mkfifoat.texi: New file.
45656         * doc/posix-functions/mknodat.texi: New file.
45657         * doc/posix-functions/open_wmemstream.texi: New file.
45658         * doc/posix-functions/openat.texi: New file.
45659         * doc/posix-functions/psiginfo.texi: New file.
45660         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45661         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45662         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45663         * doc/posix-functions/readlinkat.texi: New file.
45664         * doc/posix-functions/renameat.texi: New file.
45665         * doc/posix-functions/strerror_l.texi: New file.
45666         * doc/posix-functions/symlinkat.texi: New file.
45667         * doc/posix-functions/unlinkat.texi: New file.
45668         * doc/posix-functions/utimensat.texi: New file.
45669         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45671 2008-12-14  Bruno Haible  <bruno@clisp.org>
45673         Update doc for POSIX:2008.
45674         * doc/posix-functions/alphasort.texi: Renamed from
45675         doc/glibc-functions/alphasort.texi.
45676         * doc/posix-functions/dirfd.texi: Renamed from
45677         doc/glibc-functions/dirfd.texi.
45678         * doc/posix-functions/dprintf.texi: Renamed from
45679         doc/glibc-functions/dprintf.texi.
45680         * doc/posix-functions/duplocale.texi: Renamed from
45681         doc/glibc-functions/duplocale.texi.
45682         * doc/posix-functions/fexecve.texi: Renamed from
45683         doc/glibc-functions/fexecve.texi.
45684         * doc/posix-functions/fmemopen.texi: Renamed from
45685         doc/glibc-functions/fmemopen.texi.
45686         * doc/posix-functions/freelocale.texi: Renamed from
45687         doc/glibc-functions/freelocale.texi.
45688         * doc/posix-functions/getdate_err.texi: Renamed from
45689         doc/glibc-functions/getdate_err.texi.
45690         * doc/posix-functions/isalnum_l.texi: Renamed from
45691         doc/glibc-functions/isalnum_l.texi.
45692         * doc/posix-functions/isalpha_l.texi: Renamed from
45693         doc/glibc-functions/isalpha_l.texi.
45694         * doc/posix-functions/isblank_l.texi: Renamed from
45695         doc/glibc-functions/isblank_l.texi.
45696         * doc/posix-functions/iscntrl_l.texi: Renamed from
45697         doc/glibc-functions/iscntrl_l.texi.
45698         * doc/posix-functions/isdigit_l.texi: Renamed from
45699         doc/glibc-functions/isdigit_l.texi.
45700         * doc/posix-functions/isgraph_l.texi: Renamed from
45701         doc/glibc-functions/isgraph_l.texi.
45702         * doc/posix-functions/islower_l.texi: Renamed from
45703         doc/glibc-functions/islower_l.texi.
45704         * doc/posix-functions/isprint_l.texi: Renamed from
45705         doc/glibc-functions/isprint_l.texi.
45706         * doc/posix-functions/ispunct_l.texi: Renamed from
45707         doc/glibc-functions/ispunct_l.texi.
45708         * doc/posix-functions/isspace_l.texi: Renamed from
45709         doc/glibc-functions/isspace_l.texi.
45710         * doc/posix-functions/isupper_l.texi: Renamed from
45711         doc/glibc-functions/isupper_l.texi.
45712         * doc/posix-functions/iswalnum_l.texi: Renamed from
45713         doc/glibc-functions/iswalnum_l.texi.
45714         * doc/posix-functions/iswalpha_l.texi: Renamed from
45715         doc/glibc-functions/iswalpha_l.texi.
45716         * doc/posix-functions/iswblank_l.texi: Renamed from
45717         doc/glibc-functions/iswblank_l.texi.
45718         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45719         doc/glibc-functions/iswcntrl_l.texi.
45720         * doc/posix-functions/iswctype_l.texi: Renamed from
45721         doc/glibc-functions/iswctype_l.texi.
45722         * doc/posix-functions/iswdigit_l.texi: Renamed from
45723         doc/glibc-functions/iswdigit_l.texi.
45724         * doc/posix-functions/iswgraph_l.texi: Renamed from
45725         doc/glibc-functions/iswgraph_l.texi.
45726         * doc/posix-functions/iswlower_l.texi: Renamed from
45727         doc/glibc-functions/iswlower_l.texi.
45728         * doc/posix-functions/iswprint_l.texi: Renamed from
45729         doc/glibc-functions/iswprint_l.texi.
45730         * doc/posix-functions/iswpunct_l.texi: Renamed from
45731         doc/glibc-functions/iswpunct_l.texi.
45732         * doc/posix-functions/iswspace_l.texi: Renamed from
45733         doc/glibc-functions/iswspace_l.texi.
45734         * doc/posix-functions/iswupper_l.texi: Renamed from
45735         doc/glibc-functions/iswupper_l.texi.
45736         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45737         doc/glibc-functions/iswxdigit_l.texi.
45738         * doc/posix-functions/isxdigit_l.texi: Renamed from
45739         doc/glibc-functions/isxdigit_l.texi.
45740         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45741         doc/glibc-functions/mbsnrtowcs.texi.
45742         * doc/posix-functions/mkdtemp.texi: Renamed from
45743         doc/glibc-functions/mkdtemp.texi.
45744         * doc/posix-functions/newlocale.texi: Renamed from
45745         doc/glibc-functions/newlocale.texi.
45746         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45747         doc/glibc-functions/nl_langinfo_l.texi.
45748         * doc/posix-functions/open_memstream.texi: Renamed from
45749         doc/glibc-functions/open_memstream.texi.
45750         * doc/posix-functions/opterr.texi: Renamed from
45751         doc/glibc-functions/opterr.texi.
45752         * doc/posix-functions/optind.texi: Renamed from
45753         doc/glibc-functions/optind.texi.
45754         * doc/posix-functions/optopt.texi: Renamed from
45755         doc/glibc-functions/optopt.texi.
45756         * doc/posix-functions/psignal.texi: Renamed from
45757         doc/glibc-functions/psignal.texi.
45758         * doc/posix-functions/scandir.texi: Renamed from
45759         doc/glibc-functions/scandir.texi.
45760         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45761         doc/glibc-functions/sched_get_priority_min.texi.
45762         * doc/posix-functions/signgam.texi: Renamed from
45763         doc/glibc-functions/signgam.texi.
45764         * doc/posix-functions/stpcpy.texi: Renamed from
45765         doc/glibc-functions/stpcpy.texi.
45766         * doc/posix-functions/stpncpy.texi: Renamed from
45767         doc/glibc-functions/stpncpy.texi.
45768         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45769         doc/glibc-functions/strcasecmp_l.texi.
45770         * doc/posix-functions/strcoll_l.texi: Renamed from
45771         doc/glibc-functions/strcoll_l.texi.
45772         * doc/posix-functions/strfmon_l.texi: Renamed from
45773         doc/glibc-functions/strfmon_l.texi.
45774         * doc/posix-functions/strftime_l.texi: Renamed from
45775         doc/glibc-functions/strftime_l.texi.
45776         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45777         doc/glibc-functions/strncasecmp_l.texi.
45778         * doc/posix-functions/strndup.texi: Renamed from
45779         doc/glibc-functions/strndup.texi.
45780         * doc/posix-functions/strnlen.texi: Renamed from
45781         doc/glibc-functions/strnlen.texi.
45782         * doc/posix-functions/strsignal.texi: Renamed from
45783         doc/glibc-functions/strsignal.texi.
45784         * doc/posix-functions/strxfrm_l.texi: Renamed from
45785         doc/glibc-functions/strxfrm_l.texi.
45786         * doc/posix-functions/timer_gettime.texi: Renamed from
45787         doc/glibc-functions/timer_gettime.texi.
45788         * doc/posix-functions/tolower_l.texi: Renamed from
45789         doc/glibc-functions/tolower_l.texi.
45790         * doc/posix-functions/toupper_l.texi: Renamed from
45791         doc/glibc-functions/toupper_l.texi.
45792         * doc/posix-functions/towctrans_l.texi: Renamed from
45793         doc/glibc-functions/towctrans_l.texi.
45794         * doc/posix-functions/towlower_l.texi: Renamed from
45795         doc/glibc-functions/towlower_l.texi.
45796         * doc/posix-functions/towupper_l.texi: Renamed from
45797         doc/glibc-functions/towupper_l.texi.
45798         * doc/posix-functions/uselocale.texi: Renamed from
45799         doc/glibc-functions/uselocale.texi.
45800         * doc/posix-functions/vdprintf.texi: Renamed from
45801         doc/glibc-functions/vdprintf.texi.
45802         * doc/posix-functions/wcpcpy.texi:
45803         Renamed from doc/glibc-functions/wcpcpy.texi.
45804         * doc/posix-functions/wcpncpy.texi: Renamed from
45805         doc/glibc-functions/wcpncpy.texi.
45806         * doc/posix-functions/wcscasecmp.texi: Renamed from
45807         doc/glibc-functions/wcscasecmp.texi.
45808         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45809         doc/glibc-functions/wcscasecmp_l.texi.
45810         * doc/posix-functions/wcscoll_l.texi: Renamed from
45811         doc/glibc-functions/wcscoll_l.texi.
45812         * doc/posix-functions/wcsdup.texi: Renamed from
45813         doc/glibc-functions/wcsdup.texi.
45814         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45815         doc/glibc-functions/wcsncasecmp.texi.
45816         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45817         doc/glibc-functions/wcsncasecmp_l.texi.
45818         * doc/posix-functions/wcsnlen.texi: Renamed from
45819         doc/glibc-functions/wcsnlen.texi.
45820         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45821         doc/glibc-functions/wcsnrtombs.texi.
45822         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45823         doc/glibc-functions/wcsxfrm_l.texi.
45824         * doc/posix-functions/wctrans_l.texi: Renamed from
45825         doc/glibc-functions/wctrans_l.texi.
45826         * doc/posix-functions/wctype_l.texi: Renamed from
45827         doc/glibc-functions/wctype_l.texi.
45828         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45829         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45830         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45831         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45832         these subsections.
45833         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45834         Remove sections.
45836 2008-12-14  Bruno Haible  <bruno@clisp.org>
45838         Update doc for POSIX:2008.
45839         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45841 2008-12-14  Bruno Haible  <bruno@clisp.org>
45843         Update doc for POSIX:2008.
45844         * doc/pastposix-functions/bcmp.texi: Renamed from
45845         doc/posix-functions/bcmp.texi.
45846         * doc/pastposix-functions/bcopy.texi: Renamed from
45847         doc/posix-functions/bcopy.texi.
45848         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45849         doc/posix-functions/bsd_signal.texi.
45850         * doc/pastposix-functions/bzero.texi: Renamed from
45851         doc/posix-functions/bzero.texi.
45852         * doc/pastposix-functions/ecvt.texi: Renamed from
45853         doc/posix-functions/ecvt.texi.
45854         * doc/pastposix-functions/fcvt.texi: Renamed from
45855         doc/posix-functions/fcvt.texi.
45856         * doc/pastposix-functions/ftime.texi: Renamed from
45857         doc/posix-functions/ftime.texi.
45858         * doc/pastposix-functions/gcvt.texi: Renamed from
45859         doc/posix-functions/gcvt.texi.
45860         * doc/pastposix-functions/getcontext.texi: Renamed from
45861         doc/posix-functions/getcontext.texi.
45862         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45863         doc/posix-functions/gethostbyaddr.texi.
45864         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45865         doc/posix-functions/gethostbyname.texi.
45866         * doc/pastposix-functions/getwd.texi: Renamed from
45867         doc/posix-functions/getwd.texi.
45868         * doc/pastposix-functions/h_errno.texi: Renamed from
45869         doc/posix-functions/h_errno.texi.
45870         * doc/pastposix-functions/index.texi: Renamed from
45871         doc/posix-functions/index.texi.
45872         * doc/pastposix-functions/makecontext.texi: Renamed from
45873         doc/posix-functions/makecontext.texi.
45874         * doc/pastposix-functions/mktemp.texi: Renamed from
45875         doc/posix-functions/mktemp.texi.
45876         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45877         doc/posix-functions/pthread_attr_getstackaddr.texi.
45878         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45879         doc/posix-functions/pthread_attr_setstackaddr.texi.
45880         * doc/pastposix-functions/rindex.texi: Renamed from
45881         doc/posix-functions/rindex.texi.
45882         * doc/pastposix-functions/scalb.texi: Renamed from
45883         doc/posix-functions/scalb.texi.
45884         * doc/pastposix-functions/setcontext.texi: Renamed from
45885         doc/posix-functions/setcontext.texi.
45886         * doc/pastposix-functions/swapcontext.texi: Renamed from
45887         doc/posix-functions/swapcontext.texi.
45888         * doc/pastposix-functions/ualarm.texi: Renamed from
45889         doc/posix-functions/ualarm.texi.
45890         * doc/pastposix-functions/usleep.texi: Renamed from
45891         doc/posix-functions/usleep.texi.
45892         * doc/pastposix-functions/vfork.texi: Renamed from
45893         doc/posix-functions/vfork.texi.
45894         * doc/pastposix-functions/wcswcs.texi: Renamed from
45895         doc/posix-functions/wcswcs.texi.
45896         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45897         (Function Substitutes): Update.
45899 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45901         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45902         m4/strerror.m4.
45904 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45905             Bruno Haible  <bruno@clisp.org>
45907         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45909 2008-12-13  Bruno Haible  <bruno@clisp.org>
45911         * modules/strtoull (Depends-on): Remove unistd.
45913 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45915         * modules/strtoull (Depends-on): Add stdlib.
45917 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45919         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45921 2008-12-10  Jim Meyering  <meyering@redhat.com>
45923         gl_ASSERT: don't say assertions are disabled when they're not
45924         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45925         "checking whether to enable assertions... no", when they are in
45926         fact enabled.  This is solely a bug in the output of configure.
45927         In spite of saying "no", NDEBUG was not defined in that case.
45928         Also, as noted by Eric Blake, leave assertions enabled upon
45929         --enable-assert=INVALID.
45931 2008-12-10  Bruno Haible  <bruno@clisp.org>
45933         Change MODULES.html to refer to POSIX:2008 where possible.
45934         * MODULES.html.sh (POSIX2008_URL): New variable.
45935         (posix_headers): Remove sys/timeb, ucontext.
45936         (posix2001_headers): New variable.
45937         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45938         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45939         index, makecontext, mktemp, pthread_attr_getstackaddr,
45940         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45941         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45942         (posix2001_functions): New variable.
45943         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45944         otherwise.
45946 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45948         add missing include to parse-duration.c
45949         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45950         * modules/parse-duration (Depends-on): Add xalloc.
45952         fix sed script reading maint.mk
45953         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45954         (syntax-check-rules): Use it.
45956 2008-12-09  Bruno Haible  <bruno@clisp.org>
45958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45959         MacOS X 10.4/PowerPC.
45960         Reported by Simon Josefsson.
45962 2008-12-08  Jim Meyering  <meyering@redhat.com>
45964         work around mingw's lack of some S_IF definitions
45965         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45966         Reported by Simon Josefsson.
45968 2008-12-08  Bruno Haible  <bruno@clisp.org>
45970         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45971         applied to variables. Needed on MacOS X 10.4/PowerPC.
45972         Reported by Simon Josefsson.
45974 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45975         and Eric Blake  <ebb9@byu.net>
45977         assert: honor --enable-assert
45978         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45979         order to honor --enable-assert, rather than treating it as a
45980         synonym for --disable-assert.
45982 2008-12-08  Jim Meyering  <meyering@redhat.com>
45984         * lib/posixtm.c: Remove now-useless declaration of mktime.
45986         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45988 2008-12-07  Bruno Haible  <bruno@clisp.org>
45990         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45991         test_once): Mark functions as static.
45992         * tests/test-tls.c (test_tls): Likewise.
45994 2008-12-07  Bruno Haible  <bruno@clisp.org>
45996         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45997         iconv_register_autodetect.
45999 2008-12-07  Jim Meyering  <meyering@redhat.com>
46001         posixtm.c: avoid a warning
46002         * lib/posixtm.c (posixtime): Don't initialize tm0.
46003         It's no longer needed to placate gcc4's -Wuninitialized,
46004         and the attempt to placate would elicit a new warning.
46006         unicodeio.c: mark unused parameters
46007         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46008         (fallback_failure_callback): Likewise.
46010 2008-12-07  Bruno Haible  <bruno@clisp.org>
46012         * gnulib-tool (func_create_testdir): When building the tests
46013         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46014         Reported by Simon Josefsson.
46016 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46018         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46020 2008-12-06  Bruno Haible  <bruno@clisp.org>
46022         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46023         Suggested by Eric Blake.
46025 2008-12-06  Bruno Haible  <bruno@clisp.org>
46027         Fix a c-stack test failure on MacOS X.
46028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46029         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46030         handler for SIGBUS as well.
46031         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46032         install a signal handler for SIGBUS as well.
46033         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46035 2008-12-06  Bruno Haible  <bruno@clisp.org>
46037         Advocacy documentation.
46038         * doc/gnulib-intro.texi (Benefits): New section.
46039         * doc/gnulib.texi: Update.
46041 2008-12-06  Bruno Haible  <bruno@clisp.org>
46043         Document the 'manywarnings' module.
46044         * doc/manywarnings.texi: New file.
46045         * doc/gnulib.texi: Include it.
46047 2008-12-05  Eric Blake  <ebb9@byu.net>
46049         tests: silence some gcc warnings
46050         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46051         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46052         type mismatches.
46054 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46055             Bruno Haible  <bruno@clisp.org>
46057         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46059 2008-11-29  Jim Meyering  <meyering@redhat.com>
46061         unicodeio.c: mark unused parameters
46062         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46063         (fallback_failure_callback): Likewise.
46065         fts: fix a thinko
46066         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46067         (set_stat_type): Return S_IF*-valued "type" directly.
46068         Prompted by James Youngman's spotting a related bug.
46069         Confirmed by further testing through find.
46071         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46072         * lib/fts.c (D_TYPE): Define.
46073         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46074         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46075         (s_ifmt_shift_bits): New function.
46076         (set_stat_type): New function.
46077         (fts_build): When not calling fts_stat, call set_stat_type
46078         to propagate dirent.d_type info to fts_read caller.
46079         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46080         fts_statp->st_mode type information may be valid.
46082 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46084         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46085         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46086         <sds@gnu.org>.
46088 2008-11-20  Bruno Haible  <bruno@clisp.org>
46090         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46091         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46092         INCLUDE_NEXT.
46093         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46094         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46095         * modules/math (Makefile.am): Substitute
46096         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46097         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46099 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46100             Bruno Haible  <bruno@clisp.org>
46102         * lib/stdint.in.h: Define all type macros so that their expansion is
46103         a single typedef'ed token. Fixes a compilation failure in Boost which
46104         does "using ::int8_t;".
46106 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46108         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46109         gl_MANYWARN_ALL_GCC.
46110         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46111         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46112         * modules/manywarnings: New file.
46113         * MODULES.html.sh: Mention manywarnings module.
46115 2008-11-18  Bruno Haible  <bruno@clisp.org>
46117         * doc/gnulib-tool.texi (Unit tests): New section.
46119 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46121         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46122         paths like 'lib/po/foo.po'.
46124 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46126         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46127         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46129 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46131         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46132         parameter works.
46134 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46136         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46138 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46140         * modules/parse-duration-tests: New file.
46141         * tests/test-parse-duration.sh: New file.
46142         * tests/test-parse-duration.c: New file.
46144         New module 'parse-duration'.
46145         * lib/parse-duration.h: New file.
46146         * lib/parse-duration.c: New file.
46147         * modules/parse-duration: New file.
46149 2008-11-17  Bruno Haible  <bruno@clisp.org>
46151         * tests/test-select-out.sh: Comment out the first pipe test.
46152         Reported by Simon Josefsson.
46154 2008-11-17  Bruno Haible  <bruno@clisp.org>
46156         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46157         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46158         gl_HOSTENT.
46160 2008-11-17  Bruno Haible  <bruno@clisp.org>
46162         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46163         -lnetwork and -lnet. Needed for Haiku and BeOS.
46165 2008-11-16  Bruno Haible  <bruno@clisp.org>
46167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46169 2008-11-16  Bruno Haible  <bruno@clisp.org>
46171         Avoid test failure on Haiku.
46172         * tests/test-fsync.c: Include <errno.h>.
46173         (main): Don't require that fsync (0) fails.
46175 2008-11-15  Bruno Haible  <bruno@clisp.org>
46177         New module 'hostent'.
46178         * modules/hostent: New file.
46179         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46181 2008-11-15  Bruno Haible  <bruno@clisp.org>
46183         New module 'servent'.
46184         * modules/servent: New file.
46185         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46187 2008-11-15  Bruno Haible  <bruno@clisp.org>
46189         Avoid generating same test program with two different rules.
46190         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46191         test-frexp to test-frexp-nolibm.
46192         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46193         test-frexpl to test-frexpl-nolibm.
46195 2008-11-15  Bruno Haible  <bruno@clisp.org>
46197         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46198         $(FREXPL_LIBM).
46200 2008-11-15  Bruno Haible  <bruno@clisp.org>
46202         * lib/netdb.in.h: Activate the definitions also when the system's
46203         <netdb.h> has 'struct addrinfo'.
46204         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46205         EAI_OVERFLOW or AI_NUMERICSERV.
46206         * doc/posix-headers/netdb.texi: Document the problem.
46208 2008-11-15  Bruno Haible  <bruno@clisp.org>
46210         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46212         Make the 'sched' module work on platforms where <sched.h> exists but
46213         is incomplete (such as Haiku).
46214         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46215         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46216         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46217         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46218         HAVE_STRUCT_SCHED_PARAM.
46219         * modules/sched (Depends-on): Add include_next.
46220         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46221         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46222         * doc/posix-headers/sched.texi: Document the issue.
46224 2008-11-13  Jim Meyering  <meyering@redhat.com>
46226         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46227         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46228         test would fail due to the difference in the Report bugs to ...
46229         line.  The expected address is empty, "<>", while the actual
46230         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46232 2008-11-12  Bruno Haible  <bruno@clisp.org>
46234         lstat: don't compile lstat.c on systems lacking lstat
46235         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46236         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46237         Reported by Daniel P. Berrange via Jim Meyering.
46239 2008-11-12  Jim Meyering  <meyering@redhat.com>
46241         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46243 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46245         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46246         instead.
46248 2008-11-12  Bruno Haible  <bruno@clisp.org>
46250         * lib/unicodeio.c: Include unistr.h.
46251         (utf8_wctomb): Remove function.
46252         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46254 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46256         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46257         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46258         <bruno@clisp.org>.
46259         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46261 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46263         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46264         * doc/gnulib.texi: Add section for warnings.
46266 2008-11-11  Bruno Haible  <bruno@clisp.org>
46268         * lib/sockets.h: Add a comment.
46270 2008-11-11  Karl Berry  <karl@gnu.org>
46272         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46274 2008-11-11  Eric Blake  <ebb9@byu.net>
46276         fdl.texi: avoid git symlinks
46277         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46279 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46281         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46283 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46285         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46286         (gl_WARN_ADD): Substitute $2 if literal.
46288 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46290         * m4/warning.m4: Remove.
46292 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46294         * m4/warnings.m4: Almost complete rewrite. :-)
46296 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46298         * modules/warnings: New module.
46299         * m4/warnings.m4: New file.
46300         * MODULES.html.sh: Mention warnings module.
46301         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46302         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46304 2008-11-10  Eric Blake  <ebb9@byu.net>
46306         fdl.texi: make a symlink to the latest version
46307         * doc/standards.texi: Revert today's earlier change.
46308         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46309         * doc/fdl.texi: ...and replace this with a symlink to the newer
46310         fdl-1.3.texi.
46312 2008-11-10  Bruno Haible  <bruno@clisp.org>
46314         * tests/test-select-fd.c (main): Accept the result file name as fourth
46315         argument.
46316         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46317         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46319 2008-11-10  Bruno Haible  <bruno@clisp.org>
46321         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46322         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46323         as autoconf-substituted macros.
46324         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46326         gl_NETDB_H_DEFAULTS. Set these variables.
46327         * modules/netdb (Makefile.am): Substitute these variables.
46329 2008-11-10  Eric Blake  <ebb9@byu.net>
46331         standards.texi: include correct file for FDL 1.3
46332         * doc/standards.texi (GNU Free Documentation License): Change
46333         include file to pull in FDL 1.3, not 1.2.
46335         fdl.texi: revert accidental change to license
46336         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46338 2008-11-10  Bruno Haible  <bruno@clisp.org>
46340         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46341         cross-compiling guesses also when the native compile gives no result.
46343 2008-11-10  Bruno Haible  <bruno@clisp.org>
46345         * lib/spawni.c (__spawni): Force variable into the stack.
46347 2008-11-10  Bruno Haible  <bruno@clisp.org>
46349         Add support for Haiku.
46350         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46351         glibc and BeOS, but also on Haiku.
46352         * lib/fpurge.c (fpurge): Likewise.
46353         * lib/freadable.c (freadable): Likewise.
46354         * lib/freadahead.c (freadahead): Likewise.
46355         * lib/freading.c (freading): Likewise.
46356         * lib/freadptr.c (freadptr): Likewise.
46357         * lib/freadseek.c (freadptrinc): Likewise.
46358         * lib/fseeko.c (rpl_fseeko): Likewise.
46359         * lib/fseterr.c (fseterr): Likewise.
46360         * lib/fwritable.c (fwritable): Likewise.
46361         * lib/fwriting.c (fwriting): Likewise.
46362         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46364 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46366         * lib/config.charset: Treat Haiku like BeOS.
46368 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46370         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46371         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46373 2008-11-08  Bruno Haible  <bruno@clisp.org>
46375         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46376         AC_CACHE_CHECK.
46378 2008-11-08  Bruno Haible  <bruno@clisp.org>
46380         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46382 2008-11-08  Bruno Haible  <bruno@clisp.org>
46384         * tests/test-select-fd.c: New file.
46385         * tests/test-select-in.sh: New file.
46386         * tests/test-select-out.sh: New file.
46387         * tests/test-select-stdin.c: New file.
46388         * modules/select-tests (Files): Add the new files.
46389         (Depends-on): Add gettimeofday.
46390         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46391         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46392         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46394 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46395             Bruno Haible  <bruno@clisp.org>
46397         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46399 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46401         * build-aux/pmccabe2html: Added support for C++ source files.
46403 2008-11-05  Ben Pfaff  <blp@gnu.org>
46405         Fix lib/close.c build on Windows.
46406         * modules/close (Files): Add lib/w32sock.h.
46408 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46410         Accept Bison's NEWS format.
46411         * build-aux/announce-gen (print_news_deltas): Tweak
46412         $re_prefix.
46414 2008-11-04  Bruno Haible  <bruno@clisp.org>
46416         * modules/random_r (Maintainer): Add glibc.
46418 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46420         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46421         by karl@freefriends.org (Karl Berry).
46422         * doc/alloca.texi: Likewise.
46423         * doc/c-ctype.texi: Likewise.
46424         * doc/c-strcase.texi: Likewise.
46425         * doc/c-strcaseeq.texi: Likewise.
46426         * doc/c-strcasestr.texi: Likewise.
46427         * doc/c-strstr.texi: Likewise.
46428         * doc/c-strtod.texi: Likewise.
46429         * doc/c-strtold.texi: Likewise.
46430         * doc/ctime.texi: Likewise.
46431         * doc/error.texi: Likewise.
46432         * doc/fdl.texi: Likewise.
46433         * doc/gcd.texi: Likewise.
46434         * doc/getdate.texi: Likewise.
46435         * doc/gnulib-intro.texi: Likewise.
46436         * doc/gnulib-tool.texi: Likewise.
46437         * doc/gnulib.texi: Likewise.
46438         * doc/inet_ntoa.texi: Likewise.
46439         * doc/maintain.texi: Likewise.
46440         * doc/make-stds.texi: Likewise.
46441         * doc/quote.texi: Likewise.
46442         * doc/regexprops-generic.texi: Likewise.
46443         * doc/standards.texi: Likewise.
46444         * doc/verify.texi: Likewise.
46445         * doc/visibility.texi: Likewise.
46446         * doc/gnulib.texi (GNU Free Documentation License): Include
46447         fdl-1.3.texi instead of fdl.texi.
46449 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46451         * doc/fdl-1.3.texi: New file, from
46452         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46453         * modules/fdl-1.3: Add.
46454         * MODULES.html.sh: Add fdl-1.3.
46456 2008-11-03  Bruno Haible  <bruno@clisp.org>
46458         Make determination of absolute name of header file work with AIX xlc.
46459         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46460         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46461         preprocessing.
46462         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46463         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46465 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46467         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46468         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46469         <ludo@gnu.org>.
46471 2008-11-02  Bruno Haible  <bruno@clisp.org>
46473         Mark 'strpbrk' obsolete.
46474         * modules/strpbrk (Status, Notice): New sections.
46475         * modules/strtok_r (Depends-on): Add strpbrk.
46477 2008-11-02  Bruno Haible  <bruno@clisp.org>
46479         Mark 'strdup' obsolete.
46480         * modules/strdup (Status, Notice): New sections.
46481         * modules/findprog (Depends-on): Add strdup.
46482         * modules/getaddrinfo (Depends-on): Likewise.
46483         * modules/localename (Depends-on): Likewise.
46484         * modules/relocatable-lib (Depends-on): Likewise.
46485         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46486         * modules/relocatable-prog (Depends-on): Likewise.
46487         * modules/trim (Depends-on): Likewise.
46488         * modules/unictype/gen-ctype (Depends-on): Likewise.
46489         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46491 2008-11-02  Bruno Haible  <bruno@clisp.org>
46493         Mark 'strcspn' obsolete.
46494         * modules/strcspn (Status, Notice): New sections.
46496 2008-11-02  Bruno Haible  <bruno@clisp.org>
46498         Mark 'rmdir' obsolete.
46499         * modules/rmdir (Status, Notice): New sections.
46500         * modules/clean-temp (Depends-on): Add rmdir.
46501         * modules/openat (Depends-on): Likewise.
46503 2008-11-02  Bruno Haible  <bruno@clisp.org>
46505         Mark 'raise' obsolete.
46506         * modules/raise (Status, Notice): New sections.
46507         (Include): Specify <signal.h>.
46508         * modules/stdio (Depends-on): Add raise.
46509         * modules/write (Depends-on): Likewise.
46511 2008-11-02  Bruno Haible  <bruno@clisp.org>
46513         Mark 'memset' obsolete.
46514         * modules/memset (Status, Notice): New sections.
46516 2008-11-02  Bruno Haible  <bruno@clisp.org>
46518         Mark 'memmove' obsolete.
46519         * modules/memmove (Status, Notice): New sections.
46520         * modules/argp (Depends-on): Add memmove.
46521         * modules/argz (Depends-on): Likewise.
46522         * modules/canonicalize (Depends-on): Likewise.
46523         * modules/canonicalize-lgpl (Depends-on): Likewise.
46524         * modules/fts (Depends-on): Likewise.
46525         * modules/getcwd (Depends-on): Likewise.
46526         * modules/human (Depends-on): Likewise.
46527         * modules/regex (Depends-on): Likewise.
46528         * modules/striconveh (Depends-on): Likewise.
46529         * modules/trim (Depends-on): Likewise.
46530         * modules/unistr/u8-move (Depends-on): Likewise.
46531         * modules/unistr/u16-move (Depends-on): Likewise.
46532         * modules/unistr/u32-move (Depends-on): Likewise.
46534 2008-11-02  Bruno Haible  <bruno@clisp.org>
46536         Mark 'memcpy' obsolete.
46537         * modules/memcpy (Status, Notice): New sections.
46539 2008-11-02  Bruno Haible  <bruno@clisp.org>
46541         Mark 'memcmp' obsolete.
46542         * modules/memcmp (Status, Notice): New sections.
46543         * modules/argmatch (Depends-on): Add memchr.
46544         * modules/backupfile (Depends-on): Likewise.
46545         * modules/c-strcasestr (Depends-on): Likewise.
46546         * modules/crypto/des (Depends-on): Likewise.
46547         * modules/csharpcomp (Depends-on): Likewise.
46548         * modules/fnmatch (Depends-on): Likewise.
46549         * modules/git-merge-changelog (Depends-on): Likewise.
46550         * modules/isnand (Depends-on): Likewise.
46551         * modules/isnand-nolibm (Depends-on): Likewise.
46552         * modules/isnanf (Depends-on): Likewise.
46553         * modules/isnanf-nolibm (Depends-on): Likewise.
46554         * modules/isnanl (Depends-on): Likewise.
46555         * modules/isnanl-nolibm (Depends-on): Likewise.
46556         * modules/mbchar (Depends-on): Likewise.
46557         * modules/memcoll (Depends-on): Likewise.
46558         * modules/quotearg (Depends-on): Likewise.
46559         * modules/regex (Depends-on): Likewise.
46560         * modules/relocatable-prog (Depends-on): Likewise.
46561         * modules/same (Depends-on): Likewise.
46562         * modules/signbit (Depends-on): Likewise.
46563         * modules/strcasestr-simple (Depends-on): Likewise.
46564         * modules/unictype/gen-ctype (Depends-on): Likewise.
46565         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46566         * modules/uniname/uniname (Depends-on): Likewise.
46567         * modules/unistr/u8-cmp (Depends-on): Likewise.
46569 2008-11-02  Bruno Haible  <bruno@clisp.org>
46571         Mark 'memchr' obsolete.
46572         * modules/memchr (Status, Notice): New sections.
46573         * modules/argp (Depends-on): Add memchr.
46574         * modules/base64 (Depends-on): Likewise.
46575         * modules/c-strcasestr (Depends-on): Likewise.
46576         * modules/chdir-long (Depends-on): Likewise.
46577         * modules/fnmatch (Depends-on): Likewise.
46578         * modules/getsubopt (Depends-on): Likewise.
46579         * modules/git-merge-changelog (Depends-on): Likewise.
46580         * modules/glob (Depends-on): Likewise.
46581         * modules/strcasestr-simple (Depends-on): Likewise.
46582         * modules/strnlen (Depends-on): Likewise.
46584 2008-11-02  Bruno Haible  <bruno@clisp.org>
46586         Mark 'atexit' obsolete.
46587         * modules/atexit (Status, Notice): New sections.
46588         * modules/chdir-long (Depends-on): Add atexit.
46589         * modules/wait-process (Depends-on): Likewise.
46591 2008-11-02  Bruno Haible  <bruno@clisp.org>
46593         * gnulib-tool: New option --with-obsolete.
46594         (func_usage): Document it.
46595         (func_modules_transitive_closure): Drop obsolete dependencies if
46596         incobsolete is not true.
46597         (func_import): Read and save the incobsolete variable to the cache.
46599 2008-11-02  Bruno Haible  <bruno@clisp.org>
46601         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46602         * gnulib-tool: New option --extract-status.
46603         (func_usage): Document it.
46604         (sed_extract_prog): Recognize it.
46605         (func_get_status): New function.
46607 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46609         * modules/sockets (License): Change from LGPL to LGPLv2+.
46611 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46613         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46615 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46617         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46618         Mention times and sys_times.
46619         * modules/sys_times, modules/sys_times-tests: New modules.
46620         * modules/times, modules/times-tests: Likewise
46621         * m4/sys_times_h.m4: New file.
46622         * lib/sys_times.in.h: Likewise
46623         * lib/times.c: Likewise.
46624         * tests/test-sys_times.c: Likewise.
46625         * tests/test-times.c: Likewise.
46626         * doc/posix-headers/sys_times.texi: Update.
46627         * doc/posix-functions/times.texi: Update.
46629 2008-10-28  Jim Meyering  <meyering@redhat.com>
46631         * modules/tempname (Depends-on): Add lstat.
46633         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46635 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46637         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46638         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46639         using idiom used elsewhere in gnulib.
46641 2008-10-27  Jim Meyering  <meyering@redhat.com>
46643         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46645 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46647         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46648         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46649         programs.
46650         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46652 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46654         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46656 2008-10-27  Bruno Haible  <bruno@clisp.org>
46658         * tests/test-lstat.c: Include <stdio.h>.
46660 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46662         * modules/lstat-tests: New module.
46663         * tests/test-lstat.c: New file.
46665 2008-10-26  Jim Meyering  <meyering@redhat.com>
46667         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46669 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46670             Bruno Haible  <bruno@clisp.org>
46672         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46673         * modules/configmake (Include): Add a note that the include must come
46674         after all system headers.
46675         * lib/javaversion.c: Include configmake.h after all other includes.
46677 2008-10-26  Bruno Haible  <bruno@clisp.org>
46679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46680         HAVE_STRUCT_RANDOM_DATA to 1.
46681         (gl_STDLIB_H): Simplify.
46683 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46685         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46686         substitute HAVE_STRUCT_RANDOM_DATA.
46687         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46688         random_data.
46689         * modules/stdlib (Makefile.am): Substitute
46690         HAVE_STRUCT_RANDOM_DATA.
46692 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46694         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46695         * doc/gnulib-intro.texi (Copyright): Likewise.
46697 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46699         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46700         findings.
46702 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46703             Bruno Haible  <bruno@clisp.org>
46705         * lib/unistd.in.h: Include <winsock2.h>.
46706         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46707         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46708         Provide dummy declarations.
46709         (gethostname): Override.
46710         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46711         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46712         gl_PREREQ_SYS_H_WINSOCK2.
46713         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46714         * doc/posix-functions/gethostname.texi: More details.
46716 2008-10-25  Bruno Haible  <bruno@clisp.org>
46718         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46719         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46720         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46722         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46723         here ...
46724         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46725         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46726         gl_UNISTD_H_DEFAULTS.
46728 2008-10-25  Eric Blake  <ebb9@byu.net>
46730         signbit: avoid spurious compiler failure
46731         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46732         declarations inside function.
46734 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46735             Bruno Haible  <bruno@clisp.org>
46737         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46738         * modules/random_r (Depends-on): Add stdint.
46740 2008-10-24  Bruno Haible  <bruno@clisp.org>
46742         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46743         Eggert.
46744         * modules/strerror (License): Likewise.
46746 2008-10-24  Jim Meyering  <meyering@redhat.com>
46748         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46749         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46751 2008-10-24  Eric Blake  <ebb9@byu.net>
46753         getgroups: fix compilation when getgroups is available
46754         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46755         but with <config.h> override of getgroups disabled.
46757 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46759         * doc/gnulib.texi (Header files): Add note about C++ problems.
46760         Explained by Bruno Haible <bruno@clisp.org>.
46762 2008-10-23  Bruno Haible  <bruno@clisp.org>
46764         Define a dummy SA_NODEFER macro on Interix.
46765         * lib/signal.in.h (SA_NODEFER): Define fallback.
46766         Reported by Aleksey Cheusov <cheusov@tut.by> via
46767         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46769 2008-10-23  Bruno Haible  <bruno@clisp.org>
46771         * modules/freadahead (License): Change to LGPLv2+.
46772         Suggested by Simon Josefsson.
46774 2008-10-23  Jim Meyering  <meyering@redhat.com>
46776         random_r: new module
46777         * modules/random_r: New file.
46778         * m4/random_r.m4: New file.
46779         * lib/random_r.c: New file, from glibc.
46780         * modules/random_r-tests: New file.
46781         * tests/test-random_r.c: New file.
46782         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46783          Declare.
46784         (RAND_MAX): Define.
46785         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46786         * modules/stdlib: Substitute them, too.
46787         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46788         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46789         * doc/glibc-functions/random_r.texi: Likewise.
46790         * doc/glibc-functions/setstate_r.texi: Likewise.
46791         * doc/glibc-functions/srandom_r.texi: Likewise.
46792         * config/srclist.txt: Mention it.
46794 2008-10-23  David Lutterkort  <lutter@redhat.com>
46796         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46797         link requirement
46799 2008-10-23  Jim Meyering  <meyering@redhat.com>
46801         selinux-h: mark parameters of stub functions as intentionally unused
46802         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46803         * lib/se-context.in.h: Likewise.
46805 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46807         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46809 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46811         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46813 2008-10-22  Eric Blake  <ebb9@byu.net>
46815         glthread/thread: avoid compiler warning
46816         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46817         Add unreachable abort to silence compiler.
46819 2008-10-22  Eric Blake  <ebb9@byu.net>
46821         netdb: also supply struct addrinfo for cygwin 1.5.x
46822         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46823         older cygwin.
46824         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46825         cygwin.
46826         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46828 2008-10-22  Bruno Haible  <bruno@clisp.org>
46830         * users.txt: Update entry about pspp.
46832 2008-10-21  Bruno Haible  <bruno@clisp.org>
46834         Simplification.
46835         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46836         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46838         Simplification.
46839         * lib/ioctl.c (ioctl): Don't undefine.
46840         * lib/socket.c (socket): Don't undefine.
46842         Remove unused module indicator macros.
46843         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46844         GNULIB_$1 as a C macro.
46846         * doc/posix-functions/close.texi: Undo last change.
46847         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46848         Windows platforms.
46850 2008-10-21  Bruno Haible  <bruno@clisp.org>
46852         Add gethostname() declaration to <unistd.h>.
46853         * lib/unistd.in.h (gethostname): New declaration.
46854         * lib/gethostname.c: Include <unistd.h>.
46855         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46856         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46858         and HAVE_GETHOSTNAME.
46859         * modules/gethostname (Depends-on): Add unistd.
46860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46861         (Include): Specify <unistd.h>.
46862         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46863         HAVE_GETHOSTNAME.
46864         * tests/test-gethostname.c: Include <unistd.h> first.
46866 2008-10-21  Bruno Haible  <bruno@clisp.org>
46868         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46869         * modules/select-tests (Depends-on): Likewise.
46870         Reported by Simon Josefsson.
46872 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46874         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46875         * lib/accept.c: New file, based on winsock.c.
46876         * lib/bind.c: New file, based on winsock.c.
46877         * lib/connect.c: New file, based on winsock.c.
46878         * lib/getpeername.c: New file, based on winsock.c.
46879         * lib/getsockname.c: New file, based on winsock.c.
46880         * lib/getsockopt.c: New file, based on winsock.c.
46881         * lib/ioctl.c: New file, based on winsock.c.
46882         * lib/listen.c: New file, based on winsock.c.
46883         * lib/recv.c: New file, based on winsock.c.
46884         * lib/recvfrom.c: New file, based on winsock.c.
46885         * lib/send.c: New file, based on winsock.c.
46886         * lib/sendto.c: New file, based on winsock.c.
46887         * lib/setsockopt.c: New file, based on winsock.c.
46888         * lib/shutdown.c: New file, based on winsock.c.
46889         * lib/socket.c: New file, based on winsock.c.
46890         * lib/w32sock.h: New file, based on winsock.c.
46891         * lib/winsock.c: Remove file.
46892         * modules/accept: Likewise.
46893         * modules/bind: Likewise.
46894         * modules/connect: Likewise.
46895         * modules/getpeername: Likewise.
46896         * modules/getsockname: Likewise.
46897         * modules/getsockopt: Likewise.
46898         * modules/ioctl: Likewise.
46899         * modules/listen: Likewise.
46900         * modules/recv: Likewise.
46901         * modules/recvfrom: Likewise.
46902         * modules/send: Likewise.
46903         * modules/sendto: Likewise.
46904         * modules/setsockopt: Likewise.
46905         * modules/shutdown: Likewise.
46906         * modules/socket: Use socket.c instead of winsock.c.
46907         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46908         * doc/posix-functions/accept.texi: Doc fix.
46909         * doc/posix-functions/bind.texi: Doc fix.
46910         * doc/posix-functions/close.texi: Doc fix.
46911         * doc/posix-functions/connect.texi: Doc fix.
46912         * doc/posix-functions/getpeername.texi: Doc fix.
46913         * doc/posix-functions/getsockname.texi: Doc fix.
46914         * doc/posix-functions/getsockopt.texi: Doc fix.
46915         * doc/posix-functions/ioctl.texi: Doc fix.
46916         * doc/posix-functions/listen.texi: Doc fix.
46917         * doc/posix-functions/recv.texi: Doc fix.
46918         * doc/posix-functions/recvfrom.texi: Doc fix.
46919         * doc/posix-functions/send.texi: Doc fix.
46920         * doc/posix-functions/sendto.texi: Doc fix.
46921         * doc/posix-functions/setsockopt.texi: Doc fix.
46922         * doc/posix-functions/shutdown.texi: Doc fix.
46923         * doc/posix-functions/socket.texi: Doc fix.
46925 2008-10-20  Bruno Haible  <bruno@clisp.org>
46927         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46928         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46929         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46930         as an alias for SIGABRT.
46931         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46932         (sigaction): Map it to SIGABRT.
46933         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46935 2008-10-20  Bruno Haible  <bruno@clisp.org>
46937         * lib/fts.c: Don't include lstat.h.
46938         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46940         Move the lstat() declaration to <sys/stat.h>.
46941         * lib/lstat.h: Remove file.
46942         * lib/sys_stat.in.h: Add special invocation convention.
46943         (lstat): New declaration.
46944         * lib/lstat.c (orig_lstat): New function.
46945         (rpl_lstat): Use orig_lstat instead of lstat.
46946         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46947         AC_C_INLINE. Set REPLACE_LSTAT.
46948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46949         and REPLACE_LSTAT.
46950         * modules/lstat (Files): Remove lib/lstat.h.
46951         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46952         (Include): Specify <sys/stat.h> instead of lstat.h.
46953         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46954         REPLACE_LSTAT.
46955         * NEWS: Mention the change.
46957 2008-10-20  Bruno Haible  <bruno@clisp.org>
46959         * modules/posix_spawn-tests: New file.
46960         * tests/test-posix_spawn3.c: New file.
46962 2008-10-20  Bruno Haible  <bruno@clisp.org>
46964         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46965         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46966         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46967         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46968         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46970 2008-10-20  Bruno Haible  <bruno@clisp.org>
46972         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46973         of posix_spawn on AIX 5.3.
46975 2008-10-20  Bruno Haible  <bruno@clisp.org>
46977         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46979 2008-10-20  Bruno Haible  <bruno@clisp.org>
46981         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46982         of AC_LANG_PROGRAM.
46984 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46986         * lib/netdb.in.h: Don't define GNU specific constants until they
46987         are supported or needed.  Reported by Bruno Haible
46988         <bruno@clisp.org>.
46990 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46992         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46994 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46996         * lib/getaddrinfo.h: Remove file.
46997         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46998         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46999         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47000         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47001         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47002         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47003         * tests/test-getaddrinfo.c: Likewise.
47004         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47005         * NEWS: Mention change.
47007 2008-10-19  Bruno Haible  <bruno@clisp.org>
47009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47011 2008-10-19  Bruno Haible  <bruno@clisp.org>
47013         * lib/wait-process.c: Include simply <sys/wait.h>.
47014         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47015         WIFSTOPPED): Remove fallback definitions.
47016         * modules/wait-process (Depends-on): Add sys_wait.
47018         New module 'sys_wait'.
47019         * modules/sys_wait: New file.
47020         * lib/sys_wait.in.h: New file, partially copied from
47021         lib/wait-process.c.
47022         * m4/sys_wait_h.m4: New file.
47023         * doc/posix-headers/sys_wait.texi: Mention the new module.
47025 2008-10-19  Bruno Haible  <bruno@clisp.org>
47027         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47029 2008-10-19  Bruno Haible  <bruno@clisp.org>
47031         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47032         * lib/wait-process.c (WAIT_T): Remove type.
47033         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47034         (wait_subprocess): Update.
47036 2008-10-19  Bruno Haible  <bruno@clisp.org>
47038         New module 'atoll'.
47039         * modules/atoll: New file.
47040         * lib/stdlib.in.h (atoll): New declaration.
47041         * lib/atoll.c: New file, from glibc with modifications.
47042         * m4/atoll.m4: New file.
47043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47044         HAVE_ATOLL.
47045         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47046         * doc/posix-functions/atoll.texi: Mention the new module.
47048 2008-10-19  Bruno Haible  <bruno@clisp.org>
47050         Add strtoull() declaration to <stdlib.h>.
47051         * lib/stdlib.in.h (strtoull): New declaration.
47052         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47053         Set HAVE_STRTOULL.
47054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47055         HAVE_STRTOULL.
47056         * modules/strtoull (Depends-on): Add stdlib.
47057         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47058         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47059         HAVE_STRTOULL.
47061 2008-10-19  Bruno Haible  <bruno@clisp.org>
47063         Add strtoll() declaration to <stdlib.h>.
47064         * lib/stdlib.in.h (strtoll): New declaration.
47065         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47066         Set HAVE_STRTOLL.
47067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47068         HAVE_STRTOLL.
47069         * modules/strtoll (Depends-on): Add stdlib.
47070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47071         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47073 2008-10-19  Bruno Haible  <bruno@clisp.org>
47075         * modules/bcopy (Depends-on): Add strings.
47076         (Include): Specify <strings.h>.
47078 2008-10-19  Bruno Haible  <bruno@clisp.org>
47080         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47082 2008-10-19  Bruno Haible  <bruno@clisp.org>
47084         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47085         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47086         mingw.
47088 2008-10-19  Bruno Haible  <bruno@clisp.org>
47090         * lib/atanl.c: Don't include isnanl.h.
47091         * lib/cosl.c: Likewise.
47092         * lib/ldexpl.c: Likewise.
47093         * lib/logl.c: Likewise.
47094         * lib/sinl.c: Likewise.
47095         * lib/sqrtl.c: Likewise.
47096         * lib/tanl.c: Likewise.
47098         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47099         * lib/isnanf.h: Remove file.
47100         * lib/isnand.h: Remove file.
47101         * lib/isnanl.h: Remove file.
47102         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47103         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47104         macros.
47105         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47106         HAVE_ISNANF, don't define it as a C macro.
47107         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47108         HAVE_ISNAND, don't define it as a C macro.
47109         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47110         HAVE_ISNANL, don't define it as a C macro.
47111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47112         HAVE_ISNAN[FDL].
47113         * modules/isnanf (Files): Remove lib/isnanf.h.
47114         (Depends-on): Add math.
47115         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47116         (Include): Specify <math.h> instead of isnanf.h.
47117         * modules/isnand (Files): Remove lib/isnand.h.
47118         (Depends-on): Add math.
47119         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47120         (Include): Specify <math.h> instead of isnand.h.
47121         * modules/isnanl (Files): Remove lib/isnanl.h.
47122         (Depends-on): Add math.
47123         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47124         (Include): Specify <math.h> instead of isnanl.h.
47125         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47126         HAVE_ISNAN[FDL].
47127         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47128         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47129         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47130         * NEWS: Mention the change.
47132 2008-10-18  Bruno Haible  <bruno@clisp.org>
47134         Add getusershell(), setusershell(), endusershell() declarations to
47135         <unistd.h>.
47136         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47137         declarations.
47138         * lib/getusershell.c: Include unistd.h.
47139         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47140         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47141         HAVE_GETUSERSHELL.
47142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47143         and HAVE_GETUSERSHELL.
47144         * modules/getusershell (Depends-on): Add unistd, extensions.
47145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47146         (Include): Specify <unistd.h>.
47147         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47148         HAVE_GETUSERSHELL.
47150 2008-10-18  Bruno Haible  <bruno@clisp.org>
47152         Add a getloadavg() declaration to <stdlib.h>.
47153         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47154         getloadavg declaration.
47155         (getloadavg): New declaration.
47156         * lib/getloadavg.c: Include <stdlib.h> first.
47157         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47158         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47159         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47161         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47162         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47163         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47164         (Include): Specify <stdlib.h>.
47165         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47166         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47168 2008-10-18  Bruno Haible  <bruno@clisp.org>
47170         * lib/dirchownmod.c: Don't include lchmod.h.
47172         Move the lchmod() declaration to <sys/stat.h>.
47173         * lib/lchmod.h: Remove file.
47174         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47175         (lchmod): New declaration, moved here from lib/lchown.h.
47176         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47177         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47179         and HAVE_LCHMOD.
47180         * modules/lchmod (Files): Remove lib/lchmod.h.
47181         (Depends-on): Add sys_stat, extensions.
47182         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47183         (Include): Specify <sys/stat.h> instead of lchmod.h.
47184         * modules/sys_stat (Depends-on): Add link-warning.
47185         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47186         definition of GL_LINK_WARNING.
47187         * NEWS: Mention the change.
47189 2008-10-18  Bruno Haible  <bruno@clisp.org>
47191         * lib/fchdir.c: Don't include dirfd.h.
47192         * lib/fts.c: Likewise.
47193         * lib/getcwd.c: Likewise.
47194         * lib/glob.c: Likewise.
47196         Move the dirfd() declaration to <dirent.h>.
47197         * lib/dirfd.h: Remove file.
47198         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47199         (dirfd): New declaration.
47200         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47201         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47202         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47203         HAVE_DECL_DIRFD.
47204         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47205         HAVE_DECL_DIRFD.
47206         * modules/dirfd (Files): Remove lib/dirfd.h.
47207         (Depends-on): Add dirent, extensions.
47208         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47209         (Include): Specify <dirent.h> instead of dirfd.h.
47210         * modules/dirent (Depends-on): Add link-warning.
47211         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47212         definition of GL_LINK_WARNING.
47213         * NEWS: Mention the change.
47215 2008-10-18  Bruno Haible  <bruno@clisp.org>
47217         Move the euidaccess() declaration to <unistd.h>.
47218         * lib/euidaccess.h: Remove file.
47219         * lib/unistd.in.h (euidaccess): New declaration.
47220         * lib/euidaccess.c: Don't include euidaccess.h.
47221         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47222         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47224         and HAVE_EUIDACCESS.
47225         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47226         (Depends-on): Add unistd.
47227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47228         (Include): Specify <unistd.h> instead of euidaccess.h.
47229         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47230         HAVE_EUIDACCESS.
47231         * NEWS: Mention the change.
47233 2008-10-18  Bruno Haible  <bruno@clisp.org>
47235         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47237         Move the getdomainname() declaration to <unistd.h>.
47238         * lib/getdomainname.h: Remove file.
47239         * lib/unistd.in.h (getdomainname): New declaration.
47240         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47241         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47242         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47243         HAVE_GETDOMAINNAME.
47244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47245         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47246         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47247         (Depends-on): Add unistd, extensions.
47248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47249         (Includes): Specify <unistd.h> instead of getdomainname.h.
47250         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47251         HAVE_GETDOMAINNAME.
47252         * NEWS: Mention the change.
47254 2008-10-18  Bruno Haible  <bruno@clisp.org>
47256         * modules/dirent: New file.
47257         * m4/dirent_h.m4: New file.
47258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47259         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47260         * modules/fchdir (Files): Remove lib/dirent.in.h.
47261         (Depends-on): Add dirent.
47262         (Makefile.am): Move rules to modules/dirent.
47263         * doc/posix-headers/dirent.texi: Mention the new module.
47265 2008-10-18  Bruno Haible  <bruno@clisp.org>
47267         Avoid -Wunused-parameter warnings in public gnulib header files.
47268         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47269         macro.
47270         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47272 2008-10-18  Bruno Haible  <bruno@clisp.org>
47274         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47275         * doc/glibc-functions/error.texi: Mention the module 'error'.
47276         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47277         * doc/glibc-functions/getdomainname.texi: Mention the module
47278         'getdomainname'.
47279         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47280         * doc/glibc-functions/getpagesize.texi: Mention the module
47281         'getpagesize'.
47282         * doc/glibc-functions/getusershell.texi: Mention the module
47283         'getusershell'.
47284         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47285         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47286         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47287         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47288         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47289         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47290         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47291         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47292         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47293         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47294         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47295         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47296         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47297         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47299 2008-10-17  Bruno Haible  <bruno@clisp.org>
47301         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47302         HP-UX and IRIX, use -0.0L.
47303         * tests/test-ceill.c (minus_zero): Likewise.
47304         * tests/test-floorl.c (minus_zero): Likewise.
47305         * tests/test-frexpl.c (minus_zero): Likewise.
47306         * tests/test-isnan.c (minus_zerol): Likewise.
47307         * tests/test-isnanl.h (minus_zero): Likewise.
47308         * tests/test-ldexpl.c (minus_zero): Likewise.
47309         * tests/test-roundl.c (minus_zero): Likewise.
47310         * tests/test-signbit.c (minus_zerol): Likewise.
47311         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47312         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47313         * tests/test-truncl.c (minus_zero): Likewise.
47314         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47315         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47316         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47317         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47319 2008-10-17  Bruno Haible  <bruno@clisp.org>
47321         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47322         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47323         that it gets activated only for gcc >= 3.0.
47324         * lib/dirent.in.h: Likewise.
47325         * lib/errno.in.h: Likewise.
47326         * lib/fcntl.in.h: Likewise.
47327         * lib/float.in.h: Likewise.
47328         * lib/iconv.in.h: Likewise.
47329         * lib/inttypes.in.h: Likewise.
47330         * lib/locale.in.h: Likewise.
47331         * lib/math.in.h: Likewise.
47332         * lib/netdb.in.h: Likewise.
47333         * lib/netinet_in.in.h: Likewise.
47334         * lib/search.in.h: Likewise.
47335         * lib/signal.in.h: Likewise.
47336         * lib/spawn.in.h: Likewise.
47337         * lib/stdarg.in.h: Likewise.
47338         * lib/stdint.in.h: Likewise.
47339         * lib/stdio.in.h: Likewise.
47340         * lib/stdlib.in.h: Likewise.
47341         * lib/string.in.h: Likewise.
47342         * lib/strings.in.h: Likewise.
47343         * lib/sys_file.in.h: Likewise.
47344         * lib/sys_ioctl.in.h: Likewise.
47345         * lib/sys_select.in.h: Likewise.
47346         * lib/sys_socket.in.h: Likewise.
47347         * lib/sys_stat.in.h: Likewise.
47348         * lib/sys_time.in.h: Likewise.
47349         * lib/sysexits.in.h: Likewise.
47350         * lib/time.in.h: Likewise.
47351         * lib/unistd.in.h: Likewise.
47352         * lib/wchar.in.h: Likewise.
47353         * lib/wctype.in.h: Likewise.
47354         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47356 2008-10-17  Jim Meyering  <meyering@redhat.com>
47358         ignore-value: don't depend on inline module
47359         * modules/ignore-value (Depends-on): Remove 'inline'.
47360         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47361         Suggestion from Bruno Haible.
47363 2008-10-17  Bruno Haible  <bruno@clisp.org>
47365         New implementation of condition variables for Win32.
47366         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47367         (gl_linked_waitqueue_t): New type.
47368         (gl_cond_t): Use it.
47369         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47370         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47371         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47372         (glthread_cond_init_func, glthread_cond_wait_func,
47373         glthread_cond_timedwait_func, glthread_cond_signal_func,
47374         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47375         Reimplemented on the basis of gl_linked_waitqueue_t.
47376         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47377         gl_waitqueue_t.
47378         (gl_rwlock_t): Update.
47379         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47381 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47383         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47384         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47386 2008-10-17  Jim Meyering  <meyering@redhat.com>
47388         ignore-value: new module
47389         * modules/ignore-value: New file.
47390         * lib/ignore-value.h: New file.
47391         * MODULES.html.sh (Compiler warning management): New section,
47392         just for this module.  More to come.
47394 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47396         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47397         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47398         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47400 2008-10-16  Jim Meyering  <meyering@redhat.com>
47402         openat-die.c: avoid 'no previous prototype' warning
47403         * lib/openat-die.c: Include "openat.h".
47404         Reported by Reuben Thomas <rrt@sc3d.org>.
47406 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47408         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47409         * lib/netdb.in.h: Fix typo.
47410         Reported by Bruno Haible  <bruno@clisp.org>
47412         * lib/netdb.in.h: Include sys/socket.h for platforms without
47413         netdb.h, to get structures like hostent on MinGW.
47414         * modules/netdb (Depends-on): Add sys_socket.
47416 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47418         * modules/netdb, modules/netdb-tests: New file.
47419         * m4/netdb_h.m4: New file.
47420         * lib/netdb.in.h: Add, currently just an empty file pending
47421         definitions.
47422         * tests/test-netdb.c: New file.
47423         * doc/posix-headers/netdb.texi: Mention that we replace it if
47424         needed.
47425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47426         netdb.
47428 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47430         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47431         with code.
47433 2008-10-13  Bruno Haible  <bruno@clisp.org>
47435         * lib/glthread/cond.c (glthread_cond_wait_func,
47436         glthread_cond_timedwait_func): Add a comment.
47438 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47440         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47441         * tests/test-select.c: Likewise,
47443 2008-10-13  Bruno Haible  <bruno@clisp.org>
47445         * lib/glthread/cond.c (glthread_cond_wait_func,
47446         glthread_cond_timedwait_func): Fix variable name.
47447         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47449 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47451         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47452         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47453         struct sockaddr.sa_len.
47454         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47456 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47458         * build-aux/pmccabe2html: Add css and css_url parameters.
47460 2008-10-12  Bruno Haible  <bruno@clisp.org>
47462         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47463         calling aclx_get.
47464         Reported by Rainer Tammer <tammer@tammer.net>.
47466 2008-10-12  Bruno Haible  <bruno@clisp.org>
47468         Use msvcrt aware primitives for creation/termination of Win32 threads.
47469         * lib/glthread/thread.c: Include <process.h>.
47470         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47471         (wrapper_func): Update signature.
47472         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47474 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47475             Bruno Haible  <bruno@clisp.org>
47477         Provide a Win32 implementation of the 'cond' module.
47478         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47479         * lib/glthread/cond.c (glthread_cond_init_func,
47480         glthread_cond_wait_func, glthread_cond_timedwait_func,
47481         glthread_cond_signal_func, glthread_cond_broadcast_func,
47482         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47483         * modules/cond (Dependencies): Add gettimeofday.
47485 2008-10-11  Bruno Haible  <bruno@clisp.org>
47487         Make sleep work on older versions of mingw.
47488         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47489         only whether it exists.
47490         * doc/posix-functions/sleep.texi: Mention the problem with older
47491         versions of mingw.
47493 2008-10-11  Bruno Haible  <bruno@clisp.org>
47495         New module 'shutdown'.
47496         * modules/shutdown: New file.
47497         * lib/sys_socket.in.h (shutdown): New declaration.
47498         * lib/winsock.c (shutdown): New function.
47499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47500         GNULIB_SHUTDOWN.
47501         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47502         * doc/posix-functions/shutdown.texi: Document the new module.
47504 2008-10-11  Jim Meyering  <meyering@redhat.com>
47506         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47508 2008-10-11  Bruno Haible  <bruno@clisp.org>
47510         New module 'fclose'.
47511         * modules/fclose: New file.
47512         * lib/stdio.in.h (fclose): New declaration.
47513         * lib/fclose.c: New file.
47514         * m4/fclose.m4: New file.
47515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47516         REPLACE_FCLOSE.
47517         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47518         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47519         REPLACE_FCLOSE.
47520         * modules/close (Depends-on): fclose.
47521         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47523 2008-10-11  Bruno Haible  <bruno@clisp.org>
47525         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47526         set errno and don't call _close.
47528 2008-10-10  Bruno Haible  <bruno@clisp.org>
47530         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47531         ACL, not afterwards. Fixes test failure on Cygwin.
47533 2008-10-09  Ben Pfaff  <blp@gnu.org>
47535         * build-aux/announce-gen: Fix gnulib version related part of usage
47536         message.  Die with a useful error message if no tarballs are
47537         found.
47539 2008-10-10  Jim Meyering  <meyering@redhat.com>
47541         bootstrap: use git's --depth=N option only if it's supported
47542         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47543         recognize the --depth option.  Reported by Pádraig Brady.
47545 2008-10-09  Bruno Haible  <bruno@clisp.org>
47547         New module 'ioctl'.
47548         * modules/ioctl: New file.
47549         * lib/sys_socket.in.h (ioctl): Remove declaration.
47550         * lib/winsock.c: Include <sys/ioctl.h>.
47551         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47552         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47553         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47554         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47555         * doc/posix-functions/ioctl.texi: Mention the new module.
47557 2008-10-09  Bruno Haible  <bruno@clisp.org>
47559         New module 'sys_ioctl'.
47560         * lib/sys_ioctl.in.h: New file.
47561         * m4/sys_ioctl_h.m4: New file.
47562         * modules/sys_ioctl: New file.
47563         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47565 2008-10-09  Bruno Haible  <bruno@clisp.org>
47567         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47568         * lib/winsock.c: Include <stdarg.h>.
47569         (rpl_ioctl): Change to second argument 'int' and then varargs.
47571 2008-10-09  Bruno Haible  <bruno@clisp.org>
47573         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47574         when the sys_socket module is present and the system has <winsock2.h>.
47576 2008-10-09  Bruno Haible  <bruno@clisp.org>
47578         * doc/posix-functions/close.texi: Mention module 'close' instead of
47579         module 'sys_socket'.
47581 2008-10-09  Bruno Haible  <bruno@clisp.org>
47583         * doc/glibc-headers/sys_ioctl.texi: New file.
47584         * doc/gnulib.texi: Include it.
47586 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47587             Bruno Haible  <bruno@clisp.org>
47589         Combine the two replacements of 'close'.
47590         * lib/sys_socket.in.h (close): Define to a reminder to include
47591         <unistd.h>.
47592         (_gl_close_fd_maybe_socket): New declaration.
47593         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47594         * lib/winsock.c (close): Remove undefinition.
47595         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47596         needed for the gnulib module 'close'.
47597         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47598         define to an error symbol or to a warning, if suitable.
47599         * lib/close.c: Include <sys/socket.h>.
47600         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47601         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47602         UNISTD_H_HAVE_WINSOCK2_H.
47603         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47605         UNISTD_H_HAVE_WINSOCK2_H.
47606         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47607         (configure.ac): Set a module indicator.
47608         (Makefile.am): Substitute GNULIB_CLOSE.
47609         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47610         * modules/poll-tests (Depends-on): Add close.
47611         * modules/select-tests (Depends-on): Likewise.
47613 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47614             Bruno Haible  <bruno@clisp.org>
47616         New module 'close'.
47617         * modules/close: New file.
47618         * lib/unistd.in.h (close): Move declaration out of the
47619         FCHDIR_REPLACEMENT scope.
47620         (_gl_unregister_fd): New declaration.
47621         * lib/close.c: New file.
47622         * lib/fchdir.c (rpl_close): Remove function.
47623         * m4/close.m4: New file.
47624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47625         close.
47626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47627         REPLACE_CLOSE.
47628         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47629         REPLACE_CLOSE.
47630         * modules/fchdir (Depends-on): Add close.
47632 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47633             Bruno Haible  <bruno@clisp.org>
47635         * lib/fcntl.in.h (open): Simplify conditionals.
47636         (_gl_register_fd): New declaration.
47637         * lib/fchdir.c (rpl_open): Remove function.
47638         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47639         also.
47640         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47642         open.
47644 2008-10-09  Jim Meyering  <meyering@redhat.com>
47646         GNUmakefile: use the more name-space-friendly "_version"
47647         * top/GNUmakefile (_dummy): Update.
47648         (_version): Rename from "version".
47650 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47651             Bruno Haible  <bruno@clisp.org>
47653         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47654         rpl_close.
47655         (_gl_register_fd): New function, extracted from rpl_open.
47656         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47657         (rpl_open, rpl_opendir): Use _gl_register_fd.
47659 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47661         Fix organization of 'open' replacement.
47662         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47663         (gl_FUNC_OPEN): Use it.
47664         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47666 2008-10-08  Bruno Haible  <bruno@clisp.org>
47668         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47670 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47672         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47673         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47674         listen).
47676 2008-10-08  Eric Blake  <ebb9@byu.net>
47678         GNUmakefile: add 'make version' target
47679         * top/GNUmakefile (_curr-ver): Split version update rules...
47680         (version): ...into a target.
47682 2008-10-07  Bruno Haible  <bruno@clisp.org>
47684         Use a more portable replacement expression for -0.0L.
47685         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47686         instead of -0.0L. Fix m4 quotation.
47688         * tests/test-signbit.c: Include <float.h>.
47689         (minus_zero): New variable.
47690         (test_signbitl): Use minus_zero instead of -zero.
47691         * modules/signbit-tests (Depends-on): Add float.
47693         * tests/test-ceill.c: Include <float.h>.
47694         (zero): Remove variable.
47695         (minus_zero): New variable.
47696         (main): Use minus_zero instead of -zero.
47697         * modules/ceill-tests (Depends-on): Add float.
47699         * tests/test-floorl.c: Include <float.h>.
47700         (zero): Remove variable.
47701         (minus_zero): New variable.
47702         (main): Use minus_zero instead of -zero.
47703         * modules/floorl-tests (Depends-on): Add float.
47705         * tests/test-roundl.c: Include <float.h>.
47706         (zero): Remove variable.
47707         (minus_zero): New variable.
47708         (main): Use minus_zero instead of -zero.
47709         * modules/roundl-tests (Depends-on): Add float.
47711         * tests/test-truncl.c: Include <float.h>.
47712         (zero): Remove variable.
47713         (minus_zero): New variable.
47714         (main): Use minus_zero instead of -zero.
47715         * modules/truncl-tests (Depends-on): Add float.
47717         * tests/test-frexpl.c (zero): Remove variable.
47718         (minus_zero): New variable.
47719         (main): Use minus_zero instead of -zero.
47720         * modules/frexpl-tests (Depends-on): Add float.
47722         * tests/test-isnan.c (zerol): Remove variable.
47723         (minus_zerol): New variable.
47724         (test_long_double): Use minus_zerol instead of -zerol.
47725         * modules/isnan-tests (Depends-on): Add float.
47727         * tests/test-isnanl.h (zero): Remove variable.
47728         (minus_zero): New variable.
47729         (main): Use minus_zero instead of -zero.
47730         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47731         * modules/isnanl-tests (Depends-on): Add float.
47733         * tests/test-ldexpl.c (zero): Remove variable.
47734         (minus_zero): New variable.
47735         (main): Use minus_zero instead of -zero.
47736         * modules/ldexpl-tests (Depends-on): Add float.
47738         * tests/test-snprintf-posix.h (zerol): Remove variable.
47739         (minus_zerol): New variable.
47740         (test_function): Use minus_zerol instead of -zerol.
47741         * modules/snprintf-posix-tests (Depends-on): Add float.
47742         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47744         * tests/test-sprintf-posix.h (zerol): Remove variable.
47745         (minus_zerol): New variable.
47746         (test_function): Use minus_zerol instead of -zerol.
47747         * modules/sprintf-posix-tests (Depends-on): Add float.
47748         * modules/vsprintf-posix-tests (Depends-on): Add float.
47750         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47751         (minus_zerol): New variable.
47752         (test_function): Use minus_zerol instead of -zerol.
47753         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47755         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47756         (minus_zerol): New variable.
47757         (test_function): Use minus_zerol instead of -zerol.
47758         * modules/vasprintf-posix-tests (Depends-on): Add float.
47760 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47762         * MODULES.html.sh (Support for building documentation): Mention
47763         pmccabe2html.  Sort entries.
47765         Add pmccabe2html module, from gnupdf.
47766         * build-aux/pmccabe.css: New file.
47767         * build-aux/pmccabe2html: New file.
47768         * m4/pmccabe2html.m4: New file.
47769         * modules/pmccabe2html: New file.
47771 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47773         flock: new module
47774         * MODULES.html.sh: Add to list of modules.
47775         * lib/flock.c: flock implementation for Windows and Unix systems
47776         which have fcntl.
47777         * doc/glibc-functions/flock.texi: Update documentation.
47778         * lib/sys_file.in.h: <sys/file.h> header file.
47779         * m4/flock.m4: M4 macros.
47780         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47781         * modules/flock: flock module.
47782         * modules/flock-tests: flock tests module.
47783         * modules/sys_file: sys/file.h module.
47784         * tests/test-flock.c: test suite for flock.
47786 2008-10-06  Jim Meyering  <meyering@redhat.com>
47788         bootstrap: check for LT_INIT more portably still ;-)
47789         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47790         Spotted by Bruno Haible.
47792 2008-10-06  Eric Blake  <ebb9@byu.net>
47794         test-signbit: avoid tripping Irix cc bug on -0.0L
47795         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47796         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47797         entire testsuite consistent and avoids an Irix 6.2 bug.
47799 2008-10-05  Bruno Haible  <bruno@clisp.org>
47800             Jim Meyering  <jim@meyering.net>
47802         Add an option for ignoring EPIPE during close_stdout.
47803         * lib/closeout.h: Include <stdbool.h>.
47804         (close_stdout_set_ignore_EPIPE): New declaration.
47805         * lib/closeout.c: Include <stdbool.h>.
47806         (ignore_EPIPE): New variable.
47807         (close_stdout_set_ignore_EPIPE): New function.
47808         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47809         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47810         failure.
47811         * modules/closeout (Depends-on): Add stdbool.
47813 2008-10-05  Bruno Haible  <bruno@clisp.org>
47815         * modules/accept: New file.
47816         * modules/bind: New file.
47817         * modules/connect: New file.
47818         * modules/getpeername: New file.
47819         * modules/getsockname: New file.
47820         * modules/getsockopt: New file.
47821         * modules/listen: New file.
47822         * modules/recv: New file.
47823         * modules/recvfrom: New file.
47824         * modules/send: New file.
47825         * modules/sendto: New file.
47826         * modules/setsockopt: New file.
47827         * modules/socket: New file.
47828         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47829         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47830         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47831         the particular module is requested. Add a link warning when the
47832         particular module is not requested.
47833         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47834         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47835         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47836         the particular module is requested.
47837         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47838         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47839         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47840         * modules/sys_socket (Depends-on): Add link-warning.
47841         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47842         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47843         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47844         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47845         GL_LINK_WARNING.
47846         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47847         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47848         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47849         * doc/posix-functions/getpeername.texi: Mention the new module
47850         'getpeername'.
47851         * doc/posix-functions/getsockname.texi: Mention the new module
47852         'getsockname'.
47853         * doc/posix-functions/getsockopt.texi: Mention the new module
47854         'getsockopt'.
47855         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47856         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47857         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47858         * doc/posix-functions/send.texi: Mention the new module 'send'.
47859         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47860         * doc/posix-functions/setsockopt.texi: Mention the new module
47861         'setsockopt'.
47862         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47863         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47864         listen, connect, accept.
47865         * modules/select-tests (Depends-on): Likewise.
47867 2008-10-05  Bruno Haible  <bruno@clisp.org>
47869         * lib/winsock.c (strerror): Remove unused #undef.
47870         (rpl_close): Remove unused local variable.
47872         * modules/sys_socket (Depends-on); Add errno.
47874 2008-10-05  Bruno Haible  <bruno@clisp.org>
47876         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47877         (select): Add a link warning when the 'select' module is not used.
47878         * modules/sys_select (Depends-on): Add link-warning.
47879         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47880         Suggested by Paolo Bonzini.
47882 2008-10-05  Jim Meyering  <meyering@redhat.com>
47884         bootstrap: check for LT_INIT more portably
47885         * build-aux/bootstrap: Avoid using grep -E, since it's not
47886         portable enough.  Suggestion from Bruno Haible.
47888 2008-10-05  Bruno Haible  <bruno@clisp.org>
47890         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47891         as being fixed by gnulib.
47893 2008-10-05  Bruno Haible  <bruno@clisp.org>
47895         * modules/select-tests: New file, mostly copied from
47896         modules/sys_select-tests.
47897         * tests/test-select.c: New file, mostly copied from
47898         tests/test-sys_select.c.
47899         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47900         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47901         (Makefile.am): Remove test_sys_select_LDADD.
47903         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47904         to an undefined symbol, for an error message.
47905         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47906         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47907         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47908         winsock-select.c here.
47909         * modules/sys_select (Files): Remove lib/winsock-select.c.
47910         (Depends-on): Remove alloca.
47911         (Makefile.am): Substitute GNULIB_SELECT.
47912         * modules/select: New file.
47913         * doc/posix-functions/select.texi: Update.
47915 2008-10-05  Bruno Haible  <bruno@clisp.org>
47917         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47918         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47919         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47920         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47921         getdtablesize.
47922         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47923         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47925 2008-10-05  Bruno Haible  <bruno@clisp.org>
47927         * modules/getdtablesize-tests: New file.
47928         * tests/test-getdtablesize.c: New file.
47930         New module 'getdtablesize'.
47931         * lib/unistd.in.h (getdtablesize): New declaration.
47932         * lib/getdtablesize.c: New file.
47933         * m4/getdtablesize.m4: New file.
47934         * modules/getdtablesize: New file.
47935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47936         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47937         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47938         HAVE_GETDTABLESIZE.
47939         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47941 2008-10-05  Bruno Haible  <bruno@clisp.org>
47943         * modules/sched (Makefile.am): Fix typo.
47944         Reported by Simon Josefsson.
47946 2008-10-05  Jim Meyering  <meyering@redhat.com>
47948         bootstrap: check for LT_INIT, too
47949         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47950         are deprecated.  Suggestion from Ralf Wildenhues.
47952 2008-10-05  Bruno Haible  <bruno@clisp.org>
47954         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47955         overriding them by ours.
47956         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47958 2008-10-05  Jim Meyering  <meyering@redhat.com>
47960         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47961         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47962         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47964 2008-10-04  Bruno Haible  <bruno@clisp.org>
47966         * modules/dup2 (License): Change to LGPLv2+.
47967         * modules/sleep (License): Likewise.
47968         * modules/perror (License): Likewise.
47969         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47970         Blake.
47971         * modules/signal (License): Likewise.
47972         * modules/sigprocmask (License): Likewise.
47973         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47974         Meyering.
47976 2008-10-04  Bruno Haible  <bruno@clisp.org>
47978         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47979         Reported by Rainer Tammer <tammer@tammer.net>.
47981 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47982             Bruno Haible  <bruno@clisp.org>
47984         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47985         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47986         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47988 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47990         filevercmp: new module
47991         * lib/filevercmp.h: New function filevercmp comparing version strings.
47992         * lib/filevercmp.c: Implementation of filevercmp function.
47993         * modules/filevercmp: Module metadata.
47994         * tests/test-filevercmp.c: Unit test for new module.
47995         * modules/filevercmp-tests: Unit test metadata.
47996         * MODULES.html.sh: Add filevercmp module.
47998 2008-10-03  Bruno Haible  <bruno@clisp.org>
48000         * lib/c-ctype.h: Add comment.
48001         Reported by Jim Meyering.
48003 2008-10-02  Bruno Haible  <bruno@clisp.org>
48005         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48007 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48009         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48010         name of bootstrap.conf accordingly.
48012 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48014         * build-aux/bootstrap: Install git-merge-changelog configuration
48015         items into .gitconfig if needed.
48017 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48019         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48020         git repository, and initialize/update it accordingly.
48022 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48024         * modules/fsync-tests: New file.
48025         * tests/test-fsync.c: New file.
48027         New module 'fsync'.
48028         * lib/fsync.c: New file.
48029         * m4/fsync.m4: New file.
48030         * modules/fsync: New file.
48031         * lib/unistd.in.h (fsync): New declaration.
48032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48033         GNULIB_FSYNC and HAVE_FSYNC.
48034         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48035         * MODULES.html.sh (posix_functions): Add fsync.
48036         * doc/posix-functions/fsync.texi: Mention the new module.
48038 2008-10-02  Jim Meyering  <meyering@redhat.com>
48040         fts.c: sync with similar code from coreutils' remove.c
48041         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48042         Guard also with "#if defined __linux__", since for now at least,
48043         this code is Linux-kernel-specific.
48045 2008-10-02  Jim Meyering  <meyering@redhat.com>
48047         fts: bug fixes
48048         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48049         Include <sys/vfs.h>, not <sys/statfs.h>.
48051         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48052         Include <sys/vfs.h>, not <sys/statfs.h>.
48054 2008-10-01  Bruno Haible  <bruno@clisp.org>
48056         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48057         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48058         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48059         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48060         * doc/posix-functions/posix_spawnp.texi: Likewise.
48061         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48062         whether posix_spawn actually works.
48063         * m4/pipe.m4 (gl_PIPE): Likewise.
48064         * modules/execute (Files): Add m4/posix_spawn.m4.
48065         * modules/pipe (Files): Add m4/posix_spawn.m4.
48066         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48068 2008-10-01  Jim Meyering  <meyering@redhat.com>
48070         remove trailing spaces
48071         * NEWS: Likewise.
48072         * lib/poll.c (poll): Likewise.
48073         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48074         * lib/winsock.c (rpl_close): Likewise.
48075         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48076         * modules/yield: Likewise.
48077         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48078         * tests/test-sys_select.c (connect_to_socket): Likewise.
48080         fts.c: adjust a new interface to be more generally useful
48081         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48082         (fts_build): Adjust caller.
48084 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48086         * modules/cond-tests: New file.
48087         * tests/test-cond.c: New file.
48089 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48090             Bruno Haible  <bruno@clisp.org>
48092         * modules/cond (Dependencies): Add errno, time.
48093         * lib/glthread/cond.h: Include <time.h>.
48094         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48095         across platforms.
48097 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48098             Bruno Haible  <bruno@clisp.org>
48100         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48102 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48103             Bruno Haible  <bruno@clisp.org>
48105         * modules/tls-tests (Depends-on): Add thread, yield.
48106         (configure.ac): Remove all checks.
48107         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48108         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48109         gl_thread_self): Remove definitions. Include glthread/thread.h and
48110         glthread/yield.h instead.
48111         (test_tls): Pass an additional NULL argument to gl_thread_join.
48113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48114             Bruno Haible  <bruno@clisp.org>
48116         * modules/lock-tests (Depends-on): Add thread, yield.
48117         (configure.ac): Remove all checks.
48118         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48119         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48120         gl_thread_self): Remove definitions. Include glthread/thread.h and
48121         glthread/yield.h instead.
48122         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48123         additional NULL argument to gl_thread_join.
48125 2008-09-30  Bruno Haible  <bruno@clisp.org>
48127         Fix the Win32 implementation of the 'thread' module.
48128         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48129         pointer type.
48130         (gl_thread_self): Invoke gl_thread_self_func.
48131         (gl_thread_self_func): New declaration.
48132         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48133         (do_init_self_key, init_self_key): New functions.
48134         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48135         Remove some fields.
48136         (running_threads, running_lock): Remove variables.
48137         (get_current_thread_handle): New function.
48138         (gl_thread_self_func, wrapper_func, glthread_create_func,
48139         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48140         simplified.
48142 2008-09-30  Bruno Haible  <bruno@clisp.org>
48144         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48145         files.
48147 2008-09-30  Jim Meyering  <meyering@redhat.com>
48149         fts.m4: correct the test for statfs.f_type
48150         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48151         when checking for statfs.f_type.
48153 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48155         tests: avoid some compiler warnings
48156         * tests/test-memchr.c (main): Pass NULL indirectly.
48157         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48159 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48161         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48162         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48163         exactly specified dayshifts.
48164         (dayshift): New rule.
48165         (rel): Add dayshift.
48166         (relative_time_table) [tomorrow, yesterday, today, now]:
48167         Use tDAY_SHIFT in place of tDAY_UNIT.
48168         * tests/test-getdate.c: Add tests for now-disallowed countable
48169         dayshifts, e.g., "4 yesterday ago".
48171 2008-09-29  Bruno Haible  <bruno@clisp.org>
48173         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48174         * tests/test-posix_spawn1.in.sh: Renamed from
48175         tests/test-posix_spawn.in.sh.
48176         * tests/test-posix_spawn2.c: New file.
48177         * tests/test-posix_spawn2.in.sh: New file.
48178         * modules/posix_spawnp-tests (Files): Update.
48179         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48181 2008-09-29  Bruno Haible  <bruno@clisp.org>
48183         Propagate effects of putenv/setenv/unsetenv to child processes.
48184         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48185         * lib/pipe.c (create_pipe): Likewise.
48187 2008-09-29  Bruno Haible  <bruno@clisp.org>
48189         Enable use of shell scripts as executables in mingw.
48190         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48191         run the program as a shell script.
48192         * lib/pipe.c (create_pipe): Likewise.
48193         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48194         resulting array.
48196 2008-09-29  Eric Blake  <ebb9@byu.net>
48198         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48200 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48202         * doc/posix-functions/accept.texi: Update mingw problems.
48203         * doc/posix-functions/bind.texi: Update mingw problems.
48204         * doc/posix-functions/close.texi: Update mingw problems.
48205         * doc/posix-functions/connect.texi: Update mingw problems.
48206         * doc/posix-functions/getpeername.texi: Update mingw problems.
48207         * doc/posix-functions/getsockname.texi: Update mingw problems.
48208         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48209         * doc/posix-functions/ioctl.texi: Update mingw problems.
48210         * doc/posix-functions/listen.texi: Update mingw problems.
48211         * doc/posix-functions/recv.texi: Update mingw problems.
48212         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48213         * doc/posix-functions/select.texi: Update mingw problems.
48214         * doc/posix-functions/send.texi: Update mingw problems.
48215         * doc/posix-functions/sendto.texi: Update mingw problems.
48216         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48217         * doc/posix-functions/socket.texi: Update mingw problems.
48219 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48220             Bruno Haible  <bruno@clisp.org>
48222         * lib/sys_select.in.h: Include sys/time.h.
48223         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48224         * modules/sys_select: Depend on sys_time.
48225         * tests/test-sys_select.c: Test that sys/select.h defines struct
48226         timeval fully.
48228 2008-09-29  Bruno Haible  <bruno@clisp.org>
48230         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48231         * lib/sys_select.in.h: Likewise.
48233 2008-09-29  Bruno Haible  <bruno@clisp.org>
48235         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48237 2008-09-29  Bruno Haible  <bruno@clisp.org>
48239         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48240         Set LIBSOCKET instead of augmenting LIBS.
48241         * modules/sockets (Link): New section.
48242         * modules/sockets-tests (test_sockets_LDADD): New variable.
48243         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48244         * modules/poll-tests (test_poll_LDADD): New variable.
48245         * NEWS: Document the change.
48247 2008-09-29  Bruno Haible  <bruno@clisp.org>
48249         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48250         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48251         ARPA_INET_H directly.
48252         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48254 2008-09-28  Bruno Haible  <bruno@clisp.org>
48256         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48257         from gl_HEADER_SYS_SOCKET.
48258         (gl_HEADER_SYS_SOCKET): Invoke it.
48259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48261 2008-09-28  Bruno Haible  <bruno@clisp.org>
48263         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48264         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48265         Needed on OSF/1 4.0.
48267 2008-09-28  Bruno Haible  <bruno@clisp.org>
48269         Override open more carefully.
48270         * lib/open.c (orig_open): New function.
48271         (rpl_open): Use orig_open instead of open.
48272         * lib/fcntl.in.h: Add special invocation convention.
48273         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48274         (gl_FUNC_OPEN): Invoke it.
48276         Override freopen more carefully.
48277         * lib/freopen.c (orig_freopen): New function.
48278         (rpl_freopen): Use orig_freopen instead of freopen.
48279         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48280         (gl_FUNC_FREOPEN): Invoke it.
48282         Override fopen more carefully.
48283         * lib/fopen.c (orig_fopen): New function.
48284         (rpl_fopen): Use orig_fopen instead of fopen.
48285         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48286         (gl_FUNC_FOPEN): Invoke it.
48287         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48289 2008-09-28  Bruno Haible  <bruno@clisp.org>
48291         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48292         SIGPIPE.
48294 2008-09-28  Bruno Haible  <bruno@clisp.org>
48296         * tests/test-sigaction.c (handler, main): Disable the check whether
48297         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48298         glibc systems with LinuxThreads.
48300 2008-09-28  Bruno Haible  <bruno@clisp.org>
48302         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48304         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48305         with AIX xlc.
48306         * lib/fcntl.in.h (open): Likewise.
48307         Reported by Rainer Tammer <tammer@tammer.net>.
48309 2008-09-28  Bruno Haible  <bruno@clisp.org>
48311         * modules/posix_spawnp-tests: New file.
48312         * tests/test-posix_spawn.c: New file.
48313         * tests/test-posix_spawn.in.sh: New file.
48315         New module 'posix_spawnp'.
48316         * modules/posix_spawnp: New file.
48317         * lib/spawnp.c: New file, from GNU libc with modifications.
48318         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48320         New module 'posix_spawn'.
48321         * modules/posix_spawn: New file.
48322         * lib/spawn.c: New file, from GNU libc with modifications.
48323         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48325         New module 'posix_spawnattr_destroy'.
48326         * modules/posix_spawnattr_destroy: New file.
48327         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48328         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48329         module.
48331         New module 'posix_spawnattr_setsigmask'.
48332         * modules/posix_spawnattr_setsigmask: New file.
48333         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48334         modifications.
48335         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48336         new module.
48338         New module 'posix_spawnattr_getsigmask'.
48339         * modules/posix_spawnattr_getsigmask: New file.
48340         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48341         modifications.
48342         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48343         new module.
48345         New module 'posix_spawnattr_setsigdefault'.
48346         * modules/posix_spawnattr_setsigdefault: New file.
48347         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48348         modifications.
48349         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48350         new module.
48352         New module 'posix_spawnattr_getsigdefault'.
48353         * modules/posix_spawnattr_getsigdefault: New file.
48354         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48355         modifications.
48356         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48357         new module.
48359         New module 'posix_spawnattr_setschedpolicy'.
48360         * modules/posix_spawnattr_setschedpolicy: New file.
48361         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48362         modifications.
48363         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48364         new module.
48366         New module 'posix_spawnattr_getschedpolicy'.
48367         * modules/posix_spawnattr_getschedpolicy: New file.
48368         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48369         modifications.
48370         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48371         new module.
48373         New module 'posix_spawnattr_setschedparam'.
48374         * modules/posix_spawnattr_setschedparam: New file.
48375         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48376         modifications.
48377         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48378         new module.
48380         New module 'posix_spawnattr_getschedparam'.
48381         * modules/posix_spawnattr_getschedparam: New file.
48382         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48383         modifications.
48384         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48385         new module.
48387         New module 'posix_spawnattr_setpgroup'.
48388         * modules/posix_spawnattr_setpgroup: New file.
48389         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48390         modifications.
48391         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48392         module.
48394         New module 'posix_spawnattr_getpgroup'.
48395         * modules/posix_spawnattr_getpgroup: New file.
48396         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48397         modifications.
48398         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48399         module.
48401         New module 'posix_spawnattr_setflags'.
48402         * modules/posix_spawnattr_setflags: New file.
48403         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48404         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48405         module.
48407         New module 'posix_spawnattr_getflags'.
48408         * modules/posix_spawnattr_getflags: New file.
48409         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48410         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48411         module.
48413         New module 'posix_spawnattr_init'.
48414         * modules/posix_spawnattr_init: New file.
48415         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48416         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48417         module.
48419         New module 'posix_spawn_file_actions_destroy'.
48420         * modules/posix_spawn_file_actions_destroy: New file.
48421         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48422         modifications.
48423         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48424         the new module.
48426         New module 'posix_spawn_file_actions_addopen'.
48427         * modules/posix_spawn_file_actions_addopen: New file.
48428         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48429         modifications.
48430         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48431         the new module.
48433         New module 'posix_spawn_file_actions_adddup2'.
48434         * modules/posix_spawn_file_actions_adddup2: New file.
48435         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48436         modifications.
48437         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48438         the new module.
48440         New module 'posix_spawn_file_actions_addclose'.
48441         * modules/posix_spawn_file_actions_addclose: New file.
48442         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48443         modifications.
48444         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48445         the new module.
48447         New module 'posix_spawn_file_actions_init'.
48448         * modules/posix_spawn_file_actions_init: New file.
48449         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48450         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48451         new module.
48453         New module 'posix_spawn-internal'.
48454         * modules/posix_spawn-internal: New file.
48455         * lib/spawn_int.h: New file, from GNU libc with modifications.
48456         * lib/spawni.c: New file, from GNU libc with modifications.
48457         * m4/posix_spawn.m4: New file.
48459         New module 'spawn'.
48460         * modules/spawn: New file.
48461         * lib/spawn.in.h: New file, from GNU libc with modifications.
48462         * m4/spawn_h.m4: New file.
48463         * doc/posix-headers/spawn.texi: Mention the new module.
48465 2008-09-28  Bruno Haible  <bruno@clisp.org>
48467         * modules/sched-tests: New file.
48468         * tests/test-sched.c: New file.
48470         New module 'sched'.
48471         * modules/sched: New file.
48472         * lib/sched.in.h: New file.
48473         * m4/sched_h.m4: New file.
48474         * doc/posix-headers/sched.texi: Mention the new module.
48476 2008-09-27  Eric Blake  <ebb9@byu.net>
48478         Fix previous patch, and tweak references to $0.
48479         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48480         (func_version, func_gnulib_dir): Don't call this program
48481         gnulib-tool.
48482         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48483         with using $0 in function.
48484         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48485         (func_fatal_error): Reuse the name the user invoked us with.
48487 2008-09-27  Bruno Haible  <bruno@clisp.org>
48489         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48490         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48491         (gl_ICONV_H): Not here.
48492         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48493         instead of assigning ICONV_H directly.
48495         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48497         WCHAR_H directly.
48499 2008-09-27  Bruno Haible  <bruno@clisp.org>
48501         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48502         * modules/arpa_inet (Depends-on): Add link-warning.
48503         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48504         * modules/unistd (Makefile.am): Likewise.
48506 2008-09-26  Bruno Haible  <bruno@clisp.org>
48508         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48509         variables.
48510         (func_version): Essentially copied from gnulib-tool.
48511         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48512         func_readlink): Copied from gnulib-tool.
48514 2008-09-26  Bruno Haible  <bruno@clisp.org>
48516         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48517         invoking git-version-gen.
48519 2008-09-26  Bruno Haible  <bruno@clisp.org>
48521         * posix-modules: Update to directory names changed on 2008-01-19.
48522         Remove commas in output before splitting into words. No more need to
48523         avoid 'ftruncate' since 2007-02-19.
48525 2008-09-26  Bruno Haible  <bruno@clisp.org>
48527         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48529 2008-09-26  Bruno Haible  <bruno@clisp.org>
48531         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48532         * modules/fwriteerror (Depends-on): Add errno.
48534 2008-09-26  Bruno Haible  <bruno@clisp.org>
48536         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48537         * tests/test-vc-list-files-cvs.sh: Likewise.
48539 2008-09-26  Bruno Haible  <bruno@clisp.org>
48541         * doc/posix-headers/sys_resource.texi: Reorder items.
48543 2008-09-26  Jim Meyering  <meyering@redhat.com>
48545         fts: tweak inode comparison function
48546         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48547         inode numbers, as documented.
48549         fts: sort dirent entries on inode number before traversing
48550         This avoids a quadratic, seek-related performance penalty when
48551         operating on a directory containing many entries (measurable at 10k;
48552         3.5 hours at 2 million entries with a cold cache) on certain types
48553         of file systems, including ext3 and ext4, but not tmpfs.
48554         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48555         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48556         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48557         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48558         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48559         (fts_build): Set the stat.st_ino member from D_INO.
48560         If it is likely to be useful, sort dirent entries on inode number.
48562         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48563         and the struct statfs.f_type member.
48564         * modules/fts (Depends-on): Add d-ino.
48566 2008-09-26  Bruno Haible  <bruno@clisp.org>
48568         * modules/sigpipe-die (Depends-on): Add sigpipe.
48570         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48571         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48572         and GNULIB_STDIO_H_SIGPIPE are set.
48573         * lib/stdio-write.c: New file.
48574         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48575         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48576         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48577         REPLACE_STDIO_WRITE_FUNCS.
48578         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48579         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48580         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48581         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48582         * modules/stdio (Files): Add lib/stdio-write.c.
48583         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48584         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48585         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48586         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48587         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48588         REPLACE_FPRINTF_POSIX.
48589         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48590         REPLACE_PRINTF_POSIX.
48591         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48592         REPLACE_VFPRINTF_POSIX.
48593         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48594         REPLACE_VPRINTF_POSIX.
48595         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48596         SIGPIPE issue.
48597         * doc/posix-functions/fputc.texi: Likewise.
48598         * doc/posix-functions/fputs.texi: Likewise.
48599         * doc/posix-functions/fwrite.texi: Likewise.
48600         * doc/posix-functions/printf.texi: Likewise.
48601         * doc/posix-functions/putc.texi: Likewise.
48602         * doc/posix-functions/putchar.texi: Likewise.
48603         * doc/posix-functions/puts.texi: Likewise.
48604         * doc/posix-functions/vfprintf.texi: Likewise.
48605         * doc/posix-functions/vprintf.texi: Likewise.
48607         * modules/safe-write (Depends-on): Add write.
48609         * modules/sigpipe-tests: New file.
48610         * tests/test-sigpipe.c: New file.
48611         * tests/test-sigpipe.sh: New file.
48613         * modules/write: New file.
48614         * lib/unistd.in.h: Include <sys/types.h>.
48615         (write): New declaration.
48616         * lib/write.c: New file.
48617         * m4/write.m4: New file.
48618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48619         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48620         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48621         GNULIB_WRITE, REPLACE_WRITE.
48622         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48623         and the SIGPIPE issue.
48625         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48626         (raise): New declaration.
48627         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48628         (ext_signal): New function.
48629         (rpl_raise): New function.
48630         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48631         GNULIB_SIGNAL_H_SIGPIPE.
48632         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48633         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48635         * modules/sigpipe: New file.
48636         * m4/sigpipe.m4: New file.
48638 2008-09-25  Derek Price  <derek@ximbiot.com>
48639             Bruno Haible  <bruno@clisp.org>
48641         * gnulib-tool (func_import): Report all license incompatibilities, not
48642         just the first one.
48644 2008-09-25  Bruno Haible  <bruno@clisp.org>
48646         * gnulib-tool (func_import): When computing the edits, consider not
48647         only the Makefile.ams that exist but also those that will be generated.
48649 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48651         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48652         fixes gnulib-tool --test warning about duplicate dependency.
48654 2008-09-25  Bruno Haible  <bruno@clisp.org>
48656         * gnulib-tool: Don't ask the user to perform edits in the generated
48657         Makefile.ams.
48658         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48659         apply to the Makefile.am being generated.
48660         (func_emit_tests_Makefile_am): Execute edits that apply to the
48661         Makefile.am being generated.
48662         (func_import): Setup list of Makefile.am edits before emitting the
48663         Makefile.ams, not at the end.
48664         (func_create_testdir): Update.
48665         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48667 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48669         * gnulib-tool (func_import): Store the --tests-base option in the
48670         comment in gnulib-cache.m4.
48672 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48674         * NEWS: Document increased portability that sys_select now provides.
48676         * lib/sys_select.in.h: Install select wrapper.
48677         * lib/sys_socket.in.h: Use more descriptive name when there is no
48678         select wrapper.
48679         * lib/winsock-select.c: New.
48680         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48681         Require gl_HEADER_SYS_SOCKET.
48682         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48683         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48684         * tests/test-sys_select.c: Add functional tests.
48686 2008-09-24  Eric Blake  <ebb9@byu.net>
48688         open, fopen: close fd leak in last patch
48689         * lib/open.c (rpl_open): Close fd before returning error.
48690         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48691         * doc/posix-functions/open.texi (open): Document that Irix also
48692         has the bug.
48693         * doc/posix-functions/fopen.texi (fopen): Likewise.
48694         Reported by Paolo Bonzini.
48696 2008-09-24  Bruno Haible  <bruno@clisp.org>
48698         Ensure that a filename ending in a slash cannot be used to access a
48699         non-directory.
48700         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48701         to check whether it's really a directory.
48702         * lib/fopen.c: Include fcntl.h, unistd.h.
48703         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48704         and fdopen().
48705         * modules/fopen (Depends-on): Add unistd.
48706         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48707         * tests/test-fopen.c (main): Likewise.
48708         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48709         * doc/posix-functions/fopen.texi: Likewise.
48710         Reported by Eric Blake.
48712 2008-09-23  Eric Blake  <ebb9@byu.net>
48714         c-stack: avoid compiler optimizations when provoking overflow
48715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48716         recursion harder to optimize, to ensure a stack overflow occurs.
48717         * tests/test-c-stack.c (recurse): Likewise.
48718         Borrowed from libsigsegv.
48720         c-stack: work around Irix sigaltstack bug
48721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48722         whether sigaltstack uses wrong end of stack_t (copied in part from
48723         libsigsegv).
48724         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48725         Irix bug, without requiring an over-allocation.
48726         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48727         bug.
48729         fopen: document mingw bug on directories
48730         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48731         not allowing a stream visiting a directory, even though reading
48732         from such a stream is not portable.
48734 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48736         * lib/poll.c: Rewrite.
48737         * modules/poll: Depend on alloca.
48739 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48741         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48742         instead define prototypes for a full set of wrappers.  Ensure
48743         that Cygwin does not use the compatibility code, which is only
48744         for MinGW.
48745         * lib/winsock.c: New.
48746         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48747         * modules/sys_socket: Add lib/winsock.c.
48749         * modules/poll-tests: Add errno and perror.
48750         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48752 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48754         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48756 2008-09-23  Bruno Haible  <bruno@clisp.org>
48758         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48759         * doc/glibc-functions/*: Likewise.
48761 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48763         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48764         success.
48766 2008-09-22  Eric Blake  <ebb9@byu.net>
48767             Bruno Haible  <bruno@clisp.org>
48769         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48770         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48771         supply %A but mishandle pseudo-NaN.
48772         Reported by Simon Josefsson.
48774 2008-09-21  Bruno Haible  <bruno@clisp.org>
48776         * tests/test-lock.c (main): Tweak skip message.
48777         * tests/test-tls.c (main): Likewise.
48779 2008-09-21  Bruno Haible  <bruno@clisp.org>
48781         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48782         whether 'struct sigaction' has sa_sigaction here...
48783         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48784         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48786 2008-09-21  Bruno Haible  <bruno@clisp.org>
48788         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48789         section.
48790         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48791         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48792         the new section.
48793         (Support for obsolete systems lacking POSIX:2001): New section.
48794         (String handling <string.h>): Move strdup to the new section.
48795         Suggested by Simon Josefsson and Paolo Bonzini.
48797 2008-09-21  Bruno Haible  <bruno@clisp.org>
48799         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48800         exponents in %e and %g results on 'long double'. Needed for mingw's
48801         improved *printf functions.
48802         * tests/test-vasprintf-posix.c (test_function): Likewise.
48803         * tests/test-snprintf-posix.h (test_function): Likewise.
48804         * tests/test-sprintf-posix.h (test_function): Likewise.
48805         Reported by Eric Blake.
48807 2008-09-21  Bruno Haible  <bruno@clisp.org>
48809         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48810         * tests/test-sprintf-posix.h (test_function): Likewise.
48812 2008-09-21  Bruno Haible  <bruno@clisp.org>
48814         * modules/getpass (Depends-on): Add strdup-posix.
48816         New module 'strdup-posix'.
48817         * modules/strdup-posix: New file.
48818         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48819         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48821         REPLACE_STRDUP.
48822         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48823         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48825         strdup-posix.
48827         * modules/strdup (Depends-on): Remove malloc-posix.
48829 2008-09-20  Bruno Haible  <bruno@clisp.org>
48831         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48832         Wildenhues.
48834 2008-09-20  Bruno Haible  <bruno@clisp.org>
48836         Ensure that wint_t gets defined on IRIX 5.3.
48837         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48838         * lib/wctype.in.h (wint_t): Likewise.
48839         (__wctype_wint_t): Remove type.
48840         (isw*): Use wint_t instead of __wctype_wint_t.
48841         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48842         * modules/wchar (Files): Add m4/wint_t.m4.
48843         (Makefile.am): Substitute HAVE_WINT_T.
48844         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48845         * tests/test-wctype.c: Check that wint_t is defined.
48846         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48847         * doc/posix-headers/wctype.texi: Likewise.
48848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48850 2008-09-18  Bruno Haible  <bruno@clisp.org>
48852         * gnulib-tool (func_exit): Update comment.
48854 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48856         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48857         assumes strdup exists and does not depend on strdup to return
48858         ENOMEM on out of memory conditions.
48860 2008-09-18  Bruno Haible  <bruno@clisp.org>
48862         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48863         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48864         digits for the exponent.
48866 2008-09-18  Jim Meyering  <meyering@redhat.com>
48867             Bruno Haible  <bruno@clisp.org>
48869         * lib/vasnprintf.c (decimal_point_char): Define also if
48870         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48872 2008-09-16  Bruno Haible  <bruno@clisp.org>
48873         and Eric Blake  <ebb9@byu.net>
48875         vasnprintf: support Irix 5.3
48876         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48877         that mishandle long double infinity.
48878         Reported by Tom G. Christensen.
48880 2008-09-16  Bruno Haible  <bruno@clisp.org>
48882         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48883         Solaris 9.
48884         * doc/glibc-functions/alphasort.texi: Likewise.
48885         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48887 2008-09-16  Jim Meyering  <meyering@redhat.com>
48889         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48890         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48891         a umask modification leak out of a subshell.  Otherwise, the
48892         opensolaris /bin/sh would be accepted and thus cause unwarranted
48893         failures in the coreutils test suite.
48895 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48897         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48898         to succeed.
48900 2008-09-16  Jim Meyering  <meyering@redhat.com>
48902         avoid spurious test failure when library is built without ACL support
48903         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48904         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48905         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48906         * tests/test-copy-acl.sh: Likewise.
48908 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48910         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48911         based on character occurrence counts.
48913 2008-09-15  Eric Blake  <ebb9@byu.net>
48915         tests: avoid some compiler warnings
48916         * tests/test-memchr.c (main): Pass NULL indirectly.
48917         * tests/test-closein.c (main): Avoid unused variable.
48919 2008-09-15  Bruno Haible  <bruno@clisp.org>
48921         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48922         are missing on OpenBSD 4.0 individually.
48923         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48925 2008-09-15  Bruno Haible  <bruno@clisp.org>
48927         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48928         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48929         * doc/posix-functions/perror.texi: Likewise.
48930         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48931         is missing.
48932         Reported by Eric Blake.
48934         * lib/errno.in.h: Use replacement values >= 2000.
48935         Reported by Eric Blake.
48937 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48939         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48940         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48941         limit.
48942         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48943         compareseq was aborted.
48945 2008-09-14  Bruno Haible  <bruno@clisp.org>
48947         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48948         yvec_edit_count.
48949         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48950         (fstrcmp_bounded): Simplify result computation accordingly.
48952 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48954         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48955         (fstrcmp): Define in terms of fstrcmp_bounded.
48956         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48957         lower_bound argument.
48958         Return quickly if the result is certainly < lower_bound.
48959         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48961 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48963         * lib/diffseq.h (EARLY_ABORT): New macro.
48964         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48965         evaluates to true.
48967 2008-09-14  Bruno Haible  <bruno@clisp.org>
48969         * modules/perror-tests: New file.
48970         * tests/test-perror.sh: New file.
48971         * tests/test-perror.c: New file.
48973         New module 'perror'.
48974         * lib/stdio.in.h (perror): New declaration.
48975         * lib/perror.c: New file.
48976         * m4/perror.m4: New file.
48977         * modules/perror: New file.
48978         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48979         * doc/posix-functions/perror.texi: Mention the perror module.
48980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48981         REPLACE_PERROR.
48982         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48983         REPLACE_PERROR.
48985 2008-09-14  Bruno Haible  <bruno@clisp.org>
48987         * modules/stdio (Makefile.am): Reorder to match the order in
48988         lib/stdio.in.h.
48989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48991 2008-09-13  Bruno Haible  <bruno@clisp.org>
48993         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48995 2008-09-13  Bruno Haible  <bruno@clisp.org>
48997         Extend strerror to cover the added errno values.
48998         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48999         (rpl_strerror): Provide error messages for the added errno values and
49000         for the WSA* values.
49001         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49002         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49003         strerror.
49004         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49005         * modules/strerror (Depends-on): Add errno.
49006         * doc/posix-functions/strerror.texi: Document the change.
49007         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49008         and EOVERFLOW.
49010 2008-09-13  Bruno Haible  <bruno@clisp.org>
49012         * modules/EOVERFLOW: Remove file.
49013         * m4/eoverflow.m4: Remove file.
49014         * modules/EOVERFLOW-tests: Remove file.
49015         * tests/test-EOVERFLOW.c: Remove file.
49016         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49017         * modules/ftell (Depends-on): Likewise.
49018         * modules/getdelim (Depends-on): Likewise.
49019         * modules/getugroups (Depends-on): Likewise.
49020         * modules/poll (Depends-on): Likewise.
49021         * modules/snprintf (Depends-on): Likewise.
49022         * modules/sprintf-posix (Depends-on): Likewise.
49023         * modules/vasnprintf (Depends-on): Likewise.
49024         * modules/vasprintf (Depends-on): Likewise.
49025         * modules/vfprintf-posix (Depends-on): Likewise.
49026         * modules/vsnprintf (Depends-on): Likewise.
49027         * modules/vsprintf-posix (Depends-on): Likewise.
49028         * modules/xvasprintf (Depends-on): Likewise.
49029         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49030         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49031         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49032         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49033         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49034         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49035         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49036         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49038         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49039         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49040         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49041         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49042         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49043         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49044         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49045         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49046         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49047         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49048         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49049         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49050         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49051         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49052         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49053         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49054         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49055         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49056         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49057         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49058         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49059         * MODULES.html.sh: Remove EOVERFLOW.
49060         * NEWS: Mention the change.
49062 2008-09-13  Bruno Haible  <bruno@clisp.org>
49064         * modules/errno-tests: New file.
49065         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49067         * lib/errno.in.h: New file.
49068         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49069         * modules/errno: New file.
49070         * doc/posix-headers/errno.texi: Update documentation.
49071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49073 2008-09-13  Bruno Haible  <bruno@clisp.org>
49075         * tests/test-poll.c: Use #if for native Windows, rather than testing
49076         __MSVCRT__.
49078 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49079             Bruno Haible  <bruno@clisp.org>
49081         * lib/glob.c: Don't include <pwd.h> on native Windows.
49082         (WINDOWS32): New macro.
49083         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49085 2008-09-13  Bruno Haible  <bruno@clisp.org>
49087         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49088         (ETIMEDOUT): Remove macro.
49089         (glthread_cond_timedwait_multithreaded): New declaration.
49090         (glthread_cond_timedwait): Use it.
49091         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49092         (glthread_cond_timedwait_multithreaded): New function.
49094 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49096         * modules/poll-tests: Do not check for io.h.
49097         * tests/test-poll.c: Check for __MSVCRT__ instead.
49099 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49101         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49102         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49103         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49105 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49107         * modules/poll-tests: New.
49108         * tests/test-poll.c: New.
49110 2008-09-12  Eric Blake  <ebb9@byu.net>
49112         frexp: test for NetBSD failure on -0.0
49113         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49114         not all, bugs from NetBSD 3.0 have been fixed.
49115         * doc/posix-functions/frexp.texi (frexp): Document bug.
49116         Reported by Thomas Klausner.
49118         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49119         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49120         literal -0.0.
49121         Reported by Jonathan C. Patschke <jp@centtech.com>.
49123 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49125         * lib/glthread/cond.h: Use dummy implementation also if
49126         USE_WIN32_THREADS.
49128 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49130         * modules/fnmatch-posix (License): Change to LGPLv2+.
49131         * modules/fnmatch-gnu (License): Likewise.
49133 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49135         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49137 2008-09-11  Jim Meyering  <meyering@redhat.com>
49139         * users.txt: Add gtk-vnc.
49141 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49143         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49144         rotate amounts.
49146         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49147         required for 16-bit and 8-bit rotates.
49148         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49149         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49150         UINT8_MAX instead of hard-coded constants.
49151         Suggested by Paul Eggert.
49153 2008-09-07  Bruno Haible  <bruno@clisp.org>
49155         * tests/test-striconveh.c (main): Check behaviour when converting from
49156         UTF-7.
49158         Make striconveh work better with stateful encodings.
49159         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49160         that iconv does not increment the inptr when returning -1/EINVAL.
49162 2008-09-07  Bruno Haible  <bruno@clisp.org>
49164         * build-aux/config.rpath: Update according to libtool-2.2.6.
49165         * build-aux/config.libpath: Likewise.
49167 2008-09-06  Bruno Haible  <bruno@clisp.org>
49169         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49170         * lib/freadptr.c (freadptr): Likewise.
49171         * lib/freadseek.c (freadptrinc): Likewise.
49172         Reported by Simon Josefsson.
49174 2008-09-06  Bruno Haible  <bruno@clisp.org>
49176         * modules/freadptr (License): Change to LGPLv2+.
49177         * modules/freadseek (License): Likewise.
49178         Suggested by Eric Blake.
49180         * modules/memchr2 (License): Change to LGPLv2+.
49181         Approved by Eric Blake.
49183 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49184             Bruno Haible  <bruno@clisp.org>
49186         Make gnulib-tool work with native 'sed' on AIX.
49187         * gnulib-tool (sed_noop): New variable.
49188         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49189         func_add_or_update, func_create_testdir): Use it to initialize sed
49190         script variables.
49191         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49193 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49194             Bruno Haible  <bruno@clisp.org>
49196         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49197         also works after #include directives.
49199 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49201         getdate.y: reject an out-of-range timezone value
49202         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49203         the range [-24...+24].  When specified with only one or two digits,
49204         * tests/test-getdate.c: Tests for the fix.
49205         * doc/getdate.texi: Document this change.
49207 2008-09-03  Bruno Haible  <bruno@clisp.org>
49209         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49211 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49213         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49214         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49215         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49216         Blake <ebb9@byu.net>.
49218         * tests/test-bitrotate.c: Add more test vectors.
49220 2008-09-02  Eric Blake  <ebb9@byu.net>
49222         vasnprintf-posix: handle large precision via %.*d
49223         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49224         when handling it ourselves.
49225         * tests/test-vasnprintf-posix.c (test_function): Add test.
49226         * tests/test-snprintf-posix.h (test_function): Likewise.
49227         * tests/test-sprintf-posix.h (test_function): Likewise.
49228         * tests/test-vasprintf-posix.c (test_function): Likewise.
49229         Reported by Alain Guibert.
49231 2008-09-01  Eric Blake  <ebb9@byu.net>
49233         c-stack: make configure-time check more robust
49234         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49235         successful sigaction call.
49236         Reported by Tom G. Christensen.
49238 2008-09-01  Bruno Haible  <bruno@clisp.org>
49240         New module 'findprog-lgpl'.
49241         * modules/findprog-lgpl: New file.
49242         * lib/findprog-lgpl.c: New file.
49243         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49244         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49245         to decide whether to use strdup or xstrdup, concatenated_filename or
49246         xconcatenated_filename.
49248 2008-09-01  Bruno Haible  <bruno@clisp.org>
49250         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49251         'xconcat-filename' (GPL).
49252         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49253         (License): Change to LGPLv2+.
49254         * modules/xconcat-filename: New file.
49255         * lib/concat-filename.h (concatenated_filename): Change specification.
49256         (xconcatenated_filename): New declaration.
49257         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49258         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49259         memory situations.
49260         * lib/xconcat-filename.c: New file.
49261         * NEWS: Mention the change.
49262         * lib/findprog.c: Include concat-filename.h, not filename.h.
49263         (find_in_path): Use xconcatenated_filename instead of
49264         concatenated_filename.
49265         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49266         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49267         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49268         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49269         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49270         instead of concatenated_filename.
49271         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49272         (execute_java_class): Use xconcatenated_filename instead of
49273         concatenated_filename.
49274         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49275         * modules/javacomp (Depends-on): Likewise.
49276         * modules/javaexec (Depends-on): Likewise.
49278 2008-09-01  Bruno Haible  <bruno@clisp.org>
49280         Split module 'filename' into 'filename' and 'concat-filename'.
49281         * modules/filename: Keep only lib/filename.h.
49282         (License): Change to LGPLv2+.
49283         * modules/concat-filename: New file, extracted from modules/filename.
49284         * lib/filename.h (concatenated_filename): Remove declaration.
49285         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49286         * lib/concat-filename.c: Include concat-filename.h.
49287         * NEWS: Mention the change.
49289 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49291         * lib/bitrotate.h (rotl8, rotr8): Add.
49293         * modules/bitrotate (configure.ac): Need
49294         AC_REQUIRE([AC_C_INLINE]).
49295         (Description): Mention stdint.h.  Reported by Bruno Haible
49296         <bruno@clisp.org>.
49298         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49299         Paolo Bonzini <bonzini@gnu.org>.
49301 2008-08-31  Bruno Haible  <bruno@clisp.org>
49303         Assume Solaris specific bi-arch conventions on Solaris systems.
49304         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49305         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49307         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49308         like acl_libdirstem.
49309         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49310         acl_libdirstem.
49311         * NEWS: Mention the change.
49312         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49314 2008-08-31  Jim Meyering  <meyering@redhat.com>
49316         * lib/strftime.h: Add comments describing the two added arguments.
49318         remove duplicate #include directives
49319         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49320         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49322 2008-08-31  Bruno Haible  <bruno@clisp.org>
49324         New module 'sigpipe-die'.
49325         * modules/sigpipe-die: New file.
49326         * lib/sigpipe-die.h: New file.
49327         * lib/sigpipe-die.c: New file.
49328         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49330 2008-08-31  Bruno Haible  <bruno@clisp.org>
49332         Don't override previously installed signal handlers.
49333         * lib/fatal-signal.c (saved_sigactions): New variable.
49334         (uninstall_handlers): Reset the signal to the saved handler, not
49335         to SIG_DFL (except when ignored).
49336         (install_handlers): Save the previous handlers.
49338 2008-08-30  Bruno Haible  <bruno@clisp.org>
49340         * gnulib-tool (func_reset_sigpipe): New function.
49341         (func_get_automake_snippet, func_modules_transitive_closure,
49342         func_import): Invoke it before a join command that reads from stdin,
49343         to avoid "echo: write error: Broken pipe" error messages on stderr.
49344         Reported by Sam Steingold <sds@gnu.org>.
49346 2008-08-30  Bruno Haible  <bruno@clisp.org>
49348         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49349         Code copied from m4/open.m4.
49350         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49351         access and the filename ends in a slash. Code copied from lib/open.c.
49352         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49353         * tests/test-fopen.c (main): Check against bug with trailing slash.
49355 2008-08-29  Bruno Haible  <bruno@clisp.org>
49357         Avoid some "gcc -pedantic" warnings.
49358         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49359         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49360         * lib/dirent.in.h: Likewise.
49361         * lib/fcntl.in.h: Likewise.
49362         * lib/float.in.h: Likewise.
49363         * lib/iconv.in.h: Likewise.
49364         * lib/inttypes.in.h: Likewise.
49365         * lib/locale.in.h: Likewise.
49366         * lib/math.in.h: Likewise.
49367         * lib/netinet_in.in.h: Likewise.
49368         * lib/search.in.h: Likewise.
49369         * lib/signal.in.h: Likewise.
49370         * lib/stdarg.in.h: Likewise.
49371         * lib/stdint.in.h: Likewise.
49372         * lib/stdio.in.h: Likewise.
49373         * lib/stdlib.in.h: Likewise.
49374         * lib/string.in.h: Likewise.
49375         * lib/strings.in.h: Likewise.
49376         * lib/sys_select.in.h: Likewise.
49377         * lib/sys_socket.in.h: Likewise.
49378         * lib/sys_stat.in.h: Likewise.
49379         * lib/sys_time.in.h: Likewise.
49380         * lib/sysexits.in.h: Likewise.
49381         * lib/time.in.h: Likewise.
49382         * lib/unistd.in.h: Likewise.
49383         * lib/wchar.in.h: Likewise.
49384         * lib/wctype.in.h: Likewise.
49385         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49386         * modules/fchdir (Makefile.am): Likewise.
49387         * modules/fcntl (Makefile.am): Likewise.
49388         * modules/float (Makefile.am): Likewise.
49389         * modules/iconv_open (Makefile.am): Likewise.
49390         * modules/inttypes (Makefile.am): Likewise.
49391         * modules/locale (Makefile.am): Likewise.
49392         * modules/math (Makefile.am): Likewise.
49393         * modules/netinet_in (Makefile.am): Likewise.
49394         * modules/search (Makefile.am): Likewise.
49395         * modules/signal (Makefile.am): Likewise.
49396         * modules/stdarg (Makefile.am): Likewise.
49397         * modules/stdint (Makefile.am): Likewise.
49398         * modules/stdio (Makefile.am): Likewise.
49399         * modules/stdlib (Makefile.am): Likewise.
49400         * modules/string (Makefile.am): Likewise.
49401         * modules/strings (Makefile.am): Likewise.
49402         * modules/sys_select (Makefile.am): Likewise.
49403         * modules/sys_socket (Makefile.am): Likewise.
49404         * modules/sys_stat (Makefile.am): Likewise.
49405         * modules/sys_time (Makefile.am): Likewise.
49406         * modules/sysexits (Makefile.am): Likewise.
49407         * modules/time (Makefile.am): Likewise.
49408         * modules/unistd (Makefile.am): Likewise.
49409         * modules/wchar (Makefile.am): Likewise.
49410         * modules/wctype (Makefile.am): Likewise.
49411         Reported by Reuben Thomas <rrt@sc3d.org>.
49413 2008-08-29  Bruno Haible  <bruno@clisp.org>
49415         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49416         any more.
49418 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49420         * MODULES.html.sh (Misc): Add bitrotate.
49422         * modules/bitrotate: New file.
49424         * lib/bitrotate.h: New file.
49426         * modules/bitrotate-tests: New file.
49428         * tests/test-bitrotate.c: New file.
49430         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49431         on the bitrotate module.
49433         * lib/arctwo.c: Use new bitrotate module.
49435 2008-08-29  Jim Meyering  <meyering@redhat.com>
49437         bootstrap: merge changes from coreutils
49438         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49439         of copied files.  Remove a kludge, now that this is fixed.
49440         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49441         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49442         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49444 2008-08-29  Bruno Haible  <bruno@clisp.org>
49446         * MODULES.html.sh: Remove --cvs-urls option.
49448 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49450         maint.mk: adjust to file name change
49451         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49453 2008-08-28  Jim Meyering  <meyering@redhat.com>
49455         * modules/getndelim2 (License): Relicense to LGPLv2+.
49456         Approved by Richard Stallman for the version of 1995, and by
49457         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49459 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49461         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49462         dummy if one is not available.  Do not touch them if
49463         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49464         (getc_maybe_unlocked): New.
49465         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49467 2008-08-26  Eric Blake  <ebb9@byu.net>
49469         doc/INSTALL: resync from autoconf
49470         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49471         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49472         moving...
49473         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49474         * INSTALL: Regenerate.
49475         * INSTALL.ISO: New file.
49476         * INSTALL.UTF-8: Likewise.
49478 2008-08-26  Jim Meyering  <meyering@redhat.com>
49480         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49481         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49482         these definitions conditional, so that they may be overridden, too.
49484 2008-08-26  Bruno Haible  <bruno@clisp.org>
49486         Generate INSTALL file variants with prettier quotes.
49487         * doc/Makefile (INSTALL_PRELUDE): New macro.
49488         (INSTALL): Use it.
49489         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49491 2008-08-26  Bruno Haible  <bruno@clisp.org>
49493         Run makeinfo in an English locale.
49494         * doc/Makefile (MAKEINFO): New variable.
49496 2008-08-26  Bruno Haible  <bruno@clisp.org>
49498         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49499         Suggested by Eric Blake.
49501 2008-08-25  Bruno Haible  <bruno@clisp.org>
49503         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49505 2008-08-25  Eric Blake  <ebb9@byu.net>
49507         c-stack: test that stack overflow can be caught
49508         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49509         that platform allows handling stack overflow; at least OS/2 EMX
49510         has sigaltstack, but crashes before transferring control to
49511         handler on stack overflow.
49512         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49513         check for HAVE_STACK_OVERFLOW_HANDLING.
49514         Reported by Elbert Pol.
49516 2008-08-25  Bruno Haible  <bruno@clisp.org>
49518         * doc/posix-functions/strftime.texi: Fix description of strftime
49519         module.
49521 2008-08-24  Bruno Haible  <bruno@clisp.org>
49523         * tests/uniwidth/test-uc_width2.c: New file.
49524         * tests/uniwidth/test-uc_width2.sh: New file.
49525         * modules/uniwidth/width-tests (Files): Add the new files.
49526         (TESTS): Add uniwidth/test-uc_width2.sh.
49527         (TESTS_ENVIRONMENT): New variable.
49528         (check_PROGRAMS): Add test-uc_width2.
49529         (test_uc_width2_SOURCES): New variable.
49531         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49532         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49533         not 0x00AB.
49534         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49536 2008-08-22  Eric Blake  <ebb9@byu.net>
49538         test-lock, test-tls: mention why a test is skipped
49539         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49540         skipped.
49541         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49543         count-one-bits: relax license
49544         * modules/count-one-bits (License): Relicense to LGPLv2+.
49545         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49547 2008-08-22  Andreas Schwab  <schwab@suse.de>
49549         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49550         Remove spurious space in assignment.
49552 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49554         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49555         Paul Eggert <eggert@CS.UCLA.EDU>.
49557 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49559         * modules/gettext: Add m4/threadlib.m4.
49561 2008-08-19  Eric Blake  <ebb9@byu.net>
49563         test-c-stack: fix compilation failure on FreeBSD 5.0
49564         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49565         headers before <sys/resource.h>.
49566         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49567         the bug.
49568         Reported by Nelson H. F. Beebe.
49570         strverscmp: migrate from "strverscmp.h" to <string.h>
49571         * modules/string (Makefile.am): Add new hooks.
49572         * modules/strverscmp (Files): Remove strverscmp.h.
49573         (Depends-on): Add string.
49574         (configure.ac): Add indicator.
49575         (Include): Mention new header.
49576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49577         defaults.
49578         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49579         results.
49580         * lib/strverscmp.h: Delete.
49581         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49582         * tests/test-strverscmp.c (includes): Adjust client.
49583         * lib/check-version.c (includes): Likewise.
49584         * NEWS: Document the change.
49586         strverscmp: add unit test
49587         * modules/strverscmp-tests: New file.
49588         * tests/test-strverscmp.c: Likewise.
49590 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49592         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49593         regarding Windows crypto stuff, from Mono.
49595 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49597         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49598         if present, for intel RND.  Return error on failures.
49600 2008-08-18  Ben Pfaff  <blp@gnu.org>
49602         gitlog-to-changelog: give better diagnostic for failed pipe-open
49603         * build-aux/gitlog-to-changelog: Improve error message: suggest
49604         that the version of Git may be too old.
49606 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49608         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49609         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49611 2008-08-18  Bruno Haible  <bruno@clisp.org>
49613         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49614         pthread_in_use().
49616 2008-08-18  Bruno Haible  <bruno@clisp.org>
49618         * lib/glthread/threadlib.c: Include <pthread.h>.
49620 2008-08-18  Bruno Haible  <bruno@clisp.org>
49622         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49623         glthread_recursive_lock_* macros.
49624         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49625         Fix syntax error.
49627 2008-08-18  Bruno Haible  <bruno@clisp.org>
49629         * lib/glthread/thread.c: Avoid forcing a context switch right after
49630         thread creation.
49632 2008-08-17  Bruno Haible  <bruno@clisp.org>
49634         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49635         * lib/glthread/thread.h: Provide Win32 specific implementation.
49636         * modules/thread (Files): Add lib/glthread/thread.c.
49637         (Depends-on): Add lock.
49638         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49640 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49642         New module 'yield'.
49643         * modules/yield: New file.
49644         * lib/glthread/yield.h: New file.
49645         * m4/yield.m4: New file.
49646         * MODULES.html.sh (Multithreading): Add yield.
49648 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49650         New module 'thread'.
49651         * modules/thread: New file.
49652         * lib/glthread/thread.h: New file.
49653         * m4/thread.m4: New file.
49654         * MODULES.html.sh (Multithreading): Add thread.
49656 2008-08-17  Bruno Haible  <bruno@clisp.org>
49658         * lib/glthread/lock.h: Include <stdlib.h> always.
49659         * lib/glthread/tls.h: Likewise.
49660         * lib/glthread/cond.h: Likewise.
49662 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49664         New module 'cond'.
49665         * modules/cond: New file.
49666         * lib/glthread/cond.h: New file.
49667         * lib/glthread/cond.c: New file.
49668         * m4/cond.m4: New file.
49669         * MODULES.html.sh (Multithreading): Add cond.
49671 2008-08-16  Eric Blake  <ebb9@byu.net>
49673         c-stack: fix regression on Irix 5.3 from 2008-06-21
49674         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49675         sa_sigaction...
49676         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49677         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49678         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49679         * modules/signal (Makefile.am): Use the value.
49680         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49681         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49682         * doc/posix-headers/signal.texi (signal.h): Document this
49683         portability issue.
49684         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49685         Reported by Tom G. Christensen.
49687 2008-08-17  Bruno Haible  <bruno@clisp.org>
49689         New module 'threadlib'.
49690         * modules/threadlib: New file.
49691         * lib/glthread/threadlib.c: New file, extracted from
49692         lib/glthread/lock.c.
49693         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49694         functions.
49695         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49696         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49697         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49698         macros.
49699         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49700         (gl_DISABLE_THREADS): Remove macro.
49701         * modules/lock (Files): Remove build-aux/config.rpath.
49702         (Depends-on): Remove havelib. Add threadlib.
49703         (configure.ac-early): Remove section.
49704         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49705         * modules/tls (Depends-on): Remove lock. Add threadlib.
49706         (Link): New section, copied from threadlib.
49707         * MODULES.html.sh (Multithreading): Add threadlib.
49709 2008-08-14  Bruno Haible  <bruno@clisp.org>
49711         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49712         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49713         glthread_rwlock_unlock, glthread_rwlock_destroy,
49714         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49715         glthread_recursive_lock_destroy): Define as macros always.
49716         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49717         glthread_lock_lock.
49718         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49719         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49720         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49721         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49722         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49723         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49724         (glthread_recursive_lock_lock_func): Renamed from
49725         glthread_recursive_lock_lock.
49726         (glthread_recursive_lock_unlock_func): Renamed from
49727         glthread_recursive_lock_unlock.
49728         (glthread_recursive_lock_destroy_func): Renamed from
49729         glthread_recursive_lock_destroy.
49731 2008-08-14  Bruno Haible  <bruno@clisp.org>
49733         * lib/glthread/lock.h: Renamed from lib/lock.h.
49734         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49735         * lib/glthread/tls.h: Renamed from lib/tls.h.
49736         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49737         * lib/fstrcmp.c: Update includes.
49738         * lib/strsignal.c: Update includes.
49739         * modules/lock (Files, Makefile.am): Update.
49740         (Include): Change to "glthread/lock.h".
49741         * modules/tls (Files, Makefile.am): Update.
49742         (Include): Change to "glthread/tls.h".
49743         * tests/test-lock.c: Update includes.
49744         * tests/test-tls.c: Update includes.
49745         * NEWS: Mention the renamed header files.
49747 2008-08-11  Jim Meyering  <meyering@redhat.com>
49749         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49751 2008-08-11  Eric Blake  <ebb9@byu.net>
49753         test-c-stack: avoid C99-ism
49754         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49755         before statement.
49756         Reported by Alain Guibert.
49758 2008-08-10  Jim Meyering  <meyering@redhat.com>
49760         ensure that return value of uinttostr et al are not ignored
49761         * lib/inttostr.h (__GNUC_PREREQ): Define.
49762         (__attribute_warn_unused_result__): Define.
49763         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49765 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49767         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49768         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49770 2008-08-07  Jim Meyering  <meyering@redhat.com>
49772         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49774         * modules/mkstemp (License): Relicense under LGPLv2+.
49775         * modules/tempname (License): Likewise.
49777 2008-08-06  Bruno Haible  <bruno@clisp.org>
49779         * lib/poll.c (poll): Further micro-optimization.
49781 2008-08-06  Jim Meyering  <meyering@redhat.com>
49783         inet_pton.c: use locale-independent tolower
49784         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49785         (inet_pton6): Use c_tolower rather than tolower.
49786         * modules/inet_pton (Depends-on): Add c-ctype.
49788 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49790         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49791         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49793 2008-08-06  Jim Meyering  <meyering@redhat.com>
49795         * modules/inet_pton (License): Relicense under LGPLv2+.
49797 2008-08-03  Bruno Haible  <bruno@clisp.org>
49799         Additional non-aborting API for lock and tls.
49800         * lib/lock.h: Include <errno.h>.
49801         (glthread_lock_init): New macro/function.
49802         (gl_lock_init): Define as wrapper around glthread_lock_init.
49803         (glthread_lock_lock): New macro/function.
49804         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49805         (glthread_lock_unlock): New macro/function.
49806         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49807         (glthread_lock_destroy): New macro/function.
49808         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49809         (glthread_rwlock_init): New macro/function.
49810         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49811         (glthread_rwlock_rdlock): New macro/function.
49812         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49813         (glthread_rwlock_wrlock): New macro/function.
49814         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49815         (glthread_rwlock_unlock): New macro/function.
49816         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49817         (glthread_rwlock_destroy): New macro/function.
49818         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49819         (glthread_recursive_lock_init): New macro/function.
49820         (gl_recursive_lock_init): Define as wrapper around
49821         glthread_recursive_lock_init.
49822         (glthread_recursive_lock_lock): New macro/function.
49823         (gl_recursive_lock_lock): Define as wrapper around
49824         glthread_recursive_lock_lock.
49825         (glthread_recursive_lock_unlock): New macro/function.
49826         (gl_recursive_lock_unlock): Define as wrapper around
49827         glthread_recursive_lock_unlock.
49828         (glthread_recursive_lock_destroy): New macro/function.
49829         (gl_recursive_lock_destroy): Define as wrapper around
49830         glthread_recursive_lock_destroy.
49831         (glthread_once): New macro/function.
49832         (gl_once): Define as wrapper around glthread_once.
49833         Update function declarations.
49834         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49835         glthread_rwlock_init. Return error code.
49836         (glthread_rwlock_rdlock_multithreaded): Renamed from
49837         glthread_rwlock_rdlock. Return error code.
49838         (glthread_rwlock_wrlock_multithreaded): Renamed from
49839         glthread_rwlock_wrlock. Return error code.
49840         (glthread_rwlock_unlock_multithreaded): Renamed from
49841         glthread_rwlock_unlock. Return error code.
49842         (glthread_rwlock_destroy_multithreaded): Renamed from
49843         glthread_rwlock_destroy. Return error code.
49844         (glthread_recursive_lock_init_multithreaded): Renamed from
49845         glthread_recursive_lock_init. Return error code.
49846         (glthread_recursive_lock_lock_multithreaded): Renamed from
49847         glthread_recursive_lock_lock. Return error code.
49848         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49849         glthread_recursive_lock_unlock. Return error code.
49850         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49851         glthread_recursive_lock_destroy. Return error code.
49852         (glthread_once_call): Make static.
49853         (glthread_once_multithreaded): Renamed from glthread_once.
49854         * lib/tls.h: Include <errno.h>.
49855         (glthread_tls_key_init): New macro/function.
49856         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49857         (glthread_tls_set): New macro/function.
49858         (gl_tls_set): Define as wrapper around glthread_tls_set.
49859         (glthread_tls_key_destroy): New macro/function.
49860         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49861         Update function declarations.
49862         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49863         glthread_tls_get.
49864         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49866 2008-08-04  Eric Blake  <ebb9@byu.net>
49868         gnumakefile: use space, not TAB, outside of targets
49869         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49871 2008-08-02  Jim Meyering  <meyering@redhat.com>
49873         getdate.y: avoid locale-dependent date parsing failure
49874         In Turkish locales, getdate would fail to recognize keywords
49875         containing a lowercase "i".  The solution is not to rely on
49876         locale-sensitive case-conversion.
49877         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49878         (lookup_word): Use c_toupper in place of toupper.
49879         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49880         Reported by Vefa Bicakci <bicave@superonline.com> in
49881         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49882         * modules/getdate (Depends-on): Add c-ctype.
49884 2008-08-02  Bruno Haible  <bruno@clisp.org>
49886         * gnulib-tool (func_import): When updating or creating a .gitignore
49887         file, prepend each added line with a slash, and ignore leading slashes
49888         from the existing lines.
49889         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49891 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49893         Portability fix for GNU make 3.79.1.
49894         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49895         versions do not understand.
49897 2008-08-01  Bruno Haible  <bruno@clisp.org>
49899         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49900         * tests/test-isnanf.h (zero): New variable.
49901         (main): Avoid literal -0.0f.
49902         * tests/test-isnand.h (zero): New variable.
49903         (main): Avoid literal -0.0.
49904         * tests/test-isnanl.h (zero): New variable.
49905         (main): Avoid literal -0.0L.
49906         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49907         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49908         -0.0, -0.0L.
49909         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49910         (test_signbitd): Avoid literal -0.0.
49911         (test_signbitl): Avoid literal -0.0L.
49912         * tests/test-ceilf1.c (zero): New variable.
49913         (main): Avoid literal -0.0f.
49914         * tests/test-ceill.c (zero): New variable.
49915         (main): Avoid literal -0.0L.
49916         * tests/test-floorf1.c (zero): New variable.
49917         (main): Avoid literal -0.0f.
49918         * tests/test-floorl.c (zero): New variable.
49919         (main): Avoid literal -0.0L.
49920         * tests/test-roundf1.c (zero): New variable.
49921         (main): Avoid literal -0.0f.
49922         * tests/test-round1.c (zero): New variable.
49923         (main): Avoid literal -0.0.
49924         * tests/test-roundl.c (zero): New variable.
49925         (main): Avoid literal -0.0L.
49926         * tests/test-truncf1.c (zero): New variable.
49927         (main): Avoid literal -0.0f.
49928         * tests/test-trunc1.c (zero): New variable.
49929         (main): Avoid literal -0.0.
49930         * tests/test-truncl.c (zero): New variable.
49931         (main): Avoid literal -0.0L.
49932         * tests/test-frexp.c (zero): New variable.
49933         (main): Avoid literal -0.0.
49934         * tests/test-frexpl.c (zero): New variable.
49935         (main): Avoid literal -0.0L.
49936         * tests/test-ldexpl.c (zero): New variable.
49937         (main): Avoid literal -0.0L.
49938         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49939         (zerod, zerol): New variables.
49940         (test_function): Avoid literals -0.0, -0.0L.
49941         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49942         (zerod, zerol): New variables.
49943         (test_function): Avoid literals -0.0, -0.0L.
49944         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49945         (zerod, zerol): New variables.
49946         (test_function): Avoid literals -0.0, -0.0L.
49947         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49948         (zerod, zerol): New variables.
49949         (test_function): Avoid literals -0.0, -0.0L.
49950         * tests/test-strtod.c (zero): New variable.
49951         (main): Avoid literal -0.0.
49952         Reported by Jonathan C. Patschke <jp@centtech.com>.
49954 2008-07-31  Jim Meyering  <meyering@redhat.com>
49956         sha256.h: correct definition of SHA224_DIGEST_SIZE
49957         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49958         Reported by Paulie Pena IV <paulie4@gmail.com>.
49959         Define as 224 / 8, rather than as a literal.
49960         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49961         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49962         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49964 2008-07-31  Bruno Haible  <bruno@clisp.org>
49966         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49967         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49968         Reported by Jonathan Patschke <jp@centtech.com>.
49970 2008-07-31  Bruno Haible  <bruno@clisp.org>
49972         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49973         Reported by Paolo Bonzini <bonzini@gnu.org>.
49975 2008-07-30  Eric Blake  <ebb9@byu.net>
49977         test-strtod: allow compilation without -lm
49978         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49979         Reported by Dennis Clarke <blastwave@gmail.com>.
49981 2008-07-28  Jim Meyering  <meyering@redhat.com>
49983         bootstrap: work also when there are no .po files in po/
49984         * build-aux/bootstrap (update_po_files): Complete the change
49985         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49987 2008-07-27  Jim Meyering  <meyering@redhat.com>
49989         * users.txt: Add zile.
49991 2008-07-26  Ben Pfaff  <blp@gnu.org>
49993         Add missing dependencies on new m4/exponent[fdl].m4 files.
49994         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49995         * modules/isnand-nolibm: Add m4/exponentd.m4.
49996         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49997         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49998         m4/isnan[fdl].m4, because the macros actually used moved.
49999         Reported by Jim Meyering.
50001 2008-07-14  Ben Pfaff  <blp@gnu.org>
50003         Add isinf module.
50004         * lib/isinf.c: New file.
50005         * lib/math.in.h: Define isinf macro if we have decided to replace
50006         it.
50007         * m4/isinf.m4: New file.
50008         * m4/math_h.m4: Initialize and substitute variables for isinf
50009         module.
50010         * modules/isinf: New file.
50011         * modules/isinf-tests: New file.
50012         * modules/math: Add substitutions for new module.
50013         * tests/test-isinf.c: New file.
50014         * doc/posix-functions/isinf.texi: Mention new module.
50015         * MODULES.html.sh: Mention new module.
50017 2008-07-14  Ben Pfaff  <blp@gnu.org>
50019         Factor out some macros for use by additional modules.
50020         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50021         exponentf.m4.
50022         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50023         exponentd.m4.
50024         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50025         file exponentl.m4.
50026         * m4/exponentf.m4: New file.
50027         * m4/exponentd.m4: New file.
50028         * m4/exponentl.m4: New file.
50029         * modules/isnanf: Use new file m4/exponentf.m4.
50030         * modules/isnand: Use new file m4/exponentd.m4.
50031         * modules/isnanl: Use new file m4/exponentl.m4.
50033 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50035         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50036         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50037         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50038         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50040         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50041         readlink on platforms without PATH_MAX.
50043 2008-07-21  Eric Blake  <ebb9@byu.net>
50045         Warn, not fail, on stale version.
50046         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50048         Don't allow installation with stale devel version number.
50049         * top/GNUmakefile (_is-install-target): New macro.
50050         (_curr-ver): Forbid installation with stale version number.
50052 2008-07-20  Bruno Haible  <bruno@clisp.org>
50054         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50055         TESTS_ENVIRONMENT.
50056         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50058 2008-07-20  Bruno Haible  <bruno@clisp.org>
50060         * lib/c-stack.h (c_stack_action): Add documentation.
50061         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50063 2008-07-20  Bruno Haible  <bruno@clisp.org>
50065         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50066         * modules/readlink (License): Likewise.
50068 2008-07-17  Eric Blake  <ebb9@byu.net>
50070         * modules/c-stack (Link): Fix typo.
50072         Make c-stack use libsigsegv, when available.
50073         * modules/c-stack (Depends-on): Add libsigsegv.
50074         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50075         needed.
50076         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50077         (segv_handler, overflow_handler, c_stack_action)
50078         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50079         implementation when libsigsegv is available, but only when using
50080         the library is necessary.
50081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50082         comment, explaining why XSI check fails on Linux.
50083         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50084         * tests/test-c-stack2.sh: Tweak skip message.
50085         * NEWS: Document new link-time requirements.
50087 2008-07-16  Eric Blake  <ebb9@byu.net>
50089         c-stack: Expose false positives when not using libsigsegv.
50090         * modules/c-stack-tests (Files): Expand test.
50091         * tests/test-c-stack.c (main): Add means to conditionally trigger
50092         non-overflow SIGSEGV.
50093         * tests/test-c-stack2.sh: New file.
50095 2008-07-14  Bruno Haible  <bruno@clisp.org>
50097         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50098         Reported by Eric Blake.
50100 2008-07-14  Sam Steingold  <sds@gnu.org>
50101             Bruno Haible  <bruno@clisp.org>
50103         New module libsigsegv.
50104         * modules/libsigsegv: New file.
50105         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50106         modifications.
50107         * MODULES.html.sh (Signal handling): New section.
50109 2008-07-14  Bruno Haible  <bruno@clisp.org>
50111         * modules/unictype/ctype-* (Description): Add the word "function".
50112         Improves the resulting doc in MODULES.html.
50114 2008-07-12  Ben Pfaff  <blp@gnu.org>
50116         Add longlong module.
50117         * modules/longlong: New file.
50119 2008-07-12  Bruno Haible  <bruno@clisp.org>
50121         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50122         to empty.
50124 2008-07-10  Ben Pfaff  <blp@gnu.org>
50126         Add isnan module.
50127         * doc/posix-functions/isnan.texi: Mention new module.
50128         * lib/math.in.h: Define isnan macro if we have decided to replace
50129         it.
50130         * m4/isnan.m4: New file.
50131         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50132         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50133         also.
50134         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50135         redundancy.
50136         * m4/math_h.m4: Initialize and substitute variables for isnan
50137         module.
50138         * modules/isnan: New file.
50139         * modules/isnan-tests: New file.
50140         * modules/math: Add substitutions for new module.
50141         * tests/test-isnan.c: New file.
50142         * MODULES.html.sh: Mention new module.
50144 2008-07-10  Ben Pfaff  <blp@gnu.org>
50146         Add isnanf module.
50147         * lib/isnanf.m4: New file.
50148         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50149         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50150         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50151         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50152         * modules/isnanf: New file.
50153         * modules/isnanf-tests: New file.
50154         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50155         files.
50156         * tests/test-isnanf-nolibm.c: factored most of its contents into
50157         new file tests/test-isnanf.h.
50158         * tests/test-isnanf.h: New file.
50159         * tests/test-isnanf.c: New file.
50160         * MODULES.html.sh: Mention new module.
50161         * doc/glibc-functions/isnanf.texi: Mention new module.
50163 2008-07-10  Ben Pfaff  <blp@gnu.org>
50165         Add isnand module.
50166         * lib/isnand.h: New file.
50167         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50168         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50169         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50170         functionality also.
50171         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50172         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50173         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50174         * modules/isnand: New file.
50175         * modules/isnand-tests: New file.
50176         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50177         files.
50178         * tests/test-isnand-nolibm.c: factored most of its contents into
50179         new file tests/test-isnand.h.
50180         * tests/test-isnand.h: New file.
50181         * tests/test-isnand.c: New file.
50182         * MODULES.html.sh: Mention new module.
50184 2008-07-10  Ben Pfaff  <blp@gnu.org>
50186         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50187         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50188         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50189         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50190         * modules/isnanf-nolibm: Update references to renamed files.
50191         * modules/isnand-nolibm: Likewise.
50192         * modules/isnanf-nolibm-tests: Likewise.
50193         * modules/isnand-nolibm-tests: Likewise.
50194         * lib/frexp.c: Likewise.
50195         * lib/isfinite.c: Likewise.
50196         * lib/signbitd.c: Likewise.
50197         * lib/signbitf.c: Likewise.
50198         * lib/vasnprintf.c: Likewise.
50199         * tests/test-ceilf1.c: Likewise.
50200         * tests/test-ceilf2.c: Likewise.
50201         * tests/test-floorf1.c: Likewise.
50202         * tests/test-floorf2.c: Likewise.
50203         * tests/test-frexp.c: Likewise.
50204         * tests/test-round1.c: Likewise.
50205         * tests/test-round2.c: Likewise.
50206         * tests/test-roundf1.c: Likewise.
50207         * tests/test-strtod.c: Likewise.
50208         * tests/test-trunc1.c: Likewise.
50209         * tests/test-trunc2.c: Likewise.
50210         * tests/test-truncf1.c: Likewise.
50211         * tests/test-truncf2.c: Likewise.
50212         * NEWS: Mention the renamed header files.
50214 2008-07-11  Jim Meyering  <meyering@redhat.com>
50216         vc-list-files: make the last-resort awk code more portable
50217         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50218         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50219         does not support it.
50221 2008-07-10  Eric Blake  <ebb9@byu.net>
50223         Work with tar's bootstrap.
50224         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50225         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50226         an m4 comment.
50228 2008-07-09  Jim Meyering  <meyering@redhat.com>
50230         posix-shell.m4: fix typo that made this test malfunction
50231         * m4/posix-shell.m4: Remove capitalization in variable name.
50233 2008-07-08  Bruno Haible  <bruno@clisp.org>
50235         * m4/onceonly.m4: Update comments.
50236         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50238 2008-07-04  Jim Meyering  <meyering@redhat.com>
50240         * users.txt: Add vc-dwim.
50241         (bison, coreutils): Use the gitweb URL.
50243 2008-07-03  Jim Meyering  <meyering@redhat.com>
50245         * users.txt: Add libffcall.  From Sam Steingold.
50247 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50249         getdate.y: do not ignore TZ with relative day, month or year offset
50250         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50251         relative-date-handling, since otherwise, the latter would clobber the
50252         sole output (an updated Start value) of the tz-handling block.
50253         * tests/test-getdate.c: Tests for the fix
50255 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50257         Recognize 'foo_LIBRARIES += libgnu.a'.
50258         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50259         makefile snippet has already specified an installation location,
50260         also using '+='.
50262 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50264         getdate.y: factor out common actions
50265         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50266         Use them in place of open-coded actions.
50268 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50270         Add self-test for getdate module.
50271         * modules/getdate-tests: New file.
50272         * tests/test-getdate.c: New file.
50274 2008-06-29  Bruno Haible  <bruno@clisp.org>
50276         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50277         .gitignore.
50278         Reported by Sylvain Beucler <beuc@beuc.net>.
50280 2008-06-29  Bruno Haible  <bruno@clisp.org>
50282         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50283         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50285 2008-06-29  Bruno Haible  <bruno@clisp.org>
50287         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50288         EXTRA_DIST.
50289         Reported by Sylvain Beucler <beuc@beuc.net>.
50291 2008-06-26  Jim Meyering  <meyering@redhat.com>
50293         make several modules depend on the "open" module
50294         This provides slightly increased consistency when opening-for-write
50295         the name of a non-directory spelled with a trailing slash.
50296         * modules/chdir-safer: Likewise.
50297         * modules/chown: Likewise.
50298         * modules/clean-temp: Likewise.
50299         * modules/copy-file: Likewise.
50300         * modules/fchdir: Likewise.
50301         * modules/fcntl-safer: Likewise.
50302         * modules/pipe: Likewise.
50303         * modules/utime: Likewise.
50304         Prompted by Eric Blake and Bruno Haible.
50306 2008-06-24  Andreas Schwab  <schwab@suse.de>
50308         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50309         literals can be used as initializers for global variables.
50311 2008-06-23  Eric Blake  <ebb9@byu.net>
50313         Make gnulib-cache.m4 easier to diff.
50314         * gnulib-tool (func_import): Allow newlines when reading cached
50315         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50317 2008-06-23  Bruno Haible  <bruno@clisp.org>
50319         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50320         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50321         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50322         m4/signalblocking.m4.
50323         (gl_PREREQ_SIGACTION): Don't invoke it.
50324         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50325         gl_PREREQ_SIG_HANDLER_H.
50326         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50327         Don't check for sigaction here.
50329 2008-06-23  Bruno Haible  <bruno@clisp.org>
50331         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50332         (install_handlers): Don't set the SA_RESETHAND flag.
50334 2008-06-23  Bruno Haible  <bruno@clisp.org>
50336         * m4/sigaction.m4: Comment fixes.
50337         * lib/signal.in.h: Likewise.
50339 2008-06-23  Eric Blake  <ebb9@byu.net>
50341         Fix typo.
50342         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50344         Avoid SA_ namespace.
50345         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50346         Reported by Ralf Wildenhues.
50348         Avoid test failure due to SA_RESTORER.
50349         * tests/test-sigaction.c (SA_MASK): New macro.
50350         (main): Avoid failing due to extension flags being set.
50351         Reported by Jim Meyering.
50353         Revert use of sig-handler.h in sigprocmask.c.
50354         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50355         it requires the existence of struct sigaction.
50356         * lib/sigprocmask.c (handler_t): Restore typedef.
50357         (rpl_signal, old_handlers): Use local type.
50359 2008-06-22  Bruno Haible  <bruno@clisp.org>
50361         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50362         conditionally.
50363         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50365 2008-06-22  Bruno Haible  <bruno@clisp.org>
50367         * doc/posix-functions/siginterrupt.texi: Move note.
50369         * lib/signal.in.h (SA_RESTART): New macro.
50370         * lib/sigaction.c: Update comment.
50372         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50374         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50375         (gl_PREREQ_SIGPROCMASK): Invoke it.
50376         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50378         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50380         * lib/sigprocmask.c: Update a comment.
50382 2008-06-21  Eric Blake  <ebb9@byu.net>
50384         Use sigaction module rather than signal().
50385         * modules/c-stack (Depends-on): Add sigaction.
50386         * modules/fatal-signal (Depends-on): Likewise.
50387         * modules/nanosleep (Depends-on): Likewise.
50388         * modules/sigprocmask (Files): Add sig-handler.h.
50389         * modules/sigaction (Files): Likewise.
50390         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50391         Eggert.
50392         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50393         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50394         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50395         (init_fatal_signals): Likewise.
50396         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50397         (siginterrupt): Delete fallback.
50398         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50399         instead.
50400         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50401         siginterrupt.
50403         New module sigaction, for mingw.
50404         * modules/sigaction: New module...
50405         * modules/sigaction-tests: ...and its test.
50406         * m4/sigaction.m4: New file.
50407         * lib/sigaction.c: Likewise.
50408         * tests/test-sigaction.c: Likewise.
50409         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50410         * modules/signal (Makefile.am): Likewise.
50411         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50412         needed.
50413         * doc/posix-headers/signal.texi (signal.h): Mention provided
50414         types.
50415         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50416         that sigaction is preferable.
50417         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50418         module.
50419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50420         sigaction.
50422         Improve robustness of sigprocmask by overriding signal.
50423         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50424         is in use.
50425         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50426         (SIGKILL, SIGSTOP): Provide fallbacks.
50427         (rpl_signal): Implement.
50428         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50429         signal can be called inside handlers.
50431         Fix nanosleep module on mingw.
50432         * modules/nanosleep (Depends-on): Add sys_select.
50433         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50435         Fix licensing of sigprocmask.
50436         * modules/raise (License): Relicense as LGPL.
50438 2008-06-21  Bruno Haible  <bruno@clisp.org>
50440         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50441         result if it contains question marks.
50442         Reported by Michael Geng <linux@michaelgeng.de>.
50444 2008-06-19  Bruno Haible  <bruno@clisp.org>
50446         Fix CVS-ism.
50447         * doc/gnulib.texi: Include updated-stamp.texi.
50448         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50449         (updated-stamp.texi): New rule.
50450         (gnulib.info): Depend on it.
50451         * doc/.gitignore: Add updated-stamp.texi.
50452         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50454 2008-06-19  Bruno Haible  <bruno@clisp.org>
50456         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50457         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50459 2008-06-19  Eric Blake  <ebb9@byu.net>
50461         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50462         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50463         Reported by Stepan Kasal.
50465 2008-06-18  Bruno Haible  <bruno@clisp.org>
50467         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50468         Reported by Eric Blake.
50470 2008-06-18  Eric Blake  <ebb9@byu.net>
50472         Work around cygwin 1.5.25 strsignal bug.
50473         * tests/test-strsignal.c: Allow for const char *.
50474         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50476 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50478         * users.txt: Update URL to article and add author/date
50479         information.
50481 2008-06-17  Bruno Haible  <bruno@clisp.org>
50483         New macro gl_DISABLE_THREADS.
50484         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50485         if the user did not pass --enable-threads or --disable-threads option.
50486         (gl_DISABLE_THREADS): New macro.
50487         Reported by Eric Blake <ebb9@byu.net>.
50489 2008-06-17  Bruno Haible  <bruno@clisp.org>
50491         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50492         when the macro ignores it.
50493         Based on a patch by Eric Blake <ebb9@byu.net>.
50495 2008-06-17  Bruno Haible  <bruno@clisp.org>
50497         * modules/tls (License): Change to LGPLv2+.
50498         Reported by Eric Blake.
50500 2008-06-17  Eric Blake  <ebb9@byu.net>
50502         Simplify c-stack prerequisites.
50503         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50504         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50505         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50506         check.
50507         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50508         <sys/resource.h>.
50510         Move c-stack test into testsuite.
50511         * modules/c-stack-tests: New file.
50512         * lib/c-stack.c [DEBUG]: Move test program...
50513         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50514         fail test if sigaltstack is lacking.
50515         * tests/test-c-stack.sh: New driver file.
50517 2008-06-16  Eric Blake  <ebb9@byu.net>
50519         Use raise module consistently.
50520         * modules/fatal-signal (Depends-on): Add raise.
50521         * modules/sigprocmask (Depends-on): Likewise.
50522         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50523         * lib/sigprocmask.c (sigprocmask): Likewise.
50524         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50525         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50527         Fix compliance bug in sigpending.
50528         * lib/sigprocmask.c (sigpending): Return pending array via
50529         parameter, not return value.
50531 2008-06-14  Eric Blake  <ebb9@byu.net>
50533         Improve obstack-printf test code.
50534         * tests/test-obstack-printf.c (test_function): Fix comment, and
50535         simplify usage of obstack_* in macros.  Add a test for coverage.
50536         Reported by Bruno Haible.
50538 2008-06-14  Bruno Haible  <bruno@clisp.org>
50540         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50541         array size as a constant, not as a const variable.
50542         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50543         AC_USE_SYSTEM_EXTENSIONS.
50544         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50545         Test whether the obstack_printf function actually exists.
50546         * modules/obstack-printf (Depends-on): Add extensions.
50547         (Include): Remove obstack.h.
50548         * modules/obstack-printf-posix (Depends-on): Add extensions.
50549         (Include): Remove obstack.h.
50551 2008-06-13  Eric Blake  <ebb9@byu.net>
50553         Add obstack-printf and obstack-printf-posix modules.
50554         * modules/obstack-printf: New file.
50555         * modules/obstack-printf-posix: Likewise.
50556         * MODULES.html.sh (Misc): Mention them.
50557         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50558         Likewise.
50559         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50560         Likewise.
50561         * modules/stdio (Makefile.am): Accomodate new modules.
50562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50563         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50564         Declare.
50565         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50566         functions.
50567         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50568         (gl_REPLACE_OBSTACK_PRINTF): New macros
50569         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50570         * tests/test-obstack-printf.c: New file.
50571         * modules/obstack-printf-tests: Likewise.
50572         * modules/obstack-printf-posix-tests: Likewise.
50574 2008-06-11  Bruno Haible  <bruno@clisp.org>
50576         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50577         * lib/open.c: Include errno.h.
50578         (open): Fail when attempting to write to a file that has a trailing
50579         slash.
50580         * tests/test-open.c (main): Test against trailing slash bug.
50581         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50583 2008-06-10  Bruno Haible  <bruno@clisp.org>
50585         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50586         for $? to work inside the trap command, with various /bin/sh-s.
50587         * tests/test-vc-list-files-cvs.sh: Likewise.
50589 2008-06-10  Bruno Haible  <bruno@clisp.org>
50591         * lib/acl-internal.h: Don't include gettext.h here.
50592         * lib/set-mode-acl.c: Include gettext.h here.
50593         * lib/copy-acl.c: Likewise.
50595 2008-06-10  Bruno Haible  <bruno@clisp.org>
50597         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50598         * lib/wait-process.c (wait_subprocess): Likewise.
50599         * lib/execute.h (execute): Add termsigp argument.
50600         * lib/execute.c (execute): Likewise.
50601         * lib/csharpcomp.c (compile_csharp_using_pnet,
50602         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50603         * lib/csharpexec.c (execute_csharp_using_pnet,
50604         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50605         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50606         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50607         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50608         is_jikes_present): Update.
50609         * lib/javaexec.c (execute_java_class): Update.
50610         * lib/javaversion.c (execute_and_read_line): Update.
50611         * NEWS: Document the changes.
50612         Reported by Eric Blake.
50614 2008-06-10  Eric Blake  <ebb9@byu.net>
50616         Add missing include.
50617         * tests/test-strstr.c (includes): Add <signal.h>.
50618         * tests/test-strcasestr.c (includes): Likewise.
50619         * tests/test-memmem.c (includes): Likewise.
50621 2008-06-10  Bruno Haible  <bruno@clisp.org>
50623         * lib/wait-process.c (wait_subprocess): Add an assertion.
50625 2008-06-10  Bruno Haible  <bruno@clisp.org>
50627         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50629 2008-06-10  Bruno Haible  <bruno@clisp.org>
50631         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50632         using alarm().
50633         * tests/test-strcasestr.c (main): Likewise.
50634         * tests/test-strstr.c (main): Likewise.
50636 2008-06-09  Bruno Haible  <bruno@clisp.org>
50638         Work around the Solaris 10 ACE ACLs ABI change.
50639         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50640         declare if ACL_NO_TRIVIAL is present.
50641         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50642         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50643         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50644         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50645         define if ACL_NO_TRIVIAL is present.
50646         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50647         and use the current ABI.
50648         (file_has_acl): Use same #if condition as elsewhere.
50649         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50650         in use, and use the current ABI.
50651         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50652         Reported by Jim Meyering.
50654 2008-06-09  Eric Blake  <ebb9@byu.net>
50656         Work around environments that (stupidly) ignore SIGALRM.
50657         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50658         before using alarm().
50659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50660         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50661         Reported by Ian Beckwith <ianb@erislabs.net>.
50663         Produce autobuild blurb earlier in log.
50664         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50666 2008-06-09  Jim Meyering  <meyering@redhat.com>
50667         and OndÅ™ej Vašík  <ovasik@redhat.com>
50669         utimens.c: correct kernel bug work-around
50670         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50671         failure, not success, and the kernel bug we're trying to work
50672         around affects not just the utimensat call, but also the fallback
50673         futimens call.
50674         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50675         not success.
50676         [HAVE_FUTIMENS]: Use the same work-around, here.
50678 2008-06-09  Jim Meyering  <meyering@redhat.com>
50680         add more guards around definition of ACE_-related code
50681         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50682         ALLOW and ACE_OWNER are also defined.
50684 2008-06-08  Bruno Haible  <bruno@clisp.org>
50686         * lib/acl-internal.h: Add me as co-author.
50687         * lib/file-has-acl.c: Likewise.
50688         * lib/set-mode-acl.c: Likewise.
50689         * lib/copy-acl.c: Likewise.
50691 2008-06-08  Bruno Haible  <bruno@clisp.org>
50693         Add support for AIX ACLs.
50694         * lib/acl-internal.h (acl_nontrivial): New declaration.
50695         * lib/file-has-acl.c (acl_nontrivial): New function.
50696         (file_has_acl): Add implementation using AIX 4 ACL API.
50697         * lib/set-mode-acl.c (qset_acl): Likewise.
50698         * lib/copy-acl.c (qcopy_acl): Likewise.
50700 2008-06-08  Bruno Haible  <bruno@clisp.org>
50702         Add support for HP-UX ACLs.
50703         * lib/acl-internal.h (acl_nontrivial): New declaration.
50704         * lib/file-has-acl.c (acl_nontrivial): New function.
50705         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50706         * lib/set-mode-acl.c (qset_acl): Likewise.
50707         * lib/copy-acl.c (qcopy_acl): Likewise.
50709 2008-06-08  Bruno Haible  <bruno@clisp.org>
50711         Add support for Cygwin ACLs.
50712         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50713         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50714         the chmod_or_fchmod call.
50715         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50717 2008-06-08  Bruno Haible  <bruno@clisp.org>
50719         Fix bug with setuid modes in Solaris 10+ code.
50720         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50721         succeeded, when the mode contains some special bits.
50723 2008-06-08  Bruno Haible  <bruno@clisp.org>
50725         Add support for Solaris 7..10 ACLs.
50726         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50727         declarations.
50728         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50729         functions.
50730         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50731         * lib/set-mode-acl.c (qset_acl): Likewise.
50732         * lib/copy-acl.c (qcopy_acl): Likewise.
50734 2008-06-08  Bruno Haible  <bruno@clisp.org>
50736         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50737         declaration.
50738         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50739         (acl_access_nontrivial): Remove MacOS X case.
50740         (file_has_acl): Use acl_extended_nontrivial.
50741         * lib/copy-acl.c (qcopy_acl): Likewise.
50743 2008-06-08  Bruno Haible  <bruno@clisp.org>
50745         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50747 2008-06-08  Jim Meyering  <meyering@redhat.com>
50749         * modules/acl (Maintainer): Add Bruno Haible.
50751 2008-06-07  Bruno Haible  <bruno@clisp.org>
50753         Improve support for Tru64 ACLs.
50754         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50755         ACL on OSF/1.
50757 2008-06-07  Bruno Haible  <bruno@clisp.org>
50759         Add support for MacOS X ACLs.
50760         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50761         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50762         * lib/set-mode-acl.c (qset_acl): Likewise.
50763         * lib/copy-acl.c (qcopy_acl): Likewise.
50765 2008-06-07  Bruno Haible  <bruno@clisp.org>
50767         Fix memory leak introduced on 2008-05-22.
50768         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50769         use.
50771 2008-06-07  Bruno Haible  <bruno@clisp.org>
50773         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50774         to construct an empty ACL.
50776 2008-06-07  Bruno Haible  <bruno@clisp.org>
50778         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50779         precisely.
50780         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50782 2008-06-07  Bruno Haible  <bruno@clisp.org>
50784         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50785         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50787 2008-06-07  Bruno Haible  <bruno@clisp.org>
50789         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50790         regardless of POSIX.
50791         * doc/posix-functions/_longjmp.texi: Likewise.
50792         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50793         SystemV platform in this case.
50795 2008-06-06  Eric Blake  <ebb9@byu.net>
50797         Document abort() bugs.
50798         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50800         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50801         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50802         sigsetjmp.
50803         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50804         siglongjmp, but only as a macro.
50805         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50806         is obsolete.
50807         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50809         Tweak documentation to cover cygwin argz bugs.
50810         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50811         argz bug fix; no code change needed since no cygwin releases
50812         occurred between the last fix and the bug being tested.
50813         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50814         module and recently fixed cygwin bugs.
50815         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50816         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50817         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50818         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50819         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50820         Likewise.
50821         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50822         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50823         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50824         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50825         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50826         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50827         Likewise.
50829         Avoid gcc warning on cygwin.
50830         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50831         !ACL_NO_TRIVIAL]: Avoid unused variable.
50833 2008-06-05  Eric Blake  <ebb9@byu.net>
50835         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50836         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50837         git-version-gen fails to come up with a version.
50838         Reported by Simon Josefsson.
50840 2008-06-05  Jim Meyering  <meyering@redhat.com>
50841             Paul Eggert  <eggert@cs.ucla.edu>
50843         utimens.c: work around a probable Linux kernel bug
50844         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50845         appears to be a kernel bug that causes utimensat to return 280
50846         instead of 0, indicating success.
50848 2008-06-04  Bruno Haible  <bruno@clisp.org>
50850         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50851         2008-06-01 commit.
50853 2008-06-04  Bruno Haible  <bruno@clisp.org>
50855         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50856         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50857         (file_has_acl): Use it. Save errno afterwards.
50858         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50860 2008-06-03  Bruno Haible  <bruno@clisp.org>
50862         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50863         draft code. Simplify #ifs.
50864         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50865         Put Solaris code after POSIX-draft code. Fix comments regarding
50866         Solaris 10, HP-UX. Mention Cygwin.
50867         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50869 2008-06-03  Eric Blake  <ebb9@byu.net>
50871         Provide fallback for older kernels.
50872         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50873         Provide runtime fallback if kernel lacks support.
50874         Reported by Mike Frysinger.
50876 2008-06-02  Bruno Haible  <bruno@clisp.org>
50878         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50879         it exists.
50881 2008-06-02  Bruno Haible  <bruno@clisp.org>
50883         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50884         * lib/copy-acl.c (qcopy_acl): Update comment.
50886 2008-06-02  Bruno Haible  <bruno@clisp.org>
50888         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50889         like ACL APIs.
50891 2008-06-02  Bruno Haible  <bruno@clisp.org>
50893         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50894         * tests/test-set-mode-acl.sh: Likewise.
50895         * tests/test-copy-acl.sh: Likewise.
50896         * tests/test-copy-file.sh: Likewise.
50898 2008-06-02  Bruno Haible  <bruno@clisp.org>
50900         * tests/test-file-has-acl.sh: Remove unused code.
50902 2008-06-01  Bruno Haible  <bruno@clisp.org>
50904         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50905         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50906         messages.
50907         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50909 2008-06-01  Bruno Haible  <bruno@clisp.org>
50911         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50912         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50913         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50914         APIs.
50915         * modules/acl-tests (configure.ac): Remove tests now contained in
50916         m4/acl.m4.
50918 2008-06-02  Jim Meyering  <meyering@redhat.com>
50920         announce-gen: use a better key-server host name
50921         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50922         it may be more consistently reliable.  Suggested by Werner Koch
50923         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50925 2008-06-01  Bruno Haible  <bruno@clisp.org>
50927         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50928         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50930 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50932         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50934 2008-06-01  Bruno Haible  <bruno@clisp.org>
50936         New ACL tests.
50937         * tests/test-file-has-acl.sh: New file.
50938         * tests/test-file-has-acl.c: New file.
50939         * tests/test-set-mode-acl.sh: New file.
50940         * tests/test-set-mode-acl.c: New file.
50941         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50942         * tests/test-copy-acl.c: New file.
50943         * modules/acl-tests: New file, based on modules/copy-file-tests.
50944         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50945         (Depends-on): Add acl-tests.
50946         (configure.ac): Remove checks.
50947         (Makefile.am): Don't create test-sameacls program here any more.
50949 2008-06-01  Bruno Haible  <bruno@clisp.org>
50951         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50952         * tests/test-sameacls.c: Include progname.h.
50953         (main): Invoke set_program_name. Portability fixes for MacOS X,
50954         Solaris, HP-UX.
50956 2008-06-01  Bruno Haible  <bruno@clisp.org>
50958         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50959         function.
50960         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50962 2008-06-01  Bruno Haible  <bruno@clisp.org>
50964         * modules/rpmatch (Depends-on): Add strdup.
50966 2008-06-01  Bruno Haible  <bruno@clisp.org>
50968         * lib/pipe.c: Include unistd-safer.h.
50969         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50970         * modules/pipe (Depends-on): Add unistd-safer.
50972 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50974         * modules/autobuild (configure.ac): Call AB_INIT.
50976 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50978         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50979         Suggested by Bruno Haible <bruno@clisp.org>.
50981 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50983         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50984         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50985         <bruno@clisp.org>.
50987 2008-05-29  Eric Blake  <ebb9@byu.net>
50989         Prefer new POSIX 200x interfaces over futimesat.
50990         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50991         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50992         when available.
50993         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50995 2008-05-28  Bruno Haible  <bruno@clisp.org>
50997         * modules/stpcpy (License): Change to LGPLv2+.
50998         Requested by David Lutterkort <dlutter@redhat.com>.
51000 2008-05-27  Bruno Haible  <bruno@clisp.org>
51002         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51003         current mingw.
51004         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51006 2008-05-27  Bruno Haible  <bruno@clisp.org>
51008         * modules/iconv_open (Link): New section, from module 'iconv'.
51009         * modules/striconv (Link): Likewise.
51010         * modules/striconveh (Link): Likewise.
51011         * modules/xstriconv (Link): Likewise.
51012         * modules/unicodeio (Link): Likewise.
51013         * modules/propername (Link): Likewise.
51014         Reported by Jim Meyering.
51016 2008-05-26  Jim Meyering  <meyering@redhat.com>
51018         sha256: do not artificially restrict buffer length to be < 2^32
51019         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51020         uint32_t to size_t.
51021         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51022         to match.
51024         avoid unaligned access errors, e.g., on sparc
51025         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51026         direct access through a possibly-unaligned uint64* pointer.
51027         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51028         direct access through a possibly-unaligned uint32* pointer.
51029         Prompted by this patch from Tom "spot" Callaway:
51030         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51032         sha512.c: fix typo in comment
51033         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51035 2008-05-25  Bruno Haible  <bruno@clisp.org>
51037         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51038         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51039         (Makefile.am): Update lib_SOURCES.
51041 2008-05-25  Bruno Haible  <bruno@clisp.org>
51043         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51045 2008-05-25  Jim Meyering  <meyering@redhat.com>
51047         useless-if-before-free: freed expr may have white-space differences
51048         * build-aux/useless-if-before-free: Recognize cases in which the
51049         freed expression differs from the tested one in embedded white
51050         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51051         $1 was used, so we can't make any regexp shy.  Improved tests now
51052         detect this.
51054         useless-if-before-free: accept white space in the expression.
51055         * build-aux/useless-if-before-free: For now, any white space
51056         in the expression must be identical in the free argument.
51058         useless-if-before-free: efficiency tweak
51059         * build-aux/useless-if-before-free: Make the expression-matching
51060         regexp "shy".
51061         Make the *outer* regexp shy, not the expr-matching one.
51063         update code-in-comment to accept cast of free arg
51064         * build-aux/useless-if-before-free: Update regexp.
51066 2008-05-25  Bruno Haible  <bruno@clisp.org>
51068         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51069         * modules/copy-file-tests (Files, Makefile.am): Update.
51070         * tests/test-copy-file.c (func_test_copy): Update.
51072 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51074         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51076 2008-05-23  Bruno Haible  <bruno@clisp.org>
51078         Improve support for ACLs on OSF/1.
51079         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51080         Remove fallback for unknown flavors of ACLs.
51082 2008-05-22  Bruno Haible  <bruno@clisp.org>
51084         Add support for ACLs on OSF/1.
51085         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51086         replacements.
51087         (acl_free_text): New macro fallback.
51088         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51089         acl_free.
51090         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51091         acl_free_text function. Require AC_C_INLINE.
51093 2008-05-22  Bruno Haible  <bruno@clisp.org>
51095         Make copy_acl work on MacOS X 10.5.
51096         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51097         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51098         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51099         If MODE_INSIDE_ACL, don't assume that every system has the same text
51100         representation for ACLs as FreeBSD.
51101         * lib/copy-acl.c (copy_acl): Add support for platforms with
51102         !MODE_INSIDE_ACL.
51103         * lib/file-has-acl.c (file_has_acl): Likewise.
51104         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51105         FreeBSD, MacOS X, or IRIX, respectively.
51107 2008-05-22  Bruno Haible  <bruno@clisp.org>
51109         * lib/acl.h: Don't include <sys/acl.h>.
51110         (GETACLCNT): Move fallback to lib/acl-internal.h.
51111         * lib/acl-internal.h: Include <sys/acl.h> here.
51112         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51114 2008-05-22  Bruno Haible  <bruno@clisp.org>
51116         Split off copy_acl function to separate file.
51117         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51118         * lib/acl.c (copy_acl): Moved function to separate file.
51119         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51120         * modules/acl (Files): Add lib/copy-acl.c.
51121         (Makefiles.am): Augment lib_SOURCES.
51123 2008-05-22  Bruno Haible  <bruno@clisp.org>
51125         * modules/copy-file-tests: New file.
51126         * tests/test-copy-file.sh: New file.
51127         * tests/test-copy-file.c: New file.
51128         * tests/test-copy-file-sameacls.c: New file.
51130 2008-05-22  Eric Blake  <ebb9@byu.net>
51132         Avoid gcc warning.
51133         * tests/test-memcmp.c (main): Pass NULL indirectly.
51135 2008-05-21  Bruno Haible  <bruno@clisp.org>
51137         Add reference doc about ACLs.
51138         * doc/acl-resources.txt: New file.
51139         * doc/acl-cygwin.txt: New file.
51141 2008-05-21  Bruno Haible  <bruno@clisp.org>
51143         Avoid one more warning from gcc.
51144         * lib/vasnprintf.c (IF_LINT): Update comments.
51145         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51147 2008-05-21  Jim Meyering  <meyering@redhat.com>
51149         avoid a warning from gcc
51150         * lib/vasnprintf.c (IF_LINT): Define.
51151         (scale10_round_decimal_long_double):
51152         Use it to avoid a "may be used uninitialized" warning.
51153         (scale10_round_decimal_double): Likewise.
51155 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51157         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51158         declared.
51160 2008-05-20  Bruno Haible  <bruno@clisp.org>
51162         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51163         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51165 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51167         * modules/memcmp-tests: New file.
51168         * tests/test-memcmp.c: New file.
51170 2008-05-19  Bruno Haible  <bruno@clisp.org>
51172         * modules/propername (Notice, configure.ac): Put quoted "..." into
51173         --keyword option.
51174         * lib/propername.h: Update comments accordingly.
51175         Reported by Eric Blake.
51177 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51179         * modules/getpass-gnu (Depends-on): Add fseeko.
51181 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51183         * modules/base64-tests: New file.
51185 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51187         * lib/base64.c (base64_decode_ctx): If a decode context structure
51188         was passed in use it to ignore newlines.  If a context structure
51189         was _not_ passed in, continue to treat newlines as garbage (this
51190         is the historical behavior).  Formerly base64_decode.
51191         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51192         takes a decode context structure.
51193         * lib/base64.h (base64_decode): Macro for four-argument calls.
51194         (base64_decode_alloc): Likewise.
51195         * lib/base64.c (base64_decode_ctx): If a decode context structure
51196         was passed in use it to ignore newlines.  If a context structure
51197         was _not_ passed in, continue to treat newlines as garbage (this
51198         is the historical behavior).  Formerly base64_decode.
51199         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51200         takes a decode context structure.
51201         * lib/base64.h (base64_decode): Macro for four-argument calls.
51202         (base64_decode_alloc): Likewise.
51204 2008-05-19  Jim Meyering  <meyering@redhat.com>
51206         avoid a warning from gcc
51207         * lib/trim.c (IF_LINT): Define.
51208         (trim2): Use it to avoid a "may be used uninitialized" warning.
51210         Fix doc typo.
51211         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51213 2008-05-19  Bruno Haible  <bruno@clisp.org>
51215         * doc/glibc-functions/getpass.texi: Document limits of other
51216         implementations.
51218 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51219             Bruno Haible <bruno@clisp.org>
51221         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51223 2008-05-18  Bruno Haible  <bruno@clisp.org>
51225         * modules/propername: New file, from GNU gettext.
51226         * lib/propername.h: New file, from GNU gettext.
51227         * lib/propername.c: New file, from GNU gettext.
51228         * MODULES.html.sh (Internationalization functions): Add propername.
51230 2008-05-16  Jim Meyering  <meyering@redhat.com>
51231             Bruno Haible  <bruno@clisp.org>
51233         Avoid some warnings from "gcc -Wshadow".
51234         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51236 2008-05-15  Eric Blake  <ebb9@byu.net>
51238         Extend previous patch to cygwin 1.7.0.
51239         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51240         fast implementation in cygwin >= 1.7.0.
51241         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51244 2008-05-15  Bruno Haible  <bruno@clisp.org>
51246         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51247         implementation in glibc >= 2.9.
51248         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51251 2008-05-15  Bruno Haible  <bruno@clisp.org>
51253         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51254         (Unicode string functions): Add unilbrk/*.
51255         Reported by Karl Berry.
51257 2008-05-15  Eric Blake  <ebb9@byu.net>
51259         Fix violation of <stdbool.h> replacement in regex.
51260         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51261         * lib/regexec.c (re_search_internal): Likewise.
51262         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51264 2008-05-15  Jim Meyering  <meyering@redhat.com>
51266         avoid distracting test output when git or cvs is not found
51267         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51268         * tests/test-vc-list-files-git.sh: Likewise.
51270 2008-05-15  Eric Blake  <ebb9@byu.net>
51272         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51273         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51274         glibc version.
51275         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51276         * doc/posix-functions/strstr.texi (strstr): Likewise.
51277         * lib/str-two-way.h (MAX): Sychronize with glibc.
51279 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51281         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51282         opr.ctx_type.
51283         (calc_first): Initialize constraint field.
51284         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51285         Fix grammar.
51286         (duplicate_node): Merge constraint field for all node types.
51287         (calc_eclosure_iter): Look at constraint field for all node types.
51288         * lib/regex_internal.c (create_cd_newstate): Don't look at
51289         opr.ctx_type.
51291 2008-05-14  Bruno Haible  <bruno@clisp.org>
51293         Help GCC to do better code generation.
51294         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51295         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51296         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51297         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51298         Declare with attribute 'malloc' if supported.
51300 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51302         use "echo STR|wc -c" rather than unportable "expr length STR"
51303         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51304         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51306 2008-05-14  Jim Meyering  <meyering@redhat.com>
51308         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51309         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51310         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51311         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51312         via Collin Lasse.
51314 2008-05-14  Eric Blake  <ebb9@byu.net>
51316         Avoid quadratic growth in gl_LIBSOURCES.
51317         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51318         Suggested by Bruno Haible.
51320         Test xmemdup0.
51321         * modules/xmemdup0-tests: New file.
51322         * tests/test-xmemdup0.c: Likewise.
51324 2008-05-13  Eric Blake  <ebb9@byu.net>
51326         Split xmemdup0 into its own module.
51327         * modules/xmemdup0: New file.
51328         * lib/xmemdup0.h: Likewise.
51329         * lib/xmemdup0.c: Likewise.
51330         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51331         * lib/xalloc.h (xmemdup0): Remove.
51332         * lib/xmalloc.c (xmemdup0): Likewise.
51334 2008-05-13  Eric Blake  <ebb9@byu.net>
51335             Bruno Haible  <bruno@clisp.org>
51337         Reduce number of forks required during autoconf.
51338         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51339         and gl_LIBSOURCES_DIR.
51340         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51341         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51342         m4_syscmd per file.
51343         <m4_foreach_w>: Move...
51344         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51346 2008-05-13  Eric Blake  <ebb9@byu.net>
51348         * gnulib-tool: Fix various comment typos.
51350 2008-05-12  Bruno Haible  <bruno@clisp.org>
51352         Tailor the linebreaking algorithm.
51353         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51355 2008-05-12  Bruno Haible  <bruno@clisp.org>
51357         Update to Unicode 5.0.0.
51358         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51359         LBP_JV, LBP_JT. Redistribute values.
51360         (unilbrk_table): Change size.
51361         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51362         Unicode TR#14 rev. 22.
51363         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51364         LBP_JV, LBP_JT. Redistribute values.
51365         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51366         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51367         Update.
51368         * lib/unilbrk/lbrkprop1.h: Regenerated.
51369         * lib/unilbrk/lbrkprop2.h: Regenerated.
51370         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51371         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51372         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51373         Likewise.
51374         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51375         Likewise.
51376         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51377         result.
51378         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51379         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51380         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51381         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51382         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51383         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51385 2008-05-11  Bruno Haible  <bruno@clisp.org>
51387         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51389 2008-05-11  Bruno Haible  <bruno@clisp.org>
51391         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51392         * modules/unilbrk/gen-lbrk: New file.
51394 2008-05-11  Bruno Haible  <bruno@clisp.org>
51396         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51397         * m4/sha512.m4 (gl_SHA512): Likewise.
51399 2008-05-11  Jim Meyering  <meyering@redhat.com>
51401         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51402         * modules/crypto/sha256: New file.
51403         * modules/crypto/sha512: Likewise.
51404         * lib/sha256.c: Likewise.
51405         * lib/sha256.h: Likewise.
51406         * lib/sha512.c: Likewise.
51407         * lib/sha512.h: Likewise.
51408         * lib/u64.h: Likewise.
51409         * m4/sha256.m4: Likewise.
51410         * m4/sha512.m4: Likewise.
51411         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51413 2008-05-10  Bruno Haible  <bruno@clisp.org>
51415         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51416         (Input/Output <stdio.h>): Add xprintf.
51417         (Signal handling <signal.h>): Add strsignal.
51418         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51419         (Core language properties): Add func.
51420         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51421         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51422         strings.
51423         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51424         (Input/output): New section.
51425         (File system functions): Add openat-die, stat-macros.
51426         (Networking functions): Add sockets.
51427         (Unicode string functions): Add unictype/*.
51428         (Support for building libraries and executables): Add gperf.
51429         (Support for building documentation): Add agpl-3.0.
51430         (Misc): Add nocrash.
51432 2008-05-10  Bruno Haible  <bruno@clisp.org>
51434         * modules/unictype/gen-ctype: New file.
51436 2008-05-10  Jim Meyering  <meyering@redhat.com>
51438         Make chdir-safer.c more efficient on a system with no symlinks.
51439         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51440         also if ELOOP is zero.  Suggested by Bruno Haible.
51442         Make chdir-safer.c slightly safer.
51443         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51444         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51446         Avoid compile failure on systems without ELOOP (like mingw).
51447         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51448         Reported by Bruno Haible.
51450 2008-05-10  Bruno Haible  <bruno@clisp.org>
51452         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51453         (is_utf8_encoding): Use a case-insensitive comparison.
51454         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51455         streq.
51457 2008-05-10  Bruno Haible  <bruno@clisp.org>
51459         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51460         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51461         * lib/unilbrk/ulc-common.h (iconv_string_length,
51462         iconv_string_keeping_offsets): Remove declarations.
51463         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51464         Don't include <iconv.h>, streq.h, xsize.h.
51465         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51466         conversion.
51467         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51468         <iconv.h>, streq.h, xsize.h.
51469         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51470         conversion.
51471         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51472         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51473         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51474         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51476 2008-05-10  Bruno Haible  <bruno@clisp.org>
51478         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51479         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51481         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51482         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51484         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51485         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51487         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51488         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51490         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51491         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51493         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51494         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51496         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51497         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51499         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51500         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51502 2008-05-10  Bruno Haible  <bruno@clisp.org>
51504         Split up 'linebreak' module.
51505         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51506         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51507         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51508         modifications.
51509         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51510         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51511         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51512         lib/linebreak.c.
51513         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51514         lib/linebreak.c.
51515         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51516         lib/linebreak.c.
51517         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51518         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51519         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51520         lib/linebreak.c.
51521         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51522         lib/linebreak.c.
51523         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51524         lib/linebreak.c.
51525         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51526         lib/linebreak.c.
51527         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51528         lib/linebreak.c.
51529         * modules/unilbrk/base: New file.
51530         * modules/unilbrk/tables: New file.
51531         * modules/unilbrk/u8-possible-linebreaks: New file.
51532         * modules/unilbrk/u16-possible-linebreaks: New file.
51533         * modules/unilbrk/u32-possible-linebreaks: New file.
51534         * modules/unilbrk/ulc-common: New file.
51535         * modules/unilbrk/ulc-possible-linebreaks: New file.
51536         * modules/unilbrk/u8-width-linebreaks: New file.
51537         * modules/unilbrk/u16-width-linebreaks: New file.
51538         * modules/unilbrk/u32-width-linebreaks: New file.
51539         * modules/unilbrk/ulc-width-linebreaks: New file.
51540         * lib/linebreak.h: Remove file.
51541         * lib/linebreak.c: Remove file.
51542         * m4/linebreak.m4: Remove file.
51543         * modules/linebreak: Remove file.
51544         * NEWS: Mention the changes.
51546 2008-05-09  Eric Blake  <ebb9@byu.net>
51548         Add xmemdup0.
51549         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51550         implementation.
51551         * lib/xmalloc.c (xmemdup0): New C implementation.
51553 2008-05-08  Bruno Haible  <bruno@clisp.org>
51555         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51557 2008-05-07  Eric Blake  <ebb9@byu.net>
51559         Support cross-compilation of <wctype.h>.
51560         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51561         AC_CACHE_CHECK.
51563 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51565         * build-aux/vc-list-files: Add support for bzr.
51567 2008-05-03  Jim Meyering  <meyering@redhat.com>
51569         avoid failed assertion with tight malloc
51570         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51572 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51574         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51575         are needed from arpa/inet.h.
51576         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51577         Reported by Bruno Haible.
51579 2008-05-02  Jim Meyering  <meyering@redhat.com>
51581         avoid compilation error on FreeBSD 6
51582         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51584 2008-05-01  Jim Meyering  <meyering@redhat.com>
51586         useless-if-before-free: correct --help's exit status description
51587         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51588         for one or more matches, etc.  Reported by Bruno Haible.
51590         vc-list-files: make the stand-alone gnulib test work
51591         * modules/vc-list-files-tests (configure.ac):
51592         Define and AC_SUBST abs_aux_dir.
51593         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51594         $(abs_top_srcdir) to each script and having each of them
51595         duplicate the work of setting PATH, set PATH here, using
51596         the new variable, abs_aux_dir instead.
51597         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51598         * tests/test-vc-list-files-git.sh: Likewise.
51599         Reported by Bruno Haible.
51601 2008-05-01  Bruno Haible  <bruno@clisp.org>
51603         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51604         reallocation. Rename 'done' to 'found_delimiter'.
51606 2008-05-01  Jim Meyering  <meyering@redhat.com>
51608         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51609         * build-aux/vc-list-files: Use `...`, not $(...).
51611 2008-04-30  Jim Meyering  <meyering@redhat.com>
51613         add tests for vc-list-files
51614         * modules/vc-list-files-tests: New module.
51615         * tests/test-vc-list-files-cvs.sh: New file.
51616         * tests/test-vc-list-files-git.sh: New file.
51618         avoid a warning from gcc
51619         * lib/getndelim2.c (IF_LINT): Define.
51620         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51622         vc-list-files: work properly with build-aux/cvsu, too
51623         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51624         to all cvs-based clauses.
51626         vc-list-files: work properly in the CVS+awk case, too
51627         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51629         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51630         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51631         take more than one file argument, so .  Add quotes, just in case $dir
51632         ever contains a shell meta-character.  Prompted by Soren Hansen in
51633         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51635 2008-04-29  Eric Blake  <ebb9@byu.net>
51637         Optimize getndelim2 to use block operations when possible.
51638         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51639         freadseek, and memchr2.
51640         * lib/getndelim2.c (getndelim2): Use them for block reads.
51642 2008-04-29  Bruno Haible  <bruno@clisp.org>
51644         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51645         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51646         * modules/inet_ntop (Depends-on): Add extensions.
51647         * modules/inet_pton (Depends-on): Likewise.
51648         Reported by Simon Josefsson.
51650 2008-04-29  Jim Meyering  <meyering@redhat.com>
51652         When the is more than one match in a block, match all of them.
51653         * build-aux/useless-if-before-free: Iterate through each block
51654         until there are no more matches.
51656         Fix broken useless-if-before-free script.
51657         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51658         the expression to match cast of argument to free-like function.
51660 2008-04-29  Eric Blake  <ebb9@byu.net>
51662         Use new header.
51663         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51665 2008-04-29  Jim Meyering  <meyering@redhat.com>
51667         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51668         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51669         by gnulib to exist and to declare e.g., inet_ntop.
51670         Don't include "inet_ntop.h", now removed.
51672         * m4/arpa_inet_h.m4: Remove trailing blanks.
51674 2008-04-29  Eric Blake  <ebb9@byu.net>
51676         Silence valgrind on safe reads beyond potential array bounds.
51677         * lib/rawmemchr.valgrind: New file.
51678         * lib/strchrnul.valgrind: Likewise.
51679         * modules/rawmemchr (Files): Distribute new file.
51680         * modules/strchrnul (Files): Likewise.
51681         Suggested by Bruno Haible.
51683 2008-04-29  Bruno Haible  <bruno@clisp.org>
51685         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51686         (inet_ntop, inet_pton): Change portability warning's wording.
51687         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51688         Invoke gl_CHECK_NEXT_HEADERS.
51689         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51690         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51691         set ARPA_INET_H.
51692         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51693         * modules/arpa_inet (Description): No longer only for systems that
51694         lack it.
51695         (Depends-on): Add include_next.
51696         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51697         HAVE_ARPA_INET_H.
51699 2008-04-29  Jim Meyering  <meyering@redhat.com>
51701         * modules/mkdir (License): Re-license as LGPLv2+.
51703 2008-04-29  Bruno Haible  <bruno@clisp.org>
51705         * modules/rawmemchr (Maintainer): Set to Eric.
51706         * modules/strchrnul (Maintainer): Likewise.
51708 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51710         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51711         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51713         * modules/arpa_inet (arpa/inet.h): Use them.
51715 2008-04-28  Eric Blake  <ebb9@byu.net>
51717         Test getndelim2.
51718         * modules/getndelim2-tests: New file.
51719         * tests/test-getndelim2.c: Likewise.
51720         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51721         stream.
51722         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51724         * MODULES.html.sh: Document new module.
51726 2008-04-20  Bruno Haible  <bruno@clisp.org>
51728         * lib/c-stack.c (die): Use raise.
51729         * modules/c-stack (Depends-on): Add raise.
51731 2008-04-28  Bruno Haible  <bruno@clisp.org>
51733         Expect rpmatch to be declared.
51734         * lib/yesno.c (rpmatch): Remove declaration.
51736         Declare rpmatch.
51737         * lib/stdlib.in.h (rpmatch): New declaration.
51738         * lib/rpmatch.c: Include <stdlib.h> first.
51739         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51740         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51742         HAVE_RPMATCH.
51743         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51744         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51745         (Include): Set to <stdlib.h>.
51746         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51747         HAVE_RPMATCH.
51748         * NEWS: Document the change.
51750 2008-04-28  Bruno Haible  <bruno@clisp.org>
51752         Change rpmatch to use nl_langinfo when appropriate.
51753         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51754         (N_): New macro.
51755         (localized_pattern): New function/macro.
51756         (try): Remove match, nomatch arguments. Copy the pattern into safe
51757         memory before caching it.
51758         (rpmatch): Use localized_pattern. Add translator comments.
51759         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51760         Suggested by Eric Blake.
51761         * modules/rpmatch (Depends-on): Add stdbool.
51763 2008-04-28  Eric Blake  <ebb9@byu.net>
51765         Add rawmemchr module, matching glibc.
51766         * modules/string (Makefile.am): New indicator.
51767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51768         * lib/string.in.h (rawmemchr): Declare when appropriate.
51769         * modules/rawmemchr: New file.
51770         * m4/rawmemchr.m4: Likewise.
51771         * lib/rawmemchr.c: Likewise.
51772         * modules/rawmemchr-tests: Likewise.
51773         * tests/test-rawmemchr.c: Likewise.
51774         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51775         module.
51776         * modules/strchrnul (Depends-on): Add rawmemchr.
51777         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51779         Whitespace cleanup.
51780         * tests/test-strchrnul.c: Reindent.
51781         * lib/strchrnul.c: Likewise.
51783         Optimize and test strchrnul.
51784         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51785         * modules/strchrnul-tests: New file.
51786         * tests/test-strchrnul.c: Likewise.
51788         Remove intprops dependency.
51789         * modules/memchr (Depends-on): Remove intprops.
51790         * modules/memrchr (Depends-on): Likewise.
51791         * modules/memchr2 (Depends-on): Likewise.
51792         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51793         * lib/memrchr.c (__memrchr): Likewise.
51794         * lib/memrchr2.c (memchr2): Likewise.
51795         Reported by Simon Josefsson.
51797 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51799         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51800         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51802 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51804         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51806         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51808         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51810         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51811         declarations.
51812         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51814         * m4/inet_pton.m4: Don't check for header files.
51816         * m4/inet_ntop.m4: Don't check for header files.
51818 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51820         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51821         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51822         trigger for cygwin).
51823         Reported by Bruno Haible  <bruno@clisp.org>.
51825 2008-04-28  Bruno Haible  <bruno@clisp.org>
51827         * doc/posix-functions/strdup.texi: Mention mingw problem.
51829 2008-04-27  Bruno Haible  <bruno@clisp.org>
51831         * modules/stat-time-tests (Depends-on): Add sleep.
51832         * tests/test-stat-time.c (force_unlink): New function.
51833         (cleanup): Use it.
51834         (test_mtime): Remove the ctime related tests.
51835         (test_ctime): New function, containing the ctime related tests.
51836         (main): Call test_ctime, except on native Windows platforms.
51838 2008-04-27  Bruno Haible  <bruno@clisp.org>
51840         * lib/rpmatch.c (rpmatch): Add some comments.
51841         Reported by James Youngman <jay@gnu.org>.
51843 2008-04-27  Bruno Haible  <bruno@clisp.org>
51845         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51846         quiet NaNs.
51848 2008-04-27  Bruno Haible  <bruno@clisp.org>
51850         Make test-yesno.sh work on mingw.
51851         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51852         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51853         (main): Set stdin to binary mode.
51854         * modules/yesno-tests (Depends-on): Add binary-io.
51856 2008-04-27  Bruno Haible  <bruno@clisp.org>
51858         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51859         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51860         argument that lie outside the IEEE 854 domain.
51861         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51862         (gl_ISFINITE): Use it.
51863         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51865 2008-04-27  Bruno Haible  <bruno@clisp.org>
51867         Allow local renaming in config.h.
51868         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51870 2008-04-27  Bruno Haible  <bruno@clisp.org>
51872         * lib/memchr.c (__memchr): Change type of 'i'.
51873         * lib/memchr2.c (memchr2): Likewise.
51875 2008-04-26  Eric Blake  <ebb9@byu.net>
51876         and Bruno Haible  <bruno@clisp.org>
51878         Optimize and test memrchr.
51879         * modules/memrchr (Depends-on): Add intprops.
51880         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51881         * modules/memrchr-tests: New file.
51882         * tests/test-memrchr.c: New file.
51884 2008-04-26  Bruno Haible  <bruno@clisp.org>
51886         Add tentative support for DragonFly BSD.
51887         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51888         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51889         fp.
51890         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51891         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51892         * lib/fpurge.c (fpurge): Likewise.
51893         * lib/freadable.c (freaadable): Likewise.
51894         * lib/freadahead.c (freadahead): Likewise.
51895         * lib/freading.c (freading): Likewise.
51896         * lib/freadptr.c (freadptr): Likewise.
51897         * lib/freadseek.c (freadptrinc): Likewise.
51898         * lib/fseeko.c (fseeko): Likewise.
51899         * lib/fseterr.c (fseterr): Likewise.
51900         * lib/fwritable.c (fwritable): Likewise.
51901         * lib/fwriting.c (fwriting): Likewise.
51903 2008-04-26  Bruno Haible  <bruno@clisp.org>
51905         * lib/stdio-impl.h: New file.
51906         * lib/fbufmode.c: Include stdio-impl.h.
51907         (fbufmode): Use fp_, remove redundant #defines.
51908         * lib/fflush.c: Include stdio-impl.h.
51909         (clear_ungetc_buffer): Remove redundant #defines.
51910         * lib/fpurge.c: Include stdio-impl.h.
51911         (fpurge): Remove redundant #defines.
51912         * lib/freadable.c: Include stdio-impl.h.
51913         (freadable): Remove redundant #defines.
51914         * lib/freadahead.c: Include stdio-impl.h.
51915         (freadahead): Remove redundant #defines.
51916         * lib/freading.c: Include stdio-impl.h.
51917         (freading): Remove redundant #defines.
51918         * lib/freadptr.c: Include stdio-impl.h.
51919         (freadptr): Remove redundant #defines.
51920         * lib/freadseek.c: Include stdio-impl.h.
51921         (freadptrinc): Remove redundant #defines.
51922         * lib/fseeko.c: Include stdio-impl.h.
51923         (rpl_fseeko): Remove redundant #defines.
51924         * lib/fseterr.c: Include stdio-impl.h.
51925         (fseterr): Remove redundant #defines.
51926         * lib/fwritable.c: Include stdio-impl.h.
51927         (fwritable: Remove redundant #defines.
51928         * lib/fwriting.c: Include stdio-impl.h.
51929         (fwriting): Remove redundant #defines.
51930         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51931         * modules/fflush (Files): Likewise.
51932         * modules/fpurge (Files): Likewise.
51933         * modules/freadable (Files): Likewise.
51934         * modules/freadahead (Files): Likewise.
51935         * modules/freading (Files): Likewise.
51936         * modules/freadptr (Files): Likewise.
51937         * modules/freadseek (Files): Likewise.
51938         * modules/fseeko (Files): Likewise.
51939         * modules/fseterr (Files): Likewise.
51940         * modules/fwritable (Files): Likewise.
51941         * modules/fwriting (Files): Likewise.
51943 2008-04-26  Bruno Haible  <bruno@clisp.org>
51945         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51946         restore_seek_optimization, update_fpos_cache): New functions, extracted
51947         from rpl_fflush.
51948         (rpl_fflush): Use them.
51949         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51950         (gl_REPLACE_FFLUSH): Use it.
51952 2008-04-26  Bruno Haible  <bruno@clisp.org>
51954         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51955         on Solaris.
51956         * tests/test-xstrtoimax.sh: Likewise.
51957         * tests/test-xstrtoumax.sh: Likewise.
51958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51960 2008-04-26  Bruno Haible  <bruno@clisp.org>
51962         * modules/memchr-tests: New file.
51963         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51965 2008-04-26  Eric Blake  <ebb9@byu.net>
51966             Bruno Haible  <bruno@clisp.org>
51968         * lib/memchr.c: Include intprops.h.
51969         (__memchr): Optimize parallel detection of matching bytes. Rename local
51970         variables. Add explanatory comments.
51972 2008-04-26  Bruno Haible  <bruno@clisp.org>
51974         Fix module 'memchr', broken since 2000-10-28.
51975         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51977 2008-04-26  Bruno Haible  <bruno@clisp.org>
51979         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51980         comments.
51982 2008-04-25  Eric Blake  <ebb9@byu.net>
51984         Use native fstatat on cygwin 1.7.0.
51985         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51986         first.
51988 2008-04-23  Eric Blake  <ebb9@byu.net>
51990         Improve memchr2 performance.
51991         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51992         NUL bytes.
51993         * modules/memchr2 (Depends-on): Use intprops.h.
51995 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51997         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51998         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51999         <blp@cs.stanford.edu>.
52001 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52003         * lib/arpa_inet.in.h: New file.
52005         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52006         (Makefile.am): Sed in substitute header file.
52008         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52009         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52011         * modules/inet_ntop (configure.ac): Use
52012         gl_ARPA_INET_MODULE_INDICATOR.
52014         * modules/inet_pton (configure.ac): Use
52015         gl_ARPA_INET_MODULE_INDICATOR.
52017 2008-04-22  Jim Meyering  <meyering@redhat.com>
52019         * modules/verify (License): Re-license as LGPLv2+.
52021 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52023         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52024         parameter to void* as per POSIX standard (MinGW uses char*).
52026 2008-04-21  Bruno Haible  <bruno@clisp.org>
52028         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52029         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52030         Define to replacements if REPLACE_ISWCNTRL is 1.
52031         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52032         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52033         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52034         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52035         what it fixes.
52036         * doc/posix-functions/iswalpha.texi: Likewise.
52037         * doc/posix-functions/iswblank.texi: Likewise.
52038         * doc/posix-functions/iswcntrl.texi: Likewise.
52039         * doc/posix-functions/iswdigit.texi: Likewise.
52040         * doc/posix-functions/iswgraph.texi: Likewise.
52041         * doc/posix-functions/iswlower.texi: Likewise.
52042         * doc/posix-functions/iswprint.texi: Likewise.
52043         * doc/posix-functions/iswpunct.texi: Likewise.
52044         * doc/posix-functions/iswspace.texi: Likewise.
52045         * doc/posix-functions/iswupper.texi: Likewise.
52046         * doc/posix-functions/iswxdigit.texi: Likewise.
52047         Reported by Alain Guibert.
52049 2008-04-21  Bruno Haible  <bruno@clisp.org>
52051         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52052         Patch by Alain Guibert.
52054 2008-04-21  Bruno Haible  <bruno@clisp.org>
52056         Fix test failures on mingw.
52057         * tests/test-xstrtol.c (print_no_progname): New function.
52058         (main): Install it in error_print_progname hook.
52059         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52060         * tests/test-xstrtoimax.sh: Likewise.
52061         * tests/test-xstrtoumax.sh: Likewise.
52063 2008-04-21  Bruno Haible  <bruno@clisp.org>
52065         Fix test failure on mingw.
52066         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52068 2008-04-21  Bruno Haible  <bruno@clisp.org>
52070         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52071         Actually assign a value.
52073 2008-04-20  Bruno Haible  <bruno@clisp.org>
52075         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52076         take 2.
52077         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52078         'canonicalize-lgpl' module is also used.
52079         * lib/canonicalize-lgpl.c: Undo last change.
52080         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52082 2008-04-20  Bruno Haible  <bruno@clisp.org>
52084         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52085         config.h. Provide _mkdir based fallback for mingw.
52086         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52087         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52088         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52089         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52090         rather than defining mkdir in config.h.
52091         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52092         (gl_SYS_STAT_H_DEFAULTS): New macro.
52093         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52094         HAVE_IO_H any more.
52095         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52096         HAVE_DECL_MKDIR and HAVE_IO_H.
52098 2008-04-20  Bruno Haible  <bruno@clisp.org>
52100         * lib/isapipe.c: Port to native Windows platforms.
52102 2008-04-20  Bruno Haible  <bruno@clisp.org>
52104         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52106 2008-04-21  Eric Blake  <ebb9@byu.net>
52108         Work around preprocessors that don't handle UINTMAX_MAX.
52109         * lib/memchr2.c (memchr2): Avoid embedded #if.
52110         Reported by Alain Guibert, fix suggested by Bruno Haible.
52112 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52114         * doc/posix-functions/strftime.texi (strftime): Explain better
52115         Windows incompatibility.  Suggested by Micah Cowan
52116         <micah@cowan.name>.
52118 2008-04-20  Bruno Haible  <bruno@clisp.org>
52120         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52121         unistr/u8-mblen.
52123 2008-04-20  Bruno Haible  <bruno@clisp.org>
52125         Fix test failure on platforms with non-GNU iconv.
52126         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52127         (U_TO_U8): Use it, rather than u16_to_u8.
52128         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52129         units at the end of the input string.
52130         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52132 2008-04-20  Bruno Haible  <bruno@clisp.org>
52134         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52135         when the resulting length is 0.
52136         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52138 2008-04-20  Bruno Haible  <bruno@clisp.org>
52140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52141         works.
52142         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52144 2008-04-20  Bruno Haible  <bruno@clisp.org>
52146         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52147         * modules/tsearch-tests (configure.ac): Test for initstate function.
52149 2008-04-20  Bruno Haible  <bruno@clisp.org>
52151         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52152         for nlink_t if missing.
52153         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52155 2008-04-19  Bruno Haible  <bruno@clisp.org>
52157         Work around snprintf bug on Linux libc5.
52158         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52160         gl_SNPRINTF_SIZE1.
52161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52162         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52163         that test failed.
52164         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52165         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52166         * modules/snprintf (Files): Add m4/printf.m4.
52167         * modules/vsnprintf (Files): Likewise.
52168         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52169         * doc/posix-functions/vsnprintf.texi: Likewise.
52171 2008-04-19  Bruno Haible  <bruno@clisp.org>
52173         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52174         from 0.0058 to less than 10^-7.
52176 2008-04-19  Bruno Haible  <bruno@clisp.org>
52178         Fix rounding when a precision is given.
52179         * lib/vasnprintf.c (is_borderline): New function.
52180         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52181         9...9x.
52182         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52183         %e, %g.
52184         * tests/test-vasprintf-posix.c (test_function): Likewise.
52185         * tests/test-snprintf-posix.h (test_function): Likewise.
52186         * tests/test-sprintf-posix.h (test_function): Likewise.
52187         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52188         * tests/test-printf-posix.h (test_function): Likewise.
52189         * tests/test-printf-posix.output: Update.
52190         Reported by John Darrington <john@darrington.wattle.id.au> via
52191         Ben Pfaff <blp@cs.stanford.edu>.
52193 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52195         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52196         Suggested by Bruno Haible <bruno@clisp.org>.
52198 2008-04-17  Bruno Haible  <bruno@clisp.org>
52200         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52201         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52202         implementation.
52203         Patch by Bruce Merry <bmerry@gmail.com>.
52205 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52207         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52208         doesn't work under Windows.
52210 2008-04-16  Bruno Haible  <bruno@clisp.org>
52212         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52213         New macros.
52214         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52215         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52216         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52217         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52218         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52219         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52220         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52221         macros.
52222         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52223         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52224         Northern Sotho, Uighur.
52226 2008-04-16  Bruno Haible  <bruno@clisp.org>
52228         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52229         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52230         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52231         Reported by Daniel Bergström <daniel@octocode.com>.
52233 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52234             Bruno Haible  <bruno@clisp.org>
52236         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52237         function.
52238         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52239         New functions, mostly extracted from gl_locale_name_default.
52240         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52242 2008-04-16  Eric Blake  <ebb9@byu.net>
52244         Adjust strtod detection to catch glibc 2.7 bug.
52245         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52246         Reported by John Gatewood Ham.
52248 2008-04-16  Bruno Haible  <bruno@clisp.org>
52250         Add tentative support for Linux libc5.
52251         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52252         * lib/fpurge.c (fpurge): Likewise.
52253         * lib/freadable.c (freadable): Likewise.
52254         * lib/freadahead.c (freadahead): Likewise.
52255         * lib/freading.c (freading): Likewise.
52256         * lib/freadptr.c (freadptr): Likewise.
52257         * lib/freadseek.c (freadptrinc): Likewise.
52258         * lib/fseeko.c (rpl_fseeko): Likewise.
52259         * lib/fseterr.c (fseterr): Likewise.
52260         * lib/fwritable.c (fwritable): Likewise.
52261         * lib/fwriting.c (fwriting): Likewise.
52262         Reported by Alain Guibert <alguibert+bts@free.fr>.
52264 2008-04-15  Bruno Haible  <bruno@clisp.org>
52266         * modules/mathl (configure.ac): Define module indicator.
52268 2008-04-15  Bruno Haible  <bruno@clisp.org>
52270         * lib/logl.c (logl): Remove unused variables.
52272 2008-04-15  Bruno Haible  <bruno@clisp.org>
52274         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52275         fails.
52277 2008-04-15  Bruno Haible  <bruno@clisp.org>
52279         * lib/trim.c (trim2): Fix argument of isspace() macro.
52281 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52283         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52284         to 0.
52285         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52287 2008-04-14  Bruno Haible  <bruno@clisp.org>
52289         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52290         AC_LANG_PROGRAM argument.
52291         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52292         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52293         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52294         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52295         * m4/math_h.m4 (gl_MATH_H): Likewise.
52296         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52297         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52298         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52299         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52300         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52301         * m4/regex.m4 (gl_REGEX): Likewise.
52302         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52303         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52305         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52306         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52307         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52309         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52311 2008-04-14  Jim Meyering  <meyering@redhat.com>
52313         test-strtod: fix typos: s/abs/fabs/
52314         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52316 2008-04-13  Bruno Haible  <bruno@clisp.org>
52318         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52319         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52320         module is also used and while not building the reloc-wrapper.
52322 2008-04-13  Bruno Haible  <bruno@clisp.org>
52324         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52326 2008-04-13  Bruno Haible  <bruno@clisp.org>
52328         Fix AIX compilation failure introduced on 2008-04-02.
52329         * tests/test-frexp.c (exp): Undefine before redefining.
52330         * tests/test-frexpl.c (exp): Likewise.
52332 2008-04-13  Bruno Haible  <bruno@clisp.org>
52334         Work around a HP-UX stdio bug.
52335         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52336         * tests/test-ftello.c (main): Likewise.
52337         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52338         * doc/posix-functions/ftello.texi: Likewise.
52340 2008-04-13  Bruno Haible  <bruno@clisp.org>
52342         Make test-signbit pass on HP-UX/hppa.
52343         * tests/test-signbit.c (minus_zerol): New variable.
52344         (test_signbitl): Use it.
52346 2008-04-13  Bruno Haible  <bruno@clisp.org>
52348         Make truncl work on OSF/1 4.0.
52349         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52350         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52351         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52353         HAVE_DECL_TRUNCL.
52354         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52355         HAVE_DECL_TRUNCL.
52356         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52358 2008-04-13  Bruno Haible  <bruno@clisp.org>
52360         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52362 2008-04-13  Bruno Haible  <bruno@clisp.org>
52364         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52365         expression, so as to avoid HP-UX 11 cc compiler bug.
52367 2008-04-13  Bruno Haible  <bruno@clisp.org>
52369         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52371 2008-04-13  Bruno Haible  <bruno@clisp.org>
52373         * lib/git-merge-changelog.c: Remove empty declaration outside of
52374         functions.
52376 2008-04-13  Bruno Haible  <bruno@clisp.org>
52378         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52380 2008-04-13  Bruno Haible  <bruno@clisp.org>
52382         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52383         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52384         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52385         also if it exists but lacks definitions of the SHUT_* macros.
52386         * modules/sys_socket (Description): Update.
52387         Reported by Elbert Pol <e.pol@chello.nl>.
52389 2008-04-13  Bruno Haible  <bruno@clisp.org>
52391         * lib/localcharset.c (OS2): Don't redefine if already defined.
52392         Reported by Elbert Pol <e.pol@chello.nl>.
52394 2008-04-13  Bruno Haible  <bruno@clisp.org>
52396         * lib/binary-io.h [__EMX__]: Include <io.h>.
52397         Reported by Elbert Pol <e.pol@chello.nl>.
52399 2008-04-12  Bruno Haible  <bruno@clisp.org>
52401         * lib/fpucw.h: Enable the definitions also for x86_64.
52402         Needed for NetBSD/x86_64.
52403         Reported by Thomas Klausner <tk@giga.or.at>.
52405 2008-04-12  Bruno Haible  <bruno@clisp.org>
52407         * tests/test-strtod.c: Include isnand.h.
52408         (main): Use isnand instead of isnan.
52409         Reported by Jim Meyering.
52411 2008-04-12  Bruno Haible  <bruno@clisp.org>
52413         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52414         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52416 2008-04-12  Jim Meyering  <meyering@redhat.com>
52418         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52420 2008-04-12  Bruno Haible  <bruno@clisp.org>
52422         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52423         Reported by Elbert Pol <e.pol@chello.nl>.
52425 2008-04-12  Eric Blake  <ebb9@byu.net>
52427         Work around Solaris 10 math.h bug.
52428         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52429         (gl_MATH_H_DEFAULTS): Set up default.
52430         * modules/math (Makefile.am): Replace new indicators.
52431         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52432         * tests/test-math.c (main): Test this.
52433         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52434         * doc/posix-headers/math.texi (math.h): Mention bug.
52435         Reported by Nelson H. F. Beebe and Jim Meyering.
52437 2008-04-11  Bruno Haible  <bruno@clisp.org>
52439         Adapt to future versions of Apple GCC.
52440         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52441         Reported by Peter O'Gorman <peter@pogma.com>.
52443 2008-04-11  Bruno Haible  <bruno@clisp.org>
52445         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52447 2008-04-11  Bruno Haible  <bruno@clisp.org>
52449         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52451         * modules/getaddrinfo-tests (Makefile.am): Define
52452         test_getaddrinfo_LDADD.
52454 2008-04-11  Bruno Haible  <bruno@clisp.org>
52456         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52457         (init): Fix syntax error.
52458         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52459         is declared.
52461 2008-04-11  Bruno Haible  <bruno@clisp.org>
52463         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52464         * modules/glob (Depends-on): Add stdbool.
52466 2008-04-11  Bruno Haible  <bruno@clisp.org>
52468         * lib/trim.c: Include <string.h>.
52470 2008-04-11  Eric Blake  <ebb9@byu.net>
52472         Avoid compile failure on OS/2.
52473         * lib/regex_internal.h (internal_function): Disable optimization
52474         on OS/2 (__EMX__), where it caused compiler error.
52475         Reported by Elbert Pol.
52477 2008-04-11  Bruno Haible  <bruno@clisp.org>
52479         Flush the standard error stream before aborting. Needed on mingw.
52480         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52481         * tests/test-array_list.c (ASSERT): Likewise.
52482         * tests/test-array_oset.c (ASSERT): Likewise.
52483         * tests/test-avltree_list.c (ASSERT): Likewise.
52484         * tests/test-avltree_oset.c (ASSERT): Likewise.
52485         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52486         * tests/test-binary-io.c (ASSERT): Likewise.
52487         * tests/test-byteswap.c (ASSERT): Likewise.
52488         * tests/test-c-ctype.c (ASSERT): Likewise.
52489         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52490         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52491         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52492         * tests/test-c-strstr.c (ASSERT): Likewise.
52493         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52494         * tests/test-canonicalize.c (ASSERT): Likewise.
52495         * tests/test-carray_list.c (ASSERT): Likewise.
52496         * tests/test-ceilf1.c (ASSERT): Likewise.
52497         * tests/test-ceilf2.c (ASSERT): Likewise.
52498         * tests/test-ceill.c (ASSERT): Likewise.
52499         * tests/test-count-one-bits.c (ASSERT): Likewise.
52500         * tests/test-fbufmode.c (ASSERT): Likewise.
52501         * tests/test-fflush2.c (ASSERT): Likewise.
52502         * tests/test-floorf1.c (ASSERT): Likewise.
52503         * tests/test-floorf2.c (ASSERT): Likewise.
52504         * tests/test-floorl.c (ASSERT): Likewise.
52505         * tests/test-fopen.c (ASSERT): Likewise.
52506         * tests/test-fpending.c (ASSERT): Likewise.
52507         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52508         * tests/test-fpurge.c (ASSERT): Likewise.
52509         * tests/test-freadable.c (ASSERT): Likewise.
52510         * tests/test-freadahead.c (ASSERT): Likewise.
52511         * tests/test-freading.c (ASSERT): Likewise.
52512         * tests/test-freadptr.c (ASSERT): Likewise.
52513         * tests/test-freadptr2.c (ASSERT): Likewise.
52514         * tests/test-freadseek.c (ASSERT): Likewise.
52515         * tests/test-freopen.c (ASSERT): Likewise.
52516         * tests/test-frexp.c (ASSERT): Likewise.
52517         * tests/test-frexpl.c (ASSERT): Likewise.
52518         * tests/test-fseek.c (ASSERT): Likewise.
52519         * tests/test-fseeko.c (ASSERT): Likewise.
52520         * tests/test-fstrcmp.c (ASSERT): Likewise.
52521         * tests/test-ftell.c (ASSERT): Likewise.
52522         * tests/test-ftello.c (ASSERT): Likewise.
52523         * tests/test-func.c (ASSERT): Likewise.
52524         * tests/test-fwritable.c (ASSERT): Likewise.
52525         * tests/test-fwriting.c (ASSERT): Likewise.
52526         * tests/test-getdelim.c (ASSERT): Likewise.
52527         * tests/test-getline.c (ASSERT): Likewise.
52528         * tests/test-i-ring.c (ASSERT): Likewise.
52529         * tests/test-iconv-utf.c (ASSERT): Likewise.
52530         * tests/test-iconv.c (ASSERT): Likewise.
52531         * tests/test-isfinite.c (ASSERT): Likewise.
52532         * tests/test-isnand.c (ASSERT): Likewise.
52533         * tests/test-isnanf.c (ASSERT): Likewise.
52534         * tests/test-isnanl.h (ASSERT): Likewise.
52535         * tests/test-ldexpl.c (ASSERT): Likewise.
52536         * tests/test-linked_list.c (ASSERT): Likewise.
52537         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52538         * tests/test-localename.c (ASSERT): Likewise.
52539         * tests/test-lseek.c (ASSERT): Likewise.
52540         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52541         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52542         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52543         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52544         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52545         * tests/test-mbschr.c (ASSERT): Likewise.
52546         * tests/test-mbscspn.c (ASSERT): Likewise.
52547         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52548         * tests/test-mbspbrk.c (ASSERT): Likewise.
52549         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52550         * tests/test-mbsrchr.c (ASSERT): Likewise.
52551         * tests/test-mbsspn.c (ASSERT): Likewise.
52552         * tests/test-mbsstr1.c (ASSERT): Likewise.
52553         * tests/test-mbsstr2.c (ASSERT): Likewise.
52554         * tests/test-mbsstr3.c (ASSERT): Likewise.
52555         * tests/test-memchr2.c (ASSERT): Likewise.
52556         * tests/test-memmem.c (ASSERT): Likewise.
52557         * tests/test-open.c (ASSERT): Likewise.
52558         * tests/test-printf-frexp.c (ASSERT): Likewise.
52559         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52560         * tests/test-printf-posix.c (ASSERT): Likewise.
52561         * tests/test-quotearg.c (ASSERT): Likewise.
52562         * tests/test-rbtree_list.c (ASSERT): Likewise.
52563         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52564         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52565         * tests/test-round1.c (ASSERT): Likewise.
52566         * tests/test-roundf1.c (ASSERT): Likewise.
52567         * tests/test-roundl.c (ASSERT): Likewise.
52568         * tests/test-signbit.c (ASSERT): Likewise.
52569         * tests/test-sleep.c (ASSERT): Likewise.
52570         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52571         * tests/test-snprintf.c (ASSERT): Likewise.
52572         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52573         * tests/test-stat-time.c (ASSERT): Likewise.
52574         * tests/test-strcasestr.c (ASSERT): Likewise.
52575         * tests/test-strerror.c (ASSERT): Likewise.
52576         * tests/test-striconv.c (ASSERT): Likewise.
52577         * tests/test-striconveh.c (ASSERT): Likewise.
52578         * tests/test-striconveha.c (ASSERT): Likewise.
52579         * tests/test-strsignal.c (ASSERT): Likewise.
52580         * tests/test-strstr.c (ASSERT): Likewise.
52581         * tests/test-strtod.c (ASSERT): Likewise.
52582         * tests/test-trunc1.c (ASSERT): Likewise.
52583         * tests/test-trunc2.c (ASSERT): Likewise.
52584         * tests/test-truncf1.c (ASSERT): Likewise.
52585         * tests/test-truncf2.c (ASSERT): Likewise.
52586         * tests/test-truncl.c (ASSERT): Likewise.
52587         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52588         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52589         * tests/test-vasnprintf.c (ASSERT): Likewise.
52590         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52591         * tests/test-vasprintf.c (ASSERT): Likewise.
52592         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52593         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52594         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52595         * tests/test-vsnprintf.c (ASSERT): Likewise.
52596         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52597         * tests/test-wcwidth.c (ASSERT): Likewise.
52598         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52599         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52600         * tests/test-xvasprintf.c (ASSERT): Likewise.
52601         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52602         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52603         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52604         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52605         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52606         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52607         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52608         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52609         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52610         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52611         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52612         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52613         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52614         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52615         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52616         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52617         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52618         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52619         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52620         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52621         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52622         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52623         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52624         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52625         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52626         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52627         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52628         * tests/unictype/test-combining.c (ASSERT): Likewise.
52629         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52630         * tests/unictype/test-digit.c (ASSERT): Likewise.
52631         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52632         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52633         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52634         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52635         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52636         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52637         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52638         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52639         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52640         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52641         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52642         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52643         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52644         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52645         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52646         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52647         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52648         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52649         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52650         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52651         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52652         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52653         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52654         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52655         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52656         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52657         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52658         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52659         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52660         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52661         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52662         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52663         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52664         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52665         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52666         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52667         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52668         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52669         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52670         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52671         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52672         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52673         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52674         Reported by Eric Blake.
52676 2008-04-11  Bruno Haible  <bruno@clisp.org>
52678         * lib/wchar.in.h: Tweak comment.
52680 2008-04-11  Bruno Haible  <bruno@clisp.org>
52682         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52683         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52684         gl_COMMON.
52685         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52687 2008-04-11  Bruno Haible  <bruno@clisp.org>
52689         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52691 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52693         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52694         of attempting to use non-existing /dev/*random.  Based on patch
52695         from Adam Strzelecki <ono@java.pl> in
52696         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52698 2008-04-08  Bruno Haible  <bruno@clisp.org>
52700         Add tentative support for emx+gcc.
52701         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52702         * lib/fpurge.c (fpurge): Likewise.
52703         * lib/freadable.c (freadable): Likewise.
52704         * lib/freadahead.c (freadahead): Likewise.
52705         * lib/freading.c (freading): Likewise.
52706         * lib/freadptr.c (freadptr): Likewise.
52707         * lib/freadseek.c (freadptrinc): Likewise.
52708         * lib/fseeko.c (rpl_fseeko): Likewise.
52709         * lib/fseterr.c (fseterr): Likewise.
52710         * lib/fwritable.c (fwritable): Likewise.
52711         * lib/fwriting.c (fwriting): Likewise.
52712         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52714 2008-04-09  Eric Blake  <ebb9@byu.net>
52716         Avoid some autoconf warnings.
52717         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52718         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52719         * m4/afs.m4 (gl_AFS): Likewise.
52720         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52721         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52722         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52723         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52724         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52725         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52726         (AC_CHECK_DECLS_ONCE): Likewise.
52727         Rename file...
52728         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52729         gnulib-tool requires autoconf 2.59 or better.
52730         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52732 2008-04-08  Eric Blake  <ebb9@byu.net>
52734         Use 'git describe --match' if present (added in git 1.5.5).
52735         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52736         if possible.
52738 2008-04-08  Bruno Haible  <bruno@clisp.org>
52740         Add tentative support for OpenServer.
52741         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52742         _ptr, _cnt.
52743         * lib/fpurge.c (fpurge): Likewise.
52744         * lib/freadable.c (freadable): Likewise.
52745         * lib/freadahead.c (freadahead): Likewise.
52746         * lib/freading.c (freading): Likewise.
52747         * lib/freadptr.c (freadptr): Likewise.
52748         * lib/freadseek.c (freadptrinc): Likewise.
52749         * lib/fseeko.c (rpl_fseeko): Likewise.
52750         * lib/fseterr.c (fseterr): Likewise.
52751         * lib/fwritable.c (fwritable): Likewise.
52752         * lib/fwriting.c (fwriting): Likewise.
52753         Reported by Roger Cornelius <rac@tenzing.org> and
52754         Brian K. White <brian@aljex.com>.
52756 2008-04-06  Jim Meyering  <meyering@redhat.com>
52758         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52760 2008-04-06  Bruno Haible  <bruno@clisp.org>
52762         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52763         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52764         * tests/test-printf-posix.sh: Likewise.
52765         * tests/test-vfprintf-posix.sh: Likewise.
52766         * tests/test-vprintf-posix.sh: Likewise.
52767         * tests/test-xprintf-posix.sh: Likewise.
52769 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52771         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52772         hide error from 'ls', needed on OS/2.
52773         Report by Elbert Pol <elbert.pol@gmail.com>.
52775 2008-04-04  Eric Blake  <ebb9@byu.net>
52777         Make test-fseeko.c failures meaningful.
52778         * tests/test-fseeko.c: Print line number on failure.
52779         * tests/test-fseek.c: Likewise.
52780         Reported by Nelson H. F. Beebe.
52782         Improve strtod bug detection check.
52783         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52784         required for Solaris 10.
52785         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52787 2008-04-04  Bruno Haible  <bruno@clisp.org>
52789         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52790         by m4/setenv.m4.
52792 2008-04-03  Eric Blake  <ebb9@byu.net>
52794         Ensure sane .version contents.
52795         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52796         version string.
52797         * build-aux/git-version-gen: Improve documentation.
52799         Make GNU make output nicer.
52800         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52801         MAKECMDGOALS to enforce message for all command line targets.  Set
52802         srcdir for use in maint.mk.
52804         Another maintainer tweak.
52805         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52806         a target that regenerates version.
52808 2008-04-03  Jim Meyering  <meyering@redhat.com>
52810         vc-list-files: don't cause coreutils "make po-check" failure
52811         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52813 2008-04-03  Eric Blake  <ebb9@byu.net>
52815         Allow VPATH usage of vc-list-files.
52816         * build-aux/vc-list-files (scriptversion): Add timestamp.
52817         (options): Add --help, --version, -C.
52818         (CVS): Support installed cvsu.
52820 2008-04-02  Bruno Haible  <bruno@clisp.org>
52822         Avoid some "statement with no effect" warnings from gcc.
52823         * tests/test-wctype.c (main): Explicitly ignore unused values.
52824         Reported by Jim Meyering.
52826 2008-04-02  Jim Meyering  <meyering@redhat.com>
52828         Avoid some warnings from "gcc -Wshadow".
52829         * tests/test-frexp.c (exp): Define to a different identifier.
52830         * tests/test-frexpl.c (exp): Likewise.
52832 2008-04-03  Jim Meyering  <meyering@redhat.com>
52834         bootstrap: remove dangling *.[ch] symlinks from lib
52835         * build-aux/bootstrap [dangling symlink removal]: Move find's
52836         -depth option to precede all others, to avoid a warning.
52837         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52839 2008-04-02  Bruno Haible  <bruno@clisp.org>
52841         Avoid some warnings from "gcc -Wshadow".
52842         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52843         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52844         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52845         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52846         Reported by Jim Meyering.
52848 2008-04-01  Bruno Haible  <bruno@clisp.org>
52850         Fix test to work on IRIX 6.5 with cc.
52851         * tests/test-math.c (numeric_equal): New function.
52852         (main): Use it.
52854 2008-04-01  Bruno Haible  <bruno@clisp.org>
52856         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52858 2008-04-01  Bruno Haible  <bruno@clisp.org>
52860         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52861         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52862         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52863         (Depends-on): Remove math.
52865         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52866         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52867         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52868         (Depends-on): Remove math.
52870         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52871         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52872         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52873         (Depends-on): Remove math.
52874         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52875         (Depends-on): Remove math.
52877         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52878         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52879         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52880         (Depends-on): Remove math.
52881         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52882         (Depends-on): Remove math.
52884         * tests/test-round1.c: Include nan.h.
52885         (main): Use NaNd instead of NAN.
52886         * modules/round-tests (Files): Add tests/nan.h.
52888         * tests/test-trunc1.c: Include nan.h.
52889         (main): Use NaNd instead of NAN.
52890         * modules/trunc-tests (Files): Add tests/nan.h.
52892         * tests/test-roundf1.c: Include nan.h.
52893         (main): Use NaNf instead of NAN.
52894         * modules/roundf-tests (Files): Add tests/nan.h.
52896         * tests/test-truncf1.c: Include nan.h.
52897         (main): Use NaNf instead of NAN.
52898         * modules/truncf-tests (Files): Add tests/nan.h.
52900         * tests/test-ceilf1.c: Include nan.h.
52901         (main): Use NaNf instead of NAN.
52902         * modules/ceilf-tests (Files): Add tests/nan.h.
52904         * tests/test-floorf1.c: Include nan.h.
52905         (main): Use NaNf instead of NAN.
52906         * modules/floorf-tests (Files): Add tests/nan.h.
52908         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52909         (main): Use NaNf instead of NAN.
52910         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52912         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52913         (main): Use NaNd instead of NAN.
52914         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52916         * tests/test-frexp.c: Include nan.h.
52917         (main): Use NaNd instead of NAN.
52918         * modules/frexp-tests (Files): Add tests/nan.h.
52920         * lib/isnan.c: Don't include <math.h>.
52921         (FUNC): Don't use NAN macro.
52922         * modules/isnand-nolibm (Depends-on): Remove math.
52923         * modules/isnanf-nolibm (Depends-on): Remove math.
52924         * modules/isnanl (Depends-on): Remove math.
52925         * modules/isnanl-nolibm (Depends-on): Remove math.
52927         * tests/nan.h: New file.
52929 2008-04-01  Eric Blake  <ebb9@byu.net>
52931         Fix typos.
52932         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52933         values to be the right type.
52935         For now, cater to gnulib strtod inaccuracies.
52936         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52937         fractional results.  While not as nice from a QoI perspective, it
52938         is a quicker patch than correctly implementing decimal to binary
52939         rounding.
52941 2008-03-31  Eric Blake  <ebb9@byu.net>
52943         Guarantee a definition of NAN.
52944         * lib/math.in.h (NAN): Define if missing.
52945         * tests/test-math.c (main): Test it.
52946         * doc/posix-headers/math.texi (math.h): Document this.
52947         * lib/isnan.c (rpl_isnand): Use it.
52948         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52949         * tests/test-floorf1.c (NaN): Likewise.
52950         * tests/test-frexp.c (NaN): Likewise.
52951         * tests/test-isnand.c (NaN): Likewise.
52952         * tests/test-isnanf.c (NaN): Likewise.
52953         * tests/test-round1.c (NaN): Likewise.
52954         * tests/test-roundf1.c (NaN): Likewise.
52955         * tests/test-snprintf-posix.h (NaN): Likewise.
52956         * tests/test-sprintf-posix.h (NaN): Likewise.
52957         * tests/test-trunc1.c (NaN): Likewise.
52958         * tests/test-truncf1.c (NaN): Likewise.
52959         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52960         * tests/test-vasprintf-posix.c (NaN): Likewise.
52961         * modules/isnand-nolibm (Depends-on): Add math.
52962         * modules/isnanf-nolibm (Depends-on): Likewise.
52963         * modules/isnanl (Depends-on): Likewise.
52964         * modules/isnanl-nolibm (Depends-on): Likewise.
52965         * modules/snprintf-posix-tests (Depends-on): Likewise.
52966         * modules/sprintf-posix-tests (Depends-on): Likewise.
52967         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52968         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52969         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52970         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52972 2008-03-31  Bruno Haible  <bruno@clisp.org>
52974         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52975         * doc/posix-functions/strtod.texi: Likewise.
52977 2008-03-31  Bruno Haible  <bruno@clisp.org>
52979         * tests/test-strtod.c (main): Don't use C99 syntax.
52981 2008-03-31  Bruno Haible  <bruno@clisp.org>
52983         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52984         Reported by Eric Blake.
52986 2008-03-31  Jim Meyering  <meyering@redhat.com>
52988         Don't compare actual signbit return values.
52989         * tests/test-strtod.c (main): Rather, compare only their
52990         zero/non-zero nature.
52992 2008-03-31  Eric Blake  <ebb9@byu.net>
52994         More strtod documentation.
52995         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52996         failures as distinct bugs.
52998 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53000         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53001         Problem reported by Erik Benada in
53002         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53004 2008-03-30  Bruno Haible  <bruno@clisp.org>
53006         * tests/test-strtod.c: Add comments about which assertion fails on which
53007         platform.
53008         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53010 2008-03-30  Eric Blake  <ebb9@byu.net>
53012         Test signbit behavior on zeros.
53013         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53014         (test_signbitd, test_signbitl): Likewise.
53016         More strtod touchups.
53017         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53018         sign of negative underflow, for now.  Use .5, not .1.
53019         * doc/posix-functions/strtod.texi (strtod): Mention these
53020         limitations.
53021         Reported by Jim Meyering.
53023 2008-03-30  Bruno Haible  <bruno@clisp.org>
53025         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53026         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53028 2008-03-30  Bruno Haible  <bruno@clisp.org>
53030         Avoid failure when attempting to return empty iconv results on some
53031         platforms.
53032         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53033         allocation, don't report ENOMEM when the resulting string is empty.
53035 2008-03-30  Bruno Haible  <bruno@clisp.org>
53037         Fix buffer overrun.
53038         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53039         Don't consider the width for tmp_length. Check count against tmp_length
53040         before doing the padding. Ensure enough allocation during padding.
53042 2008-03-30  Eric Blake  <ebb9@byu.net>
53044         strtod touchups.
53045         * lib/strtod.c (strtod): Avoid compiler warnings.
53046         Reported by Jim Meyering.
53048 2008-03-30  Bruno Haible  <bruno@clisp.org>
53050         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53051         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53052         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53053         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53054         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53055         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53056         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53057         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53059         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53060         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53061         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53062         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53063         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53064         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53065         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53066         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53068         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53069         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53070         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53071         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53072         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53073         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53074         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53075         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53077         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53078         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53080         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53081         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53083         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53084         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53086         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53087         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53088         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53090         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53092         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53094         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53095         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53096         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53098         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53100         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53102         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53103         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53105         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53106         (Depends-on): Add EOVERFLOW.
53107         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53108         (Depends-on): Add EOVERFLOW.
53109         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53110         (Depends-on): Add EOVERFLOW.
53111         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53112         (Depends-on): Add EOVERFLOW.
53113         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53114         (Depends-on): Add EOVERFLOW.
53115         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53116         (Depends-on): Add EOVERFLOW.
53117         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53118         (Depends-on): Add EOVERFLOW.
53119         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53120         (Depends-on): Add EOVERFLOW.
53122         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53124         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53126         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53128         * modules/snprintf (Depends-on): Add EOVERFLOW.
53130         * lib/poll.c (EOVERFLOW): Remove fallback.
53131         * modules/poll (Depends-on): Add EOVERFLOW.
53133         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53134         * modules/getugroups (Depends-on): Add EOVERFLOW.
53136         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53137         * modules/getdelim (Depends-on): Add EOVERFLOW.
53139         * lib/ftell.c (EOVERFLOW): Remove fallback.
53140         * modules/ftell (Depends-on): Add EOVERFLOW.
53142         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53144         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53146         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53148         * modules/EOVERFLOW-tests: New file.
53149         * tests/test-EOVERFLOW.c: New file.
53151         * modules/EOVERFLOW: New file.
53152         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53154 2008-03-30  Bruno Haible  <bruno@clisp.org>
53156         Fix bug introduced on 2007-06-10.
53157         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53158         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53160 2008-03-30  Bruno Haible  <bruno@clisp.org>
53162         Improve freadseek's efficiency after ungetc.
53163         * lib/freadseek.c: Include freadahead.h.
53164         (freadptrinc): New function, extracted from freadseek.
53165         (freadseek): Use it in a loop. Use freadahead to determine the number
53166         of loop iterations.
53167         * modules/freadseek (Depends-on): Add freadahead.
53168         (configure.ac): Require AC_C_INLINE.
53170 2008-03-30  Bruno Haible  <bruno@clisp.org>
53172         * lib/freadseek.c (freadseek): Don't ignore the return value of
53173         freadptr.
53175 2008-03-29  Eric Blake  <ebb9@byu.net>
53177         Add hex float support.
53178         * modules/strtod (Depends-on): Add c-ctype.
53179         (Link): Mention POW_LIB.
53180         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53181         whitespace between 'e' and exponent.
53182         * tests/test-strtod.c (main): Enable hex float tests.
53183         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53184         now provides.
53186         Document various strtod bugs, with some fixes.
53187         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53188         "-0x", "inf", "nan", and hex constants.
53189         * doc/posix-functions/atof.texi (atof): Likewise.
53190         * modules/stdlib (Makefile.am): Support strtod.
53191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53192         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53193         detect additional strtod bugs.
53194         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53195         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53196         bool where appropriate.  Parse 'inf' and 'nan'.
53197         * tests/test-strtod.c: New file.
53198         * modules/strtod (Depends-on): Add stdbool, stdlib.
53199         (configure.ac): Turn on module indicator.
53200         * modules/strtod-tests: New module.
53202 2008-03-29  Eric Blake  <ebb9@byu.net>
53204         Fix ftell on mingw.
53205         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53206         * modules/ftell-tests (Depends-on): Add binary-io.
53207         * modules/ftello-tests (Depends-on): Likewise.
53208         * tests/test-ftell.c (main): Enhance test to cover behavior after
53209         ungetc.  Enforce binary mode.
53210         * tests/test-ftello.c (main): Likewise.
53212         Pass test-freadseek on cygwin.
53213         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53214         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53215         ungetc buffer.
53217         * tests/test-fflush2.c (main): Fix typo.
53219 2008-03-29  Bruno Haible  <bruno@clisp.org>
53221         * tests/test-fflush2.c (main): Temporarily disable the contents of
53222         this test.
53223         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53224         Reported by Eric Blake.
53226 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53228         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53229         (GC_SHA224_DIGEST_SIZE): Add.
53231         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53232         (gc_hash_digest_length): Likewise.
53233         (gc_hash_buffer): Likewise.
53235 2008-03-25  Bruno Haible  <bruno@clisp.org>
53237         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53238         detail which gettext release to use.
53239         Reported by Simon Josefsson.
53241 2008-03-26  Jim Meyering  <meyering@redhat.com>
53243         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53244         * modules/gnumakefile (clean-GNUmakefile): Also, use
53245         test ... && ... || : syntax rather than if-then ... fi.
53247         gnumakefile: Don't double-quote-expand $(VPATH) value.
53248         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53250 2008-03-24  Eric Blake  <ebb9@byu.net>
53252         Alter GNUmakefile to install into top directory.
53253         * modules/maintainer-makefile: Split, and add dependency...
53254         * modules/gnumakefile: to this new module.
53255         * build-aux/GNUmakefile: Move...
53256         * top/GNUmakefile: ...here.
53257         * build-aux/maint.mk: Move...
53258         * top/maint.mk: ...here.
53259         * MODULES.html.sh (Support for maintaining...): Document new
53260         module.
53262 2008-03-23  Bruno Haible  <bruno@clisp.org>
53264         * gnulib-tool: New options --vc-files, --no-vc-files.
53265         (func_usage): Document them.
53266         (vc_files): New variable.
53267         (func_import): Consider vc_files.
53268         (func_create_testdir): Set vc_files to empty.
53269         Suggested by Jim Meyering and Karl Berry.
53271 2008-03-23  Bruno Haible  <bruno@clisp.org>
53273         Fix regex compilation error on HP-UX 11.
53274         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53275         * modules/regex (Files): Add m4/mbstate_t.m4.
53276         Reported by Ton Voon <ton.voon@altinity.com>.
53278 2008-03-23  Bruno Haible  <bruno@clisp.org>
53280         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53282 2008-03-23  Eric Blake  <ebb9@byu.net>
53283             Bruno Haible  <bruno@clisp.org>
53285         Install files from top/ in the destination directory.
53286         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53287         augmentation also for the files from top/.
53288         (func_import, func_create_testdir): Rewrite file names:
53289         top/filename -> filename.
53291 2008-03-23  Bruno Haible  <bruno@clisp.org>
53293         Tweak "gnulib --version" output.
53294         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53296 2008-03-23  Bruno Haible  <bruno@clisp.org>
53298         Tweak "gnulib --version" output.
53299         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53300         rather than contents of ChangeLog, when possible.
53302 2008-03-21  Eric Blake  <ebb9@byu.net>
53304         More --version tweaks.
53305         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53306         date of last ChangeLog entry.
53308 2008-03-21  Jim Meyering  <meyering@redhat.com>
53310         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53312 2008-03-20  Eric Blake  <ebb9@byu.net>
53314         VPATH fix.
53315         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53317 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53319         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53320         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53322 2008-03-20  Eric Blake  <ebb9@byu.net>
53324         Sync GNUmakefile with coreutils.
53325         * build-aux/GNUmakefile (have-Makefile): Rename...
53326         (_have-Makefile): ...to this, for namespace consideration.
53327         (GNUmakefile.cfg): Include, if present.
53328         (_autoreconf): Define a default.
53329         (_is-dist-target): New rule for rebuilds to pick up intra-release
53330         version.
53331         (maint-cfg.mk): Rename...
53332         (cfg.mk): ...to this.
53334 2008-03-18  Jim Meyering  <meyering@redhat.com>
53336         New script and module: mktempd
53337         * MODULES.html.sh (maint+release support): Add mktempd.
53338         * build-aux/mktempd: New file.
53339         * modules/mktempd: New file.
53341 2008-03-15  Jim Meyering  <meyering@redhat.com>
53343         Undo last change.
53344         * lib/sha1.c, lib/md5.c: 63 != ~63.
53345         Reported by Andreas Schwab.
53347         sha1.c, md5.c: Hoist a redundant expression.
53348         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53349         "ctx->buflen" only once, before calling *_process_block.
53350         * lib/md5.c (md5_process_bytes): Likewise.
53352 2008-03-14  Eric Blake  <ebb9@byu.net>
53354         Bump copyright year in files generated by gnulib-tool.
53355         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53356         gnulib-tool, rather than hard-coding it.
53358         Fix 'gnulib-tool --version' output to work with git.
53359         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53360         (startup): ...here.
53361         (func_version): Use it to invoke git-version-gen, rather than
53362         relying on CVS keyword expansion.  Modernize wording.
53363         (cvsdatestamp, last_checkin_date, version): Kill unused
53364         variables.
53366 2008-03-12  Jim Meyering  <meyering@redhat.com>
53368         Recognize optional cast of the argument to free.
53369         * build-aux/useless-if-before-free: Update regexps.
53371         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53373 2008-03-11  Bruno Haible  <bruno@clisp.org>
53375         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53376         by a single package.
53377         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53378         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53379         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53380         Reported by Sam Steingold <sds@gnu.org>.
53382 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53384         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53385         repositories.
53387 2008-03-11  Bruno Haible  <bruno@clisp.org>
53389         Avoid conflicts between local macro definitions.
53390         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53391         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53393 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53394             Bruno Haible  <bruno@clisp.org>
53396         Make va_copy work with some version of xlc on AIX 5.1.
53397         * lib/stdarg.in.h: New file.
53398         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53399         On AIX, use a <stdarg.h> file substitute.
53400         * modules/stdarg (Files): Add lib/stdarg.in.h.
53401         (Depends-on): Add include_next.
53402         (Makefile.am): Build a stdarg.h substitute if requested.
53403         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53405 2008-03-10  Bruno Haible  <bruno@clisp.org>
53407         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53408         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53409         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53411 2008-03-10  Bruno Haible  <bruno@clisp.org>
53413         * modules/stdlib (Depends-on): Add include_next, remove
53414         absolute-header.
53416 2008-03-09  Bruno Haible  <bruno@clisp.org>
53418         * lib/freadahead.h (freadahead): Document more precisely.
53419         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53420         the sum of both buffer sizes.
53421         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53422         * NEWS: Document the change.
53424 2008-03-09  Bruno Haible  <bruno@clisp.org>
53426         Extend freadptr to return also the buffer size.
53427         * lib/freadptr.h (freadptr): Add sizep argument.
53428         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53429         (freadptr): Add sizep argument. Determine buffer size like freadahead
53430         does.
53431         * tests/test-freadptr.c: Don't include freadahead.h.
53432         (main): Adapt for new calling convention of freadptr.
53433         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53434         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53435         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53436         tests/test-freadptr2.sh.
53437         (Depends): Remove freadahead.
53438         (TESTS): Add test-freadptr2.sh.
53439         (check_PROGRAMS): Add test-freadptr2.
53441 2008-03-09  Bruno Haible  <bruno@clisp.org>
53443         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53444         Report and solution by Simon Josefsson.
53446 2008-03-06  Bruno Haible  <bruno@clisp.org>
53448         Make fflush after ungetc work on BSD platforms.
53449         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53450         * tests/test-fflush2.c: New file.
53451         * tests/test-fflush2.sh: New file.
53452         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53453         tests/test-fflush2.c.
53454         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53455         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53457 2008-03-06  Eric Blake  <ebb9@byu.net>
53459         Likewise for ftello.
53460         * modules/ftello (Dependencies): Add extensions.
53461         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53463 2008-03-06  Bruno Haible  <bruno@clisp.org>
53465         * modules/fseeko (Dependencies): Add extensions.
53466         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53467         Needed on glibc systems.
53469 2008-03-06  Bruno Haible  <bruno@clisp.org>
53471         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53472         email address.
53473         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53475 2008-03-06  Bruno Haible  <bruno@clisp.org>
53477         * users.txt: Add libgnupdf.
53479 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53481         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53482         (Header File Substitutes, Function Substitutes,
53483         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53484         (Build robot for gnulib): Fix typo.
53486 2008-03-06  Bruno Haible  <bruno@clisp.org>
53488         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53489         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53491 2008-03-06  Bruno Haible  <bruno@clisp.org>
53493         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53494         * doc/gnulib.texi: Include it.
53496 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53498         * modules/func (License): Change license to unlimited; there was
53499         no LGPL parts in the module anyway.
53501 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53503         * modules/__func__: Renamed to modules/func.
53504         * modules/__func__-tests: Renamed to modules/func-tests.
53505         * tests/test-__func__.c: Renamed to tests/test-func.c.
53506         * m4/__func__.m4: Renamed to m4/func.m4.
53507         * doc/gnulib.texi (__func__): Section renamed to func.
53508         Suggested by Eric Blake <ebb9@byu.net>.
53510 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53512         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53513         about __func__.  Make example self-contained.  Suggested by Eric
53514         Blake <ebb9@byu.net>.
53516         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53517         Suggested by Eric Blake <ebb9@byu.net>.
53519 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53521         * modules/__func__: New file.
53522         * modules/__func__-tests: New file.
53523         * tests/test-__func__.c: New file.
53524         * m4/__func__.m4: New file.
53525         * doc/gnulib.texi (__func__): Document __func__ module.
53527 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53529         * modules/byteswap (License): Re-license as LGPLv2+.
53531 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53533         * doc/Makefile: Add pdf target.
53535 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53537         * modules/inline (License): Use 'unlimited', since there are only
53538         *.m4 files in this module.
53540 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53541             Bruno Haible  <bruno@clisp.org>
53543         Add support for HP C 7.1 on OpenVMS 8.3.
53544         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53546 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53548         Update VMS specifics.
53549         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53551 2008-03-02  Jim Meyering  <meyering@redhat.com>
53553         Remove the last dependency on the "free" module.
53554         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53555         Reported by Bob Proulx.
53557         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53559         Remove useless "if" tests before free.  Deprecate "free" module.
53560         * doc/posix-functions/free.texi: Mention that this
53561         module is no longer useful.
53562         * modules/free (Notice): Say this module is obsolete.
53563         * modules/readutmp (Depends-on): Remove free.
53564         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53565         * lib/putenv.c (putenv): Likewise.
53566         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53567         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53568         * tests/test-c-strcasestr.c (main): Likewise.
53569         * tests/test-c-strstr.c (main): Likewise.
53570         * tests/test-mbscasestr1.c (main): Likewise.
53571         * tests/test-mbscasestr2.c (main): Likewise.
53572         * tests/test-mbsstr1.c (main): Likewise.
53573         * tests/test-mbsstr2.c (main): Likewise.
53574         * tests/test-memmem.c (main): Likewise.
53575         * tests/test-strcasestr.c (main): Likewise.
53576         * tests/test-striconv.c (main): Likewise.
53577         * tests/test-striconveh.c (main): Likewise.
53578         * tests/test-striconveha.c (main): Likewise.
53579         * tests/test-strstr.c (main): Likewise.
53581         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53583         bootstrap: sync from coreutils again
53584         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53586 2008-03-01  Jim Meyering  <meyering@redhat.com>
53588         bootstrap: sync from coreutils
53589         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53590         also when the target doesn't exist.
53592 2008-03-01  Eric Blake  <ebb9@byu.net>
53594         Fix bugs in last patch.
53595         * lib/memchr2.c (memchr2): Fix typo.
53596         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53597         extension.
53598         Reported by Bruce Korb.
53600         New module 'memchr2'.
53601         * modules/memchr2: New file.
53602         * modules/memchr2-tests: Likewise.
53603         * lib/memchr2.h: Likewise.
53604         * lib/memchr2.c: Likewise, based on memchr.c.
53605         * tests/test-memchr2.c: New test.
53606         * MODULES.html.sh (String handling): Add memchr2.
53608 2008-02-29  Bruno Haible  <bruno@clisp.org>
53610         * modules/freadseek-tests: New file.
53611         * tests/test-freadseek.sh: New file.
53612         * tests/test-freadseek.c: New file.
53614         New module 'freadseek'.
53615         * modules/freadseek: New file.
53616         * lib/freadseek.h: New file.
53617         * lib/freadseek.c: New file.
53618         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53620 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53622         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53623         wydawca.
53625         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53626         program_invocation_name and program_invocation_short_name are
53627         present.
53629 2008-02-28  Bruno Haible  <bruno@clisp.org>
53631         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53632         * tests/test-freadptr.sh: Also test non-seekable stdin.
53634 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53636         * build-aux/bootstrap (source_base, m4_base)
53637         (doc_base, tests_base): New variables.
53638         (gnulib_tool_options): Do not hardcode base directories, use
53639         the above variables instead.
53641 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53643         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53645 2008-02-28  Bruno Haible  <bruno@clisp.org>
53647         * modules/freadptr-tests: New file.
53648         * tests/test-freadptr.sh: New file.
53649         * tests/test-freadptr.c: New file.
53651         New module 'freadptr'.
53652         * modules/freadptr: New file.
53653         * lib/freadptr.h: New file.
53654         * lib/freadptr.c: New file.
53655         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53657 2008-02-26  Karl Berry  <karl@freefriends.org>
53659         Sync from Libtool:
53660         * libltdl/argz.c (argz_add, argz_count): New functions.
53661         * libltdl/argz.in.h: Declare them.
53662         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53664 2008-02-22  Bruno Haible  <bruno@clisp.org>
53666         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53667         is a pointer type.  Needed for HP-UX 10.
53668         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53669         * doc/posix-functions/gmtime_r.texi: Likewise.
53670         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53672 2008-02-24  Bruno Haible  <bruno@clisp.org>
53674         * modules/environ-tests: New file.
53675         * tests/test-environ.c: New file.
53677         New module 'environ'.
53678         * modules/environ: New file.
53679         * lib/unistd.in.h (environ): New declaration.
53680         * m4/environ.m4: New file.
53681         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53682         after use.
53683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53684         HAVE_DECL_ENVIRON.
53685         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53686         HAVE_DECL_ENVIRON.
53687         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53688         wrong claim that 'environ' is missing on some systems.
53689         * modules/execute (Depends-on): Add environ.
53690         * lib/execute.c (environ): Remove fallback declaration.
53691         * modules/pipe (Depends-on): Add environ.
53692         * lib/pipe.c (environ): Remove fallback declaration.
53693         * modules/setenv (Depends-on): Add environ.
53694         * lib/setenv.c (environ): Remove fallback declaration.
53695         * modules/unsetenv (Depends-on): Add environ.
53696         * lib/unsetenv.c (environ): Remove fallback declaration.
53697         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53698         m4/environ.m4.
53699         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53700         (gl_PREREQ_UNSETENV): Likewise.
53702 2008-02-24  Bruno Haible  <bruno@clisp.org>
53704         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53706 2008-02-20  Bob Proulx  <bob@proulx.com>
53708         Enable use of older two part flavor 'git describe'.
53709         * build-aux/git-version-gen: If using the older two part flavor of
53710         git version then recreate the third part now present in the
53711         newer three part flavor of git describe.
53713 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53715         * lib/fts.c (fts_build): Typo correction to comment.
53717 2008-02-17  Bruno Haible  <bruno@clisp.org>
53719         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53720         generating no-op conflicts.
53722 2008-02-17  Bruno Haible  <bruno@clisp.org>
53724         Speed up by 10%.
53725         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53726         result_entries, rather than an index-based loop.
53728 2008-02-17  Bruno Haible  <bruno@clisp.org>
53730         Speed up by 25%.
53731         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53732         'hashcode_cached'.
53733         (entry_create): New function.
53734         (entry_hashcode): Use the cached hashcode if possible.
53735         (read_changelog_file, try_split_merged_entry): Use entry_create.
53737 2008-02-17  Bruno Haible  <bruno@clisp.org>
53739         Speed up from O(n^2) to O(n) for long ChangeLog files.
53740         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53741         (read_changelog_file): Change implementation of entries_reversed list
53742         to rbtreehash.
53743         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53745 2008-02-17  Bruno Haible  <bruno@clisp.org>
53747         New option --split-merged-entry.
53748         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53749         (find_paragraph_end, try_split_merged_entry): New functions.
53750         (long_options): Add option --split-merged-entry.
53751         (usage): Document option --split-merged-entry.
53752         (main): Implement option --split-merged-entry.
53753         Reported by Eric Blake.
53755 2008-02-17  Bruno Haible  <bruno@clisp.org>
53757         * lib/git-merge-changelog.c: Include c-strstr.h.
53758         (main): Support the "git pull --rebase" situation.
53759         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53760         Reported by Eric Blake.
53762 2008-02-16  Eric Blake  <ebb9@byu.net>
53764         Avoid doubling \ in common case of "c-maybe" quoting style.
53765         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53766         eliding outer quotes.
53767         * lib/quotearg.h: Document this.
53768         * tests/test-quotearg.c (result_strings, inputs, results_g)
53769         (flag_results, locale_results): Test it by adding a new string to
53770         each test group.
53771         (compare_strings): Test new string.
53773 2008-02-13  Eric Blake  <ebb9@byu.net>
53775         Avoid trigraph quoting in default output.
53776         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53777         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53778         unless explicitly requested.
53779         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53781 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53783         Don't rely on signed integer overflowing to negative value.
53784         * lib/getugroups.c (getugroups): Include <limits.h>.
53785         Instead, compare against INT_MAX, and increment only if the test passes.
53787 2008-02-13  Jim Meyering  <meyering@redhat.com>
53788         and Eric Blake  <ebb9@byu.net>
53790         Avoid shadowing warning and compile errors on Linux.
53791         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53792         forwarding macros on Linux.
53793         (dcgettext): Define a stub, for Linux.
53794         (results_g, main): Avoid warnings.
53796 2008-02-12  Eric Blake  <ebb9@byu.net>
53798         Silence warning in last patch.
53799         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53801         Quotearg part 4: add tests, fix c-maybe colon quoting.
53802         * lib/quotearg.h: Improve documentation.
53803         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53804         escapes when adding outer quotes.  When quoting trigraphs, use
53805         valid C notation.  When quoting NUL, omit extra characters if next
53806         character is not digit.  Alter prototype.
53807         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53808         callers.
53809         * modules/quotearg-tests: New module.
53810         * tests/test-quotearg.c: New test.
53812 2008-02-07  Eric Blake  <ebb9@byu.net>
53814         Quotearg part 3: add flag to control outer quote elision.
53815         * lib/quotearg.h (c_maybe_quoting_style): New style.
53816         (enum quoting_flags): Better documentation of flags.
53817         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53818         c-maybe style.
53819         (quotearg_buffer_restyled): Handle new flag to elide outer
53820         quotes.
53822         Quotearg part 2: add flag that can control NUL elision.
53823         * lib/quotearg.h (set_quoting_flags): New prototype.
53824         * lib/quotearg.c (struct quoting_options): Add flag field.
53825         (set_quoting_flags): New function.
53826         (quotearg_buffer_restyled): Add flags parameter.
53827         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53828         (quotearg_n_options): Set the flag, since length cannot be
53829         returned.
53830         (quoting_options_from_style): Default flags correctly.
53832         Quotearg part 1: more wrappers, restore quotearg_char state.
53833         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53834         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53835         (quotearg_colon_mem): New wrappers.
53836         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53837         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53838         functions.
53839         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53840         (quotearg_colon_mem): New functions.
53842 2008-02-11  Bruno Haible  <bruno@clisp.org>
53844         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53845         library in the current directory: it does not work with parallel make.
53846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53848 2008-02-11  Bruno Haible  <bruno@clisp.org>
53850         * .gitattributes: New file.
53852 2008-02-11  Jim Meyering  <meyering@redhat.com>
53854         useless-if-before-free: Fix reversed exit values.
53855         * build-aux/useless-if-before-free: Use correct values
53856         for EXIT_MATCH and EXIT_NO_MATCH.
53858         * build-aux/useless-if-before-free: Close stdout carefully.
53860 2008-02-10  Bruno Haible  <bruno@clisp.org>
53862         New module 'git-merge-changelog'.
53863         * modules/git-merge-changelog: New file.
53864         * lib/git-merge-changelog.c: New file.
53866 2008-02-10  Jim Meyering  <meyering@redhat.com>
53868         useless-if-before-free: New option: --list (-l).
53870         useless-if-before-free: Don't exit immediately upon open failure.
53871         * build-aux/useless-if-before-free: Exit 2 for errors.
53872         Upon failure to open a file, don't exit immediately.
53873         Rather, just warn and continue with any remaining files.
53875 2008-02-10  Bruno Haible  <bruno@clisp.org>
53877         New abstract list operation 'node_set_value'.
53878         * lib/gl_list.h (gl_list_node_set_value): New function.
53879         (struct gl_list_implementation): New field node_set_value.
53880         * lib/gl_list.c (gl_list_node_set_value): New function.
53881         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53882         (gl_array_list_implementation): Update.
53883         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53884         (gl_carray_list_implementation): Update.
53885         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53886         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53887         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53888         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53889         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53890         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53891         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53892         Update.
53893         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53894         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53895         (gl_sublist_list_implementation): Update.
53897 2008-02-10  Bruno Haible  <bruno@clisp.org>
53899         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53900         Needed when ELEMENT is #defined to 'some_type *'.
53902 2008-02-10  Jim Meyering  <meyering@redhat.com>
53904         New script and module: useless-if-before-free
53905         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53906         * build-aux/useless-if-before-free: New file.
53907         * modules/useless-if-before-free: New file.
53909         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53911         xstrtol_error: Fix typo.
53912         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53913         s/exit_failure/exit_status/.
53915 2008-02-09  Jim Meyering  <meyering@redhat.com>
53917         New script and module: gitlog-to-changelog
53918         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53919         * modules/gitlog-to-changelog: New file.
53920         * build-aux/gitlog-to-changelog: New file.
53922 2008-02-08  Jim Meyering  <meyering@redhat.com>
53924         Avoid two "parameter unused" warnings.
53925         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53926         Mark "st" as used.
53928         Use "git COMMAND", not "git-COMMAND".
53929         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53930         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53931         * build-aux/git-version-gen: Use "git status", not "git-status".
53933 2008-02-07  Bruno Haible  <bruno@clisp.org>
53935         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53936         Avoids a crash on Windows Vista.
53937         Reported by Adam Strzelecki <ono@java.pl> via
53938         Simon Josefsson <simon@josefsson.org>.
53940 2008-02-06  Bruno Haible  <bruno@clisp.org>
53942         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53943         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53944         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53946         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53948         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53949         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53950         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53951         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53952         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53953         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53954         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53956         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53957         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53958         left-adjust flag.
53959         * tests/test-snprintf-posix.h (test_function): Likewise.
53960         * tests/test-sprintf-posix.h (test_function): Likewise.
53961         * tests/test-vasprintf-posix.c (test_function): Likewise.
53962         * doc/posix-functions/fprintf.texi: Update.
53963         * doc/posix-functions/printf.texi: Update.
53964         * doc/posix-functions/snprintf.texi: Update.
53965         * doc/posix-functions/sprintf.texi: Update.
53966         * doc/posix-functions/vfprintf.texi: Update.
53967         * doc/posix-functions/vprintf.texi: Update.
53968         * doc/posix-functions/vsnprintf.texi: Update.
53969         * doc/posix-functions/vsprintf.texi: Update.
53970         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53972 2008-02-06  Bruno Haible  <bruno@clisp.org>
53974         Fix bug introduced on 2008-01-26.
53975         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53977 2008-02-06  Bruno Haible  <bruno@clisp.org>
53979         Fix bug introduced on 2007-06-10.
53980         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53981         !NEED_PRINTF_FLAG_ZERO.
53983 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53985         getloadavg: use libperfstat on AIX5
53986         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53988 2008-02-03  Bruno Haible  <bruno@clisp.org>
53990         * lib/diffseq.h: Add comments about required #includes.
53991         Reported by Michael Biggs <gnulib@doubleplum.net>.
53993 2008-02-01  Bruno Haible  <bruno@clisp.org>
53995         * users.txt: Add gnuit.
53997 2008-01-31  Bruno Haible  <bruno@clisp.org>
53999         * lib/md4.c (set_uint32): Mark as inline.
54000         * lib/md5.c (set_uint32): Likewise.
54001         * lib/sha1.c (set_uint32): Likewise.
54002         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54003         * m4/md5.m4 (gl_MD5): Likewise.
54004         * m4/sha1.m4 (gl_SHA1): Likewise.
54006 2008-01-31  Jim Meyering  <meyering@redhat.com>
54008         Use "sizeof VAR", rather than a literal "4".
54009         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54010         * lib/md4.c (md4_read_ctx): Likewise.
54011         * lib/sha1.c (sha1_read_ctx): Likewise.
54013 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54015         * tests/test-sha1.c: New file, based on test-md5.c.
54017         * modules/crypto/sha1-tests: New file.
54019 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54021         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54023 2008-01-31  Jim Meyering  <meyering@redhat.com>
54025         Prefer "sizeof v" over the equivalent "4".
54026         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54027         * lib/md5.c (set_uint32): Likewise.
54028         * lib/sha1.c (set_uint32): Likewise.
54030 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54032         * lib/sha1.c (set_uint32): Mark function as static.
54034 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54036         md2: clarify comments to say that alignment is not required.
54037         * lib/md2.h: Remove warning about alignment in comment.
54038         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54039         never been required.
54041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54043         md4: adapt alignment constraint fix from sha1.
54044         * lib/md4.c (set_uint32): New function, from sha1.c
54045         (md4_read_ctx): Use it.
54046         (md4_finish_ctx): Doc fix.
54047         * lib/md4.h: Doc fix.
54049 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54051         md5: adapt alignment constraint fix from sha1.
54052         * lib/md5.c (set_uint32): New function, from sha1.c
54053         (md5_read_ctx): Use it.
54054         (md5_finish_ctx): Doc fix.
54055         * lib/md5.h: Doc fix.
54057 2008-01-30  Peter Palfrader  <weasel@debian.org>
54059         sha1: remove the result buffer alignment constraint
54060         * lib/sha1.c (set_uint32): New function.
54061         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54062         constraint.
54063         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54064         * lib/sha1.h: Likewise.
54066 2008-01-30  Andreas Schwab  <schwab@suse.de>
54067             Bruno Haible  <bruno@clisp.org>
54069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54070         correct definition of LDBL_MIN_EXP.
54072 2008-01-30  Karl Berry  <karl@gnu.org>
54074         * config/srclist-update: try to preserve x bit on updates.
54075         * config/srclistvars.sh: update for karl.
54077 2008-01-29  Jim Meyering  <meyering@redhat.com>
54079         vasnprintf.c: Avoid warning about unused label
54080         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54081         "overflow" label definition and associated code with the
54082         same cpp condition that guards the sole use of that label.
54084 2008-01-26  Bruno Haible  <bruno@clisp.org>
54086         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54087         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54088         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54089         * lib/isnanl-nolibm.h (isnanl): Likewise.
54090         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54092 2008-01-26  Bruno Haible  <bruno@clisp.org>
54094         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54095         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54097 2008-01-26  Bruno Haible  <bruno@clisp.org>
54099         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54100         GCC >= 4.0 built-in.
54101         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54103 2008-01-26  Bruno Haible  <bruno@clisp.org>
54105         Rename isnan, applicable to 'double' only, to isnand.
54106         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54107         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54108         (configure.ac): Update.
54109         (Include): Replace "isnan.h" with "isnand.h".
54110         * m4/isnand.m4: Renamed from m4/isnan.m4.
54111         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54112         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54113         instead of isnan.c.
54114         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54115         instead of HAVE_ISNAN_IN_LIBC.
54116         (isnand): Renamed from isnan.
54117         * lib/isnand.c: New file.
54118         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54119         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54120         (Makefile.am): Update.
54121         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54122         Include isnand.h instead of isnan.h.
54123         (main): Test isnand instead of isnan.
54124         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54125         isnan-nolibm.
54126         * modules/frexp (Depends-on): Likewise.
54127         * modules/frexp-tests (Depends-on): Likewise.
54128         * modules/frexp-nolibm (Depends-on): Likewise.
54129         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54130         * modules/isfinite (Depends-on): Likewise.
54131         * modules/round-tests (Depends-on): Likewise.
54132         * modules/signbit (Depends-on): Likewise.
54133         * modules/signbit-tests (Depends-on): Likewise.
54134         * modules/snprintf-posix (Depends-on): Likewise.
54135         * modules/sprintf-posix (Depends-on): Likewise.
54136         * modules/trunc-tests (Depends-on): Likewise.
54137         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54138         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54139         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54140         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54141         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54142         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54143         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54144         * modules/vasnprintf-posix (Depends-on): Likewise.
54145         * modules/vasprintf-posix (Depends-on): Likewise.
54146         * modules/vfprintf-posix (Depends-on): Likewise.
54147         * modules/vsnprintf-posix (Depends-on): Likewise.
54148         * modules/vsprintf-posix (Depends-on): Likewise.
54149         * lib/frexp.c: Include isnand.h instead of isnan.h.
54150         (ISNAN): Set to isnand instead of isnan.
54151         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54152         (gl_isfinited): Use isnand instead of isnan.
54153         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54154         (gl_signbitd): Use isnand instead of isnan.
54155         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54156         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54157         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54158         (main): Use isnand instead of isnan.
54159         * tests/test-round1.c: Include isnand.h.
54160         (main): Use isnand instead of isnan.
54161         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54162         (ISNAN): Set to isnand instead of isnan.
54163         * tests/test-trunc1.c: Include isnand.h.
54164         (main): Use isnand instead of isnan.
54165         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54166         (equal): Use isnand instead of isnan.
54167         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54168         isnand-nolibm.
54169         * NEWS: Mention the change.
54171 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54172             Bruno Haible  <bruno@clisp.org>
54174         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54175         the GCC builtins for signbits are present and set
54176         REPLACE_SIGNBIT_USING_GCC if so.
54177         * lib/math.in.h (signbit): Define using GCC builtins if
54178         REPLACE_SIGNBIT_USING_GCC is set.
54179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54180         REPLACE_SIGNBIT_USING_GCC.
54181         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54183 2008-01-25  Jim Meyering  <meyering@redhat.com>
54185         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54186         * lib/poll.c: Include <config.h>, not "config.h".
54187         * tests/test-getaddrinfo.c: Likewise.
54189 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54191         * modules/sockets-tests: New file.
54193 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54195         * modules/sockets: New module, can be used to call WSA_Startup and
54196         WSA_Cleanup when needed.
54198         * lib/sockets.h, lib/sockets.c: New files.
54200         * m4/sockets.m4: New file.
54202         * tests/test-sockets.c: New file.
54204 2008-01-19  Bruno Haible  <bruno@clisp.org>
54206         * doc/posix-headers: Renamed from doc/headers.
54207         * doc/posix-functions: Renamed from doc/functions.
54208         * doc/gnulib.texi: Update.
54210 2008-01-19  Bruno Haible  <bruno@clisp.org>
54212         * doc/glibc-functions/strcasestr.texi: Include contents of
54213         doc/functions/strcasestr.texi, fixing the list of platforms.
54214         * doc/functions/strcasestr.texi: Remove file.
54216 2008-01-19  Bruno Haible  <bruno@clisp.org>
54218         * doc/glibc-functions/memmem.texi: Include contents of
54219         doc/functions/memmem.texi.
54220         * doc/functions/memmem.texi: Remove file.
54222 2008-01-18  Bruno Haible  <bruno@clisp.org>
54224         * doc/glibc-functions/*.texi: New files.
54225         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54226         to use the new files.
54228 2008-01-17  Bruno Haible  <bruno@clisp.org>
54230         * tests/test-gethostname.c (main): Fix printf statement.
54232 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54234         * modules/gethostname-tests: New file.
54236         * tests/test-gethostname.c: New file.
54238 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54240         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54241         used by the UNAME case.  Reported by Bruno Haible
54242         <bruno@clisp.org>.
54244 2008-01-17  Eric Blake  <ebb9@byu.net>
54246         Convert c-strcasestr to be more efficient.
54247         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54248         (Depends-on): Add c-strcase, remove malloca, strnlen.
54249         * tests/test-c-strcasestr.c (main): Enhance test.
54250         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54252 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54254         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54255         Use it in creating po/Makevars.
54257 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54259         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54260         Applications that requires it should initialize libgcrypt
54261         manually.
54263 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54265         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54267 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54269         Fix problem with getdate on mingw32 reported by Simon Josefsson
54270         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54271         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54272         tzname", when deciding whether to declare tzname.
54273         * lib/strftime.c (tzname): Likewise.
54275 2008-01-15  Bruno Haible  <bruno@clisp.org>
54277         Work around a MacOS X 10.5 bug in frexpl().
54278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54279         * doc/functions/frexpl.texi: Document the bug.
54280         Reported by Elias Pipping <pipping@gentoo.org>.
54282 2008-01-14  Eric Blake  <ebb9@byu.net>
54284         Touch up previous patch.
54285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54286         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54288         Convert strcasestr module to use Two-Way algorithm.
54289         * modules/strcasestr-simple: New module, based on the old
54290         strcasestr, but with Two-Way rather than KMP.
54291         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54292         * lib/string.in.h (rpl_strcasestr): Declare.
54293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54294         performance.
54295         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54296         * modules/string (Makefile.am): Support strcasestr.
54297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54298         * modules/strcasestr-tests (Depends-on): Check for alarm.
54299         * tests/test-strcasestr.c: Augment test.
54300         * lib/str-two-way.h: Clean up stray macro.
54301         * NEWS: Document new module.
54302         * MODULES.html.sh (string handling): Likewise.
54303         * doc/functions/strcasestr.texi: New file.
54304         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54305         here, since it is not a POSIX function.
54307 2008-01-14  Colin Watson  <cjwatson@debian.org>
54308             Bruno Haible  <bruno@clisp.org>
54310         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54311         works fine; if not, set REPLACE_STRSIGNAL.
54312         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54314         REPLACE_STRSIGNAL.
54315         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54316         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54317         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54319 2008-01-14  Bruno Haible  <bruno@clisp.org>
54321         * modules/strsignal (Include): Change to <string.h>.
54323 2008-01-14  Colin Watson  <cjwatson@debian.org>
54325         * modules/argp (Notice): Add a notice recommending to change
54326         XGETTEXT_OPTIONS.
54327         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54329 2008-01-13  Colin Watson  <cjwatson@debian.org>
54331         * modules/strsignal-tests: New file.
54332         * tests/test-strsignal.c: New file.
54334         * lib/strsignal.c: New file, from glibc with modifications.
54335         * lib/siglist.h: New file, from glibc with modifications.
54336         * lib/string.in.h (strsignal): New declaration.
54337         * m4/strsignal.m4: New file.
54338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54339         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54340         * modules/strsignal: New file.
54341         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54342         HAVE_DECL_STRSIGNAL.
54344 2008-01-13  Bruno Haible  <bruno@clisp.org>
54346         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54347         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54348         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54349         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54351 2008-01-13  Bruno Haible  <bruno@clisp.org>
54353         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54354         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54355         * lib/argp.h (__attribute__): Likewise.
54356         * lib/c-stack.c (__attribute__): Likewise.
54357         * lib/error.h (__attribute__): Likewise.
54358         * lib/fts.c (__attribute__): Likewise.
54359         * lib/openat.h (__attribute__): Likewise.
54360         * lib/stdio.in.h (__attribute__): Likewise.
54361         * lib/string.in.h (__attribute__): Likewise.
54362         * lib/utimens.c (__attribute__): Likewise.
54363         * lib/vasnprintf.h (__attribute__): Likewise.
54364         * lib/xalloc.h (__attribute__): Likewise.
54365         * lib/xprintf.h (__attribute__): Likewise.
54366         * lib/xstrtol.h (__attribute__): Likewise.
54367         * lib/xvasprintf.h (__attribute__): Likewise.
54369 2008-01-12  Bruno Haible  <bruno@clisp.org>
54371         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54372         * doc/glibc-headers/a.out.texi: New file.
54373         * doc/glibc-headers/aliases.texi: New file.
54374         * doc/glibc-headers/alloca.texi: New file.
54375         * doc/glibc-headers/ar.texi: New file.
54376         * doc/glibc-headers/argp.texi: New file.
54377         * doc/glibc-headers/argz.texi: New file.
54378         * doc/glibc-headers/byteswap.texi: New file.
54379         * doc/glibc-headers/crypt.texi: New file.
54380         * doc/glibc-headers/endian.texi: New file.
54381         * doc/glibc-headers/envz.texi: New file.
54382         * doc/glibc-headers/err.texi: New file.
54383         * doc/glibc-headers/error.texi: New file.
54384         * doc/glibc-headers/execinfo.texi: New file.
54385         * doc/glibc-headers/fpu_control.texi: New file.
54386         * doc/glibc-headers/fstab.texi: New file.
54387         * doc/glibc-headers/fts.texi: New file.
54388         * doc/glibc-headers/getopt.texi: New file.
54389         * doc/glibc-headers/ieee754.texi: New file.
54390         * doc/glibc-headers/ifaddrs.texi: New file.
54391         * doc/glibc-headers/libintl.texi: New file.
54392         * doc/glibc-headers/mcheck.texi: New file.
54393         * doc/glibc-headers/mntent.texi: New file.
54394         * doc/glibc-headers/obstack.texi: New file.
54395         * doc/glibc-headers/paths.texi: New file.
54396         * doc/glibc-headers/printf.texi: New file.
54397         * doc/glibc-headers/pty.texi: New file.
54398         * doc/glibc-headers/resolv.texi: New file.
54399         * doc/glibc-headers/shadow.texi: New file.
54400         * doc/glibc-headers/sysexits.texi: New file.
54401         * doc/glibc-headers/ttyent.texi: New file.
54403 2008-01-12  Jim Meyering  <meyering@redhat.com>
54405         announce-gen: emit Gnulib's git-based version string.
54406         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54407         New option --gnulib-version=V, where V is expected to be
54408         the output of running git describe in the gnulib directory.
54409         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54410         not useful, and plan to stop publishing an xdelta file with each
54411         coreutils release.
54413         * build-aux/announce-gen: Also check for lzma-compressed files.
54415 2008-01-11  Bruno Haible  <bruno@clisp.org>
54417         * tests/test-memmem.c (main): Increase maximum allowed time.
54418         * tests/test-strstr.c (main): Likewise.
54420 2008-01-11  Bruno Haible  <bruno@clisp.org>
54422         * doc/functions/memmem.texi: Add more precisions about platforms.
54423         * doc/functions/strstr.texi: Likewise.
54425 2008-01-10  Eric Blake  <ebb9@byu.net>
54427         * m4/strstr.m4: Delete cruft from copy-n-paste.
54428         Reported by Bruno Haible.
54430 2008-01-10  Bruno Haible  <bruno@clisp.org>
54432         Make c-strstr rely on strstr.
54433         * lib/c-strstr.c: Don't include str-kmp.h.
54434         (c_strstr): Define in terms of strstr.
54435         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54436         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54438 2008-01-10  Bruno Haible  <bruno@clisp.org>
54440         * doc/gnulib.texi (String Functions in C Locale): New section.
54441         * doc/c-ctype.texi: New file.
54442         * doc/c-strcase.texi: New file.
54443         * doc/c-strcaseeq.texi: New file.
54444         * doc/c-strcasestr.texi: New file.
54445         * doc/c-strstr.texi: New file.
54446         * doc/c-strtod.texi: New file.
54447         * doc/c-strtold.texi: New file.
54449 2008-01-10  Eric Blake  <ebb9@byu.net>
54451         * lib/relocatable.h: Fix a comment.
54453 2008-01-10  Eric Blake  <ebb9@byu.net>
54455         Share two-way algorithm.
54456         * lib/str-two-way.h: New file, merged from...
54457         * lib/memmem.c: ...here...
54458         * lib/strstr.c: ...and here.
54459         * modules/memmem (Files): Use it.
54460         * modules/strstr (Files): Likewise.
54462         Avoid quadratic strstr implementations.
54463         * lib/strstr.c: New file.
54464         * m4/strstr.m4: Likewise.
54465         * modules/strstr: Likewise.
54466         * modules/strstr-tests: Likewise.
54467         * tests/test-strstr.c: Likewise.
54468         * lib/string.in.h (rpl_strstr): Declare.
54469         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54471         * modules/string (Makefile.am): Likewise.
54472         * MODULES.html.sh (string handling): Mention new module.
54473         * doc/functions/strstr.texi (strstr): Document the bug.
54475 2008-01-10  Bruno Haible  <bruno@clisp.org>
54477         * lib/relocatable.h (relocate): State whether result is freshly
54478         allocated or not.
54479         * lib/relocatable.c (relocate): Return a freshly allocated string
54480         instead of a pointer to a privately held string.
54481         Reported by Sylvain Beucler <beuc@gnu.org>.
54483 2008-01-10  Colin Watson  <cjwatson@debian.org>
54485         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54486         s/S_ISNLK/S_ISLNK/.
54488 2008-01-09  Bruno Haible  <bruno@clisp.org>
54490         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54491         and other files.
54492         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54493         if it's only a guess.
54494         * modules/memmem: Simplify by depending on memmem-simple.
54496 2008-01-09  Bruno Haible  <bruno@clisp.org>
54498         Work around OpenBSD 4.0 tdelete() bug.
54499         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54500         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54501         macros and don't redefine the enum values.
54502         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54503         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54504         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54506 2008-01-09  Bruno Haible  <bruno@clisp.org>
54508         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54509         (main): Don't perform the tests if setlocale did not install a UTF-8
54510         locale. Needed on OpenBSD 4.0.
54511         * modules/wcwidth-tests (Depends-on): Add localcharset.
54513 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54515         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54516         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54517         * NEWS: announce this.
54518         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54520 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54521         and Eric Blake  <ebb9@byu.net>
54523         Add memmem-simple module.
54524         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54525         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54526         * modules/memmem-simple: New file.
54527         * modules/memmem (Description): Tweak.
54528         * MODULES.html.sh (string handling): Mention new module.
54529         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54530         addressed by memmem-simple.
54531         * NEWS: Document the difference.
54533 2008-01-09  Eric Blake  <ebb9@byu.net>
54535         Give gcc some memmem optimization hints.
54536         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54537         (strcasestr): Declare as pure.
54538         * modules/memmem (Maintainer): Claim my implementation.
54540 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54542         Support AIX 6.1 and higher.
54543         * build-aux/config.libpath: Likewise.
54544         * build-aux/config.rpath: Likewise.
54546 2008-01-08  Jim Meyering  <meyering@redhat.com>
54547             Bruno Haible  <bruno@clisp.org>
54549         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54550         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54551         Reported by Peter Fales in
54552         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54554 2008-01-08  Bruno Haible  <bruno@clisp.org>
54556         * modules/unictype/category-of (Depends-on): Add
54557         unictype/category-none.
54558         * modules/unictype/category-and-tests (Depends-on): Add
54559         unictype/category-{L,N,Lu,Nd}.
54560         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54561         * modules/unictype/category-or-tests (Depends-on): Add
54562         unictype/category-{L,N}.
54563         * modules/unictype/category-name-tests (Depends-on): Add
54564         unictype/category-{Z,Nl}.
54565         Reported by Simon Josefsson.
54567 2008-01-08  Bruno Haible  <bruno@clisp.org>
54569         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54570         convention better.
54571         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54572         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54573         Reported by Peter Miller <millerp@canb.auug.org.au>.
54575 2008-01-08  Eric Blake  <ebb9@byu.net>
54577         Rewrite memmem to guarantee linear complexity without malloc.
54578         * lib/memmem.c (memmem): Use Two-Way rather than
54579         Knuth-Morris-Pratt, to allow O(1) space usage.
54580         (critical_factorization, two_way_short_needle)
54581         (two_way_long_needle): New functions.
54582         (knuth_morris_pratt): Delete.
54583         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54584         Add stdint.
54585         * tests/test-memmem.c (main): Add tests for periodic needle and
54586         sublinear performance.
54587         * doc/functions/memmem.texi (memmem): Document other deficiencies
54588         in cygwin and older glibc.
54590 2008-01-08  Bruno Haible  <bruno@clisp.org>
54592         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54593         augmentation.
54595 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54597         Add a configure time option: --disable-acl.
54598         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54599         AC_ARG_ENABLE(acl).
54601 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54603         * tests/test-localename.c: Don't include obsolete "setenv.h".
54605         * modules/localename-tests (Depends-on): Need unsetenv.
54607 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54609         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54611 2008-01-06  Colin Watson  <cjwatson@debian.org>
54613         * users.txt: Add man-db.
54615 2008-01-07  Bruno Haible  <bruno@clisp.org>
54617         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54618         previous section name.
54620 2008-01-07  Bruno Haible  <bruno@clisp.org>
54622         * lib/progname.c (set_program_name): Don't strip off a leading
54623         "lt-" prefix outside a .libs directory.
54624         Suggested by Paul Eggert.
54626 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54627             Bruno Haible  <bruno@clisp.org>
54629         Improve memory cleanup in 'relocatable' module.
54630         * lib/relocatable.h (compute_curr_prefix): Change return type to
54631         'char *'.
54632         * lib/relocatable.c (compute_curr_prefix): Change return type to
54633         'char *'. Free curr_installdir after use.
54634         (relocate): Free curr_prefix_better after use.
54635         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54637 2008-01-01  Bruno Haible  <bruno@clisp.org>
54639         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54640         failure on older glibc systems.
54641         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54643 2008-01-05  Eric Blake  <ebb9@byu.net>
54645         Avoid quadratic system memmem.
54646         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54647         Reported by Ralf Wildenhues.
54649         Fix memmem test for mingw.
54650         * modules/memmem-tests (configure.ac): Check for alarm.
54651         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54652         it.
54653         * doc/functions/memmem.texi: New file.
54654         * doc/gnulib.texi (Function Substitutes): Add memmem.
54655         Reported by Bruno Haible.
54657 2008-01-04  Bruno Haible  <bruno@clisp.org>
54659         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54660         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54661         gl_HEADER_STRING_H_DEFAULTS.
54663 2008-01-04  Eric Blake  <ebb9@byu.net>
54665         Shorten duration of memmem test.
54666         * tests/test-memmem.c (main): Use alarm to declare failure if test
54667         is taking too long.
54668         Reported by Ralf Wildenhues.
54670 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54672         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54673         string, needed by strerror.
54675 2008-01-03  Colin Watson  <cjwatson@debian.org>
54676             Bruno Haible  <bruno@clisp.org>
54678         * doc/gnulib-tool.texi (Localization): New section.
54680 2008-01-02  Bruno Haible  <bruno@clisp.org>
54682         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54683         variables to 'unsigned char *' type.
54684         Reported by Paul Eggert.
54686 2008-01-02  Jim Meyering  <jim@meyering.net>
54688         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54690 2007-12-31  Jim Meyering  <jim@meyering.net>
54692         Avoid use of private FTS type name.
54693         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54695 2007-12-30  Karl Berry  <karl@gnu.org>
54697         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54698         work around defect in Texinfo and/or the standalone Info browser.
54700 2007-12-30  Bruno Haible  <bruno@clisp.org>
54702         Unify 5 copies of the KMP code.
54703         * lib/str-kmp.h: New file.
54704         * lib/c-strcasestr.c: Include str-kmp.h.
54705         (knuth_morris_pratt): Remove function.
54706         (c_strcasestr): Update.
54707         * lib/c-strstr.c: Include str-kmp.h.
54708         (knuth_morris_pratt): Remove function.
54709         (c_strcasestr): Update.
54710         * lib/mbscasestr.c: Include str-kmp.h.
54711         (knuth_morris_pratt_unibyte): Remove function.
54712         * lib/mbsstr.c: Include str-kmp.h.
54713         (knuth_morris_pratt_unibyte): Remove function.
54714         * lib/strcasestr.c: Include str-kmp.h.
54715         (knuth_morris_pratt): Remove function.
54716         (strcasestr): Update.
54717         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54718         * modules/c-strstr (Files): Likewise.
54719         * modules/mbscasestr (Files): Likewise.
54720         * modules/mbsstr (Files): Likewise.
54721         * modules/strcasestr (Files): Likewise.
54722         Suggested by Paul Eggert.
54724 2007-12-30  Bruno Haible  <bruno@clisp.org>
54726         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54727         defined.
54729 2007-12-30  Bruno Haible  <bruno@clisp.org>
54731         * lib/xmalloca.h: Include xalloc.h.
54732         (xnmalloca): New macro.
54734 2007-12-30  Bruno Haible  <bruno@clisp.org>
54736         * lib/malloca.h (nmalloca): New macro.
54737         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54738         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54739         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54740         knuth_morris_pratt_multibyte): Likewise.
54741         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54742         knuth_morris_pratt_multibyte): Likewise.
54743         * lib/memmem.c (knuth_morris_pratt): Likewise.
54744         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54746 2007-12-25  Bruno Haible  <bruno@clisp.org>
54748         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54749         * lib/glob.c: Don't include openat.h.
54750         (link_exists2_p): Add back the code that deals with the
54751         !GLOB_ALTDIRFUNC case.
54752         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54753         let it do the filename concatenation.
54754         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54755         * modules/glob (Depends-on): Remove openat.
54757 2007-12-31  Bruno Haible  <bruno@clisp.org>
54759         * modules/dirfd (License): Change to LGPLv2+.
54760         Approved by Jim Meyering.
54762 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54764         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54765         when multiplying M by sizeof (size_t).
54767 2007-12-10  Martin Lambers  <marlam@marlam.de>
54769         Override getpagesize on mingw.
54770         * lib/getpagesize.c: New file.
54771         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54772         * modules/getpagesize (Files): Add lib/getpagesize.c.
54773         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54775         REPLACE_GETPAGESIZE.
54776         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54778 2007-12-25  Bruno Haible  <bruno@clisp.org>
54780         * modules/localcharset (Notice): New field.
54781         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54782         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54784 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54785             Bruno Haible  <bruno@clisp.org>
54787         Avoid using the syntax symbol() in formatted documentation.
54788         * MODULES.html.sh (func_module): When replacing symbol() with a
54789         hyperlink, remove the parentheses. Show an error if some remain.
54790         Recognize and render the '...' syntax.
54791         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54792         Rework. Add paragraph about GCC's inlining.
54793         * doc/alloca.texi: Likewise.
54794         * doc/error.texi: Remove parentheses from symbol reference.
54795         * doc/gnulib-intro.texi: Likewise.
54796         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54797         * modules/fnmatch (Description): Reword to say "the ... function".
54798         * modules/full-read (Description): Likewise.
54799         * modules/full-write (Description): Likewise.
54800         * modules/safe-read (Description): Likewise.
54801         * modules/safe-write (Description): Likewise.
54802         * modules/strchrnul (Description): Likewise.
54803         * modules/trim (Description): Likewise.
54804         * modules/error (Description): Remove parentheses from symbol
54805         references.
54806         * modules/verror (Description): Likewise.
54807         Reported by Karl Berry.
54809 2007-12-25  Bruno Haible  <bruno@clisp.org>
54811         Fixup after 2007-10-16 commit.
54812         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54814 2007-12-24  Bruno Haible  <bruno@clisp.org>
54816         Make --enable-relocatable work with DESTDIR.
54817         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54818         to compute installdir from destprog.
54819         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54820         also set the RELOC_DESTDIR variable.
54821         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54823 2007-12-24  Bruno Haible  <bruno@clisp.org>
54825         Fix link error due to xalloc_die().
54826         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54827         of xreadlink.
54828         * lib/relocwrapper.c: Update comments.
54829         * build-aux/install-reloc: Remove xreadlink.c from file list.
54830         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54831         xreadlink.c.
54832         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54834 2007-12-24  Bruno Haible  <bruno@clisp.org>
54836         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54837         * lib/setenv.h: Remove file.
54838         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54839         lib/setenv.h.
54840         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54841         (Depends-on): Add stdlib.
54842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54843         gl_FUNC_UNSETENV.
54844         (Include): Replace setenv.h with <stdlib.h>.
54845         * modules/unsetenv: New file.
54846         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54847         * lib/unsetenv.c: Include <stdlib.h> first.
54848         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54849         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54850         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54851         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54852         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54853         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54855         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54856         * doc/functions/unsetenv.texi: Update.
54857         * modules/xsetenv (Depends-on): Add unsetenv.
54858         * modules/getdate (Depends-on): Likewise.
54859         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54860         * lib/xsetenv.c: Don't include setenv.h.
54861         * lib/getdate.y: Likewise.
54862         * lib/relocwrapper.c: Likewise.
54863         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54864         (Depends-on): Add stdlib.
54865         * NEWS: Mention the changes.
54866         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54868 2007-12-23  Bruno Haible  <bruno@clisp.org>
54870         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54871         indentation.
54873 2007-12-23  Bruno Haible  <bruno@clisp.org>
54875         * lib/c-strcasestr.c: Add more comments.
54876         * lib/c-strstr.c: Likewise.
54877         * lib/mbscasestr.c: Likewise.
54878         * lib/mbsstr.c: Likewise.
54879         * lib/strcasestr.c: Likewise.
54880         * lib/memmem.c: Likewise.
54882 2007-12-23  Bruno Haible  <bruno@clisp.org>
54884         * tests/test-memmem.c: Include <string.h> first.
54886 2007-12-22  Bruno Haible  <bruno@clisp.org>
54888         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54889         the contents of $testsbase.
54890         Reported by Ralf Wildenhues.
54892 2007-12-22  Bruno Haible  <bruno@clisp.org>
54894         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54895         two variables local_ldadd_before, local_ldadd_last.
54897 2007-12-20  Eric Blake  <ebb9@byu.net>
54899         Work around circular library issue when cross-compiling.
54900         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54901         that progname.o does not need to pull in rpl_memcmp.
54903 2007-12-19  Eric Blake  <ebb9@byu.net>
54905         Fix memmem to avoid O(n^2) worst-case complexity.
54906         * lib/memmem.c (knuth_morris_pratt): New function.
54907         (memmem): Use it if first few naive iterations fail.
54908         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54909         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54910         * modules/memchr (License): Likewise.
54911         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54912         malloca.
54913         * tests/test-memmem.c: Rewrite, borrowing ideas from
54914         test-mbsstr1.c; the old version wouldn't even compile!
54915         * modules/memmem-tests: New file.
54916         * lib/string.in.h (rpl_memmem): Add declaration.
54917         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54919         REPLACE_MEMMEM.
54921 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54923         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54924         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54925         before any system include files, and undef after them all.  This
54926         should fix a problem on VMS reported by John E. Malmberg in
54927         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54929 2007-12-17  Eric Blake  <ebb9@byu.net>
54931         Revert addition of verify, for BSD/OS.
54932         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54933         can't handle large files, for the sake of obsolete platforms.
54934         * modules/fseeko (Depends-on): Remove verify.
54935         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54936         * doc/functions/ftello.texi (ftello): Likewise.
54937         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54938         Reported by Larry Jones.
54940 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54942         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54943         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54945 2007-12-17  Jim Meyering  <meyering@redhat.com>
54947         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54948         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54949         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54950         * modules/getcwd (Depends-on): Add openat.
54951         Reported by Petr Salinger.
54953 2007-12-17  Bruno Haible  <bruno@clisp.org>
54955         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54956         avoid a segmentation fault of the configure test on x86_64 systems.
54958 2007-12-15  Jim Meyering  <meyering@redhat.com>
54960         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54962 2007-12-13  Eric Blake  <ebb9@byu.net>
54964         Another fseek test.
54965         * tests/test-fseek.c (main): Also test ungetc handling.
54966         * tests/test-fseeko.c (main): Likewise.
54967         * modules/fseeko (Depends-on): Add verify.
54968         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54969         large.
54970         Reported by Larry Jones.
54972         Fix fseeko on mingw.
54973         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54974         seek.
54976         Beef up fseek tests.
54977         * tests/test-fseek.c (main): Also test eof handling.
54978         * tests/test-fseeko.c (main): Likewise.
54979         Reported by Larry Jones.
54981 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54983         Fix fseeko on BSD-based platforms.
54984         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54985         successful seek.
54987 2007-12-12  Eric Blake  <ebb9@byu.net>
54989         Allow circular dependency of separate libtests.a
54990         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54991         when use_libtests.
54993 2007-12-11  Eric Blake  <ebb9@byu.net>
54995         Fix bug with -0.0L in previous patch.
54996         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54997         * tests/test-isnan.c (main): Also test on zeroes.
54998         * tests/test-isnanf.c (main): Likewise.
54999         * tests/test-isnanl.h (main): Likewise.
55001         Detect pseudo-denormals on x86 even when cross-compiling.
55002         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55003         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55004         invalid bit patterns that happen to satisfy ==.
55006         Avoid link failures with separate libtests.a.
55007         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55008         last, to satisfy circular dependencies.
55010 2007-12-11  Eric Blake  <ebb9@byu.net>
55011         and Bruno Haible  <bruno@clisp.org>
55013         Fix OpenBSD 4.0 <float.h> handling of long double.
55014         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55015         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55016         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55018 2007-12-11  Jim Meyering  <meyering@redhat.com>
55020         * users.txt: Add libvirt.
55022         Support versions of autoconf prior to 2.59c.
55023         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55024         if it is not already defined.
55026 2007-12-09  Bruno Haible  <bruno@clisp.org>
55028         Let 'gnulib-tool --import' collect sources needed for the tests in
55029         tests/ rather than in lib/.
55030         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55031         argument. If true, add rules to generate libtests.a, and put libtests.a
55032         into $(LDADD). Consider source files in subdirectories and set
55033         uses_subdirs.
55034         (func_emit_initmacro_start, func_emit_initmacro_end,
55035         func_emit_initmacro_done): Pass all arguments explicitly.
55036         (func_import): Determine two module lists main_modules,
55037         testsrelated_modules. Determine use_libtests. Determine two variables
55038         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55039         instead of just sed_transform_lib_file. Determine two variables
55040         main_files and testsrelated_files. Compute 'files' as the union of
55041         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55042         func_add_or_update. In the generated gnulib-comp.m4, collect the
55043         object files for tests/ in different variables than those for lib/.
55044         Substitute LIBTESTS_LIBDEPS.
55045         (func_create_testdir): Combine the uses_subdirs results from
55046         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55048 2007-12-09  Bruno Haible  <bruno@clisp.org>
55050         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55051         the build-aux directory.
55053 2007-12-09  Bruno Haible  <bruno@clisp.org>
55055         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55056         introduced on 2006-09-09.
55058 2007-12-07  Jim Meyering  <meyering@redhat.com>
55060         Let these macros work also with autoconf-2.59.
55061         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55062         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55063         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55065 2007-12-06  Jim Meyering  <meyering@redhat.com>
55067         Avoid a configure-time syntax error in gl_FUNC_ACL.
55068         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55069         function in each branch, before testing the cache variable.
55071 2007-12-04  Eric Blake  <ebb9@byu.net>
55073         Make scripts executable.
55074         * build-aux/config.guess: Add execute permissions.
55075         * build-aux/config.sub: Likewise.
55076         * build-aux/gendocs.sh: Likewise.
55078         Fix frexp on mingw.
55079         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55080         cross-compiling.
55081         * doc/functions/frexp.texi (frexp): Document the bug.
55083         Make cygwin fseeko check more reliable.
55084         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55085         version numbers, rather than unrelated feature check.
55086         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55087         * doc/functions/ftello.texi (ftello): Likewise.
55088         Reported by Bruno Haible.
55090         * m4/strerror.m4: Bump version number.
55092 2007-12-03  Bruno Haible  <bruno@clisp.org>
55094         * doc/functions/mprotect.texi: Mention the mingw problem.
55096 2007-12-03  Eric Blake  <ebb9@byu.net>
55098         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55099         REPLACE_STRERROR is initialized before this macro.
55101 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55103         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55104         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55105         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55106         put -lsec in even for programs other than 'ls'.  This fixes a problem
55107         for gettext reported by Bruno Haible in
55108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55109         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55110         Add support for Solaris 10.  This isn't efficient, but should get the
55111         job done for now.
55113 2007-12-03  James Youngman  <jay@gnu.org>
55115         * doc/regexprops-generic.texi: change "an close-group" to "a
55116         close-group" and "illegal" to "not allowed".
55118 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55120         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55121         pr_byname.h. Needed for the rare case when the maintainer has done
55122         "make maintainer-clean" in the source directory and then attempts a
55123         build outside the source directory.
55124         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55125         scripts_byname.h.
55127 2007-12-02  Martin Lambers <marlam@marlam.de>
55128             Bruno Haible  <bruno@clisp.org>
55130         * lib/getpagesize.h: Remove file.
55131         * lib/unistd.in.h: Include declaration of getpagesize here.
55132         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55133         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55134         HAVE_SYS_PARAM_H.
55135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55136         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55137         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55138         (Depends-on): Add unistd.
55139         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55140         (Include): Use <unistd.h> instead of getpagesize.h.
55141         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55142         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55143         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55144         gl_GETPAGESIZE invocation, already handled by module dependency.
55145         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55147 2007-12-02  Bruno Haible  <bruno@clisp.org>
55149         * modules/strings-tests: New file.
55150         * tests/test-strings.c: New file.
55152         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55153         * lib/strings.in.h: New file.
55154         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55155         * m4/strings_h.m4: New file.
55156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55157         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55158         * modules/strings: New file.
55159         * modules/string (Makefile.am): Update.
55160         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55161         Reported by Karl Berry.
55163 2007-12-01  Eric Blake  <ebb9@byu.net>
55165         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55166         accomodate fix in cygwin 1.5.25.
55168 2007-12-01  Jim Meyering  <meyering@redhat.com>
55170         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55171         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55172         that would inhibit utf8-optimization of a regexp containing line-
55173         or buffer-anchors, e.g., `^', `$'.
55175 2007-11-30  Bruno Haible  <bruno@clisp.org>
55177         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55178         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55179         glthread_recursive_lock_init.
55180         * lib/lock.c (glthread_recursive_lock_init)
55181         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55182         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55184 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55186         New function qset_acl, like set_acl but with syscall semantics.
55187         * lib/acl.h (qset_acl): New decl.
55188         * lib/acl.c (qset_acl): New function.
55189         (set_acl): Use new function.  Use more-consistent diagnostics.
55191 2007-11-28  Jim Meyering  <meyering@redhat.com>
55193         * modules/physmem (License): Change from GPL to LGPLv2+.
55195 2007-11-26  Bruno Haible  <bruno@clisp.org>
55197         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55198         'long double' type has excess precision.
55199         Reported by Jim Meyering in
55200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55202 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55204         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55205         Sync from <http://gnu.org/licenses>.
55206         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55207         with license text from same location.
55208         * doc/maintain.texi, doc/standards.texi:  Sync from
55209         <http://savannah.gnu.org/projects/gnustandards>.
55211 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55212         and Jim Meyering  <meyering@redhat.com>
55214         Adjust getdate' grammar to accept a slightly more regular language.
55215         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55216         Before, the former was rejected.
55217         * lib/getdate.y (digits_to_date_time): New function, factored
55218         out of ...
55219         (number): ...here.  Just call digits_to_date_time.
55220         (hybrid): New non-terminal to handle an <unsigned number,
55221         signed relative offset> sequence consistently.
55223 2007-11-18  Jim Meyering  <meyering@redhat.com>
55225         Pull my changes from coreutils:
55226         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55227         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55228         use of $gnulib_tool_option_extras, so that it's separated from the
55229         preceding argument.
55231         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55232         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55233         parent destination directories before copying a file into place.
55235 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55237         bootstrap: work also with 4-argument variant of AC_INIT
55238         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55240 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55242         Port test-getaddrinfo to Solaris.
55243         Problem reported by Bruno Haible in
55244         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55245         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55246         explanation of setting 'hints'.
55247         Don't reject an implementation merely because it returns EAI_SERVICE.
55248         (EAI_SERVICE): Define to 0 if not defined.
55250 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55252         The license of gnu-make and posix-shell is now "GPLed build tool".
55253         * modules/gnu-make (License): Likewise.
55254         * modules/posix-shell (License): Likewise.
55256         New module posix-shell, for determining a POSIX shell
55257         or perhaps something that is close enough to a POSIX shell.
55258         * m4/posix-shell.m4: New file.
55259         * modules/posix-shell: New file.
55261         * MODULES.html.sh: Mention new module.
55263         New module gnu-make, for determining whether we're using GNU Make.
55264         * m4/gnu-make.m4: New file.
55265         * modules/gnu-make: New file.
55266         * MODULES.html.sh: Mention new module.
55268 2007-11-14  Jim Meyering  <meyering@redhat.com>
55270         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55271         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55272         use this macro to create a function _definition_.
55273         Remove useless "#undef ARGMATCH_DIE".
55275 2007-11-14  Bruno Haible  <bruno@clisp.org>
55277         * lib/config.charset: Update for OpenBSD 4.1.
55278         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55280 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55282         Document 64-bit #if problems in stdint.texi.
55283         * doc/headers/stdint.texi (stdint.h): Mention problems with
55284         64-bit-#if, and how to work around them.
55286         Don't insist on 'long long int' support in the preprocessor.  It
55287         breaks too many things.  For example, PRIdMAX still uses a 'long
55288         long int' format with the latest Sun compiler, even though
55289         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55290         preprocessor problem.  This causes the latest coreutils to dump
55291         core on Solaris 10 sparc with the Sun C compiler.
55292         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55293         the troublesome expressions at configure-time, not at #if-time.
55294         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55295         preprocessor.
55296         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55297         compile-time C checks, done at 'configure'-time.
55298         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55299         * modules/inttypes (Makefile): Substitute the new symbols that
55300         gl_INTTYPES_H now generates.
55301         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55303 2007-11-12  Bruno Haible  <bruno@clisp.org>
55305         Tests for Unicode character classification functions.
55307         * modules/unictype/bidicategory-byname-tests: New file.
55308         * modules/unictype/bidicategory-name-tests: New file.
55309         * modules/unictype/bidicategory-of-tests: New file.
55310         * modules/unictype/bidicategory-test-tests: New file.
55311         * modules/unictype/block-list-tests: New file.
55312         * modules/unictype/block-of-tests: New file.
55313         * modules/unictype/block-test-tests: New file.
55314         * modules/unictype/category-C-tests: New file.
55315         * modules/unictype/category-Cc-tests: New file.
55316         * modules/unictype/category-Cf-tests: New file.
55317         * modules/unictype/category-Cn-tests: New file.
55318         * modules/unictype/category-Co-tests: New file.
55319         * modules/unictype/category-Cs-tests: New file.
55320         * modules/unictype/category-L-tests: New file.
55321         * modules/unictype/category-Ll-tests: New file.
55322         * modules/unictype/category-Lm-tests: New file.
55323         * modules/unictype/category-Lo-tests: New file.
55324         * modules/unictype/category-Lt-tests: New file.
55325         * modules/unictype/category-Lu-tests: New file.
55326         * modules/unictype/category-M-tests: New file.
55327         * modules/unictype/category-Mc-tests: New file.
55328         * modules/unictype/category-Me-tests: New file.
55329         * modules/unictype/category-Mn-tests: New file.
55330         * modules/unictype/category-N-tests: New file.
55331         * modules/unictype/category-Nd-tests: New file.
55332         * modules/unictype/category-Nl-tests: New file.
55333         * modules/unictype/category-No-tests: New file.
55334         * modules/unictype/category-P-tests: New file.
55335         * modules/unictype/category-Pc-tests: New file.
55336         * modules/unictype/category-Pd-tests: New file.
55337         * modules/unictype/category-Pe-tests: New file.
55338         * modules/unictype/category-Pf-tests: New file.
55339         * modules/unictype/category-Pi-tests: New file.
55340         * modules/unictype/category-Po-tests: New file.
55341         * modules/unictype/category-Ps-tests: New file.
55342         * modules/unictype/category-S-tests: New file.
55343         * modules/unictype/category-Sc-tests: New file.
55344         * modules/unictype/category-Sk-tests: New file.
55345         * modules/unictype/category-Sm-tests: New file.
55346         * modules/unictype/category-So-tests: New file.
55347         * modules/unictype/category-Z-tests: New file.
55348         * modules/unictype/category-Zl-tests: New file.
55349         * modules/unictype/category-Zp-tests: New file.
55350         * modules/unictype/category-Zs-tests: New file.
55351         * modules/unictype/category-and-not-tests: New file.
55352         * modules/unictype/category-and-tests: New file.
55353         * modules/unictype/category-byname-tests: New file.
55354         * modules/unictype/category-name-tests: New file.
55355         * modules/unictype/category-none-tests: New file.
55356         * modules/unictype/category-of-tests: New file.
55357         * modules/unictype/category-or-tests: New file.
55358         * modules/unictype/category-test-withtable-tests: New file.
55359         * modules/unictype/combining-class-tests: New file.
55360         * modules/unictype/ctype-alnum-tests: New file.
55361         * modules/unictype/ctype-alpha-tests: New file.
55362         * modules/unictype/ctype-blank-tests: New file.
55363         * modules/unictype/ctype-cntrl-tests: New file.
55364         * modules/unictype/ctype-digit-tests: New file.
55365         * modules/unictype/ctype-graph-tests: New file.
55366         * modules/unictype/ctype-lower-tests: New file.
55367         * modules/unictype/ctype-print-tests: New file.
55368         * modules/unictype/ctype-punct-tests: New file.
55369         * modules/unictype/ctype-space-tests: New file.
55370         * modules/unictype/ctype-upper-tests: New file.
55371         * modules/unictype/ctype-xdigit-tests: New file.
55372         * modules/unictype/decimal-digit-tests: New file.
55373         * modules/unictype/digit-tests: New file.
55374         * modules/unictype/mirror-tests: New file.
55375         * modules/unictype/numeric-tests: New file.
55376         * modules/unictype/property-alphabetic-tests: New file.
55377         * modules/unictype/property-ascii-hex-digit-tests: New file.
55378         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55379         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55380         * modules/unictype/property-bidi-block-separator-tests: New file.
55381         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55382         * modules/unictype/property-bidi-common-separator-tests: New file.
55383         * modules/unictype/property-bidi-control-tests: New file.
55384         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55385         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55386         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55387         * modules/unictype/property-bidi-european-digit-tests: New file.
55388         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55389         * modules/unictype/property-bidi-left-to-right-tests: New file.
55390         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55391         * modules/unictype/property-bidi-other-neutral-tests: New file.
55392         * modules/unictype/property-bidi-pdf-tests: New file.
55393         * modules/unictype/property-bidi-segment-separator-tests: New file.
55394         * modules/unictype/property-bidi-whitespace-tests: New file.
55395         * modules/unictype/property-byname-tests: New file.
55396         * modules/unictype/property-combining-tests: New file.
55397         * modules/unictype/property-composite-tests: New file.
55398         * modules/unictype/property-currency-symbol-tests: New file.
55399         * modules/unictype/property-dash-tests: New file.
55400         * modules/unictype/property-decimal-digit-tests: New file.
55401         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55402         * modules/unictype/property-deprecated-tests: New file.
55403         * modules/unictype/property-diacritic-tests: New file.
55404         * modules/unictype/property-extender-tests: New file.
55405         * modules/unictype/property-format-control-tests: New file.
55406         * modules/unictype/property-grapheme-base-tests: New file.
55407         * modules/unictype/property-grapheme-extend-tests: New file.
55408         * modules/unictype/property-grapheme-link-tests: New file.
55409         * modules/unictype/property-hex-digit-tests: New file.
55410         * modules/unictype/property-hyphen-tests: New file.
55411         * modules/unictype/property-id-continue-tests: New file.
55412         * modules/unictype/property-id-start-tests: New file.
55413         * modules/unictype/property-ideographic-tests: New file.
55414         * modules/unictype/property-ids-binary-operator-tests: New file.
55415         * modules/unictype/property-ids-trinary-operator-tests: New file.
55416         * modules/unictype/property-ignorable-control-tests: New file.
55417         * modules/unictype/property-iso-control-tests: New file.
55418         * modules/unictype/property-join-control-tests: New file.
55419         * modules/unictype/property-left-of-pair-tests: New file.
55420         * modules/unictype/property-line-separator-tests: New file.
55421         * modules/unictype/property-logical-order-exception-tests: New file.
55422         * modules/unictype/property-lowercase-tests: New file.
55423         * modules/unictype/property-math-tests: New file.
55424         * modules/unictype/property-non-break-tests: New file.
55425         * modules/unictype/property-not-a-character-tests: New file.
55426         * modules/unictype/property-numeric-tests: New file.
55427         * modules/unictype/property-other-alphabetic-tests: New file.
55428         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55429         * modules/unictype/property-other-grapheme-extend-tests: New file.
55430         * modules/unictype/property-other-id-continue-tests: New file.
55431         * modules/unictype/property-other-id-start-tests: New file.
55432         * modules/unictype/property-other-lowercase-tests: New file.
55433         * modules/unictype/property-other-math-tests: New file.
55434         * modules/unictype/property-other-uppercase-tests: New file.
55435         * modules/unictype/property-paired-punctuation-tests: New file.
55436         * modules/unictype/property-paragraph-separator-tests: New file.
55437         * modules/unictype/property-pattern-syntax-tests: New file.
55438         * modules/unictype/property-pattern-white-space-tests: New file.
55439         * modules/unictype/property-private-use-tests: New file.
55440         * modules/unictype/property-punctuation-tests: New file.
55441         * modules/unictype/property-quotation-mark-tests: New file.
55442         * modules/unictype/property-radical-tests: New file.
55443         * modules/unictype/property-sentence-terminal-tests: New file.
55444         * modules/unictype/property-soft-dotted-tests: New file.
55445         * modules/unictype/property-space-tests: New file.
55446         * modules/unictype/property-terminal-punctuation-tests: New file.
55447         * modules/unictype/property-test-tests: New file.
55448         * modules/unictype/property-titlecase-tests: New file.
55449         * modules/unictype/property-unassigned-code-value-tests: New file.
55450         * modules/unictype/property-unified-ideograph-tests: New file.
55451         * modules/unictype/property-uppercase-tests: New file.
55452         * modules/unictype/property-variation-selector-tests: New file.
55453         * modules/unictype/property-white-space-tests: New file.
55454         * modules/unictype/property-xid-continue-tests: New file.
55455         * modules/unictype/property-xid-start-tests: New file.
55456         * modules/unictype/property-zero-width-tests: New file.
55457         * modules/unictype/scripts-tests: New file.
55458         * modules/unictype/syntax-c-ident-tests: New file.
55459         * modules/unictype/syntax-c-whitespace-tests: New file.
55460         * modules/unictype/syntax-java-ident-tests: New file.
55461         * modules/unictype/syntax-java-whitespace-tests: New file.
55462         * tests/unictype/test-bidi_byname.c: New file.
55463         * tests/unictype/test-bidi_name.c: New file.
55464         * tests/unictype/test-bidi_of.c: New file.
55465         * tests/unictype/test-bidi_test.c: New file.
55466         * tests/unictype/test-block_list.c: New file.
55467         * tests/unictype/test-block_of.c: New file.
55468         * tests/unictype/test-block_test.c: New file.
55469         * tests/unictype/test-categ_and.c: New file.
55470         * tests/unictype/test-categ_and_not.c: New file.
55471         * tests/unictype/test-categ_byname.c: New file.
55472         * tests/unictype/test-categ_name.c: New file.
55473         * tests/unictype/test-categ_none.c: New file.
55474         * tests/unictype/test-categ_of.c: New file.
55475         * tests/unictype/test-categ_or.c: New file.
55476         * tests/unictype/test-categ_test_withtable.c: New file.
55477         * tests/unictype/test-combining.c: New file.
55478         * tests/unictype/test-decdigit.c: New file.
55479         * tests/unictype/test-digit.c: New file.
55480         * tests/unictype/test-mirror.c: New file.
55481         * tests/unictype/test-numeric.c: New file.
55482         * tests/unictype/test-pr_byname.c: New file.
55483         * tests/unictype/test-pr_test.c: New file.
55484         * tests/unictype/test-predicate-part1.h: New file.
55485         * tests/unictype/test-predicate-part2.h: New file.
55486         * tests/unictype/test-scripts.c: New file.
55487         * tests/unictype/test-sy_c_ident.c: New file.
55488         * tests/unictype/test-sy_java_ident.c: New file.
55490         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55491         for Unicode 5.0.0.
55492         * tests/unictype/test-categ_Cc.c: Likewise.
55493         * tests/unictype/test-categ_Cf.c: Likewise.
55494         * tests/unictype/test-categ_Cn.c: Likewise.
55495         * tests/unictype/test-categ_Co.c: Likewise.
55496         * tests/unictype/test-categ_Cs.c: Likewise.
55497         * tests/unictype/test-categ_L.c: Likewise.
55498         * tests/unictype/test-categ_Ll.c: Likewise.
55499         * tests/unictype/test-categ_Lm.c: Likewise.
55500         * tests/unictype/test-categ_Lo.c: Likewise.
55501         * tests/unictype/test-categ_Lt.c: Likewise.
55502         * tests/unictype/test-categ_Lu.c: Likewise.
55503         * tests/unictype/test-categ_M.c: Likewise.
55504         * tests/unictype/test-categ_Mc.c: Likewise.
55505         * tests/unictype/test-categ_Me.c: Likewise.
55506         * tests/unictype/test-categ_Mn.c: Likewise.
55507         * tests/unictype/test-categ_N.c: Likewise.
55508         * tests/unictype/test-categ_Nd.c: Likewise.
55509         * tests/unictype/test-categ_Nl.c: Likewise.
55510         * tests/unictype/test-categ_No.c: Likewise.
55511         * tests/unictype/test-categ_P.c: Likewise.
55512         * tests/unictype/test-categ_Pc.c: Likewise.
55513         * tests/unictype/test-categ_Pd.c: Likewise.
55514         * tests/unictype/test-categ_Pe.c: Likewise.
55515         * tests/unictype/test-categ_Pf.c: Likewise.
55516         * tests/unictype/test-categ_Pi.c: Likewise.
55517         * tests/unictype/test-categ_Po.c: Likewise.
55518         * tests/unictype/test-categ_Ps.c: Likewise.
55519         * tests/unictype/test-categ_S.c: Likewise.
55520         * tests/unictype/test-categ_Sc.c: Likewise.
55521         * tests/unictype/test-categ_Sk.c: Likewise.
55522         * tests/unictype/test-categ_Sm.c: Likewise.
55523         * tests/unictype/test-categ_So.c: Likewise.
55524         * tests/unictype/test-categ_Z.c: Likewise.
55525         * tests/unictype/test-categ_Zl.c: Likewise.
55526         * tests/unictype/test-categ_Zp.c: Likewise.
55527         * tests/unictype/test-categ_Zs.c: Likewise.
55528         * tests/unictype/test-ctype_alnum.c: Likewise.
55529         * tests/unictype/test-ctype_alpha.c: Likewise.
55530         * tests/unictype/test-ctype_blank.c: Likewise.
55531         * tests/unictype/test-ctype_cntrl.c: Likewise.
55532         * tests/unictype/test-ctype_digit.c: Likewise.
55533         * tests/unictype/test-ctype_graph.c: Likewise.
55534         * tests/unictype/test-ctype_lower.c: Likewise.
55535         * tests/unictype/test-ctype_print.c: Likewise.
55536         * tests/unictype/test-ctype_punct.c: Likewise.
55537         * tests/unictype/test-ctype_space.c: Likewise.
55538         * tests/unictype/test-ctype_upper.c: Likewise.
55539         * tests/unictype/test-ctype_xdigit.c: Likewise.
55540         * tests/unictype/test-decdigit.h: Likewise.
55541         * tests/unictype/test-digit.h: Likewise.
55542         * tests/unictype/test-numeric.h: Likewise.
55543         * tests/unictype/test-pr_alphabetic.c: Likewise.
55544         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55545         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55546         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55547         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55548         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55549         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55550         * tests/unictype/test-pr_bidi_control.c: Likewise.
55551         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55552         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55553         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55554         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55555         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55556         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55557         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55558         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55559         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55560         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55561         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55562         * tests/unictype/test-pr_combining.c: Likewise.
55563         * tests/unictype/test-pr_composite.c: Likewise.
55564         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55565         * tests/unictype/test-pr_dash.c: Likewise.
55566         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55567         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55568         * tests/unictype/test-pr_deprecated.c: Likewise.
55569         * tests/unictype/test-pr_diacritic.c: Likewise.
55570         * tests/unictype/test-pr_extender.c: Likewise.
55571         * tests/unictype/test-pr_format_control.c: Likewise.
55572         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55573         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55574         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55575         * tests/unictype/test-pr_hex_digit.c: Likewise.
55576         * tests/unictype/test-pr_hyphen.c: Likewise.
55577         * tests/unictype/test-pr_id_continue.c: Likewise.
55578         * tests/unictype/test-pr_id_start.c: Likewise.
55579         * tests/unictype/test-pr_ideographic.c: Likewise.
55580         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55581         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55582         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55583         * tests/unictype/test-pr_iso_control.c: Likewise.
55584         * tests/unictype/test-pr_join_control.c: Likewise.
55585         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55586         * tests/unictype/test-pr_line_separator.c: Likewise.
55587         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55588         * tests/unictype/test-pr_lowercase.c: Likewise.
55589         * tests/unictype/test-pr_math.c: Likewise.
55590         * tests/unictype/test-pr_non_break.c: Likewise.
55591         * tests/unictype/test-pr_not_a_character.c: Likewise.
55592         * tests/unictype/test-pr_numeric.c: Likewise.
55593         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55594         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55595         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55596         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55597         * tests/unictype/test-pr_other_id_start.c: Likewise.
55598         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55599         * tests/unictype/test-pr_other_math.c: Likewise.
55600         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55601         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55602         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55603         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55604         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55605         * tests/unictype/test-pr_private_use.c: Likewise.
55606         * tests/unictype/test-pr_punctuation.c: Likewise.
55607         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55608         * tests/unictype/test-pr_radical.c: Likewise.
55609         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55610         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55611         * tests/unictype/test-pr_space.c: Likewise.
55612         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55613         * tests/unictype/test-pr_titlecase.c: Likewise.
55614         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55615         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55616         * tests/unictype/test-pr_uppercase.c: Likewise.
55617         * tests/unictype/test-pr_variation_selector.c: Likewise.
55618         * tests/unictype/test-pr_white_space.c: Likewise.
55619         * tests/unictype/test-pr_xid_continue.c: Likewise.
55620         * tests/unictype/test-pr_xid_start.c: Likewise.
55621         * tests/unictype/test-pr_zero_width.c: Likewise.
55622         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55623         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55625 2007-11-12  Bruno Haible  <bruno@clisp.org>
55627         Unicode character classification functions.
55628         * lib/unictype.h: New file.
55629         * modules/unictype/base: New file.
55630         * modules/unictype/category-L: New file.
55631         * modules/unictype/category-Lu: New file.
55632         * modules/unictype/category-Ll: New file.
55633         * modules/unictype/category-Lt: New file.
55634         * modules/unictype/category-Lm: New file.
55635         * modules/unictype/category-Lo: New file.
55636         * modules/unictype/category-M: New file.
55637         * modules/unictype/category-Mn: New file.
55638         * modules/unictype/category-Mc: New file.
55639         * modules/unictype/category-Me: New file.
55640         * modules/unictype/category-N: New file.
55641         * modules/unictype/category-Nd: New file.
55642         * modules/unictype/category-Nl: New file.
55643         * modules/unictype/category-No: New file.
55644         * modules/unictype/category-P: New file.
55645         * modules/unictype/category-Pc: New file.
55646         * modules/unictype/category-Pd: New file.
55647         * modules/unictype/category-Ps: New file.
55648         * modules/unictype/category-Pe: New file.
55649         * modules/unictype/category-Pi: New file.
55650         * modules/unictype/category-Pf: New file.
55651         * modules/unictype/category-Po: New file.
55652         * modules/unictype/category-S: New file.
55653         * modules/unictype/category-Sm: New file.
55654         * modules/unictype/category-Sc: New file.
55655         * modules/unictype/category-Sk: New file.
55656         * modules/unictype/category-So: New file.
55657         * modules/unictype/category-Z: New file.
55658         * modules/unictype/category-Zs: New file.
55659         * modules/unictype/category-Zl: New file.
55660         * modules/unictype/category-Zp: New file.
55661         * modules/unictype/category-C: New file.
55662         * modules/unictype/category-Cc: New file.
55663         * modules/unictype/category-Cf: New file.
55664         * modules/unictype/category-Cs: New file.
55665         * modules/unictype/category-Co: New file.
55666         * modules/unictype/category-Cn: New file.
55667         * modules/unictype/category-or: New file.
55668         * modules/unictype/category-of: New file.
55669         * modules/unictype/category-test: New file.
55670         * modules/unictype/category-test-withtable: New file.
55671         * modules/unictype/category-byname: New file.
55672         * modules/unictype/category-none: New file.
55673         * modules/unictype/category-and: New file.
55674         * modules/unictype/category-and-not: New file.
55675         * modules/unictype/category-name: New file.
55676         * modules/unictype/combining-class: New file.
55677         * modules/unictype/category-all: New file.
55678         * modules/unictype/bidicategory-all: New file.
55679         * modules/unictype/bidicategory-byname: New file.
55680         * modules/unictype/bidicategory-name: New file.
55681         * modules/unictype/bidicategory-of: New file.
55682         * modules/unictype/bidicategory-test: New file.
55683         * modules/unictype/decimal-digit: New file.
55684         * modules/unictype/digit: New file.
55685         * modules/unictype/numeric: New file.
55686         * modules/unictype/mirror: New file.
55687         * modules/unictype/property-white-space: New file.
55688         * modules/unictype/property-alphabetic: New file.
55689         * modules/unictype/property-other-alphabetic: New file.
55690         * modules/unictype/property-not-a-character: New file.
55691         * modules/unictype/property-default-ignorable-code-point: New file.
55692         * modules/unictype/property-other-default-ignorable-code-point: New
55693         file.
55694         * modules/unictype/property-deprecated: New file.
55695         * modules/unictype/property-logical-order-exception: New file.
55696         * modules/unictype/property-variation-selector: New file.
55697         * modules/unictype/property-private-use: New file.
55698         * modules/unictype/property-unassigned-code-value: New file.
55699         * modules/unictype/property-uppercase: New file.
55700         * modules/unictype/property-other-uppercase: New file.
55701         * modules/unictype/property-lowercase: New file.
55702         * modules/unictype/property-other-lowercase: New file.
55703         * modules/unictype/property-titlecase: New file.
55704         * modules/unictype/property-soft-dotted: New file.
55705         * modules/unictype/property-id-start: New file.
55706         * modules/unictype/property-other-id-start: New file.
55707         * modules/unictype/property-id-continue: New file.
55708         * modules/unictype/property-other-id-continue: New file.
55709         * modules/unictype/property-xid-start: New file.
55710         * modules/unictype/property-xid-continue: New file.
55711         * modules/unictype/property-pattern-white-space: New file.
55712         * modules/unictype/property-pattern-syntax: New file.
55713         * modules/unictype/property-join-control: New file.
55714         * modules/unictype/property-grapheme-base: New file.
55715         * modules/unictype/property-grapheme-extend: New file.
55716         * modules/unictype/property-other-grapheme-extend: New file.
55717         * modules/unictype/property-grapheme-link: New file.
55718         * modules/unictype/property-bidi-control: New file.
55719         * modules/unictype/property-bidi-left-to-right: New file.
55720         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55721         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55722         * modules/unictype/property-bidi-european-digit: New file.
55723         * modules/unictype/property-bidi-eur-num-separator: New file.
55724         * modules/unictype/property-bidi-eur-num-terminator: New file.
55725         * modules/unictype/property-bidi-arabic-digit: New file.
55726         * modules/unictype/property-bidi-common-separator: New file.
55727         * modules/unictype/property-bidi-block-separator: New file.
55728         * modules/unictype/property-bidi-segment-separator: New file.
55729         * modules/unictype/property-bidi-whitespace: New file.
55730         * modules/unictype/property-bidi-non-spacing-mark: New file.
55731         * modules/unictype/property-bidi-boundary-neutral: New file.
55732         * modules/unictype/property-bidi-pdf: New file.
55733         * modules/unictype/property-bidi-embedding-or-override: New file.
55734         * modules/unictype/property-bidi-other-neutral: New file.
55735         * modules/unictype/property-hex-digit: New file.
55736         * modules/unictype/property-ascii-hex-digit: New file.
55737         * modules/unictype/property-ideographic: New file.
55738         * modules/unictype/property-unified-ideograph: New file.
55739         * modules/unictype/property-radical: New file.
55740         * modules/unictype/property-ids-binary-operator: New file.
55741         * modules/unictype/property-ids-trinary-operator: New file.
55742         * modules/unictype/property-zero-width: New file.
55743         * modules/unictype/property-space: New file.
55744         * modules/unictype/property-non-break: New file.
55745         * modules/unictype/property-iso-control: New file.
55746         * modules/unictype/property-format-control: New file.
55747         * modules/unictype/property-dash: New file.
55748         * modules/unictype/property-hyphen: New file.
55749         * modules/unictype/property-punctuation: New file.
55750         * modules/unictype/property-line-separator: New file.
55751         * modules/unictype/property-paragraph-separator: New file.
55752         * modules/unictype/property-quotation-mark: New file.
55753         * modules/unictype/property-sentence-terminal: New file.
55754         * modules/unictype/property-terminal-punctuation: New file.
55755         * modules/unictype/property-currency-symbol: New file.
55756         * modules/unictype/property-math: New file.
55757         * modules/unictype/property-other-math: New file.
55758         * modules/unictype/property-paired-punctuation: New file.
55759         * modules/unictype/property-left-of-pair: New file.
55760         * modules/unictype/property-combining: New file.
55761         * modules/unictype/property-composite: New file.
55762         * modules/unictype/property-decimal-digit: New file.
55763         * modules/unictype/property-numeric: New file.
55764         * modules/unictype/property-diacritic: New file.
55765         * modules/unictype/property-extender: New file.
55766         * modules/unictype/property-ignorable-control: New file.
55767         * modules/unictype/property-test: New file.
55768         * modules/unictype/property-byname: New file.
55769         * modules/unictype/property-all: New file.
55770         * modules/unictype/scripts: New file.
55771         * modules/unictype/scripts-all: New file.
55772         * modules/unictype/block-of: New file.
55773         * modules/unictype/block-test: New file.
55774         * modules/unictype/block-list: New file.
55775         * modules/unictype/block-all: New file.
55776         * modules/unictype/syntax-c-whitespace: New file.
55777         * modules/unictype/syntax-java-whitespace: New file.
55778         * modules/unictype/syntax-c-ident: New file.
55779         * modules/unictype/syntax-java-ident: New file.
55780         * modules/unictype/ctype-alnum: New file.
55781         * modules/unictype/ctype-alpha: New file.
55782         * modules/unictype/ctype-cntrl: New file.
55783         * modules/unictype/ctype-digit: New file.
55784         * modules/unictype/ctype-graph: New file.
55785         * modules/unictype/ctype-lower: New file.
55786         * modules/unictype/ctype-print: New file.
55787         * modules/unictype/ctype-punct: New file.
55788         * modules/unictype/ctype-space: New file.
55789         * modules/unictype/ctype-upper: New file.
55790         * modules/unictype/ctype-xdigit: New file.
55791         * modules/unictype/ctype-blank: New file.
55792         * lib/unictype/bidi_byname.c: New file.
55793         * lib/unictype/bidi_name.c: New file.
55794         * lib/unictype/bidi_of.c: New file.
55795         * lib/unictype/bidi_test.c: New file.
55796         * lib/unictype/bitmap.h: New file.
55797         * lib/unictype/block_test.c: New file.
55798         * lib/unictype/blocks.c: New file.
55799         * lib/unictype/categ_C.c: New file.
55800         * lib/unictype/categ_Cc.c: New file.
55801         * lib/unictype/categ_Cf.c: New file.
55802         * lib/unictype/categ_Cn.c: New file.
55803         * lib/unictype/categ_Co.c: New file.
55804         * lib/unictype/categ_Cs.c: New file.
55805         * lib/unictype/categ_L.c: New file.
55806         * lib/unictype/categ_Ll.c: New file.
55807         * lib/unictype/categ_Lm.c: New file.
55808         * lib/unictype/categ_Lo.c: New file.
55809         * lib/unictype/categ_Lt.c: New file.
55810         * lib/unictype/categ_Lu.c: New file.
55811         * lib/unictype/categ_M.c: New file.
55812         * lib/unictype/categ_Mc.c: New file.
55813         * lib/unictype/categ_Me.c: New file.
55814         * lib/unictype/categ_Mn.c: New file.
55815         * lib/unictype/categ_N.c: New file.
55816         * lib/unictype/categ_Nd.c: New file.
55817         * lib/unictype/categ_Nl.c: New file.
55818         * lib/unictype/categ_No.c: New file.
55819         * lib/unictype/categ_P.c: New file.
55820         * lib/unictype/categ_Pc.c: New file.
55821         * lib/unictype/categ_Pd.c: New file.
55822         * lib/unictype/categ_Pe.c: New file.
55823         * lib/unictype/categ_Pf.c: New file.
55824         * lib/unictype/categ_Pi.c: New file.
55825         * lib/unictype/categ_Po.c: New file.
55826         * lib/unictype/categ_Ps.c: New file.
55827         * lib/unictype/categ_S.c: New file.
55828         * lib/unictype/categ_Sc.c: New file.
55829         * lib/unictype/categ_Sk.c: New file.
55830         * lib/unictype/categ_Sm.c: New file.
55831         * lib/unictype/categ_So.c: New file.
55832         * lib/unictype/categ_Z.c: New file.
55833         * lib/unictype/categ_Zl.c: New file.
55834         * lib/unictype/categ_Zp.c: New file.
55835         * lib/unictype/categ_Zs.c: New file.
55836         * lib/unictype/categ_and.c: New file.
55837         * lib/unictype/categ_and_not.c: New file.
55838         * lib/unictype/categ_byname.c: New file.
55839         * lib/unictype/categ_name.c: New file.
55840         * lib/unictype/categ_none.c: New file.
55841         * lib/unictype/categ_of.c: New file.
55842         * lib/unictype/categ_or.c: New file.
55843         * lib/unictype/categ_test.c: New file.
55844         * lib/unictype/combining.c: New file.
55845         * lib/unictype/ctype_alnum.c: New file.
55846         * lib/unictype/ctype_alpha.c: New file.
55847         * lib/unictype/ctype_blank.c: New file.
55848         * lib/unictype/ctype_cntrl.c: New file.
55849         * lib/unictype/ctype_digit.c: New file.
55850         * lib/unictype/ctype_graph.c: New file.
55851         * lib/unictype/ctype_lower.c: New file.
55852         * lib/unictype/ctype_print.c: New file.
55853         * lib/unictype/ctype_punct.c: New file.
55854         * lib/unictype/ctype_space.c: New file.
55855         * lib/unictype/ctype_upper.c: New file.
55856         * lib/unictype/ctype_xdigit.c: New file.
55857         * lib/unictype/decdigit.c: New file.
55858         * lib/unictype/digit.c: New file.
55859         * lib/unictype/identsyntaxmap.h: New file.
55860         * lib/unictype/mirror.c: New file.
55861         * lib/unictype/numeric.c: New file.
55862         * lib/unictype/pr_alphabetic.c: New file.
55863         * lib/unictype/pr_ascii_hex_digit.c: New file.
55864         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55865         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55866         * lib/unictype/pr_bidi_block_separator.c: New file.
55867         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55868         * lib/unictype/pr_bidi_common_separator.c: New file.
55869         * lib/unictype/pr_bidi_control.c: New file.
55870         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55871         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55872         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55873         * lib/unictype/pr_bidi_european_digit.c: New file.
55874         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55875         * lib/unictype/pr_bidi_left_to_right.c: New file.
55876         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55877         * lib/unictype/pr_bidi_other_neutral.c: New file.
55878         * lib/unictype/pr_bidi_pdf.c: New file.
55879         * lib/unictype/pr_bidi_segment_separator.c: New file.
55880         * lib/unictype/pr_bidi_whitespace.c: New file.
55881         * lib/unictype/pr_byname.c: New file.
55882         * lib/unictype/pr_byname.gperf: New file.
55883         * lib/unictype/pr_combining.c: New file.
55884         * lib/unictype/pr_composite.c: New file.
55885         * lib/unictype/pr_currency_symbol.c: New file.
55886         * lib/unictype/pr_dash.c: New file.
55887         * lib/unictype/pr_decimal_digit.c: New file.
55888         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55889         * lib/unictype/pr_deprecated.c: New file.
55890         * lib/unictype/pr_diacritic.c: New file.
55891         * lib/unictype/pr_extender.c: New file.
55892         * lib/unictype/pr_format_control.c: New file.
55893         * lib/unictype/pr_grapheme_base.c: New file.
55894         * lib/unictype/pr_grapheme_extend.c: New file.
55895         * lib/unictype/pr_grapheme_link.c: New file.
55896         * lib/unictype/pr_hex_digit.c: New file.
55897         * lib/unictype/pr_hyphen.c: New file.
55898         * lib/unictype/pr_id_continue.c: New file.
55899         * lib/unictype/pr_id_start.c: New file.
55900         * lib/unictype/pr_ideographic.c: New file.
55901         * lib/unictype/pr_ids_binary_operator.c: New file.
55902         * lib/unictype/pr_ids_trinary_operator.c: New file.
55903         * lib/unictype/pr_ignorable_control.c: New file.
55904         * lib/unictype/pr_iso_control.c: New file.
55905         * lib/unictype/pr_join_control.c: New file.
55906         * lib/unictype/pr_left_of_pair.c: New file.
55907         * lib/unictype/pr_line_separator.c: New file.
55908         * lib/unictype/pr_logical_order_exception.c: New file.
55909         * lib/unictype/pr_lowercase.c: New file.
55910         * lib/unictype/pr_math.c: New file.
55911         * lib/unictype/pr_non_break.c: New file.
55912         * lib/unictype/pr_not_a_character.c: New file.
55913         * lib/unictype/pr_numeric.c: New file.
55914         * lib/unictype/pr_other_alphabetic.c: New file.
55915         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55916         * lib/unictype/pr_other_grapheme_extend.c: New file.
55917         * lib/unictype/pr_other_id_continue.c: New file.
55918         * lib/unictype/pr_other_id_start.c: New file.
55919         * lib/unictype/pr_other_lowercase.c: New file.
55920         * lib/unictype/pr_other_math.c: New file.
55921         * lib/unictype/pr_other_uppercase.c: New file.
55922         * lib/unictype/pr_paired_punctuation.c: New file.
55923         * lib/unictype/pr_paragraph_separator.c: New file.
55924         * lib/unictype/pr_pattern_syntax.c: New file.
55925         * lib/unictype/pr_pattern_white_space.c: New file.
55926         * lib/unictype/pr_private_use.c: New file.
55927         * lib/unictype/pr_punctuation.c: New file.
55928         * lib/unictype/pr_quotation_mark.c: New file.
55929         * lib/unictype/pr_radical.c: New file.
55930         * lib/unictype/pr_sentence_terminal.c: New file.
55931         * lib/unictype/pr_soft_dotted.c: New file.
55932         * lib/unictype/pr_space.c: New file.
55933         * lib/unictype/pr_terminal_punctuation.c: New file.
55934         * lib/unictype/pr_test.c: New file.
55935         * lib/unictype/pr_titlecase.c: New file.
55936         * lib/unictype/pr_unassigned_code_value.c: New file.
55937         * lib/unictype/pr_unified_ideograph.c: New file.
55938         * lib/unictype/pr_uppercase.c: New file.
55939         * lib/unictype/pr_variation_selector.c: New file.
55940         * lib/unictype/pr_white_space.c: New file.
55941         * lib/unictype/pr_xid_continue.c: New file.
55942         * lib/unictype/pr_xid_start.c: New file.
55943         * lib/unictype/pr_zero_width.c: New file.
55944         * lib/unictype/scripts.c: New file.
55945         * lib/unictype/sy_c_ident.c: New file.
55946         * lib/unictype/sy_c_whitespace.c: New file.
55947         * lib/unictype/sy_java_ident.c: New file.
55948         * lib/unictype/sy_java_whitespace.c: New file.
55950         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55951         Unicode 5.0.0.
55952         * lib/unictype/blocks.h: Likewise.
55953         * lib/unictype/categ_C.h: Likewise.
55954         * lib/unictype/categ_Cc.h: Likewise.
55955         * lib/unictype/categ_Cf.h: Likewise.
55956         * lib/unictype/categ_Cn.h: Likewise.
55957         * lib/unictype/categ_Co.h: Likewise.
55958         * lib/unictype/categ_Cs.h: Likewise.
55959         * lib/unictype/categ_L.h: Likewise.
55960         * lib/unictype/categ_Ll.h: Likewise.
55961         * lib/unictype/categ_Lm.h: Likewise.
55962         * lib/unictype/categ_Lo.h: Likewise.
55963         * lib/unictype/categ_Lt.h: Likewise.
55964         * lib/unictype/categ_Lu.h: Likewise.
55965         * lib/unictype/categ_M.h: Likewise.
55966         * lib/unictype/categ_Mc.h: Likewise.
55967         * lib/unictype/categ_Me.h: Likewise.
55968         * lib/unictype/categ_Mn.h: Likewise.
55969         * lib/unictype/categ_N.h: Likewise.
55970         * lib/unictype/categ_Nd.h: Likewise.
55971         * lib/unictype/categ_Nl.h: Likewise.
55972         * lib/unictype/categ_No.h: Likewise.
55973         * lib/unictype/categ_P.h: Likewise.
55974         * lib/unictype/categ_Pc.h: Likewise.
55975         * lib/unictype/categ_Pd.h: Likewise.
55976         * lib/unictype/categ_Pe.h: Likewise.
55977         * lib/unictype/categ_Pf.h: Likewise.
55978         * lib/unictype/categ_Pi.h: Likewise.
55979         * lib/unictype/categ_Po.h: Likewise.
55980         * lib/unictype/categ_Ps.h: Likewise.
55981         * lib/unictype/categ_S.h: Likewise.
55982         * lib/unictype/categ_Sc.h: Likewise.
55983         * lib/unictype/categ_Sk.h: Likewise.
55984         * lib/unictype/categ_Sm.h: Likewise.
55985         * lib/unictype/categ_So.h: Likewise.
55986         * lib/unictype/categ_Z.h: Likewise.
55987         * lib/unictype/categ_Zl.h: Likewise.
55988         * lib/unictype/categ_Zp.h: Likewise.
55989         * lib/unictype/categ_Zs.h: Likewise.
55990         * lib/unictype/categ_of.h: Likewise.
55991         * lib/unictype/combining.h: Likewise.
55992         * lib/unictype/ctype_alnum.h: Likewise.
55993         * lib/unictype/ctype_alpha.h: Likewise.
55994         * lib/unictype/ctype_blank.h: Likewise.
55995         * lib/unictype/ctype_cntrl.h: Likewise.
55996         * lib/unictype/ctype_digit.h: Likewise.
55997         * lib/unictype/ctype_graph.h: Likewise.
55998         * lib/unictype/ctype_lower.h: Likewise.
55999         * lib/unictype/ctype_print.h: Likewise.
56000         * lib/unictype/ctype_punct.h: Likewise.
56001         * lib/unictype/ctype_space.h: Likewise.
56002         * lib/unictype/ctype_upper.h: Likewise.
56003         * lib/unictype/ctype_xdigit.h: Likewise.
56004         * lib/unictype/decdigit.h: Likewise.
56005         * lib/unictype/digit.h: Likewise.
56006         * lib/unictype/mirror.h: Likewise.
56007         * lib/unictype/numeric.h: Likewise.
56008         * lib/unictype/pr_alphabetic.h: Likewise.
56009         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56010         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56011         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56012         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56013         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56014         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56015         * lib/unictype/pr_bidi_control.h: Likewise.
56016         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56017         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56018         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56019         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56020         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56021         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56022         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56023         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56024         * lib/unictype/pr_bidi_pdf.h: Likewise.
56025         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56026         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56027         * lib/unictype/pr_combining.h: Likewise.
56028         * lib/unictype/pr_composite.h: Likewise.
56029         * lib/unictype/pr_currency_symbol.h: Likewise.
56030         * lib/unictype/pr_dash.h: Likewise.
56031         * lib/unictype/pr_decimal_digit.h: Likewise.
56032         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56033         * lib/unictype/pr_deprecated.h: Likewise.
56034         * lib/unictype/pr_diacritic.h: Likewise.
56035         * lib/unictype/pr_extender.h: Likewise.
56036         * lib/unictype/pr_format_control.h: Likewise.
56037         * lib/unictype/pr_grapheme_base.h: Likewise.
56038         * lib/unictype/pr_grapheme_extend.h: Likewise.
56039         * lib/unictype/pr_grapheme_link.h: Likewise.
56040         * lib/unictype/pr_hex_digit.h: Likewise.
56041         * lib/unictype/pr_hyphen.h: Likewise.
56042         * lib/unictype/pr_id_continue.h: Likewise.
56043         * lib/unictype/pr_id_start.h: Likewise.
56044         * lib/unictype/pr_ideographic.h: Likewise.
56045         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56046         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56047         * lib/unictype/pr_ignorable_control.h: Likewise.
56048         * lib/unictype/pr_iso_control.h: Likewise.
56049         * lib/unictype/pr_join_control.h: Likewise.
56050         * lib/unictype/pr_left_of_pair.h: Likewise.
56051         * lib/unictype/pr_line_separator.h: Likewise.
56052         * lib/unictype/pr_logical_order_exception.h: Likewise.
56053         * lib/unictype/pr_lowercase.h: Likewise.
56054         * lib/unictype/pr_math.h: Likewise.
56055         * lib/unictype/pr_non_break.h: Likewise.
56056         * lib/unictype/pr_not_a_character.h: Likewise.
56057         * lib/unictype/pr_numeric.h: Likewise.
56058         * lib/unictype/pr_other_alphabetic.h: Likewise.
56059         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56060         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56061         * lib/unictype/pr_other_id_continue.h: Likewise.
56062         * lib/unictype/pr_other_id_start.h: Likewise.
56063         * lib/unictype/pr_other_lowercase.h: Likewise.
56064         * lib/unictype/pr_other_math.h: Likewise.
56065         * lib/unictype/pr_other_uppercase.h: Likewise.
56066         * lib/unictype/pr_paired_punctuation.h: Likewise.
56067         * lib/unictype/pr_paragraph_separator.h: Likewise.
56068         * lib/unictype/pr_pattern_syntax.h: Likewise.
56069         * lib/unictype/pr_pattern_white_space.h: Likewise.
56070         * lib/unictype/pr_private_use.h: Likewise.
56071         * lib/unictype/pr_punctuation.h: Likewise.
56072         * lib/unictype/pr_quotation_mark.h: Likewise.
56073         * lib/unictype/pr_radical.h: Likewise.
56074         * lib/unictype/pr_sentence_terminal.h: Likewise.
56075         * lib/unictype/pr_soft_dotted.h: Likewise.
56076         * lib/unictype/pr_space.h: Likewise.
56077         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56078         * lib/unictype/pr_titlecase.h: Likewise.
56079         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56080         * lib/unictype/pr_unified_ideograph.h: Likewise.
56081         * lib/unictype/pr_uppercase.h: Likewise.
56082         * lib/unictype/pr_variation_selector.h: Likewise.
56083         * lib/unictype/pr_white_space.h: Likewise.
56084         * lib/unictype/pr_xid_continue.h: Likewise.
56085         * lib/unictype/pr_xid_start.h: Likewise.
56086         * lib/unictype/pr_zero_width.h: Likewise.
56087         * lib/unictype/scripts.h: Likewise.
56088         * lib/unictype/scripts_byname.gperf: Likewise.
56089         * lib/unictype/sy_c_ident.h: Likewise.
56090         * lib/unictype/sy_c_whitespace.h: Likewise.
56091         * lib/unictype/sy_java_ident.h: Likewise.
56092         * lib/unictype/sy_java_whitespace.h: Likewise.
56094         * lib/unictype/Makefile: New file.
56095         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56096         glibc.
56097         * lib/unictype/3level.h: New file, copied from glibc.
56098         * lib/unictype/3levelbit.h: New file.
56100 2007-11-11  Bruno Haible  <bruno@clisp.org>
56102         * modules/gperf: New file.
56103         * modules/iconv_open (Depends-on): Add it.
56104         (Makefile.am): Remove the GPERF definition.
56106 2007-11-11  Bruno Haible  <bruno@clisp.org>
56108         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56109         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56111 2007-11-11  Bruno Haible  <bruno@clisp.org>
56113         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56114         (usage): Remove function.
56116 2007-11-11  Bruno Haible  <bruno@clisp.org>
56118         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56119         gl_FUNC_CEILF_LIBS.
56120         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56121         gl_FUNC_CEIL_LIBS.
56122         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56123         gl_FUNC_CEILL_LIBS.
56124         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56125         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56126         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56128 2007-11-11  Bruno Haible  <bruno@clisp.org>
56130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56131         roundf were declared but do not exist on functions.
56132         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56133         roundl were declared but do not exist on functions.
56134         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56135         HAVE_FLOORL_AND_CEILL, respectively.
56136         Needed for Sun C on Solaris 10.
56138 2007-11-11  Bruno Haible  <bruno@clisp.org>
56140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56141         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56142         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56143         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56145         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56146         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56147         HAVE_DECL_ROUNDF.
56148         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56149         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56151         of HAVE_DECL_ROUND*.
56152         * modules/math (Makefile.am): Update.
56154 2007-11-10  Bruno Haible  <bruno@clisp.org>
56156         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56157         ptrdiff_t as m4/intl.m4.
56159 2007-11-10  Jim Meyering  <meyering@redhat.com>
56161         Avoid link failure for the argmatch test.
56162         * tests/test-argmatch.c (usage): Define function to avoid a link
56163         failure: argmatch_die requires a usage function.
56165 2007-11-09  Bruno Haible  <bruno@clisp.org>
56167         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56168         * doc/functions/vsnprintf.texi: Likewise.
56169         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56170         with a size argument < 2.
56172 2007-11-09  Bruno Haible  <bruno@clisp.org>
56174         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56175         buffer. Fixes an inefficiency introduced on 2007-11-03.
56177 2007-11-09  Bruno Haible  <bruno@clisp.org>
56179         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56180         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56182 2007-11-08  Jim Meyering  <meyering@redhat.com>
56184         Change cache variable name prefix "jm_" to "gl_" everywhere.
56185         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56186         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56187         * m4/uptime.m4: s/gl_/jm_/
56189 2007-11-07  Bruno Haible  <bruno@clisp.org>
56191         Update to GNU gettext 0.17.
56192         * m4/intl.m4: Update to GNU gettext 0.17.
56193         * m4/po.m4: Likewise.
56194         * modules/gettext (Files): Remove m4/ulonglong.m4.
56195         (configure.ac): Require gettext infrastructure from version 0.17.
56197 2007-11-06  Bruno Haible  <bruno@clisp.org>
56199         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56200         symbolic values are not defined in a public header.
56201         * lib/freadable.c (freadable) [QNX]: Likewise.
56202         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56203         * lib/freading.c (freading) [QNX]: Likewise.
56204         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56205         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56206         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56207         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56208         Reported by Alain Magloire.
56210         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56212 2007-11-05  Bruno Haible  <bruno@clisp.org>
56214         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56215         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56216         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56217         Reported by Eric Blake.
56219 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56220             Bruno Haible  <bruno@clisp.org>
56222         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56223         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56224         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56225         (malloc): Undefine also before including <stdlib.h>.
56226         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56227         Needed on OSF/1 4.0.
56229 2007-11-05  Jim Meyering  <meyering@redhat.com>
56231         git-version-gen: sync from coreutils.
56232         * build-aux/git-version-gen: Add comments.
56233         Change the first '-' to '.' in the snapshot version string,
56234         e.g., 6.9-377-08144 -> 6.9.377-08144
56235         Remove first parameter.
56236         Don't declare a version "-dirty" merely because a time
56237         stamp has changed.
56239 2007-11-04  Bruno Haible  <bruno@clisp.org>
56241         * lib/lock.h: Protect all macro definitions containing an 'if'
56242         statement through a "do { ... } while (0)".
56243         * lib/tls.h: Likewise.
56245 2007-11-04  Bruno Haible  <bruno@clisp.org>
56247         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56249 2007-11-04  Bruno Haible  <bruno@clisp.org>
56251         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56252         * modules/fprintf-posix (Depends-on): Add nocrash.
56253         * modules/snprintf-posix (Depends-on): Likewise.
56254         * modules/sprintf-posix (Depends-on): Likewise.
56255         * modules/vasnprintf-posix (Depends-on): Likewise.
56256         * modules/vasprintf-posix (Depends-on): Likewise.
56257         * modules/vfprintf-posix (Depends-on): Likewise.
56258         * modules/vsnprintf-posix (Depends-on): Likewise.
56259         * modules/vsprintf-posix (Depends-on): Likewise.
56260         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56261         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56262         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56263         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56264         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56265         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56266         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56268 2007-11-04  Bruno Haible  <bruno@clisp.org>
56270         * modules/nocrash: New file.
56271         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56272         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56274 2007-11-04  Bruno Haible  <bruno@clisp.org>
56276         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56277         precision handling.
56278         * tests/test-vasprintf-posix.c (test_function): Likewise.
56279         * tests/test-snprintf-posix.h (test_function): Likewise.
56280         * tests/test-sprintf-posix.h (test_function): Likewise.
56282         Fix *printf behaviour for large precisions on mingw and BeOS.
56283         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56284         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56286         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56288         gl_PRINTF_PRECISION and test its result. Invoke
56289         gl_PREREQ_VASNPRINTF_PRECISION.
56290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56297         * doc/functions/fprintf.texi: Update.
56298         * doc/functions/printf.texi: Update.
56299         * doc/functions/snprintf.texi: Update.
56300         * doc/functions/sprintf.texi: Update.
56301         * doc/functions/vfprintf.texi: Update.
56302         * doc/functions/vprintf.texi: Update.
56303         * doc/functions/vsnprintf.texi: Update.
56304         * doc/functions/vsprintf.texi: Update.
56306 2007-11-04  Bruno Haible  <bruno@clisp.org>
56308         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56310 2007-11-04  Bruno Haible  <bruno@clisp.org>
56312         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56313         Reported by Sylvain Beucler <beuc@gnu.org>.
56315 2007-11-03  Bruno Haible  <bruno@clisp.org>
56317         * tests/test-fprintf-posix2.sh: New file.
56318         * tests/test-fprintf-posix2.c: New file.
56319         * modules/fprintf-posix-tests (Files): Add them.
56320         (TESTS): Add test-fprintf-posix2.sh.
56321         (configure.ac): Check for getrlimit and setrlimit.
56322         (check_PROGRAMS): Add test-fprintf-posix2.
56324         * tests/test-printf-posix2.sh: New file.
56325         * tests/test-printf-posix2.c: New file.
56326         * modules/printf-posix-tests (Files): Add them.
56327         (TESTS): Add test-printf-posix2.sh.
56328         (configure.ac): Check for getrlimit and setrlimit.
56329         (check_PROGRAMS): Add test-printf-posix2.
56331         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56332         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56333         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56334         (decode_double): New function, copied from decode_long_double.
56335         (scale10_round_decimal_decoded): New function, extracted from
56336         scale10_round_decimal_long_double.
56337         (scale10_round_decimal_long_double): Use it.
56338         (scale10_round_decimal_double): New function.
56339         (floorlog10): New function.
56340         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56342         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56344         gl_PRINTF_ENOMEM and test its result. Invoke
56345         gl_PREREQ_VASNPRINTF_ENOMEM.
56346         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56352         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56353         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56354         * modules/snprintf-posix (Depends-on): Likewise.
56355         * modules/sprintf-posix (Depends-on): Likewise.
56356         * modules/vasnprintf-posix (Depends-on): Likewise.
56357         * modules/vasprintf-posix (Depends-on): Likewise.
56358         * modules/vfprintf-posix (Depends-on): Likewise.
56359         * modules/vsnprintf-posix (Depends-on): Likewise.
56360         * modules/vsprintf-posix (Depends-on): Likewise.
56361         * doc/functions/fprintf.texi: Update.
56362         * doc/functions/printf.texi: Update.
56363         * doc/functions/snprintf.texi: Update.
56364         * doc/functions/sprintf.texi: Update.
56365         * doc/functions/vfprintf.texi: Update.
56366         * doc/functions/vprintf.texi: Update.
56367         * doc/functions/vsnprintf.texi: Update.
56368         * doc/functions/vsprintf.texi: Update.
56370 2007-11-03  Bruno Haible  <bruno@clisp.org>
56372         * modules/frexp-nolibm-tests: New file.
56374         * modules/frexp-nolibm: New file.
56375         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56377 2007-11-03  Bruno Haible  <bruno@clisp.org>
56379         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56380         value is C99 compliant.
56381         Needed for OSF/1 5.1.
56383 2007-11-03  Bruno Haible  <bruno@clisp.org>
56385         Fix out-of-memory handling of vasnprintf.
56386         * lib/printf-parse.c: Include <errno.h>.
56387         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56388         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56389         is already set.
56391 2007-11-02  Eric Blake  <ebb9@byu.net>
56393         Fix tests on cygwin.
56394         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56396 2007-11-01  Bruno Haible  <bruno@clisp.org>
56398         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56399         warning.
56400         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56401         needed for POSIX compatibility.
56403 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56405         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56406         for compatibility with GNU.
56408 2007-11-01  Bruno Haible  <bruno@clisp.org>
56410         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56411         (putenv): Renamed from rpl_putenv. Change argument type from
56412         'const char *' to 'char *'.
56413         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56414         of defining putenv in config.h, just set REPLACE_PUTENV.
56415         * modules/putenv (Depends-on): Add stdlib.
56416         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56417         (Include): Use <stdlib.h>.
56418         * lib/stdlib.in.h (putenv): New declaration.
56419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56420         REPLACE_PUTENV.
56421         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56422         REPLACE_PUTENV.
56423         Needed for MacOS X 10.5.0.
56424         Reported by Peter O'Gorman <peter@pogma.com>.
56426 2007-11-01  Jim Meyering  <meyering@redhat.com>
56428         Treat an empty date string exactly like "0".
56429         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56430         if the remaining date string (to be parsed) is empty, use "0".
56431         Reported by Mischa Molhoek and discussed in this thread:
56432         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56434 2007-10-31  Bruno Haible  <bruno@clisp.org>
56436         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56437         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56438         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56439         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56440         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56441         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56443 2007-10-31  Bruno Haible  <bruno@clisp.org>
56445         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56446         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56447         (AC_TYPE_LONG_LONG_INT): Use it.
56448         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56449         it as well.
56450         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56451         to m4/longlong.m4.
56452         * modules/stdint (Files): Remove m4/ulonglong.m4.
56453         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56454         m4/ulonglong.m4.
56455         * modules/strtoumax (Files): Likewise.
56457 2007-10-30  Bruno Haible  <bruno@clisp.org>
56459         * modules/xvasprintf-posix: New file.
56460         Suggested by Eric Blake.
56462 2007-10-30  Bruno Haible  <bruno@clisp.org>
56464         * modules/xprintf-posix-tests: New file.
56465         * tests/test-xprintf-posix.sh: New file.
56466         * tests/test-xprintf-posix.c: New file.
56467         * tests/test-xfprintf-posix.c: New file.
56469         * modules/xprintf-posix: New file.
56471 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56473         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56474         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56475         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56477 2007-10-29  Bruno Haible  <bruno@clisp.org>
56479         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56480         contain the special marker '_cv_'.
56481         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56482         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56483         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56484         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56485         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56486         Reported by Ralf Wildenhues.
56488 2007-10-29  Bruno Haible  <bruno@clisp.org>
56490         * gnulib-tool (func_import): When --lgpl is not specified, set
56491         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56492         GPLv3.
56493         Reported by Simon Josefsson.
56495 2007-10-28  Bruno Haible  <bruno@clisp.org>
56497         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56498         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56499         HAVE_DECL_ISFINITE.
56500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56501         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56502         HAVE_DECL_ISFINITE.
56504 2007-10-28  Bruno Haible  <bruno@clisp.org>
56506         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56507         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56509 2007-10-28  Bruno Haible  <bruno@clisp.org>
56511         Fix link errors with Sun C 5.0 on Solaris 10.
56512         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56513         function is declared but not present in the compiler's libm.
56514         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56515         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56516         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56517         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56518         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56519         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56520         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56522         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56523         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56524         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56525         HAVE_DECL_FLOORL.
56527 2007-10-28  Bruno Haible  <bruno@clisp.org>
56529         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56530         gl_FUNC_FLOORL. Cache the result.
56531         (gl_FUNC_FLOORL): Use it.
56532         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56533         gl_FUNC_CEILL. Cache the result.
56534         (gl_FUNC_CEILL): Use it.
56536         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56537         gl_FUNC_FLOOR. Cache the result.
56538         (gl_FUNC_FLOOR): Use it.
56539         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56540         gl_FUNC_CEIL. Cache the result.
56541         (gl_FUNC_CEIL): Use it.
56543         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56544         gl_FUNC_FLOORF. Cache the result.
56545         (gl_FUNC_FLOORF): Use it.
56546         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56547         gl_FUNC_CEILF. Cache the result.
56548         (gl_FUNC_CEILF): Use it.
56550 2007-10-28  Bruno Haible  <bruno@clisp.org>
56552         * gnulib-tool: Allow specifying the LGPL version number through
56553         --lgpl=2 or --lgpl=3.
56554         (func_usage): Document --lgpl with argument.
56555         Handle --lgpl=... arguments.
56556         (func_import): Recognize also gl_LGPL calls with an argument. When
56557         --lgpl=2 is used and the module's license is just LGPL, report an
56558         error. Set sed_transform_lib_file according to the lgpl variable. In
56559         the generated files, use --lgpl or gl_LGPL invocations with argument,
56560         if necessary.
56561         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56562         an LGPv2+ license.
56563         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56564         gl_LGPL macro.
56566 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56567             Bruno Haible  <bruno@clisp.org>
56569         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56570         (u16_uctomb_aux): Likewise.
56571         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56572         !HAVE_INLINE.
56573         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56575 2007-10-28  Bruno Haible  <bruno@clisp.org>
56577         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56578         Invoke AM_GETTEXT_OPTION if it exists.
56579         * modules/vasprintf: Likewise.
56580         * modules/verror: Likewise.
56581         * modules/xprintf: Likewise.
56582         * modules/xvasprintf: Likewise.
56584 2007-10-27  Ben Pfaff  <blp@gnu.org>
56586         * lib/math.in.h: Define isfinite macro and prototypes for
56587         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56588         implementations.
56589         * m4/math_h.m4: New substitutions for isfinite module.
56590         * lib/isfinite.c: New file.
56591         * m4/isfinite.m4: New file.
56592         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56593         * modules/isfinite: New file.
56594         * modules/isfinite-tests: New file.
56595         * tests/tests-isfinite.c: New file.
56596         * doc/functions/isfinite.texi: Mention isfinite module.
56597         * MODULES.html.sh: Mention new module.
56599 2007-10-27  Ben Pfaff  <blp@gnu.org>
56601         Ralf Wildenhues reported that Tru64 4.0D declares the round
56602         functions but does not have definitions.
56603         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56604         cannot be found in any library, set the output variable to
56605         "missing" instead of "".
56606         * m4/round.m4: Also use our substitute if we cannot find round in
56607         any library, even if it is declared.
56608         * m4/roundf.m4: Likewise for roundf.
56609         * m4/roundl.m4: Likewise for roundl.
56610         * lib/math.in.h: Undefine roundf, round, roundl before defining
56611         their replacements, to allow for hypothetical systems where these
56612         may be defined as macros but not available in libraries.
56614 2007-10-27  Bruno Haible  <bruno@clisp.org>
56616         * doc/gnulib.texi: Invoke @firstparagraphindent.
56617         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56618         changes in gnulib.
56619         (Source changes): New section.
56621 2007-10-26  Bruno Haible  <bruno@clisp.org>
56623         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56624         borrowed from autoconf.
56626 2007-10-26  Bruno Haible  <bruno@clisp.org>
56628         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56629         strerror returned the empty string. Needed on HP-UX 11.00.
56631 2007-10-24  Micah Cowan  <micah@cowan.name>
56633         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56634         * build-aux/bootstrap: Remove support for now-unnecessary option,
56635         --cvs-user, and envvars CVS_USER, CVS_RSH.
56637 2007-10-24  Jim Meyering  <meyering@redhat.com>
56639         Avoid diagnostics from sha1sum when there is no cached checksum.
56640         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56641         if the po.s1 file hasn't been created yet.
56643         * build-aux/bootstrap: Sync from coreutils:
56644         2007-10-24  Jim Meyering  <meyering@redhat.com>
56645         Get gnulib from the git repository, not from an obsolete cvs one.
56646         * build-aux/bootstrap: Suggestion from Micah Cowan.
56647         2007-10-04  Jim Meyering  <jim@meyering.net>
56648         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56649         (update_po_files): Work also when there are no .po files in po/.
56651 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56653         * README: Append ".git" to git and cg examples.
56654         Problem reported by Benoit Sigoure.
56656 2007-10-23  Micah Cowan  <micah@cowan.name>
56658         * users.txt: Add wget.
56660 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56662         Fix linking of some unistdio tests on FreeBSD.
56663         * modules/unistdio/u16-vsnprintf-tests
56664         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56665         * modules/unistdio/u16-vsprintf-tests
56666         (test_u16_vsnprintf1_LDADD): Likewise.
56667         * modules/unistdio/u32-vsnprintf-tests
56668         (test_u32_vsnprintf1_LDADD): Likewise.
56669         * modules/unistdio/u32-vsprintf-tests
56670         (test_u32_vsprintf1_LDADD): Likewise.
56671         * modules/unistdio/u8-vsnprintf-tests
56672         (test_u8_vsnprintf1_LDADD): Likewise.
56673         * modules/unistdio/u8-vsprintf-tests
56674         (test_u8_vsprintf1_LDADD): Likewise.
56675         * modules/unistdio/ulc-vsnprintf-tests
56676         (test_ulc_vsnprintf1_LDADD): Likewise.
56677         * modules/unistdio/ulc-vsprintf-tests
56678         (test_ulc_vsprintf1_LDADD): Likewise.
56680         Fix linking of some uniconv tests on FreeBSD.
56681         * modules/uniconv/u16-conv-from-enc-tests
56682         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56683         * modules/uniconv/u16-conv-to-enc-tests
56684         (test_u16_conv_to_enc_LDADD): Likewise.
56685         * modules/uniconv/u16-strconv-from-enc-tests
56686         (test_u16_strconv_from_enc_LDADD): Likewise.
56687         * modules/uniconv/u16-strconv-to-enc-tests
56688         (test_u16_strconv_to_enc_LDADD): Likewise.
56689         * modules/uniconv/u32-conv-from-enc-tests
56690         (test_u32_conv_from_enc_LDADD): Likewise.
56691         * modules/uniconv/u32-conv-to-enc-tests
56692         (test_u32_conv_to_enc_LDADD): Likewise.
56693         * modules/uniconv/u32-strconv-from-enc-tests
56694         (test_u32_strconv_from_enc_LDADD): Likewise.
56695         * modules/uniconv/u32-strconv-to-enc-tests
56696         (test_u32_strconv_to_enc_LDADD): Likewise.
56697         * modules/uniconv/u8-conv-from-enc-tests
56698         (test_u8_conv_from_enc_LDADD): Likewise.
56699         * modules/uniconv/u8-conv-to-enc-tests
56700         (test_u8_conv_to_enc_LDADD): Likewise.
56701         * modules/uniconv/u8-strconv-from-enc-tests
56702         (test_u8_strconv_from_enc_LDADD): Likewise.
56703         * modules/uniconv/u8-strconv-to-enc-tests
56704         (test_u8_strconv_to_enc_LDADD): Likewise.
56706 2007-10-22  Bruno Haible  <bruno@clisp.org>
56708         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56709         size.
56711 2007-10-22  Eric Blake  <ebb9@byu.net>
56713         Tweak x*printf documentation.
56714         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56715         variable name and comments.
56716         Suggested by Bruno Haible.
56718 2007-10-22  Bruno Haible  <bruno@clisp.org>
56720         * lib/acl.c (copy_acl): Fix file name in comment.
56722 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56724         Fix Tru64 problem with stdbool.h.
56725         * lib/stdbool.in.h (false, true):
56726         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56727         Don't declare as an enum in this situation; it runs afoul of Tru64.
56728         Problem reported by Steven M. Schweda in
56729         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56731 2007-10-22  Eric Blake  <ebb9@byu.net>
56733         Also wrap vf?printf.
56734         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56735         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56736         (xvprintf, xvfprintf): New functions.
56738 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56740         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56741         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56743         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56744         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56746 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56748         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56749         by Bruno Haible.
56751 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56753         * lib/getloadavg.c
56754         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56755         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56757         * tests/test-i-ring.c: Work for C89.
56759 2007-10-22  Bruno Haible  <bruno@clisp.org>
56761         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56762         -1u, in preprocessor expression, so that we don't test for the bug
56763         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56766 2007-10-22  Eric Blake  <ebb9@byu.net>
56768         * tests/test-yesno.sh: Silence stderr during test.
56770 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56772         * modules/crypto/gc-camellia: New file.
56774         * m4/gc-camellia.m4: New file.
56776         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56778         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56780 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56782         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56783         --help to stdout.  Reported by sms@antinode.org (Steven
56784         M. Schweda).
56786 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56788         * users.txt: Fix link to libksba.
56790 2007-10-21  Ben Pfaff  <blp@gnu.org>
56792         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56793         round.c roundf implementation that depends on floorf and ceilf to
56794         be tested unconditionally.
56796 2007-10-21  Ben Pfaff  <blp@gnu.org>
56798         * m4/check-libm-func.m4: Removed.
56799         * m4/check-math-lib.m4: New file.
56800         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56801         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56802         definition and lack of AC_LIBOBJ([roundf]).
56803         * m4/roundl.m4: Ditto, and similarly for roundl.
56804         * modules/round: Reference new m4 file.
56805         * modules/roundf: Ditto.
56806         * modules/roundl: Ditto.
56807         * tests/test-round2.c (main): Use ROUND instead of round.
56808         Bug report from Bruno Haible.
56810 2007-10-21  Bruno Haible  <bruno@clisp.org>
56812         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56813         context.
56815 2007-10-21  Bruno Haible  <bruno@clisp.org>
56817         * tests/test-wcwidth.c (main): Allow negative result for some control
56818         characters.
56820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56821         Needed on OSF/1 5.1.
56823 2007-10-21  Bruno Haible  <bruno@clisp.org>
56825         * tests/test-floorf1.c: Include isnanf.h.
56826         (main): Use isnanf() instead of isnan().
56827         * tests/test-ceilf1.c: Include isnanf.h.
56828         (main): Use isnanf() instead of isnan().
56829         * tests/test-truncf1.c: Include isnanf.h.
56830         (main): Use isnanf() instead of isnan().
56831         * tests/test-roundf1.c: Include isnanf.h.
56832         (main): Use isnanf() instead of isnan().
56834 2007-10-21  Eric Blake  <ebb9@byu.net>
56836         * users.txt: Update URL for m4.
56838 2007-10-21  Bruno Haible  <bruno@clisp.org>
56840         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56842 2007-10-21  Bruno Haible  <bruno@clisp.org>
56844         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56845         Git's management files if the CVS files are not present.
56847 2007-10-20  Bruno Haible  <bruno@clisp.org>
56849         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56850         gcc-3.4.x.
56852 2007-10-20  Ben Pfaff  <blp@gnu.org>
56854         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56855         implementations.
56856         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56857         * lib/round.c: New file.
56858         * lib/roundf.c: New file.
56859         * lib/roundl.c: New file.
56860         * m4/round.m4: New file.
56861         * m4/roundf.m4: New file.
56862         * m4/roundl.m4: New file.
56863         * m4/check-libm-func-m4: New file.
56864         * modules/math: Replace round, roundf, roundl related @VARS@ in
56865         math.in.h.
56866         * modules/round: New file.
56867         * modules/round-tests: New file.
56868         * modules/roundf: New file.
56869         * modules/roundf-tests: New file.
56870         * modules/roundl: New file.
56871         * modules/roundl-tests: New file.
56872         * tests/test-round1.c: New file.
56873         * tests/test-round2.c: New file.
56874         * tests/test-roundf1.c: New file.
56875         * tests/test-roundf2.c: New file.
56876         * tests/test-roundl.c: New file.
56877         * doc/functions/round.texi: Mention round module.
56878         * doc/functions/roundf.texi: Mention roundf module.
56879         * doc/functions/roundl.texi: Mention roundl module.
56880         * MODULES.html.sh: Mention new modules.
56881         Thanks to Bruno Haible for suggestions.
56883 2007-10-20  Jim Meyering  <meyering@redhat.com>
56885         * lib/xprintf.c: Include <config.h> unconditionally.
56887         Change xprintf's license to GPL.
56888         * modules/xprintf (License): s/LGPL/GPL/, since this module
56889         depends on modules (exit and exitfail) which are GPL.
56890         Suggestion from Bruno Haible.
56892         xprintf fixes.
56893         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56894         Use a clearer diagnostic.
56895         Patch from Bruno Haible.
56897 2007-10-20  Bruno Haible  <bruno@clisp.org>
56899         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56900         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56903 2007-10-20  Bruno Haible  <bruno@clisp.org>
56905         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56906         precision in the comparison result > x - 1 or similar.
56907         * tests/test-ceilf2.c (correct_result_p): Likewise.
56908         * tests/test-truncf2.c (correct_result_p): Likewise.
56909         * tests/test-trunc2.c (correct_result_p): Likewise.
56910         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56912 2007-10-20  Bruno Haible  <bruno@clisp.org>
56914         * modules/ceil: New file.
56915         * m4/ceil.m4: New file.
56916         * doc/functions/ceil.texi: Mention the 'ceil' module.
56918 2007-10-20  Bruno Haible  <bruno@clisp.org>
56920         * modules/floor: New file.
56921         * m4/floor.m4: New file.
56922         * doc/functions/floor.texi: Mention the 'floor' module.
56924 2007-10-20  Bruno Haible  <bruno@clisp.org>
56926         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56927         of %a.
56928         * modules/floorf-tests (Depends-on): Likewise.
56929         * modules/truncf-tests (Depends-on): Likewise.
56930         * modules/trunc-tests (Depends-on): Likewise.
56931         Reported by Ben Pfaff.
56933 2007-10-19  Jim Meyering  <meyering@redhat.com>
56935         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56936         Don't bother testing specific errno values.  Just test ferror.
56938         New module: xprintf
56939         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56941 2007-10-19  Bruno Haible  <bruno@clisp.org>
56943         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56944         syntax.
56945         * modules/javaexec (Makefile.am): Likewise.
56946         * modules/relocatable-prog (Makefile.am): Likewise.
56947         Suggested by Jim Meyering.
56949 2007-10-18  Bruno Haible  <bruno@clisp.org>
56951         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56952         Reported by Jim Meyering.
56954 2007-10-18  Eric Blake  <ebb9@byu.net>
56956         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56958 2007-10-18  Bruno Haible  <bruno@clisp.org>
56960         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56961         the format string into writable memory. Needed in Fortify conditions.
56963 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56964             Bruno Haible  <bruno@clisp.org>
56966         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56967         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56968         * modules/trim (Depends-on): Add mbchar.
56969         (configure.ac): Add gl_FUNC_MBRTOWC.
56970         (Makefile.am): Augment lib_SOURCES.
56972 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56974         Modify glob.c to use fstatat and dirfd, to simplify it.
56975         Suggested by Eric Blake.
56976         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56977         Don't include <stdbool.h>; not used.
56978         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56979         (link_exists_p): Simplify implementation, since we can now assume
56980         dirfd and fstatat.
56981         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56983 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56985         * gnulib-tool (func_get_dependencies): Fix sed script to
56986         match only tests.
56988 2007-10-17  Bruno Haible  <bruno@clisp.org>
56990         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56991         allow locale names without encoding suffix.
56992         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56993         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56995 2007-10-16  Bruno Haible  <bruno@clisp.org>
56997         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56998         * lib/getgroups.c (getgroups): Likewise.
56999         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57001 2007-10-16  Bruno Haible  <bruno@clisp.org>
57003         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57004         * modules/malloc-posix (License): Likewise.
57005         * modules/realloc-posix (License): Likewise.
57006         * modules/calloc-posix (License): Likewise.
57007         * modules/intprops (License): Change from GPL to LGPL, with
57008         Paul Eggert's approval.
57010 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57012         Merge glibc changes into lib/glob.c.
57014         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57015         2007-10-15 04:59:03 UTC.  Here are the changes:
57017         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57019         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57021         * lib/glob.c: Add some branch prediction throughout.
57023         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57025         [BZ #5103]
57026         * lib/glob.c (glob): Recognize patterns starting \/.
57028         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57030         [BZ #3996]
57031         * lib/glob.c (attribute_hidden): Define if not defined.
57032         (glob): Unescape dirname, filename or username when needed and not
57033         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57034         is NULL.  Handle unescaped [ in pattern without closing ].
57035         Don't pass GLOB_CHECK down to recursive glob for directories.
57036         (__glob_pattern_type): New function.
57037         (__glob_pattern_p): Implement using __glob_pattern_type.
57038         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57039         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57040         Remove unreachable code.
57042         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57044         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57045         explain why there are no leaks.
57047         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57049         [BZ #3253]
57050         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57051         time, rather allocate increasingly bigger arrays of pointers, if
57052         possible with alloca, if too large with malloc.
57054 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57056         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57057         Problem reported by H.Merijn Brand in
57058         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57059         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57060         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57062 2007-10-15  Bruno Haible  <bruno@clisp.org>
57064         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57065         with explicit rpl_ prefix.
57066         * lib/fopen.c (fopen): Likewise.
57067         * lib/freopen.c (freopen): Likewise.
57068         * lib/iconv.c (iconv): Likewise.
57069         * lib/iconv_close.c (iconv_close): Likewise.
57071 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57073         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57075 2007-10-15  Bruno Haible  <bruno@clisp.org>
57077         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57078         <stddef.h> instead of <stdlib.h> since we only need NULL.
57079         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57081 2007-10-15  Bruno Haible  <bruno@clisp.org>
57083         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57084         Replace paragraph talking about LIBOBJS.
57085         Reported by Colin Watson <cjwatson@debian.org>.
57087 2007-10-15  Bruno Haible  <bruno@clisp.org>
57089         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57090         <stdlib.h> before using NULL.
57092 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57094         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57095         Reported by Albert Chin <china@thewrittenword.com>.
57097 2007-10-14  Bruno Haible  <bruno@clisp.org>
57099         * modules/iconv_open-utf-tests: New file.
57100         * tests/test-iconv-utf.c: New file.
57102         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57103         * modules/iconv_open-utf: New file.
57104         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57105         (iconv, iconv_close): New declarations.
57106         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57107         be defined.
57108         (iconv_open): Add special handling of conversion between UTF-8 and
57109         UTF-{16,32}{BE,LE}.
57110         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57111         * lib/iconv_close.c: New file.
57112         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57113         gl_FUNC_ICONV_OPEN.
57114         (gl_FUNC_ICONV_OPEN): Use it.
57115         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57116         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57117         and REPLACE_ICONV_UTF.
57118         * modules/iconv_open (Depends-on): Add c-strcase.
57119         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57120         ICONV_CONST.
57121         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57123 2007-10-13  Albert Chin  <china@thewrittenword.com>
57124             Bruno Haible  <bruno@clisp.org>
57126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57127         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57129 2007-10-13  Bruno Haible  <bruno@clisp.org>
57131         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57132         defined, use the ISO C99 inline semantics.
57133         * lib/argp.h (ARGP_EI): Likewise.
57135 2007-10-13  Bruno Haible  <bruno@clisp.org>
57137         Handle 'inline' change in gcc 4.3.0.
57138         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57139         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57140         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57141         argp_fmtstream_point): Disable 'extern' declaration if the function
57142         definition is going to be provided inline.
57143         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57144         semantics, not the ISO C99 inline semantics.
57145         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57146         'extern' declaration if the function definition is going to be provided
57147         inline.
57148         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57149         the GNU C inline semantics, not the ISO C99 inline semantics. With
57150         GCC 4.2, avoid a warning.
57152 2007-10-13  Bruno Haible  <bruno@clisp.org>
57154         * lib/freading.h (freading): Enable the use of __freading for
57155         glibc >= 2.7.
57156         * lib/freading.c (freading): Likewise.
57158 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57160         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57161         "warning: C99 inline functions are not supported; using GNU89".
57163 2007-10-12  Bruno Haible  <bruno@clisp.org>
57165         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57166         of 2.
57167         * tests/test-ceilf2.c: New file.
57168         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57170         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57171         * modules/ceilf-tests: Update.
57173 2007-10-12  Bruno Haible  <bruno@clisp.org>
57175         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57176         of 2.
57177         * tests/test-floorf2.c: New file.
57178         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57180         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57181         * modules/floorf-tests: Update.
57183 2007-10-12  Bruno Haible  <bruno@clisp.org>
57185         * tests/test-trunc2.c: New file.
57186         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57188         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57189         * modules/trunc-tests: Update.
57191 2007-10-12  Bruno Haible  <bruno@clisp.org>
57193         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57194         of 2.
57195         * tests/test-truncf2.c: New file.
57196         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57198         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57199         * modules/truncf-tests: Update.
57201 2007-10-11  Eric Blake  <ebb9@byu.net>
57203         Don't claim strerror is broken on Interix.
57204         * doc/functions/strerror.texi (strerror): Known broken systems are
57205         now Solaris 8, and not Interix.
57206         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57207         Interix on cross-compile.
57208         Reported by Martin Koeppe in
57209         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57211 2007-10-11  Bruno Haible  <bruno@clisp.org>
57213         * modules/i-ring-tests: New file.
57214         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57215         instead of assert.
57217 2007-10-11  Bruno Haible  <bruno@clisp.org>
57219         * modules/filenamecat-tests: New file.
57220         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57221         * lib/filenamecat.c: Remove test code.
57223 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57225         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57227         * lib/strerror.c: Include <string.h> always, to test interface,
57228         and to remove the need for the dummy.
57229         Include intprops.h to compute width instead of doing it ourselves
57230         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57231         (strerror): Define it to return NULL if there's no system strerror.
57232         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57233         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57234         ancient pre-strerror Unix systems well any more.  Saying "unknown
57235         system error" is enough.
57236         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57237         simpler strerror.c implementation.
57238         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57239         Simplify the tests to reflect the simpler strerror implementation.
57240         * modules/strerror (Depends-on): Add intprops.
57242 2007-10-09  Eric Blake  <ebb9@byu.net>
57244         Silence test-fpending.
57245         * modules/fpending-tests (Files): Add wrapper script.
57246         * tests/test-fpending.sh: New file.
57248 2007-10-09  Bruno Haible  <bruno@clisp.org>
57250         * MODULES.html.sh (func_module): Don't create a hyperlink for
57251         function names like 'printf_frexp'.
57252         (Misc): Add crc, memxor.
57253         (Characteristics of floating types): New section.
57254         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57255         isnanf-nolibm, signbit, trunc, truncf, truncl.
57256         (Enhancements for ISO C 99 functions): New subsection Input/output.
57257         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57258         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57259         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57260         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57261         (Enhancements for POSIX:2001 functions): Add chdir-long.
57262         (File system functions): Add areadlink, chdir-safer, read-file.
57263         Remove cycle-check.
57264         (File system as inode set): New section.
57265         (Date and time): Add gethrxtime.
57266         (Multithreading): Add openmp.
57267         (Internationalization functions): Add localename.
57268         (Unicode string functions): Add unistr/u*-mbsnlen.
57269         (Support for maintaining and releasing projects): Add git-version-gen.
57270         (Lone files): Remove directories.
57272 2007-10-08  Ben Pfaff  <blp@gnu.org>
57274         * lib/xmalloca.h: Fix typo in comment.
57276 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57278         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57279         when avoiding problems with integer overflow.  Use a portable test
57280         instead.
57282 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57284         * modules/dummy (License): Change to LGPLv2+.
57285         * modules/float (License): Likewise
57286         * modules/realloc (License): Likewise
57287         * modules/stdlib (License): Likewise
57289 2007-10-07  Bruno Haible  <bruno@clisp.org>
57291         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57292         * floor.c (TWO_MANT_DIG): Likewise.
57293         * ceil.c (TWO_MANT_DIG): Likewise.
57294         Reported by Ben Pfaff.
57296 2007-10-07  Bruno Haible  <bruno@clisp.org>
57298         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57299         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57300         * lib/frexp.c (FUNC): Likewise.
57301         * lib/printf-frexp.h (printf_frexp): Likewise.
57302         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57303         * lib/printf-frexp.c (FUNC): Likewise.
57304         Suggested by Jim Meyering.
57306 2007-10-07  Jim Meyering  <meyering@redhat.com>
57308         Make xnanosleep's integer overflow test more robust.
57309         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57310         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57312 2007-10-07  Bruno Haible  <bruno@clisp.org>
57314         * NEWS: Mention the license change.
57316         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57317         abbreviations in the modules files.
57319         Change copyright notice from GPLv2+ to GPLv3+.
57320         * README: Change copyright notice.
57321         * MODULES.html.sh: Likewise.
57322         * build-aux/bootstrap.conf: Likewise.
57323         * build-aux/config.libpath: Likewise.
57324         * build-aux/csharpcomp.sh.in: Likewise.
57325         * build-aux/csharpexec.sh.in: Likewise.
57326         * build-aux/install-reloc: Likewise.
57327         * build-aux/javacomp.sh.in: Likewise.
57328         * build-aux/javaexec.sh.in: Likewise.
57329         * build-aux/ldd.sh.in: Likewise.
57330         * build-aux/reloc-ldflags: Likewise.
57331         * build-aux/relocatable.sh.in: Likewise.
57332         * build-aux/x-to-1.in: Likewise.
57333         * check-module: Likewise.
57334         * config/srclistvars.sh: Likewise.
57335         * gnulib-tool: Likewise.
57336         * lib/acl-internal.h: Likewise.
57337         * lib/acl.c: Likewise.
57338         * lib/acl.h: Likewise.
57339         * lib/acl_entries.c: Likewise.
57340         * lib/areadlink-with-size.c: Likewise.
57341         * lib/areadlink.c: Likewise.
57342         * lib/areadlink.h: Likewise.
57343         * lib/argmatch.c: Likewise.
57344         * lib/argmatch.h: Likewise.
57345         * lib/argp-ba.c: Likewise.
57346         * lib/argp-eexst.c: Likewise.
57347         * lib/argp-fmtstream.c: Likewise.
57348         * lib/argp-fmtstream.h: Likewise.
57349         * lib/argp-fs-xinl.c: Likewise.
57350         * lib/argp-help.c: Likewise.
57351         * lib/argp-namefrob.h: Likewise.
57352         * lib/argp-parse.c: Likewise.
57353         * lib/argp-pin.c: Likewise.
57354         * lib/argp-pv.c: Likewise.
57355         * lib/argp-pvh.c: Likewise.
57356         * lib/argp-xinl.c: Likewise.
57357         * lib/argp.h: Likewise.
57358         * lib/at-func.c: Likewise.
57359         * lib/atanl.c: Likewise.
57360         * lib/backupfile.c: Likewise.
57361         * lib/backupfile.h: Likewise.
57362         * lib/basename.c: Likewise.
57363         * lib/binary-io.h: Likewise.
57364         * lib/byteswap.in.h: Likewise.
57365         * lib/c-stack.c: Likewise.
57366         * lib/c-stack.h: Likewise.
57367         * lib/c-strcasestr.c: Likewise.
57368         * lib/c-strcasestr.h: Likewise.
57369         * lib/c-strstr.c: Likewise.
57370         * lib/c-strstr.h: Likewise.
57371         * lib/c-strtod.c: Likewise.
57372         * lib/calloc.c: Likewise.
57373         * lib/canon-host.c: Likewise.
57374         * lib/canon-host.h: Likewise.
57375         * lib/canonicalize-lgpl.c: Likewise.
57376         * lib/canonicalize.c: Likewise.
57377         * lib/canonicalize.h: Likewise.
57378         * lib/ceil.c: Likewise.
57379         * lib/ceilf.c: Likewise.
57380         * lib/ceill.c: Likewise.
57381         * lib/chdir-long.c: Likewise.
57382         * lib/chdir-long.h: Likewise.
57383         * lib/chdir-safer.c: Likewise.
57384         * lib/chdir-safer.h: Likewise.
57385         * lib/chown.c: Likewise.
57386         * lib/classpath.c: Likewise.
57387         * lib/classpath.h: Likewise.
57388         * lib/clean-temp.c: Likewise.
57389         * lib/clean-temp.h: Likewise.
57390         * lib/cloexec.c: Likewise.
57391         * lib/close-stream.c: Likewise.
57392         * lib/closein.c: Likewise.
57393         * lib/closein.h: Likewise.
57394         * lib/closeout.c: Likewise.
57395         * lib/closeout.h: Likewise.
57396         * lib/concat-filename.c: Likewise.
57397         * lib/copy-file.c: Likewise.
57398         * lib/copy-file.h: Likewise.
57399         * lib/count-one-bits.h: Likewise.
57400         * lib/crc.c: Likewise.
57401         * lib/crc.h: Likewise.
57402         * lib/creat-safer.c: Likewise.
57403         * lib/csharpcomp.c: Likewise.
57404         * lib/csharpcomp.h: Likewise.
57405         * lib/csharpexec.c: Likewise.
57406         * lib/csharpexec.h: Likewise.
57407         * lib/cycle-check.c: Likewise.
57408         * lib/cycle-check.h: Likewise.
57409         * lib/diacrit.c: Likewise.
57410         * lib/diacrit.h: Likewise.
57411         * lib/diffseq.h: Likewise.
57412         * lib/dirchownmod.c: Likewise.
57413         * lib/dirent.in.h: Likewise.
57414         * lib/dirfd.c: Likewise.
57415         * lib/dirfd.h: Likewise.
57416         * lib/dirname.c: Likewise.
57417         * lib/dirname.h: Likewise.
57418         * lib/dummy.c: Likewise.
57419         * lib/dup-safer.c: Likewise.
57420         * lib/dup2.c: Likewise.
57421         * lib/eealloc.h: Likewise.
57422         * lib/error.c: Likewise.
57423         * lib/error.h: Likewise.
57424         * lib/euidaccess.c: Likewise.
57425         * lib/exclude.c: Likewise.
57426         * lib/exclude.h: Likewise.
57427         * lib/execute.c: Likewise.
57428         * lib/execute.h: Likewise.
57429         * lib/exitfail.c: Likewise.
57430         * lib/exitfail.h: Likewise.
57431         * lib/expl.c: Likewise.
57432         * lib/fatal-signal.c: Likewise.
57433         * lib/fatal-signal.h: Likewise.
57434         * lib/fbufmode.c: Likewise.
57435         * lib/fbufmode.h: Likewise.
57436         * lib/fchdir.c: Likewise.
57437         * lib/fchmodat.c: Likewise.
57438         * lib/fchownat.c: Likewise.
57439         * lib/fcntl--.h: Likewise.
57440         * lib/fcntl-safer.h: Likewise.
57441         * lib/fcntl.in.h: Likewise.
57442         * lib/fd-safer.c: Likewise.
57443         * lib/fflush.c: Likewise.
57444         * lib/file-has-acl.c: Likewise.
57445         * lib/file-set.c: Likewise.
57446         * lib/file-type.c: Likewise.
57447         * lib/file-type.h: Likewise.
57448         * lib/fileblocks.c: Likewise.
57449         * lib/filemode.c: Likewise.
57450         * lib/filemode.h: Likewise.
57451         * lib/filename.h: Likewise.
57452         * lib/filenamecat.c: Likewise.
57453         * lib/filenamecat.h: Likewise.
57454         * lib/findprog.c: Likewise.
57455         * lib/findprog.h: Likewise.
57456         * lib/float.in.h: Likewise.
57457         * lib/floor.c: Likewise.
57458         * lib/floorf.c: Likewise.
57459         * lib/floorl.c: Likewise.
57460         * lib/fopen-safer.c: Likewise.
57461         * lib/fopen.c: Likewise.
57462         * lib/fpending.c: Likewise.
57463         * lib/fpending.h: Likewise.
57464         * lib/fprintf.c: Likewise.
57465         * lib/fprintftime.h: Likewise.
57466         * lib/fpucw.h: Likewise.
57467         * lib/fpurge.c: Likewise.
57468         * lib/fpurge.h: Likewise.
57469         * lib/freadable.c: Likewise.
57470         * lib/freadable.h: Likewise.
57471         * lib/freadahead.c: Likewise.
57472         * lib/freadahead.h: Likewise.
57473         * lib/freading.c: Likewise.
57474         * lib/freading.h: Likewise.
57475         * lib/free.c: Likewise.
57476         * lib/freopen.c: Likewise.
57477         * lib/frexp.c: Likewise.
57478         * lib/frexpl.c: Likewise.
57479         * lib/fseek.c: Likewise.
57480         * lib/fseterr.c: Likewise.
57481         * lib/fseterr.h: Likewise.
57482         * lib/fstatat.c: Likewise.
57483         * lib/fstrcmp.c: Likewise.
57484         * lib/fstrcmp.h: Likewise.
57485         * lib/fsusage.c: Likewise.
57486         * lib/fsusage.h: Likewise.
57487         * lib/ftell.c: Likewise.
57488         * lib/ftello.c: Likewise.
57489         * lib/fts-cycle.c: Likewise.
57490         * lib/fts.c: Likewise.
57491         * lib/fts_.h: Likewise.
57492         * lib/full-read.c: Likewise.
57493         * lib/full-read.h: Likewise.
57494         * lib/full-write.c: Likewise.
57495         * lib/full-write.h: Likewise.
57496         * lib/fwritable.c: Likewise.
57497         * lib/fwritable.h: Likewise.
57498         * lib/fwriteerror.c: Likewise.
57499         * lib/fwriteerror.h: Likewise.
57500         * lib/fwriting.c: Likewise.
57501         * lib/fwriting.h: Likewise.
57502         * lib/gcd.c: Likewise.
57503         * lib/gcd.h: Likewise.
57504         * lib/getcwd.c: Likewise.
57505         * lib/getdate.h: Likewise.
57506         * lib/getdate.y: Likewise.
57507         * lib/getdomainname.c: Likewise.
57508         * lib/getdomainname.h: Likewise.
57509         * lib/getgroups.c: Likewise.
57510         * lib/gethostname.c: Likewise.
57511         * lib/gethrxtime.c: Likewise.
57512         * lib/gethrxtime.h: Likewise.
57513         * lib/getloadavg.c: Likewise.
57514         * lib/getndelim2.c: Likewise.
57515         * lib/getndelim2.h: Likewise.
57516         * lib/getnline.c: Likewise.
57517         * lib/getnline.h: Likewise.
57518         * lib/getopt.c: Likewise.
57519         * lib/getopt.in.h: Likewise.
57520         * lib/getopt1.c: Likewise.
57521         * lib/getopt_int.h: Likewise.
57522         * lib/getpagesize.h: Likewise.
57523         * lib/getsubopt.c: Likewise.
57524         * lib/gettime.c: Likewise.
57525         * lib/getugroups.c: Likewise.
57526         * lib/getugroups.h: Likewise.
57527         * lib/getusershell.c: Likewise.
57528         * lib/gl_anyavltree_list1.h: Likewise.
57529         * lib/gl_anyavltree_list2.h: Likewise.
57530         * lib/gl_anyhash_list1.h: Likewise.
57531         * lib/gl_anyhash_list2.h: Likewise.
57532         * lib/gl_anylinked_list1.h: Likewise.
57533         * lib/gl_anylinked_list2.h: Likewise.
57534         * lib/gl_anyrbtree_list1.h: Likewise.
57535         * lib/gl_anyrbtree_list2.h: Likewise.
57536         * lib/gl_anytree_list1.h: Likewise.
57537         * lib/gl_anytree_list2.h: Likewise.
57538         * lib/gl_anytree_oset.h: Likewise.
57539         * lib/gl_anytreehash_list1.h: Likewise.
57540         * lib/gl_anytreehash_list2.h: Likewise.
57541         * lib/gl_array_list.c: Likewise.
57542         * lib/gl_array_list.h: Likewise.
57543         * lib/gl_array_oset.c: Likewise.
57544         * lib/gl_array_oset.h: Likewise.
57545         * lib/gl_avltree_list.c: Likewise.
57546         * lib/gl_avltree_list.h: Likewise.
57547         * lib/gl_avltree_oset.c: Likewise.
57548         * lib/gl_avltree_oset.h: Likewise.
57549         * lib/gl_avltreehash_list.c: Likewise.
57550         * lib/gl_avltreehash_list.h: Likewise.
57551         * lib/gl_carray_list.c: Likewise.
57552         * lib/gl_carray_list.h: Likewise.
57553         * lib/gl_linked_list.c: Likewise.
57554         * lib/gl_linked_list.h: Likewise.
57555         * lib/gl_linkedhash_list.c: Likewise.
57556         * lib/gl_linkedhash_list.h: Likewise.
57557         * lib/gl_list.c: Likewise.
57558         * lib/gl_list.h: Likewise.
57559         * lib/gl_oset.c: Likewise.
57560         * lib/gl_oset.h: Likewise.
57561         * lib/gl_rbtree_list.c: Likewise.
57562         * lib/gl_rbtree_list.h: Likewise.
57563         * lib/gl_rbtree_oset.c: Likewise.
57564         * lib/gl_rbtree_oset.h: Likewise.
57565         * lib/gl_rbtreehash_list.c: Likewise.
57566         * lib/gl_rbtreehash_list.h: Likewise.
57567         * lib/gl_sublist.c: Likewise.
57568         * lib/gl_sublist.h: Likewise.
57569         * lib/group-member.c: Likewise.
57570         * lib/group-member.h: Likewise.
57571         * lib/hard-locale.c: Likewise.
57572         * lib/hard-locale.h: Likewise.
57573         * lib/hash-pjw.c: Likewise.
57574         * lib/hash-pjw.h: Likewise.
57575         * lib/hash-triple.c: Likewise.
57576         * lib/hash.c: Likewise.
57577         * lib/hash.h: Likewise.
57578         * lib/human.c: Likewise.
57579         * lib/human.h: Likewise.
57580         * lib/i-ring.c: Likewise.
57581         * lib/i-ring.h: Likewise.
57582         * lib/idcache.c: Likewise.
57583         * lib/imaxabs.c: Likewise.
57584         * lib/imaxdiv.c: Likewise.
57585         * lib/inet_pton.c: Likewise.
57586         * lib/inet_pton.h: Likewise.
57587         * lib/intprops.h: Likewise.
57588         * lib/inttostr.c: Likewise.
57589         * lib/inttostr.h: Likewise.
57590         * lib/inttypes.in.h: Likewise.
57591         * lib/isapipe.c: Likewise.
57592         * lib/isdir.c: Likewise.
57593         * lib/isnan.c: Likewise.
57594         * lib/isnan.h: Likewise.
57595         * lib/isnanf.c: Likewise.
57596         * lib/isnanf.h: Likewise.
57597         * lib/isnanl-nolibm.h: Likewise.
57598         * lib/isnanl.c: Likewise.
57599         * lib/isnanl.h: Likewise.
57600         * lib/javacomp.c: Likewise.
57601         * lib/javacomp.h: Likewise.
57602         * lib/javaexec.c: Likewise.
57603         * lib/javaexec.h: Likewise.
57604         * lib/javaversion.c: Likewise.
57605         * lib/javaversion.h: Likewise.
57606         * lib/javaversion.java: Likewise.
57607         * lib/lbrkprop.h: Likewise.
57608         * lib/lchmod.h: Likewise.
57609         * lib/lchown.c: Likewise.
57610         * lib/ldexpl.c: Likewise.
57611         * lib/linebreak.c: Likewise.
57612         * lib/linebreak.h: Likewise.
57613         * lib/linebuffer.c: Likewise.
57614         * lib/linebuffer.h: Likewise.
57615         * lib/locale.in.h: Likewise.
57616         * lib/logl.c: Likewise.
57617         * lib/long-options.c: Likewise.
57618         * lib/long-options.h: Likewise.
57619         * lib/lstat.c: Likewise.
57620         * lib/lstat.h: Likewise.
57621         * lib/math.in.h: Likewise.
57622         * lib/mbchar.c: Likewise.
57623         * lib/mbchar.h: Likewise.
57624         * lib/mbfile.h: Likewise.
57625         * lib/mbiter.h: Likewise.
57626         * lib/mbscasecmp.c: Likewise.
57627         * lib/mbscasestr.c: Likewise.
57628         * lib/mbschr.c: Likewise.
57629         * lib/mbscspn.c: Likewise.
57630         * lib/mbslen.c: Likewise.
57631         * lib/mbsncasecmp.c: Likewise.
57632         * lib/mbsnlen.c: Likewise.
57633         * lib/mbspbrk.c: Likewise.
57634         * lib/mbspcasecmp.c: Likewise.
57635         * lib/mbsrchr.c: Likewise.
57636         * lib/mbssep.c: Likewise.
57637         * lib/mbsspn.c: Likewise.
57638         * lib/mbsstr.c: Likewise.
57639         * lib/mbstok_r.c: Likewise.
57640         * lib/mbswidth.c: Likewise.
57641         * lib/mbswidth.h: Likewise.
57642         * lib/mbuiter.h: Likewise.
57643         * lib/memcasecmp.c: Likewise.
57644         * lib/memcasecmp.h: Likewise.
57645         * lib/memchr.c: Likewise.
57646         * lib/memcmp.c: Likewise.
57647         * lib/memcoll.c: Likewise.
57648         * lib/memcoll.h: Likewise.
57649         * lib/memcpy.c: Likewise.
57650         * lib/memrchr.c: Likewise.
57651         * lib/mkancesdirs.c: Likewise.
57652         * lib/mkdir-p.c: Likewise.
57653         * lib/mkdir-p.h: Likewise.
57654         * lib/mkdir.c: Likewise.
57655         * lib/mkdirat.c: Likewise.
57656         * lib/mkdtemp.c: Likewise.
57657         * lib/mkstemp-safer.c: Likewise.
57658         * lib/mkstemp.c: Likewise.
57659         * lib/modechange.c: Likewise.
57660         * lib/modechange.h: Likewise.
57661         * lib/mountlist.c: Likewise.
57662         * lib/mountlist.h: Likewise.
57663         * lib/mpsort.c: Likewise.
57664         * lib/nanosleep.c: Likewise.
57665         * lib/obstack.c: Likewise.
57666         * lib/obstack.h: Likewise.
57667         * lib/open-safer.c: Likewise.
57668         * lib/open.c: Likewise.
57669         * lib/openat-die.c: Likewise.
57670         * lib/openat-priv.h: Likewise.
57671         * lib/openat-proc.c: Likewise.
57672         * lib/openat.c: Likewise.
57673         * lib/openat.h: Likewise.
57674         * lib/pagealign_alloc.c: Likewise.
57675         * lib/pagealign_alloc.h: Likewise.
57676         * lib/physmem.c: Likewise.
57677         * lib/physmem.h: Likewise.
57678         * lib/pipe-safer.c: Likewise.
57679         * lib/pipe.c: Likewise.
57680         * lib/pipe.h: Likewise.
57681         * lib/posixtm.c: Likewise.
57682         * lib/posixtm.h: Likewise.
57683         * lib/posixver.c: Likewise.
57684         * lib/printf-frexp.c: Likewise.
57685         * lib/printf-frexp.h: Likewise.
57686         * lib/printf-frexpl.c: Likewise.
57687         * lib/printf-frexpl.h: Likewise.
57688         * lib/printf.c: Likewise.
57689         * lib/progname.c: Likewise.
57690         * lib/progname.h: Likewise.
57691         * lib/progreloc.c: Likewise.
57692         * lib/putenv.c: Likewise.
57693         * lib/quote.c: Likewise.
57694         * lib/quote.h: Likewise.
57695         * lib/quotearg.c: Likewise.
57696         * lib/quotearg.h: Likewise.
57697         * lib/raise.c: Likewise.
57698         * lib/readline.c: Likewise.
57699         * lib/readline.h: Likewise.
57700         * lib/readlink.c: Likewise.
57701         * lib/readtokens.c: Likewise.
57702         * lib/readtokens.h: Likewise.
57703         * lib/readtokens0.c: Likewise.
57704         * lib/readtokens0.h: Likewise.
57705         * lib/readutmp.c: Likewise.
57706         * lib/readutmp.h: Likewise.
57707         * lib/realloc.c: Likewise.
57708         * lib/relocwrapper.c: Likewise.
57709         * lib/rename-dest-slash.c: Likewise.
57710         * lib/rename.c: Likewise.
57711         * lib/rmdir.c: Likewise.
57712         * lib/rpmatch.c: Likewise.
57713         * lib/safe-read.c: Likewise.
57714         * lib/safe-read.h: Likewise.
57715         * lib/safe-write.c: Likewise.
57716         * lib/safe-write.h: Likewise.
57717         * lib/same-inode.h: Likewise.
57718         * lib/same.c: Likewise.
57719         * lib/same.h: Likewise.
57720         * lib/save-cwd.c: Likewise.
57721         * lib/save-cwd.h: Likewise.
57722         * lib/savedir.c: Likewise.
57723         * lib/savedir.h: Likewise.
57724         * lib/savewd.c: Likewise.
57725         * lib/savewd.h: Likewise.
57726         * lib/search.in.h: Likewise.
57727         * lib/setenv.c: Likewise.
57728         * lib/setenv.h: Likewise.
57729         * lib/settime.c: Likewise.
57730         * lib/sh-quote.c: Likewise.
57731         * lib/sh-quote.h: Likewise.
57732         * lib/sig2str.c: Likewise.
57733         * lib/sig2str.h: Likewise.
57734         * lib/signal.in.h: Likewise.
57735         * lib/signbitd.c: Likewise.
57736         * lib/signbitf.c: Likewise.
57737         * lib/signbitl.c: Likewise.
57738         * lib/sigprocmask.c: Likewise.
57739         * lib/sincosl.c: Likewise.
57740         * lib/sleep.c: Likewise.
57741         * lib/sprintf.c: Likewise.
57742         * lib/sqrtl.c: Likewise.
57743         * lib/stat-time.h: Likewise.
57744         * lib/stdio--.h: Likewise.
57745         * lib/stdio-safer.h: Likewise.
57746         * lib/stdlib--.h: Likewise.
57747         * lib/stdlib-safer.h: Likewise.
57748         * lib/stdlib.in.h: Likewise.
57749         * lib/stpcpy.c: Likewise.
57750         * lib/stpncpy.c: Likewise.
57751         * lib/strchrnul.c: Likewise.
57752         * lib/strcspn.c: Likewise.
57753         * lib/strerror.c: Likewise.
57754         * lib/strftime.c: Likewise.
57755         * lib/strftime.h: Likewise.
57756         * lib/striconveh.c: Likewise.
57757         * lib/striconveh.h: Likewise.
57758         * lib/striconveha.c: Likewise.
57759         * lib/striconveha.h: Likewise.
57760         * lib/stripslash.c: Likewise.
57761         * lib/strnlen1.c: Likewise.
57762         * lib/strnlen1.h: Likewise.
57763         * lib/strtod.c: Likewise.
57764         * lib/strtoimax.c: Likewise.
57765         * lib/strtok_r.c: Likewise.
57766         * lib/strtol.c: Likewise.
57767         * lib/strtoll.c: Likewise.
57768         * lib/strtoul.c: Likewise.
57769         * lib/strtoull.c: Likewise.
57770         * lib/sysexits.in.h: Likewise.
57771         * lib/tempname.c: Likewise.
57772         * lib/tempname.h: Likewise.
57773         * lib/timespec.h: Likewise.
57774         * lib/tls.c: Likewise.
57775         * lib/tls.h: Likewise.
57776         * lib/tmpdir.c: Likewise.
57777         * lib/tmpdir.h: Likewise.
57778         * lib/tmpfile-safer.c: Likewise.
57779         * lib/tmpfile.c: Likewise.
57780         * lib/trigl.c: Likewise.
57781         * lib/trigl.h: Likewise.
57782         * lib/trim.c: Likewise.
57783         * lib/trim.h: Likewise.
57784         * lib/trunc.c: Likewise.
57785         * lib/truncf.c: Likewise.
57786         * lib/truncl.c: Likewise.
57787         * lib/tsearch.c: Likewise.
57788         * lib/unicodeio.c: Likewise.
57789         * lib/unicodeio.h: Likewise.
57790         * lib/unistd--.h: Likewise.
57791         * lib/unistd-safer.h: Likewise.
57792         * lib/unistdio/ulc-fprintf.c: Likewise.
57793         * lib/unistdio/ulc-vfprintf.c: Likewise.
57794         * lib/unlinkdir.c: Likewise.
57795         * lib/unlinkdir.h: Likewise.
57796         * lib/unlocked-io.h: Likewise.
57797         * lib/unsetenv.c: Likewise.
57798         * lib/userspec.c: Likewise.
57799         * lib/utime.c: Likewise.
57800         * lib/utimecmp.c: Likewise.
57801         * lib/utimecmp.h: Likewise.
57802         * lib/utimens.c: Likewise.
57803         * lib/verify.h: Likewise.
57804         * lib/verror.c: Likewise.
57805         * lib/verror.h: Likewise.
57806         * lib/version-etc-fsf.c: Likewise.
57807         * lib/version-etc.c: Likewise.
57808         * lib/version-etc.h: Likewise.
57809         * lib/vfprintf.c: Likewise.
57810         * lib/vprintf.c: Likewise.
57811         * lib/vsprintf.c: Likewise.
57812         * lib/w32spawn.h: Likewise.
57813         * lib/wait-process.c: Likewise.
57814         * lib/wait-process.h: Likewise.
57815         * lib/wcwidth.c: Likewise.
57816         * lib/write-any-file.c: Likewise.
57817         * lib/xalloc-die.c: Likewise.
57818         * lib/xalloc.h: Likewise.
57819         * lib/xasprintf.c: Likewise.
57820         * lib/xgetcwd.c: Likewise.
57821         * lib/xgetcwd.h: Likewise.
57822         * lib/xgetdomainname.c: Likewise.
57823         * lib/xgetdomainname.h: Likewise.
57824         * lib/xgethostname.c: Likewise.
57825         * lib/xmalloc.c: Likewise.
57826         * lib/xmalloca.c: Likewise.
57827         * lib/xmalloca.h: Likewise.
57828         * lib/xmemcoll.c: Likewise.
57829         * lib/xnanosleep.c: Likewise.
57830         * lib/xreadlink.c: Likewise.
57831         * lib/xreadlink.h: Likewise.
57832         * lib/xsetenv.c: Likewise.
57833         * lib/xsetenv.h: Likewise.
57834         * lib/xstriconv.c: Likewise.
57835         * lib/xstriconv.h: Likewise.
57836         * lib/xstrndup.c: Likewise.
57837         * lib/xstrndup.h: Likewise.
57838         * lib/xstrtod.c: Likewise.
57839         * lib/xstrtod.h: Likewise.
57840         * lib/xstrtol-error.c: Likewise.
57841         * lib/xstrtol.c: Likewise.
57842         * lib/xstrtol.h: Likewise.
57843         * lib/xtime.h: Likewise.
57844         * lib/xvasprintf.c: Likewise.
57845         * lib/xvasprintf.h: Likewise.
57846         * lib/yesno.c: Likewise.
57847         * lib/yesno.h: Likewise.
57848         * posix-modules: Likewise.
57849         * tests/test-alloca-opt.c: Likewise.
57850         * tests/test-arcfour.c: Likewise.
57851         * tests/test-arctwo.c: Likewise.
57852         * tests/test-argmatch.c: Likewise.
57853         * tests/test-argp-2.sh: Likewise.
57854         * tests/test-argp.c: Likewise.
57855         * tests/test-arpa_inet.c: Likewise.
57856         * tests/test-array_list.c: Likewise.
57857         * tests/test-array_oset.c: Likewise.
57858         * tests/test-atexit.c: Likewise.
57859         * tests/test-avltree_list.c: Likewise.
57860         * tests/test-avltree_oset.c: Likewise.
57861         * tests/test-avltreehash_list.c: Likewise.
57862         * tests/test-base64.c: Likewise.
57863         * tests/test-binary-io.c: Likewise.
57864         * tests/test-byteswap.c: Likewise.
57865         * tests/test-c-ctype.c: Likewise.
57866         * tests/test-c-strcasecmp.c: Likewise.
57867         * tests/test-c-strcasestr.c: Likewise.
57868         * tests/test-c-strncasecmp.c: Likewise.
57869         * tests/test-c-strstr.c: Likewise.
57870         * tests/test-canonicalize-lgpl.c: Likewise.
57871         * tests/test-canonicalize.c: Likewise.
57872         * tests/test-carray_list.c: Likewise.
57873         * tests/test-ceilf.c: Likewise.
57874         * tests/test-ceill.c: Likewise.
57875         * tests/test-count-one-bits.c: Likewise.
57876         * tests/test-crc.c: Likewise.
57877         * tests/test-dirname.c: Likewise.
57878         * tests/test-fbufmode.c: Likewise.
57879         * tests/test-fcntl.c: Likewise.
57880         * tests/test-fflush.c: Likewise.
57881         * tests/test-floorf.c: Likewise.
57882         * tests/test-floorl.c: Likewise.
57883         * tests/test-fopen.c: Likewise.
57884         * tests/test-fprintf-posix.c: Likewise.
57885         * tests/test-fprintf-posix.h: Likewise.
57886         * tests/test-fpurge.c: Likewise.
57887         * tests/test-freadable.c: Likewise.
57888         * tests/test-freadahead.c: Likewise.
57889         * tests/test-freading.c: Likewise.
57890         * tests/test-freopen.c: Likewise.
57891         * tests/test-frexp.c: Likewise.
57892         * tests/test-frexpl.c: Likewise.
57893         * tests/test-fseek.c: Likewise.
57894         * tests/test-fseeko.c: Likewise.
57895         * tests/test-fseterr.c: Likewise.
57896         * tests/test-fstrcmp.c: Likewise.
57897         * tests/test-ftell.c: Likewise.
57898         * tests/test-ftello.c: Likewise.
57899         * tests/test-fwritable.c: Likewise.
57900         * tests/test-fwriting.c: Likewise.
57901         * tests/test-getaddrinfo.c: Likewise.
57902         * tests/test-getpass.c: Likewise.
57903         * tests/test-gettimeofday.c: Likewise.
57904         * tests/test-hmac-md5.c: Likewise.
57905         * tests/test-hmac-sha1.c: Likewise.
57906         * tests/test-iconv.c: Likewise.
57907         * tests/test-iconvme.c: Likewise.
57908         * tests/test-inttypes.c: Likewise.
57909         * tests/test-isnan.c: Likewise.
57910         * tests/test-isnanf.c: Likewise.
57911         * tests/test-isnanl-nolibm.c: Likewise.
57912         * tests/test-isnanl.c: Likewise.
57913         * tests/test-isnanl.h: Likewise.
57914         * tests/test-ldexpl.c: Likewise.
57915         * tests/test-linked_list.c: Likewise.
57916         * tests/test-linkedhash_list.c: Likewise.
57917         * tests/test-locale.c: Likewise.
57918         * tests/test-localename.c: Likewise.
57919         * tests/test-lock.c: Likewise.
57920         * tests/test-lseek.c: Likewise.
57921         * tests/test-malloca.c: Likewise.
57922         * tests/test-math.c: Likewise.
57923         * tests/test-mbscasecmp.c: Likewise.
57924         * tests/test-mbscasestr1.c: Likewise.
57925         * tests/test-mbscasestr2.c: Likewise.
57926         * tests/test-mbscasestr3.c: Likewise.
57927         * tests/test-mbscasestr4.c: Likewise.
57928         * tests/test-mbschr.c: Likewise.
57929         * tests/test-mbscspn.c: Likewise.
57930         * tests/test-mbsncasecmp.c: Likewise.
57931         * tests/test-mbspbrk.c: Likewise.
57932         * tests/test-mbspcasecmp.c: Likewise.
57933         * tests/test-mbsrchr.c: Likewise.
57934         * tests/test-mbsspn.c: Likewise.
57935         * tests/test-mbsstr1.c: Likewise.
57936         * tests/test-mbsstr2.c: Likewise.
57937         * tests/test-mbsstr3.c: Likewise.
57938         * tests/test-md5.c: Likewise.
57939         * tests/test-memmem.c: Likewise.
57940         * tests/test-netinet_in.c: Likewise.
57941         * tests/test-open.c: Likewise.
57942         * tests/test-printf-frexp.c: Likewise.
57943         * tests/test-printf-frexpl.c: Likewise.
57944         * tests/test-printf-posix.c: Likewise.
57945         * tests/test-printf-posix.h: Likewise.
57946         * tests/test-rbtree_list.c: Likewise.
57947         * tests/test-rbtree_oset.c: Likewise.
57948         * tests/test-rbtreehash_list.c: Likewise.
57949         * tests/test-read-file.c: Likewise.
57950         * tests/test-rijndael.c: Likewise.
57951         * tests/test-search.c: Likewise.
57952         * tests/test-signbit.c: Likewise.
57953         * tests/test-sleep.c: Likewise.
57954         * tests/test-snprintf-posix.c: Likewise.
57955         * tests/test-snprintf-posix.h: Likewise.
57956         * tests/test-snprintf.c: Likewise.
57957         * tests/test-sprintf-posix.c: Likewise.
57958         * tests/test-sprintf-posix.h: Likewise.
57959         * tests/test-stat-time.c: Likewise.
57960         * tests/test-stdbool.c: Likewise.
57961         * tests/test-stdint.c: Likewise.
57962         * tests/test-stdio.c: Likewise.
57963         * tests/test-stdlib.c: Likewise.
57964         * tests/test-stpncpy.c: Likewise.
57965         * tests/test-strcasestr.c: Likewise.
57966         * tests/test-striconv.c: Likewise.
57967         * tests/test-striconveh.c: Likewise.
57968         * tests/test-striconveha.c: Likewise.
57969         * tests/test-string.c: Likewise.
57970         * tests/test-sys_select.c: Likewise.
57971         * tests/test-sys_socket.c: Likewise.
57972         * tests/test-sys_stat.c: Likewise.
57973         * tests/test-sys_time.c: Likewise.
57974         * tests/test-sysexits.c: Likewise.
57975         * tests/test-time.c: Likewise.
57976         * tests/test-tls.c: Likewise.
57977         * tests/test-trunc.c: Likewise.
57978         * tests/test-truncf.c: Likewise.
57979         * tests/test-truncl.c: Likewise.
57980         * tests/test-unistd.c: Likewise.
57981         * tests/test-vasnprintf-posix.c: Likewise.
57982         * tests/test-vasnprintf-posix2.c: Likewise.
57983         * tests/test-vasnprintf.c: Likewise.
57984         * tests/test-vasprintf-posix.c: Likewise.
57985         * tests/test-vasprintf.c: Likewise.
57986         * tests/test-verify.c: Likewise.
57987         * tests/test-vfprintf-posix.c: Likewise.
57988         * tests/test-vprintf-posix.c: Likewise.
57989         * tests/test-vsnprintf-posix.c: Likewise.
57990         * tests/test-vsnprintf.c: Likewise.
57991         * tests/test-vsprintf-posix.c: Likewise.
57992         * tests/test-wchar.c: Likewise.
57993         * tests/test-wctype.c: Likewise.
57994         * tests/test-wcwidth.c: Likewise.
57995         * tests/test-xstrtol.c: Likewise.
57996         * tests/test-xvasprintf.c: Likewise.
57997         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57998         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57999         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58000         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58001         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58002         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58003         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58004         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58005         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58006         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58007         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58008         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58009         * tests/uniname/test-uninames.c: Likewise.
58010         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58011         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58012         * tests/unistdio/test-u16-printf1.h: Likewise.
58013         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58014         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58015         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58016         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58017         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58018         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58019         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58020         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58021         * tests/unistdio/test-u32-printf1.h: Likewise.
58022         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58023         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58024         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58025         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58026         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58027         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58028         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58029         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58030         * tests/unistdio/test-u8-printf1.h: Likewise.
58031         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58032         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58033         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58034         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58035         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58036         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58037         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58038         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58039         * tests/unistdio/test-ulc-printf1.h: Likewise.
58040         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58041         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58042         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58043         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58044         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58045         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58046         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58047         * tests/uniwidth/test-u16-width.c: Likewise.
58048         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58049         * tests/uniwidth/test-u32-width.c: Likewise.
58050         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58051         * tests/uniwidth/test-u8-width.c: Likewise.
58052         * tests/uniwidth/test-uc_width.c: Likewise.
58053         * config/srclist-update: Likewise.
58054         (fixlicense): Update to GPLv3+.
58056         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58057         * tests/test-tsearch.c: Change copyright notice.
58059         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58060         * lib/c-strcaseeq.h: Change copyright notice.
58061         * lib/streq.h: Likewise.
58062         * lib/uniconv.h: Likewise.
58063         * lib/uniconv/u-conv-from-enc.h: Likewise.
58064         * lib/uniconv/u-conv-to-enc.h: Likewise.
58065         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58066         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58067         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58068         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58069         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58070         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58071         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58072         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58073         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58074         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58075         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58076         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58077         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58078         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58079         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58080         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58081         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58082         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58083         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58084         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58085         * lib/uniname.h: Likewise.
58086         * lib/uniname/uniname.c: Likewise.
58087         * lib/unistdio.h: Likewise.
58088         * lib/unistdio/u-asnprintf.h: Likewise.
58089         * lib/unistdio/u-asprintf.h: Likewise.
58090         * lib/unistdio/u-printf-args.c: Likewise.
58091         * lib/unistdio/u-printf-args.h: Likewise.
58092         * lib/unistdio/u-printf-parse.h: Likewise.
58093         * lib/unistdio/u-snprintf.h: Likewise.
58094         * lib/unistdio/u-sprintf.h: Likewise.
58095         * lib/unistdio/u-vasprintf.h: Likewise.
58096         * lib/unistdio/u-vsnprintf.h: Likewise.
58097         * lib/unistdio/u-vsprintf.h: Likewise.
58098         * lib/unistdio/u16-asnprintf.c: Likewise.
58099         * lib/unistdio/u16-asprintf.c: Likewise.
58100         * lib/unistdio/u16-printf-parse.c: Likewise.
58101         * lib/unistdio/u16-snprintf.c: Likewise.
58102         * lib/unistdio/u16-sprintf.c: Likewise.
58103         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58104         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58105         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58106         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58107         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58108         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58109         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58110         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58111         * lib/unistdio/u16-vasnprintf.c: Likewise.
58112         * lib/unistdio/u16-vasprintf.c: Likewise.
58113         * lib/unistdio/u16-vsnprintf.c: Likewise.
58114         * lib/unistdio/u16-vsprintf.c: Likewise.
58115         * lib/unistdio/u32-asnprintf.c: Likewise.
58116         * lib/unistdio/u32-asprintf.c: Likewise.
58117         * lib/unistdio/u32-printf-parse.c: Likewise.
58118         * lib/unistdio/u32-snprintf.c: Likewise.
58119         * lib/unistdio/u32-sprintf.c: Likewise.
58120         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58121         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58122         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58123         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58124         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58125         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58126         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58127         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58128         * lib/unistdio/u32-vasnprintf.c: Likewise.
58129         * lib/unistdio/u32-vasprintf.c: Likewise.
58130         * lib/unistdio/u32-vsnprintf.c: Likewise.
58131         * lib/unistdio/u32-vsprintf.c: Likewise.
58132         * lib/unistdio/u8-asnprintf.c: Likewise.
58133         * lib/unistdio/u8-asprintf.c: Likewise.
58134         * lib/unistdio/u8-printf-parse.c: Likewise.
58135         * lib/unistdio/u8-snprintf.c: Likewise.
58136         * lib/unistdio/u8-sprintf.c: Likewise.
58137         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58138         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58139         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58140         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58141         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58142         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58143         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58144         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58145         * lib/unistdio/u8-vasnprintf.c: Likewise.
58146         * lib/unistdio/u8-vasprintf.c: Likewise.
58147         * lib/unistdio/u8-vsnprintf.c: Likewise.
58148         * lib/unistdio/u8-vsprintf.c: Likewise.
58149         * lib/unistdio/ulc-asnprintf.c: Likewise.
58150         * lib/unistdio/ulc-asprintf.c: Likewise.
58151         * lib/unistdio/ulc-printf-parse.c: Likewise.
58152         * lib/unistdio/ulc-snprintf.c: Likewise.
58153         * lib/unistdio/ulc-sprintf.c: Likewise.
58154         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58155         * lib/unistdio/ulc-vasprintf.c: Likewise.
58156         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58157         * lib/unistdio/ulc-vsprintf.c: Likewise.
58158         * lib/unistr.h: Likewise.
58159         * lib/unistr/u-cpy-alloc.h: Likewise.
58160         * lib/unistr/u-cpy.h: Likewise.
58161         * lib/unistr/u-endswith.h: Likewise.
58162         * lib/unistr/u-move.h: Likewise.
58163         * lib/unistr/u-set.h: Likewise.
58164         * lib/unistr/u-startswith.h: Likewise.
58165         * lib/unistr/u-stpcpy.h: Likewise.
58166         * lib/unistr/u-stpncpy.h: Likewise.
58167         * lib/unistr/u-strcat.h: Likewise.
58168         * lib/unistr/u-strcpy.h: Likewise.
58169         * lib/unistr/u-strcspn.h: Likewise.
58170         * lib/unistr/u-strdup.h: Likewise.
58171         * lib/unistr/u-strlen.h: Likewise.
58172         * lib/unistr/u-strncat.h: Likewise.
58173         * lib/unistr/u-strncpy.h: Likewise.
58174         * lib/unistr/u-strnlen.h: Likewise.
58175         * lib/unistr/u-strpbrk.h: Likewise.
58176         * lib/unistr/u-strspn.h: Likewise.
58177         * lib/unistr/u-strstr.h: Likewise.
58178         * lib/unistr/u-strtok.h: Likewise.
58179         * lib/unistr/u16-check.c: Likewise.
58180         * lib/unistr/u16-chr.c: Likewise.
58181         * lib/unistr/u16-cmp.c: Likewise.
58182         * lib/unistr/u16-cpy-alloc.c: Likewise.
58183         * lib/unistr/u16-cpy.c: Likewise.
58184         * lib/unistr/u16-endswith.c: Likewise.
58185         * lib/unistr/u16-mblen.c: Likewise.
58186         * lib/unistr/u16-mbsnlen.c: Likewise.
58187         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58188         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58189         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58190         * lib/unistr/u16-mbtouc.c: Likewise.
58191         * lib/unistr/u16-mbtoucr.c: Likewise.
58192         * lib/unistr/u16-move.c: Likewise.
58193         * lib/unistr/u16-next.c: Likewise.
58194         * lib/unistr/u16-prev.c: Likewise.
58195         * lib/unistr/u16-set.c: Likewise.
58196         * lib/unistr/u16-startswith.c: Likewise.
58197         * lib/unistr/u16-stpcpy.c: Likewise.
58198         * lib/unistr/u16-stpncpy.c: Likewise.
58199         * lib/unistr/u16-strcat.c: Likewise.
58200         * lib/unistr/u16-strchr.c: Likewise.
58201         * lib/unistr/u16-strcmp.c: Likewise.
58202         * lib/unistr/u16-strcpy.c: Likewise.
58203         * lib/unistr/u16-strcspn.c: Likewise.
58204         * lib/unistr/u16-strdup.c: Likewise.
58205         * lib/unistr/u16-strlen.c: Likewise.
58206         * lib/unistr/u16-strmblen.c: Likewise.
58207         * lib/unistr/u16-strmbtouc.c: Likewise.
58208         * lib/unistr/u16-strncat.c: Likewise.
58209         * lib/unistr/u16-strncmp.c: Likewise.
58210         * lib/unistr/u16-strncpy.c: Likewise.
58211         * lib/unistr/u16-strnlen.c: Likewise.
58212         * lib/unistr/u16-strpbrk.c: Likewise.
58213         * lib/unistr/u16-strrchr.c: Likewise.
58214         * lib/unistr/u16-strspn.c: Likewise.
58215         * lib/unistr/u16-strstr.c: Likewise.
58216         * lib/unistr/u16-strtok.c: Likewise.
58217         * lib/unistr/u16-to-u32.c: Likewise.
58218         * lib/unistr/u16-to-u8.c: Likewise.
58219         * lib/unistr/u16-uctomb-aux.c: Likewise.
58220         * lib/unistr/u16-uctomb.c: Likewise.
58221         * lib/unistr/u32-check.c: Likewise.
58222         * lib/unistr/u32-chr.c: Likewise.
58223         * lib/unistr/u32-cmp.c: Likewise.
58224         * lib/unistr/u32-cpy-alloc.c: Likewise.
58225         * lib/unistr/u32-cpy.c: Likewise.
58226         * lib/unistr/u32-endswith.c: Likewise.
58227         * lib/unistr/u32-mblen.c: Likewise.
58228         * lib/unistr/u32-mbsnlen.c: Likewise.
58229         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58230         * lib/unistr/u32-mbtouc.c: Likewise.
58231         * lib/unistr/u32-mbtoucr.c: Likewise.
58232         * lib/unistr/u32-move.c: Likewise.
58233         * lib/unistr/u32-next.c: Likewise.
58234         * lib/unistr/u32-prev.c: Likewise.
58235         * lib/unistr/u32-set.c: Likewise.
58236         * lib/unistr/u32-startswith.c: Likewise.
58237         * lib/unistr/u32-stpcpy.c: Likewise.
58238         * lib/unistr/u32-stpncpy.c: Likewise.
58239         * lib/unistr/u32-strcat.c: Likewise.
58240         * lib/unistr/u32-strchr.c: Likewise.
58241         * lib/unistr/u32-strcmp.c: Likewise.
58242         * lib/unistr/u32-strcpy.c: Likewise.
58243         * lib/unistr/u32-strcspn.c: Likewise.
58244         * lib/unistr/u32-strdup.c: Likewise.
58245         * lib/unistr/u32-strlen.c: Likewise.
58246         * lib/unistr/u32-strmblen.c: Likewise.
58247         * lib/unistr/u32-strmbtouc.c: Likewise.
58248         * lib/unistr/u32-strncat.c: Likewise.
58249         * lib/unistr/u32-strncmp.c: Likewise.
58250         * lib/unistr/u32-strncpy.c: Likewise.
58251         * lib/unistr/u32-strnlen.c: Likewise.
58252         * lib/unistr/u32-strpbrk.c: Likewise.
58253         * lib/unistr/u32-strrchr.c: Likewise.
58254         * lib/unistr/u32-strspn.c: Likewise.
58255         * lib/unistr/u32-strstr.c: Likewise.
58256         * lib/unistr/u32-strtok.c: Likewise.
58257         * lib/unistr/u32-to-u16.c: Likewise.
58258         * lib/unistr/u32-to-u8.c: Likewise.
58259         * lib/unistr/u32-uctomb.c: Likewise.
58260         * lib/unistr/u8-check.c: Likewise.
58261         * lib/unistr/u8-chr.c: Likewise.
58262         * lib/unistr/u8-cmp.c: Likewise.
58263         * lib/unistr/u8-cpy-alloc.c: Likewise.
58264         * lib/unistr/u8-cpy.c: Likewise.
58265         * lib/unistr/u8-endswith.c: Likewise.
58266         * lib/unistr/u8-mblen.c: Likewise.
58267         * lib/unistr/u8-mbsnlen.c: Likewise.
58268         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58269         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58270         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58271         * lib/unistr/u8-mbtouc.c: Likewise.
58272         * lib/unistr/u8-mbtoucr.c: Likewise.
58273         * lib/unistr/u8-move.c: Likewise.
58274         * lib/unistr/u8-next.c: Likewise.
58275         * lib/unistr/u8-prev.c: Likewise.
58276         * lib/unistr/u8-set.c: Likewise.
58277         * lib/unistr/u8-startswith.c: Likewise.
58278         * lib/unistr/u8-stpcpy.c: Likewise.
58279         * lib/unistr/u8-stpncpy.c: Likewise.
58280         * lib/unistr/u8-strcat.c: Likewise.
58281         * lib/unistr/u8-strchr.c: Likewise.
58282         * lib/unistr/u8-strcmp.c: Likewise.
58283         * lib/unistr/u8-strcpy.c: Likewise.
58284         * lib/unistr/u8-strcspn.c: Likewise.
58285         * lib/unistr/u8-strdup.c: Likewise.
58286         * lib/unistr/u8-strlen.c: Likewise.
58287         * lib/unistr/u8-strmblen.c: Likewise.
58288         * lib/unistr/u8-strmbtouc.c: Likewise.
58289         * lib/unistr/u8-strncat.c: Likewise.
58290         * lib/unistr/u8-strncmp.c: Likewise.
58291         * lib/unistr/u8-strncpy.c: Likewise.
58292         * lib/unistr/u8-strnlen.c: Likewise.
58293         * lib/unistr/u8-strpbrk.c: Likewise.
58294         * lib/unistr/u8-strrchr.c: Likewise.
58295         * lib/unistr/u8-strspn.c: Likewise.
58296         * lib/unistr/u8-strstr.c: Likewise.
58297         * lib/unistr/u8-strtok.c: Likewise.
58298         * lib/unistr/u8-to-u16.c: Likewise.
58299         * lib/unistr/u8-to-u32.c: Likewise.
58300         * lib/unistr/u8-uctomb-aux.c: Likewise.
58301         * lib/unistr/u8-uctomb.c: Likewise.
58302         * lib/unitypes.h: Likewise.
58303         * lib/uniwidth.h: Likewise.
58304         * lib/uniwidth/cjk.h: Likewise.
58305         * lib/uniwidth/u16-strwidth.c: Likewise.
58306         * lib/uniwidth/u16-width.c: Likewise.
58307         * lib/uniwidth/u32-strwidth.c: Likewise.
58308         * lib/uniwidth/u32-width.c: Likewise.
58309         * lib/uniwidth/u8-strwidth.c: Likewise.
58310         * lib/uniwidth/u8-width.c: Likewise.
58311         * lib/uniwidth/width.c: Likewise.
58313 2007-10-07  Bruno Haible  <bruno@clisp.org>
58315         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58316         The file is still under LGPL (see modules/inttypes).
58318 2007-10-06  Bruno Haible  <bruno@clisp.org>
58320         * modules/trunc (Dependencies): Add 'extensions'.
58321         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58322         Reported by Ben Pfaff <blp@gnu.org>.
58324 2007-10-06  Bruno Haible  <bruno@clisp.org>
58326         * modules/freopen-tests: New file.
58327         * tests/test-freopen.c: New file.
58329         * modules/fopen-tests: New file.
58330         * tests/test-fopen.c: New file.
58332         * modules/fopen: New file.
58333         * lib/fopen.c: New file.
58334         * m4/fopen.m4: New file.
58335         * modules/freopen: New file.
58336         * lib/freopen.c: New file.
58337         * m4/freopen.m4: New file.
58338         * lib/stdio.in.h (fopen, freopen): New declarations.
58339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58340         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58341         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58342         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58343         * doc/functions/fopen.texi: Mention the 'fopen' module.
58344         * doc/functions/freopen.texi: Mention the 'freopen' module.
58346 2007-10-06  Bruno Haible  <bruno@clisp.org>
58348         * modules/open-tests: New file.
58349         * tests/test-open.c: New file.
58351         * modules/open: New file.
58352         * lib/open.c: New file.
58353         * m4/open.m4: New file.
58354         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58355         lib/open.c does.
58356         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58357         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58358         macros.
58359         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58360         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58361         REPLACE_OPEN.
58362         * doc/functions/open.texi: Mention the 'open' module.
58364 2007-10-04  Bruno Haible  <bruno@clisp.org>
58366         * modules/ceill-tests: New file.
58367         * tests/test-ceill.c: New file.
58369         * modules/ceill: New file.
58370         * lib/ceill.c: Replace entire file.
58371         * m4/ceill.m4: New file.
58372         * lib/math.in.h (ceill): Replace declaration.
58373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58374         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58375         * doc/functions/ceill.texi: Mention the 'ceill' module.
58376         * modules/mathl (Files): Remove lib/ceill.c.
58377         (Depends-on): Add ceill.
58379 2007-10-04  Bruno Haible  <bruno@clisp.org>
58381         * modules/ceilf-tests: New file.
58382         * tests/test-ceilf.c: New file.
58384         * modules/ceilf: New file.
58385         * lib/ceil.c: New file.
58386         * lib/ceilf.c: New file.
58387         * m4/ceilf.m4: New file.
58388         * lib/math.in.h (ceilf): New declaration.
58389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58390         HAVE_DECL_CEILF.
58391         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58392         HAVE_DECL_CEILF.
58393         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58395 2007-10-04  Bruno Haible  <bruno@clisp.org>
58397         * modules/floorl-tests: New file.
58398         * tests/test-floorl.c: New file.
58400         * modules/floorl: New file.
58401         * lib/floorl.c: Replace entire file.
58402         * m4/floorl.m4: New file.
58403         * lib/math.in.h (floorl): Replace declaration.
58404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58405         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58406         * doc/functions/floorl.texi: Mention the 'floorl' module.
58407         * modules/mathl (Files): Remove lib/floorl.c.
58408         (Depends-on): Add floorl.
58410 2007-10-04  Bruno Haible  <bruno@clisp.org>
58412         * modules/floorf-tests: New file.
58413         * tests/test-floorf.c: New file.
58415         * modules/floorf: New file.
58416         * lib/floor.c: New file.
58417         * lib/floorf.c: New file.
58418         * m4/floorf.m4: New file.
58419         * lib/math.in.h (floorf): New declaration.
58420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58421         HAVE_DECL_FLOORF.
58422         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58423         HAVE_DECL_FLOORF.
58424         * doc/functions/floorf.texi: Mention the 'floorf' module.
58426 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58427             Bruno Haible  <bruno@clisp.org>
58429         Advertise for the Git server instead of the CVS server.
58430         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58431         repository instead of the CVS one.
58432         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58433         about all VCS systems generically.
58434         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58436 2007-10-04  Bruno Haible  <bruno@clisp.org>
58438         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58439         means.
58440         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58442 2007-10-04  Bruno Haible  <bruno@clisp.org>
58444         * modules/truncl-tests: New file.
58445         * tests/test-truncl.c: New file.
58447         * modules/truncl: New file.
58448         * lib/truncl.c: New file.
58449         * m4/truncl.m4: New file.
58450         * lib/math.in.h (truncl): New declaration.
58451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58452         HAVE_DECL_TRUNCL.
58453         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58454         HAVE_DECL_TRUNCL.
58455         * doc/functions/truncl.texi: Mention the 'truncl' module.
58457 2007-10-04  Bruno Haible  <bruno@clisp.org>
58459         * modules/truncf-tests: New file.
58460         * tests/test-truncf.c: New file.
58462         * modules/truncf: New file.
58463         * lib/trunc.c: Make paramerizable through USE_* macros.
58464         * lib/truncf.c: New file.
58465         * m4/truncf.m4: New file.
58466         * lib/math.in.h (truncf): New declaration.
58467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58468         HAVE_DECL_TRUNCF.
58469         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58470         HAVE_DECL_TRUNCF.
58471         * doc/functions/truncf.texi: Mention the 'truncf' module.
58473 2007-10-03  Bruno Haible  <bruno@clisp.org>
58475         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58476         augmentation also for tests modules.
58477         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58478         * modules/atexit-tests (Makefile.am): Likewise.
58479         * modules/binary-io-tests (Makefile.am): Likewise.
58480         * modules/c-strcase-tests (Makefile.am): Likewise.
58481         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58482         * modules/canonicalize-tests (Makefile.am): Likewise.
58483         * modules/closein-tests (Makefile.am): Likewise.
58484         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58485         * modules/freadahead-tests (Makefile.am): Likewise.
58486         * modules/fseek-tests (Makefile.am): Likewise.
58487         * modules/fseeko-tests (Makefile.am): Likewise.
58488         * modules/ftell-tests (Makefile.am): Likewise.
58489         * modules/ftello-tests (Makefile.am): Likewise.
58490         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58491         * modules/isnanl-tests (Makefile.am): Likewise.
58492         * modules/lseek-tests (Makefile.am): Likewise.
58493         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58494         * modules/mbscasestr-tests (Makefile.am): Likewise.
58495         * modules/mbschr-tests (Makefile.am): Likewise.
58496         * modules/mbscspn-tests (Makefile.am): Likewise.
58497         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58498         * modules/mbspbrk-tests (Makefile.am): Likewise.
58499         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58500         * modules/mbsrchr-tests (Makefile.am): Likewise.
58501         * modules/mbsspn-tests (Makefile.am): Likewise.
58502         * modules/mbsstr-tests (Makefile.am): Likewise.
58503         * modules/printf-posix-tests (Makefile.am): Likewise.
58504         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58505         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58506         * modules/tsearch-tests (Makefile.am): Likewise.
58507         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58508         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58509         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58510         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58511         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58512         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58513         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58514         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58515         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58516         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58517         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58518         * modules/xstrtol-tests (Makefile.am): Likewise.
58519         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58520         * modules/yesno-tests (Makefile.am): Likewise.
58522 2007-10-03  Bruno Haible  <bruno@clisp.org>
58524         * modules/trunc-tests: New file.
58525         * tests/test-trunc.c: New file.
58527         * modules/trunc: New file.
58528         * lib/trunc.c: New file.
58529         * m4/trunc.m4: New file.
58530         * lib/math.in.h (trunc): New declaration.
58531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58532         HAVE_DECL_TRUNC.
58533         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58534         HAVE_DECL_TRUNC.
58535         * doc/functions/trunc.texi: Mention the 'trunc' module.
58537 2007-10-03  Bruno Haible  <bruno@clisp.org>
58539         * tests/test-fpending.c: New file, mostly copied
58540         from coreutils/lib/t-fpending.c.
58541         * modules/fpending-tests: New file.
58543 2007-10-03  Bruno Haible  <bruno@clisp.org>
58545         Port the stdio extensions to QNX (untested).
58546         * lib/fseterr.c (fseterr): Add support for QNX.
58547         * lib/fbufmode.c (fbufmode): Likewise.
58548         * lib/freadable.c (freadable): Likewise.
58549         * lib/fwritable.c (fwritable): Likewise.
58550         * lib/freading.c (freading): Likewise.
58551         * lib/fwriting.c (fwriting): Likewise.
58552         * lib/freadahead.c (freadahed): Likewise.
58553         * lib/fpurge.c (fpurge): Likewise.
58554         * lib/fseeko.c (rpl_fseeko): Likewise.
58556 2007-10-03  Bruno Haible  <bruno@clisp.org>
58557             Jim Meyering  <jim@meyering.net>
58558             Eric Blake  <ebb9@byu.net>
58560         * doc/relocatable.texi: Use @command instead of @program.
58562 2007-10-02  Jim Meyering  <jim@meyering.net>
58564         Perform one more "_.h" -> ".in.h" substitution.
58565         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58566         instead of unistd_.h here, too.
58568 2007-10-01  Bruno Haible  <bruno@clisp.org>
58570         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58571         Needed for the alloca-opt module.
58573 2007-09-30  Bruno Haible  <bruno@clisp.org>
58575         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58576         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58577         alloca_.h.
58578         * lib/argz.in.h: Renamed from lib/argz_.h.
58579         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58580         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58581         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58582         byteswap_.h.
58583         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58584         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58585         dirent_.h.
58586         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58587         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58588         fcntl_.h.
58589         * lib/float.in.h: Renamed from lib/float_.h.
58590         * modules/float (Files, Makefile.am): Use float.in.h instead of
58591         float_.h.
58592         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58593         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58594         fnmatch_.h.
58595         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58596         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58597         getopt_.h.
58598         * lib/glob.in.h: Renamed from lib/glob_.h.
58599         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58600         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58601         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58602         iconv_.h.
58603         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58604         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58605         inttypes_.h.
58606         * lib/locale.in.h: Renamed from lib/locale_.h.
58607         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58608         locale_.h.
58609         * lib/math.in.h: Renamed from lib/math_.h.
58610         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58611         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58612         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58613         of netinet_in_.h. Add dependency.
58614         * lib/poll.in.h: Renamed from lib/poll_.h.
58615         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58616         * lib/search.in.h: Renamed from lib/search_.h.
58617         * modules/search (Files, Makefile.am): Use search.in.h instead of
58618         search_.h.
58619         * lib/signal.in.h: Renamed from lib/signal_.h.
58620         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58621         _signal.h.
58622         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58623         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58624         stdbool_.h.
58625         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58626         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58627         stdint_.h.
58628         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58629         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58630         stdio_.h.
58631         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58632         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58633         stdlib_.h.
58634         * lib/string.in.h: Renamed from lib/string_.h.
58635         * modules/string (Files, Makefile.am): Use string.in.h instead of
58636         string_.h.
58637         * doc/gnulib-tool.texi (Initial import): Update.
58638         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58639         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58640         of sys_select_.h. Add dependency.
58641         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58642         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58643         of sys_socket_.h.
58644         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58645         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58646         sys_stat_.h.
58647         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58648         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58649         sys_time_.h.
58650         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58651         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58652         sysexits_.h.
58653         * lib/time.in.h: Renamed from lib/time_.h.
58654         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58655         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58656         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58657         unistd_.h.
58658         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58659         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58660         wchar_.h.
58661         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58662         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58663         wctype_.h.
58664         * build-aux/bootstrap (slurp): Update.
58665         * lib/.cppi-disable: Update.
58667 2007-09-30  Bruno Haible  <bruno@clisp.org>
58669         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58670         Needed on BeOS.
58672 2007-09-30  Bruno Haible  <bruno@clisp.org>
58674         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58676 2007-09-29  Bruno Haible  <bruno@clisp.org>
58678         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58680 2007-09-29  Bruno Haible  <bruno@clisp.org>
58682         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58683         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58684         * build-aux/install-reloc: Compile also areadlink.c.
58685         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58687 2007-09-29  Bruno Haible  <bruno@clisp.org>
58689         * gnulib-tool (func_emit_initmacro_done): Indentation.
58691 2007-09-29  Bruno Haible  <bruno@clisp.org>
58693         * README: Add CVS checkout update instructions.
58694         Info from Bob Proulx <bob@proulx.com>.
58696 2007-09-28  Eric Blake  <ebb9@byu.net>
58698         Provide move-if-change.
58699         * build-aux/move-if-change: New file, based on best practice
58700         rather than any canonical upstream location.
58702 2007-09-28  Jim Meyering  <jim@meyering.net>
58704         Fix canonicalize loop-detection corner case.
58705         Do not attempt to stat the symlink values stored via seen_triple.
58706         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58707         on linux-2.6.18, (but not 2.6.22).
58708         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58709         triple_compare.  The former compares dev,ino,filename, while the latter
58710         would actually stat dirname(filename) when dev and ino were equal.
58711         * lib/hash-triple.c: Install <string.h>.
58712         (STREQ): Define.
58713         (triple_compare_ino_str): New function.
58714         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58716 2007-09-28  Eric Blake  <ebb9@byu.net>
58718         Enforce that AC_REPLACE_FUNCS files exist.
58719         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58720         override check for typos.
58722         Fix test-closein on Solaris 10.
58723         * tests/test-closein.c (main): Don't assume stdin can be inherited
58724         closed on all systems.
58725         * tests/test-closein.sh: Likewise.
58726         Reported by Piotr Tarnowski.
58728 2007-09-28  Jim Meyering  <jim@meyering.net>
58730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58732 2007-09-27  Jim Meyering  <jim@meyering.net>
58734         canonicalize: Avoid a false-positive cycle failure.
58735         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58736         Sort.  Remove cycle-check.
58737         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58738         not cycle-check.h.
58739         (seen_triple): New function.
58740         (canonicalize_filename_mode): Use it instead of cycle-check.
58741         * tests/test-canonicalize.c: Add a test for this bug.
58742         * tests/test-canonicalize.sh: Set up and run the test.
58744         New module, file-set, from coreutils.
58745         * modules/file-set: Define it.
58746         * lib/file-set.c, lib/file-set.h: Implement.
58748         New module, hash-triple, from coreutils.
58749         * modules/hash-triple: Define it.
58750         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58752 2007-09-25  Eric Blake  <ebb9@byu.net>
58754         Fix strerror on Interix.
58755         * lib/string_.h (strerror): Declare replacement.
58756         * doc/functions/strerror.texi (strerror): Document the Interix
58757         shortcoming.
58758         * modules/string (Makefile.am): Support new hooks.
58759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58760         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58761         gl_FUNC_STRERROR_SEPARATE.
58762         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58763         * lib/strerror.c (rpl_strerror): Provide replacement.
58764         * modules/strerror (Depends-on): Add string.
58765         (configure.ac): Detect use of module.
58766         * tests/test-strerror.c: New file.
58767         * modules/strerror-tests: New test module.
58768         * modules/argp (Depends-on): Add strerror.
58769         * modules/error (Depends-on): Likewise.
58770         Reported by Martin Koeppe.
58772 2007-09-24  Bruno Haible  <bruno@clisp.org>
58774         * README: Update git instructions.
58776 2007-09-24  Eric Blake  <ebb9@byu.net>
58778         Revert fpending breakage from 2007-09-08.
58779         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58780         __fpending.c.
58782 2007-09-24  Jim Meyering  <jim@meyering.net>
58784         filenamecat.c: Add a test.
58785         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58786         showing how the function works when DIR is the empty string.
58788 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58790         * tests/test-canonicalize.sh: Turn on executable bit.
58792 2007-09-19  Eric Blake  <ebb9@byu.net>
58794         * README: Update CVS instructions.
58796 2007-09-18  Bruno Haible  <bruno@clisp.org>
58798         * modules/areadlink: New file.
58799         * lib/areadlink.h (areadlink): New declaration.
58800         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58802 2007-09-17  Jim Meyering  <jim@meyering.net>
58804         * lib/savewd.c (ESTALE) [!defined]: Define.
58805         Reported to be required on Interix by Martin Koeppe.
58807 2007-09-17  Bruno Haible  <bruno@clisp.org>
58809         * gnulib-tool (func_version): Use $version.
58811 2007-09-16  Bruno Haible  <bruno@clisp.org>
58813         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58814         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58815         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58816         Reported by Greg Schafer <gschafer@zip.com.au>.
58818 2007-09-15  Bruno Haible  <bruno@clisp.org>
58820         * gnulib-tool (sed): Try a little harder to make bash understand the
58821         alias.
58822         Reported by Bruce Korb <bruce.korb@gmail.com>.
58824 2007-09-13  Eric Blake  <ebb9@byu.net>
58826         * ChangeLog: Remove conflict markers.
58828 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58830         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58831         Reported by Bruno Haible <bruno@clisp.org>.
58833 2007-09-12  Bruno Haible  <bruno@clisp.org>
58835         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58836         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58837         is not defined.
58839 2007-09-12  Eric Blake  <ebb9@byu.net>
58841         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58842         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58843         Autoconf definition.
58844         * modules/euidaccess (Depends-on): Add extensions, for
58845         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58846         * modules/fnmatch (Depends-on): Likewise.
58847         * modules/getaddrinfo (Depends-on): Likewise.
58848         * modules/getdelim (Depends-on): Likewise.
58849         * modules/getline (Depends-on): Likewise.
58850         * modules/getsubopt (Depends-on): Likewise.
58851         * modules/gettext (Depends-on): Likewise.
58852         * modules/group-member (Depends-on): Likewise.
58853         * modules/mbchar (Depends-on): Likewise.
58854         * modules/memmem (Depends-on): Likewise.
58855         * modules/mempcpy (Depends-on): Likewise.
58856         * modules/memrchr (Depends-on): Likewise.
58857         * modules/pagealign_alloc (Depends-on): Likewise.
58858         * modules/readutmp (Depends-on): Likewise.
58859         * modules/stpcpy (Depends-on): Likewise.
58860         * modules/stpncpy (Depends-on): Likewise.
58861         * modules/strchrnul (Depends-on): Likewise.
58862         * modules/strndup (Depends-on): Likewise.
58863         * modules/strsep (Depends-on): Likewise.
58864         * modules/strverscmp (Depends-on): Likewise.
58865         * modules/vasprintf (Depends-on): Likewise.
58866         * modules/wcwidth (Depends-on): Likewise.
58867         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58868         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58869         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58870         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58871         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58872         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58873         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58874         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58875         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58876         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58877         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58878         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58879         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58880         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58881         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58882         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58883         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58884         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58885         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58886         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58887         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58888         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58889         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58890         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58891         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58893         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58894         so that lock.m4 can be used in gettext without extensions module.
58896 2007-09-11  Bruno Haible  <bruno@clisp.org>
58898         * m4/isc-posix.m4: Remove file.
58899         Suggested by Eric Blake.
58901 2007-09-11  Eric Blake  <ebb9@byu.net>
58903         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58905 2007-09-10  Bruno Haible  <bruno@clisp.org>
58907         * posix-modules: Fix typo in error message.
58908         Reported by Matt <mkraai@beckman.com>.
58910 2007-09-09  Bruno Haible  <bruno@clisp.org>
58912         * doc/functions/getdelim.texi: Update list of platforms lacking the
58913         function.
58914         * doc/functions/getline.texi: Likewise.
58916 2007-09-09  Jim Meyering  <jim@meyering.net>
58918         * lib/hash.c (hash_initialize): Detect calloc failure.
58919         Reported by Bruno Haible.
58921 2007-09-09  Bruno Haible  <bruno@clisp.org>
58923         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58924         malloc or realloc fails.
58926 2007-09-09  Bruno Haible  <bruno@clisp.org>
58928         * modules/getcwd (Depends-on): Add malloc-posix.
58929         * modules/glob (Depends-on): Likewise.
58930         * modules/putenv (Depends-on): Likewise.
58931         * modules/strdup (Depends-on): Likewise.
58932         * modules/getdelim (Depends-on): Add realloc-posix.
58933         * modules/read-file (Depends-on): Likewise.
58935 2007-09-09  Bruno Haible  <bruno@clisp.org>
58937         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58938         (gl_FUNC_MALLOC_POSIX): Require it.
58939         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58940         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58941         * modules/realloc (Files): Add m4/malloc.m4.
58942         * modules/calloc (Files): Likewise.
58944 2007-09-09  Bruno Haible  <bruno@clisp.org>
58946         * modules/malloc-posix: New file.
58947         * modules/malloc (Depends-on): Add malloc-posix.
58948         * lib/malloc.c: Include errno.h.
58949         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58950         and a POSIX-compatible malloc into a single function. Set ENOMEM
58951         when returning NULL.
58952         * m4/malloc.m4: New file.
58953         * doc/functions/malloc.texi: Mention the malloc-posix module.
58954         * lib/stdlib_.h (malloc): New declaration.
58955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58956         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58957         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58958         and HAVE_MALLOC_POSIX.
58960 2007-09-09  Bruno Haible  <bruno@clisp.org>
58962         * modules/realloc-posix: New file.
58963         * modules/realloc (Depends-on): Add realloc-posix.
58964         * lib/realloc.c: Include errno.h.
58965         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58966         and a POSIX-compatible realloc into a single function. Set ENOMEM
58967         when returning NULL.
58968         * m4/realloc.m4: New file.
58969         * doc/functions/realloc.texi: Mention the realloc-posix module.
58970         * lib/stdlib_.h (realloc): New declaration.
58971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58972         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58973         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58974         and HAVE_REALLOC_POSIX.
58976 2007-09-09  Bruno Haible  <bruno@clisp.org>
58978         * modules/calloc-posix: New file.
58979         * modules/calloc (Depends-on): Add calloc-posix.
58980         * lib/calloc.c: Include errno.h.
58981         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58982         and a POSIX-compatible calloc into a single function. Set ENOMEM
58983         when returning NULL.
58984         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58985         * doc/functions/calloc.texi: Mention the calloc-posix module.
58986         * lib/stdlib_.h (calloc): New declaration.
58987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58988         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58989         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58990         and HAVE_CALLOC_POSIX.
58992 2007-09-09  Bruno Haible  <bruno@clisp.org>
58994         Allow for modules to show an arbitrary notice.
58995         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58996         * gnulib-tool: New option --extract-notice.
58997         (func_usage): Document it.
58998         (sed_extract_prog): Update.
58999         (func_get_notice): New function.
59000         (func_modules_notice): New function.
59001         (func_import, func_create_testdir): Invoke it.
59002         Suggested by Jim Meyering.
59004 2007-09-09  Bruno Haible  <bruno@clisp.org>
59006         * gnulib-tool: New options --verbose, --quiet.
59007         (func_usage): Document them.
59008         (verbose): New variable.
59009         (func_execute_command): New function.
59010         (func_import): Don't show the module list and the file list if
59011         $verbose < 0.
59012         (func_create_testdir): Likewise. Use func_execute_command.
59013         (func_create_megatestdir): Use func_execute_command.
59015 2007-09-08  Bruno Haible  <bruno@clisp.org>
59017         * gnulib-tool (func_import): Prefer rsync over wget when available,
59018         for fetching the PO files.
59020 2007-09-08  Bruno Haible  <bruno@clisp.org>
59022         * posix-modules: New file. Portions copied from gnulib-tool.
59023         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59025 2007-09-08  Jim Meyering  <jim@meyering.net>
59027         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59028         * lib/fpending.h: Rename from __fpending.h.
59029         * lib/fpending.c: Rename from __fpending.c.
59030         Include "fpending.h", not "__fpending.h".
59031         * lib/__fpending.h, lib/__fpending.c: Remove files.
59032         * modules/fpending (Files): Reflect new file names.
59033         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59035 2007-09-08  Bruno Haible  <bruno@clisp.org>
59037         * m4/inttypes-h.m4: Remove stub file.
59039 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59041         * doc/headers/stdint.texi: Discuss #include_next issue.
59043 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59045         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59047 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59049         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59050         in variable name.
59052 2007-09-03  Jim Meyering  <jim@meyering.net>
59054         New module: git-version-gen.
59055         * modules/git-version-gen: New file.
59057         Import changes from coreutils for bootstrap script.
59059         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59061         bootstrap: uses rsync to download the .po files
59062         * build-aux/bootstrap (po_download_command_format): New global.
59063         (download_po_files): Use rsync.
59064         (update_po_files): Don't remove .po files after download,
59065         so future rsync runs can take advantage of the copies.
59067         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59069         Solve the unnecessary-.po-file-regeneration problem once and for all.
59070         * build-aux/bootstrap (download_po_files): New function, renamed from
59071         get_translations.  Now, downloads, but doesn't update LINGUAS.
59072         (update_po_files): New function.
59074         bootstrap: Ignore more.
59075         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59076         uniwidth to e.g., lib/.gitignore.
59077         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59079         * build-aux/bootstrap: New setting: vc_ignore.
59080         (insert_sorted_if_absent): Create $file if absent.
59081         Adapt to new, possibly empty, list: $vc_ignore.
59083         bootstrap: generate more ignorable names
59084         * build-aux/bootstrap (slurp): When generating ignorable names,
59085         also map .sin to .sed, .gperf to .c, and .y to .c.
59087 2007-09-03  Jim Meyering  <jim@meyering.net>
59089         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59090         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59092 2007-09-02  Bruno Haible  <bruno@clisp.org>
59094         Fix mis-recognition of 'mcs' on QNX 6.
59095         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59096         output contains the string "Mono".
59097         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59098         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59100 2007-09-01  Bruno Haible  <bruno@clisp.org>
59102         Fix collision between uniwidth/* and linebreak modules.
59103         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59104         u32_width): Remove declarations.
59105         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59106         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59107         streq3, streq2, streq1, streq0): Remove functions.
59108         (STREQ): Remove macro.
59109         (is_cjk_encoding): Remove function.
59110         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59111         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59112         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59113         * NEWS: Document the change.
59115 2007-09-01  Bruno Haible  <bruno@clisp.org>
59117         * lib/streq.h: Add double-inclusion guard.
59119 2007-09-01  Karl Berry  <karl@gnu.org>
59121         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59123 2007-08-28  Jim Meyering  <jim@meyering.net>
59125         Rename mreadlink_with_size to areadlink_with_size.
59126         * NEWS: Document the change.
59127         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59128         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59129         * lib/mreadlink.h: Rename this to...
59130         * lib/areadlink.h: ...this.
59131         * modules/mreadlink-with-size: Rename this to...
59132         * modules/areadlink-with-size: ...this.
59133         * lib/canonicalize.c: Reflect the renaming.
59134         * modules/canonicalize: Likewise.
59136 2007-08-26  Bruno Haible  <bruno@clisp.org>
59138         * gnulib-tool (func_import): When deciding which files to remove,
59139         consider also dangling symbolic links.
59140         Reported by Eric Blake.
59142 2007-08-26  Bruno Haible  <bruno@clisp.org>
59144         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59146 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59148         * lib/readline.c: Don't include getline.h, the prototype is now
59149         found in stdio.h.
59151 2007-08-23  Jim Meyering  <jim@meyering.net>
59153         Getdelim touchup.
59154         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59155         around the funlockfile call, since funlockfile never sets errno.
59156         Don't set errno upon failed realloc.
59158 2007-08-22  Eric Blake  <ebb9@byu.net>
59160         Getline touchups.
59161         * lib/getdelim.c (getdelim): Revert regression that required *n to
59162         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59163         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59164         getdelim, rather than whether implementation is missing.
59165         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59166         * lib/stdio_.h (getline): Also declare if replacement is
59167         required.
59168         * doc/functions/getdelim.texi: New file.
59169         * doc/functions/getline.texi: Likewise.
59170         * doc/gnulib.texi (Function Substitutes): Add new files.
59171         Reported by Bruno Haible.
59173 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59175         * users.txt: Add Guile.
59177 2007-08-22  Eric Blake  <ebb9@byu.net>
59179         * tests/test-getdelim.c (main): Use remove, not unlink.
59180         * tests/test-getline.c (main): Likewise.
59182         Move getline and getdelim into stdio.h, per POSIX 200x.
59183         * modules/getline (Files): Remove getline.h.
59184         (Depends-on): Add stdio.
59185         (configure.ac): Add module indicator.
59186         * modules/getdelim (Files): Remove getdelim.h.
59187         (Depends-on): Add stdio.
59188         (configure.ac): Add module indicator.
59189         * modules/stdio (Makefile.am): Work with new indicators.
59190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59191         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59192         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59193         * lib/getdelim.h: Delete.
59194         * lib/getline.h: Delete.
59195         * lib/stdio_.h (getdelim, getline): Declare.
59196         * modules/getdelim-tests: New module.
59197         * modules/getline-tests: Likewise.
59198         * tests/test-getdelim.c: New file.
59199         * tests/test-getline.c: Likewise.
59200         * NEWS: Document the change.
59201         * lib/getline.c: Update choice of header.
59202         * lib/csharpcomp.c: Likewise.
59203         * lib/getpass.c: Likewise.
59204         * lib/javacomp.c: Likewise.
59205         * lib/javaversion.c: Likewise.
59206         * lib/yesno.c: Likewise.
59207         * lib/getdelim.c: Likewise.
59208         (getdelim): Set errno on failure, and avoid memory leak.
59210 2007-08-19  Bruno Haible  <bruno@clisp.org>
59212         * modules/closein (Depends-on): Add freadahead.
59213         * lib/closein.c: Include freadahead.h.
59214         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59215         is zero.
59217 2007-08-19  Bruno Haible  <bruno@clisp.org>
59219         * modules/freadahead-tests: New file.
59220         * tests/test-freadahead.sh: New file.
59221         * tests/test-freadahead.c: New file.
59223         * modules/freadahead: New file.
59224         * lib/freadahead.h: New file.
59225         * lib/freadahead.c: New file.
59226         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59227         fbufmode, fpurge, freadable, fwritable.
59229 2007-08-19  Eric Blake  <ebb9@byu.net>
59231         Test yesno in combination with closein.
59232         * lib/yesno.c (yesno): Document use of stdin.
59233         * modules/yesno-tests (Files): New module.
59234         * tests/test-yesno.c (main): New file.
59235         * tests/test-yesno.sh: Likewise.
59237 2007-08-19  Bruno Haible  <bruno@clisp.org>
59239         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59240         * lib/fseeko.c (rpl_fseeko): Likewise.
59241         * lib/fseterr.c (fseterr): Likewise.
59243 2007-08-19  Bruno Haible  <bruno@clisp.org>
59245         * tests/test-lseek.c (main): Disable a test for BeOS.
59246         * doc/functions/lseek.texi: Document the BeOS bug.
59248 2007-08-19  Bruno Haible  <bruno@clisp.org>
59249             Eric Blake  <ebb9@byu.net>
59251         * lib/lseek.c: Include <sys/stat.h>.
59252         (rpl_lseek): Add workaround code also for Unix platforms.
59253         Needed for BeOS.
59254         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59255         * doc/functions/lseek.texi: Document BeOS definiency.
59257 2007-08-18  Bruno Haible  <bruno@clisp.org>
59259         * modules/fstrcmp-tests: New file.
59260         * tests/test-fstrcmp.c: New file.
59262 2007-08-18  Bruno Haible  <bruno@clisp.org>
59264         * modules/fstrcmp: New file, from GNU gettext with modifications.
59265         * lib/fstrcmp.h: New file, from GNU gettext.
59266         * lib/fstrcmp.c: New file, from GNU gettext.
59267         * MODULES.html.sh (String handling): Add fstrcmp.
59269 2007-08-18  Bruno Haible  <bruno@clisp.org>
59271         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59272         'bool'.
59273         (diag, compareseq): Remove const from the ctxt argument.
59274         (USE_HEURISTIC): Undefine at the end.
59276 2007-08-18  Jim Meyering  <jim@meyering.net>
59278         New file: lib/idcache.h
59279         * NEWS: Mention the addition.
59280         * modules/idcache (Files): Add lib/idcache.h
59281         * lib/idcache.c: Include "idcache.h".
59282         Don't include <sys/types.h>.
59283         Add a FIXME comment.
59284         Move file-scoped "static" declarations to the top.
59285         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59287 2007-08-17  Bruno Haible  <bruno@clisp.org>
59288         and Paul Eggert  <eggert@cs.ucla.edu>
59290         * MODULES.html.sh: Add diffseq.
59291         * modules/diffseq: New file.
59292         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59293         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59295 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59297         Import changes from coreutils for bootstrap script.
59299         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59301         * build-aux/bootstrap (slurp): Work even in environments where
59302         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59303         current code does not slurp files whose names start with ".", and
59304         this looks like it might be a troublesome area.
59306         2007-07-11  Jim Meyering  <jim@meyering.net>
59308         If there's a GPL vN copyright comment, require that N == 3.
59310         2007-07-08  Jim Meyering  <jim@meyering.net>
59312         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59313         * build-aux/bootstrap (mam_template): Move definition out of loop.
59315         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59317         * build-aux/bootstrap (symlink_to_dir): Rename function from
59318         symlink_to_gnulib.  Add a directory parameter.  Update all
59319         callers.
59320         (cp_mark_as_generated): Also check for -- and link to -- files in
59321         gl/.
59323         2007-07-08  Jim Meyering  <jim@meyering.net>
59325         Adapt to deeper hierarchy in gnulib.
59326         * build-aux/bootstrap (symlink_to_dir): If the destination
59327         directory doesn't exist, create it. This is required at least for
59328         "lib/uniwidth/cjk.h".
59330         2007-05-15  Jim Meyering  <jim@meyering.net>
59332         * build-aux/bootstrap: Now that generated Makefile.am files
59333         are no longer under version control, they must be created at
59334         bootstrap time.
59336 2007-08-14  Ben Pfaff  <blp@gnu.org>
59338         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59340 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59342         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59343         given the changes below.
59344         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59345         even on hosts that have padding bits beyond the supported 64.
59347 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59349         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59350         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59351         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59352         depends on it.
59353         (xstrtol_error): Remove.
59354         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59355         but with a different signature.
59356         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59357         * lib/xstrtol-error.c: Include exitfail.h.
59358         (xstrtol_fatal): New function, with a different signature from the
59359         old xstrtol_error, so that the caller need not worry about passing
59360         in an exit status, or about storage management of the option argument.
59361         (xstrtol_error): Now a static function.  Redo signature to
59362         implement xstrtol_fatal.  Output the correct number of hyphens in
59363         front of the option so that the caller need not worry about
59364         storage management.
59365         (N_): New macro.
59366         (_): Remove; not used now.
59367         * modules/xstrtol: Depend on getopt.
59368         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59369         of old STRTOL_FATAL_ERROR macro.
59370         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59371         of test program.
59372         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59373         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59375 2007-08-08  Eric Blake  <ebb9@byu.net>
59377         * lib/xstrtol-error.c: Add missing include.
59379         Move xstrtol messages into gnulib domain, when --pobase is used.
59380         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59381         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59382         * modules/xstrtol (Files): Distribute new file.
59383         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59384         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59385         * tests/test-xstrtol.c: ...into new file.
59386         * tests/test-xstrtoul.c: Also test xstrtoul.
59387         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59388         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59389         * tests/test-xstrtol.sh: Drive the tests.
59390         * tests/test-xstrtoimax.sh: Likewise.
59391         * tests/test-xstrtoumax.sh: Likewise.
59392         * modules/xstrtol-tests: New module.
59393         * modules/xstrtoimax-tests: Likewise.
59394         * modules/xstrtoumax-tests: Likewise.
59396 2007-08-08  Jim Meyering  <jim@meyering.net>
59398         New function: mfile_name_concat.
59399         * lib/filenamecat.c (mfile_name_concat): New function, just like
59400         file_name_concat, but return NULL upon failure rather than exiting
59401         with a diagnostic.
59402         * lib/filenamecat.h: Declare it.
59404 2007-08-07  Bruno Haible  <bruno@clisp.org>
59406         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59407         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59408         warning from gcc.
59409         Reported by Eric Blake.
59411 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59413         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59414         * modules/crypto/arcfour (License): Likewise.
59415         * modules/crypto/des-tests (License): Likewise.
59416         * modules/crypto/gc-arctwo-tests (License): Likewise.
59417         * modules/crypto/gc-des-tests (License): Likewise.
59418         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59419         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59420         * modules/crypto/gc-md2-tests (License): Likewise.
59421         * modules/crypto/gc-md4-tests (License): Likewise.
59422         * modules/crypto/gc-md5-tests (License): Likewise.
59423         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59424         * modules/crypto/gc-rijndael-tests (License): Likewise.
59425         * modules/crypto/gc-sha1-tests (License): Likewise.
59426         * modules/crypto/gc-tests (License): Likewise.
59427         * modules/crypto/hmac-md5 (License): Likewise.
59428         * modules/crypto/hmac-sha1 (License): Likewise.
59429         * modules/crypto/md2-tests (License): Likewise.
59430         * modules/crypto/md4-tests (License): Likewise.
59431         * modules/crypto/md5 (License): Likewise.
59432         * modules/crypto/rijndael (License): Likewise.
59433         * modules/crypto/sha1 (License): Likewise.
59434         * modules/memxor (License): Likewise.
59436 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59437         and Bruno Haible  <bruno@clisp.org>
59439         * NEWS: Describe interface changes to human, xstrtol.
59440         * lib/human.h: Include <xstrtol.h>.
59441         (human_options): Return enum strtol_error, not int.  Remove
59442         bool arg; take int * instead.
59443         * lib/human.c: Don't include "gettext.h".
59444         (_): Remove; no longer used.
59445         Don't include <xstrtol.h>, since human.h does it.
59446         (human_options): Adjust to abovementioned interface changes.
59447         Do not report error to stderr; that's now the caller's
59448         responsibility.
59449         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59450         interface change.
59451         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59452         Str, Argument_type_string.  All uses changed.  Put " argument"
59453         in diagnostics to make them clearer.  Change wording of suffix
59454         message for clarity.
59455         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59456         Argument_type_string.
59457         (STRTOL_FATAL_WARN): Remove; no longer used.
59458         * modules/human (Depends-on): Remove gettext-h.
59460 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59462         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59464 2007-07-31  Bruno Haible  <bruno@clisp.org>
59466         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59467         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59468         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59470 2007-07-31  Bruno Haible  <bruno@clisp.org>
59472         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59473         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59475 2007-07-30  Bruno Haible  <bruno@clisp.org>
59477         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59478         * modules/c-ctype (License): Likewise.
59479         * modules/c-strcase (License): Likewise.
59480         * modules/check-version (License): Likewise.
59481         * modules/iconv (License): Likewise.
59482         * modules/iconv_open (License): Likewise.
59483         * modules/read-file (License): Likewise.
59484         * modules/striconv (License): Likewise.
59485         * modules/strverscmp (License): Likewise.
59486         * modules/vasprintf (License): Likewise.
59487         * modules/crypto/des (License): Likewise.
59488         * modules/crypto/gc (License): Likewise.
59489         * modules/crypto/gc-arcfour (License): Likewise.
59490         * modules/crypto/gc-arctwo (License): Likewise.
59491         * modules/crypto/gc-des (License): Likewise.
59492         * modules/crypto/gc-hmac-md5 (License): Likewise.
59493         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59494         * modules/crypto/gc-md2 (License): Likewise.
59495         * modules/crypto/gc-md4 (License): Likewise.
59496         * modules/crypto/gc-md5 (License): Likewise.
59497         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59498         * modules/crypto/gc-random (License): Likewise.
59499         * modules/crypto/gc-rijndael (License): Likewise.
59500         * modules/crypto/gc-sha1 (License): Likewise.
59501         * modules/crypto/md2 (License): Likewise.
59502         * modules/crypto/md4 (License): Likewise.
59504 2007-07-30  Jim Meyering  <jim@meyering.net>
59506         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59507         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59508         it has valid stat data.  This bug would cause du not to count the
59509         sizes of inaccessible directories.
59510         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59511         in <http://bugzilla.redhat.com/250077>.
59513 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59514             Bruno Haible  <bruno@clisp.org>
59516         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59517         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59518         #include_next, gives a diagnostic about it, but reports no error in
59519         the exit code.
59520         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59522 2007-07-24  Ben Pfaff  <blp@gnu.org>
59524         Improve name: "count-one-bits" is better than "popcount".
59525         * MODULES.html.sh: Update name.
59526         * lib/popcount.h: Renamed lib/count-one-bits.h.
59527         (popcount): Renamed count_one_bits.
59528         (popcountl): Renamed count_one_bits_l.
59529         (popcountll): Renamed count_one_bits_ll.
59530         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59531         * modules/popcount: Renamed module/count-one-bits.
59532         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59533         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59535 2007-07-23  Ben Pfaff  <blp@gnu.org>
59537         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59538         better code generation, and add U to large constants to avoid
59539         warnings, in non-GCC case.
59540         Suggested by Bruno Haible.
59542 2007-07-23  Ben Pfaff  <blp@gnu.org>
59544         * lib/popcount.h: Use verify_true instead of if...abort.
59545         * modules/popcount: Depend on verify module.
59546         Suggested by Jim Meyering.
59548 2007-07-23  Bruno Haible  <bruno@clisp.org>
59550         * gnulib-tool (func_import): Create a .cvsignore file also when the
59551         directory is not yet in CVS but the toplevel directory is. When
59552         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59553         Reported by Karl Berry.
59555 2007-07-22  Ben Pfaff  <blp@gnu.org>
59557         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59558         case.
59559         Suggested by Eric Blake.
59561 2007-07-22  Ben Pfaff  <blp@gnu.org>
59563         New module: popcount.
59564         * MODULES.html.sh: Add popcount.
59565         * modules/popcount: New file.
59566         * modules/popcount-tests: New file.
59567         * tests/test-popcount.c: New file.
59568         * lib/popcount.h: New file.
59569         * m4/popcount.m4: New file.
59571 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59573         * build-aux/announce-gen: Update to GPLv3.
59575         * build-aux/config.guess: Update from config.
59577 2007-07-21  Bruno Haible  <bruno@clisp.org>
59579         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59580         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59582 2007-07-20  Jim Meyering  <jim@meyering.net>
59584         * check-module: Diagnose a self-dependency.
59586 2007-07-19  Bruno Haible  <bruno@clisp.org>
59588         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59589         empty.
59590         Reported by Eric Blake.
59592 2007-07-18  Bruno Haible  <bruno@clisp.org>
59594         * gnulib-tool: New options --po-base, --po-domain.
59595         (func_usage): Document them.
59596         (pobase, po_domain): New variables.
59597         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59598         DEFAULT_TEXT_DOMAIN.
59599         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59600         (func_import): Consider pobase and po_domain. Create a po/ directory.
59601         (func_create_testdir): Set pobase and po_domain to empty.
59602         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59603         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59605 2007-07-18  Bruno Haible  <bruno@clisp.org>
59607         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59608         EXTRA_DIST augmentation for files in build-aux/.
59610 2007-07-16  Bruno Haible  <bruno@clisp.org>
59612         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59613         * modules/getdelim (License): Likewise.
59615 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59617         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59618         * modules/d-type (License): Likewise.
59619         * modules/extensions (License): Likewise.
59620         * modules/fnmatch (License): Likewise.
59621         * modules/fseeko (License): Likewise.
59622         * modules/getaddrinfo (License): Likewise.
59623         * modules/getline (License): Likewise.
59624         * modules/getlogin_r (License): Likewise.
59625         * modules/getpass (License): Likewise.
59626         * modules/gettimeofday (License): Likewise.
59627         * modules/glob (License): Likewise.
59628         * modules/inet_ntop (License): Likewise.
59629         * modules/malloc (License): Likewise.
59630         * modules/malloca (License): Likewise.
59631         * modules/memmem (License): Likewise.
59632         * modules/mempcpy (License): Likewise.
59633         * modules/memset (License): Likewise.
59634         * modules/minmax (License): Likewise.
59635         * modules/mktime (License): Likewise.
59636         * modules/netinet_in (License): Likewise.
59637         * modules/pathmax (License): Likewise.
59638         * modules/poll (License): Likewise.
59639         * modules/regex (License): Likewise.
59640         * modules/snprintf (License): Likewise.
59641         * modules/stdbool (License): Likewise.
59642         * modules/stdint (License): Likewise.
59643         * modules/stdio (License): Likewise.
59644         * modules/strcase (License): Likewise.
59645         * modules/strcasestr (License): Likewise.
59646         * modules/strdup (License): Likewise.
59647         * modules/string (License): Likewise.
59648         * modules/strndup (License): Likewise.
59649         * modules/strnlen (License): Likewise.
59650         * modules/strpbrk (License): Likewise.
59651         * modules/strptime (License): Likewise.
59652         * modules/strsep (License): Likewise.
59653         * modules/sys_select (License): Likewise.
59654         * modules/sys_socket (License): Likewise.
59655         * modules/sys_stat (License): Likewise.
59656         * modules/sys_time (License): Likewise.
59657         * modules/time (License): Likewise.
59658         * modules/time_r (License): Likewise.
59659         * modules/timegm (License): Likewise.
59660         * modules/unistd (License): Likewise.
59661         * modules/vsnprintf (License): Likewise.
59662         * modules/wctype (License): Likewise.
59664 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59666         * modules/argz (License): LGPLv2+.
59668 2007-07-15  Karl Berry  <karl@gnu.org>
59670         * doc/gnulib.texi: revise node structure per new fdl.texi.
59672 2007-07-14  Bruno Haible  <bruno@clisp.org>
59674         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59675         the output file.
59676         * lib/uniname/uninames.h: Regenerated.
59678 2007-07-14  Karl Berry  <karl@gnu.org>
59680         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59681         omitting sectioning and index commands.
59683 2007-07-13  Bruno Haible  <bruno@clisp.org>
59685         New gnulib-tool option --more-symlinks.
59686         * gnulib-tool (func_usage): Document --more-symlinks.
59687         (do_copyrights): New variable.
59688         Recognize option --more-symlinks.
59689         (func_import): Don't add a copyright notice transform to
59690         sed_transform_lib_file if do_copyrights is empty.
59692 2007-07-13  Bruno Haible  <bruno@clisp.org>
59694         * lib/vasnprintf.c (decimal_point_char): Define also if
59695         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59696         && !NEED_PRINTF_DIRECTIVE_A.
59697         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59698         Gary V. Vaughan <gary@gnu.org>.
59700 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59702         * lib/inttypes_.h: Undo previous change, since it was fixed
59703         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59705 2007-07-13  Bruno Haible  <bruno@clisp.org>
59707         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59708         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59710 2007-07-13  Jim Meyering  <jim@meyering.net>
59712         df: Don't fail for Tru64's "file-on-file mount".
59713         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59714         so we fall through and use statfs instead.  Details here:
59715         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59716         Reported by Albert Chin.
59718 2007-07-13  Bruno Haible  <bruno@clisp.org>
59720         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59721         * modules/configmake (License): Likewise.
59722         * modules/gettext (License): Likewise.
59723         * modules/gettext-h (License): Likewise.
59724         * modules/include_next (License): Likewise.
59725         * modules/link-warning (License): Likewise.
59726         * modules/localcharset (License): Likewise.
59727         * modules/localename (License): Likewise.
59728         * modules/lock (License): Likewise.
59729         * modules/relocatable-lib-lgpl (License): Likewise.
59730         * modules/size_max (License): Likewise.
59731         * modules/vasnprintf (License): Likewise.
59732         * modules/wchar (License): Likewise.
59733         * modules/xsize (License): Likewise.
59735 2007-07-13  Bruno Haible  <bruno@clisp.org>
59737         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59738         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59740 2007-07-12  Bruno Haible  <bruno@clisp.org>
59742         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59743         in the modules files.
59745 2007-07-11  Karl Berry  <karl@gnu.org>
59747         * MODULES.html.sh (func_module): use
59748          sed -e '\|^'"${includefile}"'$|d'
59749          instead of /.../d, to avoid errors on $includefile's containing /.
59751 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59753         * gnulib-tool (func_import): Avoid duplication of --avoid
59754         statements
59755         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59756         names to `_' in variable names.
59758 2007-07-10  Eric Blake  <ebb9@byu.net>
59760         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59761         * NEWS: Document this change.
59763 2007-07-08  Bruno Haible  <bruno@clisp.org>
59765         Update to Unicode 5.0.
59766         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59767         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59768         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59769         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59770         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59771         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59772         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59773         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59774         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59775         U+10A3F, U+1D242..U+1D244.
59776         (nonspacing_table_ind): Update.
59777         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59778         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59780 2007-07-08  Bruno Haible  <bruno@clisp.org>
59782         Update to Unicode 5.0.
59783         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59784         code transform. Extend the name index field of unicode_name_to_code and
59785         unicode_code_to_name from 16 to 24 bits.
59786         * lib/uniname/uniname.c (unicode_character_name,
59787         unicode_name_character): Add the range 0x12xxx to the code transform.
59788         * lib/uniname/uninames.h: Regenerated.
59789         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59791 2007-07-07  Bruno Haible  <bruno@clisp.org>
59793         * modules/wcwidth-tests: New file.
59794         * tests/test-wcwidth.c: New file.
59796         Work around MacOS X wcwidth() bug.
59797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59798         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59799         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59800         original wcwidth in non-UTF-8 locales.
59801         * modules/wcwidth (Depends-on): Add localcharset, streq,
59802         uniwidth/width.
59803         * doc/functions/wcwidth.texi: Update.
59805 2007-07-07  Bruno Haible  <bruno@clisp.org>
59807         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59808         (wcwidth): New declaration.
59809         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59810         macros.
59811         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59812         here. Prepare for creating <wchar.h> unconditionally.
59813         * modules/wchar (Depends-on): Add link-warning.
59814         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59815         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59816         * lib/wcwidth.h: Remove file.
59817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59818         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59819         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59820         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59821         (Include): Replace wcwidth.h with <wchar.h>.
59822         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59823         * lib/mbchar.h: Don't include wcwidth.h.
59824         * lib/mbswidth.c: Likewise.
59825         * NEWS: Mention the change.
59827 2007-07-07  Bruno Haible  <bruno@clisp.org>
59829         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59830         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59831         definition with an external declaration.
59832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59833         defined as a function. Remove AC_C_INLINE requirement.
59834         * modules/wcwidth (Files): Add lib/wcwidth.c.
59835         (Makefile.am): Remove redundant statement.
59837 2007-07-07  Bruno Haible  <bruno@clisp.org>
59839         * MODULES.html.sh (Unicode string functions): Add the new modules.
59841         * tests/uniwidth/test-u32-strwidth.c: New file.
59842         * modules/uniwidth/u32-strwidth-tests: New file.
59844         * lib/uniwidth/u32-strwidth.c: New file.
59845         * modules/uniwidth/u32-strwidth: New file.
59847         * tests/uniwidth/test-u16-strwidth.c: New file.
59848         * modules/uniwidth/u16-strwidth-tests: New file.
59850         * lib/uniwidth/u16-strwidth.c: New file.
59851         * modules/uniwidth/u16-strwidth: New file.
59853         * tests/uniwidth/test-u8-strwidth.c: New file.
59854         * modules/uniwidth/u8-strwidth-tests: New file.
59856         * lib/uniwidth/u8-strwidth.c: New file.
59857         * modules/uniwidth/u8-strwidth: New file.
59859         * tests/uniwidth/test-u32-width.c: New file.
59860         * modules/uniwidth/u32-width-tests: New file.
59862         * lib/uniwidth/u32-width.c: New file.
59863         * modules/uniwidth/u32-width: New file.
59865         * tests/uniwidth/test-u16-width.c: New file.
59866         * modules/uniwidth/u16-width-tests: New file.
59868         * lib/uniwidth/u16-width.c: New file.
59869         * modules/uniwidth/u16-width: New file.
59871         * tests/uniwidth/test-u8-width.c: New file.
59872         * modules/uniwidth/u8-width-tests: New file.
59874         * lib/uniwidth/u8-width.c: New file.
59875         * modules/uniwidth/u8-width: New file.
59877         * tests/uniwidth/test-uc_width.c: New file.
59878         * modules/uniwidth/width-tests: New file.
59880         * lib/uniwidth/width.c: New file, from GNU libiconv.
59881         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59882         * modules/uniwidth/width: New file.
59884         * lib/uniwidth.h: New file, from GNU libiconv.
59885         * modules/uniwidth/base: New file.
59887 2007-07-07  Bruno Haible  <bruno@clisp.org>
59889         * lib/uniname.h: New file, from GNU gettext.
59890         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59891         * lib/uniname/uninames.h: New file, from GNU gettext.
59892         * lib/uniname/uniname.c: New file, from GNU gettext.
59893         * tests/uniname/test-uninames.sh: New file.
59894         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59895         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59896         * modules/uniname/base: New file.
59897         * modules/uniname/uniname: New file.
59898         * modules/uniname/uniname-tests: New file.
59899         * MODULES.html.sh (Unicode string functions): Add the new modules.
59901 2007-07-06  Bruno Haible  <bruno@clisp.org>
59903         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59905 2007-07-06  Bruno Haible  <bruno@clisp.org>
59907         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59908         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59909         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59910         include <sys/time.h>.
59911         Reported by Eric Blake.
59913 2007-07-06  Eric Blake  <ebb9@byu.net>
59915         Fix testing canonicalize on cygwin.
59916         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59917         Revert patch from 2007-06-19.
59918         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59919         canonicalize module is also in use.
59920         * tests/test-canonicalize.c: New file.
59921         * tests/test-canonicalize.sh: Likewise.
59922         * modules/canonicalize-tests: Likewise.
59924 2007-07-06  Jim Meyering  <jim@meyering.net>
59926         * lib/getugroups.c (getugroups): Detect getgrent failure.
59927         Adjust comment to reflect reality: this function may return -1.
59929 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59931         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59932         the new TP address.
59933         (usage): Fix typo
59934         (gnulib_mk): New variable.
59936 2007-07-05  Jim Meyering  <jim@meyering.net>
59938         Don't let endgrent clobber errno, no matter how improbable.
59939         * lib/getugroups.c (getugroups): Save and restore errno around
59940         endgrent call.
59942         Close the group DB even when failing with 2^31 or more members.
59943         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59945 2007-07-04  Jim Meyering  <jim@meyering.net>
59947         * lib/getugroups.h: New file.
59948         * lib/getugroups.c: Include "getugroups.h".
59949         Remove uses of "register" keyword.
59950         Move local variable, "cp", down into scope where used.
59951         Give "username" parameter the "const" attribute.
59952         * modules/getugroups (Files): Add lib/getugroups.h
59954 2007-07-04  Karl Berry  <karl@gnu.org>
59956         * MODULES.html.sh (func_all_modules): Complete rename of
59957         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59959 2007-07-02  Bruno Haible  <bruno@clisp.org>
59961         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59962         mode, when inttypes.h comes from gnulib.
59963         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59965 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59967         * NEWS: Mention lgpl module name change.
59969         * modules/lgpl-2.1: Renamed from lgpl.
59971         * NEWS: Mention gpl module name change.
59973         * modules/gpl-3.0: New file, based on gpl-2.0.
59975         * modules/gpl-2.0: Renamed from gpl.
59977         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59978         doc/gpl-2.0.texi.
59980 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59982         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59983         #define __STDC_LIMIT_MACROS temporarily while including
59984         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59985         Problem reported by Joel E. Denny in
59986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59988 2007-07-01  Bruno Haible  <bruno@clisp.org>
59990         * lib/unistdio.h: New file.
59991         * lib/unistdio/u-asnprintf.h: New file.
59992         * lib/unistdio/u-asprintf.h: New file.
59993         * lib/unistdio/u-printf-args.c: New file.
59994         * lib/unistdio/u-printf-args.h: New file.
59995         * lib/unistdio/u-printf-parse.h: New file.
59996         * lib/unistdio/u-snprintf.h: New file.
59997         * lib/unistdio/u-sprintf.h: New file.
59998         * lib/unistdio/u-vasprintf.h: New file.
59999         * lib/unistdio/u-vsnprintf.h: New file.
60000         * lib/unistdio/u-vsprintf.h: New file.
60001         * lib/unistdio/ulc-asnprintf.c: New file.
60002         * lib/unistdio/ulc-asprintf.c: New file.
60003         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60004         * lib/unistdio/ulc-printf-parse.c: New file.
60005         * lib/unistdio/ulc-snprintf.c: New file.
60006         * lib/unistdio/ulc-sprintf.c: New file.
60007         * lib/unistdio/ulc-vasnprintf.c: New file.
60008         * lib/unistdio/ulc-vasprintf.c: New file.
60009         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60010         * lib/unistdio/ulc-vsnprintf.c: New file.
60011         * lib/unistdio/ulc-vsprintf.c: New file.
60012         * lib/unistdio/u8-asnprintf.c: New file.
60013         * lib/unistdio/u8-asprintf.c: New file.
60014         * lib/unistdio/u8-printf-parse.c: New file.
60015         * lib/unistdio/u8-snprintf.c: New file.
60016         * lib/unistdio/u8-sprintf.c: New file.
60017         * lib/unistdio/u8-vasnprintf.c: New file.
60018         * lib/unistdio/u8-vasprintf.c: New file.
60019         * lib/unistdio/u8-vsnprintf.c: New file.
60020         * lib/unistdio/u8-vsprintf.c: New file.
60021         * lib/unistdio/u8-u8-asnprintf.c: New file.
60022         * lib/unistdio/u8-u8-asprintf.c: New file.
60023         * lib/unistdio/u8-u8-snprintf.c: New file.
60024         * lib/unistdio/u8-u8-sprintf.c: New file.
60025         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60026         * lib/unistdio/u8-u8-vasprintf.c: New file.
60027         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60028         * lib/unistdio/u8-u8-vsprintf.c: New file.
60029         * lib/unistdio/u16-asnprintf.c: New file.
60030         * lib/unistdio/u16-asprintf.c: New file.
60031         * lib/unistdio/u16-printf-parse.c: New file.
60032         * lib/unistdio/u16-snprintf.c: New file.
60033         * lib/unistdio/u16-sprintf.c: New file.
60034         * lib/unistdio/u16-vasnprintf.c: New file.
60035         * lib/unistdio/u16-vasprintf.c: New file.
60036         * lib/unistdio/u16-vsnprintf.c: New file.
60037         * lib/unistdio/u16-vsprintf.c: New file.
60038         * lib/unistdio/u16-u16-asnprintf.c: New file.
60039         * lib/unistdio/u16-u16-asprintf.c: New file.
60040         * lib/unistdio/u16-u16-snprintf.c: New file.
60041         * lib/unistdio/u16-u16-sprintf.c: New file.
60042         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60043         * lib/unistdio/u16-u16-vasprintf.c: New file.
60044         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60045         * lib/unistdio/u16-u16-vsprintf.c: New file.
60046         * lib/unistdio/u32-asnprintf.c: New file.
60047         * lib/unistdio/u32-asprintf.c: New file.
60048         * lib/unistdio/u32-printf-parse.c: New file.
60049         * lib/unistdio/u32-snprintf.c: New file.
60050         * lib/unistdio/u32-sprintf.c: New file.
60051         * lib/unistdio/u32-vasnprintf.c: New file.
60052         * lib/unistdio/u32-vasprintf.c: New file.
60053         * lib/unistdio/u32-vsnprintf.c: New file.
60054         * lib/unistdio/u32-vsprintf.c: New file.
60055         * lib/unistdio/u32-u32-asnprintf.c: New file.
60056         * lib/unistdio/u32-u32-asprintf.c: New file.
60057         * lib/unistdio/u32-u32-snprintf.c: New file.
60058         * lib/unistdio/u32-u32-sprintf.c: New file.
60059         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60060         * lib/unistdio/u32-u32-vasprintf.c: New file.
60061         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60062         * lib/unistdio/u32-u32-vsprintf.c: New file.
60063         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60064         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60065         * tests/unistdio/test-ulc-printf1.h: New file.
60066         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60067         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60068         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60069         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60070         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60071         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60072         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60073         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60074         * tests/unistdio/test-u8-asnprintf1.c: New file.
60075         * tests/unistdio/test-u8-asnprintf1.h: New file.
60076         * tests/unistdio/test-u8-printf1.h: New file.
60077         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60078         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60079         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60080         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60081         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60082         * tests/unistdio/test-u8-vasprintf1.c: New file.
60083         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60084         * tests/unistdio/test-u8-vsprintf1.c: New file.
60085         * tests/unistdio/test-u16-asnprintf1.c: New file.
60086         * tests/unistdio/test-u16-asnprintf1.h: New file.
60087         * tests/unistdio/test-u16-printf1.h: New file.
60088         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60089         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60090         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60091         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60092         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60093         * tests/unistdio/test-u16-vasprintf1.c: New file.
60094         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60095         * tests/unistdio/test-u16-vsprintf1.c: New file.
60096         * tests/unistdio/test-u32-asnprintf1.c: New file.
60097         * tests/unistdio/test-u32-asnprintf1.h: New file.
60098         * tests/unistdio/test-u32-printf1.h: New file.
60099         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60100         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60101         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60102         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60103         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60104         * tests/unistdio/test-u32-vasprintf1.c: New file.
60105         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60106         * tests/unistdio/test-u32-vsprintf1.c: New file.
60107         * modules/unistdio/base: New file.
60108         * modules/unistdio/u-printf-args: New file.
60109         * modules/unistdio/ulc-asnprintf: New file.
60110         * modules/unistdio/ulc-asprintf: New file.
60111         * modules/unistdio/ulc-fprintf: New file.
60112         * modules/unistdio/ulc-printf-parse: New file.
60113         * modules/unistdio/ulc-snprintf: New file.
60114         * modules/unistdio/ulc-sprintf: New file.
60115         * modules/unistdio/ulc-vasnprintf: New file.
60116         * modules/unistdio/ulc-vasprintf: New file.
60117         * modules/unistdio/ulc-vfprintf: New file.
60118         * modules/unistdio/ulc-vsnprintf: New file.
60119         * modules/unistdio/ulc-vsprintf: New file.
60120         * modules/unistdio/u8-asnprintf: New file.
60121         * modules/unistdio/u8-asprintf: New file.
60122         * modules/unistdio/u8-printf-parse: New file.
60123         * modules/unistdio/u8-snprintf: New file.
60124         * modules/unistdio/u8-sprintf: New file.
60125         * modules/unistdio/u8-vasnprintf: New file.
60126         * modules/unistdio/u8-vasprintf: New file.
60127         * modules/unistdio/u8-vsnprintf: New file.
60128         * modules/unistdio/u8-vsprintf: New file.
60129         * modules/unistdio/u8-u8-asnprintf: New file.
60130         * modules/unistdio/u8-u8-asprintf: New file.
60131         * modules/unistdio/u8-u8-snprintf: New file.
60132         * modules/unistdio/u8-u8-sprintf: New file.
60133         * modules/unistdio/u8-u8-vasnprintf: New file.
60134         * modules/unistdio/u8-u8-vasprintf: New file.
60135         * modules/unistdio/u8-u8-vsnprintf: New file.
60136         * modules/unistdio/u8-u8-vsprintf: New file.
60137         * modules/unistdio/u16-asnprintf: New file.
60138         * modules/unistdio/u16-asprintf: New file.
60139         * modules/unistdio/u16-printf-parse: New file.
60140         * modules/unistdio/u16-snprintf: New file.
60141         * modules/unistdio/u16-sprintf: New file.
60142         * modules/unistdio/u16-vasnprintf: New file.
60143         * modules/unistdio/u16-vasprintf: New file.
60144         * modules/unistdio/u16-vsnprintf: New file.
60145         * modules/unistdio/u16-vsprintf: New file.
60146         * modules/unistdio/u16-u16-asnprintf: New file.
60147         * modules/unistdio/u16-u16-asprintf: New file.
60148         * modules/unistdio/u16-u16-snprintf: New file.
60149         * modules/unistdio/u16-u16-sprintf: New file.
60150         * modules/unistdio/u16-u16-vasnprintf: New file.
60151         * modules/unistdio/u16-u16-vasprintf: New file.
60152         * modules/unistdio/u16-u16-vsnprintf: New file.
60153         * modules/unistdio/u16-u16-vsprintf: New file.
60154         * modules/unistdio/u32-asnprintf: New file.
60155         * modules/unistdio/u32-asprintf: New file.
60156         * modules/unistdio/u32-printf-parse: New file.
60157         * modules/unistdio/u32-snprintf: New file.
60158         * modules/unistdio/u32-sprintf: New file.
60159         * modules/unistdio/u32-vasnprintf: New file.
60160         * modules/unistdio/u32-vasprintf: New file.
60161         * modules/unistdio/u32-vsnprintf: New file.
60162         * modules/unistdio/u32-vsprintf: New file.
60163         * modules/unistdio/u32-u32-asnprintf: New file.
60164         * modules/unistdio/u32-u32-asprintf: New file.
60165         * modules/unistdio/u32-u32-snprintf: New file.
60166         * modules/unistdio/u32-u32-sprintf: New file.
60167         * modules/unistdio/u32-u32-vasnprintf: New file.
60168         * modules/unistdio/u32-u32-vasprintf: New file.
60169         * modules/unistdio/u32-u32-vsnprintf: New file.
60170         * modules/unistdio/u32-u32-vsprintf: New file.
60171         * modules/unistdio/ulc-asnprintf-tests: New file.
60172         * modules/unistdio/ulc-vasnprintf-tests: New file.
60173         * modules/unistdio/ulc-vasprintf-tests: New file.
60174         * modules/unistdio/ulc-vsnprintf-tests: New file.
60175         * modules/unistdio/ulc-vsprintf-tests: New file.
60176         * modules/unistdio/u8-asnprintf-tests: New file.
60177         * modules/unistdio/u8-vasnprintf-tests: New file.
60178         * modules/unistdio/u8-vasprintf-tests: New file.
60179         * modules/unistdio/u8-vsnprintf-tests: New file.
60180         * modules/unistdio/u8-vsprintf-tests: New file.
60181         * modules/unistdio/u16-asnprintf-tests: New file.
60182         * modules/unistdio/u16-vasnprintf-tests: New file.
60183         * modules/unistdio/u16-vasprintf-tests: New file.
60184         * modules/unistdio/u16-vsnprintf-tests: New file.
60185         * modules/unistdio/u16-vsprintf-tests: New file.
60186         * modules/unistdio/u32-asnprintf-tests: New file.
60187         * modules/unistdio/u32-vasnprintf-tests: New file.
60188         * modules/unistdio/u32-vasprintf-tests: New file.
60189         * modules/unistdio/u32-vsnprintf-tests: New file.
60190         * modules/unistdio/u32-vsprintf-tests: New file.
60191         * MODULES.html.sh (Unicode string functions): Add the new modules.
60193 2007-07-01  Bruno Haible  <bruno@clisp.org>
60195         * lib/sprintf.c (sprintf): Limit the available length estimation,
60196         to avoid address wraparound.
60197         * lib/vsprintf.c (vsprintf): Likewise.
60198         * modules/sprintf-posix (Dependencies): Add stdint.
60199         * modules/vsprintf-posix (Dependencies): Likewise.
60201 2007-07-01  Bruno Haible  <bruno@clisp.org>
60203         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60204         Windows PATH as well. Conservative double-quoting. Comments.
60206 2007-07-01  Bruno Haible  <bruno@clisp.org>
60207             Eric Blake  <ebb9@byu.net>
60208             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60210         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60211         empty components in $PATH, denoting '.'.
60213 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60215         * gnulib-tool: Fix indentation.
60216         (func_create_megatestdir): Likewise.
60217         Report by Bruno Haible.
60219 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60221         Sync from Automake.
60222         * build-aux/gnupload: Fix shell portability issues with for loops.
60223         Report by Karl Berry.
60225 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60227         * build-aux/maint.mk (POURL): Use translationproject.org.
60229 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60230             Bruno Haible  <bruno@clisp.org>
60232         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60233         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60234         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60235         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60236         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60238 2007-06-27  Bruno Haible  <bruno@clisp.org>
60240         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60241         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60243 2007-06-26  Karl Berry  <karl@gnu.org>
60245         * MODULES.html.sh: remove xreadlink-with-size.
60247 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60249         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60250         method that I hope also handles the double-include problem noted
60251         by Bruno Haible in
60252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60254 2007-06-23  Bruno Haible  <bruno@clisp.org>
60256         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60257         Don't let the 'mostlyclean' target fail if the last subdirectory could
60258         not be removed.
60259         Reported by Karl Berry.
60261 2007-06-23  Bruno Haible  <bruno@clisp.org>
60263         * gnulib-tool (echo): Add a speedier workaround for ksh.
60264         * tests/test-echo.sh: Likewise.
60266 2007-06-23  Bruno Haible  <bruno@clisp.org>
60268         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60269         * tests/test-echo.sh: Likewise.
60271 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60273         * gnulib-tool (IFS): Initialize early, so we don't set it to
60274         empty later.
60275         (self_abspathname): Rewrite algorithm to set it, reindent.
60276         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60277         (func_create_megatestdir): Merge some sed scripts.
60279 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60281         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60282         exposed by Sun Studio 11 cc on Solaris 8.
60284 2007-06-22  Bruno Haible  <bruno@clisp.org>
60286         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60287         backslashes.
60288         * tests/test-echo.sh: New file.
60290 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60292         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60293         simplify `sed_replace_build_aux' scripts, they are portable but
60294         echoing them with `echo' is not.
60295         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60297 2007-06-21  Karl Berry  <karl@gnu.org>
60299         * config/srclist.txt: guess we can't handle the licenses via
60300         srclist at the moment.
60302 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60304         * MODULES.html.sh: Add include_next.
60305         * modules/include_next: New file.
60307 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60310         INCLUDE_NEXT.
60311         (gl_CHECK_NEXT_HEADERS): New macro.
60312         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60313         the obsolescent gl_ABSOLUTE_HEADER.
60314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60315         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60316         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60317         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60318         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60319         * m4/math_h.m4 (gl_MATH_H): Likewise.
60320         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60321         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60322         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60323         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60324         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60325         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60326         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60327         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60331         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60332         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60333         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60334         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60335         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60336         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60337         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60338         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60339         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60340         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60341         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60342         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60343         * lib/float_.h: Likewise.
60344         * lib/inttypes_.h: Likewise.
60345         * lib/math_.h: Likewise.
60346         * lib/search_.h: Likewise.
60347         * lib/signal_.h: Likewise.
60348         * lib/stdint_.h: Likewise.
60349         * lib/stdio_.h: Likewise.
60350         * lib/stdlib_.h: Likewise.
60351         * lib/string_.h: Likewise.
60352         * lib/sys_stat_.h: Likewise.
60353         * lib/sys_time_.h: Likewise.
60354         * lib/time_.h: Likewise.
60355         * lib/unistd_.h: Likewise.
60356         * lib/wchar_.h: Likewise.
60357         * lib/wctype_.h: Likewise.
60358         * lib/dirent_.h: Likewise.
60359         * lib/iconv_.h: Likewise.
60360         * lib/locale_.h: Likewise.
60361         * lib/netinet_in_.h: Likewise.
60362         * lib/sys_select_.h: Likewise.
60363         * lib/sys_socket_.h: Likewise.
60364         * lib/sysexits_.h: Likewise.
60365         * modules/fcntl (Depends-on): Depend on include_next, not
60366         absolute_header.
60367         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60368         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60369         * modules/fchdir: Likewise.
60370         * modules/float: Likewise.
60371         * modules/iconv_open: Likewise.
60372         * modules/inttypes: Likewise.
60373         * modules/locale: Likewise.
60374         * modules/math: Likewise.
60375         * modules/netinet_in: Likewise.
60376         * modules/search: Likewise.
60377         * modules/signal: Likewise.
60378         * modules/stdint: Likewise.
60379         * modules/stdio: Likewise.
60380         * modules/stdlib: Likewise.
60381         * modules/string: Likewise.
60382         * modules/sys_select: Likewise.
60383         * modules/sys_socket: Likewise.
60384         * modules/sys_stat: Likewise.
60385         * modules/sys_time: Likewise.
60386         * modules/sysexits: Likewise.
60387         * modules/time: Likewise.
60388         * modules/unistd: Likewise.
60389         * modules/wchar: Likewise.
60390         * modules/wctype: Likewise.
60391         * modules/sys_stat: Change maintainer to "all".
60392         * modules/unistd: Likewise.
60394 2007-06-20  Karl Berry  <karl@gnu.org>
60396         * config/srclist.txt: track www changes in license files.
60398 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60400         * build-aux/bootstrap: Remove stray dot.
60401         Make sure build_aux settings are honored when linking
60402         gnulib_extra_files.
60404 2007-06-19  Eric Blake  <ebb9@byu.net>
60406         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60407         Allow compilation on cygwin.
60409 2007-06-19  Jim Meyering  <jim@meyering.net>
60411         xreadlink-with-size: Remove module.  No longer used.
60412         Ex-callers now use xreadlink or mreadlink-with-size.
60413         * modules/xreadlink-with-size: Remove module.
60414         * lib/xreadlink-with-size.c: Remove file.
60415         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60416         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60417         just before the function definition *is* accurate.
60419         Eliminate one way canonicalize_filename_mode could exit.
60420         * lib/canonicalize.c (canonicalize_filename_mode):
60421         Use mreadlink_with_size, not xreadlink_with_size.
60423 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60425         Detect porting problems to FreeBSD/arm, which has time_t wider than
60426         long int.  Original problem reported for GNU diff by Xin Li in
60427         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60428         * modules/getdate (Depends-on): Add intprops, verify.
60429         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60430         is an integer type no wider than long int.
60432 2007-06-18  Jim Meyering  <jim@meyering.net>
60434         New module: mreadlink-with-size.
60435         * MODULES.html.sh: Add mreadlink-with-size.
60436         * modules/mreadlink-with-size: New module
60437         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60438         not xreadlink-with-size.
60439         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60441 2007-06-16  Bruno Haible  <bruno@clisp.org>
60443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60444         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60445         Reported by Gary V. Vaughan <gary@gnu.org>.
60447 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60449         Revamp lchown so that it lives in unistd.h where it belongs.
60450         * lib/lchown.h: Remove.
60451         * lib/dirchownmod.c: Don't include lib/lchown.h.
60452         * lib/fchownat.c: Likewise.
60453         * lib/openat.c: Likewise.
60454         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60455         does not follow symlinks.
60456         (EOPNOTSUPP): Define if not defined.
60457         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60458         is defined to 0.
60459         (lchown): New decl.
60460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60461         Do not check for lchown decl.
60462         Set REPLACE_LCHOWN.
60463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60464         REPLACE_LCHOWN.
60465         * modules/chown: Make it clear it follows symlinks.
60466         * modules/lchown: Make it clear it doesn't follow symlinks.
60467         (Files): Remove lib/lchown.h
60468         (Depends-on): Add unistd.
60469         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60470         (Include): Include <unistd.h>, not "lchown.h".
60471         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60472         REPLACE_LCHOWN.
60474 2007-06-15  Jim Meyering  <jim@meyering.net>
60476         Change license (GPL to LGPL) of fsusage and dependents.
60477         * modules/fsusage (License): Change to LGPL.
60478         * modules/full-read (License): Likewise.
60479         * modules/full-write (License): Likewise.
60480         * modules/safe-read (License): Likewise.
60481         * modules/safe-write (License): Likewise.
60483 2007-06-14  Ben Pfaff  <blp@gnu.org>
60485         Missing part of allocsa -> malloca transition.
60486         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60487         gl_MALLOCA.
60489 2007-06-12  Bruno Haible  <bruno@clisp.org>
60491         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60492         to ia64, x86_64, i386.
60493         Reported by Eric Blake.
60495 2007-06-12  Bruno Haible  <bruno@clisp.org>
60497         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60498         cross-compiling to x86_64.
60500 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60503         glitch reported by Ralf Wildenhues in
60504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60506         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60507         Vin Shelton.
60509 2007-06-11  Bruno Haible  <bruno@clisp.org>
60511         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60512         replacement string.
60513         Reported by Eric Blake.
60515 2007-06-10  Bruno Haible  <bruno@clisp.org>
60517         Prepare vasnprintf code for use with Unicode strings.
60518         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60519         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60520         TYPE_U32_STRING.
60521         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60522         a_u32_string variants.
60523         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60524         * lib/printf-args.c: Don't include config.h and the specification
60525         header if PRINTF_FETCHARGS is already defined.
60526         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60527         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60528         TYPE_U16_STRING, TYPE_U32_STRING.
60529         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60530         u16_directive, u16_directives, u32_directive, u32_directives): New
60531         types.
60532         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60533         New declarations.
60534         * lib/printf-parse.c: Don't include config.h and the specification
60535         header if PRINTF_PARSE is already defined. Eliminate the set of
60536         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60537         them now. Include c-ctype.h.
60538         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60539         directive and CHAR_T_ONLY_ASCII.
60540         * lib/vasnprintf.c: Don't include config.h and the specification header
60541         if VASNPRINTF is already defined.
60542         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60543         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60544         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60545         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60546         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60547         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60548         code accordingly.
60549         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60550         pad_ourselves also in this case, with the 'c' and 's' directives, and
60551         with a different notion of "width".
60552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60554 2007-06-10  Bruno Haible  <bruno@clisp.org>
60556         * modules/unistr/u32-mbsnlen: New file.
60557         * lib/unistr/u32-mbsnlen.c: New file.
60559         * modules/unistr/u16-mbsnlen: New file.
60560         * lib/unistr/u16-mbsnlen.c: New file.
60562         * modules/unistr/u8-mbsnlen: New file.
60563         * lib/unistr/u8-mbsnlen.c: New file.
60565         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60566         declarations.
60568 2007-06-10  Bruno Haible  <bruno@clisp.org>
60570         * lib/string_.h (mbsnlen): New declaration.
60571         * lib/mbsnlen.c: New file.
60572         * m4/mbsnlen.m4: New file.
60573         * modules/mbsnlen: New file.
60574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60575         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60576         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60578 2007-06-10  Bruno Haible  <bruno@clisp.org>
60580         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60582 2007-06-10  Bruno Haible  <bruno@clisp.org>
60584         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60585         * lib/mbuiter.h: Likewise.
60587 2007-06-10  Bruno Haible  <bruno@clisp.org>
60589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60590         declaration.
60592 2007-06-10  Karl Berry  <karl@gnu.org>
60594         * config/srclist.txt: remove gettext entries, Bruno prefers
60595         to update individually.
60597 2007-06-10  Bruno Haible  <bruno@clisp.org>
60599         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60600         'maxlen'. Ensure only length + width bytes are allocated, not
60601         length + 1 + width.
60603 2007-06-09  Bruno Haible  <bruno@clisp.org>
60605         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60606         (CHAR_T): Remove macro.
60607         (VASNPRINTF): Update.
60609 2007-06-09  Bruno Haible  <bruno@clisp.org>
60611         * MODULES.html.sh (Unicode string functions): Add the new modules.
60613         * modules/uniconv/u32-conv-to-enc: New file.
60614         * lib/uniconv/u32-conv-to-enc.c: New file.
60615         * modules/uniconv/u32-conv-to-enc-tests: New file.
60616         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60618         * modules/uniconv/u16-conv-to-enc: New file.
60619         * lib/uniconv/u16-conv-to-enc.c: New file.
60620         * lib/uniconv/u-conv-to-enc.h: New file.
60621         * modules/uniconv/u16-conv-to-enc-tests: New file.
60622         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60624         * modules/uniconv/u8-conv-to-enc: New file.
60625         * lib/uniconv/u8-conv-to-enc.c: New file.
60626         * modules/uniconv/u8-conv-to-enc-tests: New file.
60627         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60629         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60630         u32_conv_to_encoding): New declarations.
60632 2007-06-09  Bruno Haible  <bruno@clisp.org>
60634         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60636 2007-06-09  Bruno Haible  <bruno@clisp.org>
60638         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60639         * modules/malloca: Renamed from modules/allocsa, updated.
60640         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60641         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60642         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60643         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60644         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60645         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60646         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60647         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60648         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60649         * modules/c-strcasestr (Depends-on): Update.
60650         * lib/c-strcasestr.c: Update.
60651         * modules/c-strstr (Depends-on): Update.
60652         * lib/c-strstr.c: Update.
60653         * modules/canonicalize-lgpl (Depends-on): Update.
60654         * lib/canonicalize-lgpl.c: Update.
60655         * modules/clean-temp (Depends-on): Update.
60656         * lib/clean-temp.c: Update.
60657         * modules/csharpcomp (Depends-on): Update.
60658         * lib/csharpcomp.c: Update.
60659         * modules/csharpexec (Depends-on): Update.
60660         * lib/csharpexec.c: Update.
60661         * modules/javacomp (Depends-on): Update.
60662         * lib/javacomp.c: Update.
60663         * modules/javaexec (Depends-on): Update.
60664         * lib/javaexec.c: Update.
60665         * modules/mbscasestr (Depends-on): Update.
60666         * lib/mbscasestr.c: Update.
60667         * modules/mbsstr (Depends-on): Update.
60668         * lib/mbsstr.c: Update.
60669         * modules/setenv (Depends-on): Update.
60670         * lib/setenv.c: Update.
60671         * modules/strcasestr (Depends-on): Update.
60672         * lib/strcasestr.c: Update.
60673         * modules/striconveha (Depends-on): Update.
60674         * lib/striconveha.c: Update.
60675         * modules/relocatable-prog-wrapper (Files): Update.
60676         * lib/relocwrapper.c: Update.
60677         * build-aux/install-reloc: Update.
60678         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60680 2007-06-08  Bruno Haible  <bruno@clisp.org>
60682         Port to uClibc.
60683         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60684         * lib/fpurge.c (fpurge): Likewise.
60685         * lib/freading.c (freading): Likewise.
60686         * lib/fseeko.c (rpl_fseeko): Likewise.
60687         * lib/fseterr.c (fseterr): Likewise.
60688         * lib/fwriting.c (fwriting): Likewise.
60689         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60691 2007-06-08  Bruno Haible  <bruno@clisp.org>
60693         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60694         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60695         * modules/gettext (Files): Add m4/intlmacosx.m4.
60697 2007-06-07  Bruno Haible  <bruno@clisp.org>
60699         * modules/localename-tests: New file.
60700         * tests/test-localename.c: New file.
60702         New module 'localename'.
60703         * lib/localename.h: New file.
60704         * lib/localename.c: New file, from GNU gettext.
60705         * m4/localename.m4: New file.
60706         * modules/localename: New file.
60708 2007-06-07  Bruno Haible  <bruno@clisp.org>
60710         Work around the lack of <wchar.h> on some builds of uClibc.
60711         * doc/headers/wchar.texi: Update.
60712         * lib/wchar_.h: Include <wchar.h> only if it exists.
60713         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60714         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60715         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60716         doesn't exist.
60717         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60718         * modules/mbfile (Depends-on): Add wchar.
60719         * modules/mbiter (Depends-on): Likewise.
60720         * modules/mbuiter (Depends-on): Likewise.
60721         Reported by Simon Josefsson.
60723 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60725         Work around problem reported by Steven M. Schweda in
60726         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60727         Tru64 5.1B with the Compaq compiler environment installed declares
60728         an 'isblank' function but does not define it in the C library.
60729         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60730         * lib/regex_internal.h (isblank): Likewise.
60731         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60732         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60734 2007-06-05  Bruno Haible  <bruno@clisp.org>
60736         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60737         ia64.
60738         * modules/printf-safe: New file.
60739         * modules/fprintf-posix (Depends-on): Add printf-safe.
60740         * modules/printf-posix (Depends-on): Likewise.
60741         * modules/snprintf-posix (Depends-on): Likewise.
60742         * modules/sprintf-posix (Depends-on): Likewise.
60743         * modules/vasnprintf-posix (Depends-on): Likewise.
60744         * modules/vasprintf-posix (Depends-on): Likewise.
60745         * modules/vfprintf-posix (Depends-on): Likewise.
60746         * modules/vprintf-posix (Depends-on): Likewise.
60747         * modules/vsnprintf-posix (Depends-on): Likewise.
60748         * modules/vsprintf-posix (Depends-on): Likewise.
60749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60750         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60751         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60752         "no" on i386, x86_64, ia64.
60753         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60754         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60755         on i386, x86_64, ia64.
60756         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60757         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60758         on i386, x86_64, ia64.
60759         * tests/test-vasnprintf-posix.c: Include float.h.
60760         (LDBL80_WORDS): New macro.
60761         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60762         on i386, x86_64, ia64.
60763         * tests/test-vasprintf-posix.c: Include float.h.
60764         (LDBL80_WORDS): New macro.
60765         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60766         on i386, x86_64, ia64.
60767         * tests/test-snprintf-posix.c: Include float.h.
60768         * tests/test-sprintf-posix.c: Likewise.
60769         * tests/test-vsnprintf-posix.c: Likewise.
60770         * tests/test-vsprintf-posix.c: Likewise.
60772 2007-06-05  Bruno Haible  <bruno@clisp.org>
60774         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60775         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60776         non-IEEE numbers on i386, x86_64, ia64.
60777         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60778         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60779         * tests/test-isnanl.h: Include float.h.
60780         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60782 2007-06-05  Bruno Haible  <bruno@clisp.org>
60784         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60785         also the %a / %A. Handle the %a / %A code before this extra handling.
60787 2007-06-05  Bruno Haible  <bruno@clisp.org>
60789         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60790         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60792 2007-06-05  Bruno Haible  <bruno@clisp.org>
60794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60795         typo in variable name.
60797 2007-06-05  Eric Blake  <ebb9@byu.net>
60799         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60800         Reported by Simon Josefsson.
60802 2007-06-04  Bruno Haible  <bruno@clisp.org>
60804         Avoid test failures on some PowerPC platforms.
60805         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60806         Define differently for PowerPC.
60807         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60808         Reported by Gary V. Vaughan <gary@gnu.org>.
60810 2007-06-02  Bruno Haible  <bruno@clisp.org>
60812         Fix test-stdint failure on FreeBSD/ia64.
60813         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60814         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60815         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60816         * doc/headers/stdint.texi: Update.
60818 2007-06-01  Bruno Haible  <bruno@clisp.org>
60820         * tests/test-binary-io.c (main): Pass a third argument to open().
60821         Reported by Gary V. Vaughan <gary@gnu.org>.
60823 2007-06-01  Bruno Haible  <bruno@clisp.org>
60825         * doc/functions/frexpl.texi: Update for mingw.
60827 2007-06-01  Bruno Haible  <bruno@clisp.org>
60829         * tests/test-lseek.c (main): Disable test of errno for invalid third
60830         argument.
60831         * doc/functions/lseek.texi: Update.
60832         Reported by Gary V. Vaughan <gary@gnu.org>.
60834 2007-05-28  Bruno Haible  <bruno@clisp.org>
60836         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60838 2007-05-31  Eric Blake  <ebb9@byu.net>
60840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60841         cross compiling.
60843 2007-05-30  Eric Blake  <ebb9@byu.net>
60844         and Bruno Haible  <bruno@clisp.org>
60846         Work around mingw test failures exposed by m4-1.4.9b.
60847         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60848         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60849         moment.
60851 2007-05-30  Bruno Haible  <bruno@clisp.org>
60853         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60854         assuming that they are closed. Needed on HP-UX 11.
60856 2007-05-29  Bruno Haible  <bruno@clisp.org>
60858         Fix a problem with #include_next.
60859         * lib/dirent_.h: Split the double-inclusion guard.
60860         * lib/fcntl_.h: Likewise.
60861         * lib/float_.h: Likewise.
60862         * lib/iconv_.h: Likewise.
60863         * lib/inttypes_.h: Likewise.
60864         * lib/locale_.h: Likewise.
60865         * lib/math_.h: Likewise.
60866         * lib/netinet_in_.h: Likewise.
60867         * lib/search_.h: Likewise.
60868         * lib/signal_.h: Likewise.
60869         * lib/stdint_.h: Likewise.
60870         * lib/stdio_.h: Likewise.
60871         * lib/stdlib_.h: Likewise.
60872         * lib/string_.h: Likewise.
60873         * lib/sys_select_.h: Likewise.
60874         * lib/sys_socket_.h: Likewise.
60875         * lib/sys_stat_.h: Likewise.
60876         * lib/sys_time_.h: Likewise.
60877         * lib/sysexits_.h: Likewise.
60878         * lib/time_.h: Likewise.
60879         * lib/unistd_.h: Likewise.
60880         * lib/wchar_.h: Likewise.
60881         * lib/wctype_.h: Likewise.
60883 2007-05-29  Bruno Haible  <bruno@clisp.org>
60885         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60886         for the moment.
60888 2007-05-29  Bruno Haible  <bruno@clisp.org>
60890         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60891         invocation.
60892         Reported by Eric Blake.
60894 2007-05-29  Bruno Haible  <bruno@clisp.org>
60896         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60897         compiling case.
60899 2007-05-29  Eric Blake  <ebb9@byu.net>
60900             Bruno Haible  <bruno@clisp.org>
60902         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60903         cross compiles.
60905 2007-05-28  Eric Blake  <ebb9@byu.net>
60907         * modules/closein-tests (test_closein_LDADD): Support test on
60908         cygwin with libtool.
60910 2007-05-28  Bruno Haible  <bruno@clisp.org>
60912         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60913         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60914         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60915         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60916         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60917         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60918         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60919         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60920         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60922 2007-05-28  Eric Blake  <ebb9@byu.net>
60924         Unconditionally include <config.h> in unit tests.
60925         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60926         * tests/test-allocsa.c, tests/test-arcfour.c,
60927         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60928         tests/test-array_list.c, tests/test-array_oset.c,
60929         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60930         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60931         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60932         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60933         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60934         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60935         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60936         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60937         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60938         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60939         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60940         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60941         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60942         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60943         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60944         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60945         test-md5.c, test-memmem.c, test-printf-posix.c,
60946         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60947         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60948         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60949         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60950         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60951         test-vasnprintf-posix2.c, test-vasnprintf.c,
60952         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60953         test-vfprintf-posix.c, test-vprintf-posix.c,
60954         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60955         test-xvasprintf.c: Likewise.
60957 2007-05-28  Bruno Haible  <bruno@clisp.org>
60959         * gnulib-tool (func_import): Remember the --with-tests command-line
60960         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60961         Reported by Eric Blake.
60963 2007-05-28  Bruno Haible  <bruno@clisp.org>
60965         * modules/ftell-tests: New file.
60966         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60967         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60969         * lib/ftell.c: New file.
60970         * modules/ftell: New file.
60971         * m4/ftell.m4: New file.
60972         * doc/functions/ftell.texi: Update.
60973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60974         REPLACE_FTELL.
60975         * lib/stdio_.h (rpl_ftell): New declaration.
60976         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60977         REPLACE_FTELL.
60979 2007-05-28  Eric Blake  <ebb9@byu.net>
60981         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60983 2007-05-28  Bruno Haible  <bruno@clisp.org>
60985         * modules/fseek-tests: New file.
60986         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60987         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60989         * lib/fseek.c: New file.
60990         * modules/fseek: New file.
60991         * m4/fseek.m4: New file.
60992         * doc/functions/fseek.texi: Update.
60993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60994         REPLACE_FSEEK.
60995         * lib/stdio_.h (rpl_fseek): New declaration.
60996         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60997         REPLACE_FSEEK.
60999 2007-05-28  Bruno Haible  <bruno@clisp.org>
61001         * lib/stdio_.h (fflush): More comments.
61003 2007-05-28  Bruno Haible  <bruno@clisp.org>
61005         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61006         runtime test.
61008 2007-05-28  Eric Blake  <ebb9@byu.net>
61010         Improve lseek module.
61011         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61012         * lib/unistd_.h (lseek): Scale back link warning message.
61013         * tests/test-lseek.c: Beef up test.
61014         * tests/test-lseek.sh: Exercise more facets of lseek.
61015         Reported by Bruno Haible.
61017 2007-05-28  Bruno Haible  <bruno@clisp.org>
61019         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61020         to define.
61022 2007-05-27  Bruno Haible  <bruno@clisp.org>
61024         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61026 2007-05-27  Bruno Haible  <bruno@clisp.org>
61028         * modules/openmp: New file.
61029         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61030         Noah Misch.
61032 2007-05-26  Bruno Haible  <bruno@clisp.org>
61034         * modules/chdir-long (Depends-on): Add fchdir.
61035         * modules/chdir-safer (Depends-on): Likewise.
61036         * modules/fts (Depends-on): Likewise.
61037         * modules/fts-lgpl (Depends-on): Likewise.
61038         * modules/openat (Depends-on): Likewise.
61039         * modules/savewd (Depends-on): Likewise.
61041 2007-05-24  Eric Blake  <ebb9@byu.net>
61043         Fix lseek on mingw.
61044         * modules/lseek: New module.
61045         * m4/lseek.m4: New file.
61046         * lib/lseek.c: New file.
61047         * modules/lseek-tests: New file.
61048         * tests/test-lseek.c: New file.
61049         * tests/test-lseek.sh: New file.
61050         * MODULES.html.sh: Document lseek module.
61051         * modules/fflush (Depends-on): Add lseek, fseeko.
61052         * modules/fseeko (Depends-on): Likewise.
61053         * modules/ftello (Depends-on): Likewise.
61054         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61055         broken.
61056         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61057         broken.
61058         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61059         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61060         * lib/ftello.c (rpl_ftello): Likewise.
61061         * tests/test-fseeko.c (main): Test this.
61062         * tests/test-fseeko.sh: Likewise.
61063         * tests/test-ftello.c (main): Likewise.
61064         * tests/test-ftello.sh: Likewise.
61065         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61066         implies replacing fseek.
61067         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61068         HAVE_FTELLO.
61069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61070         * modules/unistd (Makefile.am): Likewise.
61071         * lib/unistd_.h (lseek): Declare a replacement.
61072         * doc/functions/lseek.texi (lseek): Document this fix.
61073         * doc/functions/fseek.texi (fseek): Likewise.
61074         * doc/functions/ftell.texi (ftell): Likewise.
61076 2007-05-24  Bruno Haible  <bruno@clisp.org>
61078         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61079         in the printed representation of a NaN.
61080         * tests/test-vasprintf-posix.c (test_function): Likewise.
61081         * tests/test-snprintf-posix.h (test_function): Likewise.
61082         * tests/test-sprintf-posix.h (test_function): Likewise.
61083         Reported by Eric Blake.
61085 2007-05-23  Eric Blake  <ebb9@byu.net>
61087         Fix fseeko/ftello on cygwin 1.5.24.
61088         * doc/functions/fseeko.texi (fseeko): Document the fix.
61089         * doc/functions/ftello.texi (ftello): Document the fix.
61090         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61091         * doc/functions/stdout.text (stdout): New file.
61092         * doc/functions/stderr.text (stderr): New file.
61093         * doc/gnulib.texi (Function Substitutes): Use new files.
61094         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61095         prior to 1.7.0.
61096         * tests/test-ftello.c (main): Likewise for ftello.
61097         * tests/test-fseeko.sh: New file.
61098         * tests/test-ftello.sh: New file.
61099         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61100         with seekable stdin.
61101         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61102         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61103         (gl_REPLACE_FSEEKO): New macro.
61104         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61105         * modules/fseeko (Files): Distribute fseeko.c.
61106         * modules/ftello (Files): Distribute ftello.c.
61107         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61108         mode.
61109         * lib/ftello.c (rpl_ftello): New file.
61110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61111         fseeko, ftello.
61112         (gl_STDIN_LARGE_OFFSET): New macro.
61113         * modules/stdio (Makefile.am): Perform the replacement.
61114         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61116 2007-05-23  Bruno Haible  <bruno@clisp.org>
61118         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61119         GNULIB_POSIXCHECK is defined.
61121 2007-05-21  Bruno Haible  <bruno@clisp.org>
61123         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61124         Check also the output for NaN arguments. When cross-compiling, guess
61125         no on IRIX.
61126         * lib/vasnprintf.c: Update comments.
61127         * tests/test-vasnprintf-posix.c (strisnan): New function.
61128         (test_function): Use it.
61129         * tests/test-vasprintf-posix.c (strisnan): New function.
61130         (test_function): Use it.
61131         * tests/test-snprintf-posix.h (strisnan): New function.
61132         (test_function): Use it.
61133         * tests/test-sprintf-posix.h (strisnan): New function.
61134         (test_function): Use it.
61135         Reported by Eric Blake.
61137 2007-05-20  Bruno Haible  <bruno@clisp.org>
61139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61140         numbers that fails on BeOS.
61141         * doc/functions/frexpl.texi: Update.
61143 2007-05-20  Jim Meyering  <jim@meyering.net>
61145         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61146         forced upon us by glibc-2.6.
61148 2007-05-20  Bruno Haible  <bruno@clisp.org>
61150         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61151         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61152         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61153         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61154         NEED_PRINTF_INFINITE.
61155         (is_infinitel): New function.
61156         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61158         gl_PREREQ_VASNPRINTF_INFINITE.
61159         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61161         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61162         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61163         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61164         gl_PREREQ_VASNPRINTF_INFINITE.
61165         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61166         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61167         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61168         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61169         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61170         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61171         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61172         * doc/functions/fprintf.texi: Update.
61173         * doc/functions/printf.texi: Update.
61174         * doc/functions/snprintf.texi: Update.
61175         * doc/functions/sprintf.texi: Update.
61176         * doc/functions/vfprintf.texi: Update.
61177         * doc/functions/vprintf.texi: Update.
61178         * doc/functions/vsnprintf.texi: Update.
61179         * doc/functions/vsprintf.texi: Update.
61181 2007-05-20  Bruno Haible  <bruno@clisp.org>
61183         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61184         was not found in libc.
61185         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61187 2007-05-20  Bruno Haible  <bruno@clisp.org>
61189         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61190         printed as "-nan" instead of "nan".
61191         * tests/test-vasprintf-posix.c (test_function): Likewise.
61192         * tests/test-snprintf-posix.h (test_function): Likewise.
61193         * tests/test-sprintf-posix.h (test_function): Likewise.
61194         Needed for HP-UX 11.
61196 2007-05-20  Jim Meyering  <jim@meyering.net>
61198         Fix buggy test for the fchownat-deref bug.
61199         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61200         symlink required for the run-test.  Without it, this test would
61201         always declare that fchownat doesn't work, and client code would
61202         unnecessarily use the replacement function with fixed libc.
61203         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61204         Reported by Greg Schafer.
61206 2007-05-19  Bruno Haible  <bruno@clisp.org>
61208         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61209         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61210         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61211         Needed for IRIX 6.5 and Solaris 2.5.1.
61213 2007-05-19  Bruno Haible  <bruno@clisp.org>
61215         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61216         (test_function): Skip tests involving -0.0 on platforms where
61217         -0.0 = 0.0.
61218         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61219         (test_function): Skip tests involving -0.0 on platforms where
61220         -0.0 = 0.0.
61221         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61222         (test_function): Skip tests involving -0.0 on platforms where
61223         -0.0 = 0.0.
61224         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61225         (test_function): Skip tests involving -0.0 on platforms where
61226         -0.0 = 0.0.
61227         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61228         tests.
61229         * tests/test-printf-posix.h (test_function): Likewise.
61230         * tests/test-printf-posix.output: Remove all -0.0 related results.
61231         Needed for IRIX 6.5.
61233 2007-05-19  Bruno Haible  <bruno@clisp.org>
61235         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61236         printed as "nan0x7fffffff" instead of "nan".
61237         * tests/test-vasprintf-posix.c (test_function): Likewise.
61238         * tests/test-snprintf-posix.h (test_function): Likewise.
61239         * tests/test-sprintf-posix.h (test_function): Likewise.
61240         * tests/test-fprintf-posix.h (NaN): Remove macro.
61241         (test_function): Remove all NaN related tests.
61242         * tests/test-printf-posix.h (NaN): Remove macro.
61243         (test_function): Remove all NaN related tests.
61244         * tests/test-printf-posix.output: Remove all NaN related results.
61245         Needed for IRIX 6.5.
61247 2007-05-19  Bruno Haible  <bruno@clisp.org>
61249         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61252 2007-05-19  Bruno Haible  <bruno@clisp.org>
61254         * lib/float_.h: New file.
61255         * m4/float_h.m4: New file.
61256         * modules/float: New file.
61257         * modules/isnanl (Dependencies): Add float.
61258         * modules/isnanl-nolibm (Dependencies): Likewise.
61259         * modules/mathl (Dependencies): Likewise.
61260         * modules/printf-frexpl (Dependencies): Likewise.
61261         * modules/signbit (Dependencies): Likewise.
61262         * modules/vasnprintf (Dependencies): Likewise.
61263         * doc/headers/float.texi: Update.
61265 2007-05-19  Jim Meyering  <jim@meyering.net>
61267         * lib/utimens.c (gl_futimens): Rename from futimens,
61268         now that glibc-2.6 declares futimens.
61269         * lib/utimens.h: Likewise.
61271 2007-05-19  Bruno Haible  <bruno@clisp.org>
61273         Avoid test failures on mingw.
61274         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61275         * tests/test-printf-posix.sh: Likewise.
61276         * tests/test-vfprintf-posix.sh: Likewise.
61277         * tests/test-vprintf-posix.sh: Likewise.
61279 2007-05-19  Bruno Haible  <bruno@clisp.org>
61281         Fix *printf result for NaN, Inf, -0.0 on mingw.
61282         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61283         * lib/vasnprintf.c: Include math.h and isnan.h.
61284         (is_infinite_or_zero): New function.
61285         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61286         values in the %f, %F, %e, %E, %g, %G directives.
61287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61288         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61289         gl_PRINTF_INFINITE and test its result. Invoke
61290         gl_PREREQ_VASNPRINTF_INFINITE.
61291         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61292         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61293         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61294         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61297         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61298         * doc/functions/fprintf.texi: Update.
61299         * doc/functions/printf.texi: Update.
61300         * doc/functions/snprintf.texi: Update.
61301         * doc/functions/sprintf.texi: Update.
61302         * doc/functions/vfprintf.texi: Update.
61303         * doc/functions/vprintf.texi: Update.
61304         * doc/functions/vsnprintf.texi: Update.
61305         * doc/functions/vsprintf.texi: Update.
61307 2007-05-19  Bruno Haible  <bruno@clisp.org>
61309         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61310         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61311         Instead of multiplying with 10^k, set extra_zeroes to k.
61312         (scale10_round_long_double): Remove function.
61314 2007-05-18  Bruno Haible  <bruno@clisp.org>
61316         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61317         introduced on 2007-05-06.
61319 2007-05-18  Bruno Haible  <bruno@clisp.org>
61321         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61322         %g directives.
61323         * tests/test-vasprintf-posix.c (test_function): Likewise.
61324         * tests/test-snprintf-posix.h (test_function): Likewise.
61325         * tests/test-sprintf-posix.h (test_function): Likewise.
61327 2007-05-18  Bruno Haible  <bruno@clisp.org>
61329         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61330         (strmatch): New function.
61331         (test_function): Test the %f directive on numbers of various exponents.
61332         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61333         (strmatch): New function.
61334         (test_function): Test the %f directive on numbers of various exponents.
61335         * tests/test-snprintf-posix.h (strmatch): New function.
61336         (test_function): Test the %f directive on numbers of various exponents.
61337         * tests/test-sprintf-posix.h (strmatch): New function.
61338         (test_function): Test the %f directive on numbers of various exponents.
61339         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61340         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61341         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61342         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61344 2007-05-18  Bruno Haible  <bruno@clisp.org>
61346         Add support for 'long double' number output.
61347         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61348         * lib/vasnprintf.c: Include math.h and float+.h.
61349         (mp_limb_t): New type.
61350         (GMP_LIMB_BITS): New macro.
61351         (mp_twolimb_t): New type.
61352         (GMP_TWOLIMB_BITS): New macro.
61353         (mpn_t): New type.
61354         (multiply, divide, convert_to_decimal, decode_long_double,
61355         scale10_round_long_double, scale10_round_decimal_long_double,
61356         floorlog10l): New functions.
61357         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61358         for the %f, %F, %e, %E, %g, %G directives.
61359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61361         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61362         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61370         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61371         * modules/snprintf-posix (Depends-on): Likewise.
61372         * modules/sprintf-posix (Depends-on): Likewise.
61373         * modules/vasnprintf-posix (Depends-on): Likewise.
61374         * modules/vasprintf-posix (Depends-on): Likewise.
61375         * modules/vfprintf-posix (Depends-on): Likewise.
61376         * modules/vsnprintf-posix (Depends-on): Likewise.
61377         * modules/vsprintf-posix (Depends-on): Likewise.
61378         * modules/vasnprintf (Files): Add lib/float+.h.
61379         * doc/functions/fprintf.texi: Update.
61380         * doc/functions/printf.texi: Update.
61381         * doc/functions/snprintf.texi: Update.
61382         * doc/functions/sprintf.texi: Update.
61383         * doc/functions/vfprintf.texi: Update.
61384         * doc/functions/vprintf.texi: Update.
61385         * doc/functions/vsnprintf.texi: Update.
61386         * doc/functions/vsprintf.texi: Update.
61388 2007-05-18  Bruno Haible  <bruno@clisp.org>
61390         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61392 2007-05-18  Bruno Haible  <bruno@clisp.org>
61394         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61395         for printing 64-bit integers. Needed for mingw.
61397 2007-05-18  Bruno Haible  <bruno@clisp.org>
61399         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61400         gl_FUNC_FREXPL_WORKS.
61401         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61403 2007-05-18  Bruno Haible  <bruno@clisp.org>
61405         * modules/frexpl-nolibm-tests: New file.
61407         * modules/frexpl-nolibm: New file.
61408         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61410 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61412         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61413         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61414         GCC 4.2, which otherwise issues a lot of warnings.
61415         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61416         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61417         Likewise.
61418         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61419         * modules/iconv_open (iconv.h): Likewise.
61420         * modules/locale (locale.h): Likewise.
61421         * modules/netinet_in (netinet/in.h): Likewise.
61422         * modules/sys_select (sys_select.h): Likewise.
61423         * modules/sys_socket (sys/socket.h): Likewise.
61424         * modules/sys_stat (sys/stat.h): Likewise.
61425         * modules/sysexits (sysexits.h): Likewise.
61426         * modules/unistd (unistd.h): Likewise.
61428 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61430         * modules/closein-tests (Makefile.am): Distribute
61431         `test-closein.sh'.
61433 2007-05-17  Bruno Haible  <bruno@clisp.org>
61435         * tests/test-printf-posix.output: Renamed from
61436         tests/test-fprintf-posix.out.
61437         * modules/fprintf-posix-tests: Update.
61438         * modules/printf-posix-tests: Update.
61439         * modules/vfprintf-posix-tests: Update.
61440         * modules/vprintf-posix-tests: Update.
61441         * tests/test-fprintf-posix.sh: Update.
61442         * tests/test-printf-posix.sh: Update.
61443         * tests/test-vfprintf-posix.sh: Update.
61444         * tests/test-vprintf-posix.sh: Update.
61445         Reported by Ralf Wildenhues.
61447 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61449         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61450         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61451         GCC 4.2, which otherwise issues a lot of warnings.
61452         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61453         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61454         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61455         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61456         it should no longer be needed.
61457         * lib/string_.h: Likewise.
61458         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61459         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61460         * modules/inttypes (inttypes.h): Likewise.
61461         * modules/math (math.h): Likewise.
61462         * modules/search (search.h): Likewise.
61463         * modules/signal (signal.h): Likewise.
61464         * modules/stdint (stdint.h): Likewise.
61465         * modules/stdio (stdio.h): Likewise.
61466         * modules/stdlib (stdlib.h): Likewise.
61467         * modules/string (string.h): Likewise.
61468         * modules/sys_time (sys/time.h): Likewise.
61469         * modules/time (time.h): Likewise.
61470         * modules/wchar (wchar.h): Likewise.
61471         * modules/wctype (wtype.h): Likewise.
61473 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61475         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61477 2007-05-13  Bruno Haible  <bruno@clisp.org>
61479         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61480         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61481         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61482         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61483         (gl_PREREQ_STRTOK_R): Don't require it here.
61485 2007-05-13  Bruno Haible  <bruno@clisp.org>
61487         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61488         when used in C++ mode.
61490 2007-05-12  Bruno Haible  <bruno@clisp.org>
61492         * lib/linebuffer.h: Tweak doc.
61493         * lib/linebuffer.c: Likewise.
61495 2007-05-12  James Youngman  <jay@gnu.org>
61497         * lib/linebuffer.c (readlinebuffer_delim): New function,
61498         like readlinebuffer, but use a caller-specified delimiter.
61499         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61500         as the delimiter.
61501         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61503 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61505         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61506         * modules/openat (Files): Remove openat-die.c.
61507         (Depends-on): Add openat-die.
61508         * modules/openat-die: New module.
61510 2007-05-06  Bruno Haible  <bruno@clisp.org>
61512         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61513         Update with info about Cygwin.
61514         * doc/functions/fprintf.texi: Update.
61515         * doc/functions/printf.texi: Update.
61516         * doc/functions/snprintf.texi: Update.
61517         * doc/functions/sprintf.texi: Update.
61518         * doc/functions/vfprintf.texi: Update.
61519         * doc/functions/vprintf.texi: Update.
61520         * doc/functions/vsnprintf.texi: Update.
61521         * doc/functions/vsprintf.texi: Update.
61522         Reported by Eric Blake.
61524 2007-05-06  Bruno Haible  <bruno@clisp.org>
61526         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61527         padding ourselves for the floating-point directives.
61528         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61531         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61532         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61533         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61534         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61540         * tests/test-snprintf-posix.h (test_function): Also check the width
61541         and some flags in the %f directive.
61542         * tests/test-sprintf-posix.h (test_function): Likewise.
61543         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61544         * tests/test-vasprintf-posix.c (test_function): Likewise.
61545         * doc/functions/fprintf.texi: Update.
61546         * doc/functions/printf.texi: Update.
61547         * doc/functions/snprintf.texi: Update.
61548         * doc/functions/sprintf.texi: Update.
61549         * doc/functions/vfprintf.texi: Update.
61550         * doc/functions/vprintf.texi: Update.
61551         * doc/functions/vsnprintf.texi: Update.
61552         * doc/functions/vsprintf.texi: Update.
61554 2007-05-06  Bruno Haible  <bruno@clisp.org>
61556         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61557         pass the ' flag character to sprintf or snprintf.
61558         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61561         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61562         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61570         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61571         flag.
61572         * tests/test-sprintf-posix.h (test_function): Likewise.
61573         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61574         * tests/test-vasprintf-posix.c (test_function): Likewise.
61575         * doc/functions/fprintf.texi: Update.
61576         * doc/functions/printf.texi: Update.
61577         * doc/functions/snprintf.texi: Update.
61578         * doc/functions/sprintf.texi: Update.
61579         * doc/functions/vfprintf.texi: Update.
61580         * doc/functions/vprintf.texi: Update.
61581         * doc/functions/vsnprintf.texi: Update.
61582         * doc/functions/vsprintf.texi: Update.
61584 2007-05-01  Bruno Haible  <bruno@clisp.org>
61586         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61588 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61590         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61591         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61593 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61595         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61596         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61599 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61601         * lib/argp-help.c (struct hol_entry): New member `ord'.
61602         (HOL_ENTRY_PTRCMP): Use ord for comparison
61603         (hol_sort): Initialize ord.
61605 2007-05-01  Bruno Haible  <bruno@clisp.org>
61607         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61608         Reported by Eric Blake.
61609         * doc/gnulib.texi (Function Substitutes): Update.
61611 2007-05-01  Bruno Haible  <bruno@clisp.org>
61613         * doc/functions.texi: Remove file, now redundant through
61614         doc/functions/*.texi.
61616 2007-05-01  Bruno Haible  <bruno@clisp.org>
61618         * modules/argp (Depends-on): Add sleep.
61620 2007-05-01  Bruno Haible  <bruno@clisp.org>
61622         * modules/sleep-tests: New file.
61623         * tests/test-sleep.c: New file.
61625         * modules/sleep: New file.
61626         * lib/sleep.c: New file.
61627         * m4/sleep.m4: New file.
61628         * lib/unistd_.h (sleep): New declaration.
61629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61630         HAVE_SLEEP.
61631         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61632         * doc/functions/sleep.texi: Document the sleep module.
61634 2007-05-01  Bruno Haible  <bruno@clisp.org>
61636         * lib/sigprocmask.h: Remove file.
61637         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61638         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61639         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61640         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61641         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61642         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61643         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61644         HAVE_SIGSET_T as a shell variable.
61645         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61646         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61647         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61648         (Depends-on): Add signal. Remove verify.
61649         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61650         (Include): Mention <signal.h> instead of sigprocmask.h.
61651         * NEWS: Mention the change.
61652         * lib/fatal-signal.c: Don't include sigprocmask.h.
61654 2007-05-01  Bruno Haible  <bruno@clisp.org>
61656         * modules/signal: New file.
61657         * lib/signal_.h: New file.
61658         * m4/signal_h.m4: New file.
61660 2007-05-01  Bruno Haible  <bruno@clisp.org>
61662         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61663         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61664         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61665         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61667 2007-05-01  Bruno Haible  <bruno@clisp.org>
61669         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61670         configure time.
61671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61672         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61673         * modules/sys_stat (Makefile.am): Substitute their values into
61674         sys/stat.h.
61676 2007-05-01  Bruno Haible  <bruno@clisp.org>
61678         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61679         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61680         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61682 2007-05-01  Bruno Haible  <bruno@clisp.org>
61684         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61685         'assert' module here.
61687 2007-05-01  Bruno Haible  <bruno@clisp.org>
61689         * doc/functions/*.texi: New files.
61690         * doc/functions/google-ranking.txt: New file.
61691         * doc/gnulib.texi (Function Substitutes): New chapter.
61692         (ctime, inet_ntoa): Remove sections.
61693         * doc/ctime.texi: Remove file.
61694         * doc/inet_ntoa.texi: Remove file.
61695         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61696         dependencies.
61697         (%.info): New rule, specifying a --reference-limit.
61699 2007-05-01  Bruno Haible  <bruno@clisp.org>
61701         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61703 2007-05-01  Bruno Haible  <bruno@clisp.org>
61705         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61706         the portability of 'mkdir' to mingw systems.
61708 2007-05-01  Bruno Haible  <bruno@clisp.org>
61710         * doc/headers/google-ranking.txt: New file.
61712 2007-04-30  Eric Blake  <ebb9@byu.net>
61714         Prefer fseeko to fseek.
61715         * modules/getpass (Depends-on): Add fseeko.
61716         * lib/getpass.c (getpass): Use fseeko, not fseek.
61718 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61720         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61721         assumes the sorting is stable, while most qsort implementations
61722         are not.  Use argument addresses to ensure they never compare as
61723         equal.
61725         * tests/test-argp-2.sh (usage-indent test): Fix output
61726         (func_compare): Restore diff options
61727         * tests/test-argp.c: Restore #include "progname.h"
61729 2007-04-29  Bruno Haible  <bruno@clisp.org>
61731         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61733         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61735         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61736         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61737         (TESTS, check_PROGRAMS): Add test-snprintf.
61738         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61739         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61740         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61741         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61742         assertions that fail on HP-UX, OSF/1, or IRIX.
61743         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61745 2007-04-29  Bruno Haible  <bruno@clisp.org>
61747         * MODULES.html.sh (posix_functions): Remove 'contents'.
61749 2007-04-29  Karl Berry  <karl@gnu.org>
61751         * config/srclist.txt (gendocs_template_min): new entry.
61753 2007-04-29  Bruno Haible  <bruno@clisp.org>
61755         Work around fpurge bug on BSD systems.
61756         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61757         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61758         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61759         fpurge to rpl_fpurge if the system already has this function.
61760         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61761         the case where the system already has this function. Correct invariants
61762         on BSD systems.
61763         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61764         BSD systems.
61766 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61768         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61769         proposed by Sven Verdoolaege.
61771         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61772         options.
61773         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61774         (usage and help tests): Update
61776 2007-04-29  Bruno Haible  <bruno@clisp.org>
61778         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61779         Print more information in case of failure. Disable a test on BeOS.
61781 2007-04-29  Bruno Haible  <bruno@clisp.org>
61783         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61784         This helps debugging on systems on which no gdb is available.
61786 2007-04-29  Bruno Haible  <bruno@clisp.org>
61788         * lib/freading.h: Improve comments.
61789         * lib/fwriting.h: Likewise.
61790         * tests/test-freading.c (main): Don't check freading immediately after
61791         repositioning. Needed for glibc.
61793 2007-04-29  Bruno Haible  <bruno@clisp.org>
61795         * lib/freading.c (freading): Trivial simplification.
61797 2007-04-28  Bruno Haible  <bruno@clisp.org>
61799         * tests/test-fwriting.c (main): Also test the interaction between
61800         fflush and fwriting.
61801         * modules/fwriting-tests (Depends-on): Add fflush.
61803         * tests/test-freading.c (main): Also test the interaction between
61804         fflush and freading.
61805         * modules/freading-tests (Depends-on): Add fflush.
61807 2007-04-28  Bruno Haible  <bruno@clisp.org>
61809         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61810         fseeko and ftello.
61811         Suggested by Eric Blake.
61813 2007-04-28  Jim Meyering  <jim@meyering.net>
61815         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61816         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61817         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61819 2007-04-27  Eric Blake  <ebb9@byu.net>
61821         * doc/headers/assert.texi (assert.h): Document assert module use.
61823 2007-04-27  Bruno Haible  <bruno@clisp.org>
61825         * doc/headers/*.texi: New files.
61826         * doc/gnulib.texi (Header File Substitutes): New chapter.
61827         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61828         dependencies.
61829         (standards.info ,standards.html, standards.dvi): Update dependencies.
61830         (mostlyclean, clean): New targets.
61832 2007-04-27  Bruno Haible  <bruno@clisp.org>
61834         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61835         * modules/sysexits (Files, Makefile.am): Update.
61837         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61838         * modules/sys_socket (Files, Makefile.am): Update.
61840         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61841         * modules/sys_stat (Files, Makefile.am): Update.
61843 2007-04-27  Eric Blake  <ebb9@byu.net>
61845         * lib/freading.h: Improve comments.
61846         * lib/fwriting.h: Likewise.
61847         * lib/fflush.c: Likewise.
61849         Fix closein for mingw.
61850         * modules/closein-tests: Add tests for closein.
61851         * tests/test-closein.c: New file.
61852         * tests/test-closein.sh: Likewise.
61853         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61854         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61856 2007-04-27  Bruno Haible  <bruno@clisp.org>
61858         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61859         version is < 6.
61860         * lib/math_.h [__DECC]: Likewise.
61861         * lib/stdio_.h [__DECC]: Likewise.
61862         * lib/stdlib_.h [__DECC]: Likewise.
61863         * lib/string_.h [__DECC]: Likewise.
61864         * lib/time_.h [__DECC]: Likewise.
61865         * lib/wchar_.h [__DECC]: Likewise.
61866         * lib/wctype_.h [__DECC]: Likewise.
61868 2007-04-27  Bruno Haible  <bruno@clisp.org>
61870         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61872 2007-04-27  Bruno Haible  <bruno@clisp.org>
61874         * lib/fflush.c: Add comments.
61875         * modules/fpurge-tests (Depends-on): Add fflush.
61876         * modules/freadable-tests (Depends-on): Likewise.
61877         * modules/fwritable-tests (Depends-on): Likewise.
61879 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61881         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61882         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61883         Report by Bruno Haible <bruno@clisp.org>.
61885 2007-04-26  Eric Blake  <ebb9@byu.net>
61887         Fix fflush on mingw.
61888         * modules/fflush (Depends-on): Add freading.
61889         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61890         but unread data.
61892 2007-04-26  Eric Blake  <ebb9@byu.net>
61893         and Bruno Haible  <bruno@clisp.org>
61895         Implement freading and fwriting.
61896         * lib/freading.c: New file.
61897         * lib/freading.h: Likewise.
61898         * m4/freading.m4: Likewise.
61899         * modules/freading: Likewise.
61900         * modules/freading-tests: Likewise.
61901         * tests/test-freading.c: Likewise.
61902         * lib/fwriting.c: New file.
61903         * lib/fwriting.h: Likewise.
61904         * m4/fwriting.m4: Likewise.
61905         * modules/fwriting: Likewise.
61906         * modules/fwriting-tests: Likewise.
61907         * tests/test-fwriting.c: Likewise.
61908         * MODULES.html.sh (File stream based Input/Output): Mention them.
61910 2007-04-26  Bruno Haible  <bruno@clisp.org>
61912         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61913         'long' when we assume it.
61914         Suggested by Eric Blake.
61916 2007-04-26  Bruno Haible  <bruno@clisp.org>
61918         Ensure fseeko, ftello are declared on glibc systems.
61919         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61920         * modules/fseeko (configure.ac-early): Likewise.
61921         * modules/ftello (configure.ac-early): Likewise.
61922         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61923         AC_FUNC_FSEEKO for this.
61924         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61925         (gl_CHECK_FSEEKO): Remove macro.
61927 2007-04-26  Bruno Haible  <bruno@clisp.org>
61929         * tests/test-fflush.c (main): Also check the ftell result after
61930         fflush and fseek/fseeko.
61931         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61932         file descriptor position cache in the stream.
61933         * lib/fseeko.c (rpl_fseeko): Likewise.
61935 2007-04-26  Bruno Haible  <bruno@clisp.org>
61937         * modules/fflush-tests (Depends-on): Add fseeko.
61939 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61940             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61942         * lib/argz_.h: ensure error_t definition is obtained in same
61943         mechanism system argz.h would have.
61944         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61945         argz facilities are known bad.  Err on the side of caution if
61946         cross-compiling.
61948 2007-04-25  Eric Blake  <ebb9@byu.net>
61950         * lib/fpurge.c (includes): Use stdlib.h for free.
61951         * tests/test-fflush.c (main): Also test fflush-fseeko.
61953 2007-04-25  Bruno Haible  <bruno@clisp.org>
61955         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61956         * lib/fseeko.c: New file.
61957         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61958         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61959         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61960         gl_FUNC_FSEEKO.
61961         (gl_FUNC_FSEEKO): Invoke it.
61962         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61963         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61964         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61966 2007-04-25  Bruno Haible  <bruno@clisp.org>
61968         * modules/fflush (Depends-on): Add ftello.
61970 2007-04-25  Bruno Haible  <bruno@clisp.org>
61972         * modules/ftello-tests: New file.
61973         * tests/test-ftello.c: New file.
61975         * modules/ftello: New file.
61976         * m4/ftello.m4: New file.
61977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61978         HAVE_FTELLO.
61979         * lib/stdio_.h (ftello): New declaration.
61980         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61981         HAVE_FTELLO.
61983 2007-04-25  Bruno Haible  <bruno@clisp.org>
61985         * modules/fseeko-tests: New file.
61986         * tests/test-fseeko.c: New file.
61988         * modules/fseeko: New file.
61989         * m4/fseeko.m4: New file.
61990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61991         HAVE_FSEEKO.
61992         * lib/stdio_.h (fseeko): New declaration.
61993         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61994         HAVE_FSEEKO.
61996 2007-04-25  Bruno Haible  <bruno@clisp.org>
61998         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62000 2007-04-25  Bruno Haible  <bruno@clisp.org>
62002         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62003         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62004         * tests/test-unistd.c: Likewise.
62005         * tests/test-fcntl.c: Likewise.
62007 2007-04-23  Eric Blake  <ebb9@byu.net>
62009         * lib/fflush.c: Fix missing include.
62010         Reported by Bruno Haible.
62012 2007-04-23  Bruno Haible  <bruno@clisp.org>
62014         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62015         Reported by Eric Blake.
62017 2007-04-23  Bruno Haible  <bruno@clisp.org>
62019         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62021 2007-04-23  Bruno Haible  <bruno@clisp.org>
62023         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62025 2007-04-23  Bruno Haible  <bruno@clisp.org>
62027         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62028         Needed on HP-UX 11.
62030 2007-04-16  Eric Blake  <ebb9@byu.net>
62032         Make fflush rely on fpurge.
62033         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62034         open coding all variants.
62035         * modules/fflush (Depends-on): Add fpurge and unistd.
62036         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62037         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62039         Fix --with-tests compilation on cygwin.
62040         * modules/argmatch-tests (Makefile.am): List gnulib library first
62041         in LDADD.
62042         * modules/argp-tests (Makefile.am): Likewise.
62043         * modules/array-list-tests (Makefile.am): Likewise.
62044         * modules/array-oset-tests (Makefile.am): Likewise.
62045         * modules/avltree-list-tests (Makefile.am): Likewise.
62046         * modules/avltree-oset-tests (Makefile.am): Likewise.
62047         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62048         * modules/carray-list-tests (Makefile.am): Likewise.
62049         * modules/dirname-tests (Makefile.am): Likewise.
62050         * modules/frexp-tests (Makefile.am): Likewise.
62051         * modules/isnanl-tests (Makefile.am): Likewise.
62052         * modules/linked-list-tests (Makefile.am): Likewise.
62053         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62054         * modules/lock-tests (Makefile.am): Likewise.
62055         * modules/rbtree-list-tests (Makefile.am): Likewise.
62056         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62057         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62058         * modules/tls-tests (Makefile.am): Likewise.
62059         * modules/tsearch-tests (Makefile.am): Likewise.
62060         * modules/xvasprintf-tests (Makefile.am): Likewise.
62062         Fix fpurge for cygwin.
62063         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62064         value.
62065         * modules/fpurge-tests (Depends-on): Clean up trash.
62067 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62069         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62071         * m4/autobuild.m4: Re-indent.
62073 2007-04-13  Bruno Haible  <bruno@clisp.org>
62075         * modules/fpurge-tests: New file.
62076         * tests/test-fpurge.c: New file.
62078         * modules/fpurge: New file.
62079         * lib/fpurge.h: New file.
62080         * lib/fpurge.c: New file.
62081         * m4/fpurge.m4: New file.
62083 2007-04-13  Bruno Haible  <bruno@clisp.org>
62085         * modules/fbufmode-tests: New file.
62086         * tests/test-fbufmode.c: New file.
62088         * modules/fbufmode: New file.
62089         * lib/fbufmode.h: New file.
62090         * lib/fbufmode.c: New file.
62091         * m4/fbufmode.m4: New file.
62093 2007-04-13  Bruno Haible  <bruno@clisp.org>
62095         * modules/fwritable-tests: New file.
62096         * tests/test-fwritable.c: New file.
62098         * modules/fwritable: New file.
62099         * lib/fwritable.h: New file.
62100         * lib/fwritable.c: New file.
62101         * m4/fwritable.m4: New file.
62103 2007-04-13  Bruno Haible  <bruno@clisp.org>
62105         * modules/freadable-tests: New file.
62106         * tests/test-freadable.c: New file.
62108         * modules/freadable: New file.
62109         * lib/freadable.h: New file.
62110         * lib/freadable.c: New file.
62111         * m4/freadable.m4: New file.
62113 2007-04-13  Bruno Haible  <bruno@clisp.org>
62115         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62116         MOSTLYCLEANFILES.
62118 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62120         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62121         gzip bootstrap.conf to avoid dragging in i18n machinery.
62122         (gnulib_tool_option): Use it.
62124 2007-04-13  Bruno Haible  <bruno@clisp.org>
62126         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62127         %F directives.
62128         * tests/test-vasprintf-posix.c (test_function): Likewise.
62129         * tests/test-snprintf-posix.h (test_function): Likewise.
62130         * tests/test-sprintf-posix.h (test_function): Likewise.
62131         * tests/test-fprintf-posix.h (test_function): Likewise.
62132         * tests/test-printf-posix.h (test_function): Likewise.
62133         * tests/test-fprintf-posix.out: Likewise.
62135 2007-04-13  Bruno Haible  <bruno@clisp.org>
62137         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62138         * modules/tls-tests (configure.ac): Likewise.
62139         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62141 2007-04-13  Bruno Haible  <bruno@clisp.org>
62143         * lib/tls.c (glthread_tls_get): Fix return type.
62144         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62146 2007-04-12  Eric Blake  <ebb9@byu.net>
62148         * modules/gettime (Depends-on): Remove gettime.
62149         Reported by Dmitry V. Levin.
62151 2007-04-12  Bruno Haible  <bruno@clisp.org>
62153         * modules/fflush (Include): Mention <stdio.h>.
62154         * modules/strtoimax (Include): Mention <inttypes.h>.
62155         * modules/strtoumax (Include): Likewise.
62157 2007-04-12  Eric Blake  <ebb9@byu.net>
62159         * .cvsignore: New file.
62160         * .gitignore: Likewise.
62162 2007-04-12  Bruno Haible  <bruno@clisp.org>
62164         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62165         not before, since $(LDADD) often contains libgnu.a.
62166         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62167         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62168         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62169         Needed on Cygwin.
62171 2007-04-12  Eric Blake  <ebb9@byu.net>
62173         Work around glibc's failure to flush stdin on fclose.
62174         * lib/closein.c (close_stdin): Flush stdin before closing.
62176         Work around glibc's failure to reset seekable stdin on exit.
62177         * modules/closein: New module.
62178         * lib/closein.c: New file.
62179         * lib/closein.h: Likewise.
62180         * m4/closein.m4: Likewise.
62181         * MODULES.html.sh (File stream based Input/Output): Document it.
62183 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62185         * gnulib-tool: Rename generated 'autobuild' script to
62186         'do-autobuild' in --create-megatestdir output.
62188         * doc/gnulib.texi (Build robot for gnulib): Fix.
62190 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62192         * modules/sysexits (Depends-on): Add absolute-header.
62194 2007-04-12  Eric Blake  <ebb9@byu.net>
62196         No need to preserve errno on success.
62197         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62198         Reported by Bruno Haible.
62200 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62202         * MODULES.html.sh (Support for maintaining and releasing
62203         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62205 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62207         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62209 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62211         * modules/autobuild: New module.
62213         * m4/autobuild.m4: New file.
62215 2007-04-11  Bruno Haible  <bruno@clisp.org>
62217         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62218         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62221         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62234         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62235         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62237         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62238         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62240         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62241         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62242         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62243         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62244         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62245         Reported by Eric Blake.
62247 2007-04-11  Bruno Haible  <bruno@clisp.org>
62249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62251 2007-04-10  Bruno Haible  <bruno@clisp.org>
62253         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62254         for NaN and Infinity. Needed on FreeBSD 6.1.
62255         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62256         regarding results for "%010a" of Infinity and NaN.
62257         * tests/test-vasprintf-posix.c (test_function): Likewise.
62258         * tests/test-snprintf-posix.h (test_function): Likewise.
62259         * tests/test-sprintf-posix.h (test_function): Likewise.
62260         * tests/test-fprintf-posix.h (test_function): Likewise.
62261         * tests/test-printf-posix.h (test_function): Likewise.
62262         * tests/test-fprintf-posix.out: Likewise.
62264 2007-04-10  Bruno Haible  <bruno@clisp.org>
62266         * modules/locale-tests: New file.
62267         * tests/test-locale.c: New file.
62269         * modules/locale: New file.
62270         * lib/locale_.h: New file.
62271         * m4/locale_h.m4: New file.
62273 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62274             Bruno Haible  <bruno@clisp.org>
62276         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62277         be determined, test for availability of the copysignf, copysign,
62278         copysignl functions.
62279         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62280         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62281         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62283 2007-04-09  Eric Blake  <ebb9@byu.net>
62285         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62286         * modules/stdio (Makefile.am): Support fflush.
62287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62288         * modules/fflush: New file.
62289         * lib/fflush.c: Likewise.
62290         * m4/fflush.m4: Likewise.
62291         * modules/fflush-tests: New test.
62292         * tests/test-fflush.c: Likewise.
62293         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62295 2007-04-06  Bruno Haible  <bruno@clisp.org>
62297         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62298         (VASNPRINTF): Use signbit for faster determination whether to print a
62299         minus sign.
62300         * modules/vasnprintf (Files): Remove lib/float+.h.
62301         * modules/fprintf-posix (Depends-on): Add signbit.
62302         * modules/snprintf-posix (Depends-on): Likewise.
62303         * modules/sprintf-posix (Depends-on): Likewise.
62304         * modules/vasnprintf-posix (Depends-on): Likewise.
62305         * modules/vasprintf-posix (Depends-on): Likewise.
62306         * modules/vfprintf-posix (Depends-on): Likewise.
62307         * modules/vsnprintf-posix (Depends-on): Likewise.
62308         * modules/vsprintf-posix (Depends-on): Likewise.
62310 2007-04-06  Bruno Haible  <bruno@clisp.org>
62312         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62313         * tests/test-frexpl.c (main): Likewise.
62314         * tests/test-ldexpl.c (main): Likewise.
62315         * modules/frexp-tests (Depends-on): Add signbit.
62316         * modules/frexpl-tests (Depdends-on): Likewise.
62317         * modules/ldexpl-tests (Depdends-on): Likewise.
62319 2007-04-06  Bruno Haible  <bruno@clisp.org>
62321         * modules/signbit-tests: New file.
62322         * tests/test-signbit.c: New file.
62324         * modules/signbit: New file.
62325         * lib/signbitf.c: New file.
62326         * lib/signbitd.c: New file.
62327         * lib/signbitl.c: New file.
62328         * m4/signbit.m4: New file.
62329         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62330         (signbit): New macro.
62331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62332         REPLACE_SIGNBIT.
62333         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62334         REPLACE_FREXPL into math.h.
62336 2007-04-06  Bruno Haible  <bruno@clisp.org>
62338         * modules/isnanf-nolibm-tests: New file.
62339         * tests/test-isnanf.c: New file.
62341         * modules/isnanf-nolibm: New file.
62342         * lib/isnanf.h: New file.
62343         * lib/isnanf.c: New file.
62344         * lib/isnan.c: Consider the USE_FLOAT macro.
62345         * m4/isnanf.m4: New file.
62347 2007-04-06  Bruno Haible  <bruno@clisp.org>
62349         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62350         (Link): New section.
62352         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62354 2007-04-06  Bruno Haible  <bruno@clisp.org>
62356         Assume the 'long double' type.
62357         * m4/longdouble.m4: Remove file.
62358         * config/srclist.txt: Don't mention longdouble.m4.
62359         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62360         * lib/float+.h: Likewise.
62361         * lib/frexp.c: Likewise.
62362         * lib/printf-args.h: Likewise.
62363         * lib/printf-args.c: Likewise.
62364         * lib/printf-frexp.c: Likewise.
62365         * lib/printf-parse.c: Likewise.
62366         * lib/vasnprintf.c: Likewise.
62367         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62368         * m4/intl.m4: Likewise.
62369         * m4/isnanl.m4: Likewise.
62370         * m4/printf.m4: Likewise.
62371         * m4/printf-frexpl.m4: Likewise.
62372         * m4/vasnprintf.m4: Likewise.
62373         * modules/allocsa (Files): Remove m4/longdouble.m4.
62374         * modules/gettext (Files): Likewise.
62375         * modules/relocatable-prog-wrapper (Files): Likewise.
62376         * modules/vasnprintf (Files): Likewise.
62377         * modules/isnanl (Files): Likewise.
62378         (Include): Simplify.
62379         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62380         (Include): Simplify.
62381         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62382         (Include): Simplify.
62383         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62384         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62385         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62386         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62387         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62388         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62389         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62390         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62391         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62392         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62393         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62394         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62395         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62396         * tests/test-isnanl.c: Likewise.
62397         * tests/test-snprintf-posix.h: Likewise.
62398         * tests/test-sprintf-posix.h: Likewise.
62399         * tests/test-vasnprintf-posix.c: Likewise.
62400         * tests/test-vasnprintf-posix2.c: Likewise.
62401         * tests/test-vasprintf-posix.c: Likewise.
62403 2007-04-06  Bruno Haible  <bruno@clisp.org>
62405         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62406         * lib/math_.h [__DECC]: Include the overridden include file through
62407         #include_next, outside the double-inclusion guard.
62408         * lib/stdio_.h [__DECC]: Likewise.
62409         * lib/stdlib_.h [__DECC]: Likewise.
62410         * lib/string_.h [__DECC]: Likewise.
62411         * lib/time_.h [__DECC]: Likewise.
62412         * lib/wchar_.h [__DECC]: Likewise.
62413         * lib/wctype_.h [__DECC]: Likewise.
62414         * lib/inttypes_.h [__DECC]: Likewise.
62415         Reported by Albert Chin <china@thewrittenword.com> in
62416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62418 2007-04-04  Eric Blake  <ebb9@byu.net>
62420         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62421         1.5.x.
62423 2007-04-04  Bruno Haible  <bruno@clisp.org>
62425         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62426         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62428 2007-04-04  Bruno Haible  <bruno@clisp.org>
62430         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62431         results for "%010a" of Infinity and NaN.
62432         * tests/test-vasprintf-posix.c (test_function): Likewise.
62433         * tests/test-snprintf-posix.h (test_function): Likewise.
62434         * tests/test-sprintf-posix.h (test_function): Likewise.
62435         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62436         * tests/test-printf-posix.h (test_function): Likewise.
62437         * tests/test-fprintf-posix.out: Update.
62438         Needed for FreeBSD 6.1.
62440 2007-04-04  Bruno Haible  <bruno@clisp.org>
62442         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62443         directly used by the gnulib modules nor by gnulib-tool.
62445 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62447         * DEPENDENCIES: Give overall description of version dependency
62448         desirability.  Use more-typical names for apps.
62449         Add shell, coreutils, diffutils, grep, tar, gzip.
62451 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62453         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62455 2007-04-04  Karl Berry  <karl@gnu.org>
62457         * MODULES.html.sh (func_module): missing '.
62459 2007-04-03  Bruno Haible  <bruno@clisp.org>
62461         * modules/argmatch-tests (Makefile.am): New variable
62462         test_argmatch_LDADD.
62463         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62464         * modules/array-list-tests (Makefile.am): New variable
62465         test_array_list_LDADD.
62466         * modules/array-oset-tests (Makefile.am): New variable
62467         test_array_oset_LDADD.
62468         * modules/avltree-list-tests (Makefile.am): New variable
62469         test_avltree_list_LDADD.
62470         * modules/avltree-oset-tests (Makefile.am): New variable
62471         test_avltree_oset_LDADD.
62472         * modules/avltreehash-list-tests (Makefile.am): New variable
62473         test_avltreehash_list_LDADD.
62474         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62475         test_canonicalize_lgpl_LDADD.
62476         * modules/carray-list-tests (Makefile.am): New variable
62477         test_carray_list_LDADD.
62478         * modules/dirname-tests (Makefile.am): New variable
62479         test_dirname_LDADD.
62480         * modules/linked-list-tests (Makefile.am): New variable
62481         test_linked_list_LDADD.
62482         * modules/linkedhash-list-tests (Makefile.am): New variable
62483         test_linkedhash_list_LDADD.
62484         * modules/rbtree-list-tests (Makefile.am): New variable
62485         test_rbtree_list_LDADD.
62486         * modules/rbtree-oset-tests (Makefile.am): New variable
62487         test_rbtree_oset_LDADD.
62488         * modules/rbtreehash-list-tests (Makefile.am): New variable
62489         test_rbtreehash_list_LDADD.
62490         * modules/xvasprintf-tests (Makefile.am): New variable
62491         test_xvasprintf_LDADD.
62492         Reported by Eric Blake.
62494 2007-04-03  Eric Blake  <ebb9@byu.net>
62496         * DEPENDENCIES: Weaken m4 requirements.
62498 2007-04-03  Bruno Haible  <bruno@clisp.org>
62500         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62501         * modules/isnanl-tests (configure.ac): Likewise.
62503 2007-04-03  Ben Pfaff  <blp@gnu.org>
62505         * modules/iconv_open: Add $(srcdir)/ to source directory
62506         references in Makefile fragments that call gperf, to fix VPATH
62507         builds.
62509 2007-04-03  Bruno Haible  <bruno@clisp.org>
62511         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62512         * lib/ldexpl.c: Undo last change.
62514 2007-04-03  Bruno Haible  <bruno@clisp.org>
62516         * modules/printf-frexpl (Depends-on): Undo last change.
62517         (Files): Add m4/ldexpl.m4.
62519 2007-04-03  Bruno Haible  <bruno@clisp.org>
62521         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62522         * modules/isnanl (Link): New section.
62524         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62525         * modules/frexp (Link): New section.
62527         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62528         * modules/frexpl (Link): New section.
62530         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62531         * modules/ldexpl (Link): New section.
62533 2007-04-03  Bruno Haible  <bruno@clisp.org>
62535         * modules/TEMPLATE-EXTENDED: New file.
62536         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62538 2007-04-03  Bruno Haible  <bruno@clisp.org>
62540         * DEPENDENCIES: New file.
62541         Suggested by Simon Josefsson.
62543 2007-04-03  Bruno Haible  <bruno@clisp.org>
62545         * doc/gnulib.texi: Escape @.
62547 2007-04-03  James Youngman  <jay@gnu.org>
62548         and Paul Eggert  <eggert@cs.ucla.edu>
62550         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62551         birthtime on all systems that have birthtime, not just those which
62552         use st_birthtimensec rather than st_birthtim.  Putting zero in
62553         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62554         that the birth time is not available for files on an NFS mount.
62556 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62558         * modules/memxor: Move back from crypto/, suggested by Bruno.
62559         * modules/crypto/hmac-sha1: Fix memxor dependency.
62561         * modules/crypto/gc: Moved from ../.
62563 2007-04-02  Eric Blake  <ebb9@byu.net>
62565         * lib/ldexpl.c (includes): Avoid libm.
62567         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62569 2007-04-02  Bruno Haible  <bruno@clisp.org>
62571         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62572         on IRIX.
62574 2007-04-02  Bruno Haible  <bruno@clisp.org>
62576         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62577         x86 or x86_64 platforms running MacOS X.
62578         Reported by Ryan Schmidt <@ryandesign.com>.
62580 2007-04-02  Bruno Haible  <bruno@clisp.org>
62582         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62583         i386.
62585 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62587         * modules/crypto/arcfour: Moved from ../.
62588         * modules/crypto/arcfour-tests: Moved from ../.
62589         * modules/crypto/arctwo: Moved from ../.
62590         * modules/crypto/arctwo-tests: Moved from ../.
62591         * modules/crypto/des: Moved from ../.
62592         * modules/crypto/des-tests: Moved from ../.
62593         * modules/crypto/gc-arcfour: Moved from ../.
62594         * modules/crypto/gc-arcfour-tests: Moved from ../.
62595         * modules/crypto/gc-arctwo: Moved from ../.
62596         * modules/crypto/gc-arctwo-tests: Moved from ../.
62597         * modules/crypto/gc-des: Moved from ../.
62598         * modules/crypto/gc-des-tests: Moved from ../.
62599         * modules/crypto/gc-hmac-md5: Moved from ../.
62600         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62601         * modules/crypto/gc-hmac-sha1: Moved from ../.
62602         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62603         * modules/crypto/gc-md2: Moved from ../.
62604         * modules/crypto/gc-md2-tests: Moved from ../.
62605         * modules/crypto/gc-md4: Moved from ../.
62606         * modules/crypto/gc-md4-tests: Moved from ../.
62607         * modules/crypto/gc-md5: Moved from ../.
62608         * modules/crypto/gc-md5-tests: Moved from ../.
62609         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62610         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62611         * modules/crypto/gc-random: Moved from ../.
62612         * modules/crypto/gc-rijndael: Moved from ../.
62613         * modules/crypto/gc-rijndael-tests: Moved from ../.
62614         * modules/crypto/gc-sha1: Moved from ../.
62615         * modules/crypto/gc-sha1-tests: Moved from ../.
62616         * modules/crypto/gc-tests: Moved from ../.
62617         * modules/crypto/hmac-md5: Moved from ../.
62618         * modules/crypto/hmac-md5-tests: Moved from ../.
62619         * modules/crypto/hmac-sha1: Moved from ../.
62620         * modules/crypto/hmac-sha1-tests: Moved from ../.
62621         * modules/crypto/md2: Moved from ../.
62622         * modules/crypto/md2-tests: Moved from ../.
62623         * modules/crypto/md4: Moved from ../.
62624         * modules/crypto/md4-tests: Moved from ../.
62625         * modules/crypto/md5: Moved from ../.
62626         * modules/crypto/md5-tests: Moved from ../.
62627         * modules/crypto/memxor: Moved from ../.
62628         * modules/crypto/rijndael: Moved from ../.
62629         * modules/crypto/rijndael-tests: Moved from ../.
62630         * modules/crypto/sha1: Moved from ../.
62632 2007-03-30  James Youngman  <jay@gnu.org>
62634         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62635         rename() to change the ctime of a file (because ctime is unaffected
62636         by rename on jfs2 on AIX 5.1).
62637         (main): Start by doing cleanup, in case a previous run failed leaving
62638         test files behind.
62640 2007-03-31  Bruno Haible  <bruno@clisp.org>
62642         Support old proprietary implementations of iconv.
62643         * modules/iconv_open: New file.
62644         * lib/iconv_.h: New file.
62645         * m4/iconv_h.m4: New file.
62646         * lib/iconv_open.c: New file.
62647         * lib/iconv_open-aix.gperf: New file.
62648         * lib/iconv_open-hpux.gperf: New file.
62649         * lib/iconv_open-irix.gperf: New file.
62650         * lib/iconv_open-osf.gperf: New file.
62651         * m4/iconv_open.m4: New file.
62652         * modules/linebreak (Depends-on): Add iconv_open.
62653         * modules/striconv (Depends-on): Likewise.
62654         * modules/striconveh (Depends-on): Likewise.
62655         * modules/unicodeio (Depends-on): Likewise.
62656         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62657         (iconv_t)(-1).
62658         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62659         conversion if cd is (iconv_t)(-1).
62660         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62661         is not possible.
62663 2007-03-31  Bruno Haible  <bruno@clisp.org>
62665         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62666         work on Solaris either. Protect also second use of "autodetect_jp".
62668 2007-03-31  Bruno Haible  <bruno@clisp.org>
62670         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62671         the function is not present.
62673 2007-03-31  Bruno Haible  <bruno@clisp.org>
62675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62676         the function is not present.
62678 2007-03-31  Bruno Haible  <bruno@clisp.org>
62680         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62681         a bug in HP-UX iconv_open().
62683 2007-03-31  Bruno Haible  <bruno@clisp.org>
62685         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62686         (Mathematics <math.h>): New section, add fpieee.
62687         (Input/output <stdio.h>): Add fseterr.
62688         (Mathematics <math.h>): New section, add printf-frexp.
62689         (Container data structures): Add sublist.
62690         (Core language properties): Add fpucw, inline.
62691         (Functions for greatest-width integer types <inttypes.h>): Add
62692         imaxabs, imaxdiv, inttypes.
62693         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62694         isnanl-nolibm, ldexp.
62695         (Mathematics <math.h>): New section, add printf-frexpl.
62696         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62697         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62698         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62699         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62700         (Unicode string functions): Add unistr/u*-mbtoucr.
62701         (Java): Add javacomp-script, javaexec-script.
62702         (C#): Add csharpcomp-script, csharpexec-script.
62703         (Support for building libraries and executables): Add havelib,
62704         relocatable-*.
62705         (Support for maintaining and releasing projects): Renamed from
62706         'Support for maintaining and release projects'. Add announce-gen.
62708 2007-03-31  Bruno Haible  <bruno@clisp.org>
62710         * README: Talk primarily about git.
62711         (git and CVS): Renamed from CVS.
62712         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62713         gnulib is available through git.
62714         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62716 2007-03-30  Bruno Haible  <bruno@clisp.org>
62718         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62719         * lib/poll_.h: Likewise.
62720         * lib/stat_.h: Likewise.
62721         * lib/sys_time_.h: Likewise.
62722         * lib/sysexit_.h: Likewise.
62723         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62724         * lib/stdbool_.h: Likewise.
62725         * lib/byteswap_.h: Add double-inclusion guard.
62727 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62729         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62731 2007-03-30  Karl Berry  <karl@gnu.org>
62733         * config/srclist-update: double space after USA in the license
62734         substitution, since that's how it's usually (?) written.
62736 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62738         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62739         reported by Bruno Haible.
62741 2007-03-29  Bruno Haible  <bruno@clisp.org>
62743         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62744         a bug in AIX iconv().
62746 2007-03-29  Bruno Haible  <bruno@clisp.org>
62748         * modules/ldexpl-tests: New file.
62749         * tests/test-ldexpl.c: New file.
62751 2007-03-29  Bruno Haible  <bruno@clisp.org>
62753         * lib/ldexpl.c: Include fpucw.h.
62754         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62755         multiplication.
62756         * modules/ldexpl (Depends-on): Add fpucw.
62758 2007-03-29  Bruno Haible  <bruno@clisp.org>
62760         * modules/ldexpl: New file.
62761         * m4/ldexpl.m4: New file.
62762         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62763         set.
62764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62765         REPLACE_LDEXPL.
62766         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62767         REPLACE_LDEXPL.
62768         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62769         gl_FUNC_LDEXPL_WORKS.
62770         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62771         * modules/mathl (Files): Remove lib/ldexpl.c.
62772         (Depends-on): Add ldexpl.
62774 2007-03-29  Bruno Haible  <bruno@clisp.org>
62776         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62778 2007-03-29  Bruno Haible  <bruno@clisp.org>
62780         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62781         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62782         and possibly also HP-UX.
62783         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62784         work on AIX, IRIX, HP-UX, OSF/1.
62785         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62786         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62787         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62788         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62789         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62790         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62792 2007-03-29  Bruno Haible  <bruno@clisp.org>
62794         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62796 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62798         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62799         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62801 2007-03-29  Eric Blake  <ebb9@byu.net>
62803         * lib/acl-internal.h: Remove redundant include.
62804         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62805         Cygwin when a file is locked.
62807 2007-03-29  Bruno Haible  <bruno@clisp.org>
62809         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62810         file.
62811         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62813 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62815         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62816         try to remove a parent directory if the child couldn't be removed
62817         (except for the first rmdir, which could fail because the child
62818         doesn't exist).  Problem reported by Jeff Blaine in
62819         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62821 2007-03-28  Bruno Haible  <bruno@clisp.org>
62823         * lib/striconveh.c (utf8conv_carefully): New function.
62824         (mem_cd_iconveh_internal): Invoke it.
62826 2007-03-28  Bruno Haible  <bruno@clisp.org>
62828         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62829         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62830         input.
62831         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62832         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62833         unistr/u8-uctomb.
62835 2007-03-28  Bruno Haible  <bruno@clisp.org>
62837         * modules/unistr/u8-mbtoucr: New file.
62838         * lib/unistr/u8-mbtoucr.c: New file.
62839         * modules/unistr/u16-mbtoucr: New file.
62840         * lib/unistr/u16-mbtoucr.c: New file.
62841         * modules/unistr/u16-mbtoucr: New file.
62842         * lib/unistr/u16-mbtoucr.c: New file.
62843         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62845 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62846             Bruno Haible  <bruno@clisp.org>
62848         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62849         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62850         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62852         * m4/stdio_h.m4: Add stubs for vasprintf too.
62854         * modules/stdio: Support vasprintf in sed command.
62856         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62857         vasprintf.h.  Add stdio module indicator.
62859         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62860         vasprintf.h.
62862         * lib/vasprintf.h: File removed.
62864         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62865         * lib/vasprintf.c: Ditto.
62866         * lib/xvasprintf.c: Ditto.
62867         * tests/test-vasprintf-posix.c: Ditto.
62868         * tests/test-vasprintf.c: Ditto.
62870 2007-03-27  Bruno Haible  <bruno@clisp.org>
62872         Make vasnprintf multithread-safe.
62873         * lib/vasnprintf.c (decimal_point_char): New function.
62874         (VASNPRINTF): Use it.
62875         Suggested by Simon Josefsson.
62877 2007-03-27  Eric Blake  <ebb9@byu.net>
62879         Support sub-second birthtime on cygwin.
62880         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62881         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62882         (get_stat_birthtime): Also work with st_birthtim.
62884 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62886         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62887         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62888         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62889         (get_stat_birthtime_ns): Simplify compile-time tests.
62890         (get_stat_birthtime): Change the API to look like
62891         get_stat_mtime etc., except return a negative tv_nsec on error.
62892         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62893         Don't check for "spare" fields.
62894         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62895         or for struct stat.st_birthtime, as these tests aren't used.
62896         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62898 2007-03-27  Bruno Haible  <bruno@clisp.org>
62900         * lib/stat-time.h: Include <sys/stat.h>.
62902 2007-03-27  James Youngman  <jay@gnu.org>
62904         * lib/stat-time.h (get_stat_birthtime): New function for
62905           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62906         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62907           and its variants.
62908         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62909         * modules/stat-time-test: New file.
62910         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62912 2007-03-26  Bruno Haible  <bruno@clisp.org>
62914         Better support of signalling NaNs.
62915         * lib/atanl.c: Include isnanl.h.
62916         (atanl): Perform test for NaN at the beginning of the function and
62917         through a call to isnanl.
62918         * lib/cosl.c: Include isnanl.h.
62919         (cosl): Perform test for NaN at the beginning of the function and
62920         through a call to isnanl.
62921         * lib/ldexpl.c: Include isnanl.h.
62922         (ldexpl): Perform test for NaN through a call to isnanl.
62923         * lib/logl.c: Include isnanl.h.
62924         (logl): Perform test for NaN at the beginning of the function and
62925         through a call to isnanl.
62926         * lib/sinl.c: Include isnanl.h.
62927         (sinl): Perform test for NaN at the beginning of the function and
62928         through a call to isnanl.
62929         * lib/sqrtl.c: Include isnanl.h.
62930         (sqrtl): Perform test for NaN at the beginning of the function and
62931         through a call to isnanl.
62932         * lib/tanl.c: Include isnanl.h.
62933         (tanl): Perform test for NaN at the beginning of the function and
62934         through a call to isnanl.
62935         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62936         * modules/mathl (Depends-on): Add isnanl.
62938 2007-03-26  Eric Blake  <ebb9@byu.net>
62940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62941         regression in logic sense of previous patch.
62943 2007-03-26  Bruno Haible  <bruno@clisp.org>
62945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62946         unportable shell command "if ! ...".
62947         Reported by Ralf Wildenhues.
62949 2007-03-25  Bruno Haible  <bruno@clisp.org>
62951         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62952         <sysexits.h> file, and only add EX_CONFIG.
62953         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62954         absolute file name and whether it is sufficient. Substitute also
62955         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62956         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62957         ABSOLUTE_SYSEXITS_H into sysexits.h.
62959 2007-03-25  Bruno Haible  <bruno@clisp.org>
62961         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62962         hints is NULL.
62964 2007-03-25  Bruno Haible  <bruno@clisp.org>
62966         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62967         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62969 2007-03-25  Bruno Haible  <bruno@clisp.org>
62971         * lib/vasnprintf.c: Include langinfo.h.
62972         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62973         multithread-safe.
62974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62977         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62978         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62980         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62982         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62983         Reported by Simon Josefsson.
62985 2007-03-25  Bruno Haible  <bruno@clisp.org>
62987         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62988         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62989         * modules/vasnprintf (Depends-on): Add stdint.
62991 2007-03-25  Bruno Haible  <bruno@clisp.org>
62993         * modules/fpieee: New file.
62994         * m4/fpieee.m4: New file.
62995         * modules/isnan-nolibm (Depends-on): Add fpieee.
62996         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62997         * modules/isnanl (Depends-on): Add fpieee.
62999 2007-03-25  Bruno Haible  <bruno@clisp.org>
63001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63003 2007-03-25  Bruno Haible  <bruno@clisp.org>
63005         Avoid test failures on IRIX 6.5.
63006         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63007         (main): Use it.
63008         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63009         macros.
63010         (main): Use them.
63012 2007-03-25  Bruno Haible  <bruno@clisp.org>
63014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63015         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63016         exists but doesn't work.
63017         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63018         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63020         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63021         math.h.
63023 2007-03-25  Bruno Haible  <bruno@clisp.org>
63025         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63026         returns inf. Needed on IRIX 6.5.
63028 2007-03-25  Bruno Haible  <bruno@clisp.org>
63030         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63031         (main): Use isnanl instead of x != x idiom.
63032         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63034         * tests/test-frexp.c: Include isnan.h.
63035         (main): Use isnan instead of x != x idiom.
63036         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63038 2007-03-25  Bruno Haible  <bruno@clisp.org>
63040         * tests/test-frexp.c (NaN): New function/macro.
63041         (main): Use it instead of 0.0 / 0.0.
63042         * tests/test-isnan.c (NaN): New function/macro.
63043         (main): Use it instead of 0.0 / 0.0.
63044         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63045         (test_function): Use it instead of 0.0 / 0.0.
63046         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63047         (test_function): Use it instead of 0.0 / 0.0.
63048         * tests/test-snprintf-posix.h (NaN): New function/macro.
63049         (test_function): Use it instead of 0.0 / 0.0.
63050         * tests/test-sprintf-posix.h (NaN): New function/macro.
63051         (test_function): Use it instead of 0.0 / 0.0.
63052         * tests/test-fprintf-posix.h (NaN): New function/macro.
63053         (test_function): Use it instead of 0.0 / 0.0.
63054         * tests/test-printf-posix.h (NaN): New function/macro.
63055         (test_function): Use it instead of 0.0 / 0.0.
63057         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63059 2007-03-25  Bruno Haible  <bruno@clisp.org>
63061         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63063 2007-03-25  Bruno Haible  <bruno@clisp.org>
63065         * lib/regexec.c (merge_state_with_log): Make static.
63067 2007-03-25  Bruno Haible  <bruno@clisp.org>
63069         * lib/trigl.c (kernel_rem_pio2): Make static.
63071 2007-03-25  Bruno Haible  <bruno@clisp.org>
63073         * lib/sincosl.c (sincosl_table): Make static.
63075 2007-03-25  Bruno Haible  <bruno@clisp.org>
63077         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63078         if the compiler does not support C99.
63080 2007-03-25  Bruno Haible  <bruno@clisp.org>
63082         * modules/time (Makefile.am): Ensure all rule action lines start with a
63083         tab.
63085 2007-03-24  Bruno Haible  <bruno@clisp.org>
63087         * modules/tsearch-tests: New file.
63088         * tests/test-tsearch.sh: New file.
63089         * tests/test-tsearch.c: New file, mostly copied from glibc.
63091         * modules/search-tests: New file.
63092         * tests/test-search.c: New file.
63094         * modules/search: New file.
63095         * lib/search_.h: New file, incorporating lib/tsearch.h.
63096         * m4/search_h.m4: New file.
63097         * lib/tsearch.h: Remove file.
63098         * lib/tsearch.c: Include search.h instead of tsearch.h.
63099         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63100         HAVE_TSEARCH.
63101         * modules/tsearch (Files): Remove lib/tsearch.h.
63102         (Depends-on): Add search.
63103         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63104         (Include): Change tsearch.h into search.h.
63106 2007-03-24  Bruno Haible  <bruno@clisp.org>
63108         * modules/fpucw: New file.
63109         * lib/fpucw.h: New file.
63110         * lib/frexp.c: Include fpucw.h.
63111         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63112         (FUNC): Use them.
63113         * lib/printf-frexp.c: Include fpucw.h.
63114         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63115         (FUNC): Use them.
63116         * lib/vasnprintf.c: Include fpucw.h.
63117         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63118         'long double' calculations.
63119         * tests/test-frexpl.c: Include fpucw.h.
63120         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63121         * tests/test-printf-frexpl.c: Include fpucw.h.
63122         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63123         * modules/frexpl (Depends-on): Add fpucw.
63124         * modules/printf-frexpl (Depends-on): Likewise.
63125         * modules/fprintf-posix (Depends-on): Likewise.
63126         * modules/snprintf-posix (Depends-on): Likewise.
63127         * modules/sprintf-posix (Depends-on): Likewise.
63128         * modules/vasnprintf-posix (Depends-on): Likewise.
63129         * modules/vasprintf-posix (Depends-on): Likewise.
63130         * modules/vfprintf-posix (Depends-on): Likewise.
63131         * modules/vsnprintf-posix (Depends-on): Likewise.
63132         * modules/vsprintf-posix (Depends-on): Likewise.
63133         * modules/frexpl-tests (Depends-on): Likewise.
63134         * modules/printf-frexpl-tests (Depends-on): Likewise.
63136 2007-03-24  Bruno Haible  <bruno@clisp.org>
63138         * lib/float+.h: New file.
63139         * lib/isnan.c: Include float+.h.
63140         (SIZE): New macro.
63141         (FUNC): Compare only SIZE bytes of the value.
63142         * lib/vasnprintf.c: Include float+.h.
63143         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63144         SIZEOF_LDBL or SIZEOF_DBL bytes.
63145         * modules/isnan-nolibm (Files): Add lib/float+.h.
63146         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63147         * modules/isnanl (Files): Add lib/float+.h.
63148         * modules/vasnprintf (Files): Add lib/float+.h.
63150 2007-03-24  Bruno Haible  <bruno@clisp.org>
63152         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63153         include isnanl-nolibm.h.
63155 2007-03-24  Bruno Haible  <bruno@clisp.org>
63157         * tests/test-read-file.c (main): Don't produce spurious output for
63158         expected situations. Make the test fail if it encountered unexpected
63159         results.
63161 2007-03-24  Bruno Haible  <bruno@clisp.org>
63163         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63164         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63166 2007-03-24  Bruno Haible  <bruno@clisp.org>
63168         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63170 2007-03-24  Bruno Haible  <bruno@clisp.org>
63172         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63173         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63175         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63176         * modules/utf8-ucs4: Turn into a symbolic link to module
63177         unistr/u8-mbtouc.
63179         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63180         utf8-ucs4-unsafe.
63181         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63182         unistr/u8-mbtouc-unsafe.
63184         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63185         * modules/utf16-ucs4: Turn into a symbolic link to module
63186         unistr/u16-mbtouc.
63188         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63189         utf16-ucs4-unsafe.
63190         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63191         unistr/u16-mbtouc-unsafe.
63193         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63194         * modules/ucs4-utf8: Turn into a symbolic link to module
63195         unistr/u8-ubtomb.
63197         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63198         * modules/ucs4-utf16: Turn into a symbolic link to module
63199         unistr/u16-ubtomb.
63201 2007-03-24  Bruno Haible  <bruno@clisp.org>
63203         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63204         Enable the function only if HAVE_INLINE.
63205         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63206         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63207         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63208         Enable the function only if HAVE_INLINE.
63209         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63210         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63211         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63212         Enable the function only if HAVE_INLINE.
63213         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63214         Enable the function only if HAVE_INLINE.
63215         * modules/utf8-ucs4: Update.
63216         * modules/utf8-ucs4-unsafe: Update.
63217         * modules/utf16-ucs4: Update.
63218         * modules/utf16-ucs4-unsafe: Update.
63219         * modules/ucs4-utf8: Update.
63220         * modules/ucs4-utf16: Update.
63222 2007-03-24  Bruno Haible  <bruno@clisp.org>
63224         * lib/utf8-ucs4.h: Remove file.
63225         * lib/utf8-ucs4-unsafe.h: Remove file.
63226         * lib/utf16-ucs4.h: Remove file.
63227         * lib/utf16-ucs4-unsafe.h: Remove file.
63228         * lib/ucs4-utf8.h: Remove file.
63229         * lib/ucs4-utf16.h: Remove file.
63230         * lib/unistr.h: Include their previous contents.
63231         * m4/utf-ucs4.m4: Remove file.
63232         * m4/ucs4-utf.m4: Remove file.
63233         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63234         (Depends-on): Add unistr/base.
63235         (configure.ac): Remove gl_UTF_UCS4.
63236         (Makefile.am): Update.
63237         (Include): Change to unistr.h.
63238         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63239         (Depends-on): Add unistr/base.
63240         (configure.ac): Remove gl_UTF_UCS4.
63241         (Makefile.am): Update.
63242         (Include): Change to unistr.h.
63243         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63244         (Depends-on): Add unistr/base.
63245         (configure.ac): Remove gl_UTF_UCS4.
63246         (Makefile.am): Update.
63247         (Include): Change to unistr.h.
63248         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63249         (Depends-on): Add unistr/base.
63250         (configure.ac): Remove gl_UTF_UCS4.
63251         (Makefile.am): Update.
63252         (Include): Change to unistr.h.
63253         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63254         (Depends-on): Add unistr/base.
63255         (configure.ac): Remove gl_UCS4_UTF.
63256         (Makefile.am): Update.
63257         (Include): Change to unistr.h.
63258         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63259         (Depends-on): Add unistr/base.
63260         (configure.ac): Remove gl_UCS4_UTF.
63261         (Makefile.am): Update.
63262         (Include): Change to unistr.h.
63263         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63264         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63265         utf8-ucs4-unsafe.h.
63266         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63267         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63268         utf16-ucs4-unsafe.h.
63269         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63270         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63271         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63272         * lib/unistr/u8-strchr.c: Likewise.
63273         * lib/unistr/u8-strrchr.c: Likewise.
63274         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63275         * lib/unistr/u16-strchr.c: Likewise.
63276         * lib/unistr/u16-strrchr.c: Likewise.
63277         * lib/striconveh.c: Update.
63278         * lib/linebreak.c: Update.
63280 2007-03-24  Bruno Haible  <bruno@clisp.org>
63282         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63283         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63285 2007-03-22  Bruno Haible  <bruno@clisp.org>
63287         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63289 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63291         * MODULES.html.sh (File system functions): New module write-any-file.
63292         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63293         * m4/write-any-file.m4: New files.
63295 2007-03-23  Eric Blake  <ebb9@byu.net>
63297         * gnulib-tool: Rearrange space-tab sequences, since some editors
63298         like to eat them.
63300 2007-03-23  Eric Blake  <ebb9@byu.net>
63302         * lib/version-etc.c (version_etc_va): Update license wording to
63303         be more concise.  Recommended by Richard Stallman.
63305 2007-03-22  Bruno Haible  <bruno@clisp.org>
63307         * lib/poll.c (MSG_PEEK): New fallback definition.
63309 2007-03-22  Bruno Haible  <bruno@clisp.org>
63311         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63312         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63313         (main): Update.
63314         Fixes a compilation error on BeOS.
63316 2007-03-22  Bruno Haible  <bruno@clisp.org>
63318         * modules/frexpl-tests: New file.
63319         * tests/test-frexpl.c: New file.
63321         * modules/frexpl: New file.
63322         * m4/frexpl.m4: New file.
63323         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63324         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63326         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63327         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63328         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63330 2007-03-22  Bruno Haible  <bruno@clisp.org>
63332         * lib/frexpl.c: Share code with lib/frexp.c.
63333         * modules/mathl (Files): Add lib/frexp.c.
63334         (Depends-on): Add isnanl-nolibm.
63336 2007-03-22  Bruno Haible  <bruno@clisp.org>
63338         * modules/printf-frexp (Files): Add m4/frexp.m4.
63339         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63340         only if the found frexp function actually works.
63342 2007-03-22  Bruno Haible  <bruno@clisp.org>
63344         * lib/frexp.c: Remove older implementation that uses divisions.
63346 2007-03-21  Bruno Haible  <bruno@clisp.org>
63348         * modules/frexp-tests: New file.
63349         * tests/test-frexp.c: New file.
63351         * modules/frexp: New file.
63352         * lib/frexp.c: New file.
63353         * m4/frexp.m4: New file.
63354         * lib/math_.h (frexp): New declaration.
63355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63356         REPLACE_FREXP.
63357         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63359 2007-03-21  Bruno Haible  <bruno@clisp.org>
63361         * modules/isnanl-tests: New file.
63362         * tests/test-isnanl.c: New file.
63364         * modules/isnanl: New file.
63365         * lib/isnanl.h: New file.
63366         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63367         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63368         gl_FUNC_ISNANL_WORKS.
63369         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63370         New macros.
63372 2007-03-21  Bruno Haible  <bruno@clisp.org>
63374         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63375         lib/isnanl.h.
63376         (Include): Update.
63377         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63378         * lib/vasnprintf.c: Update.
63379         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63380         tests/test-isnanl.h, remove tests/test-isnanl.c.
63381         (Makefile.am): Update.
63382         * tests/test-isnanl-nolibm.c: New file.
63383         * tests/test-isnanl.h: New file.
63384         * tests/test-isnanl.c: Remove file.
63386 2007-03-21  Jim Meyering  <jim@meyering.net>
63388         When trying to open ".", treat ESTALE like EACCES.
63389         * lib/savewd.c (savewd_save): Resort to forking not just upon
63390         failure with EACCES, but also when errno is ESTALE.
63392 2007-03-20  Bruno Haible  <bruno@clisp.org>
63394         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63395         Needed on AIX 5.1. Reported by Matthew Woehlke.
63397 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63399         Suggestions by Bruno Haible:
63400         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63401         our own.
63402         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63403         * modules/acl (Depends-on): Add gettext.
63405 2007-03-19  Bruno Haible  <bruno@clisp.org>
63407         * modules/iconvme: Remove file.
63408         * lib/iconvme.h: Remove file.
63409         * lib/iconvme.c: Remove file.
63410         * m4/iconvme.m4: Remove file.
63412 2007-03-19  Bruno Haible  <bruno@clisp.org>
63414         * doc/relocatable-maint.texi: Break long shell script line.
63415         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63417 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63419         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63420         handle file_has_acl.
63421         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63422         * lib/acl.c: Move header inclusions and related macro defns into
63423         lib/acl-internal.h.
63424         (S_ISLNK): Remove defn, since that's now done for us.
63425         (file_has_acl): Move to lib/file-has-acl.c.
63426         Call acl_trivial if available.  This is the crucial part of the fix.
63427         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63428         shared within the library.  Rewrite a bit, partly to make it compatible
63429         with the GNU coding style.
63430         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63431         Remove unnecessary double-quotes.
63432         Don't test for acl_to_text; the build will catch that.
63433         Replace acl_entries if it doesn't exist and it is needed.
63434         Check for -lsec and acl_trivial (as used on Solaris 10).
63435         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63436         lib/file-has-acl.c.
63437         (Depends-on): Add sys_stat, for S_ISLNK.
63439 2007-03-19  Ben Pfaff  <blp@gnu.org>
63441         * doc/gnulib.texi: Fix typos.
63442         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63444 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63446         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63447         If size is zero here, buf must be zero.
63449 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63451         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63452         <bruno@clisp.org>.
63454 2007-03-18  Bruno Haible  <bruno@clisp.org>
63456         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63457         Suggested by Eric Blake.
63459 2007-03-18  Ben Pfaff  <blp@gnu.org>
63461         * doc/relocatable.texi: Recommend using as prefix a directory
63462         that does not exist and will never be created.  Based on
63463         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63464         and others.
63466 2007-03-17  Bruno Haible  <bruno@clisp.org>
63468         * lib/fchownat.c: Include lchown.h.
63470 2007-03-17  Bruno Haible  <bruno@clisp.org>
63472         Fix endless loop when the given allocated size was > INT_MAX.
63473         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63474         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63475         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63476         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63477         * lib/sprintf.c (sprintf): Likewise.
63479 2007-03-17  Bruno Haible  <bruno@clisp.org>
63481         * tests/test-argp-2.sh (func_compare): Output a context diff.
63483 2007-03-17  Bruno Haible  <bruno@clisp.org>
63485         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63486         locale's decimal-point character.
63488 2007-03-17  Bruno Haible  <bruno@clisp.org>
63490         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63491         before comparing it. Needed because on some platforms (e.g. x86) a
63492         'long double' occupies less bytes than sizeof (long double).
63494 2007-03-17  Bruno Haible  <bruno@clisp.org>
63496         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63497         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63498         * tests/test-getaddrinfo.c (simple): Likewise.
63499         * tests/test-read-file.c (main): Likewise.
63501 2007-03-17  Bruno Haible  <bruno@clisp.org>
63503         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63505 2007-03-17  Bruno Haible  <bruno@clisp.org>
63507         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63508         unused variable.
63510 2007-03-17  Bruno Haible  <bruno@clisp.org>
63512         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63513         * tests/test-c-strncasecmp.c: Likewise.
63515 2007-03-17  Bruno Haible  <bruno@clisp.org>
63517         * modules/stdlib (Depends-on): Add unistd.
63518         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63519         Needed for MacOS X 10.3.
63521 2007-03-17  Bruno Haible  <bruno@clisp.org>
63523         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63525 2007-03-17  Bruno Haible  <bruno@clisp.org>
63527         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63529 2007-03-17  Bruno Haible  <bruno@clisp.org>
63531         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63532         to reflect files copied from gnulib (with or without modifications).
63533         Suggested by Jim Meyering.
63535 2007-03-17  Eric Blake  <ebb9@byu.net>
63537         * NEWS: Document stdlib change from 2007-02-18.
63539 2007-03-17  Jim Meyering  <jim@meyering.net>
63541         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63542         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63543         someone uses a name containing shell meta-characters.
63544         Reported by Alfred M. Szmidt.
63546         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63548 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63550         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63551         and copy gettext configuration files only if configure.ac contains
63552         a use of AM_GNU_GETTEXT_VERSION.
63554 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63556         * build-aux/bootstrap (gnulib_name): New variable.
63557         (gnulib_tool_options): Use it.
63559 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63561         * tests/test-des.c: Use new namespace.
63563 2007-03-15  Bruno Haible  <bruno@clisp.org>
63565         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63566         Reported by James Youngman <jay@gnu.org>.
63568 2007-03-15  Bruno Haible  <bruno@clisp.org>
63570         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63571         declared prototype. Needed with cc on OSF/1 5.1.
63573 2007-03-15  Bruno Haible  <bruno@clisp.org>
63575         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63576         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63577         (struct gl_list_implementation): Add dispose_fn argument to the
63578         'create_empty', 'create' methods.
63579         (struct gl_list_impl_base): Add field 'dispose_fn'.
63580         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63581         argument.
63582         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63583         dispose_fn argument.
63584         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63585         dispose_fn on the dropped values.
63586         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63587         dispose_fn argument.
63588         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63589         dropped values.
63590         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63591         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63592         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63593         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63594         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63595         argument.
63596         (gl_tree_list_free): Call dispose_fn on the dropped values.
63597         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63598         the dropped values.
63599         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63600         Add dispose_fn argument.
63601         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63602         Call dispose_fn on the dropped values.
63603         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63604         Add dispose_fn argument.
63605         (gl_sublist_create): Initialize the 'dispose_fn' field.
63606         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63607         * tests/test-array_list.c (main): Update.
63608         * tests/test-carray_list.c (main): Update.
63609         * tests/test-avltree_list.c (main): Update.
63610         * tests/test-rbtree_list.c (main): Update.
63611         * tests/test-avltreehash_list.c (main): Update.
63612         * tests/test-rbtreehash_list.c (main): Update.
63613         * tests/test-linked_list.c (main): Update.
63614         * tests/test-linkedhash_list.c (main): Update.
63615         * tests/test-array_oset.c (main): Update.
63617 2007-03-15  Bruno Haible  <bruno@clisp.org>
63619         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63620         (gl_oset_create_empty): Add dispose_fn argument.
63621         (struct gl_oset_implementation): Add dispose_fn argument to
63622         'create_empty' method.
63623         (struct gl_oset_impl_base): Add dispose_fn field.
63624         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63625         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63626         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63627         values.
63628         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63629         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63630         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63631         dropped value.
63632         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63633         dropped value.
63634         * tests/test-array_oset.c (main): Update.
63635         * tests/test-avltree_oset.c (main): Update.
63636         * tests/test-rbtree_oset.c (main): Update.
63637         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63639 2007-03-13  Bruno Haible  <bruno@clisp.org>
63641         * tests/test-stdbool.c (i): Update after last patch.
63643 2007-03-12  Bruno Haible  <bruno@clisp.org>
63645         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63646         the iswprint macro. Needed on Solaris 2.5.1.
63648 2007-03-12  Bruno Haible  <bruno@clisp.org>
63650         * tests/test-printf-frexp.c (main): Declare x as volatile.
63652 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63654         * doc/gnulib.texi (Build robot for gnulib): New section.
63656 2007-03-12  Jim Meyering  <jim@meyering.net>
63658         * build-aux/bootstrap: New file.
63659         * build-aux/bootstrap.conf: New file, from coreutils.
63661 2007-03-11  Bruno Haible  <bruno@clisp.org>
63663         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63665 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63667         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63668         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63669         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63671 2007-03-11  Bruno Haible  <bruno@clisp.org>
63673         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63674         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63676 2007-03-11  Bruno Haible  <bruno@clisp.org>
63678         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63679         formula. Needed for SunPRO C 5.0.
63681 2007-03-11  Bruno Haible  <bruno@clisp.org>
63683         * modules/long-options (Depends-on): Add getopt.
63685 2007-03-11  Bruno Haible  <bruno@clisp.org>
63687         * modules/modechange (Depends-on): Add stdbool.
63689 2007-03-11  Bruno Haible  <bruno@clisp.org>
63691         * modules/i-ring (Depends-on): Add stdbool.
63693 2007-03-11  Bruno Haible  <bruno@clisp.org>
63695         * modules/gc-des (Depends-on): Add stdbool.
63697 2007-03-11  Bruno Haible  <bruno@clisp.org>
63699         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63701 2007-03-11  Bruno Haible  <bruno@clisp.org>
63703         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63705 2007-03-11  Bruno Haible  <bruno@clisp.org>
63707         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63709 2007-03-11  Bruno Haible  <bruno@clisp.org>
63711         * lib/vasnprintf.c (sprintf): Undefine.
63713 2007-03-11  Bruno Haible  <bruno@clisp.org>
63715         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63716         initializers in SunPRO C and Compaq C compilers.
63718 2007-03-11  Bruno Haible  <bruno@clisp.org>
63720         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63721         decrementing code ANSI C compliant.
63723 2007-03-11  Bruno Haible  <bruno@clisp.org>
63725         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63726         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63728 2007-03-11  Bruno Haible  <bruno@clisp.org>
63730         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63731         <stdbool.h> substitute doesn't pass.
63733 2007-03-11  Bruno Haible  <bruno@clisp.org>
63735         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63737 2007-03-11  Bruno Haible  <bruno@clisp.org>
63739         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63740         script, for submission to autobuild.josefsson.org.
63742 2007-03-10  Bruno Haible  <bruno@clisp.org>
63744         * modules/canonicalize-lgpl-tests: New file.
63745         * tests/test-canonicalize-lgpl.sh: New file.
63746         * tests/test-canonicalize-lgpl.c: New file.
63748         * modules/c-strcase-tests: New file.
63749         * tests/test-c-strcase.sh: New file.
63750         * tests/test-c-strcasecmp.c: New file.
63751         * tests/test-c-strncasecmp.c: New file.
63753         * modules/atexit-tests: New file.
63754         * tests/test-atexit.sh: New file.
63755         * tests/test-atexit.c: New file.
63757 2007-03-10  Bruno Haible  <bruno@clisp.org>
63759         * tests/test-binary-io.sh: Use temporary filenames that are not so
63760         likely to clash with those of other tests (in a parallel make).
63761         * tests/test-binary-io.c: Likewise.
63763 2007-03-10  Bruno Haible  <bruno@clisp.org>
63765         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63766         fallback; use #error instead.
63767         Suggested by Simon Josefsson.
63769 2007-03-10  Bruno Haible  <bruno@clisp.org>
63771         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63772         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63773         first and the last.
63775 2007-03-10  Bruno Haible  <bruno@clisp.org>
63777         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63779 2007-03-10  Bruno Haible  <bruno@clisp.org>
63781         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63782         "make distcheck".
63783         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63784         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63785         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63787 2007-03-10  Bruno Haible  <bruno@clisp.org>
63789         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63790         variable.
63791         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63792         variable.
63794 2007-03-09  Eric Blake  <ebb9@byu.net>
63795         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63797         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63798         types are not being provided by gnulib.
63799         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63800         types are supported.
63802 2007-03-10  Bruno Haible  <bruno@clisp.org>
63804         * lib/stdio_.h (__attribute__): New macro.
63805         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63806         vsprintf): Specify __attribute__ __format__ for GCC.
63807         Suggested by Eric Blake.
63809 2007-03-09  Bruno Haible  <bruno@clisp.org>
63811         * modules/printf-posix-tests: New file.
63812         * tests/test-printf-posix.sh: New file.
63813         * tests/test-printf-posix.c: New file.
63815         * modules/printf-posix: New file.
63816         * lib/printf.c: New file.
63817         * m4/printf-posix-rpl.m4: New file.
63818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63819         REPLACE_PRINTF.
63820         * lib/stdio_.h (printf): New declaration.
63821         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63822         ____strfmon____): New macros.
63823         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63824         REPLACE_PRINTF.
63826 2007-03-09  Bruno Haible  <bruno@clisp.org>
63828         * tests/test-vasnprintf-posix2.sh: New file.
63829         * tests/test-vasnprintf-posix2.c: New file.
63830         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63831         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63832         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63834         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63835         a locale dependent decimal point, rather than always '.'.
63837 2007-03-09  Eric Blake  <ebb9@byu.net>
63839         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63840         spite of platforms like Tandem/NSK that define it to -1.
63842 2007-03-08  Bruno Haible  <bruno@clisp.org>
63844         * modules/vprintf-posix-tests: New file.
63845         * tests/test-vprintf-posix.sh: New file.
63846         * tests/test-vprintf-posix.c: New file.
63847         * tests/test-printf-posix.h: New file.
63849         * modules/vprintf-posix: New file.
63850         * lib/vprintf.c: New file.
63851         * m4/vprintf-posix.m4: New file.
63852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63853         REPLACE_VPRINTF.
63854         * lib/stdio_.h (vprintf): New declaration.
63855         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63856         REPLACE_VPRINTF.
63858 2007-03-08  Bruno Haible  <bruno@clisp.org>
63860         * modules/fprintf-posix-tests: New file.
63861         * tests/test-fprintf-posix.sh: New file.
63862         * tests/test-fprintf-posix.c: New file.
63864         * modules/fprintf-posix: New file.
63865         * lib/fprintf.c: New file.
63866         * m4/fprintf-posix.m4: New file.
63867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63868         REPLACE_FPRINTF.
63869         * lib/stdio_.h (fprintf): New declaration.
63870         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63871         REPLACE_FPRINTF.
63873 2007-03-08  Bruno Haible  <bruno@clisp.org>
63875         * modules/vfprintf-posix-tests: New file.
63876         * tests/test-vfprintf-posix.sh: New file.
63877         * tests/test-vfprintf-posix.c: New file.
63878         * tests/test-fprintf-posix.h: New file.
63879         * tests/test-fprintf-posix.out: New file.
63881         * modules/vfprintf-posix: New file.
63882         * lib/vfprintf.c: New file.
63883         * m4/vfprintf-posix.m4: New file.
63884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63885         REPLACE_VFPRINTF.
63886         * lib/stdio_.h (vfprintf): New declaration.
63887         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63888         REPLACE_VFPRINTF.
63890 2007-03-08  Bruno Haible  <bruno@clisp.org>
63892         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63894 2007-03-08  Bruno Haible  <bruno@clisp.org>
63896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63897         instead of 'expr' invocations.
63898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63903         Suggested by Paul Eggert.
63905 2007-03-08  Bruno Haible  <bruno@clisp.org>
63907         * modules/fseterr-tests: New file.
63908         * tests/test-fseterr.c: New file.
63910         * modules/fseterr: New file.
63911         * lib/fseterr.h: New file.
63912         * lib/fseterr.c: New file.
63914 2007-03-08  Bruno Haible  <bruno@clisp.org>
63916         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63917         * lib/getopt_.h: Likewise.
63918         * lib/mbswidth.h: Likewise.
63919         * lib/setenv.h: Likewise.
63920         * lib/vasnprintf.h: Likewise.
63921         * lib/vasprintf.h: Likewise.
63922         * lib/verror.h: Likewise.
63923         * lib/xsetenv.h: Likewise.
63924         * lib/xvasprintf.h: Likewise.
63926 2007-03-08  Jim Meyering  <jim@meyering.net>
63928         * users.txt: Add parted.
63930         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63932 2007-03-07  Bruno Haible  <bruno@clisp.org>
63934         * m4/printf.m4: Make the shell script snippets copy&pastable.
63936 2007-03-02  Bruno Haible  <bruno@clisp.org>
63938         * lib/netinet_in_.h: New file.
63939         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63940         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63941         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63942         (Depends-on): Add absolute-header.
63943         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63944         into netinet/in.h.
63946 2007-03-03  Bruno Haible  <bruno@clisp.org>
63948         * lib/sys_select_.h: New file.
63949         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63950         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63951         * modules/sys_select (Files): Add lib/sys_select_.h.
63952         (Depends-on): Add absolute-header.
63953         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63954         into sys/select.h.
63956 2007-03-02  Bruno Haible  <bruno@clisp.org>
63958         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63959         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63960         values.
63961         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63962         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63963         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63964         * modules/sys_socket (Depends-on): Add absolute-header.
63965         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63966         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63967         (Include): Remove requirement of inclusion of <sys/types.h>.
63969 2007-03-02  Bruno Haible  <bruno@clisp.org>
63971         * lib/byteswap_.h (bswap_32): Fix formula.
63973 2007-03-06  Bruno Haible  <bruno@clisp.org>
63975         * modules/sprintf-posix-tests: New file.
63976         * tests/test-sprintf-posix.c: New file.
63978         * modules/sprintf-posix: New file.
63979         * lib/sprintf.c: New file.
63980         * m4/sprintf-posix.m4: New file.
63981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63982         REPLACE_SPRINTF.
63983         * lib/stdio_.h (sprintf): New declaration.
63984         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63985         REPLACE_SPRINTF.
63987 2007-03-06  Bruno Haible  <bruno@clisp.org>
63989         * modules/vsprintf-posix-tests: New file.
63990         * tests/test-vsprintf-posix.c: New file.
63991         * tests/test-sprintf-posix.h: New file.
63993         * modules/vsprintf-posix: New file.
63994         * lib/vsprintf.c: New file.
63995         * m4/vsprintf-posix.m4: New file.
63996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63997         REPLACE_VSPRINTF.
63998         * lib/stdio_.h (vsprintf): New declaration.
63999         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64000         REPLACE_VSPRINTF.
64002 2007-03-06  Bruno Haible  <bruno@clisp.org>
64004         * modules/vsnprintf (Depend-on): Remove minmax.
64006 2007-03-06  Bruno Haible  <bruno@clisp.org>
64008         * modules/snprintf-posix-tests: New file.
64009         * tests/test-snprintf-posix.c: New file.
64011         * modules/snprintf-posix: New file.
64012         * m4/snprintf-posix.m4: New file.
64013         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64014         gl_FUNC_SNPRINTF.
64015         (gl_FUNC_SNPRINTF): Invoke it.
64016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64017         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64018         is set.
64019         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64021 2007-03-06  Bruno Haible  <bruno@clisp.org>
64023         * modules/vsnprintf-posix-tests: New file.
64024         * tests/test-vsnprintf-posix.c: New file.
64025         * tests/test-snprintf-posix.h: New file.
64027         * modules/vsnprintf-posix: New file.
64028         * m4/vsnprintf-posix.m4: New file.
64029         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64030         gl_FUNC_VSNPRINTF.
64031         (gl_FUNC_VSNPRINTF): Invoke it.
64032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64033         * lib/stdio_.h (vsnprintf): Define as a replacement if
64034         REPLACE_VSNPRINTF is set.
64035         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64037 2007-03-06  Bruno Haible  <bruno@clisp.org>
64039         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64040         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64042 2007-03-06  Bruno Haible  <bruno@clisp.org>
64044         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64045         (asinl): Declare also if HAVE_DECL_ASINL is set.
64046         (atanl): Declare also if HAVE_DECL_ATANL is set.
64047         (ceill): Declare also if HAVE_DECL_CEILL is set.
64048         (cosl): Declare also if HAVE_DECL_COSL is set.
64049         (expl): Declare also if HAVE_DECL_EXPL is set.
64050         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64051         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64052         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64053         (logl): Declare also if HAVE_DECL_LOGL is set.
64054         (sinl): Declare also if HAVE_DECL_SINL is set.
64055         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64056         (tanl): Declare also if HAVE_DECL_TANL is set.
64057         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64059         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64060         declaration of frexpl, ldexpl.
64061         * modules/printf-frexpl (Depends-on): Add math.
64062         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64064 2007-03-05  Bruno Haible  <bruno@clisp.org>
64066         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64067         frexpl and ldexpl are declared.
64068         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64070 2007-03-05  Bruno Haible  <bruno@clisp.org>
64072         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64073         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64075 2007-03-05  Bruno Haible  <bruno@clisp.org>
64077         * lib/stdio_.h: Include <stddef.h>.
64079 2007-03-05  Bruno Haible  <bruno@clisp.org>
64081         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64083 2007-03-05  Bruno Haible  <bruno@clisp.org>
64085         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64086         NetBSD 4, from Ralf Wildenhues.
64088 2007-03-04  Bruno Haible  <bruno@clisp.org>
64090         * lib/vasprintf.h: Update #if logic for the case when the functions
64091         exist but are overridden.
64093 2007-03-04  Bruno Haible  <bruno@clisp.org>
64095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64096         implementations: glibc-2.4 and MacOS X 10.3.
64097         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64098         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64099         * tests/test-vasprintf-posix.c (test_function): Likewise.
64101 2007-03-04  Bruno Haible  <bruno@clisp.org>
64103         * modules/vasprintf-posix-tests: New file.
64104         * tests/test-vasprintf-posix.c: New file.
64106         * modules/vasprintf-posix: New file.
64107         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64108         defined.
64109         * m4/vasprintf-posix.m4: New file.
64110         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64111         gl_FUNC_VASPRINTF.
64112         (gl_FUNC_VASPRINTF): Invoke it.
64113         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64114         here.
64115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64117 2007-03-04  Bruno Haible  <bruno@clisp.org>
64119         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64120         REPLACE_GETTIMEOFDAY.
64121         * modules/sys_time (Makefile.am): Likewise.
64122         * m4/sys_time_h.m4: Likewise.
64123         * m4/gettimeofday.m4: Likewise.
64125 2007-03-04  Bruno Haible  <bruno@clisp.org>
64127         * modules/vasnprintf-posix-tests: New file.
64128         * tests/test-vasnprintf-posix.c: New file.
64130         * modules/vasnprintf-posix: New file.
64131         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64132         printf-frexpl.h.
64133         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64134         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64135         REPLACE_VASNPRINTF is defined.
64136         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64137         gl_FUNC_VASNPRINTF.
64138         (gl_FUNC_VASNPRINTF): Invoke it.
64139         * m4/vasnprintf-posix.m4: New file.
64140         * m4/printf.m4: New file.
64142 2007-03-04  Bruno Haible  <bruno@clisp.org>
64144         Compile progreloc.c only if --enable-relocatable is specified.
64145         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64146         if --enable-relocatable was specified.
64147         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64148         lib_SOURCES.
64150 2007-03-04  Jim Meyering  <jim@meyering.net>
64152         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64153         Use it consistently, rather than enumerating errno constants.
64155 2007-03-04  Bruno Haible  <bruno@clisp.org>
64157         * modules/xvasprintf-tests: New file.
64158         * tests/test-xvasprintf.c: New file.
64160         * modules/vasprintf-tests: New file.
64161         * tests/test-vasprintf.c: New file.
64163         * modules/vasnprintf-tests: New file.
64164         * tests/test-vasnprintf.c: New file.
64166         * modules/vsnprintf-tests: New file.
64167         * tests/test-vsnprintf.c: New file.
64169         * modules/snprintf-tests: New file.
64170         * tests/test-snprintf.c: New file.
64172 2007-03-04  Bruno Haible  <bruno@clisp.org>
64174         Compile relocatable.c only if --enable-relocatable is specified.
64175         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64176         gl_RELOCATABLE_LIBRARY.
64177         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64178         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64179         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64180         gl_RELOCATABLE_LIBRARY.
64181         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64182         (Makefile.am): Remove lib_SOURCES.
64183         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64184         gl_RELOCATABLE_LIBRARY.
64185         (Makefile.am): Remove lib_SOURCES.
64186         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64187         always.
64188         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64189         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64191 2007-03-04  Bruno Haible  <bruno@clisp.org>
64193         * modules/argmatch-tests: New file.
64194         * tests/test-argmatch.c: New file.
64196         * tests/test-allocsa.c (main): Halve the number of loop runs.
64198         * modules/alloca-opt-tests: New file.
64199         * tests/test-alloca-opt.c: New file.
64201 2007-03-04  Jim Meyering  <jim@meyering.net>
64203         Work around difference between Linux ACLs and Solaris 10 ZFS.
64204         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64205         for EINVAL.
64207 2007-03-03  Bruno Haible  <bruno@clisp.org>
64209         * modules/relocatable-prog (Depends-on): Add back progreloc's
64210         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64212 2007-03-03  Bruno Haible  <bruno@clisp.org>
64214         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64215         * modules/relocatable-lib: New file.
64217 2007-03-03  Bruno Haible  <bruno@clisp.org>
64219         * modules/relocatable-prog: Renamed from modules/relocatable.
64220         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64222 2007-03-03  Bruno Haible  <bruno@clisp.org>
64224         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64225         m4/relocatable-lib.m4.
64226         (Depends-on): Remove 'relocatable'.
64227         (configure.ac): Add gl_RELOCATABLE_NOP.
64229 2007-03-03  Bruno Haible  <bruno@clisp.org>
64231         * modules/relocatable-prog-wrapper: New file.
64232         * modules/relocatable (Depends-on): Add it. Remove all other
64233         dependencies except progname.
64234         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64236         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64237         (gl_FUNC_STRERROR): Nop.
64238         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64241         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64243         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64244         (gl_FUNC_READLINK): Update.
64246         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64248 2007-03-03  Bruno Haible  <bruno@clisp.org>
64250         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64251         * modules/xreadlink (Depends-on): Add unistd.
64252         * modules/xreadlink-with-size (Depends-on): Likewise.
64254 2007-03-03  Bruno Haible  <bruno@clisp.org>
64256         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64257         extracted from gt_FUNC_SETENV.
64258         (gt_FUNC_SETENV): Remove macro.
64259         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64260         remove gt_FUNC_SETENV.
64262 2007-03-03  Bruno Haible  <bruno@clisp.org>
64264         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64265         ENABLE_RELOCATABLE here.
64266         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64268 2007-03-03  Bruno Haible  <bruno@clisp.org>
64270         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64271         * tests/test-rbtreehash_list.c: Include progname.h.
64272         (main): Call set_program_name.
64274         * modules/rbtree-oset-tests (Depends-on): Add progname.
64275         * tests/test-rbtree_oset.c: Include progname.h.
64276         (main): Call set_program_name.
64278         * modules/rbtree-list-tests (Depends-on): Add progname.
64279         * tests/test-rbtree_list.c: Include progname.h.
64280         (main): Call set_program_name.
64282         * modules/linked-list-tests (Depends-on): Add progname.
64283         * tests/test-linked_list.c: Include progname.h.
64284         (main): Call set_program_name.
64286 2007-03-03  Bruno Haible  <bruno@clisp.org>
64288         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64289         All uses of __restrict changed to _Restrict_.
64290         * lib/glob_.h (__restrict): Remove macro.
64292 2007-03-02  Bruno Haible  <bruno@clisp.org>
64294         * modules/gettext (configure.ac): Require gettext infrastructure
64295         from version 0.16.1.
64297 2007-03-02  Bruno Haible  <bruno@clisp.org>
64299         * modules/linkedhash-list-tests (Depends-on): Add progname.
64300         * tests/test-linkedhash_list.c: Include progname.h.
64301         (main): Call set_program_name.
64303         * modules/carray-list-tests (Depends-on): Add progname.
64304         * tests/test-carray_list.c: Include progname.h.
64305         (main): Call set_program_name.
64307         * modules/avltreehash-list-tests (Depends-on): Add progname.
64308         * tests/test-avltreehash_list.c: Include progname.h.
64309         (main): Call set_program_name.
64311         * modules/avltree-oset-tests (Depends-on): Add progname.
64312         * tests/test-avltree_oset.c: Include progname.h.
64313         (main): Call set_program_name.
64315         * modules/avltree-list-tests (Depends-on): Add progname.
64316         * tests/test-avltree_list.c: Include progname.h.
64317         (main): Call set_program_name.
64319         * modules/array-oset-tests (Depends-on): Add progname.
64320         * tests/test-array_oset.c: Include progname.h.
64321         (main): Call set_program_name.
64323         * modules/array-list-tests (Depends-on): Add progname.
64324         * tests/test-array_list.c: Include progname.h.
64325         (main): Call set_program_name.
64327         * modules/argp-tests (Depends-on): Add progname.
64328         * tests/test-argp.c: Include argp.h first. Include progname.h.
64329         (main): Call set_program_name.
64331 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64333         * doc/gnulib-tool.texi (Initial import): Reword description of
64334         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64335         limited effect even if defined after the first system include.
64337 2007-03-01  Bruno Haible  <bruno@clisp.org>
64339         * build-aux/config.libpath: Update to libtool-1.5.22.
64340         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64342 2007-03-01  Bruno Haible  <bruno@clisp.org>
64344         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64345         foo_CFLAGS.
64346         Reported by Ralf Wildenhues.
64348 2007-03-01  Bruno Haible  <bruno@clisp.org>
64350         * build-aux/install-reloc: Remove object files left over by some
64351         compilers.
64352         Reported by Ralf Wildenhues.
64354 2007-03-01  Bruno Haible  <bruno@clisp.org>
64356         * build-aux/install-reloc: Break long lines.
64358 2007-03-01  Bruno Haible  <bruno@clisp.org>
64360         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64361         Reported by Ralf Wildenhues.
64363 2007-03-01  Bruno Haible  <bruno@clisp.org>
64365         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64366         include ordering constraints.
64368 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64370         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64372         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64373         as another example.
64374         * lib/time_.h: Fix misspelling.
64375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64376         Require gl_HEADER_TIME_H_DEFAULTS.
64377         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64378         * m4/time_r.m4 (gl_TIME_R): Likewise.
64379         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64381 2007-03-01  Bruno Haible  <bruno@clisp.org>
64383         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64384         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64386 2007-03-01  Jim Meyering  <jim@meyering.net>
64388         * modules/xreadlink (Maintainer): Add my name.
64389         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64391 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64392             Bruno Haible  <bruno@clisp.org>
64394         * build-aux/install-reloc: Compile also c-ctype.c.
64395         * build-aux/relocatable.sh.in: New file.
64396         * doc/relocatable.texi: New file.
64397         * doc/relocatable-maint.texi: New file.
64398         * doc/gnulib.texi: Include relocatable-maint.texi.
64399         * lib/progreloc.c: Include unistd.h unconditionally.
64400         * lib/relocwrapper.c: Include unistd.h unconditionally.
64401         Include c-ctype.h.
64402         (add_dotbin): Use c_tolower.
64403         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64404         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64405         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64406         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64407         to m4/relocatable-lib.m4.
64408         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64409         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64410         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64411         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64412         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64413         * modules/relocatable: New file.
64414         * modules/relocatable-lib: New file.
64415         * modules/relocatable-script: New file.
64417 2007-02-28  Bruno Haible  <bruno@clisp.org>
64419         Import --enable-relocatable infrastructure.
64420         * build-aux/config.libpath: New file, from GNU gettext.
64421         * build-aux/install-reloc: New file, from GNU gettext.
64422         * build-aux/reloc-ldflags: New file, from GNU gettext.
64423         * lib/relocatable.h: New file, from GNU gettext.
64424         * lib/relocatable.c: New file, from GNU gettext.
64425         * lib/relocwrapper.c: New file, from GNU gettext.
64426         * m4/relocatable.m4: New file, from GNU gettext.
64428 2007-02-28  Bruno Haible  <bruno@clisp.org>
64430         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64432         * modules/xreadlink: New file, from GNU gettext with modifications.
64433         * lib/xreadlink.c: New file, from GNU gettext.
64434         * lib/xreadlink.h: Add comments.
64435         (xreadlink): New declaration.
64437         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64438         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64439         lib/xreadlink-with-size.c.
64440         (configure.ac): Remove gl_XREADLINK invocation.
64441         (Makefile.am): Augment lib_SOURCES.
64442         * m4/xreadlink.m4: Remove file.
64443         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64444         (xreadlink_with_size): Renamed from xreadink.
64445         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64446         * modules/canonicalize (Depends-on): Replace xreadlink with
64447         xreadlink-with-size.
64448         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64450 2007-02-25  Jim Meyering  <jim@meyering.net>
64452         * build-aux/announce-gen: When complaining about excess arguments,
64453         list them.
64455 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64457         * README: Document signed integer overflow situation more
64458         accurately.
64460 2007-02-25  Bruno Haible  <bruno@clisp.org>
64462         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64463         'a' or 'A' conversion.
64465 2007-02-25  Bruno Haible  <bruno@clisp.org>
64467         * modules/filename: Renamed from modules/pathname.
64468         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64469         lib/concatpath.c with lib/concat-filename.c.
64470         (Makefile.am): Update.
64471         (Include): Replace pathname.h with filename.h.
64472         * lib/filename.h: Renamed from lib/pathname.h.
64473         (concatenated_filename): Renamed from concatenated_pathname.
64474         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64475         (concatenated_filename): Renamed from concatenated_pathname.
64476         * lib/findprog.c: Include filename.h instead of pathname.h.
64477         (find_in_path): Update.
64478         * lib/javacomp.c: Include filename.h instead of pathname.h.
64479         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64480         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64481         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64482         is_oldgcj_14_13_usable, is_javac_usable): Update.
64483         * lib/javaexec.c: Include filename.h instead of pathname.h.
64484         (execute_java_class): Update.
64485         * modules/findprog: Update.
64486         * modules/javacomp: Update.
64487         * modules/javaexec: Update.
64488         * MODULES.html.sh (File system functions): Add 'filename', remove
64489         'pathname'.
64491 2007-02-25  Bruno Haible  <bruno@clisp.org>
64493         * modules/printf-frexpl-tests: New file.
64494         * tests/test-printf-frexpl.c: New file.
64496         * modules/printf-frexpl: New file.
64497         * lib/printf-frexpl.h: New file.
64498         * lib/printf-frexpl.c: New file.
64499         * m4/printf-frexpl.m4: New file.
64501 2007-02-25  Bruno Haible  <bruno@clisp.org>
64503         * modules/printf-frexp-tests: New file.
64504         * tests/test-printf-frexp.c: New file.
64506         * modules/printf-frexp: New file.
64507         * lib/printf-frexp.h: New file.
64508         * lib/printf-frexp.c: New file.
64509         * m4/printf-frexp.m4: New file.
64511 2007-02-25  Bruno Haible  <bruno@clisp.org>
64513         Assume automake >= 1.10 for the tests.
64514         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64515         * modules/arctwo-tests: Likewise.
64516         * modules/argp-tests: Likewise.
64517         * modules/avltree-list-tests: Likewise.
64518         * modules/avltree-oset-tests: Likewise.
64519         * modules/avltreehash-list-tests: Likewise.
64520         * modules/carray-list-tests: Likewise.
64521         * modules/crc-tests: Likewise.
64522         * modules/des-tests: Likewise.
64523         * modules/gc-arcfour-tests: Likewise.
64524         * modules/gc-arctwo-tests: Likewise.
64525         * modules/gc-des-tests: Likewise.
64526         * modules/gc-hmac-md5-tests: Likewise.
64527         * modules/gc-hmac-sha1-tests: Likewise.
64528         * modules/gc-md2-tests: Likewise.
64529         * modules/gc-md4-tests: Likewise.
64530         * modules/gc-md5-tests: Likewise.
64531         * modules/gc-pbkdf2-sha1-tests: Likewise.
64532         * modules/gc-rijndael-tests: Likewise.
64533         * modules/gc-sha1-tests: Likewise.
64534         * modules/gc-tests: Likewise.
64535         * modules/getaddrinfo-tests: Likewise.
64536         * modules/hmac-md5-tests: Likewise.
64537         * modules/hmac-sha1-tests: Likewise.
64538         * modules/linked-list-tests: Likewise.
64539         * modules/linkedhash-list-tests: Likewise.
64540         * modules/lock-tests: Likewise.
64541         * modules/md2-tests: Likewise.
64542         * modules/md4-tests: Likewise.
64543         * modules/md5-tests: Likewise.
64544         * modules/rbtree-list-tests: Likewise.
64545         * modules/rbtree-oset-tests: Likewise.
64546         * modules/rbtreehash-list-tests: Likewise.
64547         * modules/read-file-tests: Likewise.
64548         * modules/rijndael-tests: Likewise.
64549         * modules/stdint-tests: Likewise.
64550         * modules/tls-tests: Likewise.
64552 2007-02-24  Bruno Haible  <bruno@clisp.org>
64554         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64555         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64556         function; instead check whether isnan with a double argument links.
64557         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64558         function; instead check whether isnan with a 'long double' argument
64559         links.
64560         Reported by Eric Blake <ebb9@byu.net>.
64562 2007-02-24  Bruno Haible  <bruno@clisp.org>
64564         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64565         defined.
64566         * lib/isnanl.c: Remove all code. Just include isnan.c.
64567         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64569 2007-02-25  Jim Meyering  <jim@meyering.net>
64571         Avoid conflicting types for 'unsetenv' on FreeBSD.
64572         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64573         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64574         in stdlib.h.
64576 2007-02-24  Bruno Haible  <bruno@clisp.org>
64578         * modules/isnanl-nolibm-tests: New file.
64579         * tests/test-isnanl.c: New file.
64581         * modules/isnanl-nolibm: New file.
64582         * lib/isnanl.h: New file.
64583         * lib/isnanl.c: New file.
64584         * m4/isnanl.m4: New file.
64586 2007-02-24  Bruno Haible  <bruno@clisp.org>
64588         * modules/isnan-nolibm-tests: New file.
64589         * tests/test-isnan.c: New file.
64591         * modules/isnan-nolibm: New file.
64592         * lib/isnan.h: New file.
64593         * lib/isnan.c: New file.
64594         * m4/isnan.m4: New file.
64596 2007-02-24  Bruno Haible  <bruno@clisp.org>
64598         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64599         assume that an exponent fits in 20 bits.
64601 2007-02-24  Jim Meyering  <jim@meyering.net>
64603         * m4/regex.m4: Update the description of the configure-time option,
64604         --without-included-regex, to state accurately what the defaults are,
64605         and perhaps to give people an idea why using this option is risky.
64607 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64610         loops on small arguments.  This attempts to avoid the problem
64611         Bruno Haible reported for AIX 4.3.2 in
64612         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64614 2007-02-23  Bruno Haible  <bruno@clisp.org>
64616         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64617         Needed for help2man.
64619 2007-02-23  Karl Berry  <karl@gnu.org>
64621         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64622         exists, foo.h should be cvs-ignored, not committed.
64624 2007-02-23  Eric Blake  <ebb9@byu.net>
64626         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64627         * lib/stat-time.h (includes): Likewise.
64628         * lib/utimecmp.c (includes): Likewise.
64629         * lib/utimens.h (includes): Likewise.
64630         * lib/getdate.y (includes): Also include "timespec.h" for use
64631         internal to the module.
64632         * modules/utimens (Depends-on): Revert yesterday's patch.
64633         * modules/nanosleep (Depends-on): Add missing dependency.
64635 2007-02-22  Bruno Haible  <bruno@clisp.org>
64637         * lib/glob.c: Don't include getlogin_r.h.
64639 2007-02-22  Jim Meyering  <jim@meyering.net>
64641         * modules/utimens (Depends-on): Add timespec, required for
64642         utimens.h's inclusion of timespec.h.
64644 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64646         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64647         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64648         Schwab in
64649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64650         I'll try to think of a better way to fix the Solaris problem.
64652         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64653         like glibc; on Solaris 10, it fails with errno == EINVAL.
64654         POSIX says the behavior is unspecified if the first argument is NULL,
64655         so play it safe and never pass NULL to the system getcwd.
64657 2007-02-21  Jim Meyering  <jim@meyering.net>
64659         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64660         of gettimeofday.  It would conflict with the one now always
64661         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64662         an IRIX 6.5 build failure.
64664 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64666         Minor fixups to port to Solaris 10 with Sun C 5.8.
64667         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64668         * modules/getcwd (Depends-on): Add dirfd.
64669         * lib/putenv.c (putenv): #undef it.
64670         (rpl_putenv): New decl.
64671         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64673 2007-02-20  Bruno Haible  <bruno@clisp.org>
64675         * modules/stdio-tests: New file.
64676         * tests/test-stdio.c: New file.
64678         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64679         (Depends-on): Add stdio.
64680         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64681         (Include): Use <stdio.h> instead of vsnprintf.h.
64682         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64683         HAVE_DECL_VSNPRINTF.
64684         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64686         * modules/snprintf (Files): Remove lib/snprintf.h.
64687         (Depends-on): Add stdio.
64688         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64689         (Include): Use <stdio.h> instead of snprintf.h.
64690         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64691         HAVE_DECL_SNPRINTF.
64692         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64693         * lib/getaddrinfo.c: Likewise.
64695         * modules/stdio: New file.
64696         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64697         * lib/snprintf.h: Remove file.
64698         * lib/vsnprintf.h: Remove file.
64699         * lib/.cppi-disable: Remove snprintf.h.
64700         * m4/stdio_h.m4: New file.
64701         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64703 2007-02-20  Jim Meyering  <jim@meyering.net>
64705         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64706         used by e.g., mingw.  From Bruno Haible.
64708 2007-02-19  Bruno Haible  <bruno@clisp.org>
64710         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64711         warnings.
64712         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64714 2007-02-19  Bruno Haible  <bruno@clisp.org>
64716         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64717         from mingw users.
64719 2007-02-19  Bruno Haible  <bruno@clisp.org>
64721         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64722         warnings.
64723         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64725 2007-02-19  Jim Meyering  <jim@meyering.net>
64727         Don't use FD after a successful "fdopendir (fd)".
64728         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64729         Reset it by calling dirfd on the just-obtained DIR*.
64731         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64732         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64734 2007-02-18  Bruno Haible  <bruno@clisp.org>
64736         * lib/readlink.c: Include <unistd.h>.
64737         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64738         HAVE_READLINK.
64739         * modules/readlink (Depends-on): Add unistd.
64740         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64741         (Include): Add <unistd.h>.
64743         * lib/getlogin_r.h: Remove file.
64744         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64745         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64746         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64747         HAVE_DECL_GETLOGIN_R.
64748         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64749         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64750         (Include): Use <unistd.h> instead of getlogin_r.h.
64752         * lib/getcwd.h: Remove file.
64753         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64754         * lib/xgetcwd.c: Likewise.
64755         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64756         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64757         * modules/getcwd (Files): Remove lib/getcwd.h.
64758         (Depends-on): Add unistd.
64759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64760         (Include): Use <unistd.h> instad of getcwd.h.
64762         * lib/ftruncate.c: Include <unistd.h> first.
64763         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64764         Set HAVE_FTRUNCATE.
64765         * modules/ftruncate (Depends-on): Add unistd.
64766         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64768         * lib/fchdir.c: Include <unistd.h> first.
64769         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64771         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64772         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64773         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64775         * lib/dup2.c: Include <unistd.h> first.
64776         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64777         HAVE_DUP2.
64778         * modules/dup2 (Depends-on): Add unistd.
64779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64781         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64782         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64783         REPLACE_CHOWN. Don't define chown as a macro here.
64784         * modules/chown (Depends-on): Add unistd.
64785         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64787         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64788         Add definition for GL_LINK_WARNING.
64789         (chown, dup2): New declarations.
64790         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64791         link warning.
64792         (ftruncate): New declaration.
64793         (getcwd): New declaration, taken from old getcwd.h.
64794         (getlogin_r): New declaration, taken from old getlogin_r.h.
64795         (readlink): New declaration.
64796         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64797         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64798         (gl_PREREQ_UNISTD): Remove macro.
64799         (gl_UNISTD_MODULE_INDICATOR): New macro.
64800         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64801         many new variables. Don't set UNISTD_H.
64802         * modules/unistd (Description): Change.
64803         (Depends-on): Add link-warning.
64804         (configure.ac): Update.
64805         (Makefile.am): Create unistd.h always. Substitute many new variables
64806         into it.
64808 2007-02-18  Bruno Haible  <bruno@clisp.org>
64810         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64811         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64812         HAVE_GETSUBOPT.
64813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64814         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64815         * lib/getsubopt.h: Remove file.
64816         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64817         (Depends-on): Add stdlib.
64818         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64819         (Includes): Use <stdlib.h> instead of getsubopt.h.
64820         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64821         Set HAVE_GETSUBOPT.
64822         * lib/getsubopt.c: Don't include getsubopt.h.
64824 2007-02-18  Bruno Haible  <bruno@clisp.org>
64826         * modules/fchdir (Depends-on): Add dup2.
64828 2007-02-18  Bruno Haible  <bruno@clisp.org>
64830         * lib/stdlib_.h: Handle glibc's special invocation convention
64831         specially.
64833 2007-02-18  Bruno Haible  <bruno@clisp.org>
64835         * modules/stdlib-tests: New file.
64836         * tests/test-stdlib.c: New file.
64838         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64839         (Depends-on): Add stdlib.
64840         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64841         (Includes): Use <stdlib.h> instead of mkstemp.h.
64842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64843         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64844         * lib/mkstemp.c: Don't include mkstemp.h.
64845         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64846         * lib/stdlib--.h: Don't include mkstemp.h.
64848         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64849         (Depends-on): Add stdlib.
64850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64851         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64852         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64853         HAVE_MKDTEMP.
64854         * lib/mkdtemp.c: Don't include mkdtemp.h.
64855         * lib/clean-temp.c: Don't include mkdtemp.h.
64857         * modules/exit (Files): Remove lib/exit.h.
64858         (Depends-on): Add stdlib.
64859         (Makefile.am): Remove lib_SOURCES.
64860         (Include): Use <stdlib.h> instead of exit.h.
64861         * lib/argmatch.c: Don't include exit.h.
64862         * lib/execute.c: Likewise.
64863         * lib/pagealign_alloc.c: Likewise.
64864         * lib/pipe.c: Likewise.
64865         * lib/wait-process.c: Likewise.
64866         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64867         * lib/exitfail.c: Likewise.
64868         * lib/savewd.c: Likewise.
64869         * lib/xsetenv.c: Likewise.
64871         * modules/stdlib: New file.
64872         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64873         and extra comments about mkstemp().
64874         * lib/exit.h: Remove file.
64875         * lib/mkdtemp.h: Remove file.
64876         * lib/mkstemp.h: Remove file.
64877         * m4/stdlib_h.m4: New file.
64878         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64880 2007-02-18  Bruno Haible  <bruno@clisp.org>
64882         * modules/math-tests: New file.
64883         * tests/test-math.c: New file.
64885         * modules/math: New file.
64886         * modules/mathl (Files): Remove lib/mathl.h.
64887         (Depends-on): Add math.
64888         (Makefile.am): Don't mention mathl.h.
64889         (Include): Use <math.h> instead of mathl.h.
64890         * lib/math_.h: New file.
64891         * lib/mathl.h: Remove file.
64892         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64893         mathl.h.
64894         * lib/asinl.c: Likewise.
64895         * lib/atanl.c: Likewise.
64896         * lib/ceill.c: Likewise.
64897         * lib/cosl.c: Likewise.
64898         * lib/expl.c: Likewise.
64899         * lib/floorl.c: Likewise.
64900         * lib/frexpl.c: Likewise.
64901         * lib/ldexpl.c: Likewise.
64902         * lib/logl.c: Likewise.
64903         * lib/sincosl.c: Likewise.
64904         * lib/sinl.c: Likewise.
64905         * lib/sqrtl.c: Likewise.
64906         * lib/tanl.c: Likewise.
64907         * lib/trigl.c: Likewise.
64908         * m4/math_h.m4: New file.
64909         * MODULES.html.sh (Mathematics): Add math.
64911 2007-02-17  Bruno Haible  <bruno@clisp.org>
64913         * modules/wctype-tests: New file.
64914         * tests/test-wctype.c: New file.
64916         * modules/wchar-tests: New file.
64917         * tests/test-wchar.c: New file.
64919         * modules/unistd-tests: New file.
64920         * tests/test-unistd.c: New file.
64922         * modules/time-tests: New file.
64923         * tests/test-time.c: New file.
64925         * modules/sysexits-tests: New file.
64926         * tests/test-sysexits.c: New file.
64928         * modules/sys_time-tests: New file.
64929         * tests/test-sys_time.c: New file.
64931         * modules/sys_stat-tests: New file.
64932         * tests/test-sys_stat.c: New file.
64934         * modules/sys_socket-tests: New file.
64935         * tests/test-sys_socket.c: New file.
64937         * modules/sys_select-tests: New file.
64938         * tests/test-sys_select.c: New file.
64940         * modules/string-tests: New file.
64941         * tests/test-string.c: New file.
64943         * modules/stdbool-tests: New file.
64944         * tests/test-stdbool.c: New file.
64946         * modules/netinet_in-tests: New file.
64947         * tests/test-netinet_in.c: New file.
64949         * modules/inttypes-tests: New file.
64950         * tests/test-inttypes.c: New file.
64952         * modules/fcntl-tests: New file.
64953         * tests/test-fcntl.c: New file.
64955         * modules/byteswap-tests: New file.
64956         * tests/test-byteswap.c: New file.
64958         * modules/arpa_inet-tests: New file.
64959         * tests/test-arpa_inet.c: New file.
64961 2007-02-17  Bruno Haible  <bruno@clisp.org>
64963         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64964         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64965         if the corresponding module is not enabled. Emit link warnings if
64966         the function is used nevertheless.
64967         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64968         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64969         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64970         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64971         * modules/inttypes (Depends-on): Add link-warning.
64972         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64973         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64974         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64975         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64976         * modules/imaxdiv (configure.ac): Likewise.
64977         * modules/strtoimax (configure.ac): Likewise.
64978         * modules/strtoumax (configure.ac): Likewise.
64980 2007-02-17  Bruno Haible  <bruno@clisp.org>
64982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64983         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64984         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64985         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64987 2007-02-17  Bruno Haible  <bruno@clisp.org>
64989         * modules/link-warning: New file.
64990         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64991         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64992         * modules/string (Depends-on): Add link-warning.
64993         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64994         string.h.
64995         * MODULES.html.sh (Support for building libraries and executables): Add
64996         link-warning.
64998 2007-02-17  Bruno Haible  <bruno@clisp.org>
65000         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65001         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65002         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65003         long lines.
65005 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65006             Bruno Haible  <bruno@clisp.org>
65008         * modules/tmpfile: New file.
65009         * lib/tmpfile.c: New file.
65010         * m4/tmpfile.m4: New file.
65011         * MODULES.html.sh (func_all_modules): New section "Input/output".
65013 2007-02-15  Bruno Haible  <bruno@clisp.org>
65015         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65016         (supports_delete_on_close): New function.
65017         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65019 2007-02-14  Bruno Haible  <bruno@clisp.org>
65021         * modules/mbspcasecmp-tests: New file.
65022         * tests/test-mbspcasecmp.sh: New file.
65023         * tests/test-mbspcasecmp.c: New file.
65025         New module mbspcasecmp.
65026         * modules/mbspcasecmp: New file.
65027         * lib/mbspcasecmp.c: New file.
65028         * lib/string_.h (strncasecmp): Change warning message.
65029         (mbspcasecmp): New declaration.
65030         * m4/mbspcasecmp.m4: New file.
65031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65032         GNULIB_MBSPCASECMP.
65033         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65034         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65036 2007-02-14  Bruno Haible  <bruno@clisp.org>
65038         * modules/mbsncasecmp-tests: New file.
65039         * tests/test-mbsncasecmp.sh: New file.
65040         * tests/test-mbsncasecmp.c: New file.
65042         New module mbsncasecmp.
65043         * modules/mbsncasecmp: New file.
65044         * lib/mbsncasecmp.c: New file.
65045         * lib/string_.h (mbsncasecmp): New declaration.
65046         * m4/mbsncasecmp.m4: New file.
65047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65048         GNULIB_MBSNCASECMP.
65049         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65050         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65052 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65054         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65055         Verify that it doesn't overlap with our flags.
65056         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65057         do not have the desired effect in multibyte locales; instead, use
65058         mbscasecmp.
65059         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65060         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65061         we don't require GNU fnmatch ourselves (if our users require it, they
65062         should do so explicitly).
65064         Fix regex code so it doesn't rely on strcasecmp.
65065         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65066         Otherwise, include gnulib's langinfo.h.
65067         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65068         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65069         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65070         * modules/regex (FILES): Remove m4/codeset.m4.
65071         (Depends-on): Add localcharset.  Remove strcase.
65073 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65075         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65076         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65078 2007-02-13  Bruno Haible  <bruno@clisp.org>
65080         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65081         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65083 2007-02-12  Bruno Haible  <bruno@clisp.org>
65085         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65086         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65087         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65088         time warning rather than a link error.
65090 2007-02-12  Bruno Haible  <bruno@clisp.org>
65092         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65093         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65096 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65098         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65099         args, not 2.
65101 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65103         New module 'time', so that apps can include <time.h> as per
65104         POSIX and GNU instead of separate include files like time_r.h
65105         and timegm.h.  This implementation tries out a simpler approach
65106         for replacing decls in standard include files (as compared to
65107         the string module), somewhat as an experiment.
65109         * config/srclist.txt: Comment out mktime.c for now.
65110         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65111         since it doesn't apply any more.  Use generic wording instead.
65112         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65113         'time'.
65114         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65115         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65116         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65117         Don't include <sys/types.h>; no longer needed since we assume C89.
65118         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65119         * lib/strftime.c: Likewise.
65120         * lib/time_r.c: Likewise.
65121         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65122         * lib/nanosleep.c: Include <time.h> first, to check interface.
65123         * lib/strptime.c: Likewise.
65124         * lib/time_r.c: Likewise.
65125         * lib/timegm.c: Likewise.
65126         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65127         needed.
65128         * lib/timegm.c: Don't include timegm.h; no longer needed.
65129         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65130         time.h now handles any problems in that area.
65131         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65132         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65133         that time.h defines struct timespec.
65134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65135         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65136         handles that.
65137         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65138         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65139         needed.  Set REPLACE_LOCALTIME.
65140         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65141         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65142         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65143         nanosleep; time_h.m4 now does that.  Don't require
65144         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65145         module handles this now.
65146         * modules/getdate (Depends-on): Remove timespec.  Add time.
65147         * modules/nanosleep (Depends-on): Likewise.
65148         * modules/stat-time (Depends-on): Likewise.
65149         * modules/nanosleep (Include): Include time.h, not timespec.h.
65150         * modules/strptime (Files): Remove lib/strptime.h.
65151         (Depends-on): Add extensions, time.
65152         (Include): Include time.h, not strptime.h.
65153         * modules/time_r (Files): Remove lib/time_r.h.
65154         (Depends-on): Add time.
65155         (Include): Include time.h, not time_r.h.
65156         * modules/timegm: Likewise.
65157         * modules/timespec (Description): Now does timespec-related decls
65158         of our own, instead of struct timespec itself.
65159         (Depends-on): Add time; remove extensions.
65160         (Maintainer): Add self.
65161         * modules/utimecmp (Depends-on): Add time; remove timespec.
65162         * modules/utimens (Depends-on): Likewise.
65163         * modules/xnanosleep (Depends-on): Likewise.
65165 2007-02-11  Bruno Haible  <bruno@clisp.org>
65167         * lib/c-strstr.c: Include allocsa.h.
65168         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65169         * lib/c-strcasestr.c: Include allocsa.h.
65170         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65171         * lib/strcasestr.c: Include allocsa.h.
65172         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65173         * lib/mbsstr.c: Include allocsa.h.
65174         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65175         allocsa/freesa instead of malloc/free.
65176         * lib/mbscasestr.c: Include allocsa.h.
65177         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65178         allocsa/freesa instead of malloc/free.
65179         * modules/c-strstr (Depends-on): Add allocsa.
65180         * modules/c-strcasestr (Depends-on): Likewise.
65181         * modules/strcasestr (Depends-on): Likewise.
65182         * modules/mbsstr (Depends-on): Likewise.
65183         * modules/mbscasestr (Depends-on): Likewise.
65185 2007-02-11  Bruno Haible  <bruno@clisp.org>
65187         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65189         * modules/mbsspn-tests: New file.
65190         * tests/test-mbsspn.sh: New file.
65191         * tests/test-mbsspn.c: New file.
65193 2007-02-11  Bruno Haible  <bruno@clisp.org>
65195         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65197         * modules/mbspbrk-tests: New file.
65198         * tests/test-mbspbrk.sh: New file.
65199         * tests/test-mbspbrk.c: New file.
65201 2007-02-11  Bruno Haible  <bruno@clisp.org>
65203         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65204         unneeded cast.
65206         * modules/mbscspn-tests: New file.
65207         * tests/test-mbscspn.sh: New file.
65208         * tests/test-mbscspn.c: New file.
65210 2007-02-11  Bruno Haible  <bruno@clisp.org>
65212         * modules/mbscasecmp-tests: New file.
65213         * tests/test-mbscasecmp.sh: New file.
65214         * tests/test-mbscasecmp.c: New file.
65216 2007-02-11  Bruno Haible  <bruno@clisp.org>
65218         Ensure O(n) worst-case complexity of mbscasestr.
65219         * lib/mbscasestr.c: Include stdbool.h.
65220         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65221         functions.
65222         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65223         the bookkeeping indicates that it's worth it.
65224         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65226         * modules/mbscasestr-tests: New file.
65227         * tests/test-mbscasestr1.c: New file.
65228         * tests/test-mbscasestr2.sh: New file.
65229         * tests/test-mbscasestr2.c: New file.
65230         * tests/test-mbscasestr3.sh: New file.
65231         * tests/test-mbscasestr3.c: New file.
65232         * tests/test-mbscasestr4.sh: New file.
65233         * tests/test-mbscasestr4.c: New file.
65234         * m4/locale-tr.m4: New file.
65236 2007-02-11  Bruno Haible  <bruno@clisp.org>
65238         Ensure O(n) worst-case complexity of mbsstr.
65239         * lib/mbsstr.c: Include stdbool.h.
65240         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65241         functions.
65242         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65243         bookkeeping indicates that it's worth it.
65244         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65246         * modules/mbsstr-tests: New file.
65247         * tests/test-mbsstr1.c: New file.
65248         * tests/test-mbsstr2.sh: New file.
65249         * tests/test-mbsstr2.c: New file.
65250         * tests/test-mbsstr3.sh: New file.
65251         * tests/test-mbsstr3.c: New file.
65252         * m4/locale-fr.m4: New file.
65254 2007-02-11  Bruno Haible  <bruno@clisp.org>
65256         * lib/mbsrchr.c (mbsrchr): Fix bug.
65258         * modules/mbsrchr-tests: New file.
65259         * tests/test-mbsrchr.sh: New file.
65260         * tests/test-mbsrchr.c: New file.
65262 2007-02-11  Bruno Haible  <bruno@clisp.org>
65264         * lib/mbschr.c (mbschr): Fix bug.
65266         * modules/mbschr-tests: New file.
65267         * tests/test-mbschr.sh: New file.
65268         * tests/test-mbschr.c: New file.
65269         * m4/locale-zh.m4: New file.
65271 2007-02-11  Bruno Haible  <bruno@clisp.org>
65273         Support for copying multibyte string iterators.
65274         * lib/mbiter.h: Include <string.h>.
65275         (mbiter_multi_copy): New function.
65276         (mbi_copy): New macro.
65277         * lib/mbuiter.h: Include <string.h>.
65278         (mbuiter_multi_copy): New function.
65279         (mbui_copy): New macro.
65281 2007-02-11  Bruno Haible  <bruno@clisp.org>
65283         New module mbslen.
65284         * modules/mbslen: New file.
65285         * lib/mbslen.c: New file.
65286         * lib/string_.h (mbslen): New declaration.
65287         * m4/mbslen.m4: New file.
65288         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65289         GNULIB_MBSLEN.
65290         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65291         * MODULES.html.sh (Internationalization functions): Add mbslen.
65293 2007-02-11  Bruno Haible  <bruno@clisp.org>
65295         Ensure O(n) worst-case complexity of strcasestr substitute.
65296         * lib/strcasestr.c: Include stdbool.h.
65297         (knuth_morris_pratt): New function.
65298         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65299         bookkeeping indicates that it's worth it.
65300         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65302         * modules/strcasestr-tests: New file.
65303         * tests/test-strcasestr.c: New file.
65305 2007-02-11  Bruno Haible  <bruno@clisp.org>
65307         Ensure O(n) worst-case complexity of c_strcasestr.
65308         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65309         (knuth_morris_pratt): New function.
65310         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65311         the bookkeeping indicates that it's worth it.
65312         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65314         * modules/c-strcasestr-tests: New file.
65315         * tests/test-c-strcasestr.c: New file.
65317 2007-02-11  Bruno Haible  <bruno@clisp.org>
65319         Ensure O(n) worst-case complexity of c_strstr.
65320         * lib/c-strstr.c: Include stdbool.h, string.h.
65321         (knuth_morris_pratt): New function.
65322         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65323         bookkeeping indicates that it's worth it.
65324         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65326         * lib/c-strstr.c: Complete rewrite for maintainability.
65328         * modules/c-strstr-tests: New file.
65329         * tests/test-c-strstr.c: New file.
65331 2007-02-11  Bruno Haible  <bruno@clisp.org>
65333         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65334         5.2.1 and earlier, whereby \055 was treated just like the range
65335         delimiter '-'.
65336         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65338 2007-02-08  Bruno Haible  <bruno@clisp.org>
65340         * modules/regex (Depends-on): Add stdbool.
65341         Reported by Dalibor Topic <robilad@kaffe.org>.
65343 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65345         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65346         Prefer returning from main to exiting from it.
65347         Remove unnecessary parens after sizeof.
65349 2007-02-05  Bruno Haible  <bruno@clisp.org>
65351         New module mbssep.
65352         * modules/mbssep: New file.
65353         * lib/mbssep.c: New file.
65354         * lib/string_.h (strsep): Add a conditional link warning.
65355         (mbssep): New declaration.
65356         * m4/mbssep.m4: New file.
65357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65358         GNULIB_MBSSEP.
65359         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65360         * MODULES.html.sh (Internationalization functions): Add mbssep.
65362 2007-02-05  Bruno Haible  <bruno@clisp.org>
65364         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65365         Optimize search in case of 1 delimiter.
65367 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65369         * lib/acl.h: Include sys/types.h before sys/acl.h.
65371 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65373         Merge upstream fix for glibc bugzilla #3957:
65375         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65377         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65378         bit for RE_HAT_LISTS_NOT_NEWLINE.
65379         (build_charclass_op): Remove bogus comment.
65381 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65383         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65385 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65387         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65388         * lib/memmem.c [!defined _LIBC]: Include config.h.
65390 2007-02-04  Bruno Haible  <bruno@clisp.org>
65392         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65393         warning message.
65395 2007-02-04  Bruno Haible  <bruno@clisp.org>
65397         New module mbstok_r.
65398         * modules/mbstok_r: New file.
65399         * lib/mbstok_r.c: New file.
65400         * lib/string_.h (strtok_r): Change argument names to match the
65401         comments. Add a conditional link warning.
65402         (mbstok_r): New declaration.
65403         * m4/mbstok_r.m4: New file.
65404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65405         GNULIB_MBSTOK_R.
65406         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65407         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65409 2007-02-04  Bruno Haible  <bruno@clisp.org>
65411         New module mbsspn.
65412         * modules/mbsspn: New file.
65413         * lib/mbsspn.c: New file.
65414         * lib/string_.h (strspn): Add a conditional link warning.
65415         (mbsspn): New declaration.
65416         * m4/mbsspn.m4: New file.
65417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65418         GNULIB_MBSSPN.
65419         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65420         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65422 2007-02-04  Bruno Haible  <bruno@clisp.org>
65424         New module mbspbrk.
65425         * modules/mbspbrk: New file.
65426         * lib/mbspbrk.c: New file.
65427         * lib/string_.h (strpbrk): Add a conditional link warning.
65428         (mbspbrk): New declaration.
65429         * m4/mbspbrk.m4: New file.
65430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65431         GNULIB_MBSPBRK.
65432         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65433         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65435 2007-02-04  Bruno Haible  <bruno@clisp.org>
65437         New module mbscspn.
65438         * modules/mbscspn: New file.
65439         * lib/mbscspn.c: New file.
65440         * lib/string_.h (strcspn): Add a conditional link warning.
65441         (mbscspn): New declaration.
65442         * m4/mbscspn.m4: New file.
65443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65444         GNULIB_MBSCSPN.
65445         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65446         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65448 2007-02-04  Bruno Haible  <bruno@clisp.org>
65450         New module mbscasestr, reduced goal of strcasestr.
65451         * modules/mbscasestr: New file.
65452         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65453         (mbscasestr): Renamed from strcasestr.
65454         * lib/strcasestr.c: Don't include mbuiter.h.
65455         (strcasestr): Remove support for multibyte locales.
65456         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65457         Change the conditional link warning.
65458         (mbscasestr): New declaration.
65459         * m4/mbscasestr.m4: New file.
65460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65461         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65462         REPLACE_STRCASESTR.
65463         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65465         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65466         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65467         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65468         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65469         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65470         (Depends-on): Remove mbuiter.
65471         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65473 2007-02-04  Bruno Haible  <bruno@clisp.org>
65475         Simplify handling of strncasecmp.
65476         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65477         the conditional link warning.
65478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65479         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65480         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65481         * modules/strcase (configure.ac): Don't invoke
65482         gl_STRING_MODULE_INDICATOR.
65483         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65485 2007-02-04  Bruno Haible  <bruno@clisp.org>
65487         New module mbscasecmp, reduced goal of strcasecmp.
65488         * modules/mbscasecmp: New file.
65489         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65490         (mbscasecmp): Renamed from strcasecmp.
65491         * lib/strcasecmp.c: Don't include mbuiter.h.
65492         (strcasecmp): Remove support for multibyte locales.
65493         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65494         Change the conditional link warning.
65495         (mbscasecmp): New declaration.
65496         * m4/mbscasecmp.m4: New file.
65497         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65498         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65499         REPLACE_STRCASECMP.
65500         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65502         GNULIB_MBSCASECMP.
65503         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65504         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65505         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65506         (Depends-on): Remove mbuiter.
65507         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65509 2007-02-04  Bruno Haible  <bruno@clisp.org>
65511         New module mbsstr. Remove module strstr.
65512         * modules/mbsstr: New file.
65513         * modules/strstr: Remove file.
65514         * lib/mbsstr.c: Renamed from lib/strstr.c.
65515         (mbsstr): Renamed from strstr.
65516         * lib/string_.h (strstr): Remove declaration. Change the conditional
65517         link warning.
65518         (mbsstr): New declaration.
65519         * m4/mbsstr.m4: New file.
65520         * m4/strstr.m4: Remove file.
65521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65522         REPLACE_STRSTR.
65523         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65524         Don't initialize GNULIB_STRSTR.
65525         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65526         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65527         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65528         (Support for systems lacking ANSI C 89): Remove strstr.
65530 2007-02-04  Bruno Haible  <bruno@clisp.org>
65532         New module mbsrchr.
65533         * modules/mbsrchr: New file.
65534         * lib/mbsrchr.c: New file.
65535         * lib/string_.h (strrchr): Add a conditional link warning.
65536         (mbsrchr): New declaration.
65537         * m4/mbsrchr.m4: New file.
65538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65539         GNULIB_MBSRCHR.
65540         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65541         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65543 2007-02-04  Bruno Haible  <bruno@clisp.org>
65545         New module mbschr.
65546         * modules/mbschr: New file.
65547         * lib/mbschr.c: New file.
65548         * lib/string_.h (strchr): Add a conditional link warning.
65549         (mbschr): New declaration.
65550         * m4/mbschr.m4: New file.
65551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65552         GNULIB_MBSCHR.
65553         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65554         * MODULES.html.sh (Internationalization functions): Add mbschr.
65556 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65558         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65560         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65562 2007-02-04  Bruno Haible  <bruno@clisp.org>
65564         New module description section 'configure.ac-early'.
65565         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65566         (func_get_autoconf_early_snippet): New function.
65567         (func_import, func_create_testdir): Use it. Remove special cases for
65568         modules 'extensions' and 'lock'.
65569         * modules/extensions (configure.ac-early): Require
65570         gl_USE_SYSTEM_EXTENSIONS.
65571         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65573 2007-02-04  Bruno Haible  <bruno@clisp.org>
65575         Make use of gcj-4.3's -fsource and -ftarget option.
65576         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65577         and if so try the options -fsource and -ftarget.
65578         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65579         source_version, ftarget_option, target_version arguments.
65580         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65581         (is_envjavac_oldgcj_14_14_usable): Renamed from
65582         is_envjavac_gcj_14_14_usable.
65583         (is_envjavac_oldgcj_14_13_usable): Renamed from
65584         is_envjavac_gcj_14_13_usable.
65585         (is_gcj_present): Update.
65586         (is_gcj_43, is_gcj43_usable): New functions.
65587         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65588         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65589         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65590         try the options -fsource and -ftarget.
65592 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65594         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65595         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65596         larger value.
65598 2007-02-03  Jim Meyering  <jim@meyering.net>
65600         Give tools a better chance to allocate space for very large buffers.
65601         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65603         Make pwd and readlink work also when run with an unreadable parent dir
65604         on systems with openat support.
65605         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65606         provided getcwd function, even when we have openat support.
65607         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65609 2007-02-02  Bruno Haible  <bruno@clisp.org>
65611         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65612         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65613         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65614         portability problems if one of these functions is only used on specific
65615         platforms.
65616         Reported by Paul Eggert.
65618 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65620         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65621         is causing more trouble than it's curing.
65622         * lib/regex_internal.h (__mempcpy): Remove.
65623         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65624         (and make the code a tad smaller to boot).
65625         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65627 2007-02-02  Jim Meyering  <jim@meyering.net>
65629         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65630         section, not in the Makefile.am: one.
65632 2007-02-02  Eric Blake  <ebb9@byu.net>
65634         * lib/strchrnul.c: Always include config.h first.
65636         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65637         gnulib strstr is not necessary here.
65639 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65641         * m4/socklen.m4: Fix typo.
65643 2007-02-02  Eric Blake  <ebb9@byu.net>
65645         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65646         * modules/netinet_in (Makefile.am): Likewise.
65648 2007-02-01  Bruno Haible  <bruno@clisp.org>
65650         * lib/string_.h (GL_LINK_WARNING): New macro.
65651         (strcasecmp, strstr, strcasestr): If provided by the system,
65652         conditionally define as a macro that leads to a warning instead of to
65653         an error.
65654         (strncasecmp): Conditionally define as a macro that leads to a warning.
65656 2007-02-01  Karl Berry  <karl@gnu.org>
65658         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65660 2007-02-01  Bruno Haible  <bruno@clisp.org>
65662         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65663         renamings.
65665 2007-02-01  Eric Blake  <ebb9@byu.net>
65667         * modules/regex (Depends-on): Revert dependence on mempcpy.
65668         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65669         module's definition of mempcpy.
65670         Reported by Paul Eggert.
65672 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65674         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65675         the symbol XYZ before redefining it.  This fixes a problem with
65676         programs that don't use XYZ, when compiled on systems that define
65677         XYZ to something else.
65679 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65681         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65682         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65683         writeable to group or other and (2) is intended to have a special
65684         mode bit that is set or cleared.  In such a case, the directory
65685         should be neither group- nor other-writeable until the special
65686         mode bits are right.
65688 2007-01-31  Eric Blake  <ebb9@byu.net>
65690         * modules/mountlist (Depends-on): Add strstr.
65692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65693         bug.
65694         * modules/string (Makefile.am): Remove redundant replacement.
65695         * modules/regex (Depends-on): Add mempcpy.
65697 2007-01-31  Bruno Haible  <bruno@clisp.org>
65699         New module description field 'Link'.
65700         * gnulib-tool (func_usage): Document --extract-link-directive.
65701         (sed_extract_prog): Recognize 'Link' directive.
65702         (func_get_link_directive): New function.
65703         (func_import): Show summary of link directives.
65704         Handle --extract-link-directive option.
65705         * modules/acl (Link): New section.
65706         * modules/clock-time (Link): New section.
65707         * modules/euidaccess (Link): New section.
65708         * modules/gettext (Link): New section.
65709         * modules/iconv (Link): New section.
65710         * modules/lock (Link): New section.
65711         * modules/nanosleep (Link): New section.
65712         * modules/readline (Link): New section.
65714 2007-01-27  Bruno Haible  <bruno@clisp.org>
65716         Enforce the use of gnulib modules for unportable <string.h> functions.
65717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65718         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65719         (gl_HEADER_STRING_H_BODY): Require it.
65720         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65721         the symbol XYZ to one that gives a link error.
65722         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65723         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65724         * modules/mempcpy (configure.ac): Likewise.
65725         * modules/memrchr (configure.ac): Likewise.
65726         * modules/stpcpy (configure.ac): Likewise.
65727         * modules/stpncpy (configure.ac): Likewise.
65728         * modules/strcase (configure.ac): Likewise.
65729         * modules/strcasestr (configure.ac): Likewise.
65730         * modules/strchrnul (configure.ac): Likewise.
65731         * modules/strdup (configure.ac): Likewise.
65732         * modules/strndup (configure.ac): Likewise.
65733         * modules/strnlen (configure.ac): Likewise.
65734         * modules/strpbrk (configure.ac): Likewise.
65735         * modules/strsep (configure.ac): Likewise.
65736         * modules/strstr (configure.ac): Likewise.
65737         * modules/strtok_r (configure.ac): Likewise.
65739 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65741         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65743 2007-01-30  Jim Meyering  <jim@meyering.net>
65745         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65747 2007-01-29  Bruno Haible  <bruno@clisp.org>
65749         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65750         * lib/execute.c: Likewise.
65751         * lib/pipe.c: Likewise.
65752         * lib/printf-args.h: Likewise.
65753         * lib/printf-args.c: Likewise.
65754         * lib/printf-parse.c: Likewise.
65755         * lib/vasnprintf.c: Likewise.
65757 2007-01-29  Eric Blake  <ebb9@byu.net>
65759         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65760         declaration.
65762 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65764         * lib/strptime.h (strptime): Use 'restrict' for args where
65765         POSIX requires this.
65766         * lib/strptime.c (strptime): Likewise.
65767         Change license notice from LGPL to GPL, since gnulib-tool will
65768         change this as needed.
65769         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65770         defined.
65771         Include "strptime.h" first, to check interface.
65772         Do not #undef _LIBC and _NL_CURRENT.
65773         Do not include <stdlib.h>; no longer needed.
65774         Include "time_r.h" and declare ptime_locale_status
65775         only if _LIBC is not defined.
65776         (__P): Remove unused macro.
65777         (match_string): Bring back glibc version, but use it only if _LIBC
65778         is defined.
65779         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65780         Remove unnecessary assertion and abort() call.
65781         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65782         * m4/strptime.m4: Fix serial number comment.
65783         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65784         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65785         (Depends-on): Add time_r.
65787 2007-01-29  Bruno Haible  <bruno@clisp.org>
65789         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65790         strptime.
65791         * modules/strptime (Depends-on): Add stdbool.
65792         * lib/strptime.h: Include <time.h> always. Add comments.
65794 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65796         * modules/strptime: New file.
65797         * lib/strptime.h: New file.
65798         * lib/strptime.c: New file.
65799         * m4/strptime.m4: New file.
65801 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65803         * MODULES.html.sh: New module mpsort.
65804         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65806         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65807         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65809         All uses changed.
65810         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65811         All uses changed.
65812         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65813         to _Restrict_.
65814         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65815         the parameter matches the prototype.
65817 2007-01-28  Jim Meyering  <jim@meyering.net>
65819         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65820         sys/time.h here, reverting that part of the previous patch:
65821         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65823 2007-01-28  Bruno Haible  <bruno@clisp.org>
65825         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65826         value of $(SYS_TIME_H).
65827         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65828         remove it conditionally, too. [added by Jim Meyering]
65829         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65830         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65831         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65832         GETTIMEOFDAY_REPLACEMENT to 1.
65834 2007-01-28  Bruno Haible  <bruno@clisp.org>
65836         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65837         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65839         Set UNISTD_H instead of UNISTD_H2.
65840         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65842 2007-01-28  Bruno Haible  <bruno@clisp.org>
65844         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65845         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65847 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65849         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65850         (func_create_testdir): Ensure C locale for `grep' and `tr'
65851         character ranges.
65852         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65853         ACLOCAL_AMFLAGS parsing state machine.
65855 2007-01-27  Bruno Haible  <bruno@clisp.org>
65857         * modules/unistr/base: Update.
65859 2007-01-27  Bruno Haible  <bruno@clisp.org>
65861         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65862         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65863         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65864         modules/unistr/u32-mbtouc.
65865         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65866         * lib/unistr.h: Update.
65867         * lib/linebreak.c: Update.
65868         * modules/unistr/u32-mbtouc: Renamed from
65869         modules/unistr/u32-mbtouc-safe.
65870         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65871         * lib/unistr.h: Update.
65872         * lib/unistr/u32-to-u8.c: Update.
65873         * lib/unistr/u32-to-u16.c: Update.
65875 2007-01-27  Bruno Haible  <bruno@clisp.org>
65877         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65878         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65879         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65880         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65881         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65882         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65883         modules/unistr/u16-mbtouc.
65884         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65885         * lib/unistr.h: Update.
65886         * lib/linebreak.c: Update.
65887         * modules/linebreak: Update.
65888         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65889         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65890         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65891         * modules/unistr/u16-mbtouc: Renamed from
65892         modules/unistr/u16-mbtouc-safe.
65893         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65894         * lib/unistr.h: Update.
65895         * lib/unistr/u16-to-u8.c: Update.
65896         * modules/unistr/u16-to-u8: Update.
65897         * lib/unistr/u16-to-u32.c: Update.
65898         * modules/unistr/u16-to-u32: Update.
65900 2007-01-27  Bruno Haible  <bruno@clisp.org>
65902         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65903         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65904         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65905         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65906         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65907         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65908         modules/unistr/u8-mbtouc.
65909         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65910         * lib/unistr.h: Update.
65911         * lib/striconveh.c: Update.
65912         * modules/striconveh: Update.
65913         * lib/linebreak.c: Update.
65914         * modules/linebreak: Update.
65915         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65916         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65917         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65918         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65919         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65920         * lib/unistr.h: Update.
65921         * lib/striconveh.c: Update.
65922         * modules/striconveh: Update.
65923         * lib/unistr/u8-to-u16.c: Update.
65924         * modules/unistr/u8-to-u16: Update.
65925         * lib/unistr/u8-to-u32.c: Update.
65926         * modules/unistr/u8-to-u32: Update.
65928 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65930         Sync from Libtool.
65931         * lib/argz.c: Do not include strings.h nor memory.h, include
65932         string.h unconditionally.  Patch by Simon Josefsson.
65934 2007-01-27  Bruno Haible  <bruno@clisp.org>
65936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65937         from gl_HEADER_STRING_H_BODY.
65938         (gl_HEADER_STRING_H_BODY): Require it.
65939         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65940         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65941         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65942         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65943         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65944         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65946         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65947         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65948         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65949         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65950         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65951         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65952         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65953         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65955 2007-01-27  Bruno Haible  <bruno@clisp.org>
65957         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65958         check_PROGRAMS into noinst_PROGRAMS.
65959         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65960         check_PROGRAMS in this case.
65961         (func_import): Set for_test to false.
65962         (func_create_testdir): Set for_test to true.
65964 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65965             Bruno Haible  <bruno@clisp.org>
65967         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65968         (Depends-on): Add string.
65969         (Includes): Use <string.h> instead of strcasestr.h.
65970         * modules/string (Makefile.am): Also substitute the value of
65971         REPLACE_STRCASESTR.
65972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65973         assume strcasestr is declared in <string.h> not <strings.h>. Also
65974         set REPLACE_STRCASESTR.
65975         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65976         REPLACE_STRCASESTR.
65977         * lib/strcasestr.h: Remove file.
65978         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65979         * lib/string_.h (strcasestr): New declaration.
65981 2007-01-27  Bruno Haible  <bruno@clisp.org>
65983         * lib/string_.h: Use 'extern'.
65985 2007-01-27  Jim Meyering  <jim@meyering.net>
65987         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65988         of set-but-not-used local, "q".
65990         * lib/mempcpy.c: Include <config.h> before <string.h>.
65991         This fixes a compilation error on HP-UX, due to the system's
65992         "restrict"-using mempcpy prototype.
65994 2007-01-26  Bruno Haible  <bruno@clisp.org>
65996         Small optimization.
65997         * lib/javacomp.c: Include c-strstr.h.
65998          (is_envjavac_gcj): Use c_strstr instead of strstr.
65999         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66001 2007-01-26  Bruno Haible  <bruno@clisp.org>
66003         * MODULES.html.sh (Unicode string functions): Add the new modules.
66005         * modules/uniconv/u32-strconv-to-locale: New file.
66006         * lib/uniconv/u32-strconv-to-locale.c: New file.
66008         * modules/uniconv/u16-strconv-to-locale: New file.
66009         * lib/uniconv/u16-strconv-to-locale.c: New file.
66011         * modules/uniconv/u8-strconv-to-locale: New file.
66012         * lib/uniconv/u8-strconv-to-locale.c: New file.
66014         * modules/uniconv/u32-strconv-from-locale: New file.
66015         * lib/uniconv/u32-strconv-from-locale.c: New file.
66017         * modules/uniconv/u16-strconv-from-locale: New file.
66018         * lib/uniconv/u16-strconv-from-locale.c: New file.
66020         * modules/uniconv/u8-strconv-from-locale: New file.
66021         * lib/uniconv/u8-strconv-from-locale.c: New file.
66023         * modules/uniconv/u32-strconv-to-enc: New file.
66024         * lib/uniconv/u32-strconv-to-enc.c: New file.
66025         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66026         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66028         * modules/uniconv/u16-strconv-to-enc: New file.
66029         * lib/uniconv/u16-strconv-to-enc.c: New file.
66030         * lib/uniconv/u-strconv-to-enc.h: New file.
66031         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66032         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66034         * modules/uniconv/u8-strconv-to-enc: New file.
66035         * lib/uniconv/u8-strconv-to-enc.c: New file.
66036         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66037         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66039         * modules/uniconv/u32-strconv-from-enc: New file.
66040         * lib/uniconv/u32-strconv-from-enc.c: New file.
66041         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66042         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66044         * modules/uniconv/u16-strconv-from-enc: New file.
66045         * lib/uniconv/u16-strconv-from-enc.c: New file.
66046         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66047         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66049         * modules/uniconv/u8-strconv-from-enc: New file.
66050         * lib/uniconv/u8-strconv-from-enc.c: New file.
66051         * lib/uniconv/u-strconv-from-enc.h: New file.
66052         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66053         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66055         * modules/uniconv/u32-conv-from-enc: New file.
66056         * lib/uniconv/u32-conv-from-enc.c: New file.
66057         * modules/uniconv/u32-conv-from-enc-tests: New file.
66058         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66060         * modules/uniconv/u16-conv-from-enc: New file.
66061         * lib/uniconv/u16-conv-from-enc.c: New file.
66062         * lib/uniconv/u-conv-from-enc.h: New file.
66063         * modules/uniconv/u16-conv-from-enc-tests: New file.
66064         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66066         * modules/uniconv/u8-conv-from-enc: New file.
66067         * lib/uniconv/u8-conv-from-enc.c: New file.
66068         * modules/uniconv/u8-conv-from-enc-tests: New file.
66069         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66071         * modules/uniconv/base: New file.
66072         * lib/uniconv.h: New file.
66074 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66076         * doc/gnulib-tool.texi (Initial import): Update to match current
66077         behavior with strdup module.
66078         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66079         * lib/memmem.h: Remove; all uses removed.  This is now done
66080         by <string.h>.
66081         * lib/mempcpy.h: Likewise.
66082         * lib/memrchr.h: Likewise.
66083         * lib/stpcpy.h: Likewise.
66084         * lib/stpncpy.h: Likewise.
66085         * lib/strcase.h: Likewise.
66086         * lib/strchrnul.h: Likewise.
66087         * lib/strdup.h: Likewise.
66088         * lib/strndup.h: Likewise.
66089         * lib/strnlen.h: Likewise.
66090         * lib/strpbrk.h: Likewise.
66091         * lib/strsep.h: Likewise.
66092         * lib/strstr.h: Likewise.
66093         * lib/strtok_r.h: Likewise.
66094         * lib/string_.h: New file.
66095         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66096         Rely on <string.h> instead.
66097         * lib/canon-host.c: Likewise.
66098         * lib/chdir-long.c: Likewise.
66099         * lib/concatpath.c: Likewise.
66100         * lib/exclude.c: Likewise.
66101         * lib/fchdir.c: Likewise.
66102         * lib/getaddrinfo.c: Likewise.
66103         * lib/getcwd.c: Likewise.
66104         * lib/getsubopt.c: Likewise.
66105         * lib/glob.c: Likewise.
66106         * lib/hard-locale.c: Likewise.
66107         * lib/iconvme.c: Likewise.
66108         * lib/javacomp.c: Likewise.
66109         * lib/mempcpy.c: Likewise.
66110         * lib/memrchr.c: Likewise.
66111         * lib/regex_internal.h: Likewise.
66112         * lib/stpncpy.c: Likewise.
66113         * lib/strcasecmp.c: Likewise.
66114         * lib/strchrnul.c: Likewise.
66115         * lib/strdup.c: Likewise.
66116         * lib/striconv.c: Likewise.
66117         * lib/striconveh.c: Likewise.
66118         * lib/striconveha.c: Likewise.
66119         * lib/strncasecmp.c: Likewise.
66120         * lib/strndup.c: Likewise.
66121         * lib/strnlen.c: Likewise.
66122         * lib/strsep.c: Likewise.
66123         * lib/strstr.c: Likewise.
66124         * lib/strtok_r.c: Likewise.
66125         * lib/userspec.c: Likewise.
66126         * lib/w32spawn.h: Likewise.
66127         * lib/xstrndup.c: Likewise.
66128         * lib/mountlist.c (strstr): Remove decl.
66129         * m4/string_h.m4: New file.
66130         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66131         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66132         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66133         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66134         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66135         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66136         Set REPLACE_STRCASECMP if necessary.
66137         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66138         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66139         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66140         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66141         HAVE_DECL_STRDUP if necessary.
66142         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66143         since gl_FUNC_STRNDUP does that now.
66144         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66145         Check for decl here...
66146         (gl_PREREQ_STRNLEN): ... not here.
66147         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66148         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66149         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66150         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66151         necessary.
66152         * modules/string: New file.
66153         * modules/memmem (Files): Remove special-purpose include file.
66154         (Depends-on): Add string.
66155         (Include): Include <string.h>, not the removed file.
66156         * modules/mempcpy: Likewise.
66157         * modules/memrchr: Likewise.
66158         * modules/stpcpy: Likewise.
66159         * modules/stpncpy: Likewise.
66160         * modules/strcase: Likewise.
66161         * modules/strchrnul: Likewise.
66162         * modules/strdup: Likewise.
66163         * modules/strndup: Likewise.
66164         * modules/strnlen: Likewise.
66165         * modules/strpbrk: Likewise.
66166         * modules/strsep: Likewise.
66167         * modules/strstr: Likewise.
66168         * modules/strtok_r: Likewise.
66169         * tests/test-dirname.c: Don't include "strdup.h", since
66170         <string.h> now suffices.
66171         * tests/test-memmem.c: Don't include "memmem.h", since
66172         <string.h> now suffices.
66174 2007-01-25  Bruno Haible  <bruno@clisp.org>
66176         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66177         *resultp is 0.
66179         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66180         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66181         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66182         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66184         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66185         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66186         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66187         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66188         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66189         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66191 2007-01-24  Bruno Haible  <bruno@clisp.org>
66193         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66194         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66195         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66196         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66197         gl_FUNC_FTS_CORE.
66198         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66199         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66200         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66201         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66202         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66203         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66204         gl_FUNC_FCHOWNAT.
66205         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66206         gl_FUNC_STRFTIME.
66207         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66208         Reported by Ralf Wildenhues.
66210 2007-01-24  Bruno Haible  <bruno@clisp.org>
66212         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66213         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66214         gl_GETADDRINFO.
66215         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66216         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66217         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66219 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66221         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66222         Don't use 'exit'; just return from 'main'.
66223         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66225         * lib/fnmatch_.h: Readjust white space and comments to match
66226         glibc, to avoid spurious diffs.
66228 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66230         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66231         2004-12-01 change by Jakub Jelinek, since this code won't compile
66232         if !LIBC.  Problem reported by Bob Proulx.
66234 2007-01-23  Bruno Haible  <bruno@clisp.org>
66236         * lib/striconveh.c: Include c-strcaseeq.h.
66237         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66238         * modules/striconveh (Depends-on): Add c-strcaseeq.
66240 2007-01-23  Bruno Haible  <bruno@clisp.org>
66242         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66244         * modules/c-strcaseeq: New file.
66245         * lib/c-strcaseeq.h: New file.
66247         * modules/streq: New file.
66248         * lib/streq.h: New file.
66250 2007-01-23  Bruno Haible  <bruno@clisp.org>
66252         * modules/striconveha-tests: New file.
66253         * tests/test-striconveha.c: New file.
66255         * lib/striconveha.h: Include <stdbool.h>.
66256         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66257         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66258         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66259         (mem_iconveha): New function.
66260         (str_iconveha_notranslit): Renamed from str_iconveha.
66261         (str_iconveha): New function.
66262         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66263         c-strcase.
66265 2007-01-23  Bruno Haible  <bruno@clisp.org>
66267         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66268         encodings without forgiving before trying any encoding with handler.
66269         (str_iconveha): Try all encodings without forgiving before trying any
66270         encoding with handler.
66272 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66274         Import the following changes from libc.
66276         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66278         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66280         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66282         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66283         normal_bracket label.
66285         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66287         [BZ #361]
66288         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66289         to normal_bracket after fetching the next character.
66291 2007-01-22  Bruno Haible  <bruno@clisp.org>
66293         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66294         argument.
66295         * lib/striconveh.c (iconv_carefully_1): New function.
66296         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66297         argument.
66298         (str_cd_iconveh): Update.
66299         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66300         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66301         * tests/test-striconveh.c (MAGIC): New macro.
66302         (new_offsets): New function.
66303         (main): Test call with and without offsets.
66305 2007-01-22  Bruno Haible  <bruno@clisp.org>
66307         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66308         * modules/sys_select (Makefile.am): Likewise.
66309         * modules/sys_socket (Makefile.am): Likewise.
66310         * modules/sys_time (Makefile.am): Likewise.
66312 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66314         * modules/gettimeofday (License): Change from GPL to LGPL, since
66315         gettimeofday is a library function.
66317 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66319         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66321 2007-01-21  Bruno Haible  <bruno@clisp.org>
66323         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66325 2007-01-21  Bruno Haible  <bruno@clisp.org>
66327         * modules/striconveha: New file.
66328         * lib/striconveha.h: New file.
66329         * lib/striconveha.c: New file.
66330         * MODULES.html.sh (Internationalization functions): Add striconveha.
66331         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66332         string.
66333         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66335 2007-01-21  Bruno Haible  <bruno@clisp.org>
66337         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66338         * lib/striconveh.c (str_iconveh): Likewise.
66340 2007-01-21  Bruno Haible  <bruno@clisp.org>
66342         * lib/striconveh.h (mem_iconveh): New declaration.
66343         * lib/striconveh.c (mem_iconveh): New function.
66344         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66346 2007-01-21  Bruno Haible  <bruno@clisp.org>
66348         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66350         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66351         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66352         original result buffer.
66353         (str_cd_iconveh): Update.
66354         * tests/test-striconveh.c (main): Update.
66356         * lib/striconv.h (mem_cd_iconv): Change specification.
66357         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66358         result buffer.
66359         (str_cd_iconv): Update.
66360         * tests/test-striconv.c (main): Update.
66362 2007-01-21  Bruno Haible  <bruno@clisp.org>
66364         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66366 2007-01-20  Jim Meyering  <jim@meyering.net>
66368         * lib/userspec.c (parse_with_separator): If a user or group string
66369         starts with "+", skip the corresponding name-to-ID look-up, since
66370         such a look-up must fail: user and group names may not include "+".
66372 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66374         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66375         since we now assume the sys_time module.
66376         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66377         check for sys/time.h; no longer needed.
66378         * modules/poll (Depends-on): Depend on sys_time.
66380 2007-01-18  Bruno Haible  <bruno@clisp.org>
66382         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66383         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66385         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66386         gettimeofday.
66388         * tests/test-gettimeofday.c: Include <time.h>.
66389         (dummy): Remove variable.
66391         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66392         gl_HEADER_SYS_TIME_H.
66393         (gl_HEADER_SYS_TIME_H): New macro.
66395         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66396         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66397         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66398         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66399         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66400         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66401         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66402         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66403         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66404         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66405         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66407         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66408         last change; it caused a compilation error when cross-compiling to
66409         Cygwin.
66411 2007-01-18  Jim Meyering  <jim@meyering.net>
66413         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66414         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66415         than the race-prone "test -d sys || mkdir sys".
66416         (configure.ac): Use AC_PROG_MKDIR_P.
66417         * modules/sys_select: Likewise.
66418         * modules/sys_socket: Likewise.
66419         * modules/sys_time: Likewise.
66421 2007-01-18  Eric Blake  <ebb9@byu.net>
66423         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66424         replace gettimeofday.
66425         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66426         name, to avoid infinite recursion.
66428 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66430         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66431         module sys_time.
66432         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66433         assume timespec.h defines struct timeval.
66434         * lib/settime.c: Likewise.
66435         * lib/utimens.c: Likewise.
66436         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66437         since we now assume the gettimeofday module.
66438         * lib/tempname.c (__gen_tempname): Likewise.
66439         * lib/gettimeofday.h: Remove.
66440         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66441         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66442         Include <time.h>, for 'time()'.
66443         (localtime_buffer_addr): Also use this workaround if
66444         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66445         to simplify the uses.  All uses changed.
66446         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66447         that #undef is inside {}, and 'const' follows type name consistently.
66448         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66449         (gettimeofday): Do not use the maximum possible value for
66450         tv->tv_usec, since that might break usages other than ls.c.
66451         Instead, we'll leave ls.c alone.  This undoes today's patch
66452         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66453         we've never observed the problem but might as well keep the
66454         canary.
66455         * lib/nanosleep.c: Include timespec.h first, for interface check.
66456         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66457         now assume the sys_time module.
66458         * lib/tempname.c: Likewise.
66459         * lib/timespec.h: Likewise.
66460         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66461         needed.
66462         * lib/strftime.c: Likewise.
66463         * lib/timespec.h: Likewise.
66464         * lib/posixtm.c: Include posixtm.h first, for interface check.
66465         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66466         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66467         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66468         * lib/sys_time_.h: New file.
66469         * lib/timespec.h (struct timespec): Use long int, not long.
66470         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66471         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66472         Remove obsolescent call to AC_HEADER_TIME.
66473         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66475         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66476         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66477         Likewise.
66478         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66479         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66481         into the sys_time module.  Check for gettimeofday just once.
66482         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66483         for gettimeofday signature to just check the signature.  Merely
66484         compile it, since linking doesn't test signature.  Improve test for
66485         whether gettimeofday.o is actually needed.
66486         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66487         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66488         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66489         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66490         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66491         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66492         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66493         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66494         than worrying about sys/time.h.
66495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66496         Don't bother worrying about TIME_WITH_SYS_TIME.
66497         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66498         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66499         * m4/sys_time_h.m4: New file.
66500         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66501         Don't include sys/time.h.  Return from main rather than exiting.
66502         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66503         all uses changed.
66504         * modules/gethrxtime (Depends-on): Add sys_time.
66505         * modules/gettime (Depends-on): Likewise.
66506         * modules/gettimeofday (Depends-on): Likewise.
66507         * modules/nanosleep (Depends-on): Likewise.
66508         * modules/settime (Depends-on): Likewise.
66509         * modules/tempname (Depends-on): Likewise.
66510         * modules/utimens (Depends-on): Likewise.
66511         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66512         (Include): Change back to <sys/time.h>.
66513         (Maintainer): Add self.
66514         * modules/sys_time: New file.
66515         * modules/tempname (Depends-on): Add gettimeofday.
66516         * tests/test-gettimeofday.c: Include <sys/time.h>
66517         rather than gettimeofday.h.
66519 2007-01-17  Bruno Haible  <bruno@clisp.org>
66521         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66522         the license default to GPL.
66523         (func_create_testdir): Don't complain if a module is LGPL and its
66524         tests module depends on GPLed modules.
66526 2007-01-17  Bruno Haible  <bruno@clisp.org>
66528         * lib/gettimeofday.c (gettimeofday): Add code for the case
66529         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66530         maximum possible value for tv->tv_usec, rather than the minimum one.
66532 2005-10-08  Martin Lambers  <marlam@marlam.de>
66533 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66534 2007-01-16  Bruno Haible  <bruno@clisp.org>
66536         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66537         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66538         gl_FUNC_GETTIMEOFDAY.
66539         (Include): Add gettimeofday.h.
66540         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66541         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66542         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66543         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66544         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66545         * lib/gettimeofday.h: New file.
66546         * lib/gettimeofday.c: Include <sys/timeb.h>.
66547         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66548         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66549         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66550         fall back on time().
66552         * tests/test-gettimeofday.c: New file.
66553         * modules/gettimeofday-tests: New file.
66555 2007-01-16  Eric Blake  <ebb9@byu.net>
66557         * modules/fnmatch (Depends-on): Depend on wchar.
66558         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66559         * m4/fnmatch.m4: Likewise.
66560         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66561         * m4/mbchar.m4: Likewise.
66562         * modules/mbswidth (Depends-on): Depend on wchar.
66563         * lib/mbswidth.c: Assume <wchar.h>.
66564         * m4/mbswidth.m4: Likewise.
66565         * modules/quotearg (Depends-on): Depend on wchar.
66566         * lib/quotearg.c: Assume <wchar.h>.
66567         * m4/quotearg.m4: Likewise.
66568         * modules/regex (Depends-on): Depend on wchar.
66569         * lib/regex_internal.h: Assume <wchar.h>.
66570         * m4/regex.m4: Likewise.
66571         * modules/stdint (Depends-on): Depend on wchar.
66572         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66573         * m4/stdint.m4: Likewise.
66574         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66575         * modules/strftime (Depends-on): Depend on wchar.
66576         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66577         * modules/strtol (Depends-on): Depend on wchar.
66578         * lib/strtol.c: Assume <wchar.h>.
66579         * modules/wcwidth (Depends-on): Depend on wchar.
66580         * lib/wcwidth.h: Assume <wchar.h>.
66581         * m4/wcwidth.m4: Likewise.
66583 2007-01-16  Bruno Haible  <bruno@clisp.org>
66585         * modules/csharpexec-script: New, created from...
66586         * modules/csharpexec: ... this.
66588 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66590         * modules/javaexec-script: New, created from...
66591         * modules/javaexec: ... this.
66593 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66595         * modules/poll (Dependencies): Add sys_select.
66597 2007-01-15  Jim Meyering  <jim@meyering.net>
66599         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66600         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66601         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66602         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66604 2007-01-15  Bruno Haible  <bruno@clisp.org>
66606         * modules/striconveh: New file.
66607         * lib/striconveh.h: New file.
66608         * lib/striconveh.c: New file.
66609         * MODULES.html.sh (Internationalization functions): Add striconveh.
66611         * modules/striconveh-tests: New file.
66612         * tests/test-striconveh.c: New file.
66614 2007-01-15  Bruno Haible  <bruno@clisp.org>
66616         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66617         not from GNU libiconv or GNU libc.
66619 2007-01-15  Bruno Haible  <bruno@clisp.org>
66621         * doc/gnulib-intro.texi (Copyright): Explain the different license
66622         terms for module descriptions, autoconf macros, tests, documentation.
66624 2007-01-14  Bruno Haible  <bruno@clisp.org>
66626         * modules/striconv-tests: New file.
66627         * tests/test-striconv.c: New file.
66629 2007-01-14  Bruno Haible  <bruno@clisp.org>
66631         * modules/iconv-tests: New file.
66632         * tests/test-iconv.c: New file.
66634 2007-01-14  Bruno Haible  <bruno@clisp.org>
66636         * gnulib-tool (func_get_license): For test modules, use the license of
66637         the main module.
66639 2007-01-14  Bruno Haible  <bruno@clisp.org>
66641         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66642         if iconv is found to exist.
66644 2007-01-14  Bruno Haible  <bruno@clisp.org>
66646         * modules/c-ctype-tests: New file.
66647         * tests/test-c-ctype.c: New file.
66649 2007-01-14  Bruno Haible  <bruno@clisp.org>
66651         * modules/binary-io-tests: New file.
66652         * tests/test-binary-io.sh: New file.
66653         * tests/test-binary-io.c: New file.
66655 2007-01-14  Bruno Haible  <bruno@clisp.org>
66657         * modules/array-oset-tests: New file.
66658         * tests/test-array_oset.c: New file.
66660 2007-01-14  Bruno Haible  <bruno@clisp.org>
66662         * modules/array-list-tests: New file.
66663         * tests/test-array_list.c: New file.
66665 2007-01-14  Bruno Haible  <bruno@clisp.org>
66667         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66668         and make.
66669         Reported by Simon Josefsson in
66670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66672 2007-01-14  Bruno Haible  <bruno@clisp.org>
66674         * modules/allocsa-tests: New file.
66675         * tests/test-allocsa.c: New file.
66677 2007-01-14  Bruno Haible  <bruno@clisp.org>
66679         * modules/fchdir (Depends-on): Add absolute-header.
66680         * modules/unistd (Depends-on): Likewise.
66682 2006-12-30  Bruno Haible  <bruno@clisp.org>
66684         * modules/fchdir: New file.
66685         * modules/unistd (Files): Add lib/unistd_.h.
66686         (Makefile.am): Generate unistd.h from unistd_.h.
66687         * lib/fchdir.c: New file.
66688         * lib/dirent_.h: New file.
66689         * lib/unistd_.h: New file.
66690         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66691         * m4/fchdir.m4: New file.
66692         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66693         (gl_HEADER_UNISTD): Invoke it.
66694         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66695         function.
66696         * lib/backupfile.c (opendir, closedir): Undefine.
66697         * lib/chown.c (open, close): Undefine.
66698         * lib/clean-temp.c (open, close): Undefine.
66699         * lib/copy-file.c (open, close): Undefine.
66700         * lib/execute.c (open, close): Undefine.
66701         * lib/fsusage.c (open, close): Undefine.
66702         * lib/gc-gnulib.c (open, close): Undefine.
66703         * lib/getcwd.c (opendir, closedir): Undefine.
66704         * lib/glob.c (opendir, closedir): Undefine.
66705         * lib/javacomp.c (open, close): Undefine.
66706         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66707         * lib/openat-proc.c (open, close): Undefine.
66708         * lib/pagealign_alloc.c (open, close): Undefine.
66709         * lib/pipe.c (open, close): Undefine.
66710         * lib/progreloc.c (open, close): Undefine.
66711         * lib/savedir.c (opendir, closedir): Undefine.
66712         * lib/utime.c (open, close): Undefine.
66713         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66715 2007-01-10  Bruno Haible  <bruno@clisp.org>
66717         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66719 2007-01-12  Eric Blake  <ebb9@byu.net>
66721         Provide a robust <wchar.h>.  Further simplifications are now
66722         possible in other modules, but not included here.
66723         * modules/wchar: New module.
66724         * m4/wchar.m4: New file.
66725         * lib/wchar_.h: Likewise.
66726         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66727         of the new module.
66728         * MODULES.html.sh (Extended multibyte and wide character utilities):
66729         New section.
66731 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66733         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66734         to a reasonable default for memory allocation.
66735         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66736         file system that reports garbage st_size values for symlinks.
66737         Problem reported by Liyang Hu.
66739 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66741         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66742         Emacs .#* auto-save files).
66744 2007-01-11  Bruno Haible  <bruno@clisp.org>
66746         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66747         directory.
66749 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66751         Use @...@ consistently in lib/wctype_.h.
66752         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66753         on it being set to 1 or 0.
66754         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66755         go back to AC_SUBSTing it.
66756         * modules/wctype (Makefile.am): Undo previous change.
66758 2007-01-10  Eric Blake  <ebb9@byu.net>
66760         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66761         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66762         * modules/wctype (Makefile.am): Likewise.
66763         Reported by Chris McGuire.
66765 2007-01-10  Jim Meyering  <jim@meyering.net>
66767         fts.c: a small readability/maintainability improvement
66768         * lib/fts.c (fts_read): Make this code slightly more readable and
66769         maintainable by hoisting the "sp->fts_cur = p" assignments to
66770         immediately follow the statements that set P.  Derived from
66771         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66773 2007-01-10  Eric Blake  <ebb9@byu.net>
66775         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66776         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66778         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66779         Reported by Chris McGuire.
66781 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66783         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66784         in sed script.
66786 2007-01-09  Bruno Haible  <bruno@clisp.org>
66788         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66789         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66790         variables.
66791         (func_module): Use them.
66793 2007-01-09  Bruno Haible  <bruno@clisp.org>
66795         * modules/unistr/base: New file.
66796         * lib/unistr.h: New file.
66798         * modules/unistr/u8-to-u16: New file.
66799         * lib/unistr/u8-to-u16.c: New file.
66801         * modules/unistr/u8-to-u32: New file.
66802         * lib/unistr/u8-to-u32.c: New file.
66804         * modules/unistr/u16-to-u8: New file.
66805         * lib/unistr/u16-to-u8.c: New file.
66807         * modules/unistr/u16-to-u32: New file.
66808         * lib/unistr/u16-to-u32.c: New file.
66810         * modules/unistr/u32-to-u8: New file.
66811         * lib/unistr/u32-to-u8.c: New file.
66813         * modules/unistr/u32-to-u16: New file.
66814         * lib/unistr/u32-to-u16.c: New file.
66816         * modules/unistr/u8-check: New file.
66817         * modules/unistr/u16-check: New file.
66818         * modules/unistr/u32-check: New file.
66819         * lib/unistr/u8-check.c: New file.
66820         * lib/unistr/u16-check.c: New file.
66821         * lib/unistr/u32-check.c: New file.
66823         * modules/unistr/u8-chr: New file.
66824         * modules/unistr/u16-chr: New file.
66825         * modules/unistr/u32-chr: New file.
66826         * lib/unistr/u8-chr.c: New file.
66827         * lib/unistr/u16-chr.c: New file.
66828         * lib/unistr/u32-chr.c: New file.
66830         * modules/unistr/u8-cmp: New file.
66831         * modules/unistr/u16-cmp: New file.
66832         * modules/unistr/u32-cmp: New file.
66833         * lib/unistr/u8-cmp.c: New file.
66834         * lib/unistr/u16-cmp.c: New file.
66835         * lib/unistr/u32-cmp.c: New file.
66837         * modules/unistr/u8-cpy: New file.
66838         * modules/unistr/u16-cpy: New file.
66839         * modules/unistr/u32-cpy: New file.
66840         * lib/unistr/u8-cpy.c: New file.
66841         * lib/unistr/u16-cpy.c: New file.
66842         * lib/unistr/u32-cpy.c: New file.
66843         * lib/unistr/u-cpy.h: New file.
66845         * modules/unistr/u8-cpy-alloc: New file.
66846         * modules/unistr/u16-cpy-alloc: New file.
66847         * modules/unistr/u32-cpy-alloc: New file.
66848         * lib/unistr/u8-cpy-alloc.c: New file.
66849         * lib/unistr/u16-cpy-alloc.c: New file.
66850         * lib/unistr/u32-cpy-alloc.c: New file.
66851         * lib/unistr/u-cpy-alloc.h: New file.
66853         * modules/unistr/u8-endswith: New file.
66854         * modules/unistr/u16-endswith: New file.
66855         * modules/unistr/u32-endswith: New file.
66856         * lib/unistr/u8-endswith.c: New file.
66857         * lib/unistr/u16-endswith.c: New file.
66858         * lib/unistr/u32-endswith.c: New file.
66859         * lib/unistr/u-endswith.h: New file.
66861         * modules/unistr/u8-mblen: New file.
66862         * modules/unistr/u16-mblen: New file.
66863         * modules/unistr/u32-mblen: New file.
66864         * lib/unistr/u8-mblen.c: New file.
66865         * lib/unistr/u16-mblen.c: New file.
66866         * lib/unistr/u32-mblen.c: New file.
66868         * modules/unistr/u8-mbtouc: New file.
66869         * modules/unistr/u16-mbtouc: New file.
66870         * modules/unistr/u32-mbtouc: New file.
66871         * lib/unistr/u8-mbtouc.c: New file.
66872         * lib/unistr/u16-mbtouc.c: New file.
66873         * lib/unistr/u32-mbtouc.c: New file.
66875         * modules/unistr/u8-mbtouc-safe: New file.
66876         * modules/unistr/u16-mbtouc-safe: New file.
66877         * modules/unistr/u32-mbtouc-safe: New file.
66878         * lib/unistr/u8-mbtouc-safe.c: New file.
66879         * lib/unistr/u16-mbtouc-safe.c: New file.
66880         * lib/unistr/u32-mbtouc-safe.c: New file.
66882         * modules/unistr/u8-move: New file.
66883         * modules/unistr/u16-move: New file.
66884         * modules/unistr/u32-move: New file.
66885         * lib/unistr/u8-move.c: New file.
66886         * lib/unistr/u16-move.c: New file.
66887         * lib/unistr/u32-move.c: New file.
66888         * lib/unistr/u-move.h: New file.
66890         * modules/unistr/u8-next: New file.
66891         * modules/unistr/u16-next: New file.
66892         * modules/unistr/u32-next: New file.
66893         * lib/unistr/u8-next.c: New file.
66894         * lib/unistr/u16-next.c: New file.
66895         * lib/unistr/u32-next.c: New file.
66897         * modules/unistr/u8-prev: New file.
66898         * modules/unistr/u16-prev: New file.
66899         * modules/unistr/u32-prev: New file.
66900         * lib/unistr/u8-prev.c: New file.
66901         * lib/unistr/u16-prev.c: New file.
66902         * lib/unistr/u32-prev.c: New file.
66904         * modules/unistr/u8-set: New file.
66905         * modules/unistr/u16-set: New file.
66906         * modules/unistr/u32-set: New file.
66907         * lib/unistr/u8-set.c: New file.
66908         * lib/unistr/u16-set.c: New file.
66909         * lib/unistr/u32-set.c: New file.
66910         * lib/unistr/u-set.h: New file.
66912         * modules/unistr/u8-startswith: New file.
66913         * modules/unistr/u16-startswith: New file.
66914         * modules/unistr/u32-startswith: New file.
66915         * lib/unistr/u8-startswith.c: New file.
66916         * lib/unistr/u16-startswith.c: New file.
66917         * lib/unistr/u32-startswith.c: New file.
66918         * lib/unistr/u-startswith.h: New file.
66920         * modules/unistr/u8-stpcpy: New file.
66921         * modules/unistr/u16-stpcpy: New file.
66922         * modules/unistr/u32-stpcpy: New file.
66923         * lib/unistr/u8-stpcpy.c: New file.
66924         * lib/unistr/u16-stpcpy.c: New file.
66925         * lib/unistr/u32-stpcpy.c: New file.
66926         * lib/unistr/u-stpcpy.h: New file.
66928         * modules/unistr/u8-stpncpy: New file.
66929         * modules/unistr/u16-stpncpy: New file.
66930         * modules/unistr/u32-stpncpy: New file.
66931         * lib/unistr/u8-stpncpy.c: New file.
66932         * lib/unistr/u16-stpncpy.c: New file.
66933         * lib/unistr/u32-stpncpy.c: New file.
66934         * lib/unistr/u-stpncpy.h: New file.
66936         * modules/unistr/u8-strcat: New file.
66937         * modules/unistr/u16-strcat: New file.
66938         * modules/unistr/u32-strcat: New file.
66939         * lib/unistr/u8-strcat.c: New file.
66940         * lib/unistr/u16-strcat.c: New file.
66941         * lib/unistr/u32-strcat.c: New file.
66942         * lib/unistr/u-strcat.h: New file.
66944         * modules/unistr/u8-strchr: New file.
66945         * modules/unistr/u16-strchr: New file.
66946         * modules/unistr/u32-strchr: New file.
66947         * lib/unistr/u8-strchr.c: New file.
66948         * lib/unistr/u16-strchr.c: New file.
66949         * lib/unistr/u32-strchr.c: New file.
66951         * modules/unistr/u8-strcmp: New file.
66952         * modules/unistr/u16-strcmp: New file.
66953         * modules/unistr/u32-strcmp: New file.
66954         * lib/unistr/u8-strcmp.c: New file.
66955         * lib/unistr/u16-strcmp.c: New file.
66956         * lib/unistr/u32-strcmp.c: New file.
66958         * modules/unistr/u8-strcpy: New file.
66959         * modules/unistr/u16-strcpy: New file.
66960         * modules/unistr/u32-strcpy: New file.
66961         * lib/unistr/u8-strcpy.c: New file.
66962         * lib/unistr/u16-strcpy.c: New file.
66963         * lib/unistr/u32-strcpy.c: New file.
66964         * lib/unistr/u-strcpy.h: New file.
66966         * modules/unistr/u8-strcspn: New file.
66967         * modules/unistr/u16-strcspn: New file.
66968         * modules/unistr/u32-strcspn: New file.
66969         * lib/unistr/u8-strcspn.c: New file.
66970         * lib/unistr/u16-strcspn.c: New file.
66971         * lib/unistr/u32-strcspn.c: New file.
66972         * lib/unistr/u-strcspn.h: New file.
66974         * modules/unistr/u8-strdup: New file.
66975         * modules/unistr/u16-strdup: New file.
66976         * modules/unistr/u32-strdup: New file.
66977         * lib/unistr/u8-strdup.c: New file.
66978         * lib/unistr/u16-strdup.c: New file.
66979         * lib/unistr/u32-strdup.c: New file.
66980         * lib/unistr/u-strdup.h: New file.
66982         * modules/unistr/u8-strlen: New file.
66983         * modules/unistr/u16-strlen: New file.
66984         * modules/unistr/u32-strlen: New file.
66985         * lib/unistr/u8-strlen.c: New file.
66986         * lib/unistr/u16-strlen.c: New file.
66987         * lib/unistr/u32-strlen.c: New file.
66988         * lib/unistr/u-strlen.h: New file.
66990         * modules/unistr/u8-strmblen: New file.
66991         * modules/unistr/u16-strmblen: New file.
66992         * modules/unistr/u32-strmblen: New file.
66993         * lib/unistr/u8-strmblen.c: New file.
66994         * lib/unistr/u16-strmblen.c: New file.
66995         * lib/unistr/u32-strmblen.c: New file.
66997         * modules/unistr/u8-strmbtouc: New file.
66998         * modules/unistr/u16-strmbtouc: New file.
66999         * modules/unistr/u32-strmbtouc: New file.
67000         * lib/unistr/u8-strmbtouc.c: New file.
67001         * lib/unistr/u16-strmbtouc.c: New file.
67002         * lib/unistr/u32-strmbtouc.c: New file.
67004         * modules/unistr/u8-strncat: New file.
67005         * modules/unistr/u16-strncat: New file.
67006         * modules/unistr/u32-strncat: New file.
67007         * lib/unistr/u8-strncat.c: New file.
67008         * lib/unistr/u16-strncat.c: New file.
67009         * lib/unistr/u32-strncat.c: New file.
67010         * lib/unistr/u-strncat.h: New file.
67012         * modules/unistr/u8-strncmp: New file.
67013         * modules/unistr/u16-strncmp: New file.
67014         * modules/unistr/u32-strncmp: New file.
67015         * lib/unistr/u8-strncmp.c: New file.
67016         * lib/unistr/u16-strncmp.c: New file.
67017         * lib/unistr/u32-strncmp.c: New file.
67019         * modules/unistr/u8-strncpy: New file.
67020         * modules/unistr/u16-strncpy: New file.
67021         * modules/unistr/u32-strncpy: New file.
67022         * lib/unistr/u8-strncpy.c: New file.
67023         * lib/unistr/u16-strncpy.c: New file.
67024         * lib/unistr/u32-strncpy.c: New file.
67025         * lib/unistr/u-strncpy.h: New file.
67027         * modules/unistr/u8-strnlen: New file.
67028         * modules/unistr/u16-strnlen: New file.
67029         * modules/unistr/u32-strnlen: New file.
67030         * lib/unistr/u8-strnlen.c: New file.
67031         * lib/unistr/u16-strnlen.c: New file.
67032         * lib/unistr/u32-strnlen.c: New file.
67033         * lib/unistr/u-strnlen.h: New file.
67035         * modules/unistr/u8-strpbrk: New file.
67036         * modules/unistr/u16-strpbrk: New file.
67037         * modules/unistr/u32-strpbrk: New file.
67038         * lib/unistr/u8-strpbrk.c: New file.
67039         * lib/unistr/u16-strpbrk.c: New file.
67040         * lib/unistr/u32-strpbrk.c: New file.
67041         * lib/unistr/u-strpbrk.h: New file.
67043         * modules/unistr/u8-strrchr: New file.
67044         * modules/unistr/u16-strrchr: New file.
67045         * modules/unistr/u32-strrchr: New file.
67046         * lib/unistr/u8-strrchr.c: New file.
67047         * lib/unistr/u16-strrchr.c: New file.
67048         * lib/unistr/u32-strrchr.c: New file.
67050         * modules/unistr/u8-strspn: New file.
67051         * modules/unistr/u16-strspn: New file.
67052         * modules/unistr/u32-strspn: New file.
67053         * lib/unistr/u8-strspn.c: New file.
67054         * lib/unistr/u16-strspn.c: New file.
67055         * lib/unistr/u32-strspn.c: New file.
67056         * lib/unistr/u-strspn.h: New file.
67058         * modules/unistr/u8-strstr: New file.
67059         * modules/unistr/u16-strstr: New file.
67060         * modules/unistr/u32-strstr: New file.
67061         * lib/unistr/u8-strstr.c: New file.
67062         * lib/unistr/u16-strstr.c: New file.
67063         * lib/unistr/u32-strstr.c: New file.
67064         * lib/unistr/u-strstr.h: New file.
67066         * modules/unistr/u8-strtok: New file.
67067         * modules/unistr/u16-strtok: New file.
67068         * modules/unistr/u32-strtok: New file.
67069         * lib/unistr/u8-strtok.c: New file.
67070         * lib/unistr/u16-strtok.c: New file.
67071         * lib/unistr/u32-strtok.c: New file.
67072         * lib/unistr/u-strtok.h: New file.
67074         * modules/unistr/u8-uctomb: New file.
67075         * modules/unistr/u16-uctomb: New file.
67076         * modules/unistr/u32-uctomb: New file.
67077         * lib/unistr/u8-uctomb.c: New file.
67078         * lib/unistr/u16-uctomb.c: New file.
67079         * lib/unistr/u32-uctomb.c: New file.
67081         * MODULES.html.sh (Unicode string functions): Add the new modules.
67083 2007-01-08  Bruno Haible  <bruno@clisp.org>
67085         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67086         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67087         subdirectories.
67089 2007-01-08  Karl Berry  <karl@gnu.org>
67091         * doc/error.texi: mention that main() fns must set program_name
67092         when progname is used.
67094 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67096         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67097         WCTYPE_H is empty, for the benefit of builds from non-distclean
67098         directories.  Problem reported by Eric Blake in
67099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67101 2007-01-08  Bruno Haible  <bruno@clisp.org>
67103         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67104         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67105         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67106         PROVIDE_CANONICALIZE_FILENAME_MODE.
67107         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67109 2007-01-08  Bruno Haible  <bruno@clisp.org>
67111         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67112         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67113         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67114         * lib/fts.c: Likewise.
67115         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67117 2006-12-25  Bruno Haible  <bruno@clisp.org>
67119         * modules/utf8-ucs4-safe: New file.
67120         * lib/utf8-ucs4-safe.h: New file.
67121         * lib/unistr/utf8-ucs4-safe.c: New file.
67123         * modules/utf16-ucs4-safe: New file.
67124         * lib/utf16-ucs4-safe.h: New file.
67125         * lib/unistr/utf16-ucs4-safe.c: New file.
67127         * MODULES.html.sh (Unicode string functions): Add the new modules.
67129 2007-01-08  Bruno Haible  <bruno@clisp.org>
67131         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67132         (Depends-on): Add unitypes.
67133         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67134         (u8_mbtouc_aux): Move out to separate file.
67135         (u8_mbtouc): Use ucs4_t, uint8_t types.
67136         * lib/unistr/utf8-ucs4.c: New file.
67138         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67139         (Depends-on): Add unitypes.
67140         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67141         (u16_mbtouc_aux): Move out to separate file.
67142         (u16_mbtouc): Use ucs4_t, uint16_t types.
67143         * lib/unistr/utf16-ucs4.c: New file.
67145         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67146         (Depends-on): Add unitypes.
67147         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67148         (u8_uctomb_aux): Move out to separate file.
67149         (u8_uctomb): Use ucs4_t, uint8_t types.
67150         * lib/unistr/ucs4-utf8.c: New file.
67152         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67153         (Depends-on): Add unitypes.
67154         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67155         (u16_uctomb_aux): Move out to separate file.
67156         (u16_uctomb): Use ucs4_t, uint16_t types.
67157         * lib/unistr/ucs4-utf16.c: New file.
67159 2006-12-25  Bruno Haible  <bruno@clisp.org>
67161         * modules/unitypes: New file.
67162         * lib/unitypes.h: New file.
67163         * MODULES.html.sh (func_all_modules): New section "Unicode string
67164         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67165         this section. Add unitypes.
67167 2007-01-08  Bruno Haible  <bruno@clisp.org>
67169         Avoid variable names that conflict with those from libtool.
67170         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67171         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67172         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67173         library_names_spec to acl_library_names_spec, hardcode_* to
67174         acl_hardcode_*.
67175         Reported by Ralf Wildenhues.
67177 2007-01-08  Bruno Haible  <bruno@clisp.org>
67179         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67180         definition.
67181         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67182         definition.
67183         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67184         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67185         definition.
67186         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67187         definition.
67188         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67189         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67190         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67191         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67192         definition.
67193         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67194         definition.
67195         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67196         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67197         GC_USE_<algorithm>.
67198         * lib/gc-libgcrypt.c: Likewise.
67199         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67200         * modules/gc-arctwo (configure.ac): Likewise.
67201         * modules/gc-des (configure.ac): Likewise.
67202         * modules/gc-hmac-md5 (configure.ac): Likewise.
67203         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67204         * modules/gc-md2 (configure.ac): Likewise.
67205         * modules/gc-md4 (configure.ac): Likewise.
67206         * modules/gc-md5 (configure.ac): Likewise.
67207         * modules/gc-random (configure.ac): Likewise.
67208         * modules/gc-rijndael (configure.ac): Likewise.
67209         * modules/gc-sha1 (configure.ac): Likewise.
67211 2007-01-08  Bruno Haible  <bruno@clisp.org>
67213         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67214         macro definition.
67215         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67216         definition.
67217         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67218         definition.
67219         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67220         * modules/fcntl-safer (configure.ac): Likewise.
67221         * modules/fopen-safer (configure.ac): Likewise.
67222         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67223         GNULIB_FWRITEERROR macro definition.
67225 2007-01-08  Bruno Haible  <bruno@clisp.org>
67227         * m4/gnulib-common.m4: New file.
67228         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67229         (func_get_filelist): Add m4/gnulib-common.m4.
67231 2007-01-08  Bruno Haible  <bruno@clisp.org>
67233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67234         command.
67236 2007-01-08  Jim Meyering  <jim@meyering.net>
67238         Use a more robust test for a "can't happen" condition.
67239         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67240         narrowed the st_size value.  Presuming the "can't happen" condition
67241         is true, that narrowing could conceivably convert an invalid st_size
67242         value into a valid one.  Instead, use a change based on Matthew
67243         Woehlke's original patch.
67245         Slight readability improvement: use an assert-like macro
67246         in place of literal "abort ()" uses.
67247         * lib/fts.c (fts_assert): Define.
67248         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67249         Use this macro instead of a bare 'abort'.
67251 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67253         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67254         simply work around them.
67255         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67256         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67257         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67258         declaring.
67259         Don't bother to define as macros, since the standard doesn't require it.
67260         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67261         longer worry about IRIX 5.3.
67262         (HAVE_WCTYPE_CTMP_BUG): Remove.
67264 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67266         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67267         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67268         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67269         Problems reported by Georg Schwarz for IRIX 5.3.
67271         * gnulib-tool (autoconf_minversion): Take the maximum version number
67272         found, not the minimum.  Problem reported by James Youngman.
67274 2007-01-03  Karl Berry  <karl@gnu.org>
67276         * doc/error.texi: new file, explaining interaction with progname.
67277         * doc/gnulib.texi: include it.  Update copyright.
67279 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67281         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67282         AC_CANONICAL_HOST, to improve autobuild outputs.
67284 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67285             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67287         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67288         sockets, server sockets, and other file descriptors.  Count errors
67289         to compute the return value.  Reorder the code a bit to be easier
67290         to follow.  Don't set event bits that were not requested (except
67291         POLLERR and POLLHUP).
67293 2007-01-01  Bruno Haible  <bruno@clisp.org>
67295         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67297 2007-01-03  Jim Meyering  <jim@meyering.net>
67299         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67301 2007-01-02  Bruno Haible  <bruno@clisp.org>
67303         * modules/settime (Include): Require timespec.h.
67304         * modules/nanosleep (Include): Likewise.
67306 2007-01-01  Bruno Haible  <bruno@clisp.org>
67308         * gnulib-tool (func_emit_copyright_notice): Bump year.
67309         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67311 2007-01-01  Bruno Haible  <bruno@clisp.org>
67313         Improve support for OpenBSD.
67314         * build-aux/config.rpath (libname_spec): Export.
67315         (library_names_spec): New variable. Export.
67316         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67317         library_names_spec from the config.rpath output. Locate shared library
67318         through the name pattern in library_names_spec.
67320 2007-01-01  Eric Blake  <ebb9@byu.net>
67322         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67324 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67326         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67327         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67328         assume the C locale, and avoid an "eval" that could cause trouble.
67329         Problem with SORT reported by Bob Proulx.
67331         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67332         Define.  Trivial patch from Henning Nielsen Lund, originally
67333         sent to bug-grep@gnu.org today.
67335 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67337         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67338         struct stat.  Problem reported by Henning Nielsen Lund.
67339         * lib/acl.c: Include acl.h first, to check interface.  Don't
67340         bother to include sys/types.h and sys/stat.h again.
67342 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67344         Import the following change from libc; problem reported by
67345         Sven Verdoolaege.
67347         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67349         [BZ #1373]
67350         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67352 2006-12-28  Jim Meyering  <jim@meyering.net>
67354         * build-aux/announce-gen: Do not assume that the package
67355         builds any of tar.gz, tar.bz2, and .xdelta files.
67356         Suggestion from Simon Josefsson.
67358 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67360         * modules/announce-gen: New file.
67362 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67364         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67365         handles its gotchas now.
67366         * lib/mbswidth.c: Likewise.
67367         * lib/wcwidth.h: Likewise.
67368         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67369         and iswcntrl; the wctype module does this stuff now.
67370         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67372         * modules/mbchar (Depends-on): Add wctype.
67373         * modules/mbswidth (Depends-on): Likewise.
67374         * modules/wcwidth (Depends-on): Likewise.
67376 2006-12-27  Eric Blake  <ebb9@byu.net>
67378         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67379         module uses more than what <wctype.h> is required to provide.
67381 2006-12-26  Eric Blake  <ebb9@byu.net>
67383         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67385 2006-12-26  Eric Blake  <ebb9@byu.net>
67387         * modules/absolute-header: New module.
67388         * modules/fcntl (Depends-on): Depend on it.
67389         * modules/inttypes (Depends-on): Likewise.
67390         * modules/stdint (Depends-on): Likewise.
67391         * modules/sys_stat (Depends-on): Likewise.
67392         * modules/wctype (Depends-on): Likewise.
67393         * MODULES.html.sh (Support for building libraries and
67394         executables): Document it.
67396 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67398         * gnulib-tool (SED): Remove, undoing previous change.
67399         The problem was that it broke coreutils on Solaris, because
67400         "sed --posix" leaked into a makefile.
67401         (sed): New alias, if 'alias' and GNU sed.
67403 2006-12-24  Jim Meyering  <jim@meyering.net>
67405         Work around an fchownat bug in glibc-2.4:
67406         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67407         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67408         in spite of the -P option.
67409         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67410         New macros.
67411         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67412         * modules/openat (Files): Add lib/fchownat.c.
67413         * lib/openat.c (fchownat): Don't define here.  Move to...
67414         * lib/fchownat.c: ...this new file.
67416 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67418         Fix bug reported by Bruno Haible in
67419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67420         where quotearg.c didn't compile on Mac OS X 10.2 because it
67421         lacks <wchar.h> and wint_t.
67422         * lib/wctype_.h (__wctype_wint_t): New type.
67423         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67424         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67425         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67426         Arg is now of type __wctype_wint_t, not wint_t.
67427         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67428         substitute HAVE_WINT_T.
67429         * modules/wctype (Files): Add m4/wint_t.m4.
67430         (wctype.h): Substitute HAVE_WINT_T.
67432 2006-12-23  Bruno Haible  <bruno@clisp.org>
67434         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67436 2006-12-23  Bruno Haible  <bruno@clisp.org>
67438         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67439         S_ISLNK.
67440         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67441         mingw.
67443 2006-12-22  Bruno Haible  <bruno@clisp.org>
67445         * lib/copy-file.c: Include acl.h.
67446         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67447         Close the file descriptors only after being done with copy_acl.
67448         * modules/copy-file (Depends-on): Add acl.
67450 2006-12-22  Bruno Haible  <bruno@clisp.org>
67452         * gnulib-tool (SED): New variable.
67453         Use $SED instead of sed everywhere.
67455 2006-12-22  Bruno Haible  <bruno@clisp.org>
67457         * modules/no-c++: New file.
67458         * m4/no-c++.m4: New file.
67459         * MODULES.html.sh (Support for building libraries and executables):
67460         Add no-c++.
67462 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67464         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67465         Include <limits.h>, and use its INT_MAX to rewrite the
67466         j loop so that it does not overflow 'int'.  Problem reported by
67467         Ralf Wildenhues in
67468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67469         Play it safe by shifting left by 1 rather than multiplying by 2,
67470         as GCC is less likely to optimize this away when the value
67471         is signed (when it assumes overflow leads to undefined behavior).
67472         Also, don't assume time_t uses two's complement.
67474 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67476         * MODULES.html.sh: New module wctype.
67477         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67478         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67479         <wctype.h>, since the new wctype module should fix this.
67480         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67481         the wctype module should arrange for it.
67482         * lib/regex_internal.h: Likewise.
67483         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67484         since the wctype module should handle this now.
67485         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67486         * modules/fnmatch (Depends-on): Add wctype.
67487         * modules/quotearg (Depends-on): Likewise.
67488         * modules/regex (Depends-on): Likewise.
67490 2006-12-19  Bruno Haible  <bruno@clisp.org>
67492         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67493         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67495 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67497         * modules/savewd (Depends-on): Fix dependency on fcntl.
67499 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67501         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67502         conforms to C99, rather than relying on the user's environment
67503         setting of STDINT_H.
67505 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67506         and Eric Blake  <ebb9@byu.net>
67508         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67509         This is more consistent with the other defines here.
67510         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67511         Port to z/OS.  Problem reported by Paul Gilmartin.
67512         Change local vars to use gl_ prefix rather than ac_.
67513         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67514         with other defines.
67515         * modules/double-slash-root: New module.
67516         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67517         (Depends-on): Add double-slash-root.
67518         * MODULES.html.sh (File system functions): Mention new module.
67520 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67522         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67523         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67524         This is for the benefit of gzip, which doesn't do i18n.
67526 2006-12-12  Jim Meyering  <jim@meyering.net>
67528         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67529         Reported by Andreas Schwab <schwab@suse.de>.
67531 2006-12-12  Bruno Haible  <bruno@clisp.org>
67533         Merge these changes.
67534         2006-09-05  Bruno Haible  <bruno@clisp.org>
67535         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67536         iconv_alloc succeeded.
67537         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67538         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67539         test for " && dest " at the end - dest is always != NULL there. Call
67540         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67541         with 2xNULL arguments, also to flush the state storage. Handle the
67542         IRIX iconv behaviour. Realloc the final result, to throw away unused
67543         memory.
67545 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67547         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67548         and fchmodat unconditionally, since glibc 2.4 has them.
67549         Problem reported by Arkadiusz Miskiewicz.
67551 2006-12-10  Bruno Haible  <bruno@clisp.org>
67553         * gnulib-tool (func_import): Show the include files only for those
67554         modules that are copied and specified.
67555         Reported by Karl Berry.
67557 2006-12-08  Jim Meyering  <jim@meyering.net>
67559         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67560         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67562         * build-aux/announce-gen: Add two new options, both optional:
67563         --bootstrap-tools=TOOL_LIST
67564               a comma-separated list of tools, e.g.,
67565               autoconf,automake,bison,gnulib
67566         --gnulib-snapshot-date=DATE
67567               if gnulib is in the bootstrap tool list,
67568               then report this as the snapshot date.
67569               If not specified, use the current date/time.
67570               If you specify a date here, be sure it's UTC.
67572 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67574         * tests/test-argp-2.sh: Fix test to match actual output.
67575         (func_compare): Fix sed script to be portable.
67577 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67579         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67580         workaround for this case.  It is not autoconfigured now; offhand
67581         it's hard to see how to autoconfigure it.
67583 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67585         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67586         a directory that is about to be chowned.  Such a directory's
67587         initial file permissions should permit the owner only and this
67588         should not be changed until after the chown, since the group and
67589         other bits would be incorrect if they granted permission before
67590         the chown.
67592         Fix porting problem for iswctype reported by Georg Schwarz in:
67593         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67594         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67595         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67596         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67597         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67599 2006-12-03  Jim Meyering  <jim@meyering.net>
67601         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67602         p->fts_statp may not yet be defined.
67603         (fts_read): Instead, set it in the caller, once p->fts_statp is
67604         sure to be defined, and corresponds to a top-level directory.
67605         This bug made du -x fail.  Here's the coreutils test case:
67606         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67607         Reported by Mike Frysinger.
67609 2006-12-01  Jim Meyering  <jim@meyering.net>
67611         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67612         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67613         Reported by Simon Josefsson.
67615 2006-11-30  Jim Meyering  <jim@meyering.net>
67617         * m4/warning.m4: Use the all-permissive copyright notice
67618         recommended by RMS (rather than LGPL).
67619         * m4/vararrays.m4: Likewise.
67620         * m4/flexmember.m4: Likewise.
67622 2006-11-29  Bruno Haible  <bruno@clisp.org>
67624         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67625         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67626         using +=.
67627         Reported by Simon Josefsson <simon@josefsson.org>.
67629 2006-11-28  James Youngman <jay@gnu.org>
67631         * README: Advise users that they might find the bug-gnulib@gnu.org
67632         and autotools-announce@gnu.org mailing lists useful.
67634 2006-11-28  Bruno Haible  <bruno@clisp.org>
67636         * m4/ptrdiff_max.m4: Remove file.
67638 2006-11-21  Bruno Haible  <bruno@clisp.org>
67640         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67641         _AC_COMPUTE_INT.
67642         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67643         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67644         _AC_COMPUTE_INT.
67645         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67646         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67647         _AC_COMPUTE_INT.
67648         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67650 2006-11-28  Jim Meyering  <jim@meyering.net>
67652         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67653         warning from "gcc -Wshadow" about shadowing the builtin.
67655 2006-11-27  Bruno Haible  <bruno@clisp.org>
67657         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67658         _AC_COMPUTE_INT.
67659         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67661 2006-11-27  Bruno Haible  <bruno@clisp.org>
67662             Paul Eggert  <eggert@cs.ucla.edu>
67664         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67666 2006-11-26  Bruno Haible  <bruno@clisp.org>
67668         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67669         noinst_LTLIBRARIES.
67671 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67672             Bruno Haible  <bruno@clisp.org>
67674         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67675         if compiling with "gcc -ansi".
67677 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67679         Fix some incompatibilities with gcc -ansi -pedantic.
67680         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67681         if compiling pedantically with GCC, unless it's C99 or later.
67682         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67683         it mishandles gcc -ansi -pedantic as well.
67684         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67685         if gcc -pedantic.
67686         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67687         initializers for struct if -pedantic, unless it's C99 or later.
67689 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67691         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67692         Don't close an fd more than once. Identical atimes indicate
67693         success, not failure.
67695 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67697         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67699 2006-11-23  Jim Meyering  <jim@meyering.net>
67701         * build-aux/announce-gen: New file.  From coreutils.
67703 2006-11-22  Jim Meyering  <jim@meyering.net>
67705         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67706         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67707         (fts_read): Use a temporary to narrow the overused st_size member
67708         before using it in a switch statement.  Reported by Matthew Woehlke.
67710         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67711         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67713 2006-11-20  Bruno Haible  <bruno@clisp.org>
67715         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67716         changequote instead of pairs of brackets.
67717         Reported by Andreas Schwab <schwab@suse.de>.
67719 2006-11-21  Jim Meyering  <jim@meyering.net>
67721         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67722         so as to remain compatible with older compilers.
67723         Patch from Michael Deutschmann.
67725 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67727         * MODULES.html.sh (File system functions): Add openat.
67729         * lib/openat.h (rpl_fstatat): New macro, if
67730         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67731         (fstatat): Define to rpl_fstatat under the same conditions,
67732         unless COMPILING_FSTATAT.
67733         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67734         seems to have the bug.
67735         * lib/fstatat.c: New file.
67736         * modules/openat (Files): Add it.
67738 2006-11-20  Bruno Haible  <bruno@clisp.org>
67740         * Makefile: New file.
67742 2006-11-20  Jim Meyering  <jim@meyering.net>
67744         The beginnings of syntax-related checks for gnulib.
67745         * lib/Makefile: New file.
67746         * lib/t-idcache: New script.  Ensure that the two halves of
67747         idcache.c stay in sync.
67749         * lib/idcache.c: Adjust comments in user- and group- portions to
67750         be more accurate, and to be consistent with one another.
67752 2006-11-20  Jim Meyering  <jim@meyering.net>
67754         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67755         continue using the flexible array member (thus, this module performs
67756         half as many malloc calls), with the addition that...
67757         (getgroup, getuser): Consistently record a non-match via an empty
67758         "name" string, and map an empty string match to a NULL return value.
67759         * modules/idcache (Depends-on): Re-add flexmember.
67761         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67762         (getuidbyname, getgroup, getgidbyname): Likewise.
67764         Use cleaner syntax: NULL rather than 0.
67765         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67767 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67769         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67770         It mishandled the case where the group was missing.
67771         Problem reported by Greg Schafer.
67772         * modules/idcache: Likewise.
67774 2006-11-18  Jim Meyering  <jim@meyering.net>
67776         * check-module (%exempt_header): Add exception for some
67777         conditionally-included headers.
67779         * modules/i-ring (Depends-on): Add verify.
67780         (License): Change to LGPL.
67782 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67784         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67785         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67786         and inttostr.h.  Use snprintf rather than uinttostr, so that
67787         LGPLed code doesn't depend on GPLed.
67789 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67791         * modules/inline (License): Change from GPL to LGPL.
67793 2006-11-17  Jim Meyering  <jim@meyering.net>
67795         * modules/d-type (License): Switch to LGPL.
67797 2006-11-15  Bruno Haible  <bruno@clisp.org>
67799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67801 2006-11-15  Eric Blake  <ebb9@byu.net>
67803         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67804         the module dependency.
67806 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67807             Bruno Haible  <bruno@clisp.org>
67809         * gnulib-tool (func_create_testdir): Add license consistency check.
67811 2006-11-15  Eric Blake  <ebb9@byu.net>
67813         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67814         random "(cached)" in configure output.
67816 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67818         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67819         test for conforming inttypes.h is both announced and cached.
67821         * MODULES.html.sh (seen_modules, seen_files): New variables.
67822         (func_module): Rewrite to use a few less gnulib-tool and sed
67823         invocations.  Avoid a couple of quadratic algorithms for ...
67824         (missed_modules, missed_files): ... these, with ...
67825         (func_append, func_tmpdir): ... these new functions, from
67826         gnulib-tool.  Analogously, install traps for cleanup.
67828         * tests/test-gc.c (main): Remove unused variables.
67829         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67831 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67833         * modules/inttostr (License): Change to LGPL.
67835 2006-11-14  Eric Blake  <ebb9@byu.net>
67837         * modules/tempname (License): Change to LGPL.
67839 2006-11-14  Eric Blake  <ebb9@byu.net>
67841         * doc/functions.texi (Function Portability): *printf functions on
67842         Cygwin now understand all POSIX size specifiers.
67844 2006-11-14  Bruno Haible  <bruno@clisp.org>
67846         * modules/c-ctype (License): Change to LGPL.
67848 2006-11-12  Bruno Haible  <bruno@clisp.org>
67850         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67851         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67852         for GNOME libraries, for which the include files are installed in
67853         subdirectories of $prefix/include.
67855 2006-11-12  Bruno Haible  <bruno@clisp.org>
67857         * m4/lib-link.m4: Require at least autoconf-2.54.
67858         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67859         name to underscores for the --with option.
67861 2006-11-13  Bruno Haible  <bruno@clisp.org>
67863         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67864         the tests directory.
67865         Reported by Ralf Wildenhues.
67867 2006-11-13  Bruno Haible  <bruno@clisp.org>
67869         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67870         (func_emit_initmacro_end): Undo the override here.
67871         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67872         Works around the famous automake error in coreutils.
67874 2006-11-13  Eric Blake  <ebb9@byu.net>
67876         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67877         element, not its node.
67879 2006-11-12  Bruno Haible  <bruno@clisp.org>
67881         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67882         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67884 2006-11-12  Bruno Haible  <bruno@clisp.org>
67886         * gnulib-tool: New option --local-symlink.
67887         (func_usage): Document it.
67888         (lsymbolic): New variable.
67889         (func_import, func_create_testdir): If --symlink was not specified,
67890         test whether --local-symlink was specified and the file comes from
67891         the local_gnulib_dir.
67893 2006-11-12  Bruno Haible  <bruno@clisp.org>
67895         * gnulib-tool (func_ln): New function.
67896         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67898 2006-11-12  Bruno Haible  <bruno@clisp.org>
67900         Finish support for source files in subdirectories.
67901         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67902         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67903         AUTOMAKE_OPTIONS.
67904         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67906 2006-11-12  Bruno Haible  <bruno@clisp.org>
67908         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67909         EXTRA_lib_SOURCES augmentation.
67910         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67912 2006-11-12  Jim Meyering  <jim@meyering.net>
67914         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67915         file descriptors.  This also averts a failure on systems with
67916         native openat support when a traversed directory lacks "x" access.
67917         * lib/fts_.h: Include "i-ring.h"
67918         (struct FTS) [fts_fd_ring]: New member.
67919         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67920         (FCHDIR): Add parentheses.
67921         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67922         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67923         When descending, rather than simply closing the previous
67924         fts_cwd_fd value, push that file descriptor onto the ring.
67925         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67926         (fts_open): Initialize the new fd_ring member.
67927         (fts_close): Clear the ring.
67928         (fts_safe_changedir): When possible, use our new fd_ring to skip
67929         the diropen and fstat and dev/ino comparison that would normally
67930         accompany a virtual `chdir ("..")'.
67932         * modules/fts (Depends-on): Add i-ring.
67933         * modules/i-ring: New module.
67934         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67935         * m4/i-ring.m4: New file.
67937 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67939         * gnulib-tool (func_create_testdir): Fix replacement of
67940         `build-aux' in configure.ac.  Run autotools in gltests
67941         subdirectory.
67942         (func_create_testdir, func_create_megatestdir, test): There is
67943         no need for '--force' in most autotool invocations in a new
67944         tree.  Actually fail the whole test if any of the tools, or the
67945         configure or make stages fail.
67947         Sync from Automake.
67948         * build-aux/gnupload: Revert last change.  Add pointer to upload
67949         instructions of the GNU Maintenance Instructions.
67950         Suggestion by Karl Berry.
67952 2006-11-10  Jim Meyering  <jim@meyering.net>
67954         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67956 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67958         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67959         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67960         (bind_textdomain_codeset) [! ENABLE_NLS]:
67961         Evaluate all the arguments.  That way, callers get compatible behavior
67962         if the arguments have side effects.  Also, it avoids some GCC
67963         diagnostics in some cases; Joel E. Denny reported problems when Bison
67964         was configured with --enable-gcc-warnigs.
67966 2006-11-10  Jim Meyering  <jim@meyering.net>
67968         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67969         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67970         account.
67972 2006-11-10  Jim Meyering  <jim@meyering.net>
67974         * modules/inline: New file/module.
67975         * modules/xalloc (Files): Remove m4/inline.m4.
67976         (Depends-on): Add inline, instead.
67977         * modules/oset: Likewise.
67978         * modules/list: Likewise.
67980 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67982         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67983         Problem reported by Matthew Woehlke.
67985 2006-11-09  Bruno Haible  <bruno@clisp.org>
67987         * lib/tempname.c (gen_tempname): Remove variant that invokes
67988         __gen_tempname.
67989         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67990         __gen_tempname.
67992 2006-11-08  Bruno Haible  <bruno@clisp.org>
67994         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67995         to 'yes' instead of 'cross-compiling'.
67997 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67999         * lib/quotearg.h (quotearg_free): New decl.
68000         * lib/quotearg.c (quotearg_free): New function.
68001         (slot0, nslots, slotvec0, slotvec):
68002         Now file-scope so that quotearg_free can get at them.
68004 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68006         Sync from Automake.
68007         * build-aux/gnupload: Add missing 'gnu' to example URL.
68008         Report by Karl Berry.
68010 2006-11-08  Bruno Haible  <bruno@clisp.org>
68012         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68013         Suggested by Paul Eggert.
68015 2006-11-08  Jim Meyering  <jim@meyering.net>
68017         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68018         It's already included if !_LIBC.
68019         (fts_safe_changedir): Add a comment.
68021 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68023         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68024         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68025         Matthew Woehlke.
68027         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68028         definitions up, to avoid colliding with change below.
68029         (static_inline) [HAVE_INLINE]: New macro.
68030         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68031         Provide extern decls when !HAVE_INLINE.  Do not define unless
68032         static_inline is defined, either by us or by xmalloc.c.  Use
68033         static_inline rather than static inline.
68034         (XCALLOC): Optimize sizeof(T) = 1 case.
68035         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68037 2006-11-07  Bruno Haible  <bruno@clisp.org>
68039         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68040         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68041         AC_C_INLINE.
68042         * modules/xalloc (Files): Add m4/inline.m4.
68044 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68046         * README: Fix typo.
68047         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68048         (Miscellanous Notes): ...from this.
68050 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68052         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68053         Mention that offsetof should be used instead of sizeof.
68054         From Bruno Haible.
68056 2006-11-07  Bruno Haible  <bruno@clisp.org>
68058         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68060 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68062         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68063         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68064         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68065         (gl_tree_add_before, gl_tree_add_after):
68066         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68067         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68068         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68069         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68070         (gl_linked_add_after, gl_linked_add_at): Likewise.
68071         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68072         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68073         (gl_tree_add_before, gl_tree_add_after): Likewise.
68074         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68075         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68076         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68078 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68080         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68082 2006-11-06  Bruno Haible  <bruno@clisp.org>
68084         * m4/inline.m4: New file.
68085         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68086         * modules/list (Files): Add m4/inline.m4.
68087         * modules/oset (Files): Likewise.
68089 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68091         * lib/idcache.c: Include <stddef.h>, for offsetof.
68092         (struct userid.name): Change from char * to a flexible array member.
68093         All uses changed.
68094         * modules/idcache (Depends-on): Add flexmember.
68096         * MODULES.html.sh (Core language properties): New module flexmember.
68097         * modules/flexmember, m4/flexmember.m4: New files.
68099         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68100         inline functions that are identical with the old xnmalloc_inline,
68101         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68102         that we can avoid some unnecessary integer multiplications and
68103         divisions in the common case where the element size is known at
68104         compile time.
68105         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68106         needed.
68107         (xnboundedmalloc): Remove.
68108         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68109         arguments, for consistency with rest of this header.
68110         (xcharalloc): Rewrite using XNMALLOC.
68111         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68112         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68113         versions have been moved to lib/xalloc.h and renamed to be the
68114         non-*_inline versions.
68115         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68116         and xnrealloc functions, since those functions are now inline and
68117         now call us.
68118         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68119         renaming described above.
68120         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68121         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68122         captures the dependency in AC_C_INLINE.
68124         New module canonicalize-lgpl, proposed by Charles Wilson in
68125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68126         with a few small changes afterwards.
68127         * MODULES.html.sh (File system functions): New module
68128         canonicalize-lgpl.
68129         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68130         and canonicalize_file_name.
68131         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68132         * modules/canonicalize-lgpl: New files.
68134 2006-11-05  Bruno Haible  <bruno@clisp.org>
68136         * gnulib-tool (func_import, func_create_testdir): Create directories
68137         also for files in subdirectories of lib/.
68139 2006-11-05  Bruno Haible  <bruno@clisp.org>
68141         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68142         ANSI C compliant.
68144 2006-11-03  Bruno Haible  <bruno@clisp.org>
68146         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68147         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68148         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68149         (xnboundedmalloc): New inline function.
68150         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68151         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68152         xmalloc.
68153         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68154         xmalloc.
68155         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68156         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68157         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68158         xmalloc.
68159         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68160         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68161         xmalloc.
68162         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68163         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68164         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68165         xmalloc.
68166         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68167         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68168         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68169         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68170         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68171         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68172         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68174 2006-11-03  Bruno Haible  <bruno@clisp.org>
68176         * lib/c-ctype.h [C++]: Define functions without name mangling.
68177         * lib/fwriteerror.h [C++]: Likewise.
68178         * lib/gcd.h [C++]: Likewise.
68179         * lib/linebreak.h [C++]: Likewise.
68181 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68183         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68184         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68185         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68186         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68187         Check for functions and headers just once.
68188         Check for declaration of canonicalize_file_name.
68189         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68191 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68193         * gnulib-tool (func_import): Fix typo in actioncmd.
68195 2006-11-02  Bruno Haible  <bruno@clisp.org>
68197         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68198         newline sequence in the Makefile.am snippet as a space, like "make"
68199         does.
68200         Reported by Roger Persson <perrog@gmail.com>.
68202 2006-11-01  Bruno Haible  <bruno@clisp.org>
68204         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68205         already declared in <string.h>.
68206         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68208 2006-11-01  Bruno Haible  <bruno@clisp.org>
68210         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68211         * lib/strcase.h: Include <string.h>.
68212         (strcasecmp): Define to rpl_strcasecmp here.
68214 2006-11-01  Bruno Haible  <bruno@clisp.org>
68216         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68218 2006-11-01  Eric Blake  <ebb9@byu.net>
68220         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68222         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68224 2006-10-29  Bruno Haible  <bruno@clisp.org>
68226         Make it compile in C++ mode.
68227         * lib/full-write.c (full_rw): Add a cast.
68229 2006-11-01  Bruno Haible  <bruno@clisp.org>
68231         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68232         be POSIX compliant.
68233         Reported by Roger Persson <perrog@gmail.com>.
68235 2006-11-01  Eric Blake  <ebb9@byu.net>
68237         * lib/getopt_.h: Fix comments.
68239 2006-10-31  Eric Blake  <ebb9@byu.net>
68241         * modules/tmpdir (Depends-on): Add sys_stat.
68242         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68243         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68244         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68245         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68246         tempname.
68248 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68250         Avoid some C++ diagnostics reported by Bruno Haible.
68251         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68252         xmalloc.
68253         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68254         (struct slotvec): Move to top level.
68255         (quotearg_n_options): Rewrite to avoid xmalloc.
68256         * lib/xalloc.h (xcharalloc): New function.
68257         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68258         [defined __cplusplus]: Add function template that provides result
68259         type propagation.  This part of the change is from Bruno Haible.
68261 2006-10-29  Bruno Haible  <bruno@clisp.org>
68263         Make it compile in C++ mode.
68264         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68265         * lib/strnlen1.c (strnlen1): Cast memchr result.
68266         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68267         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68268         (create_temp_dir): Rename local variable 'template'.
68269         (compile_csharp_using_sscli): Add cast.
68270         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68271         * lib/findprog.c (find_in_path): Likewise.
68272         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68273         * lib/wait-process.c (register_slave_subprocess): Likewise.
68275 2006-10-22  Bruno Haible  <bruno@clisp.org>
68277         * modules/tsearch: New file.
68278         * lib/tsearch.h: New file.
68279         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68280         * m4/tsearch.m4: New file.
68281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68283 2006-10-29  Eric Blake  <ebb9@byu.net>
68285         * lib/arcfour.c: Assume config.h.
68286         * lib/arctwo.c: Likewise.
68287         * lib/base64.c: Likewise.
68288         * lib/check-version.c: Likewise.
68289         * lib/crc.c: Likewise.
68290         * lib/des.c: Likewise.
68291         * lib/gc-gnulib.c: Likewise.
68292         * lib/gc-libgcrypt.c: Likewise.
68293         * lib/gc-pbkdf2-sha1.c: Likewise.
68294         * lib/getaddrinfo.c: Likewise.
68295         * lib/getdelim.c: Likewise.
68296         * lib/getline.c: Likewise.
68297         * lib/hmac-md5.c: Likewise.
68298         * lib/hmac-sha1.c: Likewise.
68299         * lib/iconvme.c: Likewise.
68300         * lib/md2.c: Likewise.
68301         * lib/md4.c: Likewise.
68302         * lib/memxor.c: Likewise.
68303         * lib/read-file.c: Likewise.
68304         * lib/readline.c: Likewise.
68305         * lib/rijndael-alg-fst.c: Likewise.
68306         * lib/rijndael-api-fst.c: Likewise.
68307         * lib/xgetdomainname.c: Likewise.
68309 2006-10-28  Eric Blake  <ebb9@byu.net>
68311         * lib/xstrndup.c: Assume config.h.
68313 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68315         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68316         stat-macros.h is now for our own macros, whereas stat_h is for
68317         macros in the <sys/stat.h> name space.
68318         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68319         (STAT_MACROS_H): Remove.
68320         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68321         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68322         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68323         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68324         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68325         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68326         Move these macros to ...
68327         * lib/stat_.h: here.  Don't include stat-macros.h.
68328         * lib/canonicalize.c: Don't include stat-macros.h.
68329         * lib/chown.c: Likewise.
68330         * lib/euidaccess.c: Likewise.
68331         * lib/file-type.c: Likewise.
68332         * lib/filemode.c: Likewise.
68333         * lib/glob.c: Likewise.
68334         * lib/isapipe.c: Likewise.
68335         * lib/lchown.c: Likewise.
68336         * lib/lstat.c: Likewise.
68337         * lib/mkdir-p.c: Likewise.
68338         * lib/rmdir.c: Likewise.
68339         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68341         unless mkdir isn't declared, to speed up 'configure'.
68342         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68343         would define all the S_* symbols.
68344         * modules/canonicalize (Depends-on):
68345         Depend on sys_stat, not stat-macros.
68346         * modules/chown: Likewise.
68347         * modules/euidaccess: Likewise.
68348         * modules/filemode: Likewise.
68349         * modules/file-type: Likewise.
68350         * modules/glob: Likewise.
68351         * modules/isapipe: Likewise.
68352         * modules/lchown: Likewise.
68353         * modules/lstat: Likewise.
68354         * modules/mkancesdirs: Likewise.
68355         * modules/rmdir: Likewise.
68356         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68357         * modules/modechange: Likewise.
68358         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68359         (configure.ac): Remove gl_STAT_MACROS.
68360         * modules/sys_stat (Depends-on): Remove stat-macros.
68362 2006-10-27  Bruno Haible  <bruno@clisp.org>
68364         * m4/signed.m4: Remove file.
68365         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68366         invocation.
68367         * modules/vasnprintf (Files): Remove m4/signed.m4.
68369 2006-10-27  Bruno Haible  <bruno@clisp.org>
68371         Update to GNU gettext 0.16.
68372         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68373         m4/inttypes-h.m4, m4/signed.m4.
68374         * m4/gettext.m4: Update to GNU gettext 0.16.
68375         * m4/intl.m4: New file, from GNU gettext.
68376         * m4/intldir.m4: New file, from GNU gettext.
68377         * config/srclist.txt: Update
68379 2006-10-27  Eric Blake  <ebb9@byu.net>
68381         * MODULES.html.sh: Document tempname.
68382         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68383         dependencies.
68384         (Files): Move lib/tempname.c...
68385         * modules/tempname: ...to this new module.
68386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68387         (gl_PREREQ_TEMPNAME): Move...
68388         * m4/tempname.m4: ...to this new file.
68389         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68390         * modules/sys_stat (Depends-on): Add stat-macros.
68391         * lib/stat_.h (includes): Pick up stat macros.
68392         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68393         if stat macros are broken.
68394         * lib/tempname.c (includes): No need to include "stat-macros.h".
68395         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68396         (direxists, __path_search) [!_LIBC]: Don't compile these in
68397         gnulib; the tmpdir module covers that.
68398         * lib/tempname.h: New file.
68400 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68402         * COPYING: Explain how gnulib-tool converts licence headers.
68403         Almost all wording by Eric Blake.
68405 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68407         * lib/mbchar.h (is_basic_table): Make read-only.
68408         * lib/mbchar.c (is_basic_table): Likewise.
68409         Reported by John Darrington.
68411 2006-10-25  Bruno Haible  <bruno@clisp.org>
68413         * lib/progname.h (set_program_name): Undefine before defining.
68415 2006-10-25  Bruno Haible  <bruno@clisp.org>
68417         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68418         false for non-gcc C++ compilers.
68419         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68421 2006-10-24  Bruno Haible  <bruno@clisp.org>
68423         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68424         iconv implementations like Irix iconv.
68426 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68428         * modules/vararrays: New file.
68429         * m4/vararrays.m4: New file, taken from diffutils.
68430         * MODULES.html.sh: New module vararrays.
68432 2006-10-24  Karl Berry  <karl@gnu.org>
68434         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68435         Don't call GNU Unix.
68437 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68439         * users.txt: Add Libtool.
68441         Sync from Libtool:
68443         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68445         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68446         to gnulib's policy of including config.h unconditionally.
68448 2006-10-24  Bruno Haible  <bruno@clisp.org>
68450         * modules/wcwidth (Files): Add m4/wint_t.m4.
68451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68452         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68454 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68456         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68457         to pacify GCC with some -W flags enabled.  Problem reported by
68458         Bruno Haible.
68460 2006-10-24  Jim Meyering  <jim@meyering.net>
68462         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68463         Reported by Karl Berry.
68465 2006-10-23  Bruno Haible  <bruno@clisp.org>
68467         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68469 2006-10-24  Bruno Haible  <bruno@clisp.org>
68471         * lib/gl_list.h: Use C comment style, not C++ comment style.
68473 2006-10-23  Eric Blake  <ebb9@byu.net>
68475         * lib/getaddrinfo.c (includes): Add missing include.
68477 2006-10-23  Bruno Haible  <bruno@clisp.org>
68478             Paul Eggert  <eggert@cs.ucla.edu>
68480         Ability to rename obstack_free.
68481         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68482         obstack_free.
68483         (obstack_free): Invoke the __obstack_free macro.
68484         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68486 2006-10-23  Bruno Haible  <bruno@clisp.org>
68487             Paul Eggert  <eggert@cs.ucla.edu>
68489         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68490         __argc, __argv from the declaration. (They are defined as macros on
68491         mingw.)
68493 2006-10-22  Bruno Haible  <bruno@clisp.org>
68495         * doc/gnulib-intro.texi: New file.
68496         * doc/gnulib.texi: Include it.
68498 2006-10-21  Bruno Haible  <bruno@clisp.org>
68500         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68501         "Introduction", "Miscellanous Notes", "Particular Modules".
68503 2006-10-21  Bruno Haible  <bruno@clisp.org>
68505         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68506         Change mostlyclean-local rule to avoid sh syntax error from bash
68507         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68509 2006-10-23  Jim Meyering  <jim@meyering.net>
68511         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68512         in place of snprintf.
68514         * modules/inttostr (Files): Add lib/uinttostr.c.
68515         * lib/uinttostr.c (inttostr): New file/function.
68516         * lib/inttostr.h (uinttostr): Declare.
68517         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68518         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68519         Add uinttostr.
68520         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68522 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68524         * lib/canonicalize.c (ELOOP): Define if not already defined.
68525         Problem reported by Bruno Haible in
68526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68528 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68530         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68531         Problem reported by Perry Smith and Ville Laurikari.
68533         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68534         uses.
68536 2006-10-19  Bruno Haible  <bruno@clisp.org>
68538         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68539         for mingw.
68541 2006-10-19  Bruno Haible  <bruno@clisp.org>
68543         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68544         Needed for mingw.
68546 2006-10-19  Bruno Haible  <bruno@clisp.org>
68548         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68550 2006-10-19  Bruno Haible  <bruno@clisp.org>
68552         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68553         it.
68555 2006-10-19  Bruno Haible  <bruno@clisp.org>
68557         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68558         invocation.
68560 2006-10-19  Bruno Haible  <bruno@clisp.org>
68562         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68563         mountlist by default.
68565 2006-10-16  Bruno Haible  <bruno@clisp.org>
68567         * lib/c-strstr.c: Include c-strstr.h.
68569 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68571         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68572         in a slash.
68574 2006-10-18  Bruno Haible  <bruno@clisp.org>
68576         * lib/lock.h [C++]: Wrap definitions in extern "C".
68578 2006-10-18  Bruno Haible  <bruno@clisp.org>
68580         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68581         gl_LIBOBJS list.
68583 2006-10-18  Bruno Haible  <bruno@clisp.org>
68585         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68587 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68589         * lib/xstrtol.h: Include gettext.h.
68590         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68591         Problem reported by Eric Blake.
68592         * modules/xstrtol (Depends-on): Add gettext-h.
68594 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68596         * lib/strftime.c (advance): New macro.
68597         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68598         incomplete type, so you can't add 0 to it.  Problem and patch
68599         reported by Eelco Dolstra for dietlibc.
68601 2006-10-18  Jim Meyering  <jim@meyering.net>
68603         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68604         type for a local, and rename it: s/up/user_proc/.
68606 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68608         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68609         READ_UTMP_USER_PROCESS.
68610         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68612 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68614         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68615         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68617 2006-10-17  Eric Blake  <ebb9@byu.net>
68619         * lib/sigprocmask.c (sigprocmask): Fix typo.
68621         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68623         * modules/clean-temp (Makefile.am): Don't add to make output...
68624         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68625         config.h.
68627 2006-10-17  Bruno Haible  <bruno@clisp.org>
68629         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68630         differently if DEFAULT_TEXT_DOMAIN is set.
68632 2006-10-16  Bruno Haible  <bruno@clisp.org>
68634         * lib/clean-temp.c: Include fwriteerror.h.
68636 2006-10-16  Bruno Haible  <bruno@clisp.org>
68638         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68640 2006-10-16  Bruno Haible  <bruno@clisp.org>
68642         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68643         * lib/sigprocmask.h: Include <sys/types.h>.
68644         (sigset_t): Use the system's definition if present.
68646 2006-10-17  Eric Blake  <ebb9@byu.net>
68648         * lib/xvasprintf.c (includes): Assume config.h.
68649         * lib/xasprintf.c (includes): Likewise.
68651 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68653         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68654         at least as wide as intmax_t.
68656 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68658         (Imported from Automake.)
68659         * build-aux/gnupload: Update to version 1.1 of directive file.
68661 2006-10-16  Eric Blake  <ebb9@byu.net>
68663         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68664         match Automake 1.10a.
68666 2006-10-14  Bruno Haible  <bruno@clisp.org>
68668         * modules/sigprocmask: New file.
68669         * lib/sigprocmask.h: New file.
68670         * lib/sigprocmask.c: New file.
68671         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68672         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68673         request sigprocmask.o.
68674         (gl_PREREQ_SIGPROCMASK): New macro.
68675         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68676         (Depends-on): Add sigprocmask.
68677         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68678         gt_SIGNALBLOCKING. Test for 'raise' only once.
68679         * lib/fatal-signal.c: Include sigprocmask.h.
68680         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68681         unblock_fatal_signals): Define always.
68682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68683         sigprocmask.
68685 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68687         Sync from Automake.
68688         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68689         which incorrectly sets the mode of an existing destination
68690         directory.  In some cases the unpatched install-sh could do the
68691         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68692         system.  We hope this is rare in practice, but it's clearly worth
68693         fixing.  Problem reported by Alex Unleashed in
68694         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68695         Also, don't bother to check for -m bugs unless we're using -m;
68696         suggested by Stepan Kasal.
68698 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68700         Sync from Automake.
68701         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68702         `-c' flag, so they appear at the same position as in %FASTDEP%
68703         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68704         which ignores unknown options only after the first non-option.
68705         Bug report against M4 by Nelson H. F. Beebe.
68707 2006-10-13  Jim Meyering  <jim@meyering.net>
68709         Fix a bug in yesterday's change.
68710         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68711         p->fts_statp->st_dev would be used uninitialized.
68712         Ensures that we always call fts_stat on the very first entry.
68713         Miklos Szeredi reported that find -xdev stopped working.
68715 2006-10-12  Bruno Haible  <bruno@clisp.org>
68717         * gnulib-tool (func_get_automake_snippet): Append an automatically
68718         computed EXTRA_DIST augmentation.
68719         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68720         * modules/alloca-opt (Makefile.am): Likewise.
68721         * modules/allocsa (Makefile.am): Likewise.
68722         * modules/arcfour (Makefile.am): Likewise.
68723         * modules/arctwo (Makefile.am): Likewise.
68724         * modules/argmatch (Makefile.am): Likewise.
68725         * modules/argz (Makefile.am): Likewise.
68726         * modules/atexit (Makefile.am): Likewise.
68727         * modules/backupfile (Makefile.am): Likewise.
68728         * modules/byteswap (Makefile.am): Likewise.
68729         * modules/c-strtod (Makefile.am): Likewise.
68730         * modules/c-strtold (Makefile.am): Likewise.
68731         * modules/calloc (Makefile.am): Likewise.
68732         * modules/canon-host (Makefile.am): Likewise.
68733         * modules/canonicalize (Makefile.am): Likewise.
68734         * modules/chdir-long (Makefile.am): Likewise.
68735         * modules/chdir-safer (Makefile.am): Likewise.
68736         * modules/check-version (Makefile.am): Likewise.
68737         * modules/chown (Makefile.am): Likewise.
68738         * modules/cloexec (Makefile.am): Likewise.
68739         * modules/close-stream (Makefile.am): Likewise.
68740         * modules/closeout (Makefile.am): Likewise.
68741         * modules/crc (Makefile.am): Likewise.
68742         * modules/csharpexec (Makefile.am): Likewise.
68743         * modules/cycle-check (Makefile.am): Likewise.
68744         * modules/des (Makefile.am): Likewise.
68745         * modules/dev-ino (Makefile.am): Likewise.
68746         * modules/dirfd (Makefile.am): Likewise.
68747         * modules/dirname (Makefile.am): Likewise.
68748         * modules/dup2 (Makefile.am): Likewise.
68749         * modules/eealloc (Makefile.am): Likewise.
68750         * modules/error (Makefile.am): Likewise.
68751         * modules/euidaccess (Makefile.am): Likewise.
68752         * modules/exclude (Makefile.am): Likewise.
68753         * modules/exitfail (Makefile.am): Likewise.
68754         * modules/fcntl-safer (Makefile.am): Likewise.
68755         * modules/fcntl (Makefile.am): Likewise.
68756         * modules/file-type (Makefile.am): Likewise.
68757         * modules/fileblocks (Makefile.am): Likewise.
68758         * modules/filemode (Makefile.am): Likewise.
68759         * modules/filenamecat (Makefile.am): Likewise.
68760         * modules/fnmatch (Makefile.am): Likewise.
68761         * modules/fopen-safer (Makefile.am): Likewise.
68762         * modules/fpending (Makefile.am): Likewise.
68763         * modules/fprintftime (Makefile.am): Likewise.
68764         * modules/free (Makefile.am): Likewise.
68765         * modules/fsusage (Makefile.am): Likewise.
68766         * modules/ftruncate (Makefile.am): Likewise.
68767         * modules/fts (Makefile.am): Likewise.
68768         * modules/gc-arcfour (Makefile.am): Likewise.
68769         * modules/gc-des (Makefile.am): Likewise.
68770         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68771         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68772         * modules/gc-md4 (Makefile.am): Likewise.
68773         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68774         * modules/gc-sha1 (Makefile.am): Likewise.
68775         * modules/gc (Makefile.am): Likewise.
68776         * modules/getaddrinfo (Makefile.am): Likewise.
68777         * modules/getcwd (Makefile.am): Likewise.
68778         * modules/getdelim (Makefile.am): Likewise.
68779         * modules/getdomainname (Makefile.am): Likewise.
68780         * modules/getgroups (Makefile.am): Likewise.
68781         * modules/gethostname (Makefile.am): Likewise.
68782         * modules/gethrxtime (Makefile.am): Likewise.
68783         * modules/getline (Makefile.am): Likewise.
68784         * modules/getloadavg (Makefile.am): Likewise.
68785         * modules/getlogin_r (Makefile.am): Likewise.
68786         * modules/getndelim2 (Makefile.am): Likewise.
68787         * modules/getopt (Makefile.am): Likewise.
68788         * modules/getpagesize (Makefile.am): Likewise.
68789         * modules/getpass-gnu (Makefile.am): Likewise.
68790         * modules/getpass (Makefile.am): Likewise.
68791         * modules/getsubopt (Makefile.am): Likewise.
68792         * modules/gettime (Makefile.am): Likewise.
68793         * modules/gettimeofday (Makefile.am): Likewise.
68794         * modules/getugroups (Makefile.am): Likewise.
68795         * modules/getusershell (Makefile.am): Likewise.
68796         * modules/glob (Makefile.am): Likewise.
68797         * modules/group-member (Makefile.am): Likewise.
68798         * modules/hard-locale (Makefile.am): Likewise.
68799         * modules/hash (Makefile.am): Likewise.
68800         * modules/hmac-md5 (Makefile.am): Likewise.
68801         * modules/hmac-sha1 (Makefile.am): Likewise.
68802         * modules/human (Makefile.am): Likewise.
68803         * modules/idcache (Makefile.am): Likewise.
68804         * modules/imaxabs (Makefile.am): Likewise.
68805         * modules/imaxdiv (Makefile.am): Likewise.
68806         * modules/inet_ntop (Makefile.am): Likewise.
68807         * modules/inet_pton (Makefile.am): Likewise.
68808         * modules/intprops (Makefile.am): Likewise.
68809         * modules/inttostr (Makefile.am): Likewise.
68810         * modules/inttypes (Makefile.am): Likewise.
68811         * modules/isapipe (Makefile.am): Likewise.
68812         * modules/javaversion (Makefile.am): Likewise.
68813         * modules/lchmod (Makefile.am): Likewise.
68814         * modules/lchown (Makefile.am): Likewise.
68815         * modules/localcharset (Makefile.am): Likewise.
68816         * modules/long-options (Makefile.am): Likewise.
68817         * modules/lstat (Makefile.am): Likewise.
68818         * modules/malloc (Makefile.am): Likewise.
68819         * modules/mathl (Makefile.am): Likewise.
68820         * modules/mbchar (Makefile.am): Likewise.
68821         * modules/md2 (Makefile.am): Likewise.
68822         * modules/md4 (Makefile.am): Likewise.
68823         * modules/md5 (Makefile.am): Likewise.
68824         * modules/memcasecmp (Makefile.am): Likewise.
68825         * modules/memchr (Makefile.am): Likewise.
68826         * modules/memcmp (Makefile.am): Likewise.
68827         * modules/memcoll (Makefile.am): Likewise.
68828         * modules/memcpy (Makefile.am): Likewise.
68829         * modules/memmem (Makefile.am): Likewise.
68830         * modules/memmove (Makefile.am): Likewise.
68831         * modules/mempcpy (Makefile.am): Likewise.
68832         * modules/memrchr (Makefile.am): Likewise.
68833         * modules/memset (Makefile.am): Likewise.
68834         * modules/memxor (Makefile.am): Likewise.
68835         * modules/mkancesdirs (Makefile.am): Likewise.
68836         * modules/mkdir-p (Makefile.am): Likewise.
68837         * modules/mkdir (Makefile.am): Likewise.
68838         * modules/mkdtemp (Makefile.am): Likewise.
68839         * modules/mkstemp (Makefile.am): Likewise.
68840         * modules/mktime (Makefile.am): Likewise.
68841         * modules/modechange (Makefile.am): Likewise.
68842         * modules/mountlist (Makefile.am): Likewise.
68843         * modules/nanosleep (Makefile.am): Likewise.
68844         * modules/obstack (Makefile.am): Likewise.
68845         * modules/openat (Makefile.am): Likewise.
68846         * modules/pagealign_alloc (Makefile.am): Likewise.
68847         * modules/pathmax (Makefile.am): Likewise.
68848         * modules/physmem (Makefile.am): Likewise.
68849         * modules/poll (Makefile.am): Likewise.
68850         * modules/posixtm (Makefile.am): Likewise.
68851         * modules/posixver (Makefile.am): Likewise.
68852         * modules/putenv (Makefile.am): Likewise.
68853         * modules/quote (Makefile.am): Likewise.
68854         * modules/quotearg (Makefile.am): Likewise.
68855         * modules/raise (Makefile.am): Likewise.
68856         * modules/read-file (Makefile.am): Likewise.
68857         * modules/readline (Makefile.am): Likewise.
68858         * modules/readlink (Makefile.am): Likewise.
68859         * modules/readtokens (Makefile.am): Likewise.
68860         * modules/readutmp (Makefile.am): Likewise.
68861         * modules/realloc (Makefile.am): Likewise.
68862         * modules/regex (Makefile.am): Likewise.
68863         * modules/rename-dest-slash (Makefile.am): Likewise.
68864         * modules/rename (Makefile.am): Likewise.
68865         * modules/rijndael (Makefile.am): Likewise.
68866         * modules/rmdir (Makefile.am): Likewise.
68867         * modules/rpmatch (Makefile.am): Likewise.
68868         * modules/safe-read (Makefile.am): Likewise.
68869         * modules/safe-write (Makefile.am): Likewise.
68870         * modules/same-inode (Makefile.am): Likewise.
68871         * modules/same (Makefile.am): Likewise.
68872         * modules/save-cwd (Makefile.am): Likewise.
68873         * modules/savedir (Makefile.am): Likewise.
68874         * modules/setenv (Makefile.am): Likewise.
68875         * modules/settime (Makefile.am): Likewise.
68876         * modules/sha1 (Makefile.am): Likewise.
68877         * modules/sig2str (Makefile.am): Likewise.
68878         * modules/snprintf (Makefile.am): Likewise.
68879         * modules/stat-macros (Makefile.am): Likewise.
68880         * modules/stat-time (Makefile.am): Likewise.
68881         * modules/stdbool (Makefile.am): Likewise.
68882         * modules/stdint (Makefile.am): Likewise.
68883         * modules/stdlib-safer (Makefile.am): Likewise.
68884         * modules/stpcpy (Makefile.am): Likewise.
68885         * modules/stpncpy (Makefile.am): Likewise.
68886         * modules/strcase (Makefile.am): Likewise.
68887         * modules/strcasestr (Makefile.am): Likewise.
68888         * modules/strchrnul (Makefile.am): Likewise.
68889         * modules/strcspn (Makefile.am): Likewise.
68890         * modules/strdup (Makefile.am): Likewise.
68891         * modules/strerror (Makefile.am): Likewise.
68892         * modules/strftime (Makefile.am): Likewise.
68893         * modules/strndup (Makefile.am): Likewise.
68894         * modules/strnlen (Makefile.am): Likewise.
68895         * modules/strpbrk (Makefile.am): Likewise.
68896         * modules/strsep (Makefile.am): Likewise.
68897         * modules/strstr (Makefile.am): Likewise.
68898         * modules/strtod (Makefile.am): Likewise.
68899         * modules/strtoimax (Makefile.am): Likewise.
68900         * modules/strtok_r (Makefile.am): Likewise.
68901         * modules/strtol (Makefile.am): Likewise.
68902         * modules/strtoll (Makefile.am): Likewise.
68903         * modules/strtoul (Makefile.am): Likewise.
68904         * modules/strtoull (Makefile.am): Likewise.
68905         * modules/strtoumax (Makefile.am): Likewise.
68906         * modules/strverscmp (Makefile.am): Likewise.
68907         * modules/sys_socket (Makefile.am): Likewise.
68908         * modules/sys_stat (Makefile.am): Likewise.
68909         * modules/sysexits (Makefile.am): Likewise.
68910         * modules/time_r (Makefile.am): Likewise.
68911         * modules/timegm (Makefile.am): Likewise.
68912         * modules/timespec (Makefile.am): Likewise.
68913         * modules/tmpfile-safer (Makefile.am): Likewise.
68914         * modules/trim (Makefile.am): Likewise.
68915         * modules/unistd-safer (Makefile.am): Likewise.
68916         * modules/unlinkdir (Makefile.am): Likewise.
68917         * modules/unlocked-io (Makefile.am): Likewise.
68918         * modules/userspec (Makefile.am): Likewise.
68919         * modules/utime (Makefile.am): Likewise.
68920         * modules/utimecmp (Makefile.am): Likewise.
68921         * modules/utimens (Makefile.am): Likewise.
68922         * modules/vasnprintf (Makefile.am): Likewise.
68923         * modules/vasprintf (Makefile.am): Likewise.
68924         * modules/vsnprintf (Makefile.am): Likewise.
68925         * modules/xalloc (Makefile.am): Likewise.
68926         * modules/xgetcwd (Makefile.am): Likewise.
68927         * modules/xnanosleep (Makefile.am): Likewise.
68928         * modules/xreadlink (Makefile.am): Likewise.
68929         * modules/xstrtod (Makefile.am): Likewise.
68930         * modules/xstrtol (Makefile.am): Likewise.
68931         * modules/xstrtold (Makefile.am): Likewise.
68932         * modules/yesno (Makefile.am): Likewise.
68933         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68935 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68937         * modules/error (Makefile.am): Distribute files through
68938         EXTRA_DIST, not lib_SOURCES.
68940 2006-10-12  Eric Blake  <ebb9@byu.net>
68942         * modules/error (Makefile.am): Distribute files in /lib.
68943         * modules/obstack (Makefile.am): Likewise.
68945 2006-10-12  Bruno Haible  <bruno@clisp.org>
68947         * modules/acl (Makefile.am): Distribute all files in lib/ through
68948         EXTRA_DIST.
68949         * modules/arcfour (Makefile.am): Likewise.
68950         * modules/arctwo (Makefile.am): Likewise.
68951         * modules/argmatch (Makefile.am): Likewise.
68952         * modules/argz (Makefile.am): Likewise.
68953         * modules/atexit (Makefile.am): Likewise.
68954         * modules/backupfile (Makefile.am): Likewise.
68955         * modules/c-strtod (Makefile.am): Likewise.
68956         * modules/c-strtold (Makefile.am): Likewise.
68957         * modules/calloc (Makefile.am): Likewise.
68958         * modules/canon-host (Makefile.am): Likewise.
68959         * modules/canonicalize (Makefile.am): Likewise.
68960         * modules/chdir-long (Makefile.am): Likewise.
68961         * modules/chdir-safer (Makefile.am): Likewise.
68962         * modules/check-version (Makefile.am): Likewise.
68963         * modules/chown (Makefile.am): Likewise.
68964         * modules/cloexec (Makefile.am): Likewise.
68965         * modules/close-stream (Makefile.am): Likewise.
68966         * modules/closeout (Makefile.am): Likewise.
68967         * modules/crc (Makefile.am): Likewise.
68968         * modules/cycle-check (Makefile.am): Likewise.
68969         * modules/des (Makefile.am): Likewise.
68970         * modules/dirfd (Makefile.am): Likewise.
68971         * modules/dirname (Makefile.am): Likewise.
68972         * modules/dup2 (Makefile.am): Likewise.
68973         * modules/euidaccess (Makefile.am): Likewise.
68974         * modules/exclude (Makefile.am): Likewise.
68975         * modules/exitfail (Makefile.am): Likewise.
68976         * modules/fcntl-safer (Makefile.am): Likewise.
68977         * modules/file-type (Makefile.am): Likewise.
68978         * modules/fileblocks (Makefile.am): Likewise.
68979         * modules/filemode (Makefile.am): Likewise.
68980         * modules/filenamecat (Makefile.am): Likewise.
68981         * modules/fnmatch (Makefile.am): Likewise.
68982         * modules/fopen-safer (Makefile.am): Likewise.
68983         * modules/fpending (Makefile.am): Likewise.
68984         * modules/fprintftime (Makefile.am): Likewise.
68985         * modules/free (Makefile.am): Likewise.
68986         * modules/fsusage (Makefile.am): Likewise.
68987         * modules/ftruncate (Makefile.am): Likewise.
68988         * modules/fts (Makefile.am): Likewise.
68989         * modules/gc (Makefile.am): Likewise.
68990         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68991         * modules/getaddrinfo (Makefile.am): Likewise.
68992         * modules/getcwd (Makefile.am): Likewise.
68993         * modules/getdelim (Makefile.am): Likewise.
68994         * modules/getdomainname (Makefile.am): Likewise.
68995         * modules/getgroups (Makefile.am): Likewise.
68996         * modules/gethostname (Makefile.am): Likewise.
68997         * modules/gethrxtime (Makefile.am): Likewise.
68998         * modules/getline (Makefile.am): Likewise.
68999         * modules/getloadavg (Makefile.am): Likewise.
69000         * modules/getlogin_r (Makefile.am): Likewise.
69001         * modules/getopt (Makefile.am): Likewise.
69002         * modules/getpass (Makefile.am): Likewise.
69003         * modules/getpass-gnu (Makefile.am): Likewise.
69004         * modules/getsubopt (Makefile.am): Likewise.
69005         * modules/gettime (Makefile.am): Likewise.
69006         * modules/gettimeofday (Makefile.am): Likewise.
69007         * modules/getugroups (Makefile.am): Likewise.
69008         * modules/getusershell (Makefile.am): Likewise.
69009         * modules/glob (Makefile.am): Likewise.
69010         * modules/group-member (Makefile.am): Likewise.
69011         * modules/hard-locale (Makefile.am): Likewise.
69012         * modules/hash (Makefile.am): Likewise.
69013         * modules/hmac-md5 (Makefile.am): Likewise.
69014         * modules/hmac-sha1 (Makefile.am): Likewise.
69015         * modules/human (Makefile.am): Likewise.
69016         * modules/idcache (Makefile.am): Likewise.
69017         * modules/imaxabs (Makefile.am): Likewise.
69018         * modules/imaxdiv (Makefile.am): Likewise.
69019         * modules/inet_ntop (Makefile.am): Likewise.
69020         * modules/inet_pton (Makefile.am): Likewise.
69021         * modules/inttostr (Makefile.am): Likewise.
69022         * modules/isapipe (Makefile.am): Likewise.
69023         * modules/lchown (Makefile.am): Likewise.
69024         * modules/long-options (Makefile.am): Likewise.
69025         * modules/lstat (Makefile.am): Likewise.
69026         * modules/malloc (Makefile.am): Likewise.
69027         * modules/mathl (Makefile.am): Likewise.
69028         * modules/mbchar (Makefile.am): Likewise.
69029         * modules/md2 (Makefile.am): Likewise.
69030         * modules/md4 (Makefile.am): Likewise.
69031         * modules/md5 (Makefile.am): Likewise.
69032         * modules/memcasecmp (Makefile.am): Likewise.
69033         * modules/memchr (Makefile.am): Likewise.
69034         * modules/memcmp (Makefile.am): Likewise.
69035         * modules/memcoll (Makefile.am): Likewise.
69036         * modules/memcpy (Makefile.am): Likewise.
69037         * modules/memmem (Makefile.am): Likewise.
69038         * modules/memmove (Makefile.am): Likewise.
69039         * modules/mempcpy (Makefile.am): Likewise.
69040         * modules/memrchr (Makefile.am): Likewise.
69041         * modules/memset (Makefile.am): Likewise.
69042         * modules/memxor (Makefile.am): Likewise.
69043         * modules/mkancesdirs (Makefile.am): Likewise.
69044         * modules/mkdir (Makefile.am): Likewise.
69045         * modules/mkdir-p (Makefile.am): Likewise.
69046         * modules/mkdtemp (Makefile.am): Likewise.
69047         * modules/mkstemp (Makefile.am): Likewise.
69048         * modules/mktime (Makefile.am): Likewise.
69049         * modules/modechange (Makefile.am): Likewise.
69050         * modules/mountlist (Makefile.am): Likewise.
69051         * modules/nanosleep (Makefile.am): Likewise.
69052         * modules/openat (Makefile.am): Likewise.
69053         * modules/pagealign_alloc (Makefile.am): Likewise.
69054         * modules/physmem (Makefile.am): Likewise.
69055         * modules/poll (Makefile.am): Likewise.
69056         * modules/posixtm (Makefile.am): Likewise.
69057         * modules/posixver (Makefile.am): Likewise.
69058         * modules/putenv (Makefile.am): Likewise.
69059         * modules/quote (Makefile.am): Likewise.
69060         * modules/quotearg (Makefile.am): Likewise.
69061         * modules/raise (Makefile.am): Likewise.
69062         * modules/read-file (Makefile.am): Likewise.
69063         * modules/readline (Makefile.am): Likewise.
69064         * modules/readlink (Makefile.am): Likewise.
69065         * modules/readtokens (Makefile.am): Likewise.
69066         * modules/readutmp (Makefile.am): Likewise.
69067         * modules/realloc (Makefile.am): Likewise.
69068         * modules/regex (Makefile.am): Likewise.
69069         * modules/rename (Makefile.am): Likewise.
69070         * modules/rename-dest-slash (Makefile.am): Likewise.
69071         * modules/rijndael (Makefile.am): Likewise.
69072         * modules/rmdir (Makefile.am): Likewise.
69073         * modules/rpmatch (Makefile.am): Likewise.
69074         * modules/safe-read (Makefile.am): Likewise.
69075         * modules/safe-write (Makefile.am): Likewise.
69076         * modules/same (Makefile.am): Likewise.
69077         * modules/save-cwd (Makefile.am): Likewise.
69078         * modules/savedir (Makefile.am): Likewise.
69079         * modules/setenv (Makefile.am): Likewise.
69080         * modules/settime (Makefile.am): Likewise.
69081         * modules/sha1 (Makefile.am): Likewise.
69082         * modules/sig2str (Makefile.am): Likewise.
69083         * modules/snprintf (Makefile.am): Likewise.
69084         * modules/stdlib-safer (Makefile.am): Likewise.
69085         * modules/stpcpy (Makefile.am): Likewise.
69086         * modules/stpncpy (Makefile.am): Likewise.
69087         * modules/strcase (Makefile.am): Likewise.
69088         * modules/strcasestr (Makefile.am): Likewise.
69089         * modules/strchrnul (Makefile.am): Likewise.
69090         * modules/strcspn (Makefile.am): Likewise.
69091         * modules/strdup (Makefile.am): Likewise.
69092         * modules/strerror (Makefile.am): Likewise.
69093         * modules/strftime (Makefile.am): Likewise.
69094         * modules/strndup (Makefile.am): Likewise.
69095         * modules/strnlen (Makefile.am): Likewise.
69096         * modules/strpbrk (Makefile.am): Likewise.
69097         * modules/strsep (Makefile.am): Likewise.
69098         * modules/strstr (Makefile.am): Likewise.
69099         * modules/strtod (Makefile.am): Likewise.
69100         * modules/strtoimax (Makefile.am): Likewise.
69101         * modules/strtok_r (Makefile.am): Likewise.
69102         * modules/strtol (Makefile.am): Likewise.
69103         * modules/strtoll (Makefile.am): Likewise.
69104         * modules/strtoul (Makefile.am): Likewise.
69105         * modules/strtoull (Makefile.am): Likewise.
69106         * modules/strtoumax (Makefile.am): Likewise.
69107         * modules/strverscmp (Makefile.am): Likewise.
69108         * modules/time_r (Makefile.am): Likewise.
69109         * modules/timegm (Makefile.am): Likewise.
69110         * modules/tmpfile-safer (Makefile.am): Likewise.
69111         * modules/unistd-safer (Makefile.am): Likewise.
69112         * modules/unlinkdir (Makefile.am): Likewise.
69113         * modules/userspec (Makefile.am): Likewise.
69114         * modules/utime (Makefile.am): Likewise.
69115         * modules/utimecmp (Makefile.am): Likewise.
69116         * modules/utimens (Makefile.am): Likewise.
69117         * modules/vasnprintf (Makefile.am): Likewise.
69118         * modules/vasprintf (Makefile.am): Likewise.
69119         * modules/vsnprintf (Makefile.am): Likewise.
69120         * modules/xalloc (Makefile.am): Likewise.
69121         * modules/xgetcwd (Makefile.am): Likewise.
69122         * modules/xnanosleep (Makefile.am): Likewise.
69123         * modules/xreadlink (Makefile.am): Likewise.
69124         * modules/xstrtod (Makefile.am): Likewise.
69125         * modules/xstrtol (Makefile.am): Likewise.
69126         * modules/xstrtold (Makefile.am): Likewise.
69127         * modules/yesno (Makefile.am): Likewise.
69129 2006-10-12  Jim Meyering  <jim@meyering.net>
69131         * m4/getloadavg.m4: Revert the change below.
69133         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69134         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69135         fail with a symlink, which is what coreutils' ./bootstrap now
69136         creates by default.
69138 2006-10-12  Bruno Haible  <bruno@clisp.org>
69140         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69141         mingw.
69142         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69143         MSVC and mingw explicitly.
69145 2006-10-11  Simon Josefsson  <jas@extundo.com>
69146             Bruno Haible  <bruno@clisp.org>
69148         Add support for multiple gnulib-tool invocations in the scope of a
69149         single configure.ac file.
69150         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69151         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69152         with the same contents as the _LIBADD variable.
69153         (func_emit_initmacro_start, func_emit_initmacro_end,
69154         func_emit_initmacro_done): New functions.
69155         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69156         gl_LIBOBJS and gl_LTLIBOBJS.
69158 2006-10-11  Bruno Haible  <bruno@clisp.org>
69160         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69161         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69162         autoreconf. Instead, invoke autopoint explicitly but move back the
69163         *.m4 files from gnulib.
69165 2006-10-11  Bruno Haible  <bruno@clisp.org>
69167         * gnulib-tool (func_usage): Make module names after --create-testdir
69168         optional.
69169         (func_create_testdir): If no module was specified, use nearly all
69170         modules.
69172 2006-10-12  Jim Meyering  <jim@meyering.net>
69174         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69175         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69176         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69177         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69178         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69179         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69180         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69181         (fts_set_stat_required): New function.
69182         (fts_open): Defer the calls to fts_stat, if possible or requested.
69183         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69184         into fts_stat itself.
69185         (fts_read): Perform any required (deferred) fts_stat call.
69186         (fts_build): Likewise, for the directory we're about to open and read.
69187         In the readdir loop, carefully decide whether each entry will require
69188         an eventual call to fts_stat, using dirent.d_type info if available.
69189         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69190         a command line argument into this function.  Update all callers.
69191         Map a return value of FTS_DOT to FTS_D for a command line argument.
69192         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69193         Thanks to Miklos Szeredi for his tenacity and for the initial
69194         bug report about "find" failing on a FUSE-based file system.
69196         * lib/fts.c (fts_open): Use consistent indentation.
69198 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69200         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69201         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69202         reported by Jim Meyering.  All uses of cache variables renamed
69203         to match Autoconf's.
69204         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69205         the other one.
69207         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69208         Fix misspelling in diagnostic.
69210 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69212         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69213         defined.  Problem reported by Matthew Woehlke.
69215         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69216         Add support for Tandem NonStop R series.
69217         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69218         Use new macro.
69220         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69221         (has_trailing_slash): Omit size arg; all callers changed.
69222         Omit 'inline', since it doesn't help performance and we'd
69223         need to configure it.
69224         Don't count //, ///, etc. as having a trailing slash.
69225         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69226         (rpl_rename_dest_slash): On failure, use rename's errno rather
69227         than (in some cases) an incorrect or junk errno.
69228         Simplify code by removing need to compute length; this does
69229         cause it to make two passes instead of one over the file name,
69230         but it's worth it.
69232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69233         change, since Autoconf's version may no longer be appropriate now
69234         that we are using CVS Autoconf's version.  Add support for Tandem.
69236 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69237             Bruno Haible  <bruno@clisp.org>
69239         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69240         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69241         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69242         gl_AC_TYPE_LONG_LONG.
69244         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69245         instead of HAVE_LONG_LONG.
69246         * lib/printf-args.c (printf_fetchargs): Likewise.
69247         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69248         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69249         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69250         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69251         gl_AC_TYPE_LONG_LONG.
69253 2006-10-11  Bruno Haible  <bruno@clisp.org>
69255         * m4/longlong.m4: Add comments.
69256         * m4/ulonglong.m4: Likewise.
69258 2006-10-10  Bruno Haible  <bruno@clisp.org>
69260         Make it possible to #define stpcpy, strdup to aliases.
69261         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69262         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69264 2006-10-10  Bruno Haible  <bruno@clisp.org>
69266         Make it possible to #define gcd to an alias.
69267         * lib/gcd.c: Include config.h.
69269 2006-10-10  Bruno Haible  <bruno@clisp.org>
69271         Make it possible to #define c_isascii to an alias.
69272         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69273         defined. Undefine the macros before defining them, to avoid gcc
69274         warnings.
69275         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69276         define NO_C_CTYPE_MACROS early.
69278 2006-10-10  Bruno Haible  <bruno@clisp.org>
69280         Make it possible to #define set_program_name to an alias.
69281         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69282         ENABLE_RELOCATABLE early.
69284 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69286         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69287         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69288         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69289         More generally, don't assume that 64-bit signed int is available
69290         if unsigned int is, and vice versa.
69291         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69292         unsigned symbols, not on their signed counterparts.
69293         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69294         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69295         (UINT64_C, UINTMAX_C):
69296         Likewise.
69297         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69298         unsigned counterparts.
69299         (Have_long_long, Unsigned): New macros.
69300         (Int): Renamed from INT.
69301         (strtoimax): Use the new macros.
69302         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69303         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69304         * modules/inttypes (inttypes.h): Substitute
69305         HAVE_UNSIGNED_LONG_LONG_INT.
69306         * modules/stdint (stdint.h): Likewise.
69307         (Files): Add m4/ulonglong.m4.
69309 2006-10-10  Bruno Haible  <bruno@clisp.org>
69311         Fix a gcc -Wshadow warning.
69312         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69313         to 'bucket'.
69314         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69315         gl_linked_indexof_from_to): Likewise.
69316         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69317         Likewise.
69318         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69319         Likewise.
69320         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69321         Reported by Eric Blake.
69323 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69325         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69326         for NetBSD.  Problem reported by Bruno Haible.
69328 2006-10-09  Jim Meyering  <jim@meyering.net>
69330         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69331         Patch from Bruno Haible.
69333 2006-10-09  Jim Meyering  <jim@meyering.net>
69335         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69336         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69337         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69339 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69341         Don't include <config.h> twice; this doesn't work in some cases,
69342         e.g., when config.h has "#define intmax_t long long int" and
69343         we include <config.h>, <inttypes.h>, <config.h> in that order.
69344         Problem reported by Matthew Woehlke in:
69345         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69346         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69347         * lib/fts-cycle.c: Don't include config.h.
69348         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69349         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69350         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69351         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69352         inttypes.h.
69353         * lib/xstrtoumax.c: Likewise.
69354         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69355         __strtol and the like, so that this module is more like its siblings.
69356         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69357         Remove; no longer needed now that we assume gnulib inttypes.h.
69359 2006-10-08  Bruno Haible  <bruno@clisp.org>
69361         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69362         option.
69364 2006-10-07  Jim Meyering  <jim@meyering.net>
69366         * modules/inttypes (inttypes.h): Revert what seems to have been
69367         an inadvertent part of today's change: use "|", not "/" in the
69368         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69370 2006-10-07  Bruno Haible  <bruno@clisp.org>
69372         * modules/sublist: New file.
69374 2006-10-07  Bruno Haible  <bruno@clisp.org>
69376         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69377         * modules/argz (argz.h): Likewise.
69378         * modules/arpa_inet (arpa/inet.h): Likewise.
69379         * modules/byteswap (byteswap.h): Likewise.
69380         * modules/configmake (configmake.h): Likewise.
69381         * modules/fcntl (fcntl.h): Likewise.
69382         * modules/fnmatch (fnmatch.h): Likewise.
69383         * modules/getopt (getopt.h): Likewise.
69384         * modules/glob (glob.h): Likewise.
69385         * modules/inttypes (inttypes.h): Likewise.
69386         * modules/netinet_in (netinet/in.h): Likewise.
69387         * modules/poll (poll.h): Likewise.
69388         * modules/stdbool (stdbool.h): Likewise.
69389         * modules/stdint (stdint.h): Likewise.
69390         * modules/sys_select (sys/select.h): Likewise.
69391         * modules/sys_socket (sys/socket.h): Likewise.
69392         * modules/sys_stat (sys/stat.h): Likewise.
69393         * modules/sysexits (sysexits.h): Likewise.
69394         * modules/unistd (unistd.h): Likewise.
69395         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69396         Add a "DO NOT EDIT" comment to the generated file.
69397         (func_import): Likewise for gnulib-comp.m4.
69399 2006-10-07  Bruno Haible  <bruno@clisp.org>
69401         * lib/gl_sublist.h: New file.
69402         * lib/gl_sublist.c: New file.
69404 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69406         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69407         name (relative to the original working directory) and the file
69408         name component (relative to the temporary working directory).  All
69409         callers changed.
69410         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69411         * lib/mkdir-p.c (make_dir_parents): Likewise.
69412         * lib/mkdir-p.h (make_dir_parents): Likewise.
69414 2006-10-06  Eric Blake  <ebb9@byu.net>
69416         Define several macros for use by the clean-temp module.
69417         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69419         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69421         * lib/clean-temp.h (close_stream_temp): New declaration.
69422         * lib/clean-temp.c (includes): Pull in headers according to what
69423         other modules are in use.
69424         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69426 2006-10-06  Bruno Haible  <bruno@clisp.org>
69428         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69429         instead of fopen, fwriteerror.
69431 2006-10-06  Bruno Haible  <bruno@clisp.org>
69433         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69434         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69435         int.
69436         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69437         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69438         Return an error indicator.
69439         Suggested by Eric Blake.
69441 2006-10-06  Bruno Haible  <bruno@clisp.org>
69443         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69444         Reported by Eric Blake.
69446 2006-10-06  Bruno Haible  <bruno@clisp.org>
69448         * modules/closeout (Description): Mention stderr too.
69450 2006-10-06  Bruno Haible  <bruno@clisp.org>
69451         and Paul Eggert  <eggert@cs.ucla.edu>
69453         * lib/closeout.c (close_stdout): Also close stderr.
69454         * lib/closeout.h: Update comment.
69456 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69458         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69459         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69460         * lib/dirchownmod.c: Include lchown.h.
69461         * lib/lchown.c: Don't include files that lchown.h now includes.
69462         Don't declare chown, since lchown.h now does that.
69463         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69464         (lchown): Define to rpl_chown if lchown is declared but
69465         does not exist.  Declare using a prototype if lchown is not
69466         declared.  Add a copyright notice.
69467         * lib/mkstemp.h: Include <unistd.h>.
69468         * lib/openat.c: Include lchown.h.
69470         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69471         we now test for that separately.
69472         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69473         rather than O_NOFOLLOW, when testing whether it's possible to
69474         avoid a race condition reliably.
69475         * lib/savewd.c (savewd_chdir): Likewise.
69477         Remove macros that are no longer needed now that stdint.h is
69478         reliable.
69479         * lib/fsusage.c (UINTMAX_MAX): Remove.
69480         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69481         * lib/utimecmp.c (SIZE_MAX): Remove.
69483         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69485         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69486         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69487         O_NOATIME works.
69489 2006-10-05  Bruno Haible  <bruno@clisp.org>
69491         * lib/gl_list.h (gl_sortedlist_search_from_to,
69492         gl_sortedlist_indexof_from_to): New declarations.
69493         (gl_list_implementation): New fields sortedlist_search_from_to,
69494         sortedlist_indexof_from_to.
69495         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69496         inline functions.
69497         * lib/gl_list.c (gl_sortedlist_search_from_to,
69498         gl_sortedlist_indexof_from_to): New functions.
69499         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69500         function.
69501         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69502         (gl_array_sortedlist_search_from_to): New function.
69503         (gl_array_list_implementation): Update.
69504         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69505         function.
69506         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69507         (gl_carray_sortedlist_search_from_to): New function.
69508         (gl_carray_list_implementation): Update.
69509         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69510         gl_linked_sortedlist_indexof_from_to): New functions.
69511         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69512         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69513         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69514         gl_tree_sortedlist_indexof_from_to): New functions.
69515         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69516         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69517         Update.
69518         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69519         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69520         Update.
69522 2006-10-05  Bruno Haible  <bruno@clisp.org>
69524         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69525         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69526         (struct gl_list_implementation): Add fields search_from_to,
69527         indexof_from_to. Remove fields search, indexof.
69528         (gl_list_search): Use the search_from_to method.
69529         (gl_list_search_from, gl_list_search_from_to): New functions.
69530         (gl_list_indexof): Use the indexof_from_to method.
69531         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69532         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69533         (gl_list_search_from, gl_list_search_from_to): New functions.
69534         (gl_list_indexof): Use the indexof_from_to method.
69535         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69536         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69537         gl_array_indexof. Add start_index, end_index arguments.
69538         (gl_array_search_from_to): Renamed from gl_array_search. Add
69539         start_index, end_index arguments.
69540         (gl_array_remove, gl_array_list_implementation): Update.
69541         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69542         gl_carray_indexof. Add start_index, end_index arguments.
69543         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69544         start_index, end_index arguments.
69545         (gl_carray_remove, gl_carray_list_implementation): Update.
69546         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69547         gl_linked_search. Add start_index, end_index arguments.
69548         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69549         start_index, end_index arguments.
69550         (gl_linked_remove): Update.
69551         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69552         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69553         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69554         field to 'size_t'.
69555         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69556         gl_tree_search. Add start_index, end_index arguments.
69557         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69558         start_index, end_index arguments.
69559         (gl_tree_remove): Update.
69560         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69561         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69562         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69563         function.
69564         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69565         gl_tree_search. Add start_index, end_index arguments.
69566         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69567         start_index, end_index arguments.
69568         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69569         Update.
69570         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69572 2006-10-05  Bruno Haible  <bruno@clisp.org>
69574         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69576         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69577         fwriteerror_temp): New declarations.
69578         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69579         (descriptors): New variable.
69580         (cleanup): First, close the descriptors.
69581         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69582         fclose_temp, fwriteerror_temp): New functions.
69584 2006-10-04  Jim Meyering  <jim@meyering.net>
69586         * lib/fts.c (fts_open): Tiny comment change.
69588 2006-10-04  Bruno Haible  <bruno@clisp.org>
69590         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69591         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69592         gl_LOCK_BODY.
69593         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69594         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69595         gl_LOCK_EARLY_BODY.
69596         (gl_LOCK): Require gl_LOCK_BODY.
69598 2006-10-04  Bruno Haible  <bruno@clisp.org>
69600         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69601         (gl_oset_search_atleast): New declaration.
69602         (struct gl_oset_implementation): Add field 'search_atleast'.
69603         (gl_oset_search_atleast): New inline function.
69604         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69605         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69606         (gl_array_oset_implementation): Update.
69607         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69608         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69609         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69611 2006-10-04  Bruno Haible  <bruno@clisp.org>
69613         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69615 2006-10-03  Bruno Haible  <bruno@clisp.org>
69617         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69618         from gl_avltreehash_list_implementation.
69620 2006-10-03  Bruno Haible  <bruno@clisp.org>
69622         * lib/gl_oset.c (gl_oset_add): Fix return type.
69624 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69626         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69628 2006-10-02  Eric Blake  <ebb9@byu.net>
69630         * modules/strnlen (Depends-on): Add extensions.
69632 2006-10-02  Eric Blake  <ebb9@byu.net>
69634         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69635         definition in 2.60+.
69637 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69639         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69640         checks.
69642 2006-10-02  Bruno Haible  <bruno@clisp.org>
69644         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69645         to the AUTOMAKE_OPTIONS.
69646         Reported by Jim Meyering.
69648 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69650         Work around bug in Solaris 10 /proc file system:
69651         /proc/self/fd/NNN/.. isn't the parent directory of
69652         the directory whose file descriptor is NNN.  This needs to
69653         be worked around at run time, not compile time, since a
69654         program might be built on Solaris 8, where things work, and
69655         run on Solaris 10.
69656         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69657         to use the following interface instead:
69658         (OPENAT_BUFFER_SIZE): New macro.
69659         (openat_proc_name): New function.
69660         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69661         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69662         Likewise.
69663         * lib/openat-proc.c: New file.
69664         * modules/openat (Files): Add lib/openat-proc.c.
69665         (Depends-on): Add same-inode, stdbool.
69666         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69668 2006-09-29  Bruno Haible  <bruno@clisp.org>
69670         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69671         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69672         argument. Set stdout_closed before testing for ferror, not after.
69673         (fwriteerror, fwriteerror_no_ebadf): New functions.
69675 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69677         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69679 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69681         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69682         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69684 2006-09-28  Jim Meyering  <jim@meyering.net>
69686         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69687         Include <unistd.h>.
69689 2006-09-28  Bruno Haible  <bruno@clisp.org>
69691         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69692         * modules/linkedhash-list (Depends-on): Likewise.
69693         * modules/rbtreehash-list (Depends-on): Likewise.
69695 2006-09-28  Bruno Haible  <bruno@clisp.org>
69697         * lib/strndup.h: Simplify the redefinition of strndup.
69698         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69699         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69701 2006-09-28  Bruno Haible  <bruno@clisp.org>
69703         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69704         * lib/gl_linkedhash_list.c: Likewise.
69705         * lib/gl_rbtreehash_list.c: Likewise.
69707 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69709         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69710         getaddrinfo.
69712         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69713         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69714         it causes <stdio_ext.h> to cause a compile-time error.
69715         Problem reported by Nelson H. F. Beebe.
69716         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69717         of HAVE_DECL___PENDING.
69719         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69720         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69721         declaration.
69723 2006-09-27  Jim Meyering  <jim@meyering.net>
69725         This file could end up with a definition for a function
69726         named __strndup, rather than rpl_strndup on a system with
69727         incomplete weak_alias support.
69728         * lib/strndup.c (strndup): Rename from __strndup.
69729         Remove #defines that used to map __strndup to strndup.
69730         Don't use K&R prototypes.
69731         Remove LIBC-related code, since this file is not sync'd with glibc.
69732         * lib/strndup.h: Revamp, accordingly.
69733         * m4/strndup.m4: Modernize.
69735 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69737         * modules/savewd (Depends-on): Add 'raise'.
69738         * lib/savewd.c: Include <signal.h>, for 'raise'.
69740 2006-09-26  Jim Meyering  <jim@meyering.net>
69742         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69743         when we detect Darwin 8.7.0's acl_get_file bug.
69744         Rearrange to perform the new (below) run-test while $LIBS
69745         contains any acl-related library.  Set USE_ACL at the end.
69746         (gl_ACL_GET_FILE): New function.
69748 2006-09-26  Eric Blake  <ebb9@byu.net>
69750         * lib/verror.c: Include <config.h> unconditionally.
69752 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69754         * modules/clock-time (Maintainer): Add self.
69755         * modules/getlogin_r (Depends-on): Add extensions.
69757 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69759         * modules/clock-time: New module.
69760         * modules/nanosleep (Depends-on): Add clock-time.
69761         * modules/gethrxtime (Depends-on): Likewise.
69762         * modules/gettime (Depends-on): Likewise.
69763         * modules/settime (Depends-on): Likewise.
69765         * modules/fts-lgpl: Depend on openat.
69766         * modules/mkancesdirs: Depend on savewd.
69767         * modules/mkdir-p: Likewise.
69769 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69771         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69773         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69774         `gl_have_arbitrary_file_name_length_limit' to
69775         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69776         actually works between configure runs.
69778 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69779             Bruno Haible  <bruno@clisp.org>
69781         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69783 2006-09-25  Jim Meyering  <jim@meyering.net>
69785         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69786         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69788 2006-09-25  Eric Blake  <ebb9@byu.net>
69790         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69791         exec's in 2006-09-18 patch when shuffling fds.
69793 2006-09-25  Bruno Haible  <bruno@clisp.org>
69795         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69796         Reported by Jim Meyering.
69798 2006-09-24  Jim Meyering  <jim@meyering.net>
69800         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69801         compare a pointer against a literal "0".  That caused failures with
69802         at least HP-UX's hpcc.
69804 2006-09-22  Simon Josefsson  <jas@extundo.com>
69806         * modules/gc-sha1:
69807         * modules/gc-md4:
69808         * modules/gc-hmac-sha1:
69809         * modules/gc-hmac-md5:
69810         * modules/gc-des:
69811         * modules/gc-arcfour: Distribute more files.
69813 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69815         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69816         (gl_linked_iterator_from_to): Initialize struct completely.
69817         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69818         (gl_tree_iterator_from_to): Likewise
69819         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69820         * lib/gl_array_list.c [lint] (gl_array_iterator)
69821         (gl_array_iterator_from_to): Likewise.
69822         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69823         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69824         (gl_carray_iterator_from_to): Likewise.
69826         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69827         * lib/md4.c (md4_process_block): Remove unused variable.
69828         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69829         parentheses for clarity.
69831 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69833         * modules/bison-i18n (Depends-on): Add gettext.
69835 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69837         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69838         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69839         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69840         also add missing comma that caused broken test.
69841         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69842         stdlib.h, for `abort'.
69843         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69844         variables.
69845         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69846         include unistd.h if present, for `rmdir'.
69847         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69848         variables.
69849         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69850         in the process include standard headers for prototypes.
69851         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69852         gets declared on GNU/Linux.
69853         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69854         unistd.h, for `rmdir'.
69855         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69857         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69858         always true.
69859         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69861         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69863 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69865         * gnulib-tool (func_version): Create output all at once.  This
69866         may help avoid triggering unnecessary SIGPIPEs, and at any
69867         rate it doesn't hurt.
69869 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69870             Bruno Haible  <bruno@clisp.org>
69872         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69873         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69874         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69876         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69877         (gl_FUNC_VASPRINTF): Invoke it.
69879 2006-09-22  Bruno Haible  <bruno@clisp.org>
69881         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69882         getloadavg.c as first argument.
69884 2006-09-22  Bruno Haible  <bruno@clisp.org>
69886         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69887         at the beginning of the gl_INIT macro.
69888         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69889         gl_GETLOADAVG.
69891 2006-09-22  Bruno Haible  <bruno@clisp.org>
69893         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69894         module.
69895         Suggested by Ralf Wildenhues.
69897 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69899         Import this patch from libc:
69901         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69903         * lib/regex_internal.c (re_string_reconstruct): Handle
69904         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69905         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69906         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69907         re_string_context_at.
69909         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69910         now requires it.
69911         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69912         gl_REGEX now does it for us.
69913         (gl_REGEX): Add test taken from
69914         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69916         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69917         Check that large offsets work.  Modernize Autoconf usages.
69918         Prefer "yes" to mean a good thing rather than a bad.
69919         Don't put "#define mkstemp" in config.h, as this might interfere
69920         with standard system headers that "#define mkstemp mkstemp64".
69922         * modules/mkstemp (Depends-on): Add extensions, so that
69923         mkstemp is visible on some platforms.
69924         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69925         (Include): Change to "mkstemp.h" from <stdlib.h>.
69926         (Files): Add mkstemp.h.
69928         * lib/mkstemp.h: New file, since some standard headers
69929         #define mkstemp.
69930         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69931         Include "mkstemp.h".
69932         Make the _LIBC code resemble glibc original more,
69933         e.g., use K&R style.
69934         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69935         (mkstemp): Remove, since mkstemp.h does this for us.
69936         * lib/stdlib--.h: Include mkstemp.h.
69938         Import this patch from libc:
69940         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69942         * lib/tempname.c (__gen_tempname): Change attempts_min
69943         into a macro.  Use preprocessor to decide how to initialize
69944         attempts [Coverity CID 67].
69946 2006-09-20  Bruno Haible  <bruno@clisp.org>
69948         * lib/mkdtemp.c: Import from libc.
69949         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69950                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69951                 attempts_min into a macro.  Use preprocessor to decide how to
69952                 initialize attempts [Coverity CID 67].
69953         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69954                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69955                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69957 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69959         * gnulib-tool (func_exit): New function, to allow to pass the
69960         exit status portably through the trap.  Use everywhere.
69961         (--help, --version): Signal a write error.
69962         (trap): catch SIGPIPE, for write errors.
69963         Exit at the end of the trap, with the correct exit status.
69965 2006-09-19  Karl Berry  <karl@gnu.org>
69967         * doc/gnulib.texi: note about the license texinfo files.
69969 2006-09-19  Eric Blake  <ebb9@byu.net>
69971         * gnulib-tool: Avoid space-tab.
69973 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69975         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69976         that prevented coreutils 6.1 from building.  Problem reported
69977         by Petter Reinholdtsen.
69979 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69981         * gnulib-tool (avoidlist): Fix typo that broke options like
69982         --avoid=lock that are used by coreutils bootstrap.
69984 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69986         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69987         more systematically.
69989 2006-09-18  Jim Meyering  <jim@meyering.net>
69991         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69993 2006-09-18  Bruno Haible  <bruno@clisp.org>
69995         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69997 2006-09-18  Bruno Haible  <bruno@clisp.org>
69999         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70000         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70001         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70002         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70003         * m4/gettext.m4: Require autoconf >= 2.52.
70004         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70005         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70006         of gl_cv_header_inttypes_h.
70008 2006-09-18  Bruno Haible  <bruno@clisp.org>
70010         * lib/javaversion.c: Include configmake.h.
70012 2006-09-18  Bruno Haible  <bruno@clisp.org>
70014         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70015         avoid that the while loops be executed in a subshell.
70017 2006-09-18  Bruno Haible  <bruno@clisp.org>
70019         * MODULES.html.sh (func_module): Break long lines.
70020         Suggested by Bruce Korb <bkorb@gnu.org>.
70022 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70024         Speed up by a factor of 1.12.
70025         * gnulib-tool (nl): New variable.
70026         (func_import): Rewrite include directive extraction to only read each
70027         directive once.
70029 2006-09-17  Bruno Haible  <bruno@clisp.org>
70031         * modules/javaversion (Makefile.am): Remove DEFS setting.
70032         (Depends-on): Add configmake, for PKGDATADIR definition.
70034 2006-09-17  Bruno Haible  <bruno@clisp.org>
70036         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70038 2006-09-17  Bruno Haible  <bruno@clisp.org>
70040         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70041         (func_modules_transitive_closure, func_modules_add_dummy,
70042         func_modules_to_filelist, func_import, func_create_testdir,
70043         func_create_megatestdir, ...): Use it wherever possible.
70044         Suggested by Ralf Wildenhues.
70046 2006-09-16  Karl Berry  <karl@gnu.org>
70048         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70049         to avoid sectioning errors.
70050         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70051         [ifinfo]: blank line after @center-ed titles.
70052         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70053         Spell FSF address consistently with others.
70054         (These changes approved by rms.)
70056 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70058         Speed up by a factor of 1.61.
70059         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70060         already checked module names again.
70062 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70064         Speed up by a factor of 1.13.
70065         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70066         for new_files, and the input to func_add_or_update.
70068 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70070         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70071         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70073 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70075         * modules/mkancesdirs (Depends-on): Add fcntl.
70076         * modules/savewd: New file.
70077         * MODULES.html.sh (File system functions): Add savewd.
70079         * modules/configmake (Makefile.am): Add support for the
70080         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70082 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70084         * m4/savewd.m4: New file.
70086 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70088         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70089         (dirchownmod): New arg FD.  All callers changed.
70090         Use FD rather than opening the directory ourself, as opening is
70091         now the caller's responsibility.
70092         * lib/dirchownmod.h: Likewise.
70093         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70094         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70095         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70096         (test_dir): Remove.
70097         (mkancesdirs): Return length of prefix of FILE that has already
70098         been made, or -2 if there is a child doing the work.  Redo
70099         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70100         ".", and treat ".." specially since it might stray back into
70101         already-created areas.  Use a subprocess if necessary.  New arg
70102         WD; all users changed.  MAKE_DIR function should now return 1
70103         if it creates a directory that is not readable.  Return -2 if
70104         a child process is spun off.
70105         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70106         Adjust signature to match code.
70107         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70108         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70109         all users changed.
70110         * lib/savewd.c, lib/savewd.h: New files.
70112 2006-09-15  Jim Meyering  <jim@meyering.net>
70114         * modules/rename-dest-slash: New module.
70115         * MODULES.html.sh (posix_compat): Add it here.
70117         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70119 2006-09-15  Jim Meyering  <jim@meyering.net>
70121         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70122         file.
70124         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70126 2006-09-15  Jim Meyering  <jim@meyering.net>
70128         * lib/rename-dest-slash.c (has_trailing_slash): Use
70129         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70130         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70131         test before testing whether SRC is a directory.
70132         Suggestions from Bruno Haible.
70134         Avoid a warning about an unused variable.
70135         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70136         into the #ifdef block where it's used.
70138         * lib/rename-dest-slash.c: New file.
70140 2006-09-14  Bruno Haible  <bruno@clisp.org>
70142         * lib/allocsa.c: Include <config.h> unconditionally.
70143         * lib/asnprintf.c: Likewise.
70144         * lib/asprintf.c: Likewise.
70145         * lib/c-strcasecmp.c: Likewise.
70146         * lib/c-strcasestr.c: Likewise.
70147         * lib/c-strncasecmp.c: Likewise.
70148         * lib/c-strstr.c: Likewise.
70149         * lib/classpath.c: Likewise.
70150         * lib/clean-temp.c: Likewise.
70151         * lib/concatpath.c: Likewise.
70152         * lib/copy-file.c: Likewise.
70153         * lib/csharpcomp.c: Likewise.
70154         * lib/csharpexec.c: Likewise.
70155         * lib/execute.c: Likewise.
70156         * lib/fatal-signal.c: Likewise.
70157         * lib/findprog.c: Likewise.
70158         * lib/fwriteerror.c: Likewise.
70159         * lib/gl_array_list.c: Likewise.
70160         * lib/gl_array_oset.c: Likewise.
70161         * lib/gl_avltree_list.c: Likewise.
70162         * lib/gl_avltree_oset.c: Likewise.
70163         * lib/gl_avltreehash_list.c: Likewise.
70164         * lib/gl_carray_list.c: Likewise.
70165         * lib/gl_linked_list.c: Likewise.
70166         * lib/gl_linkedhash_list.c: Likewise.
70167         * lib/gl_list.c: Likewise.
70168         * lib/gl_oset.c: Likewise.
70169         * lib/gl_rbtree_list.c: Likewise.
70170         * lib/gl_rbtree_oset.c: Likewise.
70171         * lib/gl_rbtreehash_list.c: Likewise.
70172         * lib/imaxabs.c: Likewise.
70173         * lib/imaxdiv.c: Likewise.
70174         * lib/javacomp.c: Likewise.
70175         * lib/javaexec.c: Likewise.
70176         * lib/javaversion.c: Likewise.
70177         * lib/linebreak.c: Likewise.
70178         * lib/localcharset.c: Likewise.
70179         * lib/lock.c: Likewise.
70180         * lib/mbchar.c: Likewise.
70181         * lib/mbswidth.c: Likewise.
70182         * lib/mkdtemp.c: Likewise.
70183         * lib/pipe.c: Likewise.
70184         * lib/printf-args.c: Likewise.
70185         * lib/printf-parse.c: Likewise.
70186         * lib/progname.c: Likewise.
70187         * lib/progreloc.c: Likewise.
70188         * lib/readlink.c: Likewise.
70189         * lib/sh-quote.c: Likewise.
70190         * lib/stpcpy.c: Likewise.
70191         * lib/stpncpy.c: Likewise.
70192         * lib/strcasecmp.c: Likewise.
70193         * lib/strcasestr.c: Likewise.
70194         * lib/strcspn.c: Likewise.
70195         * lib/striconv.c: Likewise.
70196         * lib/strncasecmp.c: Likewise.
70197         * lib/strnlen1.c: Likewise.
70198         * lib/strstr.c: Likewise.
70199         * lib/strtok_r.c: Likewise.
70200         * lib/tls.c: Likewise.
70201         * lib/tmpdir.c: Likewise.
70202         * lib/unicodeio.c: Likewise.
70203         * lib/unsetenv.c: Likewise.
70204         * lib/vasnprintf.c: Likewise.
70205         * lib/vasprintf.c: Likewise.
70206         * lib/wait-process.c: Likewise.
70207         * lib/xallocsa.c: Likewise.
70208         * lib/xsetenv.c: Likewise.
70209         * lib/xstriconv.c: Likewise.
70211 2006-09-13  Simon Josefsson  <jas@extundo.com>
70213         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70214         that internally, suggested by Ralf Wildenhues
70215         <Ralf.Wildenhues@gmx.de>.
70217 2006-09-13  Simon Josefsson  <jas@extundo.com>
70219         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70220         @LIBOBJS@.
70221         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70223 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70225         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70226         longer worry about uses that don't define HAVE_CONFIG_H.
70227         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70228         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70229         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70230         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70231         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70232         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70233         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70234         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70235         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70236         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70237         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70238         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70239         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70240         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70241         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70242         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70243         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70244         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70245         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70246         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70247         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70248         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70249         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70250         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70251         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70252         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70253         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70254         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70255         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70256         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70257         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70258         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70259         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70260         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70261         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70262         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70263         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70264         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70265         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70266         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70267         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70268         Likewise.
70270 2006-09-13  Eric Blake  <ebb9@byu.net>
70272         * lib/getopt.c: Fix typo in last commit.
70274 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70276         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70277         dgettext.
70279 2006-09-12  Jim Meyering  <jim@meyering.net>
70281         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70282         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70283         Reported by Nelson H. F. Beebe.
70285 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70287         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70288         program_invocation_name and program_invocation_short_name are
70289         initialized.
70290         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70291         and program_invocation_short_name to argp.h, so they are visible
70292         to user programs.
70293         * lib/argp.h: Likewise
70295 2006-09-10  Bruno Haible  <bruno@clisp.org>
70297         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70298         m4/inttypes_h.m4, m4/uintmax_t.m4.
70300 2006-09-10  Bruno Haible  <bruno@clisp.org>
70302         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70303         gl_AC_TYPE_UINTMAX_T.
70305 2006-09-10  Bruno Haible  <bruno@clisp.org>
70307         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70309 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70311         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70312         convention.  Text proposed by Bruno Haible.
70313         (struct argp_option): Document the use of N_() wrappers.
70315         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70316         '\v', and translate the two parts separately, instead of feeding
70317         the whole string to gettext.  This allows to exclude
70318         '\v' from the strings visible to the translator by writing doc
70319         strings as N_("..") "\v" N_("..").
70321 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70323         * config/srclist.txt: Undo latest change; the bug was fixed.
70325 2006-09-09  Bruno Haible  <bruno@clisp.org>
70327         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70328         assignments if building a library without libtool.
70329         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70330         in func_emit_lib_Makefile_am.
70331         (func_import): When building a static library libfoo.a, arrange to
70332         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70333         (func_create_testdir): Likewise.
70334         * modules/gc (configure.ac, Makefile.am): If building statically,
70335         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70336         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70337         * modules/striconv (configure.ac, Makefile.am): Likewise.
70338         Based on a suggestion by Ralf Wildenhues.
70340 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70342         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70343         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70344         Also:
70346         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70347         Add year_2050_test to catch glibc bug 2821
70348         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70350         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70351         Prefer #ifdef to #if.
70353         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70354         Return from 'main' instead of calling 'exit'.
70356 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70358         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70359         returned the maximum time_t value rather than (time_t) -1.
70360         Problem originally reported by William Bardwell
70361         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70363         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70364         Moved to here ...
70365         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70366         ... from here.
70368 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70370         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70371         2821 is fixed.
70373 2006-09-08  Jim Meyering  <jim@meyering.net>
70375         Don't make generated files read-only.  That would bother too many
70376         people.  However, do retain the ability to work when targets are
70377         read-only: remove the destination and temporary files before writing
70378         them (when generated via sed or echo), or by using the -f option for
70379         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70380         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70381         * modules/byteswap, modules/configmake, modules/fcntl:
70382         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70383         * modules/localcharset, modules/netinet_in, modules/poll:
70384         * modules/stdbool, modules/stdint, modules/sys_select:
70385         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70387 2006-09-08  Jim Meyering  <jim@meyering.net>
70389         Avoid new build failure on FreeBSD 6.0.
70390         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70391         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70392         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70394 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70398 2006-09-07  Jim Meyering  <jim@meyering.net>
70400         Fix global typo in last change: use chmod u-w, not chmod u-x.
70401         Spotted by Paul Eggert and Bruce Korb.
70402         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70403         * modules/byteswap, modules/configmake, modules/fcntl:
70404         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70405         * modules/localcharset, modules/netinet_in, modules/poll:
70406         * modules/stdbool, modules/stdint, modules/sys_select:
70407         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70409 2006-09-06  Jim Meyering  <jim@meyering.net>
70411         Make generated files be read-only.
70412         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70413         Ensure that each generated file is now read-only.
70414         * modules/argz: Likewise.
70415         * modules/arpa_inet: Likewise.
70416         * modules/byteswap: Likewise.
70417         * modules/configmake: Likewise.
70418         * modules/fcntl: Likewise.
70419         * modules/fnmatch: Likewise.
70420         * modules/getopt: Likewise.
70421         * modules/glob: Likewise.
70422         * modules/inttypes: Likewise.
70423         * modules/netinet_in: Likewise.
70424         * modules/poll: Likewise.
70425         * modules/stdbool: Likewise.
70426         * modules/stdint: Likewise.
70427         * modules/sys_select: Likewise.
70428         * modules/sys_socket: Likewise.
70429         * modules/sys_stat: Likewise.
70430         * modules/sysexits: Likewise.
70431         * modules/localcharset: Same as above, but continue using temporary
70432         file named "t-$@" (why different?) rather than the "$@-t" used
70433         everywhere else.
70435         * modules/sysexits (Makefile.am): Replace literal occurrences
70436         of "sysexit.h" more readable, and more consistent, "$@".
70438 2006-09-06  Bruno Haible  <bruno@clisp.org>
70440         * modules/striconv: New file.
70441         * modules/xstriconv: New file.
70442         * MODULES.html.sh (Internationalization functions): Add striconv,
70443         xstriconv.
70445 2006-09-06  Bruno Haible  <bruno@clisp.org>
70447         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70448         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70449         not using libtool correctly.
70451 2006-09-06  Bruno Haible  <bruno@clisp.org>
70453         * lib/striconv.h: New file.
70454         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70455         iconvstring.c.
70456         * lib/xstriconv.h: New file.
70457         * lib/xstriconv.c: New file.
70459 2006-09-06  Bruno Haible  <bruno@clisp.org>
70461         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70462         lib_..._LDFLAGS.
70464 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70466         * lib/argz_.h: Sync from Libtool.
70468         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70469                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70471         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70473 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70475         * modules/trim: New file.
70477 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70479         * lib/trim.h: New file.
70480         * lib/trim.c: New file.
70482 2006-09-05  Bruno Haible  <bruno@clisp.org>
70484         * MODULES.html.sh (String handling): Add trim.
70486 2006-09-04  Karl Berry  <karl@gnu.org>
70488         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70489         until next release.
70491 2006-09-03  Bruno Haible  <bruno@clisp.org>
70493         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70494         correctly.
70496 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70498         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70499         not gl_GETLOADAVG.  Omit unneeded semicolons.
70500         Problems reported by Ralf Wildenhues in
70501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70502         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70503         at the end, which is the usual gnulib style.
70505         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70506         of doing all the work ourselves.
70507         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70508         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70510 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70512         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70513         Problem reported by Ralf Wildenhues in
70514         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70516         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70517         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70519 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70521         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70522         yesterday's patch by changing test -n to test -z.
70524 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70526         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70527         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70528         the former is now obsolescent.
70530         * modules/chdir-long (Depends-on): Add fcntl.
70532 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70534         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70535         obsolescent, and programs should use gnulib instead.
70536         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70537         but with prefixes changed.
70539 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70541         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70542         or stdbool.h, because they might not exist while configuring.
70544         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70545         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70546         does that for us.
70547         (O_DIRECTORY): Remove.
70549 2006-08-31  Eric Blake  <ebb9@byu.net>
70551         * gnulib-tool: Don't let emacs change spaces to TAB.
70553 2006-08-31  Bruno Haible  <bruno@clisp.org>
70555         * gnulib-tool: When calling func_import more than once, do it in a
70556         subshell.
70557         Reported by Eric Blake <ebb9@byu.net>.
70559 2006-08-31  Bruno Haible  <bruno@clisp.org>
70561         * gnulib-tool (nl): Remove variable.
70562         (sed_transform_lib_file): Use more robust test for config-h module.
70563         (func_import): Fix typo in 2006-08-25 patch.
70565 2006-08-31  Bruno Haible  <bruno@clisp.org>
70567         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70568         specified, augment Makefile.am variables instead of assigning them.
70570 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70572         Work around a bug in both the Linux and SunOS 64-bit kernels:
70573         nanosleep mishandles sleeps for longer than 2**31 seconds.
70574         Problem reported by Frank v Waveren in
70575         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70577         Check for nanosleep bug.
70578         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70580 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70582         Work around a bug in both the Linux and SunOS 64-bit kernels:
70583         nanosleep mishandles sleeps for longer than 2**31 seconds.
70584         Problem reported by Frank v Waveren in
70585         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70586         * lib/nanosleep.c (BILLION): New constant.
70587         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70588         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70589         implementation.
70591 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70593         * modules/nanosleep (Depends-on): Add gettime.
70595 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70596         and Simon Josefsson  <jas@extundo.com>
70597         and Oskar Liljeblad  <oskar@osk.mine.nu>
70599         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70600         * gnulib-tool (func_import): New license type 'unmodifiable license
70601         text'.
70602         * modules/fdl: Use it.  Longer description.
70603         * module/gpl, module/lgpl: New files.
70605 2006-08-30  Jim Meyering  <jim@meyering.net>
70607         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70608         shadowing the parameter.
70610 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70612         Sync from Libtool:
70614         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70616         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70617         sharing with gnulib.  Report by Eric Blake.
70619 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70621         * modules/isapipe: New file.
70622         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70624 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70626         * modules/configmake (Makefile.am): Add a comment, and omit
70627         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70628         by Bruno Haible.
70630 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70632         * m4/isapipe.m4: New file.
70634 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70636         * lib/isapipe.c, lib/isapipe.h: New files.
70638 2006-08-29  Jim Meyering  <jim@meyering.net>
70640         * modules/configmake (Makefile.am): Make configmake.h depend on
70641         Makefile.  Otherwise, a stale configmake.h could hang around.
70643 2006-08-29  Eric Blake  <ebb9@byu.net>
70645         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70646         resolution of upstream bug 3044.
70648 2006-08-29  Bruno Haible  <bruno@clisp.org>
70650         * modules/localcharset (Depends-on): Add configmake.
70651         (Makefile.am): Remove setting of LIBDIR through DEFS.
70653 2006-08-29  Bruno Haible  <bruno@clisp.org>
70655         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70656         defined.
70658 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70660         * modules/fcntl: New file.
70661         * modules/chdir-safer (Depends-on): Add fcntl.
70662         * modules/fts: Likewise.
70663         * modules/mkdir-p: Likewise.
70665         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70666         This undoes the most recent change, since we're now addressing the
70667         problem in a different way.
70669         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70670         into output, since the output might be called Makefile.am even
70671         if $makefile_name is something different.
70672         (func_import): Use $makefile_am rather than
70673         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70674         empty.
70676         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70678 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70680         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70681         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70682         recent change to stdint.m4, since we're now addressing the problem in a
70683         different way.
70685 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70687         * m4/fcntl_h.m4: New file.
70689 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70691         * lib/fcntl_.h: New file.
70692         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70693         the fcntl module.
70694         * lib/dirchownmod.c: Likewise.
70695         * lib/fts.c: Likewise.
70697         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70698         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70699         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70700         just before including <inttypes.h>, to avoid circular inclusion.
70702 2006-08-28  Jim Meyering  <jim@meyering.net>
70704         * doc/visibility.texi: Actually read and correct the grammar of the
70705         sentence affected by yesterday's change.
70707 2006-08-28  Eric Blake  <ebb9@byu.net>
70709         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70710         needs wrapper.
70712 2006-08-28  Eric Blake  <ebb9@byu.net>
70714         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70716 2006-08-28  Eric Blake  <ebb9@byu.net>
70718         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70720 2006-08-28  Bruno Haible  <bruno@clisp.org>
70722         * modules/c-strstr: New file, from GNU gettext.
70723         * MODULES.html.sh (String handling): Add c-strstr.
70725 2006-08-28  Bruno Haible  <bruno@clisp.org>
70727         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70728         macros.
70729         Reported by Eric Blake.
70731 2006-08-28  Bruno Haible  <bruno@clisp.org>
70733         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70734         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70735         * lib/vasprintf.c: Include errno.h, limits.h.
70736         (EOVERFLOW): New fallback definition.
70737         (vasprintf): Test here whether the string length is > INT_MAX.
70738         * lib/vsnprintf.c: Include errno.h, limits.h.
70739         (EOVERFLOW): New fallback definition.
70740         (vsnprintf): Fix bug when generated string was too long for the buffer.
70741         Test here whether the string length is > INT_MAX.
70743 2006-08-28  Bruno Haible  <bruno@clisp.org>
70745         * lib/inttypes_.h (SCNX*): Remove definitions.
70746         Reported by Eric Blake.
70748 2006-08-28  Bruno Haible  <bruno@clisp.org>
70750         * lib/c-strstr.h: New file, from GNU gettext.
70751         * lib/c-strstr.c: New file, from GNU gettext.
70753 2006-08-28  Bruno Haible  <bruno@clisp.org>
70755         * gnulib-tool: Reorder some statements.
70757 2006-08-28  Bruno Haible  <bruno@clisp.org>
70759         * gnulib-tool: New option --makefile-name.
70760         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70761         $makefile_name.
70762         (func_import): Write $makefile_name to the cache file, and read it from
70763         there unless explicitly specified. Use $makefile_name as file name
70764         instead of Makefile.am. Adjust the recommendations accordingly.
70766 2006-08-28  Bruno Haible  <bruno@clisp.org>
70768         * gnulib-tool (func_verify_module): Check against misapplying patch.
70770 2006-08-28  Bruno Haible  <bruno@clisp.org>
70772         * gnulib-tool (func_relativize, func_relconcat): New functions.
70773         Give an error if --local-dir is given with --update.
70774         Remove trailing slashes from $local_gnulib_dir.
70775         (func_import): Store the relativized $local_gnulib_dir in
70776         gnulib-cache.m4, and read it from there if not specified explicitly.
70778 2006-08-28  Bruno Haible  <bruno@clisp.org>
70780         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70781         is the current directory. Respect also $local_gnulib_dir.
70783 2006-08-28  Bruno Haible  <bruno@clisp.org>
70784             Simon Josefsson  <jas@extundo.com>
70786         BeOS portability.
70787         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70789 2006-08-27  Jim Meyering  <jim@meyering.net>
70791         * doc/visibility.texi: Remove duplicate word: "pointer".
70793 2006-08-26  Bruno Haible  <bruno@clisp.org>
70795         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70796         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70797         (Makefile.am): Create inttypes.h from inttypes_.h.
70798         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70800         * modules/imaxabs: New file.
70802         * modules/imaxdiv: New file.
70804 2006-08-26  Bruno Haible  <bruno@clisp.org>
70806         * m4/inttypes.m4: New file.
70807         * m4/_inttypes_h.m4: Remove file.
70808         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70809         PRI_MACROS_BROKEN.
70810         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70812         * m4/imaxabs.m4: New file.
70814         * m4/imaxdiv.m4: New file.
70816 2006-08-26  Bruno Haible  <bruno@clisp.org>
70818         * lib/inttypes_.h: New file.
70819         * lib/inttypes.h: Remove file.
70820         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70822         * lib/imaxabs.c: New file.
70824         * lib/imaxdiv.c: New file.
70826 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70828         New config-h module, so that "make" output needn't be cluttered
70829         by -DHAVE_CONFIG_H.
70830         * MODULES.html.sh (Support for building libraries and executables):
70831         Add config-h.
70832         * modules/config-h: New file.
70833         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70834         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70835         the config-h module is used.
70837         New configmake module, so that "make" output needn't be cluttered
70838         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70839         * MODULES.html.sh (Support for building libraries and executables):
70840         Add configmake.
70841         * modules/configmake: New file.
70843 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70845         * m4/config-h.m4: New file.
70847 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70849         * config/srclist.txt: Add elisp-comp.
70851 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70853         * MODULES.html.sh (Support for building libraries and executables):
70854         Add elisp-comp.
70855         * build-aux/elisp-comp: New file.
70856         * modules/elisp-comp: New file.
70858 2006-08-24  Bruno Haible  <bruno@clisp.org>
70860         * gnulib-tool (func_create_testdir): Use non-default values of
70861         sourcebase and m4base.
70863 2006-08-24  Bruno Haible  <bruno@clisp.org>
70865         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70866         HTML structure.
70868 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70870         * modules/openat (Depends-on): Add lchown.
70872 2006-08-23  Bruno Haible  <bruno@clisp.org>
70874         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70875         of gl_LOCK_EARLY instead of gl_LOCK.
70877 2006-08-23  Bruno Haible  <bruno@clisp.org>
70879         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70880         on OSF/1 to no.
70881         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70883 2006-08-23  Bruno Haible  <bruno@clisp.org>
70885         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70886         as unusable.
70888         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70889         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70890         (gl_LOCK): New macro.
70892 2006-08-22  Simon Josefsson  <jas@extundo.com>
70894         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70895         to md5 module.
70897 2006-08-22  Simon Josefsson  <jas@extundo.com>
70899         * MODULES.html.sh: Add "Support for maintaining and release
70900         projects".
70902         * build-aux/gnupload: New file, from coreutils.
70904 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70906         Avoid the need for AC_LIBSOURCES in m4 macros.
70907         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70908         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70909         * modules/check-version (EXTRA_DIST): Add check-version.h.
70910         * modules/crc (EXTRA_DIST): Add crc.h.
70911         * modules/des (EXTRA_DIST): Add des.h.
70912         * modules/gc (EXTRA_DIST): Add gc.h.
70913         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70914         * modules/getline (EXTRA_DIST): Add getline.h.
70915         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70916         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70917         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70918         * modules/md2 (EXTRA_DIST): Add md2.h.
70919         * modules/md4 (EXTRA_DIST): Add md4.h.
70920         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70921         * modules/read-file (EXTRA_DIST): Add read-file.h.
70922         * modules/readline (EXTRA_DIST): Add readline.h.
70923         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70924         rijndael-api-fst.h.
70926 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70928         * m4/rijndael.m4 (gl_ARCFOUR):
70929         * m4/arctwo.m4 (gl_ARCTWO):
70930         * m4/check-version.m4 (gl_CHECK_VERSION):
70931         * m4/crc.m4 (gl_CRC):
70932         * m4/des.m4 (gl_DES):
70933         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70934         * m4/gc.m4 (gl_GC):
70935         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70936         * m4/getline.m4 (gl_FUNC_GETLINE):
70937         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70938         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70939         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70940         * m4/md2.m4 (gl_MD2):
70941         * m4/md4.m4 (gl_MD4):
70942         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70943         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70944         * m4/readline.m4 (gl_FUNC_READLINE):
70945         * m4/rijndael.m4 (gl_RIJNDAEL):
70946         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70947         to get the necessary .h files and whatnot.
70949 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70951         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70952         gnulib rather than the other way around.
70953         * config/srclistvars.sh (COREUTILS): Remove.
70955 2006-08-22  Jim Meyering  <jim@meyering.net>
70957         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70959         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70961 2006-08-22  Eric Blake  <ebb9@byu.net>
70963         * modules/regexprops-generic: New file.
70964         * MODULES.html.sh (Support for building documentation): List it.
70966 2006-08-22  Eric Blake  <ebb9@byu.net>
70968         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70969         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70970         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70971         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70973 2006-08-22  Bruno Haible  <bruno@clisp.org>
70975         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70976         and lib_LTLIBRARIES like the other lib_* variables.
70978 2006-08-22  Bruno Haible  <bruno@clisp.org>
70980         * build-aux/x-to-1.in: New file, from GNU gettext.
70982 2006-08-22  Bruno Haible  <bruno@clisp.org>
70984         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70985         <utmpx.h> exists.
70987 2006-08-22  Bruno Haible  <bruno@clisp.org>
70989         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70990         <utmpx.h> exists.
70992 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70994         BeOS portability.
70995         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70996         exist.
70997         Problem reported by Bruno Haible.
70999 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71001         Avoid the need for AC_LIBSOURCES in m4 macros.
71002         * modules/acl (EXTRA_DIST): Add acl.h.
71003         * modules/argmatch (Files): Add m4/argmatch.m4.
71004         (configure.ac): Add gl_ARGMATCH.
71005         (EXTRA_DIST): Renamed from lib_SOURCES, for
71006         consistency with the other modules.  Remove argmatch.c.
71007         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71008         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71009         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71010         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71011         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71012         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71013         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71014         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71015         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71016         * modules/closeout (EXTRA_DIST): Add closeout.h.
71017         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71018         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71019         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71020         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71021         dirname.h; remove basename.c and stripslash.c.
71022         * modules/exclude (EXTRA_DIST): Add exclude.h.
71023         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71024         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71025         * modules/file-type (EXTRA_DIST): Add file-type.h.
71026         * modules/filemode (EXTRA_DIST): Add filemode.h.
71027         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71028         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71029         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71030         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71031         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71032         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71033         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71034         * modules/getdate (EXTRA_DIST): Add getdate.c.
71035         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71036         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71037         * modules/getpass (EXTRA_DIST): Add getpass.h.
71038         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71039         * modules/group-member (EXTRA_DIST): Add group-member.h.
71040         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71041         * modules/hash (EXTRA_DIST): Add hash.h.
71042         * modules/human (EXTRA_DIST): Add human.h.
71043         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71044         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71045         * modules/lchown (EXTRA_DIST): Add lchown.h.
71046         * modules/long-options (EXTRA_DIST): Add long-options.h.
71047         * modules/lstat (EXTRA_DIST): Add lstat.h.
71048         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71049         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71050         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71051         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71052         * modules/memxor (EXTRA_DIST): Add memxor.h.
71053         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71054         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71055         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71056         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71057         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71058         * modules/physmem (EXTRA_DIST): Add physmem.h.
71059         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71060         * modules/posixver (EXTRA_DIST): Add posixver.h.
71061         * modules/quote (EXTRA_DIST): Add quote.h.
71062         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71063         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71064         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71065         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71066         regex_internal.h regexec.c.
71067         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71068         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71069         * modules/same (EXTRA_DIST): Add same.h.
71070         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71071         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71072         * modules/savedir (EXTRA_DIST): Add savedir.h.
71073         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71074         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71075         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71076         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71077         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71078         * modules/strdup (EXTRA_DIST): Add strdup.h.
71079         * modules/strftime (EXTRA_DIST): Add strftime.h.
71080         * modules/strndup (EXTRA_DIST): Add strndup.h.
71081         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71082         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71083         * modules/time_r (EXTRA_DIST): Add time_r.h.
71084         * modules/timespec (EXTRA_DIST): Add timespec.h.
71085         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71086         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71087         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71088         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71089         * modules/userspec (EXTRA_DIST): Add userspec.h.
71090         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71091         * modules/utimens (EXTRA_DIST): Add utimens.h.
71092         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71093         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71094         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71095         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71096         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71097         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71098         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71099         * modules/yesno (EXTRA_DIST): Add yesno.h.
71101 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71103         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71105         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71106         * m4/dev-ino.m4, same-inode.m4: Remove.
71108         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71109         * m4/acl.m4 (AC_FUNC_ACL):
71110         * m4/backupfile.m4 (gl_BACKUPFILE):
71111         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71112         * m4/canon-host.m4 (gl_CANON_HOST):
71113         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71114         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71115         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71116         * m4/cloexec.m4 (gl_CLOEXEC):
71117         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71118         * m4/closeout.m4 (gl_CLOSEOUT):
71119         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71120         * m4/dirname.m4 (gl_DIRNAME):
71121         * m4/exclude.m4 (gl_EXCLUDE):
71122         * m4/exitfail.m4 (gl_EXITFAIL):
71123         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71124         * m4/file-type.m4 (gl_FILE_TYPE):
71125         * m4/filemode.m4 (gl_FILEMODE):
71126         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71127         * m4/fpending.m4 (gl_FUNC_FPENDING):
71128         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71129         * m4/fts.m4 (gl_FUNC_FTS):
71130         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71131         * m4/getdate.m4 (gl_GETDATE):
71132         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71133         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71134         * m4/getpass.m4 (gl_FUNC_GETPASS):
71135         * m4/gettime.m4 (gl_GETTIME):
71136         * m4/getugroups.m4 (gl_GETUGROUPS):
71137         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71138         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71139         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71140         * m4/hash.m4 (gl_HASH):
71141         * m4/idcache.m4 (gl_IDCACHE):
71142         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71143         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71144         * m4/long-options.m4 (gl_LONG_OPTIONS):
71145         * m4/lstat.m4 (gl_FUNC_LSTAT):
71146         * m4/md5.m4 (gl_MD5):
71147         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71148         * m4/memcoll.m4 (gl_MEMCOLL):
71149         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71150         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71151         * m4/memxor.m4 (gl_MEMXOR):
71152         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71153         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71154         * m4/modechange.m4 (gl_MODECHANGE):
71155         * m4/mountlist.m4 (gl_MOUNTLIST):
71156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71157         * m4/openat.m4 (gl_FUNC_OPENAT):
71158         * m4/pathmax.m4 (gl_PATHMAX):
71159         * m4/physmem.m4 (gl_PHYSMEM):
71160         * m4/posixtm.m4 (gl_POSIXTM):
71161         * m4/posixver.m4 (gl_POSIXVER):
71162         * m4/quote.m4 (gl_QUOTE):
71163         * m4/quotearg.m4 (gl_QUOTEARG):
71164         * m4/readtokens.m4 (gl_READTOKENS):
71165         * m4/readutmp.m4 (gl_READUTMP):
71166         * m4/regex.m4 (gl_REGEX):
71167         * m4/safe-read.m4 (gl_SAFE_READ):
71168         * m4/safe-write.m4 (gl_SAFE_WRITE):
71169         * m4/same.m4 (gl_SAME):
71170         * m4/save-cwd.m4 (gl_SAVE_CWD):
71171         * m4/savedir.m4 (gl_SAVEDIR):
71172         * m4/settime.m4 (gl_SETTIME):
71173         * m4/sha1.m4 (gl_SHA1):
71174         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71175         * m4/stat-macros.m4 (gl_STAT_MACROS):
71176         * m4/stat-time.m4 (gl_STAT_TIME):
71177         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71178         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71179         * m4/strdup.m4 (gl_FUNC_STRDUP):
71180         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71181         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71182         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71183         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71184         * m4/time_r.m4 (gl_TIME_R):
71185         * m4/timespec.m4 (gl_TIMESPEC):
71186         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71187         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71188         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71189         * m4/userspec.m4 (gl_USERSPEC):
71190         * m4/utimecmp.m4 (gl_UTIMECMP):
71191         * m4/utimens.m4 (gl_UTIMENS):
71192         * m4/xalloc.m4 (gl_XALLOC):
71193         * m4/xgetcwd.m4 (gl_XGETCWD):
71194         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71195         * m4/xreadlink.m4 (gl_XREADLINK):
71196         * m4/xstrtod.m4 (gl_XSTRTOD):
71197         * m4/yesno.m4 (gl_YESNO):
71198         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71199         to get the necessary .h files and whatnot.
71201 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71202             Bruno Haible  <bruno@clisp.org>
71204         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71205         /bin/sh understanding of '!' conditional negation.
71207 2006-08-21  Jim Meyering  <jim@meyering.net>
71209         * modules/openat (Depends-on): Really alphabetize.
71211         * modules/acl (Depends-on): Add error and quote.
71213         * check-module (find_included_lib_files): Add at-func.c to the
71214         ok-to-include-more-than-once white list.
71216         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71218 2006-08-21  Bruno Haible  <bruno@clisp.org>
71220         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71221         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71222         Reported by Martin Lambers <marlam@marlam.de>.
71224 2006-08-21  Bruno Haible  <bruno@clisp.org>
71226         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71227         specify an installation location, don't emit a noinst_LIBRARIES or
71228         noinst_LTLIBRARIES assignment.
71230 2006-08-21  Bruno Haible  <bruno@clisp.org>
71232         BeOS portability.
71233         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71234         BeOS has mbrtowc() but no <wctype.h>.
71236 2006-08-21  Bruno Haible  <bruno@clisp.org>
71238         BeOS portability.
71239         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71240         exist.
71242 2006-08-21  Bruno Haible  <bruno@clisp.org>
71244         BeOS portability.
71245         * lib/mbchar.h: Include <wctype.h> only if it exists.
71247 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71249         Remove files that are no longer needed by their respective modules.
71250         * m4/obstack.m4: Remove.
71251         * m4/strerror_r.m4: Remove.
71252         * m4/uint32_t.m4: Remove.
71253         * m4/uintptr_t.m4: Remove.
71254         * m4/ullong_max.m4: Remove.
71255         * m4/xstrtoimax.m4: Remove.
71256         * m4/xstrtoumax.m4: Remove.
71258         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71259         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71260         dependencies now capture this.
71262         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71263         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71264         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71265         * m4/human.m4 (gl_HUMAN): Likewise.
71266         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71267         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71269         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71271         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71272         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71273         stdint.
71274         * m4/human.m4 (gl_HUMAN): Likewise.
71275         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71276         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71277         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71278         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71279         * m4/xstrtol (gl_XSTRTOL): Likewise.
71281         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71282         AC_TYPE_LONG_LONG_INT.
71283         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71284         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71285         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71286         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71288         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71289         on stdbool.
71291         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71292         (gl_PREREQ_XSTRTOUL): Remove.
71294         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71296         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71297         mode.
71299 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71301         Add and change modules to make it easier for coreutils to use
71302         gnulib-tool.
71303         * modules/backupfile (Files): Remove m4/d-ino.m4.
71304         (Depends-on): Add d-ino.
71305         * modules/cycle-check (Depends-on): Add stdint.
71306         (lib_SOURCES): Add cycle-check.h.
71307         * modules/d-ino: New module.
71308         * modules/d-type: New module.
71309         * modules/error (Files): Remove m4/strerror_r.m4.
71310         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71311         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71312         m4/inttypes_h.m4, m4/uintmax_t.m4.
71313         (Depends-on): Add stdint.
71314         (lib_SOURCES): Add fsusage.h.
71315         * modules/getcwd (Files): Remove d-ino.m4.
71316         (Depends-on): Add d-ino.
71317         * modules/getndelim2 (Depends-on): Add stdint.
71318         * modules/glob (Files): Remove m4/d-type.m4.
71319         (Depends-on): Add d-type.
71320         * modules/host-os: New module.
71321         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71322         m4/inttypes_h.m4, m4/uintmax_t.m4.
71323         * Depends-on: Add stdint.
71324         (lib_SOURCES): Add human.h.
71325         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71326         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71327         m4/uintmax_t.m4, m4/ulonglong.m4.
71328         (Depends-on): Add stdint.
71329         (EXTRA_DIST): Add inttostr.h.
71330         * modules/lchmod: New module.
71331         * modules/link-follow: New module.
71332         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71333         (Depends-on): Add lchmod.
71334         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71335         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71336         (Depends-on): Add stdint.
71337         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71338         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71339         (Depends-on): Add stdint.
71340         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71341         * modules/perl: New module.
71342         * modules/regex (Depends-on): Add stdint.
71343         * modules/rmdir-errno: New module.
71344         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71345         m4/intmax_t.m4.
71346         (Depends-on): Add stdint.
71347         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71348         m4/uintmax_t.m4.
71349         (Depends-on): Add stdint.
71350         * modules/unlink-busy: New module.
71351         * modules/utimecmp (Depends-on): Add stdint.
71352         * modules/uptime: New module.
71353         * modules/winsz-ioctl: New module.
71354         * modules/winsz-termios: New module.
71355         * modules/xnanosleep (Depends-on): Add nanosleep.
71356         * modules/ullong_max: Remove.
71357         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71358         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71359         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71360         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71361         (Depends-on): Add inttypes.
71362         (lib_SOURCES): Add xstrtol.h.
71363         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71364         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71365         * MODULES.html.sh: Move 'assert' into the assert section.
71366         Move 'dummy' into the linking section.
71367         Remove ullong_max.
71368         Add section for compatibility checks for POSIX:2001 functions,
71369         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71370         winsz-ioctl, and winsz-termios into it.
71371         Add lchmod.
71372         Add top-level Misc section and put host-os, perl, and uptime
71373         into it.
71375 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71377         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71378         now assume the stdint module.  Do not include inttypes.h.
71379         * lib/fsusage.h: Likewise.
71380         * lib/getndelim2.c: Likewise.
71381         * lib/human.h: Likewise.
71382         * lib/inttostr.h: Likewise.
71383         * lib/obstack.c: Likewise.
71384         * lib/regex_internal.h: Likewise.
71385         * lib/tempname.c: Likewise.
71386         * lib/utimecmp.c: Likewise.
71387         * lib/xstrtol.h: Likewise.
71389         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71391         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71392         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71393         * lib/xtime.h: Likewise.
71395 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71397         * modules/openat (Files): Add lib/fchmodat.c.
71398         Fixes problem reported by Jay Youngman.
71400 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71402         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71403         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71405 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71406             Bruno Haible  <bruno@clisp.org>
71408         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71409         and is a script that invokes bison. Tighten the code. Add comments.
71411 2006-08-18  Jim Meyering  <jim@meyering.net>
71413         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71414         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71415         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71416         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71418 2006-08-18  Bruno Haible  <bruno@clisp.org>
71420         * modules/bison-i18n: New file.
71421         * MODULES.html.sh (Internationalization functions): Add it.
71423 2006-08-18  Bruno Haible  <bruno@clisp.org>
71425         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71426         sys/statvfs.h. When getmntinfo was found, check its declaration and
71427         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71429 2006-08-18  Bruno Haible  <bruno@clisp.org>
71431         * m4/bison-i18n.m4: New file, from bison.
71433 2006-08-18  Bruno Haible  <bruno@clisp.org>
71435         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71436         (ME_DUMMY): Treat "kernfs" as a dummy.
71437         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71439 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71441         Update from coreutils.
71443         2006-08-15  Jim Meyering  <jim@meyering.net>
71445         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71447         2006-01-17  Jim Meyering  <jim@meyering.net>
71449         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71451         2006-01-11  Jim Meyering  <jim@meyering.net>
71453         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71454         Check for the lchmod function.
71456 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71458         Update from coreutils.
71460         * lib/__fpending.h: Add copyright notice.
71461         * lib/fprintftime.h: Likewise.
71462         * lib/savedir.c: Use (C) in copyright notice.
71463         * lib/savedir.h: Likewise.
71465         2006-08-15  Jim Meyering  <jim@meyering.net>
71467         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71468         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71469         in support of the EXPECTED_ERRNO macro.
71470         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71471         definitions.  Instead, define the appropriate symbols and include
71472         "at-func.c".
71473         * lib/mkdirat.c (mkdirat): Likewise.
71474         * lib/fchmodat.c (fchmodat): Likewise.
71475         (ENOSYS): Remove definition.
71476         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71477         it.  Don't include "unistd--.h" -- it wasn't ever used.
71479         2006-01-17  Jim Meyering  <jim@meyering.net>
71481         Rewrite fts.c not to change the current working directory,
71482         by using openat, fstatat, fdopendir, etc..
71484         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71485         (HAVE_OPENAT_SUPPORT): Define.
71486         [_LIBC] (fchdir): Don't undef or define; no longer used.
71487         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71488         Now, this `function' always succeeds, and consumes its file descriptor
71489         parameter -- so callers must not close such FDs.  Update callers.
71490         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71491         (diropen): Add parameter, SP.  Adjust all callers.
71492         Implement using diropen_fd, rather than open.
71493         (fts_open): Initialize new member, fts_cwd_fd.
71494         Remove fts_rft-setting code.
71495         (fts_close): Close fts_cwd_fd, if necessary.
71496         (__opendir2): Define in terms of opendir or opendirat,
71497         depending on whether the FST_NOCHDIR flag is set.
71498         (fts_build): Since fts_safe_changedir consumes its FD, and since
71499         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71500         and close the dup'd file descriptor upon failure.
71501         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71502         (fts_safe_changedir): Tweak semantics to reflect that this function
71503         now calls cwd_advance_fd and hence consumes its FD argument.
71504         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71505         [struct FTS] (fts_rft): Remove now-unused member.
71506         [struct FTS] (fts_cycle.state): Improve comment.
71508         * lib/openat.c (openat_needs_fchdir): New function.
71509         * lib/openat.h (openat_needs_fchdir): Declare it.
71511 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71513         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71514         Problem and fix reported by Pádraig Brady in
71515         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71517 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71519         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71521 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71523         * lib/memcoll.c (memcoll): Optimize for the common case where the
71524         arguments are bytewise equal.
71526 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71528         * doc/regexprops-generic.texi: Add a copyright notice.
71530 2006-08-15  Bruno Haible  <bruno@clisp.org>
71532         * modules/tmpdir (License): Change to LGPL.
71534 2006-08-15  Bruno Haible  <bruno@clisp.org>
71536         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71537         module.
71539 2006-08-14  Simon Josefsson  <jas@extundo.com>
71541         * config/srclist.txt: Add gnupload.
71543 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71545         Change copyright notice from LGPL 2 to GPL 2, since that's the
71546         standard form used in the gnulib repository.
71547         * tests/test-lock.c: Likewise.
71548         * tests/test-stdint.c: Likewise.
71549         * tests/test-tls.c: Likewise.
71551         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71552         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71553         Add copyright notice.
71555         * check-module: Add copyright notice.  Output a copyright
71556         notice if "--version" is specified.
71557         * modules/COPYING: New file.
71558         * tests/test-getaddrinfo.c: Add copyright notice.
71559         * tests/test-verify.c: Likewise.
71561 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71563         Change copyright notice from LGPL 2 to GPL 2, since that's the
71564         standard form used in the gnulib repository.
71565         * lib/lock.c: LGPL -> GPL.
71566         * lib/lock.h: Likewise.
71567         * lib/strnlen1.c: Likewise.
71568         * lib/strnlen1.h: Likewise.
71569         * lib/tls.c: Likewise.
71570         * lib/tls.h: Likewise.
71571         * lib/tmpdir.c: Likewise.
71573         * lib/TODO: Remove; this belongs only in coreutils.
71575 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71577         Add copyright notices to long-enough files that lack them, since
71578         otherwise the files aren't clearly free.  Use the same notice that
71579         getdate.texi already uses.
71580         * doc/alloca-opt.texi: Add copyright notice.
71581         * doc/alloca.texi: Likewise.
71582         * doc/ctime.texi: Likewise.
71583         * doc/functions.texi: Likewise.
71584         * doc/gcd.texi: Likewise.
71585         * doc/gnulib-tool.texi: Likewise.
71586         * doc/inet_ntoa.texi: Likewise.
71587         * doc/visibility.texi: Likewise.
71589         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71590         * doc/quote.texi: Add copyright notice.
71592         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71593         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71594         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71595         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71596         is now obsolete, and give a pointer to the Sun list.
71597         Add copyright notice.
71599 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71601         * config/srclistvars.sh: Add copyright notice.
71603 2006-08-14  Eric Blake  <ebb9@byu.net>
71605         Import the following change from libc:
71607         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71609         Upstream bug 2997.
71610         * lib/misc/error.c: Add space between program name and message if file
71611         name is missing.
71613 2006-08-12  Karl Berry  <karl@gnu.org>
71615         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71616         remove, these originate in gnulib now.
71618 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71620         * doc/Makefile (standards.info standards.html standards.dvi):
71621         Also depend on make-stds.texi.
71623 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71625         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71626         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71628         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71629         in wchar_t.  Problem reported by Eric Blake.
71631         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71632         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71633         Also, help the compiler to keep LEN in a register.
71635 2006-08-11  Eric Blake  <ebb9@byu.net>
71637         * users.txt: Sort.  Add tar.
71639 2006-08-11  Bruno Haible  <bruno@clisp.org>
71641         * users.txt: New file.
71643 2006-08-11  Bruno Haible  <bruno@clisp.org>
71645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71646         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71648 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71650         * modules/snprintf (Depends-on): Remove minmax.
71651         (Maintainer): Add self and Bruno.
71653 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71655         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71656         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71657         (EOVERFLOW): Define if the system does not.
71658         Do not include "minmax.h"; it wasn't used.
71659         (snprintf): Don't assume size_t promotes to an unsigned type.
71660         Fix bug when generated string was too long for the buffer: the
71661         buffer's contents are supposed to be the initial prefix of the
71662         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71663         exceeds INT_MAX; do the check ourselves.
71665         Import the following changes from libc:
71667         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71669         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71670         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71671         set wc to the byte which couldn't be converted.
71672         (re_string_reconstruct): Don't clear valid_raw_len before calling
71673         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71674         tip_context using re_string_context_at.
71676         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71678         * lib/posix/regex.h: g++ still cannot handled [restrict].
71680         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71682         * lib/posix/regex.h: Remove special handling for VMS.
71684 2006-08-10  Jim Meyering  <jim@meyering.net>
71686         * modules/same-inode: New module.
71687         * modules/dev-ino: New module.
71688         * modules/cycle-check: Depend on these modules, rather than simply
71689         including their .h files.
71690         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71691         required via m4/cycle-check.m4.
71692         * modules/same: Depend on new same-inode module, rather than
71693         including same-inode.h.
71694         * modules/chdir-safer: New file.
71696         * modules/chown (Depends-on): Add stat-macros.
71698 2006-08-10  Jim Meyering  <jim@meyering.net>
71700         * m4/cycle-check.m4: New file.
71701         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71702         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71704 2006-08-10  Eric Blake  <ebb9@byu.net>
71706         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71707         in from original proposal.
71709 2006-08-10  Eric Blake  <ebb9@byu.net>
71710         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71712         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71713         namespace.
71715 2006-08-10  Bruno Haible  <bruno@clisp.org>
71717         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71718         as well.
71720 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71722         Sync from coreutils.
71724         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71726         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71727         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71729 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71731         * modules/restrict: Remove; no longer needed now that we assume
71732         Autoconf 2.59 or later.
71733         * MODULES.html.sh: Remove 'restrict'.
71734         * modules/argp (Depends-on): Remove 'restrict'.
71735         * modules/base64 (Depends-on): Likewise.
71736         * modules/gc (Depends-on): Likewise.
71737         * modules/getaddrinfo (Depends-on): Likewise.
71738         * modules/glob (Depends-on): Likewise.
71739         * modules/inet_ntop (Depends-on): Likewise.
71740         * modules/inet_pton (Depends-on): Likewise.
71741         * modules/memxor (Depends-on): Likewise.
71742         * modules/regex (Depends-on): Likewise.
71743         * modules/strtok_r (Depends-on): Likewise.
71744         * modules/time_r (Depends-on): Likewise.
71746 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71748         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71749         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71750         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71751         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71752         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71753         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71754         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71755         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71757         Merge from coreutils.
71758         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71759         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71760         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71761         * m4/time_r.m4 (gl_TIME_R): Likewise.
71763 2006-08-09  Karl Berry  <karl@gnu.org>
71765         * config/srclist.txt: no more gettext-tools, per Bruno.
71767 2006-08-08  Eric Blake  <ebb9@byu.net>
71769         * modules/verror: New module.
71770         * MODULES.html.sh: Document it.
71772 2006-08-08  Eric Blake  <ebb9@byu.net>
71774         * lib/verror.h, lib/verror.c: New files.
71776 2006-08-08  Eric Blake  <ebb9@byu.net>
71778         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71779         verror_at_line output complies with GNU Coding Standards even when
71780         file is NULL.
71782 2006-08-07  Bruno Haible  <bruno@clisp.org>
71784         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71785         versions of AIX.
71786         Reported by Ralf Wildenhues.
71788 2006-08-07  Bruno Haible  <bruno@clisp.org>
71790         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71791         in an AC_DEFUN. Needed so that the autoconf snippets can use
71792         AC_REQUIRE.
71794 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71796         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71797         Initialize pkgdata_DATA.
71798         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71799         overriding it.
71801 2006-08-06  Eric Blake  <ebb9@byu.net>
71803         * lib/error.h: Fold in some upstream changes from glibc.
71804         * lib/error.c: Likewise.
71806 2006-08-04  Bruno Haible  <bruno@clisp.org>
71808         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71809         Make the mostlyclean-local rule depend on mostlyclean-generic.
71810         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71812 2006-07-31  Bruno Haible  <bruno@clisp.org>
71814         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71815         <stdlib.h>, <string.h>.
71817 2006-07-30  Bruno Haible  <bruno@clisp.org>
71819         * modules/readlink (License): Change to LGPL.
71821 2006-07-30  Bruno Haible  <bruno@clisp.org>
71823         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71824         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71825         set PKGDATADIR to point to it.
71827 2006-07-30  Bruno Haible  <bruno@clisp.org>
71829         * modules/csharpexec (configure.ac): Comment out macro invocation.
71830         * modules/javaexec (configure.ac): Likewise.
71831         * modules/javacomp-script (configure.ac): Likewise.
71833         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71835 2006-07-30  Bruno Haible  <bruno@clisp.org>
71837         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71838         linked-list.
71840 2006-07-30  Bruno Haible  <bruno@clisp.org>
71842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71844 2006-07-30  Bruno Haible  <bruno@clisp.org>
71846         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71847         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71848         get removed.
71850 2006-07-29  Bruno Haible  <bruno@clisp.org>
71852         Make it possible for gnulib-tool to work with locally modified or
71853         augmented gnulib repositories.
71854         * gnulib-tool (func_usage): Document --local-dir option.
71855         (local_gnulib_dir): New variable.
71856         Handle --local-dir option.
71857         (func_lookup_file): New function.
71858         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71859         (func_get_description, func_get_filelist, func_get_description,
71860         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71861         func_get_automake_snippet, func_get_include_directive,
71862         func_get_license, func_get_maintainer): Use func_lookup_file.
71863         (func_import, func_create_testdir): Use func_lookup_file.
71865 2006-07-29  Bruno Haible  <bruno@clisp.org>
71867         * modules/setenv (Depends-on): Add unistd.
71869 2006-07-29  Bruno Haible  <bruno@clisp.org>
71871         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71873 2006-07-29  Bruno Haible  <bruno@clisp.org>
71875         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71877 2006-07-29  Bruno Haible  <bruno@clisp.org>
71879         * gnulib-tool (import, update): If there is no Makefile.am, look at
71880         aclocal.m4, instead of bailing out.
71882 2006-07-29  Bruno Haible  <bruno@clisp.org>
71884         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71885         Categorize the options by when they are useful.
71887 2006-07-29  Bruno Haible  <bruno@clisp.org>
71889         * gnulib-tool (func_usage): Document option --no-libtool.
71890         Handle option --no-libtool.
71891         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71892         for changed semantics of $libtool variable.
71893         (func_import): Likewise. If libtool is not used, show this through
71894         an option --no-libtool.
71895         (func_create_testdir): Update.
71897 2006-07-29  Bruno Haible  <bruno@clisp.org>
71899         * gnulib-tool (func_import): Extend error message about missing
71900         --doc-base.
71902 2006-07-29  Bruno Haible  <bruno@clisp.org>
71904         * gnulib-tool (func_import): Don't create the $docbase directory if
71905         there is no file to store there.
71907 2006-07-29  Bruno Haible  <bruno@clisp.org>
71909         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71910         relevant, look for configure.ac there, not in the current directory.
71911         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71913 2006-07-29  Bruno Haible  <bruno@clisp.org>
71915         * gnulib-tool (SORT): New variable.
71916         (func_usage): Undocument --assume-autoconf option.
71917         Remove --assume-autoconf option handling.
71918         (autoconf_minversion): Determine from the contents of configure.ac.
71919         (func_import): Remove autoconf_minversion handling.
71920         Suggested by Eric Blake.
71922 2006-07-29  Bruno Haible  <bruno@clisp.org>
71924         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71926 2006-07-29  Bruno Haible  <bruno@clisp.org>
71928         * config/srclist.txt (*setenv.[ch]): Remove rules.
71930 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71932         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71934 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71936         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71937         arpa/inet.h.
71939 2006-07-28  Simon Josefsson  <jas@extundo.com>
71941         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71942         * modules/inet_pton (Depends-on): Likewise.
71944 2006-07-28  Simon Josefsson  <jas@extundo.com>
71946         * m4/netinet_in_h.m4: New file.
71948 2006-07-28  Simon Josefsson  <jas@extundo.com>
71950         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71951         #include's.
71953 2006-07-28  Simon Josefsson  <jas@extundo.com>
71955         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71956         #include's.
71958 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71960         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71961         setgid on directories only if they set these bits.
71962         * lib/modechange.h: Remove obsolete comment about masks.
71964 2006-07-28  Eric Blake  <ebb9@byu.net>
71966         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71967         macro expansion.
71969 2006-07-28  Bruno Haible  <bruno@clisp.org>
71971         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71973 2006-07-28  Bruno Haible  <bruno@clisp.org>
71975         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71977 2006-07-28  Bruno Haible  <bruno@clisp.org>
71979         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71980         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71981         Define fallbacks.
71982         Avoids link error on FreeBSD 4.x.
71983         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71985         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71986         encoding.
71987         * lib/mbswidth.c (iswcntrl): Likewise.
71989 2006-07-27  Bruno Haible  <bruno@clisp.org>
71991         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71992         test.
71994 2006-07-27  Bruno Haible  <bruno@clisp.org>
71996         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71997         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71998         defined.
72000 2006-07-26  Eric Blake  <ebb9@byu.net>
72002         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72004 2006-07-26  Eric Blake  <ebb9@byu.net>
72006         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72007         like mingw that lack mkstemp.
72008         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72009         avoid compilation warning on mingw.
72011 2006-07-26  Bruno Haible  <bruno@clisp.org>
72013         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72014         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72015         INT_FAST*_MIN, INTPTR_MIN.
72017 2006-07-25  Bruno Haible  <bruno@clisp.org>
72019         * modules/version-etc (Depends-on): Add stdarg.
72021 2006-07-25  Bruno Haible  <bruno@clisp.org>
72023         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72024         complex commands.
72026 2006-07-25  Bruno Haible  <bruno@clisp.org>
72028         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72029         defined in <stdarg.h> or config.h.
72031 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72033         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72034         (gl_STDIO_SAFER): Remove.
72036 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72038         * MODULES.html.sh (File stream based Input/Output):
72039         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72040         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72041         * modules/fopen-safer, modules/tmpfile-safer: New files.
72042         * modules/stdio-safer: Remove.
72044 2006-07-24  Bruno Haible  <bruno@clisp.org>
72046         * modules/tmpdir: New file.
72047         * MODULES.html.sh (File system functions): Add it.
72049 2006-07-24  Bruno Haible  <bruno@clisp.org>
72051         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72052         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72054 2006-07-24  Bruno Haible  <bruno@clisp.org>
72056         * modules/clean-temp: New file.
72058 2006-07-24  Bruno Haible  <bruno@clisp.org>
72060         * m4/tmpdir.m4: New file, from GNU gettext.
72062 2006-07-24  Bruno Haible  <bruno@clisp.org>
72064         * lib/tmpdir.h: New file, from GNU gettext.
72065         * lib/tmpdir.c: New file, from GNU gettext.
72067 2006-07-24  Bruno Haible  <bruno@clisp.org>
72069         * lib/clean-temp.h: New file, from GNU gettext.
72070         * lib/clean-temp.c: New file, from GNU gettext.
72072 2006-07-23  Eric Blake  <ebb9@byu.net>
72074         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72075         (Depends-on): Add binary-io.
72077 2006-07-23  Eric Blake  <ebb9@byu.net>
72079         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72081 2006-07-23  Eric Blake  <ebb9@byu.net>
72083         * lib/tmpfile-safer.c: New file.
72084         * lib/stdio-safer.h (fopen_safer): Add prototype.
72085         * lib/stdio--.h (tmpfile): Make safer.
72087 2006-07-23  Bruno Haible  <bruno@clisp.org>
72089         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72090         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72091         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72092         gl_linked_remove_at): Use it.
72094 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72095         and Simon Josefsson <jas@extundo.com>
72097         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72099         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72101 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72103         * modules/close-stream: New file.
72104         * modules/closeout (Description): Make it clear that it exits
72105         with a diagnostic on error.
72106         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72107         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72109 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72111         * m4/close-stream.m4: New file.
72113 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72115         * lib/close-stream.c, lib/close-stream.h: New files.
72117 2006-07-22  Bruno Haible  <bruno@clisp.org>
72119         Merge from GNU gettext 0.15.
72121         2006-05-01  Bruno Haible  <bruno@clisp.org>
72123                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72125         2006-07-22  Bruno Haible  <bruno@clisp.org>
72127                 * modules/javaversion: New file.
72128                 * MODULES.html.sh (Java): Add javaversion.
72130         2006-03-12  Bruno Haible  <bruno@clisp.org>
72132                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72134         2005-12-04  Bruno Haible  <bruno@clisp.org>
72136                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72137                 (untested).
72139         2006-06-21  Bruno Haible  <bruno@clisp.org>
72141                 Avoid warnings from recent versions of mcs.
72142                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72143                 -o, -L, -r any more. Use options documented since mcs-1.0
72144                 instead. Similarly for -g.
72146         2005-12-04  Bruno Haible  <bruno@clisp.org>
72148                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72149                 .resources, not .resource.
72151         2005-07-09  Bruno Haible  <bruno@clisp.org>
72153                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72154                 add a .dll suffix.
72155                 Reported by Mark Junker <mjscod@gmx.de>.
72157         2006-07-22  Bruno Haible  <bruno@clisp.org>
72159                 * modules/gettext: Upgrade to gettext-0.15.
72160                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72161                 m4/visibility.m4.
72162                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72164 2006-07-22  Bruno Haible  <bruno@clisp.org>
72166         Merge from GNU gettext 0.15.
72168         2006-03-25  Bruno Haible  <bruno@clisp.org>
72170                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72172         2006-07-21  Bruno Haible  <bruno@clisp.org>
72174                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72175                 "1.1".
72177         2006-05-09  Bruno Haible  <bruno@clisp.org>
72179                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72180                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72181                 for the conftestver execution.
72183         2006-05-01  Bruno Haible  <bruno@clisp.org>
72185                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72186                 optional target-version argument. Verify that the compiler
72187                 groks source of the specified source-version, or add -source
72188                 option as necessary. Verify that the compiler produces
72189                 bytecode in the specified target-version, or add -target and
72190                 -source options as necessary. Make the result of the test
72191                 available as variable CONF_JAVAC. Also log error output in
72192                 config.log.
72194         2006-03-11  Bruno Haible  <bruno@clisp.org>
72196                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72198         2006-05-09  Bruno Haible  <bruno@clisp.org>
72200                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72201                 CLASSPATH_SEPARATOR to a semicolon.
72203         2006-03-12  Bruno Haible  <bruno@clisp.org>
72205                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72206                 available as variable CONF_JAVA, for subsequent autoconf
72207                 tests. Also log error output in config.log.
72209         2006-07-19  Bruno Haible  <bruno@clisp.org>
72211                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72212                 that getline works on glibc2 systems. Needed to avoid trouble
72213                 in relocatable.c.
72214                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72216         2005-12-04  Bruno Haible  <bruno@clisp.org>
72218                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72219                 launcher (untested).
72221         2005-12-04  Bruno Haible  <bruno@clisp.org>
72223                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72225         2006-07-22  Bruno Haible  <bruno@clisp.org>
72227                 * gettext.m4: Update from GNU gettext-0.15.
72228                 * nls.m4: Likewise.
72229                 * po.m4: Likewise.
72230                 * inttypes-pri.m4: Likewise.
72231                 * inttypes-h.m4: Renamed from inttypes.m4.
72232                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72234 2006-07-22  Bruno Haible  <bruno@clisp.org>
72236         Merge from GNU gettext 0.15.
72238         2005-07-05  Bruno Haible  <bruno@clisp.org>
72240                 * printf-args.c (printf_fetchargs): Work around broken
72241                 definition of wint_t on mingw.
72243         2005-02-12  Bruno Haible  <bruno@clisp.org>
72245                 * xallocsa.h: Add extern "C" for C++.
72247         2006-05-17  Bruno Haible  <bruno@clisp.org>
72249                 Cygwin portability.
72250                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72252         2006-04-30  Bruno Haible  <bruno@clisp.org>
72254                 * progreloc.c: Include <mach-o/dyld.h> if available.
72255                 (find_executable): Use _NSGetExecutablePath when possible.
72257         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72259                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72260                 function.
72262         2005-12-29  Bruno Haible  <bruno@clisp.org>
72264                 * progreloc.c (set_program_name_and_installdir): Fix
72265                 compilation error.
72267         2005-12-04  Bruno Haible  <bruno@clisp.org>
72269                 Cygwin portability.
72270                 * progreloc.c: Include <windows.h> also on Cygwin.
72271                 (find_executable): Add support for Cygwin.
72272                 (set_program_name_and_installdir): Handle also platforms with
72273                 nonempty EXEEXT.
72275         2006-07-11  Bruno Haible  <bruno@clisp.org>
72277                 * javacomp.c: Fix a comment.
72278                 Reported by Jim Meyering.
72280         2006-04-30  Bruno Haible  <bruno@clisp.org>
72282                 * javacomp.h (compile_java_class): Add source_version,
72283                 target_version arguments.
72284                 * javacomp.c: Rewritten to choose only a compiler that
72285                 respects the specified source_version and target_version.
72287         2006-06-27  Bruno Haible  <bruno@clisp.org>
72289                 Assume correct S_ISDIR macro.
72290                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72292         2006-07-22  Bruno Haible  <bruno@clisp.org>
72294                 * javaversion.h: New file, from GNU gettext.
72295                 * javaversion.c: New file, from GNU gettext.
72296                 * javaversion.java: New file, from GNU gettext.
72297                 * javaversion.class: New file, from GNU gettext.
72299         2006-05-17  Bruno Haible  <bruno@clisp.org>
72301                 Cygwin portability.
72302                 * javaexec.c (execute_java_class): Test for jview program
72303                 also on Cygwin.
72305         2006-04-09  Bruno Haible  <bruno@clisp.org>
72307                 * fatal-signal.c: Don't include string.h.
72308                 (at_fatal_signal): Use a copying loop instead of memcpy.
72310         2005-12-04  Bruno Haible  <bruno@clisp.org>
72312                 * csharpexec.c: Add support for 'clix' launcher (untested).
72313                 (execute_csharp_using_sscli): New function.
72314                 (execute_csharp_program): Call it.
72316         2006-06-21  Bruno Haible  <bruno@clisp.org>
72318                 Avoid warnings from recent versions of mcs.
72319                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72320                 -o, -L, -r any more. Use options documented since mcs-1.0
72321                 instead. Similarly for -g.
72323         2005-07-09  Bruno Haible  <bruno@clisp.org>
72325                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72326                 add a .dll suffix.
72327                 Reported by Mark Junker <mjscod@gmx.de>.
72329         2006-06-17  Bruno Haible  <bruno@clisp.org>
72331                 * config.charset: Update for NetBSD 3.0.
72333         2006-05-17  Bruno Haible  <bruno@clisp.org>
72335                 Cygwin portability.
72336                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72338         2006-05-16  Bruno Haible  <bruno@clisp.org>
72340                 * localcharset.c [CYGWIN]: Include <windows.h>.
72341                 (get_charset_aliases): For Cygwin, return the same CPxxx
72342                 aliases list as under WIN32.
72343                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72344                 the environment variables. Fall back to GetACP().
72346         2006-04-05  Bruno Haible  <bruno@clisp.org>
72348                 * config.charset: Update Juan Manuel Guerrero's address.
72350         2005-02-12  Bruno Haible  <bruno@clisp.org>
72352                 * allocsa.h: Add extern "C" for C++.
72354         2005-02-10  Bruno Haible  <bruno@clisp.org>
72356                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72357                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72359         2006-07-22  Bruno Haible  <bruno@clisp.org>
72361                 * gettext.h: Update to GNU gettext-0.15.
72363 2006-07-22  Bruno Haible  <bruno@clisp.org>
72365         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72366         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72367         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72369 2006-07-21  Eric Blake  <ebb9@byu.net>
72371         * modules/stdlib-safer: New file.
72372         * MODULES.html.sh (File stream based Input/Output): Add
72373         stdlib-safer.
72375 2006-07-21  Eric Blake  <ebb9@byu.net>
72377         * lib/stdlib-safer.h: New file from coreutils, required by
72378         stdlib--.h.
72380 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72382         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72384 2006-07-20  Bruno Haible  <bruno@clisp.org>
72386         * gnulib-tool: Recognize new option --assume-autoconf.
72387         (autoconf_minversion): New variable.
72388         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72390 2006-07-20  Bruno Haible  <bruno@clisp.org>
72392         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72394 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72396         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72397         Reindent and repaginate.
72399 2006-07-19  Derek Price  <derek@ximbiot.com>
72401         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72402         Correct grammar.
72404 2006-07-17  Bruno Haible  <bruno@clisp.org>
72406         * modules/list: New file.
72407         * modules/array-list: New file.
72408         * modules/carray-list, modules/carray-list-tests: New files.
72409         * modules/linked-list, modules/linked-list-tests: New files.
72410         * modules/avltree-list, modules/avltree-list-tests: New files.
72411         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72412         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72413         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72414         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72415         * modules/oset: New file.
72416         * modules/array-oset: New file.
72417         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72418         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72419         * tests/test-carray_list.c: New file.
72420         * tests/test-linked_list.c: New file.
72421         * tests/test-avltree_list.c: New file.
72422         * tests/test-rbtree_list.c: New file.
72423         * tests/test-linkedhash_list.c: New file.
72424         * tests/test-avltreehash_list.c: New file.
72425         * tests/test-rbtreehash_list.c: New file.
72426         * tests/test-avltree_oset.c: New file.
72427         * tests/test-rbtree_oset.c: New file.
72428         * MODULES.html.sh (Container data structures): New section.
72430 2006-07-17  Bruno Haible  <bruno@clisp.org>
72432         * m4/gl_list.m4: New file.
72434 2006-07-17  Bruno Haible  <bruno@clisp.org>
72436         * lib/gl_list.h: New file.
72437         * lib/gl_list.c: New file.
72438         * lib/gl_array_list.h: New file.
72439         * lib/gl_array_list.c: New file.
72440         * lib/gl_carray_list.h: New file.
72441         * lib/gl_carray_list.c: New file.
72442         * lib/gl_linked_list.h: New file.
72443         * lib/gl_linked_list.c: New file.
72444         * lib/gl_anylinked_list1.h: New file.
72445         * lib/gl_anylinked_list2.h: New file.
72446         * lib/gl_avltree_list.h: New file.
72447         * lib/gl_avltree_list.c: New file.
72448         * lib/gl_anyavltree_list1.h: New file.
72449         * lib/gl_anyavltree_list2.h: New file.
72450         * lib/gl_rbtree_list.h: New file.
72451         * lib/gl_rbtree_list.c: New file.
72452         * lib/gl_anyrbtree_list1.h: New file.
72453         * lib/gl_anyrbtree_list2.h: New file.
72454         * lib/gl_anytree_list1.h: New file.
72455         * lib/gl_anytree_list2.h: New file.
72456         * lib/gl_linkedhash_list.h: New file.
72457         * lib/gl_linkedhash_list.c: New file.
72458         * lib/gl_anyhash_list1.h: New file.
72459         * lib/gl_anyhash_list2.h: New file.
72460         * lib/gl_avltreehash_list.h: New file.
72461         * lib/gl_avltreehash_list.c: New file.
72462         * lib/gl_rbtreehash_list.h: New file.
72463         * lib/gl_rbtreehash_list.c: New file.
72464         * lib/gl_anytreehash_list1.h: New file.
72465         * lib/gl_anytreehash_list2.h: New file.
72467         * lib/gl_oset.h: New file.
72468         * lib/gl_oset.c: New file.
72469         * lib/gl_array_oset.h: New file.
72470         * lib/gl_array_oset.c: New file.
72471         * lib/gl_avltree_oset.h: New file.
72472         * lib/gl_avltree_oset.c: New file.
72473         * lib/gl_rbtree_oset.h: New file.
72474         * lib/gl_rbtree_oset.c: New file.
72475         * lib/gl_anytree_oset.h: New file.
72477 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72479         * m4/mkancesdirs.m4: New file.
72480         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72481         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72482         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72483         it.
72485 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72487         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72488         * lib/mkancesdirs.h: New files.
72489         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72490         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72491         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72492         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72493         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72494         callers changed.  Revamp internals significantly, by not
72495         attempting to create directories that are temporarily more
72496         permissive than the final results.  Do not attempt to use
72497         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72498         This removes some race conditions, fixes some bugs, and simplifies
72499         things.  Use new dirchownmod function to do owner and mode changes.
72500         * lib/mkdir-p.h: Likewise.
72501         * lib/modechange.c (octal_to_mode): New function.
72502         (struct mode_change): New member mentioned.
72503         (make_node_op_equals): New arg mentioned.  All callers changed.
72504         (mode_compile): Keep track of which mode bits the user has explicitly
72505         mentioned.
72506         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72507         New arg PMODE_BITS, to keep track of which mode bits the user
72508         mentioned; it treats S_ISUID and S_ISGID speciall.
72509         All callers changed.
72510         * lib/modechange.h: Likewise.
72512 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72514         * MODULES.html.sh: Add mkancestors.
72515         * modules/mkancesdirs: New module.
72516         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72517         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72518         The chdir-safer and afs files are now orphans; I'll remove them
72519         unless someone speaks up.
72520         Add lib/dirchownmod.c, lib/dirchownmod.h.
72521         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72522         Add lchown, mkancesdirs.
72523         (Maintainer): Add self.
72525 2006-07-15  Karl Berry  <karl@gnu.org>
72527         * gnulib-tool: help message wording/arrangement.
72529 2006-07-14  Simon Josefsson  <jas@extundo.com>
72531         * doc/gnulib.texi (Libtool and Windows): New section.
72533 2006-07-12  Simon Josefsson  <jas@extundo.com>
72535         * modules/gendocs (License): Fix license, approved by Karl.
72537 2006-07-12  Eric Blake  <ebb9@byu.net>
72539         * MODULES.html.sh: Add gendocs.
72541 2006-07-11  Eric Blake  <ebb9@byu.net>
72543         * modules/fdl: New module, to install doc/fdl.texi.
72544         * MODULES.html.sh: Add new section for documentation modules.
72545         * gnulib-tool: Avoid space-tab.
72546         (--doc-base): New option, to manage files from doc.
72548 2006-07-11  Eric Blake  <ebb9@byu.net>
72550         * m4/absolute-header.m4: Fix comments to match recent change.
72552 2006-07-11  Eric Blake  <ebb9@byu.net>
72554         * gnulib-tool: List --doc-base before --tests-base.
72556 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72558         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72560 2006-07-11  Bruno Haible  <bruno@clisp.org>
72562         * README: Mention where to put documentation.
72564 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72566         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72568 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72570         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72571         to stdint.m4.
72573 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72575         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72576         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72577         "no/such/file/stdint.h" when there is no such file, so that
72578         the resulting C code can be parsed by dodgy compilers.
72579         Problems reported by Bob Proulx.
72581 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72583         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72584         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72585         macros into the GNU _D_EXACT_NAMLEN.
72586         * lib/savedir.c:  Likewise.
72587         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72589 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72590         and Paul Eggert  <eggert@cs.ucla.edu>
72592         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72593         * m4/savedir.m4:
72594         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72595         macros into the GNU _D_EXACT_NAMLEN.
72597 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72600         around the absolute name, to work around a problem with the HP-UX
72601         11.23 native C compiler, reported by Bob Proulx.
72603 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72605         * doc/maintain.texi, make-stds.texi: Sync from
72606         <http://savannah.gnu.org/projects/gnustandards>.
72608 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72610         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72612 2006-07-09  Jim Meyering  <jim@meyering.net>
72614         * m4/glob.m4: Remove a doubled word in a comment.
72616 2006-07-09  Jim Meyering  <jim@meyering.net>
72618         * lib/argp-pv.c: Remove a doubled word in a comment.
72619         * lib/check-version.c (check_version): Likewise.
72620         * lib/javacomp.c (compile_java_class): Likewise.
72622 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72624         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72625         for the benefit of people using Autoconf 2.60.  If you want to
72626         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72627         (or m4/onceonly.m4, if pre-2.57) manually.
72629 2006-07-08  Jim Meyering  <jim@meyering.net>
72631         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72632         comment.
72633         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72634         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72635         comment.
72637 2006-07-08  Jim Meyering  <jim@meyering.net>
72639         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72641 2006-07-07  Simon Josefsson  <jas@extundo.com>
72643         * tests/test-crc.c: Change expected crc value, the test vector
72644         were probably computed using the old broken crc.c?
72646 2006-07-06  Simon Josefsson  <jas@extundo.com>
72648         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72649         now the canonical place for the M4 file).
72651         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72652         from the sys_socket dependency now.
72654         * modules/inet_pton (Files): Ditto.
72656         * modules/inet_ntop (Files): Ditto.
72658 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72660         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72661         not gl_PREREQ_GETUSERSHELL.
72663 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72665         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72666         with only one argument, for Autoconf 2.60.
72667         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72668         expand to nothing, so add a shell command to avoid syntax error.
72669         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72671 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72673         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72675 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72677         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72678         no longer needed.  Check for isblank decl.
72679         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72680         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72681         of existence.
72683 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72685         * lib/getloadavg.c: Use __VMS, not VMS.
72686         * lib/getopt.c: Likewise.
72687         * lib/getpagesize.h: Likewise.
72688         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72689         and probably does not work.
72691 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72693         * lib/.cppi-disable: Add wcwidth.
72694         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72695         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72696         (ISGRAPH): Remove.  All uses changed to isgraph.
72697         (FOLD) [!defined _LIBC]: Remove special case.
72698         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72699         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72700         HAVE_ISBLANK.
72701         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72702         case.
72704 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72706         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72707         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72708         brackets.  Other minor changes to suppress some compiler
72709         warnings.
72711 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72712         and Paul Eggert  <eggert@cs.ucla.edu>
72714         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72715         of invoking obsolescent AC_HEADER_DIRENT macro.
72716         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72717         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72718         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72719         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72720         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72721         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72722         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72723         * m4/readdir.m4: Remove; no longer needed.
72725 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72726         and Paul Eggert  <eggert@cs.ucla.edu>
72728         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72729         Don't worry about this obsolete case any more.
72730         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72731         directories.
72732         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72733         worry about this obsolete case any more.
72734         * lib/fts.c: Likewise.
72735         * lib/getcwd.c: Likewise.
72736         * lib/glob.h: Likewise.
72737         * lib/savedir.c: Likewise.
72739 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72741         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72742         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72743         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72744         needed.
72745         All uses removed.
72746         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72747         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72748         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72749         needed.
72750         * m4/getdate.m4 (gl_GETDATE): Likewise.
72751         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72752         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72753         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72754         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72755         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72756         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72757         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72758         needed.
72760 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72762         * lib/memcasecmp.c: Include <limits.h>.
72763         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72764         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72765         Don't assume isdigit succeeds only on '0' through '9'.
72767 2006-07-05  Eric Blake  <ebb9@byu.net>
72769         * modules/getaddrinfo (Depends-on): Add snprintf.
72771 2006-07-05  Eric Blake  <ebb9@byu.net>
72773         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72774         to avoid 'header present but could not be compiled' on cygwin.
72776 2006-07-05  Eric Blake  <ebb9@byu.net>
72778         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72779         missing from netdb.h.
72780         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72782 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72784         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72785         no longer needed.
72786         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72787         * m4/getdate.m4 (gl_GETDATE): Likewise.
72788         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72789         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72790         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72791         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72792         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72794 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72796         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72797         All uses of is_space replaced by isspace.
72798         * lib/exit.h: Don't talk about STDC_HEADERS.
72799         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72800         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72801         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72802         replaced by isprint etc.
72803         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72804         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72805         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72806         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72807         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72808         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72810 2006-07-05  Bruno Haible  <bruno@clisp.org>
72812         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72813         the function exists, before testing against AIX.
72814         Reported by Martin Lambers <marlam@marlam.de>.
72816 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72818         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72819         From Mark D. Baushke.
72821 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72823         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72824         to the absolute name, not just one, to bypass Sun C 5.8's
72825         "warning: #include of /usr/include/... may be non-portable".
72827 2006-07-04  Eric Blake  <ebb9@byu.net>
72829         * modules/dirname-tests: New test module.
72830         * tests/test-dirname.c: New file, replacing dirname.c
72831         TEST_DIRNAME section that was recently deleted.
72833 2006-07-04  Bruno Haible  <bruno@clisp.org>
72835         Assume ANSI C header files and <ctype.h> functions.
72836         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72837         (mbsnwidth): Use isprint, iscntrl instead.
72839 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72841         Merge from coreutils.
72842         * MODULES.html.sh: Add xstrtold.
72843         * modules/xstrtold: New file.
72844         * modules/cycle-check (Files): Add lib/same-inode.h.
72845         * modules/dirname (Files): Add m4/double-slash-root.m4.
72846         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72847         * modules/mkdir-p (Files): Add lib/same-inode.h.
72848         * modules/same (Files): Add lib/same-inode.h.
72850 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72852         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72853         This is to keep the terminology clean; POSIX talks about
72854         "absolute pathnames", not "full pathnames", but the GNU
72855         Coding Standards say to use "path" for something else;
72856         so use "absolute" to keep both sides happy.
72857         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72858         Set gl_absolute_header, not gl_full_header_path.
72859         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72860         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72861         All uses changed.
72863         Merge from coreutils.
72865         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72867         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72868         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72869         want to require the building of c-strtod.o.
72870         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72871         needs -lm directly.
72872         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72874         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72876         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72877         --as-needed option if available.  Problem reported by Albert Chin in
72878         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72879         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72880         cc merely issues a bunch of annoying warnings for --as-needed
72881         (this problem was reported by Bob Proulx).  Also, try linking with
72882         -lm to detect a bug in binutils 2.16 (this problem was reported
72883         by Ralf Wildenhues).
72885         2006-06-18  Jim Meyering  <jim@meyering.net>
72887         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72888         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72889         macro.
72890         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72891         also check for glibc-2.4's abort-inducing bug.
72893         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72894         Low-probability clean-up should be to use rmdir to get rid of
72895         the just-created directory, not unlink.
72897         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72898         configure fail, and request a bug report to inform us about it.
72899         Add a comment that, barring reports to the contrary, in 2007 we'll
72900         assume ftruncate is universally available.
72902         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72904         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72906         2006-03-12  Jim Meyering  <jim@meyering.net>
72908         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72909         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72910         * m4/same.m4 (gl_SAME): Likewise.
72911         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72913         2006-03-11  Eric Blake  <ebb9@byu.net>
72915         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72916         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72917         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72918         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72920 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72922         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72923         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72924         reported by Mark D. Baushke, one in
72925         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72927         Merge from coreutils.
72929         * lib/.cppi-disable: Add stdint_.h.
72930         * lib/.cvsignore: Add stdint.h.
72932         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72934         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72935         both double and long double versions.
72936         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72937         * lib/xstrtold.c: New file.
72938         * lib/xstrtod.h (xstrtold): New decl.
72940         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72942         * lib/filemode.c (setst): Remove.
72943         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72944         (arguably) clearer, and the generated code is a bit smaller on my
72945         Debian GNU/Linux stable x86 host.
72947         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72949         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72950         Assume that filemode.h includes sys/types.h and sys/stat.h.
72951         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72952         (ftypelet): Reorder to put common cases first, for efficiency.
72953         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72954         to do 'M'.
72955         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72956         of 10, for compatibility with FreeBSD.  All callers changed.
72957         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72958         types that can't be deduced solely from st_mode.  First arg is now a
72959         const pointer.
72960         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72961         (strmode): Renamed from mode_string.
72962         (filemodestring): New decl.
72963         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72964         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72965         needed.
72966         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72968         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72970         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72971         fsusage.h now does that.  Include fsusage.h first, to test interface.
72972         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72973         at most one method (the old code could have generated decls that
72974         didn't conform to C89, not that this was ever exercised).
72975         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72977         2006-03-19  Jim Meyering  <jim@meyering.net>
72979         Work even in a chroot where d_ino values for entries in "/"
72980         don't match the stat.st_ino values for the same names.
72981         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72982         number, iterate through all entries again, using lstat instead.
72983         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72984         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72986         * lib/getcwd.c (__getcwd): Clarify a comment.
72987         Use memcpy in place of a call to strcpy.
72989         2006-03-12  Jim Meyering  <jim@meyering.net>
72991         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72992         matches that of the current directory (which we're about to chdir ".."
72993         out of), then save the dev-ino of the parent, instead.
72995         * lib/same-inode.h (SAME_INODE): New file/macro.
72996         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72997         Include "same-inode.h", instead.
72998         * lib/same.c: Likewise.
72999         * lib/cycle-check.h: Include "same-inode.h".
73000         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73001         * lib/cycle-check.c (SAME_INODE): Remove definition.
73002         * lib/root-dev-ino.h: Include "same-inode.h".
73004         2006-03-11  Eric Blake  <ebb9@byu.net>
73006         * lib/same.c (same_name): s/base_name/last_component/
73007         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73008         * lib/filenamecat.c (file_name_concat): Likewise.
73010         2006-03-11  Eric Blake  <ebb9@byu.net>,
73011                     Paul Eggert  <eggert@cs.ucla.edu>
73013         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73014         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73015         drive prefix.
73016         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73017         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73018         (last_component): New method.
73019         * lib/dirname.c (dir_len): Determine when drive letters need a
73020         subsequent slash.  Preserve // when it is special.
73021         (dir_name): Don't append dot when drive letter is absolute.
73022         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73023         * lib/basename.c (base_name): New semantics - malloc the result.
73024         Preserve // when it is special.  Preserve relative files that look
73025         like drive letters.
73026         (base_len): Preserve // when it is special.
73027         (last_component): New method, similar to old base_name semantics.
73028         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73029         base_name.  Strip redundant slashes from ///.
73031 2006-07-03  Jim Meyering  <jim@meyering.net>
73033         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73034         macro is used before the first cycle_check call.
73036 2006-07-03  Eric Blake  <ebb9@byu.net>
73038         * modules/dirname (Depends-on): Add xstrndup.
73040 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73042         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73043         test cases, so that config.log is a bit easier to follow.
73045 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73047         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73048         both are 64 bits, since this seems to be the tradition, and this
73049         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73050         we ever run into a host that prefers long long to long in this
73051         case, we'll need another configure-time test.  Problem reported by
73052         Jim Meyering.
73054 2006-07-02  Eric Blake  <ebb9@byu.net>
73056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73058 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73060         * modules/inttypes (Depends-on): No longer depends on stdint.
73061         * modules/stdint (Description): Say more about assumptions.
73062         Say that the fast types might differ.  Say macros are used.
73063         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73064         (Makefile.am): Revise list of substituted symbols to match
73065         new stdint.m4.
73066         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73067         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73068         * tests/test-stdint.c (verify_same_types)
73069         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73070         the code conforms to C99/C89.
73071         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73072         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73074 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73077         but fix a bug, by requiring at least 64 bits.
73078         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73079         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73080         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73081         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73083         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73084         changes.  Make 2.59 a prerequisite.  Check and substitute for
73085         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73086         inttypes.h.  Do not use special include files; just use the
73087         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73088         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73089         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73090         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73091         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73092         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73093         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73094         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73095         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73096         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73097         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73098         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73099         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73100         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73101         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73102         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73103         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73104         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73105         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73106         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73107         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73108         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73109         not check for things that C99 does not require, e.g., int8_t.  If
73110         a test isn't needed unless <stdint.h> isn't working, and is
73111         unlikely to be needed for any other reason, then don't do it
73112         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73113         size_t, since we assume C89 freestanding at least.  Do not check
73114         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73115         the right thing even if the types are not defined.  Instead use:
73116         (gl_STDINT_TYPE_PROPERTIES): New macro.
73117         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73118         testing whether <sys/types.h> clashes, as Autoconf does this for
73119         us now.  All uses removed.
73120         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73121         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73122         (gl_CHECK_TYPE_SAME):
73123         Remove; no longer needed.
73124         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73125         exists, since we'll return 0 anyway in that case.
73126         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73128 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73130         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73131         possible collision with system files.
73132         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73133         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73134         WCHAR_MIN and WCHAR_MAX in this case.
73135         (<stddef.h>): Do not include; no longer needed.
73136         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73137         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73138         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73139         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73140         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73141         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73142         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73143         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73144         !defined(__c99))]: Include in this case too, since it's harmless
73145         now.
73146         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73147         dangerous to do so.
73148         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73149         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73150         (_STDINT_MIN, _STDINT_MAX): New macros.
73151         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73152         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73153         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73154         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73155         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73156         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73157         macros, not typedefs; this simplifies things quite a bit.
73158         Use long int for all types narrower than int64_t.
73159         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73160         Define in terms of long long int or int64_t or long int,
73161         not int64_t or int32_t.  This saves some compile-time testing.
73162         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73163         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73164         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73165         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73166         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73167         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73168         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73169         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73170         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73171         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73172         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73173         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73174         undef any previous version and define our own version, for
73175         simplicity and consistency with the new macros for types.
73176         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73177         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73178         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73179         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73180         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73181         @WINT_T_SUFFIX@ to keep things simple here.
73182         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73183         Simplify by assuming typical 8/16/32/64 host, since we're
73184         already doing that elsewhere anyway.
73185         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73186         and assume long long int is 64 bits if available.  This
73187         speeds up 'configure'.
73189 2006-07-01  Eric Blake  <ebb9@byu.net>
73191         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73192         Reported by Andreas Buening.
73194 2006-07-01  Eric Blake  <ebb9@byu.net>
73196         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73198 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73200         * lib/getaddrinfo.c: fixed typo
73202 2006-06-29  Jim Meyering  <jim@meyering.net>
73204         * modules/strftime (Maintainer): Add my name, since with the
73205         FPRINTFTIME changes strftime.c has forked from glibc.
73207 2006-06-29  Eric Blake  <ebb9@byu.net>
73209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73211 2006-06-29  Eric Blake  <ebb9@byu.net>
73213         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73215 2006-06-29  Eric Blake  <ebb9@byu.net>
73217         * lib/stat_.h: New file.
73219 2006-06-29  Eric Blake  <ebb9@byu.net>
73221         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73222         unused static function.
73224 2006-06-29  Eric Blake  <ebb9@byu.net>
73226         * doc/functions.texi (Function Portability): Document missing lstat
73227         on mingw.
73229 2006-06-29  Eric Blake  <ebb9@byu.net>
73231         * MODULES.html.sh: Add sys_stat.
73232         * modules/sys_stat: New module.
73233         * modules/mkstemp (Depends-on): Add sys_stat.
73235 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73237         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73239 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73241         * m4/c-bs-a.m4: Removed.
73243 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73245         * lib/strftime.c: Assume strftime() exists.
73247 2006-06-29  Derek Price  <derek@ximbiot.com>
73249         * modules/c-bs-a: Removed - \a is C89.
73250         * MODULES.html.sh: Remove c-bs-a.
73252 2006-06-29  Bruno Haible  <bruno@clisp.org>
73254         * modules/wcwidth (License): Change to LGPL.
73256 2006-06-28  Simon Josefsson  <jas@extundo.com>
73258         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73259         on _WIN32.
73261         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73262         getnameinfo.
73264 2006-06-28  Simon Josefsson  <jas@extundo.com>
73266         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73268 2006-06-28  Simon Josefsson  <jas@extundo.com>
73270         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73271         functions there.  It will succeed on Windows XP, but on Windows
73272         2000 and (presumably) earlier, it will fail, and use the internal
73273         re-implementation.
73274         (use_win32_p): New function.
73275         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73276         Support AI_NUMERICSERV to disable getservbyname.
73277         (getnameinfo): New function, only supports
73278         NI_NUMERICHOST|NI_NUMERICSERV for now.
73280         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73281         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73282         getnameinfo.
73284 2006-06-28  Eric Blake  <ebb9@byu.net>
73286         * modules/wcwidth: New file.
73287         * modules/mbchar (Depends-on): Add wcwidth.
73288         * modules/mbswidth (Depends-on): Add wcwidth.
73289         * MODULES.html.sh: Add wcwidth.
73291 2006-06-28  Eric Blake  <ebb9@byu.net>
73293         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73296 2006-06-28  Eric Blake  <ebb9@byu.net>
73298         * lib/xvasprintf.h: Fix comments.
73300 2006-06-28  Eric Blake  <ebb9@byu.net>
73302         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73303         * lib/mbswidth.c (wcwidth): Move from here...
73304         * lib/wcwidth.h: ...to this new file.
73306 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73308         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73310         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73311         it's obsolete.
73312         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73314 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73316         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73317         Autoconf 2.60 says this stuff was obsolete.
73319 2006-06-28  Bruno Haible  <bruno@clisp.org>
73321         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73323 2006-06-28  Bruno Haible  <bruno@clisp.org>
73325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73326         gt_TYPE_WCHAR_T.
73328 2006-06-28  Bruno Haible  <bruno@clisp.org>
73330         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73331         declaration for wcwidth.
73332         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73334 2006-06-28  Bruno Haible  <bruno@clisp.org>
73336         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73337         (mkdir): Define using _mkdir.
73339 2006-06-28  Bruno Haible  <bruno@clisp.org>
73341         * lib/getaddrinfo.h: Fix POSIX URL.
73342         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73343         _WIN32.
73344         (use_win32_p): Make static.
73345         (getaddrinfo): Reject service name if it is empty or does not consist
73346         solely of decimal digits, or if its value is > 65535.
73347         (getnameinfo): Remove useless casts.
73349 2006-06-27  Simon Josefsson  <jas@extundo.com>
73351         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73352         Eggert and Martin Lambers.
73354 2006-06-27  Simon Josefsson  <jas@extundo.com>
73356         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73357         Eggert and Martin Lambers.
73359 2006-06-27  Bruno Haible  <bruno@clisp.org>
73361         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73362         result to 0, not to empty.
73363         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73365 2006-06-27  Bruno Haible  <bruno@clisp.org>
73367         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73369 2006-06-26  Simon Josefsson  <jas@extundo.com>
73371         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73372         present.
73374 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73376         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73377         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73378         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73380 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73382         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73384 2006-06-26  Bruno Haible  <bruno@clisp.org>
73386         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73388 2006-06-26  Bruno Haible  <bruno@clisp.org>
73390         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73392 2006-06-26  Bruno Haible  <bruno@clisp.org>
73394         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73395         SGI C compiler in pre-C99 mode.
73396         Suggested by Mark D. Baushke and Larry Jones.
73398 2006-06-26  Bruno Haible  <bruno@clisp.org>
73400         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73401         WCHAR_MAX.
73402         Reported by Mark D. Baushke and Larry Jones.
73404 2006-06-26  Bruno Haible  <bruno@clisp.org>
73406         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73407         in pre-C99 mode.
73408         Suggested by Mark D. Baushke and Larry Jones.
73410 2006-06-23  Simon Josefsson  <jas@extundo.com>
73411             Bruno Haible  <bruno@clisp.org>
73413         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73414         Emit mostlyclean-local rule.
73415         (func_emit_tests_Makefile_am): Likewise.
73416         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73418 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73420         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73422 2006-06-23  Bruno Haible  <bruno@clisp.org>
73424         * tests/test-stdint.c: Update to match ISO C 99 Technical
73425         Corrigendum 1.
73427 2006-06-23  Bruno Haible  <bruno@clisp.org>
73429         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73431 2006-06-23  Bruno Haible  <bruno@clisp.org>
73433         * lib/stdint_.h: Treat IRIX like OpenBSD.
73435 2006-06-23  Bruno Haible  <bruno@clisp.org>
73437         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73438         ISO C 99 Technical Corrigendum 1.
73440 2006-06-22  Simon Josefsson  <jas@extundo.com>
73442         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73443         MinGW.
73445 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73447         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73448         needed.  Some compiler complained about some of them.  Problem reported
73449         by Larry Jones in
73450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73452 2006-06-21  Simon Josefsson  <jas@extundo.com>
73454         * tests/test-getaddrinfo.c: New file.
73456         * modules/getaddrinfo-tests: New file.
73458         * MODULES.html.sh: Add inet_pton.
73460         * modules/inet_pton: New file.
73462 2006-06-21  Simon Josefsson  <jas@extundo.com>
73464         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73465         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73466         of using the (limited) gnulib implementation on Windows XP.
73468         * m4/inet_pton.m4: New file.
73470 2006-06-21  Simon Josefsson  <jas@extundo.com>
73472         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73473         variable.
73475         * lib/socket_.h: Don't define WINVER.
73477         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73478         slightly modified to work in gnulib.
73480 2006-06-21  Simon Josefsson  <jas@extundo.com>
73482         * doc/gnulib.texi (Windows sockets): Add.
73484 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73486         * lib/read-file.c (fread_file): Start with buffer allocation of
73487         0 bytes rather than 1 byte; this simplifies the code.
73488         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73489         code to free buffer and save/restore errno.
73490         (internal_read_file): Remove unused local.
73492 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73494         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73495         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73496         Problem reported by Denis Excoffier in
73497         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73499 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73501         * modules/sys_socket, modules/socklen: Include sys/types since
73502         FreeBSD 4.x's sys/socket.h needs it.
73504 2006-06-19  Simon Josefsson  <jas@extundo.com>
73506         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73508 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73510         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73512 2006-06-19  Bruno Haible  <bruno@clisp.org>
73514         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73515         and FULL_PATH_INTTYPES_H in angle brackets.
73516         Reported by Mark D. Baushke <mdb@gnu.org>.
73518 2006-06-17  Eric Blake  <ebb9@byu.net>
73520         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73521         errno.
73523 2006-06-17  Bruno Haible  <bruno@clisp.org>
73525         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73526         <sys/inttypes.h>.
73528 2006-06-17  Bruno Haible  <bruno@clisp.org>
73530         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73531         whether errno is declared. Assume <errno.h> declares errno.
73533 2006-06-17  Bruno Haible  <bruno@clisp.org>
73535         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73537 2006-06-17  Bruno Haible  <bruno@clisp.org>
73539         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73540         problem on Solaris 2.5.1.
73542 2006-06-16  Eric Blake  <ebb9@byu.net>
73544         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73545         * lib/unicodeio.c [!defined errno]: Likewise.
73546         * lib/strtol.c [!defined errno]: Likewise.
73547         * lib/strtod.c [!defined errno]: Likewise.
73549 2006-06-15  Eric Blake  <ebb9@byu.net>
73551         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73553 2006-06-15  Eric Blake  <ebb9@byu.net>
73555         * config/srclist.txt (ssize_t.m4): Lose sync.
73557 2006-06-15  Bruno Haible  <bruno@clisp.org>
73559         * modules/stdint (Files): Include m4/full-header-path.m4,
73560         m4/size_max.m4, m4/wchar_t.m4.
73561         (Makefile.am): Many more substitutions.
73562         * modules/stdint-tests: New file.
73563         * tests/test-stdint.c: New file.
73565 2006-06-15  Bruno Haible  <bruno@clisp.org>
73567         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73568         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73569         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73570         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73571         gl_CHECK_TYPE_SAME): New macros.
73573 2006-06-15  Bruno Haible  <bruno@clisp.org>
73575         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73577 2006-06-15  Bruno Haible  <bruno@clisp.org>
73579         * lib/stdint_.h: Rewritten to be fully auto-configured.
73580         Fixes bug on HP-UX/IA64.
73582 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73584         * lib/getdate.y (__attribute__): Don't define if already defined.
73585         Problem reported by Larry Jones.
73586         * lib/utimens.c (__attribute__): Likewise.
73588 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73590         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73591         reported by Andreas Schwab.
73593 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73594             Bruno Haible  <bruno@clisp.org>
73596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73597         check for the declaration of strnlen and a run test that exposes the
73598         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73599         rpl_strndup.
73601 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73602             Bruno Haible  <bruno@clisp.org>
73604         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73606 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73608         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73609         compile test, for Tru64 4.0D.
73611 2006-05-28  Karl Berry  <karl@gnu.org>
73613         * config/srclist.txt (printf-args.c): lose sync.
73615 2006-05-26  Martin Lambers  <marlam@marlam.de>
73617         * lib/getpass.c: Updates the test for the native W32 API, and adds
73618         missing includes, thus fixing compilation warnings.
73620 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73622         * lib/exclude.c (exclude_fnmatch): New function.
73623         (excluded_file_name): Call exclude_fnmatch.
73624         * lib/exclude.h (excluded_file_name): New prototype
73626 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73628         * lib/tempname.c (small_open, large_open): New macros.
73629         (__open, __open64) [!_LIBC]: Remove.
73630         (__gen_tempname): Use small_open and large_open instead of __open
73631         and __open64.  This fixes a portability bug on HP-UX 11.11i
73632         reported by Simon Wing-Tang in
73633         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73635 2006-05-24  Bruno Haible  <bruno@clisp.org>
73637         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73638         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73639         Reported by Thorsten Maerz <torte@netztorte.de> via
73640         Aaron Stone <aaron@serendipity.cx>.
73642 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73645         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73646         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73647         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73648         not really conditional on the cache.
73649         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73651 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73653         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73654         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73655         (my_usleep): Don't mishandle maximum value.
73657 2006-05-19  Jim Meyering  <jim@meyering.net>
73659         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73661 2006-05-17  Bruno Haible  <bruno@clisp.org>
73663         Cygwin portability.
73664         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73666 2006-05-17  Bruno Haible  <bruno@clisp.org>
73668         * lib/stdint_.h: Fix recognition of Cygwin.
73670 2006-05-15  Bruno Haible  <bruno@clisp.org>
73672         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73673         on libtool patch by Ralf Wildenhues.
73675 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73677         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73678         test for C99 conformance; (bool) 0.5 is an integer constant
73679         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73680         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73682 2006-05-11  Simon Josefsson  <jas@extundo.com>
73684         * m4/xvasprintf.m4: Fix obvious typo.
73686 2006-05-11  Jim Meyering  <jim@meyering.net>
73688         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73689         James Lemley.
73691 2006-05-10  Simon Josefsson  <jas@extundo.com>
73693         * lib/md4.c: Typo fix, update copyright years.
73694         (K1, K2): Don't use L because it turn computations into 64-bit on
73695         64-bit platforms.
73697 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73699         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73700         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73701         unwanted sign propagation, e.g., on hosts with 64-bit int.
73702         There still are some problems with reeelly weird theoretical hosts
73703         (e.g., 33-bit int) but it's not worth worrying about now.
73704         * lib/sha1.c (rol): Likewise.
73705         (K1, K2, K3, K4): Remove unnecessary L suffix.
73707 2006-05-10  Bruno Haible  <bruno@clisp.org>
73709         * lib/des.c: Cast to avoid warnings.
73711 2006-05-09  Bruno Haible  <bruno@clisp.org>
73713         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73714         (Depends-on): Depend also on xsize, stdarg.
73715         (configure.ac): Add gl_XVASPRINTF.
73717 2006-05-09  Bruno Haible  <bruno@clisp.org>
73719         * m4/xvasprintf.m4: New file.
73721 2006-05-09  Bruno Haible  <bruno@clisp.org>
73723         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73724         (EOVERFLOW): Define fallback value.
73725         (xstrcat): New function.
73726         (xvasprintf): Recognize the special case of a string concatenation.
73728 2006-05-08  Eric Blake  <ebb9@byu.net>
73730         * gnulib-tool (func_version): Base copyright year on CVS date.
73731         (func_emit_copyright_notice): New function.
73732         (func_emit_lib_Makefile_am): Use it.
73733         (func_emit_tests_Makefile_am): Likewise.
73734         (func_import): Likewise.
73736 2006-05-08  Bruno Haible  <bruno@clisp.org>
73738         * modules/stdarg: New file.
73739         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73741 2006-05-08  Bruno Haible  <bruno@clisp.org>
73743         * m4/stdarg.m4: New file, from GNU gettext.
73745 2006-05-08  Bruno Haible  <bruno@clisp.org>
73747         * config/srclist.txt (build-aux/config.rpath): different from latest
73748         release.
73750 2006-05-08  Bruno Haible  <bruno@clisp.org>
73752         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73754 2006-05-05  Jim Meyering  <jim@meyering.net>
73756         * m4/warning.m4: New file, derived from bison's file by the same name.
73758 2006-05-03  Bruno Haible  <bruno@clisp.org>
73760         * lib/stdint_.h: Shorter URL.
73761         * lib/inttypes.h: Likewise.
73763 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73765         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73767 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73769         * lib/verify.h: Document the internals better.  Most of this change
73770         was written by Bruno Haible.
73772 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73774         * doc/verify.texi: New file, partly based on a proposal by
73775         Bruno Haible.
73777 2006-05-02  Bruno Haible  <bruno@clisp.org>
73779         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73780         test from here...
73781         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73783 2006-04-29  Bruno Haible  <bruno@clisp.org>
73785         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73786         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73788 2006-04-29  Bruno Haible  <bruno@clisp.org>
73790         * gnulib-tool: Make --update option actually work.
73792 2006-04-29  Bruno Haible  <bruno@clisp.org>
73794         * doc/gcd.texi: New file.
73795         * doc/gnulib.texi: Include it.
73797 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73799         * lib/getdate.y (get_date): When adding relative date, start with the
73800         initial time, not with the result of the first mktime call.
73802 2006-04-25  Bruno Haible  <bruno@clisp.org>
73804         * gnulib-tool (func_import): Output the include directives in three
73805         blocks, sorted separately.
73806         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73808 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73810         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73811         to define main with arguments, for C++.  Reported by Eric Blake.
73812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73813         Prefer 'int main ()' to 'int main (void)', for C++.
73814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73816         for 'main', for C99 and C++.
73818 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73821         Don't assume that exit status -1 is valid.
73822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73823         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73824         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73825         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73826         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73827         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73828         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73829         functions can be used without declaring them, or that you can
73830         exit with status -1.
73831         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73833 2006-04-24  Karl Berry  <karl@gnu.org>
73835         * config/srclist.txt (longdouble.m4): sync lost.
73837 2006-04-24  Eric Blake  <ebb9@byu.net>
73839         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73841 2006-04-24  Bruno Haible  <bruno@clisp.org>
73843         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73844         poll() implementation in AIX.
73845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73847 2006-04-24  Bruno Haible  <bruno@clisp.org>
73849         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73850         assigned exactly once.
73852 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73853             Bruno Haible  <bruno@clisp.org>
73855         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73856         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73857         for AM_CPPFLAGS.
73859 2006-04-23  Bruno Haible  <bruno@clisp.org>
73861         * modules/copy-file: Depend on unistd.
73862         * modules/execute: Likewise.
73863         * modules/fatal-signal: Likewise.
73864         * modules/findprog: Likewise.
73865         * modules/mkdtemp : Likewise.
73866         * modules/pipe: Likewise.
73867         * modules/wait-process: Likewise.
73869 2006-04-23  Bruno Haible  <bruno@clisp.org>
73871         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73872         condition was already detected.
73873         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73875 2006-04-23  Bruno Haible  <bruno@clisp.org>
73877         * lib/copy-file.c: Include <unistd.h> unconditionally.
73878         * lib/execute.c: Likewise.
73879         * lib/fatal-signal.c: Likewise.
73880         * lib/findprog.c: Likewise.
73881         * lib/mkdtemp.c: Likewise.
73882         * lib/pipe.h: Likewise.
73883         * lib/pipe.c: Likewise.
73884         * lib/wait-process.h: Likewise.
73886 2006-04-23  Bruno Haible  <bruno@clisp.org>
73888         * gnulib-tool (func_usage): Fix --import description. Document
73889         --update.
73890         (func_import): Create temporary file in a temporary directory, if
73891         --dry-run is specified. Silence errors from 'grep' when there are no
73892         m4 files in $m4dir.
73893         (func_create_testdir): Silence errors from 'grep' when there are no
73894         m4 files in $m4dir.
73895         Reported by Karl Berry <karl@freefriends.org>.
73897 2006-04-20  Bruno Haible  <bruno@clisp.org>
73899         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73900         one argument, so that the code will be portable to Autoconf 2.60.
73901         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73902         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73903         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73905 2006-04-19  Derek Price  <derek@ximbiot.com>
73906             Eric Blake  <ebb9@byu.net>
73908         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73909         rather than "/full/path.h".  Update comment to match.  Shorten &
73910         generalize m4_translit call via AS_TR_CPP.
73912 2006-04-19  Derek Price  <derek@ximbiot.com>
73913             Eric Blake  <ebb9@byu.net>
73915         * lib/inttypes.h: Correct grammar in comment.
73917 2006-04-18  Derek Price  <derek@ximbiot.com>
73918             Paul Eggert  <eggert@cs.ucla.edu>
73920         * modules/inttypes: New file.
73921         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73923 2006-04-18  Derek Price  <derek@ximbiot.com>
73924             Paul Eggert  <eggert@cs.ucla.edu>
73926         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73927         New files.
73929 2006-04-18  Derek Price  <derek@ximbiot.com>
73930             Paul Eggert  <eggert@cs.ucla.edu>
73932         * lib/inttypes.h: New file.
73933         * lib/strtoimax.c: Assume <inttypes.h>.
73935 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73937         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73938         isn't mounted.  Problem reported by Kir Kolyshkin.
73940 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73942         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73943         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73944         Derek R. Price.
73945         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73946         implementation.
73948 2006-04-12  Eric Blake  <ebb9@byu.net>
73950         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73951         is now done automatically by the corresponding Autoconf macro.
73953 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73955         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73956         time_r.h.
73958 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73960         Merge regex changes from libc, removing some of our
73961         POSIX-conformance changes that were rejected and redoing them in a
73962         less-intrusive way.
73964         * lib/regcomp.c (re_compile_internal, init_dfa):
73965         Length arg is now size_t, not Idx.  All uses changed.
73966         (peek_token): Forward decl now says internal_function.
73967         (__re_error_msgid, __re_error_msgid_idx):
73968         Now static rather than extern with attribute_hidden.
73969         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73970         For some reason libc prefers K&R style defns for external functions.
73971         (regerror) [!defined _LIBC]: Likewise.
73972         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73973         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73974         (build_range_exp, build_collating_symbol):
73975         Use K&R-style defn.
73976         (re_compile_fastmap): Use '\0' to memset, not 0.
73977         (utf8_sb_map): Make the calculations more obvious.
73978         (init_dfa, parse_bracket_exp, build_charclass_op):
73979         Call calloc and cast result, as glibc does.
73980         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73981         (build_range_exp, build_collating_symbol):
73982         Now internal functions.
73984         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73986         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73987         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73988         Don't depend on VMS; depend on __VMS instead, for POSIX
73989         namespace cleanness.
73990         (regoff_t): Define to ssize_t, not long int.
73992         Remove the REG_ macros named below.  Instead, make the old names
73993         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73994         __USE_GNU_REGEX.
73995         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73996         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73997         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73998         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73999         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74000         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74001         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74002         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74003         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74004         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74005         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74006         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74007         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74008         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74009         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74010         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74011         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74012         (REG_NREGS):
74013         Remove.  All uses replaced by the old RE_* names.
74014         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74015         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74016         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74017         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74018         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74019         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74020         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74021         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74022         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74023         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74024         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74025         Don't bother having these macros be independent of each others'
74026         values, since they no longer exist in the POSIX name space.
74028         Rename the following member names back to their old names,
74029         unless !__USE_GNU_REGEX.  All uses changed back.
74030         (buffer): Renamed from re_buffer.
74031         (allocated): Renamed from re_allocated.
74032         (used): Renamed from re_used.
74033         (syntax): Renamed from re_syntax.
74034         (fastmap): Renamed from re_fastmap.
74035         (translate): Renamed from re_translate.
74036         (can_be_null): Renamed from re_can_be_null.
74037         (regs_allocated): Renamed from re_regs_allocated.
74038         (fastmap_accurate): Renamed from re_fastmap_accurate.
74039         (no_sub): Renamed from re_no_sub.
74040         (not_bol): Renamed from re_not_bol.
74041         (not_eol): Renamed from re_not_eol.
74042         (newline_anchor): Renamed from re_newline_anchor.
74043         (num_regs): Renamed from rm_num_regs.
74044         (start): Renamed from rm_start.
74045         (end): Renamed from rm_end.
74047         (free_state): Move up a bit.
74049         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74050         #define to be empty.
74051         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74052         when that is what is intended.
74053         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74054         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74055         (MAX): New macro.
74056         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74057         All uses changed back to re_malloc, etc.  It's now the caller's
74058         responsibility to check for overflow; all callers changed.
74059         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74060         (re_x2nrealloc): Remove.
74061         (free_state): Remove decl.
74063         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74064         (re_set_registers, re_exec):
74065         Use K&R-style defn.
74067         2006-01-31  Roland McGrath  <roland@redhat.com>
74069         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74070         Reported by Mike Frysinger <vapier@gentoo.org>.
74072         2006-01-15  Andreas Jaeger  <aj@suse.de>
74074         [BZ #1950]
74075         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74076         build_wcs_upper_buffer change.
74077         (build_wcs_upper_buffer): Change return type.
74079         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74081         * lib/regex_internal.h: Include <stdint.h> if available.
74083         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74085         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74087         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74089         * lib/regcomp.c: Adjust for changed secondary hash function.
74091         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74093         * lib/regex.h: Pretty printing.
74094         Clean up namespace a bit.
74096         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74098         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74099         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74101         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74102                     Ulrich Drepper  <drepper@redhat.com>
74104         [BZ #1302]
74105         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74106         changed.
74107         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74109         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74111         [BZ #281]
74112         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74113         * lib/regcomp.c: Remove unnecessary uses of
74114         unsigned RE_TRANSLATE_TYPE.
74115         * lib/regex_internal.h: Likewise.
74116         * lib/regex_internal.c: Likewise.
74117         * lib/regexec.c: Likewise.
74118         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74120         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74122         * lib/regexec.c (find_recover_state): Remove unnecessary
74123         initialization.
74124         (transit_state_bkref): Make DFA a const pointer.
74125         (get_subexp): Likewise.
74126         (check_arrival): Likewise.
74127         (update_cur_sifted_state): Likewise.
74128         (re_search_internal): Likewise.
74129         (prune_impossible_nodes): Likewise.
74130         (acquire_init_state_context): Likewise.
74131         (proceed_next_node): Likewise.
74132         (set_regs): Likewise.
74133         (free_fail_stack_return): Likewise.
74134         (check_arrival_expand_ecl): Mark DFA parameter as const.
74135         (check_arrival_expand_ecl_sub): Likewise.
74136         (check_subexp_limits): Likewise.
74137         (sub_epsilon_src_nodes):  Likewise.
74138         (add_epsilon_src_nodes):  Likewise.
74139         (merge_state_array): Likewise.
74140         (update_regs): Likewise.
74141         (build_trtable): Likewise.
74142         (sift_states_backward): Mark MCTX parameter as const.
74143         (build_sifted_states): Likewise.
74144         (update_cur_sifted_state): Likewise.
74145         (sift_states_mkref): Likewise.
74146         (check_arrival_expand_ecl): Mark eclosure as const.
74147         (check_dst_limits_calc_pos_1): Likewise.
74148         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74149         pointer.
74151         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74153         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74154         (transit_state_sb): Likewise.
74155         (transit_state_mb): Likewise.
74156         (sift_states_iter_mb): Likewise.
74157         (check_arrival_add_next_nodes): Likewise.
74158         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74159         [_LIBC] (re_search_2_stub): Use mempcpy.
74161         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74162         mbrtowc for very simple UTF-8 case.
74164         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74165         a pointer-to-const.
74166         (re_acquire_state_context): Likewise.
74167         * lib/regex_internal.h: Adjust prototypes.
74169         * lib/regex.c: Prevent using C++ compilers.
74171         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74172         (re_acquire_state_context): Likewise.
74174 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74176         * modules/regex (Depends-on): Add ssize_t.
74178 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74180         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74181         translation table.
74183 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74185         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74187 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74188             Bruno Haible  <bruno@clisp.org>
74190         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74191         <sys/types.h> and <inttypes.h>.
74193 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74195         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74196         `__error_t_defined', so argp.h will not typedef the former.
74198 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74200         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74201         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74202         glibc names.  Even if glibc is changed to conform to POSIX, the
74203         traditional names will be available anyway, since regex depends on
74204         the extensions module.  Also, fix a longstanding typo in the
74205         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74206         reported by Emanuele Giaquinta.  Also, change sense of cached
74207         variable, so that the message makes sense.
74209 2006-03-24  Simon Josefsson  <jas@extundo.com>
74211         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74212         including some doc fixes.
74213         (base64_encode_alloc): Fix +1 bug on allocation failures.
74215 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74217         * lib/base64.c (base64_encode): Do not read past end of array with
74218         unsanitized input on systems with CHAR_BIT > 8.
74220 2006-03-24  Eric Blake  <ebb9@byu.net>
74222         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74224 2006-03-22  Karl Berry  <karl@gnu.org>
74226         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74227         * config/srclistvars.sh (COREUTILS): new var.
74229 2006-03-17  Jim Meyering  <jim@meyering.net>
74231         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74232         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74234 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74236         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74237         no longer needs it.  Instead, check that regoff_t is as least
74238         as wide as ptrdiff_t.
74240         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74241         so that our regex.h stays compatible with the installed regex.
74242         This is helpful for installers who configure --without-included-regex.
74243         Problem reported by Emanuele Giaquinta.
74245 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74247         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74248         Typedef to long int, not to off_, as POSIX will likely change
74249         in that direction.
74251 2006-03-15  Eric Blake  <ebb9@byu.net>
74253         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74255 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74257         * lib/argp-help.c (validate_uparams): Fix typo
74258         * lib/argp-parse.c (argp_default_options): Consistently begin help
74259         messages with a lowercase letter.
74261 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74263         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74264         overrun buffers and shouldn't be used (much as gets shouldn't be
74265         used).
74266         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74268 2006-03-08  Simon Josefsson  <jas@extundo.com>
74270         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74271         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74273 2006-03-08  Simon Josefsson  <jas@extundo.com>
74275         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74276         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74278 2006-03-08  Simon Josefsson  <jas@extundo.com>
74280         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74281         signal that configure disabled the device.
74283 2006-03-08  Simon Josefsson  <jas@extundo.com>
74285         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74286         languages.
74288 2006-03-07  Simon Josefsson  <jas@extundo.com>
74290         * modules/getopt (Depends-on): Add unistd.
74292         * modules/unistd: New file.
74294 2006-03-07  Simon Josefsson  <jas@extundo.com>
74296         * modules/gc-random: New file.
74298 2006-03-07  Simon Josefsson  <jas@extundo.com>
74300         * m4/unistd_h.m4: New file.
74302 2006-03-07  Simon Josefsson  <jas@extundo.com>
74304         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74305         test to be side-effect free by storing the result in the cache
74306         variable gl_cv_lib_readline, and moving the assignment of
74307         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74308         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74310 2006-03-07  Simon Josefsson  <jas@extundo.com>
74312         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74313         error on missing devices (the functions will return an error).
74315         * m4/gc.m4: Move random stuff to gc-random.m4
74317 2006-03-07  Simon Josefsson  <jas@extundo.com>
74319         * lib/unistd_.h: New file.
74321 2006-03-07  Simon Josefsson  <jas@extundo.com>
74323         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74325 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74327         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74328         Problem reported by Juan Manuel Guerrero.
74330 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74332         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74333         the unistd module.
74334         * lib/getlogin_r.c: Likewise.
74335         * lib/getlogin_r.h: Likewise.
74336         * lib/glob.c: Likewise.
74337         * lib/pagealign_alloc.c: Likewise.
74338         * lib/unistd_.h: Remove; no longer needed.
74340 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74342         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74343         Add unistd.
74344         * modules/c-stack (Depends-on): Add unistd.
74345         * modules/getlogin_r: Likewise.
74346         * modules/glob: Likewise.
74347         * modules/pagealign_alloc: Likewise.
74348         * modules/unistd (Files): Remove lib/unistd_.h.
74349         (EXTRA_DIST): Remove.
74350         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74351         need unistd_.h.
74352         (MOSTLYCLEANFILES): Remove unistd.h-t.
74354 2006-03-03  Simon Josefsson  <jas@extundo.com>
74356         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74358 2006-03-03  Simon Josefsson  <jas@extundo.com>
74360         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74361         libidn and bison.
74363 2006-03-03  Simon Josefsson  <jas@extundo.com>
74365         * build-aux/maint.mk: Add indent target.
74367 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74369         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74370         our replacement poll.h in any case, to avoid a differing
74371         declaration from a system header.  Seen on AIX.
74373 2006-03-01  Simon Josefsson  <jas@extundo.com>
74375         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74376         <kasal@ucw.cz>.
74378 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74380         * modules/gettime (Depends-on): Add extensions module.
74381         * modules/nanosleep (Depends-on): Likewise.
74382         * modules/settime (Depends-on): Likewise.
74384 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74386         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74387         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74388         pedantically.
74389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74390         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74392         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74393         not "==".  Reported by Ralf Wildenhues.
74395 2006-03-01  Karl Berry  <karl@gnu.org>
74397         * doc/Copyright/request-*: new files, synced from gnuorg.
74399 2006-03-01  Karl Berry  <karl@gnu.org>
74401         * config/srclist.txt (Copyright/*): new entries.
74403 2006-02-28  Simon Josefsson  <jas@extundo.com>
74405         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74407 2006-02-27  Simon Josefsson  <jas@extundo.com>
74409         * lib/base64.h: Indent #define's.  From Jim Meyering
74410         <jim@meyering.net>.
74412 2006-02-27  Jim Meyering  <jim@meyering.net>
74414         Revert the change of 2006-02-24, so these files can continue
74415         to be sync'd from gettext.
74416         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74417         of `config.h'.
74419 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74421         * modules/intprops: New file.
74422         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74423         Add intprops.
74424         * modules/getloadavg (Files): Remove lib/intprops.h.
74425         (Depends-on): Add intprops.
74426         * modules/human: Likewise.
74427         * modules/inttostr: Likewise.
74428         * modules/openat: Likewise.
74429         * modules/sig2str: Likewise.
74430         * modules/userspec: Likewise.
74431         * modules/utimecmp: Likewise.
74432         * modules/xnanosleep: Likewise.
74433         * modules/xstrtol: Likewise.
74435 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74437         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74438         * modules/lock-tests (TESTS): Use $(EXEEXT).
74439         * modules/tls-tests: Likewise.
74440         * modules/argp-tests: Likewise.
74441         (check_PROGRAMS): New var, replacing...
74442         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74444 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74446         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74447         `config.h'.
74449 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74451         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74453 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74455         Sync from coreutils.
74456         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74457         gl_CHDIR_SAFER.
74459 2006-02-22  Jim Meyering  <jim@meyering.net>
74461         Sync from coreutils.
74462         * m4/chdir-safer.m4: New file.
74464 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74466         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74467         AT_FDCWD exceeds INT_MAX.
74468         * lib/openat.h (AT_FDCWD): Likewise.
74470 2006-02-17  Eric Blake  <address@hidden>
74472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74474 2006-02-16  Simon Josefsson  <jas@extundo.com>
74476         * modules/getaddrinfo (Depends-on): Add sys_socket.
74478 2006-02-15  Simon Josefsson  <jas@extundo.com>
74480         * build-aux/maint.mk: Add dsyntax-check rule.
74482 2006-02-15  Eric Blake  <ebb9@byu.net>
74484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74485         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74486         'present but cannot compile' warnings on cygwin.
74487         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74488         use ws2tcpip.h if sys/socket.h works.
74489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74490         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74492 2006-02-14  Simon Josefsson  <jas@extundo.com>
74494         * modules/maintainer-makefile (Files): Rename.
74496         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74497         and (the local) Makefile.cfg to maint-cfg.mk.
74499         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74500         to the latter.
74502         * modules/maintainer-makefile: New module.
74504         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74505         severaly stripped to make it possible to build it up from scratch
74506         with reliable tests.
74508         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74509         fixes to permit overriding the default actions when configure and
74510         makefile are not available.
74512 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74514         Sync from coreutils.
74515         * modules/lstat (Depends-on): Don't depend on xalloc.
74516         (License): Change from GPL to LGPL, since this is now simply a
74517         replacement for a libc function.
74519 2006-02-14  Jim Meyering  <jim@meyering.net>
74521         Sync from coreutils.
74523         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74524         failure on deficient systems, and simplify gnulib lgpl dependencies.
74525         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74526         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74528         * lib/xalloc-die.c: Remove unused definition of N_.
74530 2006-02-14  Jim Meyering  <jim@meyering.net>
74532         Sync from coreutils.
74533         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74534         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74535         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74536         double-quote uses of that variable, to accommodate the rare case in
74537         which getmntent is available in none of the libraries checked.  This
74538         happens at least on FreeBSD 5.0.
74540 2006-02-13  Simon Josefsson  <jas@extundo.com>
74542         * gnulib-tool (Usage): Fix --import, from
74543         karl@freefriends.org (Karl Berry).
74545 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74547         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74549 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74551         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74552         "autoupdate" on 2005-12-12.
74554 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74556         * modules/closeout (Depends-on): Remove atexit.
74558 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74560         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74561         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74563 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74566         __EXTENSIONS__ if this causes compilation to fail.  Problem
74567         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74568         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74570 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74572         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74573         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74575         All uses changed.
74577 2006-01-26  Simon Josefsson  <jas@extundo.com>
74579         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74580         prototype is visible on mingw32.
74582         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74583         for mingw32.
74585         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74586         mingw32).
74588 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74590         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74591         attempt to open for write; this always fails, at least on POSIX
74592         hosts.  This reinstates the 2006-01-09 change, which was
74593         inadvertently removed.
74595 2006-01-26  Bruno Haible  <bruno@clisp.org>
74597         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74598         Reported by Paul Eggert.
74600 2006-01-26  Bruno Haible  <bruno@clisp.org>
74601             Paul Eggert  <eggert@cs.ucla.edu>
74603         * lib/stdbool_.h (_Bool)
74604         [(! (defined __cplusplus || defined __BEOS__)
74605           && !defined __GNUC__
74606           && !(defined __HP_cc || defined __xlc__
74607                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74608                || defined __sgi))]:
74609         #define to signed char in these cases too; this simplifies
74610         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74611         etc., separately) and makes it more conservative.
74613 2006-01-25  Simon Josefsson  <jas@extundo.com>
74615         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74616         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74617         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74619 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74621         * lib/argp-namefrob.h: Bugfix. Remove stray #
74623 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74626         so that we test the test.
74627         Check for yet another HP-UX cc bug involving *bool |= bool.
74629 2006-01-25  Karl Berry  <karl@gnu.org>
74631         * config/srclist.txt (vasnprintf.c): sync lost.
74633 2006-01-25  Jim Meyering  <jim@meyering.net>
74635         Sync from the stable (b5) branch of coreutils:
74637         * lib/fts.c (fts_children): Don't let close() clobber errno from
74638         failed fchdir().
74640         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74641         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74642         a dangling symlink.  That can also happen at least for ELOOP.
74643         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74644         FYI, this bug predates the inclusion of fts.c in coreutils.
74646         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74647         in their own block, so pre-c99 compilers don't object.
74649         Avoid the double-free (first in fts_read, second in fts_close) that
74650         would occur when an `active' directory is made inaccessible (e.g.,
74651         via chmod a-x) during a traversal.
74652         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74653         before returning.  Reproduce this failure by
74654         mkdir -p a/b; cd a; chmod a-x . b
74655         Reported by Stavros Passas.
74657 2006-01-25  Jim Meyering  <jim@meyering.net>
74659         * lib/fileblocks.c: Remove more useless parentheses.
74660         * lib/readutmp.h: Likewise.
74662 2006-01-25  Bruno Haible  <bruno@clisp.org>
74664         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74665         warnings.
74666         Reported by Paul Eggert.
74668 2006-01-25  Bruno Haible  <bruno@clisp.org>
74670         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74671         rid of a trap command. For Solaris sh.
74672         Reported by Mark D. Baushke <mdb@gnu.org>.
74674 2006-01-24  Simon Josefsson  <jas@extundo.com>
74676         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74677         Bruno.
74679 2006-01-24  Karl Berry  <karl@gnu.org>
74681         * config/srclist.txt (argp-namefrob.h): sync lost.
74683 2006-01-24  Jim Meyering  <jim@meyering.net>
74685         * modules/openat (Files): Add lib/intprops.h.
74686         From Mark D. Baushke.
74688 2006-01-24  Jim Meyering  <jim@meyering.net>
74690         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74691         Reported by Mark D. Baushke.
74693 2006-01-24  Jim Meyering  <jim@meyering.net>
74695         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74697 2006-01-24  Bruno Haible  <bruno@clisp.org>
74699         * modules/strnlen (Maintainer): Change from glibc to all.
74701 2006-01-24  Bruno Haible  <bruno@clisp.org>
74703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74704         Patch by Paul Eggert.
74706 2006-01-24  Bruno Haible  <bruno@clisp.org>
74708         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74709         already has it.
74710         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74711         2005-11-26.
74713         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74714         'signed char' to avoid problems with the built-in _Bool type.
74715         Reported by Paul Eggert on 2005-11-26.
74717 2006-01-24  Bruno Haible  <bruno@clisp.org>
74719         * gnulib-tool (func_import): Avoid constructing complicated sed
74720         expressions inside backquote.
74721         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74723 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74725         These changes imported from libc.
74726         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74727         test and two separate function calls.
74728         * lib/strndup.c (__strndup): Add libc_hidden_def.
74730 2006-01-23  Simon Josefsson  <jas@extundo.com>
74732         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74733         Remove the test_*_SOURCES variable: automake infers it by default.
74734         * modules/tls-tests: Likewise.
74736 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74738         Work around porting bugs reported by Dieter in
74739         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74740         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74741         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74742         Include "getopt.h" first, to check interface.
74743         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74744         !HAVE_DECL_GETENV.
74745         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74746         (__strndup): Revert to K&R-style function dfns, the glibc style.
74747         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74748         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74749         Include strnlen.h first, to get prototype properly.
74750         (strnlen): Renamed from __strnlen.
74751         Remove weak alias.
74753 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74755         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74757 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74759         * config/srclist.txt: Adjust to reflect glibc reorganization.
74760         This affects only comments.
74762 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74764          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74765          Reported by Bruce Korb <bkorb@gnu.org>.
74767 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74769         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74770         to pacify gcc -Wswitch-default.
74772 2006-01-22  Bruno Haible  <bruno@clisp.org>
74774         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74775         temporary buffer for sprintf, take into account the precision also
74776         for 'd', 'i', 'u', 'o', 'x', 'X'.
74778 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74780         * modules/argp-tests: New module
74781         * tests/test-argp.c: New file
74782         * tests/test-argp-2.sh: New file
74784 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74786         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74787         (__argp_base_name): Removed
74788         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74789         typo.
74790         (__argp_base_name): Provide macro definition or extern declaration
74791         depending on the configuration
74793 2006-01-20  Simon Josefsson  <jas@extundo.com>
74795         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74797 2006-01-20  Simon Josefsson  <jas@extundo.com>
74799         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74801 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74803         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74804         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74805         Suggested by Bruno Haible.
74807 2006-01-20  Karl Berry  <karl@gnu.org>
74809         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74810         until changes propagate, I guess.
74812 2006-01-19  Simon Josefsson  <jas@extundo.com>
74814         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74816 2006-01-19  Simon Josefsson  <jas@extundo.com>
74818         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74820 2006-01-19  Simon Josefsson  <jas@extundo.com>
74822         * gnulib-tool: Set check_PROGRAMS.
74824         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74825         modules/des-tests, modules/gc-arcfour-tests,
74826         modules/gc-arctwo-tests, modules/gc-des-tests,
74827         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74828         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74829         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74830         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74831         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74832         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74833         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74834         test_*_SOURCES.
74836 2006-01-18  Simon Josefsson  <jas@extundo.com>
74838         * modules/socklen (Depends-on): Depend on sys_socket.
74840 2006-01-18  Simon Josefsson  <jas@extundo.com>
74842         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74843         modules/des-tests, modules/gc-arcfour-tests,
74844         modules/gc-arctwo-tests, modules/gc-des-tests,
74845         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74846         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74847         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74848         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74849         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74850         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74851         $(EXEEXT) to automake TESTS variable, for mingw32.
74853 2006-01-17  Simon Josefsson  <jas@extundo.com>
74855         * modules/socklen (Include): Need sys/socket.h.
74857 2006-01-17  Bruno Haible  <bruno@clisp.org>
74859         * modules/ssize_t (Include): Add <sys/types.h>.
74861 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74863         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74864         it's not portable and it doesn't work with cross-compiles.
74865         Problem reported by Bruno Haible.  Fix missing-$ typo in
74866         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74867         -zignore from being used with Sun's C compiler.
74869 2006-01-12  Simon Josefsson  <jas@extundo.com>
74871         * lib/base64.c: Fix warning, reported by Bruno Haible
74872         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74874 2006-01-12  Bruno Haible  <bruno@clisp.org>
74876         * modules/ldd: New file.
74877         * build-aux/ldd.sh.in: New file.
74878         * MODULES.html.sh (Support for building libraries and executables): Add
74879         ldd.
74881 2006-01-12  Bruno Haible  <bruno@clisp.org>
74883         * m4/ldd.m4: New file.
74885 2006-01-12  Bruno Haible  <bruno@clisp.org>
74887         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74888         endless loop while replacing $auxdir with build-aux.
74890 2006-01-11  Simon Josefsson  <jas@extundo.com>
74892         * lib/stdint_.h (SIZE_MAX): Add missing (.
74894 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74896         Sync from coreutils.
74897         * lib/md5.c: Fix commentary typos.
74898         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74899         * lib/md5.h (__attribute__): Remove; unused.
74900         * lib/sha1.c: Fix commentary to match md5 better.
74901         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74902         so that we don't need to worry about alignment.  All uses changed.
74903         This merges the 2005-10-28 md5 change into sha1.
74905 2006-01-11  Jim Meyering  <jim@meyering.net>
74907         Sync from coreutils.
74908         * lib/md5.c (OP): Fix spacing.
74910 2006-01-11  Bruno Haible  <bruno@clisp.org>
74912         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74913         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74914         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74916 2006-01-11  Bruno Haible  <bruno@clisp.org>
74918         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74919         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74920         the "early" section as well.
74922 2006-01-11  Bruno Haible  <bruno@clisp.org>
74924         Avoid "ar: no archive members specified" error on MacOS X.
74925         * gnulib-tool (func_modules_add_dummy): New function.
74926         (func_import, func_create_testdir): Invoke it.
74928 2006-01-11  Bruno Haible  <bruno@clisp.org>
74930         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74931         with $auxdir in AC_CONFIG_FILES statements.
74933 2006-01-11  Bruno Haible  <bruno@clisp.org>
74935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74936         Initialize also noinst_HEADERS to empty.
74938 2006-01-11  Bruno Haible  <bruno@clisp.org>
74940         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74941         variables.
74942         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74943         autoreconf.
74945 2006-01-11  Bruno Haible  <bruno@clisp.org>
74947         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74948         overridable by the user.
74949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74951 2006-01-10  Simon Josefsson  <jas@extundo.com>
74953         * modules/sys_socket: New file.
74955 2006-01-10  Simon Josefsson  <jas@extundo.com>
74957         * m4/sys_socket_h.m4: New file.
74959 2006-01-10  Simon Josefsson  <jas@extundo.com>
74961         * lib/socket_.h: New file.
74963 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74965         * modules/readutmp (Maintainer): Add myself.
74967 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74969         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74970         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74971         People who are still concerned with buggy memcmp implementations
74972         can invoke gl_FUNC_MEMCMP themselves.
74974 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74976         * lib/regex_internal.h (BITSET_WORD_BITS):
74977         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74978         preprocessor mishandles large unsigned values as if they were signed.
74979         Problem reported by Claudio Fontana in
74980         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74982 2006-01-10  Jim Meyering  <jim@meyering.net>
74984         Avoid the double-free (first in fts_read, second in fts_close) that
74985         would occur when an `active' directory is made inaccessible (e.g.,
74986         via chmod a-x) during a traversal.
74987         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74988         before returning.  Reproduce this failure by
74989         mkdir -p a/b; cd a; chmod a-x . b
74990         Reported by Stavros Passas.
74992         Sync from coreutils.
74993         * lib/sha1.c: Tweak grammar in a comment.
74995 2006-01-10  Jim Meyering  <jim@meyering.net>
74997         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74998         Patch by Joerg Sonnenberger.
75000 2006-01-10  Bruno Haible  <bruno@clisp.org>
75002         * modules/readutmp: Depend on module free.
75003         * modules/strtok_r: Depend on module restrict.
75005 2006-01-10  Bruno Haible  <bruno@clisp.org>
75007         * modules/gettext (configure.ac): Add an invocation of
75008         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75010 2006-01-10  Bruno Haible  <bruno@clisp.org>
75012         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75013         Reported by Werner Lemberg <wl@gnu.org>.
75015 2006-01-10  Bruno Haible  <bruno@clisp.org>
75017         * lib/localcharset.c: Update from GNU gettext.
75019 2006-01-10  Bruno Haible  <bruno@clisp.org>
75021         * lib/argp.h (__const): Remove macro. Use const instead.
75022         * lib/argp-fmtstream.h (__const): Likewise.
75023         * lib/glob_.h (__const): Remove macro.
75024         * lib/glob-libc.h: Use const instead of __const.
75026 2006-01-10  Bruno Haible  <bruno@clisp.org>
75028         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75029         variable.
75030         Needed to avoid an automake error regarding the 'gettext' module.
75032 2006-01-09  Simon Josefsson  <jas@extundo.com>
75034         * modules/inet_ntop (Depends-on): Add restrict.
75036 2006-01-09  Simon Josefsson  <jas@extundo.com>
75038         * modules/gc-rijndael-tests (License): Put under LGPL.
75040         * modules/gc-des-tests (License): Likewise.
75042         * modules/gc-arcfour-tests (License): Likewise.
75044         * modules/gc-arctwo-tests (License): Likewise.
75046         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75048         * modules/gc-hmac-sha1-tests (Files): Likewise.
75050         * modules/gc-hmac-md5-tests (License): Likewise.
75052         * modules/gc-sha1-tests (License): Likewise.
75054         * modules/gc-md5-tests (License): Likewise.
75056         * modules/gc-md4-tests (License): Likewise.
75058         * modules/gc-md2-tests (License): Likewise.
75060         * modules/gc-tests (License): Likewise.
75062         * modules/des-tests (License): Likewise.
75064         * modules/md4-tests (License): Likewise.
75066         * modules/md2-tests (License): Likewise.
75068 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75070         Sync from coreutils:
75072         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75073         * modules/lib-ignore: New file.
75074         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75075         chdir-safer.m4, lchmod.m4.
75076         * modules/openat: Add mkdirat.c, openat-priv.h.
75078 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75080         Sync from coreutils.
75081         * m4/lib-ignore.m4: New file.
75082         * m4/lchmod.m4: New file.
75084 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75086         Sync from coreutils.
75087         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75088         for write access: POSIX says that must fail.
75089         * lib/fts.c (diropen): Likewise.
75090         * lib/save-cwd.c (save_cwd): Likewise.
75091         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75092         well, for minor improvements on hosts that lack O_DIRECTORY.
75093         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75094         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75095         Fall back on chown if open failed with EACCES.
75097         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75098         Report an error at compile-time if only a 1-second nominal clock
75099         resolution is found.
75101         * lib/lchmod.h: New file.
75102         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75103         (make_dir_parents): Use lchown rather than chown, and
75104         lchmod rather than chmod.
75106         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75107         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75108         "proc" reported by n0dalus.
75110         * lib/mountlist.c: Include <limits.h>.
75111         (dev_from_mount_options)
75112         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75113         New function.  It no longer assumes "dev=" has the System V meaning
75114         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75115         (read_file_system_list)
75116         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75117         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75118         dev= in that case.
75120         * lib/posixtm.h (PDS_PRE_2000): New macro.
75121         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75122         allow_century.  All usages changed.  Reject dates outside the range
75123         1969-1999 if PDS_PRE_2000 is used.
75125 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75127         Sync from coreutils.
75128         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75129         (Time of day items): Mention the possibility of leap seconds.
75130         Problem reported by Dr. David Alan Gilbert.
75132 2006-01-09  Jim Meyering  <jim@meyering.net>
75134         Sync from coreutils.
75136         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75138         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75140         * lib/modechange.c (mode_compile): Reject an invalid mode string
75141         that starts with an octal digit.  From Andreas Gruenbacher.
75143         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75144         and dup to open_safer and dup_safer, respectively.
75145         (openat_permissive): Fix typo in comment.
75147         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75148         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75149         (_): Remove; no longer needed.
75150         (openat): Renamed from rpl_openat; no need for rpl_openat
75151         since openat.h renames openat for us.
75152         Replace most of the body with a call to openat_permissive,
75153         to avoid duplicate code.
75154         Port to (probably hypothetical) environments were mode_t is
75155         wider than int.
75156         (openat_permissive): Require mode arg, so that we can check
75157         types better.  Put it just after flags.  Change cwd failure
75158         indicator from pointer-to-bool to pointer-to-errno-value.
75159         All callers changed.
75160         Invoke openat_save_fail and/or openat_restore_fail if
75161         cwd_errno is null, so that openat can call us.
75162         (openat_permissive, fdopendir, fstatat, unlinkat):
75163         Simplify errno handling to avoid some duplicate code,
75164         as it's OK to set errno on success.
75165         * lib/openat.h: Revamp code so that function macros depend on
75166         __OPENAT_PREFIX only, not also on AT_FDCWD.
75167         (openat_ro): Remove.  Caller changed to use openat_permissive.
75168         (openat_permissive): Now a macro, if not a function.
75169         (openat_restore_fail, openat_save_fail): Now always functions,
75170         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75172         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75173         and openat.c.
75174         * lib/mkdirat.c: Include openat-priv.h.
75175         Remove definitions of macros defined therein.
75176         * lib/openat.c: Likewise.
75178         * lib/mkdirat.c (mkdirat): New file and function.
75179         * lib/openat.h (mkdirat): Declare.
75181         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75183         * lib/openat.h (openat_permissive): Declare.
75184         (openat_ro): Define.
75186         * lib/openat.c (EXPECTED_ERRNO): New macro.
75187         (openat_permissive): New function -- used in remove.c rewrite.
75188         (all functions): Set errno just before returning, only if there
75189         was an actual failure.
75190         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75192         Emulate openat-family functions using Linux's procfs, if possible.
75193         Idea and some code based on Ulrich Drepper's glibc changes.
75195         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75196         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75197         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75198         before falling back on save_cwd and restore_cwd.
75199         (fdopendir, fstatat, unlinkat): Likewise.
75201         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75202         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75204         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75205         as second argument to va_arg.  Otherwise, some versions of gcc
75206         warn that `if this code is reached, the program will abort'.
75208 2006-01-09  Jim Meyering  <jim@meyering.net>
75210         Sync from coreutils.
75211         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75212         Require openat-priv.h.
75214 2006-01-09  Bruno Haible  <bruno@clisp.org>
75216         * modules/strnlen (Include): Use strnlen.h.
75218 2006-01-09  Bruno Haible  <bruno@clisp.org>
75220         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75222 2006-01-09  Bruno Haible  <bruno@clisp.org>
75224         * lib/sysexit_.h (EX_OK): New macro.
75225         Suggested by Martin Lambers <marlam@marlam.de>.
75227 2006-01-09  Bruno Haible  <bruno@clisp.org>
75229         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75230         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75232 2006-01-09  Bruno Haible  <bruno@clisp.org>
75234         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75235         numbers.
75237 2006-01-09  Bruno Haible  <bruno@clisp.org>
75239         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75240         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75241         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75242         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75244 2006-01-09  Bruno Haible  <bruno@clisp.org>
75246         * build-aux/javacomp.sh.in: New file, moved from lib/.
75247         * modules/javacomp-script (Files): Update.
75248         (configure.ac): Add AC_CONFIG_FILES invocation.
75249         (EXTRA_DIST): Remove variable.
75251         * build-aux/javaexec.sh.in: New file, moved from lib/.
75252         * modules/javaexec (Files): Update.
75253         (configure.ac): Add AC_CONFIG_FILES invocation.
75254         (EXTRA_DIST): Remove javaexec.sh.in.
75256         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75257         * modules/csharpcomp-script (Files): Update.
75258         (configure.ac): Add AC_CONFIG_FILES invocation.
75259         (EXTRA_DIST): Remove variable.
75261         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75262         * modules/csharpexec (Files): Update.
75263         (configure.ac): Add AC_CONFIG_FILES invocation.
75264         (EXTRA_DIST): Remove csharpexec.sh.in.
75266 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75268         Sync from coreutils.
75270         Add POSIX ACL support
75271         * lib/acl.h (copy_acl, set_acl): Add declarations.
75272         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75273         systems other than Linux.
75274         (chmod_or_fchmod): New function: use fchmod when possible,
75275         and chmod otherwise.
75276         (file_has_acl): Add a POSIX ACL implementation, with a
75277         Linux-specific subcase.
75278         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75279         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75280         acls are unsupported.
75281         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75282         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75283         are unsupported.
75285 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75287         Sync from coreutils.
75288         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75290 2006-01-07  Bruno Haible  <bruno@clisp.org>
75292         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75293         gl_EARLY.
75295 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75297         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75298         Problem reported for Mingw by Mark Junker.
75300 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75302         * README: Gnulib normally doesn't generate a tarball.
75304 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75306         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75307         long int, not int, for nanosecond counts, so that people who are
75308         used to POSIX struct timespec won't be surprised.  Reported by Jim
75309         Meyering.
75311 2005-12-28  Bruno Haible  <bruno@clisp.org>
75313         * build-aux/config.rpath: Update from GNU gettext.
75315 2005-12-16  Jim Meyering  <jim@meyering.net>
75317         * modules/fprintftime: New module.
75318         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75320 2005-12-16  Jim Meyering  <jim@meyering.net>
75322         * m4/fprintftime.m4: New file.
75324 2005-12-16  Jim Meyering  <jim@meyering.net>
75326         * lib/fprintftime.c, lib/fprintftime.h: New files.
75328 2005-12-15  Simon Josefsson  <jas@extundo.com>
75330         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75331         new m4/socklen.m4.
75333 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75335         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75336         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75338 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75340         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75341         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75342         struct uparams is valid. Fall back to the default values if it is
75343         not.
75345 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75347         * modules/argp (Files): Add argp-pin.c
75348         (Depends-on): dirname
75349         (lib_SOURCES): Add argp-pin.c
75351 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75353         * m4/argp.m4:  Check if program_invocation_name and
75354         program_invocation_short_name are declared and define appropriate
75355         macros if they are not.
75357 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75359         * lib/argp-help.c (__argp_base_name): New function
75360         (__argp_short_program_name): Rewrite using __argp_base_name
75361         * lib/argp-namefrob.h: Define program_invocation_name and
75362         program_invocation_short_name if requested
75363         (__argp_base_name): Add prototype
75364         * lib/argp-parse.c (argp_def): Use gettext wrappers
75365         (argp_default_parser): Use __argp_base_name
75366         * lib/argp-pin.c: New file. Defines program_invocation_name and
75367         program_invocation_short_name on systems that lack them.
75369 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75371         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75372         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75373         porting problem reported by Georg Schwarz in
75374         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75376 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75378         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75379         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75380         porting problem reported by Georg Schwarz in
75381         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75383 2005-12-05  Bruno Haible  <bruno@clisp.org>
75385         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75386         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75387         Reported by Mark Junker <mjscod@gmx.de>.
75389 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75391         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75392         Use implementation from Albert Chin, with some
75393         comments/corrections by Stepan Kasal and myself.
75395 2005-12-02  Bruno Haible  <bruno@clisp.org>
75397         * gnulib-tool (func_import): Accept GPLed build tool modules when
75398         --lgpl is given.
75399         * modules/csharpcomp-script: New file.
75400         * modules/csharpcomp: Depend on it.
75401         * modules/javacomp-script: New file.
75402         * modules/javacomp: Depend on it.
75403         Suggested by Simon Josefsson.
75405 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75407         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75408         statement, to work around an HP-UX 10.20 compiler bug reported by
75409         Peter O'Gorman.
75411 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75413         * modules/savedir (Depends-on): Add openat.
75415 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75417         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75418         (uintmax_t) [defined uintmax_t]: Do not declare.
75419         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75420         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75421         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75422         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75423         sake of portability to weird hosts that C allows (though we don't
75424         know of any practical examples).
75426         * lib/savedir.h (fdsavedir): New decl.
75427         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75428         contains most of the former guts of savedir.
75429         (savedir): Use savedirstream.
75430         Include "openat.h".
75432 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75434         * modules/obstack (Files): Add m4/ulonglong.m4.
75435         Problem reported by Davide Angelocola.
75437 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75439         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75440         coreutils no longer futzes with rounding modes.
75442 2005-11-14  Jim Meyering  <jim@meyering.net>
75444         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75445         replacement of mkstemp.
75447 2005-11-10  Simon Josefsson  <jas@extundo.com>
75449         * lib/readline.c: Remove EOL.
75451 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75453         * modules/gethrxtime (Depends-on): Add gettime.
75455 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75457         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75458         or gettimeofday; no longer needed.
75460 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75462         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75463         time business.
75464         (gethrxtime) [! (HAVE_NANOUPTIME
75465         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75466         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75467         our own approximation.
75469 2005-11-08  Eric Blake  <ebb9@byu.net>
75471         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75473 2005-11-08  Eric Blake  <ebb9@byu.net>
75475         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75477 2005-11-04  Bruno Haible  <bruno@clisp.org>
75479         * gnulib-tool: Implement --update mode.
75481 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75483         Fix porting problem reported by Theodoros V. Kalamatianos.
75484         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75485         Don't assume that futimes failing means we must fail.
75487 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75489         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75490         variables to suggest the intended function of the PATH_MAX check.
75492 2005-10-30  Kean Johnston  <jkj@sco.com>
75494         Trivial changes to support SCO systems.
75495         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75496         as PATH_MAX.
75497         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75498         where __ptr is null when no I/O is pending.
75500 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75502         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75503         leave errno alone.  Problem reported by Dmitry V. Levin.
75505 2005-10-28  Simon Josefsson  <jas@extundo.com>
75507         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75508         Test more.
75510         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75512         * modules/md2, modules/md2-tests: New files.
75514 2005-10-28  Simon Josefsson  <jas@extundo.com>
75516         * m4/inet_ntop.m4: More tests.
75518         * m4/gc-md2.m4, md2.m4: New file.
75520 2005-10-28  Simon Josefsson  <jas@extundo.com>
75522         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75523         "restrict" keywords, as per POSIX.  Protect the function
75524         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75525         Don't use K&R prototypes.  Check the sprintf return values.
75526         Re-define EAFNOSUPPORT if not present.  Indent.
75528         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75529         suggested by Bruno Haible <bruno@clisp.org>.
75531         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75533         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75535         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75536         libgcrypt).
75538         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75540         * lib/md2.h, lib/md2.c: New files.
75542 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75544         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75545         errno alone.  Problem reported by Frederic Jolliton.
75547 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75549         * modules/verify (License): Change from GPL to LGPL.  This is a
75550         tiny module and there are apparently near-equivalents that are
75551         under the BSD license.
75553 2005-10-24  Simon Josefsson  <jas@extundo.com>
75555         * modules/sha1: Relicense to LGPL.
75557 2005-10-24  Simon Josefsson  <jas@extundo.com>
75559         * lib/md4.h: Shrink buffer size, now that we changed the type.
75561 2005-10-23  Simon Josefsson  <jas@extundo.com>
75563         * gnulib-tool (func_import): Fix --tests-base.
75565 2005-10-22  Simon Josefsson  <jas@extundo.com>
75567         * modules/arcfour (Depends-on): Need stdint.
75569 2005-10-22  Simon Josefsson  <jas@extundo.com>
75571         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75572         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75574 2005-10-22  Simon Josefsson  <jas@extundo.com>
75576         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75577         suggested by Bruno Haible <bruno@clisp.org>.
75579 2005-10-22  Simon Josefsson  <jas@extundo.com>
75581         * lib/crc.h: Include stddef.h, for size_t.
75583 2005-10-22  Simon Josefsson  <jas@extundo.com>
75585         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75586         arcfour_context struct (simplify test vector testing in GNU
75587         Shishi).
75589 2005-10-21  Simon Josefsson  <jas@extundo.com>
75591         * modules/des, modules/des-tests: New files.
75593         * modules/gc-des, modules/gc-des-tests: New files.
75595         * tests/test-des.c, tests/test-gc-des.c: New file.
75597 2005-10-21  Simon Josefsson  <jas@extundo.com>
75599         * modules/arctwo, modules/arctwo-tests: New files.
75601         * tests/test-arctwo.c: New file.
75603         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75605         * tests/test-gc-arctwo.c: New file.
75607 2005-10-21  Simon Josefsson  <jas@extundo.com>
75609         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75610         Bruno Haible <bruno@clisp.org>.
75612         * m4/gc-des.m4: New file.
75614 2005-10-21  Simon Josefsson  <jas@extundo.com>
75616         * m4/arctwo.m4: New file.
75618         * m4/gc-arctwo.m4: New file.
75620 2005-10-21  Simon Josefsson  <jas@extundo.com>
75622         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75623         block.
75625 2005-10-21  Simon Josefsson  <jas@extundo.com>
75627         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75628         <bruno@clisp.org>.
75630         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75632         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75633         Bruno Haible <bruno@clisp.org>.
75635         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75636         <bruno@clisp.org>.
75638 2005-10-21  Simon Josefsson  <jas@extundo.com>
75640         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75642 2005-10-21  Simon Josefsson  <jas@extundo.com>
75644         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75646 2005-10-21  Simon Josefsson  <jas@extundo.com>
75648         * lib/des.h, lib/des.c: New files.
75650         * lib/gc-gnulib.c: Support DES.c
75652 2005-10-21  Simon Josefsson  <jas@extundo.com>
75654         * lib/arctwo.h, lib/arctwo.c: New files.
75656         * lib/gc-gnulib.c: Support ARCTWO.
75658 2005-10-21  Simon Josefsson  <jas@extundo.com>
75660         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75661         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75663 2005-10-21  Simon Josefsson  <jas@extundo.com>
75665         * gnulib-tool (func_import, func_create_testdir): Define automake
75666         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75667         Makefile.am snippet),
75668         suggested by Bruno Haible <bruno@clisp.org>.
75670         * modules/gc (Makefile.am): Use it.
75672 2005-10-21  Bruno Haible  <bruno@clisp.org>
75674         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75675         patch.
75677 2005-10-19  Simon Josefsson  <jas@extundo.com>
75679         * tests/test-gc-rijndael.c: New file.
75681         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75683 2005-10-19  Simon Josefsson  <jas@extundo.com>
75685         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75686         interface too.
75688 2005-10-19  Simon Josefsson  <jas@extundo.com>
75690         * tests/test-gc-arcfour.c: New file.
75692         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75694 2005-10-19  Simon Josefsson  <jas@extundo.com>
75696         * modules/gc-md4, modules/gc-md4-tests: New file.
75698         * tests/test-gc-md4.c: New file.
75700 2005-10-19  Simon Josefsson  <jas@extundo.com>
75702         * m4/gc-md4.m4: New file.
75704 2005-10-19  Simon Josefsson  <jas@extundo.com>
75706         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75707         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75708         <kasal@ucw.cz>.
75710 2005-10-19  Simon Josefsson  <jas@extundo.com>
75712         * m4/gc-arcfour.m4: New file.
75714         * m4/gc-rijndael.m4: New file.
75716 2005-10-19  Simon Josefsson  <jas@extundo.com>
75718         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75720 2005-10-19  Simon Josefsson  <jas@extundo.com>
75722         * lib/gc-gnulib.c: Support ARCFOUR.
75724 2005-10-19  Simon Josefsson  <jas@extundo.com>
75726         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75727         support.
75729         * lib/gc.h: Add ECB enum type.
75731         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75733 2005-10-18  Simon Josefsson  <jas@extundo.com>
75735         * tests/test-md5.c: New file.
75737         * modules/md5-tests: New file.
75739 2005-10-18  Simon Josefsson  <jas@extundo.com>
75741         * tests/test-md4.c: New file.
75743         * modules/md4, modules/md4-tests: New files.
75745 2005-10-18  Simon Josefsson  <jas@extundo.com>
75747         * m4/md4.m4: New file.
75749 2005-10-18  Simon Josefsson  <jas@extundo.com>
75751         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75753 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75755         * gnulib-tool (func_create_testdir): Omit the second check whether
75756         BUILT_SOURCES in nonempty.
75758 2005-10-17  Simon Josefsson  <jas@extundo.com>
75760         * tests/test-rijndael.c: New file.
75762 2005-10-17  Simon Josefsson  <jas@extundo.com>
75764         * modules/sha1: Depend on stdint instead of md5.
75766         * modules/md5: Depend on stdint, remove uint32_t.
75768 2005-10-17  Simon Josefsson  <jas@extundo.com>
75770         * modules/gc-sha1-tests: New file.
75772         * tests/test-gc-sha1.c: New file.
75774 2005-10-17  Simon Josefsson  <jas@extundo.com>
75776         * m4/md5.m4: Remove call to uint32_t.m4.
75778 2005-10-17  Simon Josefsson  <jas@extundo.com>
75780         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75782         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75783         md5.h.
75785         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75787         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75789 2005-10-17  Simon Josefsson  <jas@extundo.com>
75791         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75793 2005-10-17  Simon Josefsson  <jas@extundo.com>
75795         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75797 2005-10-17  Simon Josefsson  <jas@extundo.com>
75799         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75801         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75803 2005-10-17  Bruno Haible  <bruno@clisp.org>
75805         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75806         that it can also be used in a test.
75808 2005-10-16  Bruno Haible  <bruno@clisp.org>
75810         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75811         TESTS_ENVIRONMENT, so that individual tests can augment it.
75813         * gnulib-tool (func_create_testdir): Use an intermediate target for
75814         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75815         macros, like $(ALLOCA_H), which cannot be passed through the command
75816         line.
75818 2005-10-15  Simon Josefsson  <jas@extundo.com>
75820         * modules/rijndael-tests: New file.
75822         * modules/rijndael: New file.
75824 2005-10-15  Simon Josefsson  <jas@extundo.com>
75826         * m4/rijndael.m4: New file.
75828 2005-10-15  Simon Josefsson  <jas@extundo.com>
75830         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75832         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75834 2005-10-14  Simon Josefsson  <jas@extundo.com>
75836         * tests/test-arcfour.c: New file.
75838         * modules/arcfour, modules/arcfour-tests: New files.
75840 2005-10-14  Simon Josefsson  <jas@extundo.com>
75842         * m4/arcfour.m4: New file.
75844 2005-10-14  Simon Josefsson  <jas@extundo.com>
75846         * lib/arcfour.h, lib/arcfour.c: New files.
75848 2005-10-14  Roland McGrath  <roland@redhat.com>
75850         Import from libc.  [BZ #1331]
75851         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75852         macro argument.
75853         Reported by Matej Vela <vela@debian.org>.
75855 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75857         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75858         include <wchar.h>; no longer needed.
75860 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75862         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75864 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75865         and  Ulrich Drepper  <drepper@redhat.com>
75867         Import from libc.
75868         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75869         instead of inline stream orientation test and two separate
75870         function calls.  Pay no attention to USE_IN_LIBIO.
75872 2005-10-13  Simon Josefsson  <jas@extundo.com>
75874         * modules/gc-hmac-md5-tests: New file.
75876         * tests/test-gc-hmac-sha1.c: New file.
75878         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75880         * modules/gc-hmac-md5-tests: New file.
75882         * tests/test-gc-md5.c: New file.
75884         * modules/gc-md5-tests: New file.
75886 2005-10-13  Simon Josefsson  <jas@extundo.com>
75888         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75889         Move memory allocation outside of loop.
75891 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75893         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75894         intermediate directory is in a read-only file system.  Problem
75895         reported by Eric Blake.
75897 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75899         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75901 2005-10-12  Simon Josefsson  <jas@extundo.com>
75903         * tests/test-hmac-sha1.c: New file.
75905         * modules/hmac-sha1-tests: New file.
75907         * modules/hmac-sha1: New file.
75909 2005-10-12  Simon Josefsson  <jas@extundo.com>
75911         * modules/gc-sha1: New file.
75913 2005-10-12  Simon Josefsson  <jas@extundo.com>
75915         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75917         * tests/test-gc-pbkdf2-sha1.c: New file.
75919 2005-10-12  Simon Josefsson  <jas@extundo.com>
75921         * modules/gc-md5, modules/gc-hmac-md5: New files.
75923         * modules/gc (Files): Remove md5, memxor and hmac files.
75925 2005-10-12  Simon Josefsson  <jas@extundo.com>
75927         * m4/gc-pbkdf2-sha1.m4: New file.
75929         * m4/gc-hmac-sha1.m4: New file.
75931         * m4/gc-sha1: New file.
75933         * m4/hmac-sha1.m4: New file.
75935 2005-10-12  Simon Josefsson  <jas@extundo.com>
75937         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75939         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75941 2005-10-12  Simon Josefsson  <jas@extundo.com>
75943         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75944         suggested by Bruno Haible <bruno@clisp.org>.
75946 2005-10-12  Simon Josefsson  <jas@extundo.com>
75948         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75950 2005-10-12  Simon Josefsson  <jas@extundo.com>
75952         * lib/gc-pbkdf2-sha1.c: New file.
75954         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75956 2005-10-12  Simon Josefsson  <jas@extundo.com>
75958         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75960         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75962 2005-10-12  Simon Josefsson  <jas@extundo.com>
75964         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75965         GC_USE_HMAC_MD5, respectively.
75967         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75968         (gc_md5): Fix typo.
75970         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75972         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75974         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75976 2005-10-12  Bruno Haible  <bruno@clisp.org>
75978         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75979         Reported by Stepan Kasal <kasal@ucw.cz>.
75981 2005-10-11  Simon Josefsson  <jas@extundo.com>
75983         * tests/test-crc.c: New file.
75985         * modules/crc, modules/crc-tests: New files.
75987 2005-10-11  Simon Josefsson  <jas@extundo.com>
75989         * m4/crc.m4: New file.
75991 2005-10-11  Simon Josefsson  <jas@extundo.com>
75993         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75995         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75997         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75999 2005-10-11  Simon Josefsson  <jas@extundo.com>
76001         * lib/crc.h, lib/crc.c: New files.
76003         * lib/gc.h (gc_hash_buffer): Add doc.
76005 2005-10-11  Bruno Haible  <bruno@clisp.org>
76007         * modules/c-strcasestr: New file.
76008         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76010 2005-10-11  Bruno Haible  <bruno@clisp.org>
76012         * modules/c-strcase: New file.
76013         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76015 2005-10-11  Bruno Haible  <bruno@clisp.org>
76017         * lib/strcasecmp.c: Include limits.h.
76018         (strcasecmp): Avoid integer overflow on exotic platforms.
76019         * lib/strncasecmp.c: Include limits.h.
76020         (strncasecmp): Avoid integer overflow on exotic platforms.
76021         Reported by Paul Eggert.
76023 2005-10-11  Bruno Haible  <bruno@clisp.org>
76025         * lib/c-strcasestr.h: New file, from GNU gettext.
76026         * lib/c-strcasestr.c: New file, from GNU gettext.
76028 2005-10-11  Bruno Haible  <bruno@clisp.org>
76030         * lib/c-strcase.h: New file, from GNU gettext.
76031         * lib/c-strcasecmp.c: New file, from GNU gettext.
76032         * lib/c-strncasecmp.c: New file, from GNU gettext.
76034 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76036         * modules/mempcpy (License): GPL -> LGPL.
76037         * modules/strchrnul (License): Likewise.
76038         * modules/sysexits (License): Likewise.
76040 2005-10-08  Simon Josefsson  <jas@extundo.com>
76042         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76044 2005-10-07  Simon Josefsson  <jas@extundo.com>
76046         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76048 2005-10-06  Simon Josefsson  <jas@extundo.com>
76050         * tests/test-hmac-md5.c: New file.
76052         * modules/hmac-md5-tests: New file.
76054         * modules/hmac-md5: New file.
76056 2005-10-06  Simon Josefsson  <jas@extundo.com>
76058         * m4/hmac-md5.m4: New file.
76060         * m4/memxor.m4: Require gl_C_RESTRICT.
76062 2005-10-06  Simon Josefsson  <jas@extundo.com>
76064         * lib/memxor.c (memxor): Avoid casts and warnings.
76066 2005-10-06  Simon Josefsson  <jas@extundo.com>
76068         * lib/hmac-md5.c: New file.
76070         * lib/hmac.h: New file.
76072 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76075         promotes to int, not unsigned int, to catch the AIX 5.3
76076         compiler bug.
76078 2005-10-05  Simon Josefsson  <jas@extundo.com>
76080         * modules/memxor: New file.
76082         * modules/iconv (Files): Move config.rpath to havelib, it is used
76083         there.
76085         * modules/havelib (Files): Add config.rpath.
76087 2005-10-05  Simon Josefsson  <jas@extundo.com>
76089         * m4/memxor.m4: New file.
76091 2005-10-05  Simon Josefsson  <jas@extundo.com>
76093         * lib/memxor.c (memxor): Fix compiler error.
76095         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76096         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76098         * lib/memxor.h, lib/memxor.c: New files.
76100         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76101         we assume all systems have it, suggested by Jim Meyering
76102         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76103         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76104         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76105         same reasons.
76107 2005-10-05  Simon Josefsson  <jas@extundo.com>
76109         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76111 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76114         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76115         needed, since the source code now assumes these .h files.
76117 2005-10-05  Derek Price  <derek@ximbiot.com>
76119         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76121 2005-10-05  Bruno Haible  <bruno@clisp.org>
76123         * modules/stdint (License): Change to LGPL.
76125 2005-10-04  Simon Josefsson  <jas@extundo.com>
76127         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76128         D. Baushke" <mdb@gnu.org>.
76130 2005-10-04  Bruno Haible  <bruno@clisp.org>
76132         * lib/verify.h (verify_true): Provide alternative definition for C++.
76134 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76136         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76137         (SSIZE_MAX): New macro, if not already defined.
76138         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76139         than 2 GiB.
76141 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76143         Sync from coreutils.
76144         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76145         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76146         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76147         ULLONG_MAX doesn't work with 2.7.2.1.
76149 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76151         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76152         From Ben Pfaff.
76154         * modules/exclude (Depends-on): Depend on verify.
76155         * modules/strtoimax (Depends-on): Likewise.
76156         * modules/utimecmp (Depends-on): Likewise.
76158 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76160         * lib/exclude.c: Include verify.h.
76161         (verify): Remove.  All callers changed to use verify.h's version.
76162         * lib/strtoimax.c: Likewise.
76163         * lib/utimecmp.c: Likewis.e
76165         Sync from coreutils.
76166         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76167         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76168         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76169         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76170         bother returning ENOSYS if settimeofday or stime fails; just let
76171         them return whatever errno they want to return.
76172         * lib/utimens.c: Include unistd.h, for dup2.
76173         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76174         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76176 2005-10-02  Jim Meyering  <jim@meyering.net>
76178         Sync from coreutils.
76179         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76180         from glibc-2.2.5 that fails for read-only files.
76182 2005-10-02  Jim Meyering  <jim@meyering.net>
76184         Sync from coreutils.
76185         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76186         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76187         `#if HAVE_CONFIG_H'.
76188         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76189         Remove AT_FDCWD test.
76190         Do not consume the fd unless successful.
76191         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76192         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76193         block, so that we don't even try to compile it if settimeofday is
76194         available.  This works around a compilation failure on OSF1 V5.1,
76195         due to stime requiring a `long int*' while tv_sec is `int'.
76197 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76199         Sync from coreutils.
76200         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76201         against `yes', rather than just testing for nonempty.
76203 2005-10-01  Simon Josefsson  <jas@extundo.com>
76205         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76206         and Darwin.
76208         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76209         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76210         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76211         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76212         Check if struct addrinfo is declared.
76214 2005-10-01  Simon Josefsson  <jas@extundo.com>
76216         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76217         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76218         AI_* and EAI_* definitions.  Protect function declarations.
76220 2005-10-01  Jim Meyering  <jim@meyering.net>
76222         Sync from coreutils.
76224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76225         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76226         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76228         in the inet and nsl libraries.  Required on Solaris 5.7.
76230 2005-10-01  Jim Meyering  <jim@meyering.net>
76232         Sync from coreutils.
76233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76234         in the inet and nsl libraries.  Required on Solaris 5.7.
76236 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76238         * lib/getdelim.c (getdelim): Remove unused variables.
76240 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76242         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76243         so that the code works even with ancient cpp.  Portability problem
76244         with GCC 2.7.2.1 reported by Thomas M.Ott.
76246 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76248         * modules/regex (Depends-on): Add strcase.
76250         * modules/gethostname (Licence): Change from GPL to LGPL, since
76251         gethostname.c is a trivial implementation of a standard library
76252         function.
76253         * modules/poll (License): Change from GPL to LGPL, since it's
76254         derived from LGPL code.
76256 2005-09-27  Jim Meyering  <jim@meyering.net>
76258         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76259         HAVE_CONFIG_H.
76261         * lib/intprops.h (signed_type_or_expr__): Define.
76262         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76263         for unsigned types.
76265 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76267         * lib/verify.h (verify_expr): Remove, replacing with:
76268         (verify_true): New macro that returns true instead of void.
76269         (verify_type__): Remove.
76270         (verify): Use verify_true rather than verify_type__.
76272 2005-09-26  Bruno Haible  <bruno@clisp.org>
76274         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76275         is necessary.
76276         (lib_SOURCES): Remove mbchar.c.
76277         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76278         (Files): Add m4/mbrtowc.m4.
76279         * modules/mbiter: Likewise.
76280         * modules/mbuiter: Likewise.
76282 2005-09-26  Bruno Haible  <bruno@clisp.org>
76284         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76285         compile mbchar.c if they are not both present.
76286         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76287         * m4/mbiter.m4 (gl_MBITER): Likewise.
76288         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76289         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76290         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76292 2005-09-25  Jim Meyering  <jim@meyering.net>
76294         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76295         also uses socklen_t.
76297 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76299         * lib/utimens.c (ENOSYS): Define if not already defined.
76300         (futimens): Support having a null PATH if the file descriptor
76301         is nonnegative.
76303         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76304         Remove.
76305         (__attribute): Define to empty unless GCC 3.1 or later.
76306         This works around a core dump on OpenBSD 3.4, which has GCC
76307         2.95.3, which dumps core when given __attribute__(()).  It also
76308         simplifies other tests, since we really don't want to bother with
76309         worrying about which ancient version of GCC supported what.
76310         Original problem reported by Yoann Vandoorselaere, with part of
76311         the fix suggested by Derek Price.
76313 2005-09-24  Jim Meyering  <jim@meyering.net>
76315         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76316         so we can once again use a positive bitfield width of 1 -- now we
76317         don't have to explain why we were using a bitfield width of 2.
76319 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76321         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76322         and similarly for the other external symbols.  Problem reported
76323         by James Gallager.
76325         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76326         bug reported by Jim Meyering.
76328         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76329         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76330         not needed, since socklen is a prerequisite module.
76332 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76334         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76335         Problem reported by Eric Blake.
76336         (getaddrinfo): Initialize se so that it's not garbage.
76337         Redo internal storage allocation so that it doesn't make unportable
76338         assumptions about alignment.
76339         Fix a memory leak.
76341         * lib/utimens.c (futimens): Use futimesat if available.
76342         Prefer it to futimes since it doesn't have the futimes bug.
76344         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76345         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76346         Instead, declare a function that returns a pointer to an array,
76347         and use verify_type__ to declare the size of the array.
76348         Problem and germ of a solution reported by Bruno Haible.
76349         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76350         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76352 2005-09-23  Jim Meyering  <jim@meyering.net>
76354         Sync from coreutils.
76355         Correct build failure (socklen_t not defined) on at least
76356         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76359 2005-09-23  Jim Meyering  <jim@meyering.net>
76361         * modules/getaddrinfo (Depends-on): Add socklen.
76363 2005-09-23  Bruno Haible  <bruno@clisp.org>
76365         * tests/test-verify.c: New file.
76367 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76369         Sync from coreutils.
76371         * modules/argmatch (Depends-on): Add verify.
76372         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76373         unistd-safer.
76374         * modules/save-cwd (Depends-on): Likewise.
76376         * modules/openat (Files): Add lib/openat-die.c.
76377         (Depends-on): Remove error, exitfail.
76378         Add dirname.
76380         * modules/verify: New file.
76381         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76382         with "verify" module.
76384 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76386         Sync from coreutils.
76388         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76389         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76390         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76391         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76392         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76393         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76394         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76395         Don't bother checking for string.h, stdlib.h, unistd.h.
76396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76397         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76398         module's job.
76399         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76400         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76402         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76403         (gl_GETDATE): Use it.
76405         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76407 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76409         Sync from coreutils.
76411         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76412         stat-time.h.
76413         * lib/argmatch.h: Include verify.h
76414         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76415         (ARGMATCH_ASSERT): Remove; unused.
76416         * lib/canonicalize.c: Assume STDC_HEADERS.
76417         * lib/exclude.c: Include "strcase.h".
76418         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76419         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76420         and stdio-safer.h.
76421         (getusershell): Call fopen, not fopen_safer.
76422         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76423         Do not include unistd-safer.h.
76424         (save_cwd): Don't call fd_safer; no longer needed
76425         now that we include fcntl--.h.
76427         * lib/getdate.y (relative_time): New type.
76428         (RELATIVE_TIME_0): New constant.
76429         (parser_control): Use relative_time instead of doing it ourselves.
76430         (%union): Add new relative_time rel member.
76431         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76432         Now typeless.
76433         (relunit, relunit_snumber): Now of type rel.
76434         (zone, rel, relunit, get_date): Adjust to above changes.
76436         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76437         Do not include unistd-safer.h.
76438         (getloadavg): Don't call fd_safer; no longer needed
76439         now that we include fcntl--.h.
76441         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76442         (make_dir_parents): Treat ENOSYS like EEXIST.
76444         Improve quality of diagnostics on restore_cwd failure.
76445         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76446         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76447         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76448         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76449         each time through the loop.  Do not diagnose restore_cwd failure;
76450         that is the caller's job (and perhaps the caller does not care).
76452         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76453         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76454         If the file already exists but is not a directory, don't bother
76455         to try to make its parents.
76456         Close potential file descriptor leak if we can't chdir("/") (!).
76457         Don't always return true if chdir($PWD) fails; return true only
76458         if the requested action was done successfully (except for the
76459         chdir($PWD)).
76460         Don't log final directory unless we actually made it.
76461         Refactor to avoid duplicate code to fix up permissions.
76462         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76464         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76465         to make it a bit faster and (I hope) clearer.
76466         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76467         Fix bug in formats like %2N.
76469         * lib/verify.h: New file.
76471 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76473         Sync from coreutils.
76474         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76476 2005-09-22  Jim Meyering  <jim@meyering.net>
76478         Sync from coreutils.
76480         * m4/lstat.m4 (gl_FUNC_LSTAT):
76481         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76482         Remove obsolete comment.
76483         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76484         * m4/xstrtod.m4: Likewise.
76486         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76488 2005-09-22  Jim Meyering  <jim@meyering.net>
76490         Sync from coreutils.
76492         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76494         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76495         the .tm_year member, since otherwise gcc-4.0 would now warn about
76496         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76498         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76499         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76501         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76502         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76503         when run in a time zone for which daylight savings time is in effect
76504         for the starting date.
76506         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76507         stop us from restricting permissions of just-created absolute-named
76508         directories.
76509         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76510         to restore initial working directory.
76511         * lib/mkdir-p.c (make_dir_parents): New parameter:
76512         different_working_dir, to tell caller if/when we change the working
76513         directory and are unable to return to the initial one.
76514         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76515         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76516         `return false'.  This fixes a bug introduced on 2004-07-30.
76518         * lib/openat.c (fdopendir): Be sure to close the supplied
76519         file descriptor before returning.  This makes our replacement
76520         implementation a little closer to Solaris's, where fdopendir
76521         ties the file descriptor to the returned DIR* pointer.
76522         * lib/openat.c (unlinkat): New function.
76523         * lib/openat.h (unlinkat): Add prototype.
76524         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76525         (openat_restore_fail): Rename from openat_restore_die.
76526         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76528         Provide an alternative to exiting immediately upon save_cwd or
76529         restore_cwd failure.  Now, an application can arrange e.g.,
76530         to perform a longjump in that case.
76531         * lib/openat.c: Include dirname.h.
76532         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76533         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76534         and openat_restore_die rather than calling error directly.
76535         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76537         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76538         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76539         define.
76541         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76542         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76543                             int utc, int nanoseconds);
76544         Background:
76545         date should not have to allocate a megabyte of virtual memory to
76546         handle a format argument like +%1048575T.  When implemented with
76547         strftime, it must allocate such a buffer, use strftime to fill it
76548         in, print it, then free it.
76549         With fprintftime, it simply prints everything and exits.
76550         With no need for memory allocation, that's one fewer way to fail.
76551         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76552         optional field width, not before, so we accept %9:z, not %:9z.
76553         (my_strftime): Be sure to use L_('x') for literals.
76555         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76556         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76557         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76558         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76559         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76560         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76561         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76562         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76563         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76564         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76565         * lib/xgethostname.c, lib/xreadlink.c:
76566         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76568         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76569         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76570         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76571         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76572         and don't include <sys/file.h>).
76574 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76576         Sync from coreutils.
76578         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76579         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76580         [!LDAV_DONE]: Avoid unused variable warning.
76582 2005-09-21  Bruno Haible  <bruno@clisp.org>
76584         * lib/unicodeio.h (unicode_to_mb): New declaration.
76586 2005-09-20  Derek Price  <derek@ximbiot.com>
76588         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76589         getaddrinfo.h.
76591 2005-09-20  Bruno Haible  <bruno@clisp.org>
76593         * gnulib-tool: Remove trailing slashes from the values specified for
76594         --source-base, --m4-base, --tests-base, --aux-dir.
76595         Suggested by Simon Josefsson <jas@extundo.com>.
76597 2005-09-20  Bruno Haible  <bruno@clisp.org>
76599         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76600         func_modules_to_filelist, func_import, func_create_testdir): Make all
76601         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76602         change when gnulib-tool is invoked in a different locale.
76604 2005-09-19  Simon Josefsson  <jas@extundo.com>
76606         * m4/socklen.m4: Fix typo.
76608 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76610         Use a consistent style for including <config.h>.
76611         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76612         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76613         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76614         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76615         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76616         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76617         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76618         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76619         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76620         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76621         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76622         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76623         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76624         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76625         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76626         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76627         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76628         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76629         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76630         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76631         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76632         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76633         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76634         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76635         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76636         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76637         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76638         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76639         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76640         lib/xstrtoumax.c, lib/yesno.c:
76641         Standardize inclusion of config.h.
76642         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76643         lib/inttostr.h:  Removed inclusion of config.h from header files.
76644         * lib/inttostr.c:  Adjusted in-tree users.
76645         * lib/timespec.h: Remove superfluous warning to include config.h.
76646         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76647         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76648         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76649         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76650         config.h with HAVE_CONFIG_H.
76652 2005-09-19  Jim Meyering  <jim@meyering.net>
76654         * modules/pathmax (License): Change to LGPL.
76656 2005-09-19  Derek Price  <derek@ximbiot.com>
76658         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76660 2005-09-19  Bruno Haible  <bruno@clisp.org>
76662         * gnulib-tool (import): Provide default for --tests-base.
76664 2005-09-19  Bruno Haible  <bruno@clisp.org>
76666         * doc/quote.texi: New file, extracted from gnulib.texi.
76667         * doc/ctime.texi: New file, extracted from gnulib.texi.
76668         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76669         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76670         * doc/gnulib.texi: Include them.
76672 2005-09-18  Bruno Haible  <bruno@clisp.org>
76674         Portability fix.
76675         * gnulib-tool (func_readlink): New function.
76676         (func_ln_if_changed): Use it.
76678 2005-09-18  Bruno Haible  <bruno@clisp.org>
76680         * gnulib-tool: Support --with-tests also with --import.
76681         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76682         (func_import): Use variables $testsbase and $inctests. Emit a
76683         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76684         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76685         SUBDIRS += $testsdir.
76686         (func_create_testdir): Update.
76688 2005-09-18  Bruno Haible  <bruno@clisp.org>
76690         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76691         instead of $dry_run.
76692         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76693         (func_ln_if_changed): Don't handle dry-run here.
76694         (func_import): In dry-run mode, detect more precisely which actions
76695         would be performed, and don't use "...ing" verbs.
76697 2005-09-18  Bruno Haible  <bruno@clisp.org>
76699         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76700         (func_import): Use join on two temporary files instead of three nested
76701         loops, in order to determine which files are new or old.
76703 2005-09-18  Bruno Haible  <bruno@clisp.org>
76705         * gnulib-tool (func_import): Comment out code that spits out the
76706         new files with --dry-run.
76708 2005-09-18  Bruno Haible  <bruno@clisp.org>
76710         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76712 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76714         * lib/stat-time.h: New file.
76715         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76716         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76717         in a different way.
76718         (timespec_cmp): New function.
76719         * lib/utimecmp.c: Include stat-time.h.
76720         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76721         members exist, not on the obsolescent ST_MTIM_NSEC.
76722         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76724 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76726         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76728 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76730         * MODULES.html.sh (File system functions): Add stat-time.
76731         * modules/stat-time: New file.
76732         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76733         is now done in a different way, by the stat-time module.
76734         * modules/utimecmp (Depends-on): Add stat-time.
76736 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76738         * m4/st_mtim.m4: Remove.  Superseded by...
76739         * m4/stat-time.m4: New file.
76740         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76741         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76743 2005-09-15  Derek Price  <derek@ximbiot.com>
76745         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76747 2005-09-15  Derek Price  <derek@ximbiot.com>
76749         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76750         * lib/regex_internal.c: Ditto, using this...
76751         (__GNUC_PREREQ): ...new macro.
76752         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76753         using...
76754         (__GNUC_PREREQ): ...this new macro.
76756         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76758 2005-09-15  Derek Price  <derek@ximbiot.com>
76759             Paul Eggert  <eggert@cs.ucla.edu>
76761         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76762         changes, consolidating in...
76763         * lib/regex_internal.h: ...this file.
76765 2005-09-13  Jim Meyering  <jim@meyering.net>
76767         * lib/canon-host.c: Filter through gnu indent and reword comments
76768         slightly.
76769         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76771 2005-09-13  Derek Price  <derek@ximbiot.com>
76773         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76774         failure.
76775         Reported by Jim Meyering  <jim@meyering.net>.
76777 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76779         * lib/base64.c: Typo.
76780         (base64_encode): Put b64str in initialized data section.
76782 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76784         Merge glibc and coreutils changes into gnulib, plus a few
76785         extra fixes.
76786         * lib/md5.c: Use #error rather than a string.
76787         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76788         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76789         (__attribute__): Define to empty for non recent-GCC.
76790         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76791         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76792         Renamed from their non-__ counterparts, with new macros replacing
76793         them if not _LIBC.  Add __THROW attribute.
76794         (rol): Remove.
76795         (struct md5_ctx): Align buffer if using GCC.
76796         * lib/sha1.h (struct sha1_ctx): Likewise.
76797         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76798         The old name was backwards.
76799         (NOTSWAP): Remove; not used.
76800         (rol): New macro, moved here from md5.h.
76801         (sha1_process_block): Remove a FIXME that doesn't make sense.
76803 2005-09-12  Derek Price  <derek@ximbiot.com>
76805         Return usable errors from canon-host.
76806         * lib/canon-host.h: New file.
76807         * lib/canon-host.c (canon_host): Wrap...
76808         (canon_host_r): ...this new function, which now relies exclusively on
76809         getaddrinfo.
76810         (ch_strerror): New function.
76811         (last_cherror): New global.
76812         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76813         interface.
76814         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76815         void *.
76816         (freeaddrinfo): Free ai->ai_canonname when set.
76818 2005-09-12  Derek Price  <derek@ximbiot.com>
76820         Make canon-host require getaddrinfo.
76821         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76822         AC_LIBSOURCE canon-host.h.  Call...
76823         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76824         gl_GETADDRINFO.
76825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76827 2005-09-12  Derek Price  <derek@ximbiot.com>
76829         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76830         LGPL.
76831         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76833 2005-09-12  Derek Price  <derek@ximbiot.com>
76835         * lib/gai_strerror.c: Include config.h when available.  Include
76836         getaddrinfo.h before other headers to test interface.
76837         Reported by Larry Jones <lawrence.jones@ugs.com>.
76839 2005-09-12  Derek Price  <derek@ximbiot.com>
76840             Paul Eggert  <eggert@cs.ucla.edu>
76842         * modules/glob (Files): Add glob-libc.h.
76844 2005-09-12  Derek Price  <derek@ximbiot.com>
76845             Paul Eggert  <eggert@cs.ucla.edu>
76847         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76848         glob_.h, glob-libc.h.
76849         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76851 2005-09-12  Derek Price  <derek@ximbiot.com>
76852             Paul Eggert  <eggert@cs.ucla.edu>
76854         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76855         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76856         protecting things that should be done only in gnulib contexts.
76857         * lib/glob_.h: New file, containing only the glob things needed for
76858         gnulib.
76859         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76860         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76861         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76862         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76863         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76864         and to respect the namespace rules better.
76866 2005-09-08  Simon Josefsson  <jas@extundo.com>
76868         * modules/socklen: New file.
76870 2005-09-08  Simon Josefsson  <jas@extundo.com>
76872         * m4/socklen.m4: New file.
76874 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76876         * modules/utimens (Files): Add m4/utimbuf.m4, since
76877         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76878         Reported by Sergey Poznyakoff.
76880 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76882         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76883         definitions, since that's the preferred style in glibc.
76884         Fix a minor spacing issue, and update copyright notice to match
76885         glibc's.
76887 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76889         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76891 2005-09-06  Simon Josefsson  <jas@extundo.com>
76893         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76894         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76896 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76898         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76899         warning.
76901 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76903         * config/srclist.txt: Add glibc bug 1302.
76905 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76907         Change bitset word type from unsigned int to unsigned long int,
76908         as this has better performance on typical 64-bit hosts.
76909         Port bitset code to hosts with unusual word sizes.
76910         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76911         (build_collating_symbol):
76912         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76913         argument is a bitset.  This is merely a style issue, but it makes
76914         it clearer that an entire array is expected.
76915         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76916         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76917         Port to the case where bitset_word is not the same as unsigned int.
76918         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76919         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76920         Likewise.
76921         * lib/regexec.c (check_dst_limits_calc_pos_1,
76922         check_subexp_matching_top):
76923         (build_trtable, group_nodes_into_DFAstates):
76924         Likewise.
76925         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76926         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76927         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76928         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76929         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76930         * lib/regcomp.c (optimize_subexps, lower_subexp):
76931         Work even if bitset_word has holes in its bitwise representation.
76932         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76933         * lib/regexec.c (check_dst_limits_calc_pos_1,
76934         check_subexp_matching_top):
76935         Likewise.
76936         * lib/regex_internal.c (re_string_reconstruct):
76937         Don't assume UCHAR_MAX == 255.
76938         * lib/regex_internal.h (bitset_set_all): Likewise.
76939         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76940         All uses changed.
76941         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76942         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76943         All uses changed.
76944         (BITSET_WORD_MAX): New macro.
76945         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76946         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76947         (bitset_empty, bitset_copy):
76948         Prefer sizeof (bitset) to multiplying it out ourselves.
76949         (bitset_not_merge): Remove; unused.
76950         (bitset_contain): Return bool, not unsigned int with one bit on.
76951         All callers changed.
76952         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76953         alignment than re_node_set; do this by defining a new internal
76954         type struct dests_alloc and using it to allocate memory.
76956 2005-09-05  Bruno Haible  <bruno@clisp.org>
76958         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76959         links.
76961 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76963         * modules/size_max (Makefile.am): Add size_max.h
76965 2005-09-04  Derek Price  <derek@ximbiot.com>
76967         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76969 2005-09-03  Simon Josefsson  <jas@extundo.com>
76971         * gnulib-tool: Fix typo.
76973 2005-09-03  Simon Josefsson  <jas@extundo.com>
76975         * config/srclist.txt: Add glibc bug 1293.
76977 2005-09-03  Derek Price  <derek@ximbiot.com>
76979         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76980         From Larry Jones <lawrence.jones@ugs.com>.
76982 2005-09-02  Simon Josefsson  <jas@extundo.com>
76984         * modules/socklen: New file.
76986 2005-09-02  Simon Josefsson  <jas@extundo.com>
76988         * modules/havelib: New module.
76990         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76991         Use havelib.
76993 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76995         Check for arithmetic overflow when calculating sizes, to prevent
76996         some buffer-overflow issues.  These patches are conservative, in the
76997         sense that when I couldn't determine whether an overflow was possible,
76998         I inserted a run-time check.
76999         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77000         macros.
77001         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77002         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77003         (re_xnrealloc, re_x2nrealloc): New inline functions.
77004         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77005         parse_bracket_exp):
77006         (build_equiv_class, build_charclass): Check for arithmetic overflow
77007         in size expression calculations.
77008         * lib/regex_internal.c (re_string_realloc_buffers):
77009         (build_wcs_upper_buffer, re_node_set_add_intersect):
77010         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77011         (re_dfa_add_node, register_state): Likewise.
77012         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77013         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77014         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77015         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77017 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77019         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77020         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77022 2005-09-02  Bruno Haible  <bruno@clisp.org>
77024         Support for lib vs. lib64 distinction on biarch platforms.
77025         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77026         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77027         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77029 2005-09-02  Bruno Haible  <bruno@clisp.org>
77031         * gnulib-tool (import): In the other first-use case, provide defaults
77032         as well.
77034 2005-09-02  Bruno Haible  <bruno@clisp.org>
77036         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77037         patches not yet found in the latest gettext release.
77039 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77041         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77042         to avoid a collision with bits/local_lim.h in glibc.
77043         All uses changed.  Problem reported by Dmitry V. Levin in
77044         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77046         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77047         bugs in int versus size_t comparisons.
77048         (re_string_context_at): Fix bug where the code assumed that
77049         Idx is signed.
77051         Use bool where appropriate.
77052         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77053         All callers changed.
77054         (calc_eclosure_iter): Likewise, for ROOT arg.
77055         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77056         (build_charclass_op): Likewise, for NON_MATCH arg.
77057         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77058         (re_string_construct_common): Likewise, for ICASE arg.
77059         * lib/regexec.c (re_search_2_stub, re_search_stub):
77060         Likewise, for RET_LEN arg.
77061         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77062         (set_regs): Likewise, for FL_BACKTRACK arg.
77063         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77064         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77065         (calc_eclosure_iter, parse_bracket_exp):
77066         Use bool for internal variables that are booleans.
77067         * lib/regexec.c (re_search_internal, check_matching,
77068         proceed_next_node):
77069         (set_regs, build_sifted_states, sift_states_bkref):
77070         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77071         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77072         (find_collation_sequence_value):
77073         Likewise.
77074         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77075         (re_node_set_compare):
77076         Return bool, not int. All callers changed.
77077         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77078         (build_trtable, check_node_accept): Likewise.
77079         * lib/regex_internal.h: Include stdbool.h.
77081         Fix bugs uncovered when converting to bool.
77082         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77083         failure instead of charging ahead blindly.
77084         * lib/regex_internal.c (register_state): Likewise.
77085         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77086         for freeing internal storage.
77087         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77088         bitset pieces used as boolean, to avoid undefined behavior
77089         on hosts that do int overflow checking.
77091 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77093         * config/srclist.txt: Add glibc bugs 1285-1287.
77095 2005-09-01  Jim Meyering  <jim@meyering.net>
77097         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77098         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77099         Require gl_STAT_MACROS, too.
77101 2005-09-01  Bruno Haible  <bruno@clisp.org>
77103         * gnulib-tool (import): In the first-use case, provide defaults.
77105 2005-09-01  Bruno Haible  <bruno@clisp.org>
77107         * gnulib-tool (func_import): Remove the .tmp files.
77109 2005-09-01  Bruno Haible  <bruno@clisp.org>
77111         * gnulib-tool (func_import): Fix handling of symbolic links.
77113 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77115         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77116         old glibc regex code mishandles strings longer than 2**31 bytes.
77117         This patch fixes this when the regex code is used in gnulib
77118         (i.e., outside glibc).
77120         This patch should not affect the use of the regex code inside
77121         glibc.  No doubt this problem also needs to be handled for glibc
77122         as well, but the result will be an incompatible change to the
77123         glibc ABI, and the old ABI will have to be supported too.  That
77124         can be the the subject for another patch.
77126         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77127         governing whether the rest of this patch is active.  By default,
77128         the macro is disabled and the patch has no effect.
77129         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77130         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77131         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77132         (re_match_2, re_set_registers): Use the new types.
77133         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77134         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77135         New macros.
77136         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77137         (re_string_context_at, bin_tree_t, re_dfastate_t):
77138         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77139         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77140         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77141         (re_string_char_size_at, re_string_wchar_at):
77142         (re_string_elem_size_at):
77143         Use the new types and macros to port to 64-bit hosts.
77144         Use unsigned types for internal values, so that the code
77145         mostly works even for arrays larger than SSIZE_MAX.
77146         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77147         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77148         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77149         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77150         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77151         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77152         (calc_inveclosure, parse_dup_op, build_range_exp):
77153         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77154         (fetch_number, create_token_tree, mark_opt_subexp):
77155         Likewise.
77156         * lib/regex_internal.c (re_string_construct_common,
77157         create_ci_newstate):
77158         (create_cd_newstate, re_string_allocate, re_string_construct):
77159         (re_string_realloc_buffers, build_wcs_upper_buffer):
77160         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77161         (re_string_reconstruct, re_string_peek_byte_case):
77162         (re_string_fetch_byte_case, re_string_context_at):
77163         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77164         (re_node_set_init_copy, re_node_set_add_intersect):
77165         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77166         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77167         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77168         (re_acquire_state, re_acquire_state_context, register_state):
77169         Likewise.
77170         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77171         search_cur_bkref_entry):
77172         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77173         (re_search_internal, re_search_2_stub, re_search_stub)
77174         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77175         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77176         (update_cur_sifted_state, check_dst_limits):
77177         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77178         (check_subexp_limits, sift_states_bkref, merge_state_array):
77179         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77180         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77181         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77182         (expand_bkref_cache, check_node_accept_bytes):
77183         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77184         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77185         (acquire_init_state_context, check_halt_node_context):
77186         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77187         (sift_states_backward, clean_state_log_if_needed):
77188         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77189         (find_recover_state, transit_state_sb, transit_state_mb):
77190         (transit_state_bkref, build_trtable, match_ctx_clean):
77191         Likewise.
77192         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77193         to work around an assumption that REG_MISSING is negative.
77195         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77196         (seek_collating_symbol_entry) [defined _LIBC]:
77197         (lookup_collation_sequence_value) [defined _LIBC]:
77198         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77199         Use prototypes rather than old-style function definitions.
77200         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77201         (transit_state_sb) [0]:
77202         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77204         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77205         rm_eo.
77207         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77208         (optimize_subexps, lower_subexp):
77209         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77210         since the signed shift might overflow.  Use 1u<<31 instead.
77211         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77212         Likewise.
77213         * lib/regexec.c (check_dst_limits_calc_pos_1,
77214         check_subexp_matching_top): Likewise.
77216         * lib/regcomp.c (optimize_subexps, lower_subexp):
77217         Use CHAR_BIT rather than 8, for clarity.
77218         * lib/regexec.c (check_dst_limits_calc_pos_1):
77219         (check_subexp_matching_top): Likewise.
77220         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77221         have to worry about portability issues when shifting it left.
77222         Remove no-longer-needed test for table_size > 0.
77223         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77224         in a word, as the resulting behavior is undefined.
77225         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77226         in one case, a <= should have been an <, and in another case the
77227         whole test was missing.
77228         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77229         the standard name CHAR_BIT.
77230         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77231         this is not true on one's complement and signed-magnitude hosts.
77233         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77234         next_last_offset.
77235         (struct re_dfa_t): Remove unused member states_alloc.
77236         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77238 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77240         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77241         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77242         and large-file glibc and in 32-bit large-file Solaris.
77244 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77246         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77247         lengths fit in regoff_t; this isn't true if regoff_t is the same
77248         width as size_t.
77249         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77250         (= START + RANGE) instead of RANGE.  This avoids overflow
77251         problems when regoff_t is the same width as size_t.
77252         All callers changed.
77253         (re_search_2_stub): Check for overflow when adding the
77254         sizes of the two strings.
77255         (re_search_stub): Check for overflow when adding START
77256         to RANGE; if it occurs, substitute the extreme value.
77258 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77260         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77262 2005-08-31  Jim Meyering  <jim@meyering.net>
77264         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77265         a pointer-to-const.
77266         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77267         (register_state): Likewise.
77268         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77269         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77270         (group_nodes_into_DFAstates): Likewise.
77272 2005-08-31  Jim Meyering  <jim@meyering.net>
77274         * check-module: Add a FIXME comment.
77276 2005-08-31  Eric Blake  <ebb9@byu.net>
77278         * modules/unistd-safer (Files): Add unistd--.h.
77279         * modules/stdio-safer (Files): Add stdio--.h.
77281 2005-08-31  Derek Price  <derek@ximbiot.com>
77283         * lib/getdelim.c (getdelim): Return EOF on EOF.
77284         Reported by Larry Jones <lawrence.jones@ugs.com>.
77286 2005-08-31  Bruno Haible  <bruno@clisp.org>
77288         Avoid unnecessary diffs in the generated lib/Makefile.am.
77289         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77290         the generated files.
77291         (func_import): Don't set cmd.
77293 2005-08-31  Bruno Haible  <bruno@clisp.org>
77295         * lib/strstr.c: Include <stddef.h>, for NULL.
77296         * lib/strcasestr.c: Likewise.
77297         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77299 2005-08-31  Bruno Haible  <bruno@clisp.org>
77301         * gnulib-tool: New option --macro-prefix.
77302         (func_import): Use macro_prefix.
77303         (import): Handle option --macro-prefix.
77305 2005-08-31  Bruno Haible  <bruno@clisp.org>
77307         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77308         Also use new variables cached_lgpl, cached_libtool.
77310 2005-08-31  Bruno Haible  <bruno@clisp.org>
77312         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77313         always instantiating them.
77315 2005-08-31  Bruno Haible  <bruno@clisp.org>
77317         * gnulib-tool (func_import): Read the previous cached settings
77318         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77319         earlier added by gnulib but are now dropped. Warn when a gnulib file
77320         overwrites a non-gnulib file.
77322 2005-08-31  Bruno Haible  <bruno@clisp.org>
77324         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77325         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77326         projects that don't keep autogenerated files in CVS. Put into
77327         actioncmd only the specified modules, not the transitive closure.
77329 2005-08-31  Bruno Haible  <bruno@clisp.org>
77331         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77332         Create directories that shall be filled.
77333         (import): Don't look for gl_* macros in configure.ac. Recurse across
77334         all directories containing a gnulib-cache.m4 files, if meaningful.
77336 2005-08-31  Bruno Haible  <bruno@clisp.org>
77338         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77339         (import): Set seen_libtool when we see gl_LIBTOOL.
77341 2005-08-31  Bruno Haible  <bruno@clisp.org>
77343         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77344         declaration macro definitions from generated gnulib.m4.
77346 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77348         * lib/iconvme.h: Add prototype for iconv_alloc.
77350 2005-08-29  Simon Josefsson  <jas@extundo.com>
77352         * lib/iconvme.c: Fix errno.
77354 2005-08-29  Bruno Haible  <bruno@clisp.org>
77356         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77357         that it works when the directory contains spaces.
77359 2005-08-29  Bruno Haible  <bruno@clisp.org>
77361         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77363 2005-08-29  Bruno Haible  <bruno@clisp.org>
77365         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77366         Emit more advice.
77368 2005-08-29  Bruno Haible  <bruno@clisp.org>
77369         and Stepan Kasal  <kasal@ucw.cz>
77371         * check-module: If more parameters are given, check each of them
77372         separately; add more exceptions, as noted by Jim Meyering.
77373         (check_module): New procedure.
77374         (%exempt_header): Now contains all exceptions.
77376 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77378         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77380 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77382         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77384 2005-08-28  Bruno Haible  <bruno@clisp.org>
77386         * m4/gnulib-tool.m4: New file.
77388 2005-08-27  Jim Meyering  <jim@meyering.net>
77390         * modules/unistd-safer (Files): Add pipe-safer.c.
77391         * modules/fcntl-safer (Files): Add creat-safer.c.
77393 2005-08-27  Jim Meyering  <jim@meyering.net>
77395         * m4/stdlib-safer.m4: New file.  From coreutils.
77396         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77397         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77398         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77399         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77400         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77402 2005-08-27  Jim Meyering  <jim@meyering.net>
77404         * lib/fopen-safer.c: Merge minor changes from coreutils.
77405         * lib/dup-safer.c: Likewise.
77406         * lib/fd-safer.c: Likewise.
77408         Merge from coreutils.
77409         * lib/stdio--.h: New file.
77410         * lib/stdlib--.h: New file.
77411         * lib/mkstemp-safer.c: New file.
77413         GNU tar needs these.
77414         * lib/pipe-safer.c: New file.
77415         * lib/creat-safer.c: New file.
77416         * lib/fcntl--.h (creat): Define to creat_safer.
77417         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77418         * lib/unistd--.h (pipe): Define to pipe_safer.
77419         * lib/unistd-safer.h: Declare pipe_safer.
77421 2005-08-26  Simon Josefsson  <jas@extundo.com>
77423         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77424         Haible <bruno@clisp.org>.
77426 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77428         * lib/regex_internal.h: Remove all references to
77429         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77430         or better.
77431         (bitset_not, bitset_merge, bitset_not_merge):
77432         (bitset_mask, re_string_allocate, re_string_construct):
77433         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77434         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77435         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77436         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77437         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77438         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77439         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77440         (re_acquire_state_context):
77441         Remove unnecessary forward decls.
77442         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77443         Put __attribute at function definition,
77444         now that the function decl has been removed.
77445         * lib/regex_internal.c (re_string_peek_byte_case):
77446         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77447         Likewise.
77449 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77451         * m4/regex.m4: Add AC_PREREQ(2.50).
77452         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77454 2005-08-25  Simon Josefsson  <jas@extundo.com>
77456         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77457         __fsetlocking.
77459 2005-08-25  Simon Josefsson  <jas@extundo.com>
77461         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77462         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77463         GLIBC specific code.
77465 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77467         Make regex safe for g++.  This fixes one real bug (an "err"
77468         that should have been "*err").  g++ problem reported by
77469         Sam Steingold.
77470         * lib/regex_internal.h (re_calloc): New macro, consistent with
77471         re_malloc etc.  All callers of calloc changed to use re_calloc.
77472         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77473         not int.  All callers changed.
77474         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77475         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77476         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77477         (find_recover_state): Change "err" to "*err"; this fixes what
77478         appears to be a real bug.
77479         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77480         versus int.
77482 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77484         * modules/regex (Depends-on): Add malloc, since the code
77485         assumes that !malloc(0) means failure.
77487 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77489         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77491         alloca modernization/simplification for regex.
77492         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77493         needs to be at the start of the file, and can be moved into
77494         regex_internal.h and simplified.
77495         * lib/regex_internal.h: Include <alloca.h>.
77496         (__libc_use_alloca) [!defined _LIBC]: New macro.
77497         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77498         now works outside glibc.
77500 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77502         * config/srclist.txt: Add glibc bugs 1241, 1245.
77504 2005-08-25  Jim Meyering  <jim@meyering.net>
77506         * lib/open-safer.c: Include <config.h>.
77507         Otherwise, we'd lose LARGEFILE support in any file using
77508         e.g. "fcntl--.h"
77510 2005-08-25  Bruno Haible  <bruno@clisp.org>
77512         * m4/minmax.m4: Require autoconf 2.52.
77513         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77514         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77515         alternatives of translit over the alphabet.
77516         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77518 2005-08-24  Simon Josefsson  <jas@extundo.com>
77520         * tests/test-getpass.c: New file.
77522 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77524         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77525         for GNU regex features.
77527 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77529         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77530         * lib/regex.h (regerror): Likewise.
77532         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77533         requires this.  (The code never needed it.)
77535         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77536         All uses of recently-renamed identifiers changed to use the new,
77537         POSIX-compliant names.  The code will build and run just fine
77538         without these changes, but it's better to eat our own dog food
77539         and use the standard-conforming names.
77541         * lib/regex.h: Fix a multitude of POSIX name space violations.
77542         These changes have an effect only for programs that define
77543         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77544         do not change anything for programs compiled in the normal way.
77545         Also, there is no effect on the ABI.
77547         (_REGEX_SOURCE): New macro.
77548         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77549         defined and _GNU_SOURCE is not; this fixes a name space violation.
77551         Rename the following macros to obey POSIX requirements.
77552         The old names are still visible as macros if _REGEX_SOURCE is defined.
77553         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77554         RE_BACKSLASH_ESCAPE_IN_LISTS.
77555         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77556         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77557         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77558         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77559         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77560         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77561         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77562         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77563         (REG_INTERVALS): renamed from RE_INTERVALS.
77564         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77565         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77566         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77567         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77568         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77569         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77570         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77571         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77572         RE_UNMATCHED_RIGHT_PAREN_ORD.
77573         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77574         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77575         (REG_DEBUG): renamed from RE_DEBUG.
77576         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77577         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77578         unusual, since we can't clash with the POSIX REG_ICASE.
77579         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77580         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77581         (REG_NO_SUB): renamed from RE_NO_SUB.
77582         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77583         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77584         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77585         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77586         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77587         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77588         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77589         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77590         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77591         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77592         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77593         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77594         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77595         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77596         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77597         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77598         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77599         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77600         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77601         (REG_FIXED): Renamed from REGS_FIXED.
77602         (REG_NREGS): Renamed from RE_NREGS.
77604         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77605         of other REG_* macros, since POSIX says the user is allowed to
77606         #undef these macros selectively.
77608         (reg_errcode_t): Update comment stating what other tables need
77609         to be consistent.
77611         Rename the following enum values to obey POSIX requirements.
77612         The old names are still visible as macros.
77613         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77614         is not defined, since GNU is supposed to be a superset of POSIX as
77615         much as possible, and since we want reg_errcode_t to be a signed
77616         type for implementation consistency.
77617         (_REG_NOERROR): Renamed from REG_NOERROR.
77618         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77619         (_REG_BADPAT): Renamed from REG_BADPAT.
77620         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77621         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77622         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77623         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77624         (_REG_EBRACK): Renamed from REG_EBRACK.
77625         (_REG_EPAREN): Renamed from REG_EPAREN.
77626         (_REG_EBRACE): Renamed from REG_EBRACE.
77627         (_REG_BADBR): Renamed from REG_BADBR.
77628         (_REG_ERANGE): Renamed from REG_ERANGE.
77629         (_REG_ESPACE): Renamed from REG_ESPACE.
77630         (_REG_BADRPT): Renamed from REG_BADRPT.
77631         (_REG_EEND): Renamed from REG_EEND.
77632         (_REG_ESIZE): Renamed from REG_ESIZE.
77633         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77634         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77635         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77636         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77637         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77639         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77640         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77641         changed.  But support the old name if the new one is not defined
77642         and if _REGEX_SOURCE.
77644         Change the following member names in struct re_pattern_buffer.
77645         The old names are still supported if !_REGEX_SOURCE.
77646         The new names are always supported, regardless of _REGEX_SOURCE.
77647         (re_buffer): Renamed from buffer.
77648         (re_allocated): Renamed from allocated.
77649         (re_used): Renamed from used.
77650         (re_syntax): Renamed from syntax.
77651         (re_fastmap): Renamed from fastmap.
77652         (re_translate): Renamed from translate.
77653         (re_can_be_null): Renamed from can_be_null.
77654         (re_regs_allocated): Renamed from regs_allocated.
77655         (re_fastmap_accurate): Renamed from fastmap_accurate.
77656         (re_no_sub): Renamed from no_sub.
77657         (re_not_bol): Renamed from not_bol.
77658         (re_not_eol): Renamed from not_eol.
77659         (re_newline_anchor): Renamed from newline_anchor.
77661         Change the following member names in struct re_registers.
77662         The old names are still supported if !_REGEX_SOURCE.
77663         The new names are always supported, regardless of _REGEX_SOURCE.
77664         (rm_num_regs): Renamed from num_regs.
77665         (rm_start): Renamed from start.
77666         (rm_end): Renamed from end.
77668         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77669         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77670         Prepend __ to parameter names.
77672         Undo yesterday's changes.
77674 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77676         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77677         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77678         lib/regex.c.
77680 2005-08-24  Jim Meyering  <jim@meyering.net>
77682         Sync from coreutils.
77683         * m4/fcntl-safer.m4: New file.
77685         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77686         and object files for this module.
77688 2005-08-24  Jim Meyering  <jim@meyering.net>
77690         Sync from coreutils.
77691         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77693 2005-08-24  Jim Meyering  <jim@meyering.net>
77695         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77696         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77698 2005-08-24  Jim Meyering  <jim@meyering.net>
77700         * modules/fcntl-safer: New module.
77701         * modules/fts (Depends-on): Add fcntl-safer.
77702         * MODULES.html.sh (File descriptor based Input/Output):
77703         Add fcntl-safer.
77705 2005-08-24  Bruno Haible  <bruno@clisp.org>
77707         Support for unit test modules.
77708         * modules/README: Mention tests modules.
77709         * modules/TEMPLATE-TESTS: New file.
77710         * gnulib-tool: New options --extract-tests-module, --with-tests and
77711         --tests-base (unused for the moment).
77712         (testsbase, inctests): New variables.
77713         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77714         (func_verify_module): Exclude TEMPLATE-TESTS.
77715         (func_verify_nontests_module, func_verify_tests_module): New functions.
77716         (func_get_dependencies): Add implicit dependency for tests modules.
77717         (func_get_tests_module): New function.
77718         (func_modules_transitive_closure): When --with-tests was specified,
77719         include the unit tests as well, unless explicitly avoided.
77720         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77721         (func_emit_tests_Makefile_am): New function.
77722         (func_create_testdir): When --with-tests was specified, emit a
77723         tests/ directory.
77724         * MODULES.html.sh (Future developments): Update.
77726 2005-08-24  Bruno Haible  <bruno@clisp.org>
77728         * modules/tls-tests: New file.
77729         * tests/test-tls.c: New file, from GNU gettext.
77731 2005-08-24  Bruno Haible  <bruno@clisp.org>
77733         * modules/lock-tests: New file.
77734         * tests/test-lock.c: New file, from GNU gettext.
77736 2005-08-24  Bruno Haible  <bruno@clisp.org>
77738         * lib/lock.h: Add multiple inclusion guard.
77739         * lib/tls.h: Add multiple inclusion guard.
77741 2005-08-24  Bruno Haible  <bruno@clisp.org>
77743         * gnulib-tool: Add support for the --aux-dir option to
77744         --create-testdir, --create-megatestdir, --test, --megatest.
77745         (func_create_testdir, func_create_megatestdir): Optionally emit a
77746         AC_CONFIG_AUX_DIR directive.
77747         (create-testdir, create-megatestdir, test, megatest): Provide a
77748         default value for $auxdir.
77750 2005-08-24  Bruno Haible  <bruno@clisp.org>
77752         * gnulib-tool (import): Use compound statement instead of subshell
77753         where possible.
77755 2005-08-24  Bruno Haible  <bruno@clisp.org>
77757         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77759 2005-08-24  Bruno Haible  <bruno@clisp.org>
77761         * gnulib-tool (func_version): Update.
77763 2005-08-24  Bruno Haible  <bruno@clisp.org>
77765         * gnulib-tool (func_import, func_create_testdir,
77766         func_create_megatestdir): Quote all autoconf macro arguments.
77768 2005-08-24  Bruno Haible  <bruno@clisp.org>
77770         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77771         option --force, because --force causes the aclocal.m4 of each
77772         subdirectory to be newer than the corresponding config.h.in.
77774 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77776         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77777         All contents moved to gl_REGEX.
77778         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77779         assume that it does.
77781 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77783         * lib/regex.h (REG_NOSYS)
77784         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77785         Define, since POSIX requires it as of 2001.
77786         (_REG_ENOSYS)
77787         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77788         New private symbol, used to keep the enum signed in all cases.
77789         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77790         Youngman in
77791         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77793         * lib/regex_internal.c (re_string_skip_chars, register_state):
77794         (calc_state_hash):
77795         Remove forward decls; no longer needed now that we use prototypes.
77796         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77797         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77798         (clean_state_log_if_needed): Likewise.
77800 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77802         * config/srclist.txt: Add glibc bugs 1231-1233.
77804 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77806         Fix problems reported by Sam Steingold in
77807         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77808         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77809         assumed that reg_errcode_t is a signed type, which is not
77810         necessarily true if _XOPEN_SOURCE is not defined.
77811         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77812         since some compilers warn about it otherwise.
77814 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77816         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77817         (init_word_char, create_initial_state, duplicate_node_closure):
77818         (fetch_token, peek_token_bracket, build_range_exp):
77819         (build_collating_symbol): Remove forward decls; no longer needed
77820         now that we use prototypes.
77822         * lib/regcomp.c:
77823         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77824         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77825         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77826         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77827         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77828         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77829         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77830         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77831         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77832         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77833         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77834         (build_charclass, build_charclass_op, fetch_number, create_tree):
77835         (create_token_tree, mark_opt_subexp, duplicate_tree):
77836         Use prototypes rather than old-style definitions.
77838         * lib/regex_internal.c:
77839         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77840         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77841         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77842         (re_string_reconstruct, re_string_peek_byte_case):
77843         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77844         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77845         (re_node_set_init_copy, re_node_set_add_intersect):
77846         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77847         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77848         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77849         (re_acquire_state, re_acquire_state_context, register_state):
77850         (create_ci_newstate, create_cd_newstate, free_state):
77851         Likewise.
77852         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77853         re_search_2):
77854         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77855         (re_search_internal, prune_impossible_nodes):
77856         (acquire_init_state_context, check_matching, static):
77857         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77858         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77859         (update_regs, sift_states_backward, build_sifted_states):
77860         (clean_state_log_if_needed, merge_state_array):
77861         (update_cur_sifted_state, add_epsilon_src_nodes):
77862         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77863         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77864         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77865         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77866         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77867         (check_arrival, check_arrival_add_next_nodes):
77868         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77869         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77870         (check_node_accept_bytes, check_node_accept, extend_buffers):
77871         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77872         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77873         (sift_ctx_init):
77874         Likewise.
77876         * lib/regex_internal.h:
77877         (re_string_allocate, re_string_construct, re_string_reconstruct):
77878         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77879         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77880         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77881         (re_string_context_at, re_string_peek_byte_case):
77882         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77883         is defined, since we now use prototypes always.
77885         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77886         C89 or better.  All uses removed.
77888 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77890         * config/srclist.txt: Add glibc bugs 1220-1227.
77892 2005-08-20  Jim Meyering  <jim@meyering.net>
77894         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77895         of unused local, dfa.
77897 2005-08-20  Bruno Haible  <bruno@clisp.org>
77899         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77901 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77903         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77904         (re_node_set_insert_last, re_dfa_add_node):
77905         Rename local variables to avoid GCC shadowing warnings.
77907 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77909         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77910         [defined lint]: Suppress bogus uninitialized-variable warnings.
77912         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77913         and let the caller return REG_ESPACE if out of space.  This
77914         removes an uninitialied-variable warning with GCC 4.0.1, and also
77915         avoids taking the address of a local variable.  All callers
77916         changed.
77918 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77920         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77921         $LIBCSRC/posix/regexec.c.
77922         Add glibc bug 1217 for regcomp.c.
77924 2005-08-19  Jim Meyering  <jim@meyering.net>
77926         * lib/regexec.c (proceed_next_node): Redo local variables to
77927         avoid GCC shadowing warnings.
77929 2005-08-18  Bruno Haible  <bruno@clisp.org>
77931         * lib/strstr.c (strstr): Fix return value in multibyte case.
77932         * lib/strcasestr.c (strcasestr): Likewise.
77934 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77936         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77938 2005-08-17  Jim Meyering  <jim@meyering.net>
77940         Make the %s format (seconds since the epoch) work for a negative
77941         number and when used with a zero-padded field width, e.g. %015s.
77943         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77944         label so that it precedes the code to set `digits'.  Otherwise,
77945         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77946         print `00-22'.  Now, it prints `-0022', as it should.
77948 2005-08-17  Bruno Haible  <bruno@clisp.org>
77950         * modules/strstr (Files): Add m4/mbrtowc.m4.
77951         (Depends-on): Add mbuiter.
77953 2005-08-17  Bruno Haible  <bruno@clisp.org>
77955         * modules/strcasestr: New file.
77956         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77957         strcasestr.
77959 2005-08-17  Bruno Haible  <bruno@clisp.org>
77961         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77963 2005-08-17  Bruno Haible  <bruno@clisp.org>
77965         * modules/mbuiter: New file.
77966         * MODULES.html.sh (Extended multibyte and wide character utilities):
77967         Add mbuiter.
77969 2005-08-17  Bruno Haible  <bruno@clisp.org>
77971         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77972         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77974 2005-08-17  Bruno Haible  <bruno@clisp.org>
77976         * m4/strcasestr.m4: New file.
77978 2005-08-17  Bruno Haible  <bruno@clisp.org>
77980         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77981         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77983 2005-08-17  Bruno Haible  <bruno@clisp.org>
77985         * lib/strcasestr.h: New file.
77986         * lib/strcasestr.c: New file.
77988 2005-08-17  Bruno Haible  <bruno@clisp.org>
77990         * lib/strcasecmp.c: Use mbuiter.h.
77992 2005-08-17  Bruno Haible  <bruno@clisp.org>
77994         * lib/mbuiter.h: New file.
77996 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77999         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78000         and gl_GETOPT are both invoked via different paths (as happens
78001         with GNU tar CVS because it uses both argp and getopt), the former
78002         wins.
78004 2005-08-16  Bruno Haible  <bruno@clisp.org>
78006         * modules/tls: New file.
78007         * MODULES.html.sh (Multithreading): Add tls.
78009 2005-08-16  Bruno Haible  <bruno@clisp.org>
78011         * modules/strnlen1: New file.
78012         * MODULES.html.sh (String handling): Add strnlen1.
78014 2005-08-16  Bruno Haible  <bruno@clisp.org>
78016         * modules/strcase (Files): Add m4/mbrtowc.m4.
78017         (Depends-on): Add strnlen1, mbchar.
78019 2005-08-16  Bruno Haible  <bruno@clisp.org>
78021         * modules/mbiter: New file.
78022         * MODULES.html.sh (Extended multibyte and wide character utilities):
78023         Add mbiter.
78025 2005-08-16  Bruno Haible  <bruno@clisp.org>
78027         * modules/mbfile: New file.
78028         * MODULES.html.sh (Extended multibyte and wide character utilities):
78029         Add mbfile.
78031 2005-08-16  Bruno Haible  <bruno@clisp.org>
78033         * modules/mbchar: New file.
78034         * MODULES.html.sh (Extended multibyte and wide character utilities):
78035         New section.
78037 2005-08-16  Bruno Haible  <bruno@clisp.org>
78039         * m4/tls.m4: New file, from GNU gettext.
78041 2005-08-16  Bruno Haible  <bruno@clisp.org>
78043         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78044         always.
78045         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78047 2005-08-16  Bruno Haible  <bruno@clisp.org>
78049         * m4/mbiter.m4: New file.
78051 2005-08-16  Bruno Haible  <bruno@clisp.org>
78053         * m4/mbfile.m4: New file.
78055 2005-08-16  Bruno Haible  <bruno@clisp.org>
78057         * m4/mbchar.m4: New file.
78059 2005-08-16  Bruno Haible  <bruno@clisp.org>
78061         * lib/tls.h: New file, from GNU gettext.
78062         * lib/tls.c: New file, from GNU gettext.
78064 2005-08-16  Bruno Haible  <bruno@clisp.org>
78066         * lib/strnlen1.h: New file.
78067         * lib/strnlen1.c: New file.
78069 2005-08-16  Bruno Haible  <bruno@clisp.org>
78071         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78072         (mbi_init): Update.
78073         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78074         NUL byte, not after it.
78076 2005-08-16  Bruno Haible  <bruno@clisp.org>
78078         * lib/strcase.h (strcasecmp): Add note in comments.
78079         * lib/strncasecmp.c: Use code from strcasecmp.c.
78080         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78081         (strcasecmp): Work correctly in multibyte locales.
78083 2005-08-16  Bruno Haible  <bruno@clisp.org>
78085         * lib/mbiter.h: New file.
78087 2005-08-16  Bruno Haible  <bruno@clisp.org>
78089         * lib/mbfile.h: New file.
78091 2005-08-16  Bruno Haible  <bruno@clisp.org>
78093         * lib/mbchar.h: New file.
78094         * lib/mbchar.c: New file.
78096 2005-08-16  Bruno Haible  <bruno@clisp.org>
78098         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78099         the valid ones. Makes the comparison operations transitive:
78100         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78101         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78103 2005-08-15  Simon Josefsson  <jas@extundo.com>
78105         * modules/ssize_t (License): Change to 'unlimited'.
78107         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78109 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78111         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78112         Add comments for each pending glibc patch.
78114 2005-08-15  Bruno Haible  <bruno@clisp.org>
78116         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78117         __cplusplus is defined.
78119 2005-08-14  Jim Meyering  <jim@meyering.net>
78121         Sync from coreutils.
78123         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78124         Use the hash-table-based cycle-detection code not just when
78125         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78126         Reported by James Youngman in
78127         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78128         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78129         FTS_TIGHT_CYCLE_CHECK.
78130         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78131         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78132         once again.
78133         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78134         * lib/fts.c (fd_safer): Remove decl.
78135         Include fcntl--.h rather than unistd-safer.h
78136         (fts_safe_changedir): Don't call fd_safer; no longer needed
78137         now that we include fcntl--.h.
78139 2005-08-12  Simon Josefsson  <jas@extundo.com>
78141         * modules/getndelim2: Use ssize_t module.
78142         * modules/getnline: Likewise.
78143         * modules/safe-read: Likewise.
78144         * modules/xreadlink: Likewise.
78146         * modules/ssize_t: New file.
78148 2005-08-12  Simon Josefsson  <jas@extundo.com>
78150         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78152 2005-08-12  Simon Josefsson  <jas@extundo.com>
78154         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78155         ssize_t.
78157 2005-08-12  Simon Josefsson  <jas@extundo.com>
78159         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78160         readline, getdelim and check_version.
78161         (Support for systems lacking ISO C 99: Sizes of integer types):
78162         Add size_max.
78164 2005-08-12  Bruno Haible  <bruno@clisp.org>
78166         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78168 2005-08-11  Simon Josefsson  <jas@extundo.com>
78170         * modules/readline: New file.
78172         * modules/strnlen (Files): Add strnlen.h.
78174 2005-08-11  Simon Josefsson  <jas@extundo.com>
78176         * m4/readline.m4: New file.
78178 2005-08-11  Simon Josefsson  <jas@extundo.com>
78180         * lib/readline.h, readline.c: New file.
78182 2005-08-11  Simon Josefsson  <jas@extundo.com>
78184         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78185         gl_AVOID.
78187 2005-08-11  Bruno Haible  <bruno@clisp.org>
78189         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78191 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78193         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78195 2005-08-10  Simon Josefsson  <jas@extundo.com>
78197         * tests/test-iconvme.c: New file.
78199 2005-08-10  Simon Josefsson  <jas@extundo.com>
78201         * m4/strnlen.m4: New file.
78203         * m4/strndup.m4: Don't check for strnlen declaration, done in
78204         strnlen.m4.
78206 2005-08-10  Simon Josefsson  <jas@extundo.com>
78208         * lib/strndup.c: Use strnlen.h.
78210         * lib/strnlen.h: New file.
78212 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78214         * README: Typos.
78216 2005-08-02  Simon Josefsson  <jas@extundo.com>
78218         * modules/readline: New file.
78220 2005-08-02  Simon Josefsson  <jas@extundo.com>
78222         * modules/getdelim: New file.
78224         * modules/getline: Rewrite, don't use getndelim2.
78226 2005-08-02  Simon Josefsson  <jas@extundo.com>
78228         * m4/getline.m4: Separate out getdelim stuff into separate module.
78230         * m4/getdelim.m4: New file.
78232 2005-08-02  Simon Josefsson  <jas@extundo.com>
78234         * lib/getline.h, getline.c: Rewrite.
78236         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78238 2005-07-31  Bruno Haible  <bruno@clisp.org>
78240         * lib/lock.h (gl_lock_initializer): New macro.
78241         (gl_lock_define_initialized): Use it.
78242         (gl_rwlock_initializer): New macro.
78243         (gl_rwlock_define_initialized): Use it.
78244         (gl_recursive_lock_initializer): New macro.
78245         (gl_recursive_lock_define_initialized): Use it.
78247 2005-07-30  Karl Berry  <karl@gnu.org>
78249         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78250         Report from Ben Pfaff, regarding getopt.
78252 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78254         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78255         normal way.
78256         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78257         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78258         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78259         (gl_GETOPT): Use the new macros.  Most of the implementation
78260         is moved to the new macros.  This is for programs like Emacs
78261         that don't want all the functionality of gl_GETOPT.
78263 2005-07-26  Bruno Haible  <bruno@clisp.org>
78265         * m4/lock.m4: Update from GNU gettext.
78267 2005-07-26  Bruno Haible  <bruno@clisp.org>
78269         * lib/lock.h: Update from GNU gettext.
78270         * lib/lock.c: Update from GNU gettext.
78272 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78274         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78275         obsolescent AC_TRY_RUN.  Include the default includes files, for
78276         'exit'.
78278 2005-07-24  Bruno Haible  <bruno@clisp.org>
78280         * modules/visibility: New file.
78281         * MODULES.html.sh (Misc): Add visibility.
78283 2005-07-24  Bruno Haible  <bruno@clisp.org>
78285         * m4/visibility.m4: New file.
78287 2005-07-24  Bruno Haible  <bruno@clisp.org>
78289         * doc/visibility.texi: New file.
78291 2005-07-22  Bruno Haible  <bruno@clisp.org>
78293         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78294         $(ALLOCA_H), redundant through BUILT_SOURCES.
78295         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78296         redundant through BUILT_SOURCES.
78297         * modules/byteswap (Makefile.am): Remove explicit dependency on
78298         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78299         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78300         $(FNMATCH_H), redundant through BUILT_SOURCES.
78301         * modules/getopt (Makefile.am): Remove explicit dependency on
78302         $(GETOPT_H), redundant through BUILT_SOURCES.
78303         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78304         redundant through BUILT_SOURCES.
78305         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78306         redundant through BUILT_SOURCES.
78307         * modules/stdbool (Makefile.am): Remove explicit dependency on
78308         $(STDBOOL_H), redundant through BUILT_SOURCES.
78309         * modules/stdint (Makefile.am): Remove explicit dependency on
78310         $(STDINT_H), redundant through BUILT_SOURCES.
78311         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78312         Remove explicit dependency on $(SYSEXITS_H).
78313         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78315 2005-07-18  Simon Josefsson  <jas@extundo.com>
78317         * lib/check-version.c (check_version): Accept identical versions too.
78319 2005-07-18  Bruno Haible  <bruno@clisp.org>
78321         * modules/lock: New file.
78322         * MODULES.html.sh (Multithreading): New section.
78324 2005-07-18  Bruno Haible  <bruno@clisp.org>
78326         * m4/lock.m4: New file, from GNU gettext.
78328 2005-07-18  Bruno Haible  <bruno@clisp.org>
78330         * lib/lock.h: New file, from GNU gettext.
78331         * lib/lock.c: New file, from GNU gettext.
78333 2005-07-18  Bruno Haible  <bruno@clisp.org>
78335         * lib/lock.h (gl_once_t): New type.
78336         (gl_once_define, gl_once): New macros.
78337         * lib/lock.c (fresh_once): New variable.
78338         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78339         functions.
78341 2005-07-16  Simon Josefsson  <jas@extundo.com>
78343         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78344         workaround, suggested by Bruno.
78346 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78348         * modules/xalloc (Depends-on): Add xalloc-die.
78349         * modules/xvasprintf (Depends-on): Add xalloc-die.
78351 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78353         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78354         with a minor change.
78356 2005-07-15  Bruno Haible  <bruno@clisp.org>
78358         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78359         When using lib/poll.c, define poll as rpl_poll.
78361 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78363         * modules/argp (Depends-on): Remove unlocked-io.
78365 2005-07-14  Derek Price  <derek@ximbiot.com>
78367         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78368         for glob symlink bug.
78370 2005-07-14  Bruno Haible  <bruno@clisp.org>
78372         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78373         Instead, test for *_unlocked function declarations directly.
78375 2005-07-11  Simon Josefsson  <jas@extundo.com>
78377         * modules/size_max: New file.
78379         * modules/xsize: Depend on size_max module for size_max.m4.
78381 2005-07-11  Simon Josefsson  <jas@extundo.com>
78383         * lib/size_max.h: New file.
78385 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78387         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78388         copyright symbol and the year.
78389         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78390         (version_etc_va): Use parameterized copyright notice.
78391         Reword to conform to the current GNU coding standards.
78393 2005-07-11  Karl Berry  <karl@gnu.org>
78395         * doc/gnulib.texi (Quoting): new node.
78396         (Initial import): more info, from Patrice.
78398 2005-07-11  Bruno Haible  <bruno@clisp.org>
78400         * gnulib-tool (func_usage): Document option --avoid.
78401         (Command line options): Handle --avoid.
78402         (func_acceptable): New function.
78403         (func_modules_transitive_closure): Use it.
78405 2005-07-11  Bruno Haible  <bruno@clisp.org>
78407         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78408         Reported by Jim Meyering.
78410 2005-07-10  Bruno Haible  <bruno@clisp.org>
78412         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78413         Needed when size_t is smaller than 'unsigned int'.
78414         Reported by Paul Eggert.
78416 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78418         * modules/argp (Depends-on): Add unlocked-io
78420 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78422         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78423         block of defines.
78425 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78427         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78428         fix now.
78430 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78431         and Paul Eggert  <eggert@cs.ucla.edu>
78433         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78434         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78436 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78438         * modules/regex (Files): Add lib/regex_internal.c,
78439         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78440         (Depends-on): Add extensions.
78441         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78443 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78445         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78446         pathconf.
78447         * m4/same.m4 (gl_SAME): Likewise.
78448         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78450         * m4/regex.m4: Adjust to new libc regex implementation.
78451         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78452         all the .c and .h parts of (the new) regex.
78453         Quote the m4 stuff better.
78454         Check for RE_ICASE bug of old gnulib.
78455         Check for REG_STARTEND of recent libc.
78456         Rename local variables from jm_* to gl_*.
78457         Quote operand of "test -f".
78458         Say "recent enough" version of libc, not "version 2".
78459         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78460         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78461         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78462         Remove check for btowc, isascii.
78463         Require AM_LANGINFO_CODESET.
78465 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78467         * lib/regex.c, regex.h: Sync from libc.
78468         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78469         * lib/regexec.c:
78470         New files, synced from libc, except that regex_internal.h
78471         currently has a small porting fix.
78473 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78475         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78476         regex_internal.c, regexec.c.
78477         Add regex_internal.h too, but as a comment, since the libc version
78478         is currently broken in gnulib mode.
78480 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78482         Support programs like Emacs that use gnulib but not gettext.
78483         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78484         * modules/gettext-h: New file.
78485         * modules/gettext (Files): Remove lib/gettext.h.
78486         (Depends-on): Add gettext-h.
78487         (Makefile.am): Remove lib_SOURCES.
78488         * modules/argmatch, modules/c-stack, modules/closeout:
78489         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78490         * modules/execute, modules/file-type, modules/getaddrinfo:
78491         * modules/getopt, modules/human, modules/javacomp:
78492         * modules/javaexec, modules/mkdir-p, modules/obstack:
78493         * modules/openat, modules/pagealign_alloc, modules/pipe:
78494         * modules/quotearg, modules/regex, modules/rpmatch:
78495         * modules/unicodeio, modules/userspec, modules/version-etc:
78496         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78497         * modules/xsetenv:
78498         Depend on gettext-h, not gettext.
78500 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78502         * gnulib-tool (func_import): Add support for 'public domain' license.
78503         * modules/alloca, modules/atexit, modules/memmove:
78504         Now public domain, not GPL.
78505         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78506         * modules/realloc, modules/strerror, modules/strtod:
78507         Now LGPL, not GPL.
78509 2005-07-05  Bruno Haible  <bruno@clisp.org>
78511         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78512         autoconf CVS. Needed for mingw.
78514 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78516         Remove the dependency of the strftime module on the tzset module.
78517         * modules/strftime (Depends-on): Remove dependency on tzset.
78519 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78521         Remove the dependency of the strftime module on the tzset module.
78522         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78523         gl_FUNC_TZSET_CLOBBER.
78525 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78527         Remove the dependency of the strftime module on the tzset module.
78528         * lib/strftime.c (my_strftime)
78529         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78530         Copy the input structure, to work around some of the bug with
78531         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78532         Solaris releases, you should also use the tzset module, but we won't
78533         require it as a dependency any more since we don't want LGPLed code
78534         to depend on GPLed code.
78536 2005-07-02  Jim Meyering  <jim@meyering.net>
78538         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78539         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78540         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78541         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78543 2005-07-02  Jim Meyering  <jim@meyering.net>
78545         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78547 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78549         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78550         declares only 'struct timespec;' (!).
78552 2005-07-01  Jim Meyering  <jim@meyering.net>
78554         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78555         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78556         * lib/save-cwd.c, tempname.c:
78557         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78558         and don't include <sys/file.h>).
78560 2005-06-29  Jim Meyering  <jim@meyering.net>
78562         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78563         type name.  Use the variable name instead.
78564         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78565         Likewise.
78567 2005-06-28  Simon Josefsson  <jas@extundo.com>
78569         * modules/check-version (Files): Add check-version.m4.
78571 2005-06-28  Simon Josefsson  <jas@extundo.com>
78573         * m4/check-version.m4: New file, suggested by Jim Meyering
78574         <jim@meyering.net>.
78576 2005-06-28  Simon Josefsson  <jas@extundo.com>
78578         * lib/check-version.h, lib/check-version.c: New files.
78580 2005-06-28  Simon Josefsson  <jas@extundo.com>
78582         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78583         collision with global variable.  Better indentation.  Don't
78584         increment buffer pointer beyond buffer end.  Based on comments
78585         from Paul Eggert <eggert@cs.ucla.edu>.
78587         * lib/base64.h: Indent.
78589 2005-06-28  Simon Josefsson  <jas@extundo.com>
78591         * doc/gnulib.texi (Library version handling): New section.
78593 2005-06-28  Jim Meyering  <jim@meyering.net>
78595         * check-module (find_included_lib_files): Hard-code another
78596         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78597         but modules/fts-lgpl (correctly) does not list those files.
78599         * modules/canonicalize (Files): Add lib/pathmax.h.
78601 2005-06-25  Simon Josefsson  <jas@extundo.com>
78603         * modules/check-version: New file.
78605 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78607         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78608         initializer of struct addrinfo, as an indication that we don't
78609         care how many members the structure has.
78611 2005-06-24  Derek Price  <derek@ximbiot.com>
78612         and Bruno Haible  <bruno@clisp.org>
78614         Remove stat module & update lstat.
78615         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78616         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78617         * m4/stat.m4: Remove this file.
78619 2005-06-24  Derek Price  <derek@ximbiot.com>
78620         and Bruno Haible  <bruno@clisp.org>
78622         Remove stat module & update lstat.
78623         * lib/stat.c: Remove this file...
78624         (slash_aware_lstat): ...moving this content and its support...
78625         * lib/lstat.c (rpl_lstat): ...into here.
78626         * lib/lstat.h: New file.
78628 2005-06-24  Derek Price  <derek@ximbiot.com>
78629         and Bruno Haible  <bruno@clisp.org>
78631         Remove stat module & update lstat.
78632         * config/srclist.txt (libc sources): Remove stat.
78634 2005-06-24  Derek Price  <derek@ximbiot.com>
78635         and Bruno Haible  <bruno@clisp.org>
78637         Remove stat module & update lstat.
78638         * MODULES.html.sh (stat): Remove.
78639         * MODULES.html: Regenerated.
78640         * modules/lstat (Description): Correct function name.
78641         (Files): Add "lstat.h".
78642         (Depends-on): Remove stat, add xalloc, stat-macros.
78643         * modules/stat: Remove this file.
78644         (Include): Add "lstat.h", remove <sys/stat.h>.
78646 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78648         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78649         (ranged_convert): Don't save conversion in a temporary struct.
78650         This causes a warning with GCC 4.0.0, and anyway in the typical
78651         case it's not worth the extra 100 bytes or so of code.
78652         (ranged_convert, __mktime_internal): When calling a function via a
78653         pointer P, use P () rather than (*P) (), as we now assume C89 or
78654         better.
78656 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78658         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78659         "who -r" failed to give output.  Problem reported by Tim Waugh.
78661         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78662         (xcalloc): Use it to avoid needless tests.
78663         Problem reported by Jim Meyering.
78665 2005-06-20  Derek Price  <derek@ximbiot.com>
78667         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78668         unnecessary for Autoconfs > 2.59c.
78670 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78672         * lib/argp.h (__option_is_short): Check upper limit of
78673         __key. Isprint() requires its argument to have the value
78674         of an unsigned char or EOF.
78676 2005-06-16  Jim Meyering  <jim@meyering.net>
78678         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78679         when either N or S is zero.
78681 2005-06-16  Derek Price  <derek@ximbiot.com>
78683         * m4/bison.m4: Declare YACC & YFLAGS precious.
78685 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78687         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78688         multibyte string or pattern, fall back on unibyte matching.
78689         Problem reported by James Youngman.
78691 2005-06-08  Bruno Haible  <bruno@clisp.org>
78693         * modules/csharpcomp: New file.
78694         * MODULES.html.sh (C#): Add csharpcomp.
78696 2005-06-08  Bruno Haible  <bruno@clisp.org>
78698         * m4/csharpcomp.m4: New file, from GNU gettext.
78700 2005-06-08  Bruno Haible  <bruno@clisp.org>
78702         * lib/csharpcomp.h: New file, from GNU gettext.
78703         * lib/csharpcomp.c: New file, from GNU gettext.
78704         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78706 2005-06-08  Bruno Haible  <bruno@clisp.org>
78708         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78709         warning on mingw.
78711 2005-06-07  Derek Price  <derek@ximbiot.com>
78713         Sync from CVS.
78714         * lib/glob_.h: Indent nested #ifdef.
78716 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78718         Sync from coreutils.
78719         Use "file name" when talking about file names, instead of "filename"
78720         or "path", as per the GNU coding standards.
78721         * lib/mkdir-p.c: Renamed from makepath.c.
78722         (make_dir_parents): Renamed from make_path.  All callers changed.
78723         * lib/mkdir-p.h: Likewise.  All includers changed.
78724         * lib/filenamecat.c: Renamed from path-concat.c.
78725         (file_name_concat): Renamed from path_concat.  All callers changed.
78726         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78727         * lib/filenamecat.h: Likewise.  All includers changed.
78728         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78729         in comments or local variable names.
78730         * lib/basename.c: Likewise.
78731         * lib/canonicalize.c, canonicalize.h: Likewise.
78732         * lib/dirname.c, dirname.h: Likewise.
78733         * lib/euidaccess.c: Likewise.
78734         * lib/exclude.c: Likewise
78735         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78736         * lib/fsusage.c, fsuage.h: Likewise.
78737         * lib/fts.c, fts_.h: Likewise.
78738         * lib/getcwd.c: Likewise.
78739         * lib/getloadavg.c: Likewise.
78740         * lib/mkstemp.c: Likewise.
78741         * lib/mountlist.c, mountlist.h: Likewise.
78742         * lib/openat.c, openat.h: Likewise.
78743         * lib/readlink-stub.c: Likewise.
78744         * lib/readutmp.c, readutmp.h: Likewise.
78745         * lib/rename.c: Likewise.
78746         * lib/rmdir.c: Likewise.
78747         * lib/same.c: Likewise.
78748         * lib/savedir.c: Likewise.
78749         * lib/stripslash.c: Likewise.
78750         * lib/tempname.c: Likewise.
78751         * lib/xreadlink.c: Likewise.
78752         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78753         All uses changed.
78754         * lib/exclude.h: Likewise.
78756         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78757         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78758         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78759         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78760         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78761         files have been getting away with it for years (MORE/BSD 4.3
78762         is extinct now).
78763         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78764         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78766         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78767         Define to 256, not 255, as per modern POSIX.
78769 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78771         Sync from coreutils.
78772         Use "file name" when talking about file names, instead of "filename"
78773         or "path", as per the GNU coding standards.
78774         * MODULES.html.sh: mkdir-p renamed from makepath.
78775         filenamecat renamed from path-concat.
78776         * modules/filenamecat: Renamed from modules/path-concat.
78777         (Files): filenamecat.h and filenamecat.c renamed from
78778         path-concat.h and path-concat.c.
78779         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78780         (Include): filenamecat.h, not path-concat.h.
78781         * modules/mkdir-p: Renamed from modules/makepath.
78782         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78783         makepath.c.
78784         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78785         (Include): mkdir-p.h, not makepath.h.
78787 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78789         Sync from coreutils.
78790         * m4/mkdir-p.m4: Renamed from makepath.m4.
78791         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78792         Rename files from makepath.c to mkdir-p.c, and from
78793         makepath.h to mkdir-p.h.
78794         * m4/filenamecat.m4: Renamed from path-concat.m4.
78795         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78796         Rename files from path-concat.c to filenamecat.c,
78797         and from path-concat.h to filenamecat.h.
78798         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78799         "file name" in local variables or comments.
78800         * m4/rename.m4: Likewise.
78802 2005-06-01  Bruno Haible  <bruno@clisp.org>
78804         * modules/csharpexec: New file.
78805         * MODULES.html.sh (C#): New section.
78807 2005-06-01  Bruno Haible  <bruno@clisp.org>
78809         * m4/csharp.m4: New file, from GNU gettext.
78810         * m4/csharpexec.m4: New file, from GNU gettext.
78812 2005-06-01  Bruno Haible  <bruno@clisp.org>
78814         * lib/csharpexec.h: New file, from GNU gettext.
78815         * lib/csharpexec.c: New file, from GNU gettext.
78816         * lib/csharpexec.sh.in: New file, from GNU gettext.
78818 2005-05-31  Derek Price  <derek@ximbiot.com>
78819             Paul Eggert  <eggert@cs.ucla.edu>
78821         Sync from cvs.
78822         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78824 2005-05-31  Derek Price  <derek@ximbiot.com>
78825             Paul Eggert  <eggert@cs.ucla.edu>
78827         Sync from cvs.
78828         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78830 2005-05-29  Derek Price  <derek@ximbiot.com>
78832         * config/srclist.txt (glob_.h, glob.c): Add these files.
78834 2005-05-29  Derek Price  <derek@ximbiot.com>
78836         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78837         * modules/glob: New file.
78838         * modules/getlogin_r: Add link to POSIX spec in description.
78840 2005-05-29  Derek Price  <derek@ximbiot.com>
78841             Paul Eggert  <eggert@cs.ucla.edu>
78843         * m4/glob.m4: New file.
78845 2005-05-29  Derek Price  <derek@ximbiot.com>
78846             Paul Eggert  <eggert@cs.ucla.edu>
78848         * lib/glob_.h, lib/glob.c: New files.
78850 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78852         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78853         * modules/fts-lgpl (Depends-on): Remove gettext.
78855 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78857         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78858         and don't require gt_INTTYPES_PRI.
78860 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78862         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78864         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78865         the configuration hassle isn't worth it.
78866         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78867         (LONGEST_MODIFIER, PRIuMAX): Remove.
78869 2005-05-27  Bruno Haible  <bruno@clisp.org>
78871         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78873 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78875         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78876         _POSIX_PTHREAD_SEMANTICS for Solaris.
78878 2005-05-25  Derek Price  <derek@ximbiot.com>
78880         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78882 2005-05-25  Derek Price  <derek@ximbiot.com>
78883             Paul Eggert  <eggert@cs.ucla.edu>
78885         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78886         * lib/getlogin_r.c, getlogin_r.h: New files.
78888 2005-05-25  Bruno Haible  <bruno@clisp.org>
78889             Derek Price  <derek@ximbiot.com>
78891         * lib/getlogin_r.h: Simplify API documentation.
78893 2005-05-23  Derek Price  <derek@ximbiot.com>
78895         * modules/minmax (Files): Add m4/minmax.m4.
78896         (configure.ac): Add gl_MINMAX.
78898 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78900         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78901         so that unistd-safer.h (GPL'ed code) need not be included.
78903 2005-05-22  Bruno Haible  <bruno@clisp.org>
78905         * m4/minmax.m4: New file.
78906         Based on a patch by Derek Price <derek@ximbiot.com>.
78908 2005-05-22  Bruno Haible  <bruno@clisp.org>
78910         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78911         (INT64_MIN): Fix definition.
78912         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78914         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78915         NEED_SIGNED_INT_TYPES.
78917         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78918         HAVE_SYSTEM_INTTYPES.
78920 2005-05-22  Bruno Haible  <bruno@clisp.org>
78922         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78923         Also include <sys/param.h> if it defines MIN, MAX.
78924         Based on a patch by Derek Price <derek@ximbiot.com>.
78926 2005-05-21  Jim Meyering  <jim@meyering.net>
78928         * modules/fts (Files): Add m4/inttypes-pri.m4.
78929         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78931 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78933         New fts module.
78934         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78935         (setup_dir, free_dir): New functions.
78936         (enter_dir, leave_dir): Define trivial
78937         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78938         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78939         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78940         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78941         Move to fts-cycle.c.
78942         (fts_open): Use setup_dir.
78943         (fts_close): Use free_dir.
78944         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78945         This adds a label and some gotos, but the alternatives were messier.
78946         Check for memory allocation failure when entering a dir.
78947         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78948         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78949         (FTS): New member fts_cycle, that is a union that contains the
78950         old active_dir_ht and cycle_state.  All uses changed to mention
78951         fts_cycle.ht and fts_cycle.state.
78952         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78953         fts.c, with the following changes:
78954         (setup_dir, free_dir): New functions.
78955         (enter_dir): Now returns bool.  Return true if successful, false
78956         if memory exhausted.  All callers changed.
78957         Do not bother partly cleaning up on
78958         memory allocation failure; that is free_dir's job.
78959         However, free ad if hash_insert fails, to avoid memory leak.
78960         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78961         fts->fts_options to see which union member to use.
78963 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78965         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78966         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78968 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78970         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78972 2005-05-20  Jim Meyering  <jim@meyering.net>
78974         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78975         Now a macro, to pacify GCC.
78977 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78979         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78980         of -1.
78982 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78984         * lib/chown.c (rpl_chown): Return -1 on failure.
78986 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78988         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78989         Don't check for stddef.h.
78990         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78991         don't use its results.
78992         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78993         since we include them unconditionally.  Don't require
78994         AM_STDBOOL_H, since stdbool is a prerequisite.
78995         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78996         since we assume C89 or better.
78997         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78998         as we don't use their results.
78999         Don't check for fchdir, memmove, memset, strrchr, as we use
79000         them unconditionally.
79001         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79002         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79004 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79006         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79007         Include <stddef.h> unconditionally, since we assume C89 now.
79008         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79009         * lib/fts.c: Include fts_.h first, to check interface.
79010         Do not include intprops.h; no longer needed.
79011         Include cycle-check.h and hash.h, since fts_.h no longer does.
79012         Remove unnecessary casts of closedir to void.
79013         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79014         decide whether to decrement nlinks.
79015         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79016         (FTS): Use struct hash_table * instead of Hash_table, so that
79017         we no longer need to include hash.h here.
79019 2005-05-18  Jim Meyering  <jim@meyering.net>
79021         * modules/dirfd (License): Change to LGPL.  Most of the code
79022         is already in the public domain.
79024 2005-05-18  Jim Meyering  <jim@meyering.net>
79026         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79027         Reported by Yoann Vandoorselaere.
79029 2005-05-17  Jim Meyering  <jim@meyering.net>
79031         * m4/fts.m4: New file, from coreutils.
79033 2005-05-17  Jim Meyering  <jim@meyering.net>
79035         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79037 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79039         Sync from coreutils.
79040         * m4/unlinkdir.m4: New file.
79042 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79044         Sync from coreutils.
79045         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79046         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79047         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79048         White space changes only.
79049         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79050         special.
79051         * lib/yesno.c: Include getline.h, not ctype.h.
79052         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79053         Use getline to remove arbitrary restriction on response length.
79055 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79057         * config/srclist-update: Spell out "Street" in FSF postal
79058         mail address; this is the style the FSF seems to prefer.
79060         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79061         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79062         this updates FSF postal mail address.
79064         Sync from coreutils.
79065         * modules/unlinkdir: New file.
79066         * modules/yesno (Depends-on): Add getline.
79067         * MODULES.html.sh (File system functions): Add unlinkdir.
79069 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79071         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79072         lib/strsep.h:
79073         Change the initial comment to refer to GPL, not LGPL.
79074         gnulib-tool will change it to LGPL as needed.
79076         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79077         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79078         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79079         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79080         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79081         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79082         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79083         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79084         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79085         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79086         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79087         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79088         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79089         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79090         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79091         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79092         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79093         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79094         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79095         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79096         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79097         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79098         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79099         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79100         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79101         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79102         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79103         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79104         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79105         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79106         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79107         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79108         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79109         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79110         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79111         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79112         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79113         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79114         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79115         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79116         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79117         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79118         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79119         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79120         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79121         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79122         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79123         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79124         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79125         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79126         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79127         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79128         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79129         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79130         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79131         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79132         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79133         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79134         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79135         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79136         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79137         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79138         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79139         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79140         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79141         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79142         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79143         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79144         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79145         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79146         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79147         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79148         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79149         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79150         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79151         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79152         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79153         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79154         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79155         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79156         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79157         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79158         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79159         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79160         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79161         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79162         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79163         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79164         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79165         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79166         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79167         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79168         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79169         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79170         lib/yesno.c, lib/yesno.h:
79171         Update FSF postal mail address.
79173 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79175         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79176         tests/test-memmem.c, tests/test-stpncpy.c:
79177         Update FSF postal mail address.
79179 2005-05-13  Bruno Haible  <bruno@clisp.org>
79181         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79182         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79183         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79184         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79185         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79186         Add support for 64-bit integers in the MSVC compiler.
79188 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79190         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79192 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79194         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79196 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79198         * doc/getdate.texi (General date syntax): Don't say that date
79199         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79200         Problem reported by Nic Ferrier.
79202 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79204         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79205         specified in ai_socktype. Fix invalid ai_protocol
79206         check. ai_protocol is usually set to 0 or depending on
79207         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79208         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79209         ai_socktype / ai_protocol in the returned addrinfo structure.
79211 2005-05-10  Simon Josefsson  <jas@extundo.com>
79213         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79214         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79216 2005-05-10  Karl Berry  <karl@gnu.org>
79218         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79219         (from http://www.gnu.org/licenses).
79220         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79221         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79222         fdl.texi suffices.
79224 2005-05-10  Karl Berry  <karl@gnu.org>
79226         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79227         (COPYING.DOC): remove.
79229         * config/srclist-update: new FSF address.
79231 2005-05-10  Derek Price  <derek@ximbiot.com>
79233         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79234         possible.
79236 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79237             Bruno Haible  <bruno@clisp.org>
79239         * modules/inet_ntop: New file.
79240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79241         inet_ntop.
79243 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79244             Bruno Haible  <bruno@clisp.org>
79246         * m4/inet_ntop.m4: New file.
79248 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79249             Bruno Haible  <bruno@clisp.org>
79251         * lib/inet_ntop.h: New file.
79252         * lib/inet_ntop.c: New file, from glibc with modifications.
79254 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79256         * modules/time_r (License): Change to LGPL.
79257         * modules/extensions (License): Change to LGPL.  Actually,
79258         the license is more permissive than that, but currently gnulib-tool
79259         doesn't know how to handle more-permissive licenses.
79261         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79262         Problem reported by Dave Love.
79264 2005-05-08  Jim Meyering  <jim@meyering.net>
79266         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79267         blank.
79269 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79271         * modules/argmatch (Depends-on): Add stdbool.
79272         * modules/backupfile (Depends-on): Likewise.
79273         * modules/chdir-long (Depends-on): Likewise.
79274         * modules/closeout (Depends-on): Likewise.
79275         * modules/cycle-check (Depends-on): Likewise.
79276         * modules/dirname (Depends-on): Likewise.
79277         * modules/fnmatch (Depends-on): Likewise.
79278         * modules/fsusage (Depends-on): Likewise.
79279         * modules/fwriteerror (Depends-on): Likewise.
79280         * modules/getcwd (Depends-on): Likewise.
79281         * modules/getloadavg (Depends-on): Likewise.
79282         * modules/hard-locale (Depends-on): Likewise.
79283         * modules/makepath (Depends-on): Likewise.
79284         * modules/mountlist (Depends-on): Likewise.
79285         * modules/nanosleep (Depends-on): Likewise.
79286         * modules/posixtm (Depends-on): Likewise.
79287         * modules/quotearg (Depends-on): Likewise.
79288         * modules/readtokens (Depends-on): Likewise.
79289         * modules/readtokens0 (Depends-on): Likewise.
79290         * modules/readutmp (Depends-on): Likewise.
79291         * modules/save-cwd (Depends-on): Likewise.
79292         * modules/strftime (Depends-on): Likewise.
79293         * modules/userspec (Depends-on): Likewise.
79294         * modules/utimecmp (Depends-on): Likewise.
79295         * modules/xgetcwd (Depends-on): Likewise.
79296         * modules/xnanosleep (Depends-on): Likewise.
79297         * modules/xstrtod (Depends-on): Likewise.
79298         * modules/yesno (Depends-on): Likewise.
79300 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79302         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79303         needless checks.
79305 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79307         Merge from coreutils.  Among other things,
79308         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79309         * lib/fd-safer.c: New file.
79310         * lib/fcntl-safer.h, open-safer.c: Remove.
79311         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79312         * lib/dup-safer.c: Include unistd-safer.h first.
79313         Don't include errno.h.
79314         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79315         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79316         * lib/file-type.c: Rely on file-type.h change.
79317         * lib/getloadavg.c: Include unistd-safer.h.
79318         (getloadavg): Use safer open.
79319         * lib/getusershell.c: Include "stdio-safer.h".
79320         (getusershell): Use safer fopen.
79321         * lib/long-options.c (long_options): Use NULL rather than 0.
79322         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79323         'free'.
79324         * lib/modechange.c: Likewise.
79325         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79326         (MODE_DONE): New constant.
79327         (struct mode_change): Remove 'next' member.
79328         (make_node_op_equals): New function; like the old one of the
79329         same name, except it allocates an array.
79330         (mode_compile, mode_create_from_ref): Use it.
79331         (mode_compile): Allocate result as an array, not a linked list.
79332         Parse octal string ourself, so that we catch mistakes like "+0".
79333         (mode_adjust): Arg is an array, not a linked list.
79334         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79335         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79336         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79337         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79338         Remove.  This is now stat-macros.h's job.
79339         (talloc): Remove.  All callers replaced by xalloc, so that
79340         our invokers don't have to worry about reporting memory failures.
79341         (make_node_op_equals): Remove.
79342         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79343         New constants.
79344         (struct mode_change): Moved here from modechange.h.
79345         (mode_append_entry): Remove.
79346         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79347         apps to have incorrect behavior.  Use simpler algorithm for head
79348         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79349         Detect more invalid usages rather than having somewhat-random behavior.
79350         Don't insert an "a=" action, as that leads to incorrect behavior.
79351         (mode_compile, mode_create_from_ref): Return NULL on error instead
79352         of an enum, since now there's only one way to have an error.  All
79353         callers changed.
79354         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79355         at the correct time.  Simplify calculation of "+u" and its ilk.
79356         Don't mishandle "+X".
79357         (mode_free): Remove "register" and localize decls.
79358         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79359         (struct mode_change): Move to modechange.c; callers don't
79360         need to see this stuff.
79361         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79362         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79363         (mode_change, mode_adjust): Reflect the new signatures noted above.
79364         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79365         that might redefine system include files.
79366         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79367         (my_usleep): Use NULL rather than (void *) 0.
79368         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79369         Use siginterrupt to specify that system calls should be interrupted.
79370         (rpl_nanosleep): Move initialization of suspended closer to call of
79371         my_usleep.
79372         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79373         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79374         (desirable_utmp_entry): New function.
79375         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79376         using x2nrealloc, to simplify logic.
79377         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79378         size calculation.  Do not assume utmp file is a regular file.
79379         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79380         (READ_UTMP_CHECK_PIDS): New constant.
79381         * lib/save-cwd.c: Include unistd-safer.h.
79382         (save_cwd): Use fd_safer.
79383         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79384         [!_LIBC] Include "stat-macros.h" instead.
79385         * lib/unistd-safer.h (fd_safer): New decl.
79387 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79389         * modules/getloadavg (Depends-on): Add unistd-safer.
79390         * modules/getusershell (Depends-on): Add stdio-safer.
79391         * modules/lstat (Depends-on): Remove xalloc.
79392         * modules/mkstemp (Depends-on): Add stat-macros.
79393         * modules/modechange (Depends-on): Remove xstrtol.
79394         Add stat-macros, xalloc.
79395         * modules/save-cwd (Depends-on): Add unistd-safer.
79396         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79397         * modules/unistd-safer (Files): Add lib/fd-safer.c
79398         (Makefile.am): Remove lib_SOURCES.
79400         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79401         Remove fcntl-safer; unistd-safer supersedes it.
79403 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79405         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79406         AC_HEADER_STAT.
79407         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79408         (gl_PREREQ_CHOWN): Remove.
79409         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79410         it.  Don't require AC_HEADER_STAT.
79411         (gl_PREREQ_LSTAT): Remove.
79412         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79413         Don't require AC_HEADER_STAT.
79414         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79415         (gl_PREREQ_RMDIR): Remove.
79416         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79417         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79418         the stat-macros module a prerequisite.
79419         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79420         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79421         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79422         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79423         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79424         variable names.
79425         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79426         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79427         variable prefixes.
79428         * m4/fcntl-safer.m4: Remove.
79429         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79430         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79431         Invoke gl_PREREQ_FD_SAFER.
79432         (gl_PREREQ_FD_SAFER): New macro.
79433         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79434         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79435         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79436         Remove duplicate call to AC_LIBOBJ(readutmp).
79437         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79439         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79440         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79442 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79444         * MODULES.html.sh (Misc): Add byteswap.
79446 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79448         * modules/getcwd (Depends-on): Add extensions.
79449         * modules/openat (Depends-on): Likewise.
79451 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79453         * modules/byteswap: New file.
79455 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79457         * m4/byteswap.m4: New file.
79459 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79461         * lib/byteswap_.h: New file.
79463 2005-04-25  Karl Berry  <karl@gnu.org>
79465         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79467 2005-04-25  Albert Chin  <china@thewrittenword.com>
79469         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79470         Toolkit C bug.
79472 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79474         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79475         (func_ln_if_changed): Remove forcibly for no error message
79476         in case file does not exist.
79478 2005-04-19  Simon Josefsson  <jas@extundo.com>
79480         * gnulib-tool (Options): Make --symlink mean --symbolic.
79482 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79484         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79486 2005-04-16  Simon Josefsson  <jas@extundo.com>
79488         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79490 2005-04-15  Simon Josefsson  <jas@extundo.com>
79492         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79494 2005-04-15  Simon Josefsson  <jas@extundo.com>
79496         * gnulib-tool: Rename --symlink to --symbolic.
79498 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79500         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79501         symbolic links to files instead of copying/moving.  Add --aux-dir,
79502         specifying directory relative --dir where auxiliary build tools
79503         are placed.
79505 2005-04-14  Bruno Haible  <bruno@clisp.org>
79507         * modules/allocsa (License): Change to LGPL.
79508         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79510 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79512         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79513         that "UTC +1 second" continues to work.  Problem reported
79514         by Dmitry V. Levin.
79515         (relunit_snumber): New rule.
79516         (relunit): Use it.
79518 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79520         * lib/getdate.y (universal_time_zone_table): New constant.
79521         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79522         universal_time_zone_table.
79523         (lookup_zone): Prefer universal_time_zone_table to
79524         local_time_zone_table, so that "GMT" time stamps are allowed in
79525         London during the summer.  Problem reported by Ian Abbott.
79527 2005-04-12  Jim Meyering  <jim@meyering.net>
79529         * lib/human.c (humblock): Set *options even when returning due to
79530         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79531         warning from gcc-4.
79533 2005-04-09  Jim Meyering  <jim@meyering.net>
79535         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79536         -Wuninitialized: initialize tm0.tm_year.
79538 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79540         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79541         count, since there's no maximum.  All uses changed.
79542         Add member dsts_seen.
79543         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79544         not being INT_MAX.
79545         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79546         Use pc_rels_seen to decide whther a date is absolute.
79548         * lib/getdate.y (number): Don't overwrite year.
79549         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79550         check.
79552 2005-04-02  Simon Josefsson  <jas@extundo.com>
79554         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79555         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79557 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79559         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79560         where no absolute path name can be longer than PATH_MAX.
79562 2005-03-27  Jim Meyering  <jim@meyering.net>
79564         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79566 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79568         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79569         "one's complement" -> "ones' complement" in comment, as per Knuth.
79570         "value of type" -> "type or expression" in comment.
79571         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79573 2005-03-26  Jim Meyering  <jim@meyering.net>
79575         Comment nits.
79576         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79577         Correct typos: s/or/of/.
79579 2005-03-26  Jim Meyering  <jim@meyering.net>
79581         * modules/check-include-files: Move to ../ and rename to...
79582         * check-module: ...this.
79584 2005-03-25  Jim Meyering  <jim@meyering.net>
79586         * modules/xvasprintf (Files): Add xalloc.h.
79588 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79590         * modules/gettext (Files): config/config.rpath ->
79591         build-aux/config.rpath
79592         * modules/iconv (Files): Likewise.
79593         Problem reported by Oskar Liljeblad.
79595 2005-03-23  Jim Meyering  <jim@meyering.net>
79597         * modules/check-include-files: New script to check for
79598         missing dependencies, multiple includes, etc.
79600         * modules/c-strtold (Depends-on): Add xalloc.
79601         * modules/c-strtod (Depends-on): Add xalloc.
79602         * modules/hash (Depends-on): Add xalloc.
79603         (Files): Remove lib/xalloc.h.
79605         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79606         * modules/userspec (Files): Add lib/inttostr.h.
79608 2005-03-23  Jim Meyering  <jim@meyering.net>
79610         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79612 2005-03-22  Jim Meyering  <jim@meyering.net>
79614         * modules/stat-macros: New module.
79615         * modules/canonicalize, modules/euidaccess, modules/file-type,
79616         * modules/filemode, modules/lchown, modules/makepath,
79617         * modules/rmdir, modules/stat: Depend on new stat-macros module
79618         rather than listing lib/stat-macros.h manually.
79619         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79621 2005-03-22  Jim Meyering  <jim@meyering.net>
79623         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79625 2005-03-22  Bruno Haible  <bruno@clisp.org>
79627         * config/srclist.txt: Replace target directory 'config' with
79628         'build-aux'.
79629         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79630         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79631         ../build-aux/.
79633 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79635         * modules/chdir-long (Depends-on): Add mempcpy.
79637         * modules/acl, modules/backupfile, modules/c-strtod,
79638         modules/c-strtold, modules/canon-host, modules/canonicalize,
79639         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79640         modules/exclude, modules/exitfail, modules/file-type,
79641         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79642         modules/getdate, modules/getline, modules/getpagesize,
79643         modules/getpass, modules/getugroups, modules/group-member,
79644         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79645         modules/inttostr, modules/long-options, modules/makepath,
79646         modules/md5, modules/memcasecmp, modules/memcoll,
79647         modules/modechange, modules/mountlist, modules/path-concat,
79648         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79649         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79650         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79651         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79652         modules/strftime, modules/strndup, modules/strverscmp,
79653         modules/timespec, modules/unlocked-io, modules/userspec,
79654         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79655         modules/yesno:
79656         Remove lib_SOURCES line from Makefile.am section, as this is now
79657         done automatically by the corresponding Autoconf macro.
79659 2005-03-21  Jim Meyering  <jim@meyering.net>
79661         Changes imported from coreutils.
79663         * lib/cycle-check.c: Don't include xalloc.h.
79665         * lib/path-concat.c: Don't include assert.h.
79666         (path_concat): Remove assertion that would have triggered
79667         for ABASE starting with more than one slash.
79668         Reported by Andreas Schwab.
79670         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79671         properly when ABASE is an absolute file name.
79672         Correct the description of this function.
79673         Include <assert.h>.
79674         Add an assertion and a test driver.
79675         This fixes a bug introduced on 2004-07-02.
79676         Andreas Schwab reported the resulting failure of cp --parents:
79677         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79679 2005-03-21  Jim Meyering  <jim@meyering.net>
79681         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79682         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79684 2005-03-21  Jim Meyering  <jim@meyering.net>
79685         and  Paul Eggert  <eggert@cs.ucla.edu>
79687         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79688         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79689         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79690         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79691         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79692         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79693         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79694         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79695         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79696         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79697         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79698         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79699         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79700         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79701         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79702         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79703         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79704         for these modules.
79706 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79708         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79709         (which shouldn't happen), generate nothing instead of returning 0
79710         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79712 2005-03-16  Bruno Haible  <bruno@clisp.org>
79714         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79715         HAVE_LONGLONG_64BIT.
79717 2005-03-16  Bruno Haible  <bruno@clisp.org>
79719         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79720         HAVE_LONGLONG_64BIT.
79722 2005-03-16  Bruno Haible  <bruno@clisp.org>
79724         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79725         HAVE_LONGLONG_64BIT.
79727 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79729         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79730         reliably distinguish strftime failure from empty output on POSIX
79731         hosts.
79733 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79735         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79736         (iconv_string): Don't guess a size-zero buffer, as that might cause
79737         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79738         result would be 'too large', where 'too large' is (heuristically)
79739         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79740         overflow concerns.  This will prevent some unwanted malloc failures
79741         when the inputs are very large.
79743 2005-03-15  Karl Berry  <karl@gnu.org>
79745         * config/srclist.txt (config.rpath): from gettext.
79746         * config/config.rpath: update.
79748 2005-03-15  Bruno Haible  <bruno@clisp.org>
79750         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79751         to 'negate'.
79753         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79754         variable.
79756         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79757         results.
79759 2005-03-14  Simon Josefsson  <jas@extundo.com>
79761         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79762         <fx@gnu.org>.
79764 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79766         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79767         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79768         intprops.h.
79769         * lib/strtol.c: Likewise.
79771 2005-03-14  Jim Meyering  <jim@meyering.net>
79773         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79774         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79775         to be nonzero so that we (and caller) can detect the difference
79776         between a valid zero-length expansion and an error return, even
79777         when the underlying strftime fails before writing anything into
79778         that location.
79780 2005-03-14  Bruno Haible  <bruno@clisp.org>
79782         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79783         Update from GNU gettext 0.14.3.
79785 2005-03-10  Jim Meyering  <jim@meyering.net>
79787         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79789 2005-03-10  Jim Meyering  <jim@meyering.net>
79791         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79792         so that this module works on systems without fchdir.
79794 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79796         Factor int-properties macros into a single file, except for
79797         glibc-related files.
79798         * lib/intprops.h: New file.
79799         * lib/getloadavg.c: Include it instead of limits.h.
79800         (INT_STRLEN_BOUND): Remove.
79801         * lib/human.c: Include intprops.h.
79802         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79803         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79804         302/1000.
79805         * lib/inttostr.h: Include intprops.h instead of limits.h.
79806         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79807         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79808         for consistency with intprops.h.
79809         (time_t_is_integer, twos_complement_arithmetic): Use them.
79810         * lib/sig2str.h: Include <signal.h>, intprops.h.
79811         (INT_STRLEN_BOUND): Remove.
79812         * lib/strftime.c (TYPE_SIGNED): Remove.
79813         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79814         * lib/strtol.c: Adjust comments to match intprops.h.
79815         * lib/userspec.c: Include intprops.h.
79816         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79817         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79818         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79819         instead of rolling our own expressions.
79820         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79822         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79823         instead of int.
79824         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79825         the right thing even if adding 1900 would overflow.  Similarly
79826         for tm_mon + 1 and tm_yday + 1.
79827         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79828         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79829         (DO_SIGNED_NUMBER): New macro.
79830         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79832 2005-03-07  Bruno Haible  <bruno@clisp.org>
79834         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79836 2005-03-07  Bruno Haible  <bruno@clisp.org>
79838         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79840 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79842         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79843         (func_import): Only replace files via --import when they have actually
79844         changed.
79846 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79848         * m4/mmap-anon.m4: New file.
79849         * m4/pagealign_alloc.m4: New file.
79851 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79852             Bruno Haible  <bruno@clisp.org>
79854         * modules/pagealign_alloc: New file.
79855         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79857 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79858             Bruno Haible  <bruno@clisp.org>
79860         * lib/pagealign_alloc.h: New file.
79861         * lib/pagealign_alloc.c: New file.
79863 2005-03-03  Bruno Haible  <bruno@clisp.org>
79865         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79866         Use an all-permissive copyright notice, recommended by RMS.
79868 2005-03-02  Bruno Haible  <bruno@clisp.org>
79870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79871         of AIX, the replacement has to be done only after <string.h> is
79872         included, therefore not in config.h. stpncpy.h does the replacement,
79873         and stpncpy.c uses it.
79875 2005-03-02  Bruno Haible  <bruno@clisp.org>
79877         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79878         stpncpy.c uses it.
79880 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79882         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79883         The workaround isn't strictly needed for POSIX conformance, and
79884         it's too much of a pain to configure and maintain.  We'll ask
79885         people to fix their kernels instead.
79886         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79887         (NANOSLEEP_BUG_WORKAROUND): Remove.
79888         (xnanosleep): Remove the workaround.
79890 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79892         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79893         Reported by Derek Price.
79894         (Include): Add "timespec.h".
79896         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79898 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79900         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79901         to detect nanosleep bug.
79903 2005-03-01  Bruno Haible  <bruno@clisp.org>
79905         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79907 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79909         * modules/gethrxtime: New file.
79910         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79911         (Depends-on): Add gethrxtime.
79912         (configure.ac): Add gl_XNANOSLEEP.
79913         (Makefile.am): Remove lib_SOURCES line.
79915 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79917         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79918         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79920 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79922         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79923         * lib/timespec.h (gettime): Return void, since it always
79924         succeeds now.  All uses changed.
79925         * lib/gettime.c (gettime): Likewise.
79926         [HAVE_NANOTIME]: Prefer nanotime.
79927         Assume gettimeofday succeeds, as POSIX requires.
79928         Assime time () succeeds, since other code already does.
79929         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79930         (timespec_subtract): Remove.
79931         (NANOSLEEP_BUG_WORKAROUND): New constant.
79932         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79933         things considerably.  Use it only on GNU/Linux hosts, since the
79934         workaround shouldn't be needed elsewhere.
79936 2005-02-24  Bruno Haible  <bruno@clisp.org>
79938         * modules/gettext (Files): Add m4/glibc2.m4.
79940 2005-02-24  Bruno Haible  <bruno@clisp.org>
79942         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79943         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79944         * m4/progtest.m4:
79945         Update from GNU gettext 0.14.2.
79946         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79948 2005-02-24  Bruno Haible  <bruno@clisp.org>
79950         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79951         * lib/config.charset: Update from GNU gettext 0.14.2.
79953 2005-02-24  Bruno Haible  <bruno@clisp.org>
79955         * lib/gettext.h: Update from GNU gettext 0.14.2.
79957 2005-02-23  Simon Josefsson  <jas@extundo.com>
79959         * m4/iconvme.m4: New file.
79961 2005-02-23  Jim Meyering  <jim@meyering.net>
79963         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79964         change.
79965         Thanks to Bruno Haible for catching it.
79967 2005-02-22  Simon Josefsson  <jas@extundo.com>
79969         * modules/iconvme: New file.
79971         * MODULES.html.sh: Add iconvme.
79973 2005-02-22  Simon Josefsson  <jas@extundo.com>
79975         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79977 2005-02-22  Simon Josefsson  <jas@extundo.com>
79979         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79981 2005-02-22  Jim Meyering  <jim@meyering.net>
79983         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79984         s/ifndef/ifdef/.
79986 2005-02-20  Neil Conway  <neilc@samurai.com>
79988         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79989         returned by OSX/Darwin if the specified buffer is not large
79990         enough for the hostname.
79992 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79994         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79995         pass it to _help, otherwise the latter coredumps trying to
79996         dereference state.root_argp.
79998 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80000         * modules/chdir-long (Depends-on): Add memrchr.
80001         * modules/memrchr (Files): Add lib/memrchr.h.
80002         (Include): "memrchr.h".
80004 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80006         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80008 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80010         * lib/memrchr.h: New file.
80011         * lib/chdir-long.c: Include it.
80012         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80013         Don't bother including stddef.h.
80015 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80017         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80018         inclusion.
80019         Include <sys/types.h>, for dev_t.
80020         (ME_DUMMY, ME_REMOTE): Move from here....
80021         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80022         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80023         Dmitry V. Levin.
80024         Include mountlist.h first, to test the interface.
80026 2005-01-29  Bruno Haible  <bruno@clisp.org>
80028         * lib/progname.c (program_name): Initialize.
80029         Needed when linking statically on MacOS X.
80031 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80033         Sync from coreutils.
80034         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80035         (Depends-on): Add c-strtod.
80036         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80038 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80040         Sync from coreutils.
80041         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80043         Remove files that are specific to coreutils.
80044         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80046 2005-01-28  Bruno Haible  <bruno@clisp.org>
80048         * modules/javacomp: New file.
80049         * MODULES.html.sh (Java): Add javacomp.
80051 2005-01-28  Bruno Haible  <bruno@clisp.org>
80053         * m4/javacomp.m4: New file, from GNU gettext.
80055 2005-01-28  Bruno Haible  <bruno@clisp.org>
80057         * lib/javacomp.sh.in: New file, from GNU gettext.
80058         * lib/javacomp.h: New file, from GNU gettext.
80059         * lib/javacomp.c: New file, from GNU gettext.
80061 2005-01-26  Simon Josefsson  <jas@extundo.com>
80063         * lib/gai_strerror.c: Use GPL in header.
80065 2005-01-26  Bruno Haible  <bruno@clisp.org>
80067         * modules/javaexec: New file.
80068         * MODULES.html.sh (Java): Add javaexec.
80070 2005-01-26  Bruno Haible  <bruno@clisp.org>
80072         * m4/javaexec.m4: New file, from GNU gettext.
80074 2005-01-26  Bruno Haible  <bruno@clisp.org>
80076         * lib/javaexec.sh.in: New file, from GNU gettext.
80077         * lib/javaexec.h: New file, from GNU gettext.
80078         * lib/javaexec.c: New file, from GNU gettext.
80080 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80082         * modules/lchown (Depends-on): Remove lchown.h
80084 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80086         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80087         must be defined if the header file was not found, in order
80088         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80090 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80092         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80093         initializers for struct pentry_state.
80094         (__argp_error): Check return value of __asprintf
80095         (__argp_failure): Translate error message
80097         * lib/argp-parse.c: Removed braces around the expansion of N_()
80099 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80101         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80102         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80103         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80104         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80105         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80106         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80107         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80108         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80109         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80110         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80111         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80112         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80113         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80114         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80115         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80116         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80117         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80118         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80119         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80120         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80121         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80122         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80123         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80124         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80125         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80126         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80127         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80128         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80129         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80130         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80131         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80132         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80133         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80134         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80135         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80136         Use an all-permissive copyright notice, recommended by RMS.
80138 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80140         * modules/chdir-long (Depends-on): Remove mempcpy.
80142 2005-01-21  Jim Meyering  <jim@meyering.net>
80144         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80145         same value as for Solaris 9.
80147         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80148         component length.  This included changing the parameter to be
80149         of type `char *' rather than `char const *'.
80150         * lib/chdir-long.h (chdir_long): Update prototype.
80152         * lib/openat.c (fdopendir, fstatat): New functions.
80153         * lib/openat.h: Include headers required for use of DIR and struct
80154         stat.
80155         [AT_SYMLINK_NOFOLLOW]: Define.
80156         (fdopendir, fstatat): Add prototypes.
80158 2005-01-21  Bruno Haible  <bruno@clisp.org>
80160         * modules/classpath: New file.
80161         * MODULES.html.sh (Java): Add classpath.
80163 2005-01-21  Bruno Haible  <bruno@clisp.org>
80165         * lib/classpath.h: New file, from GNU gettext.
80166         * lib/classpath.c: New file, from GNU gettext.
80168 2005-01-20  Simon Josefsson  <jas@extundo.com>
80170         * modules/version-etc-fsf: New file.
80172 2005-01-20  Simon Josefsson  <jas@extundo.com>
80174         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80175         * lib/version-etc.c: Remove version_etc_copyright.
80176         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80177         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80179 2005-01-20  Simon Josefsson  <jas@extundo.com>
80181         * lib/base64.h (isbase64): Add.
80183         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80184         using a unsigned prototype, don't inline.
80185         (base64_decode): Use it.
80187 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80189         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80190         it.
80192 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80194         * lib/save-cwd.c (save_cwd): Remove code to support the case
80195         where fchdir is missing or flaky.
80197 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80199         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80201 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80203         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80204         AC_LIBSOURCES now does this.
80205         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80206         with new ullong_max module.
80208 2005-01-19  Bruno Haible  <bruno@clisp.org>
80210         * modules/sh-quote: New file.
80211         * MODULES.html.sh (Executing programs): Add sh-quote.
80213 2005-01-19  Bruno Haible  <bruno@clisp.org>
80215         * lib/sh-quote.h: New file, from GNU gettext.
80216         * lib/sh-quote.c: New file, from GNU gettext.
80218 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80220         Merge from coreutils.
80221         * m4/ullong_max.m4: New file.
80222         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80223         (gl_MACROS): Assume localeconv exists.
80225 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80227         Merge changes from coreutils, as described below in several
80228         changelogs dated today.
80230         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80231         (O_DIRECTORY): Remove; not needed here, since "." must be
80232         a directory.  All uses removed.
80233         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80234         universal on Suns, and we also need to test for IRIX.
80235         Revamp code to use 'if' rather than '#if'.
80236         Avoid unnecessary comparison of cwd->desc to 0.
80238         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80239         for known valid error numbers rather than observed invalid ones.
80241 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80243         * modules/ullong_max: New file.
80245         * modules/chdir-long, modules/openat: New files.
80246         * modules/save-cwd (Depends-on): Depend on chdir-long.
80247         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80249 2005-01-18  Jim Meyering  <jim@meyering.net>
80251         Merge from coreutils.
80252         * m4/chdir-long.m4, m4/openat.m4: New files.
80253         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80254         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80255         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80256         is sane and DOES follow symlinks.  Besides, testing 20 different
80257         systems found no broken chown implementations.
80258         Prompted by a change in rsync's copy of this macro.
80259         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80261         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80263         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80264         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80265         NULL-means-set-to-current-time semantics.
80266         Remove temporary file immediately, rather than waiting
80267         for configure's at-exit trap code to do it.
80269 2005-01-18  Jim Meyering  <jim@meyering.net>
80271         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80273         * lib/utimens.c (futimens): Account for the fact that futimes
80274         can also fail with errno == ENOSYS or errno == ENOENT.
80275         Patch from Dmitry V. Levin.
80277         Change the name of the robust chdir function from chdir to chdir_long.
80278         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80279         (restore_cwd): Use chdir_long, not chdir.
80280         * lib/chdir-long.c: Renamed from chdir.c.
80281         * lib/chdir-long.h: Renamed from chdir.h.
80282         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80283         Hurd.
80285 2005-01-18  Bruno Haible  <bruno@clisp.org>
80287         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80288         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80289         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80290         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80291         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80292         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80293         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80294         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80295         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80296         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80297         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80298         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80299         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80300         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80301         Use an all-permissive copyright notice, recommended by RMS.
80303 2005-01-18  Bob Proulx  <bob@proulx.com>
80305         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80306         simplify offsetof() macro construct to avoid compile failure with
80307         native HP-UX 11.0 ANSI C compiler.
80309 2005-01-17  Bruno Haible  <bruno@clisp.org>
80311         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80312         redundant because stpncpy.m4 takes care of it.
80314 2005-01-17  Bruno Haible  <bruno@clisp.org>
80316         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80318 2005-01-17  Bruno Haible  <bruno@clisp.org>
80320         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80321         used.
80323 2005-01-17  Bruno Haible  <bruno@clisp.org>
80325         * lib/fwriteerror.h (fwriteerror): Change specification to include
80326         fclose.
80327         * lib/fwriteerror.c: Include <stdbool.h>.
80328         (fwriteerror): At the end, close the file stream. Record whether
80329         stdout was already closed.
80331 2005-01-17  Bruno Haible  <bruno@clisp.org>
80333         * lib/execute.c (environ): Declare if needed.
80334         * lib/pipe.c (environ): Likewise.
80335         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80337 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80339         * modules/argp: Depend on vsnprintf
80341 2005-01-10  Jim Meyering  <jim@meyering.net>
80343         * modules/closeout (Depends-on): Add atexit.
80345 2005-01-06  Bruno Haible  <bruno@clisp.org>
80347         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80349 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80351         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80352         definitions to be after all include files, to avoid collisions.
80353         Problem reported by Bob Proulx.
80355 2005-01-04  Jim Meyering  <jim@meyering.net>
80357         Changes imported from coreutils.
80358         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80359         as the mkstemp template, use a temporary directory and an
80360         8.3-friendly template to avoid trouble on systems like DJGPP.
80361         Reported by Juan M. Guerrero via Stepan Kasal.
80362         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80363         close. Remove the temporary directory right away, rather than waiting
80364         for configure's at-exit trap code to do it.
80365         Suggestion from Stepan Kasal.
80367 2005-01-01  Simon Josefsson  <jas@extundo.com>
80369         * gnulib-tool: Print #include directives when --import'ing.
80371 2004-12-28  Simon Josefsson  <jas@extundo.com>
80373         * tests/test-base64.c: Include required header files.  Remove
80374         unused variables.
80376 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80378         * modules/error (Depends-on): Remove gettext.
80380 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80382         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80383         not needed.  This removes a dependency on the gettext module.
80384         [defined _LIBC]: Do not include <libintl.h>; not needed.
80386 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80388         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80389         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80391 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80393         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80394         HAVE_DECL_STRTOLD.
80396 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80398         * modules/getdate (Depends-on): Remove alloca-opt.
80400 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80402         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80404 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80406         * lib/argp-parse.c: Include <stddef.h>.
80407         (alignof, alignto): New macros.
80408         (parser_init): Don't assume that void * is aligned sufficiently
80409         for struct option.
80411         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80412         need to extend the stack.
80413         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80414         large.
80416 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80418         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80420 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80422         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80423         (2004-10-24) change.  Apparently this was a false alarm.
80425         * modules/getdate: Depend on alloca-opt, not alloca.
80427 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80429         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80430         Remove now-obsolete comment about AIX.
80431         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80432         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80433         (YYMAXDEPTH): New macro.
80435 2004-12-18  Simon Josefsson  <jas@extundo.com>
80437         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80439 2004-12-18  Bruno Haible  <bruno@clisp.org>
80441         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80443 2004-12-18  Bruno Haible  <bruno@clisp.org>
80445         * lib/fatal-signal.c (fatal_signals): Make non-const.
80446         (init_fatal_signals): New function.
80447         (uninstall_handlers, install_handlers): Ignore signals that were set to
80448         SIG_IGN.
80449         (at_fatal_signal): Call init_fatal_signals.
80450         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80451         SIG_IGN.
80452         Reported by Paul Eggert.
80454 2004-12-18  Bruno Haible  <bruno@clisp.org>
80456         * doc/alloca.texi: New file.
80457         * doc/alloca-opt.texi: New file.
80459 2004-12-17  Jim Meyering  <jim@meyering.net>
80461         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80462         Otherwise, install-sh could exit with improper exit status when
80463         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80465 2004-12-16  Simon Josefsson  <jas@extundo.com>
80467         * tests/test-base64.c: Add license.
80469 2004-12-15  Stepan Kasal  <address@hidden>
80471         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80473 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80475         * modules/getcwd (Files): Add m4/d-ino.m4.
80476         Suggested by Mark D. Baushke.
80478 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80480         * lib/getdate.y (textint): New member "negative".
80481         (time_zone_hhmm): New function.
80482         Expect 14 shift-reduce conflicts, not 13.
80483         (o_colon_minutes): New rule.
80484         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80485         (yylex): Set the "negative" member of signed numbers.
80487 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80489         * doc/getdate.texi (Time of day items, Time zone items):
80490         Describe new formats +00:00, UTC+00:00.
80492 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80494         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80495         spurious "-l"s.  Problem reported by Stepan Kasal.
80497 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80499         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80500         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80502 2004-12-04  Simon Josefsson  <jas@extundo.com>
80504         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80505         Vandoorselaere <yoann@prelude-ids.org>.
80507 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80509         Changes imported from coreutils.
80510         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80511         exist.
80512         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80514 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80516         Changes imported from coreutils.
80517         * lib/hard-locale.c: Assume <locale.h> exists.
80518         Include "strdup.h".
80519         (GLIBC_VERSION): New macro.
80520         (hard_locale): Assume setlocale exists.
80521         Rewrite to avoid #ifdef.
80522         Use strdup rather than malloc + strcpy.
80523         * lib/human.c: Assume <locale.h> exists.
80524         (human_readable): Assume localeconv exists.
80526 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80528         * modules/hard-locale (Depends-on): Add strdup.
80530 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80532         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80533         convert T2, not T.  (Imported from libc.)
80535 2004-11-30  Simon Josefsson  <jas@extundo.com>
80537         * modules/restrict (License): Change to LGPL.
80539 2004-11-30  Simon Josefsson  <jas@extundo.com>
80541         * m4/restrict.m4: Add copyright and copying conditions.
80543 2004-11-30  Simon Josefsson  <jas@extundo.com>
80545         * m4/base64.m4: New file.
80547 2004-11-30  Simon Josefsson  <jas@extundo.com>
80549         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80550         base64.
80552         * tests/test-base64.c: New file.
80554         * modules/base64: New file.
80556 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80558         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80559         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80561         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80563 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80565         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80566         (__getcwd.c): Don't restore errno; glibc doesn't.
80567         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80568         first, falling back to our code only if its results look suspicious.
80569         Ensure that the resulting buffer is only as large as necessary.
80571         * lib/readutmp.c: Include readutmp.h first.
80572         Include <errno.h>, since readutmp.h no longer does that.
80573         * lib/readutmp.h: Don't include <errno.h>,
80574         <sys/param.h>, <time.h>; not needed to establish interface.
80575         (errno): Remove decl.
80576         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80577         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80578         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80580 2004-11-28  Simon Josefsson  <jas@extundo.com>
80582         * lib/base64.h, base64.c: New file.
80584 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80586         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80588 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80590         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80591         (Depends-on): Remove pathmax, same.  Add mempcpy.
80592         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80593         (Makefile.am): Append getcwd.h to lib_SOURCES.
80594         (Include): Add getcwd.h.
80595         (Maintainer): Change from Jim Meyering to "all, glibc",
80596         since getdate now uses intended-for-glibc code.
80597         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80598         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80600 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80602         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80603         HP's ANSI C compiler.
80604         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80605         Declaring int functions causes warnings on some modern systems and
80606         shouldn't be needed to compile on ancient ones.
80607         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80608         defined.
80610         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80611         with the following changes.
80612         (__set_errno): Parenthesize properly.
80613         Include <stdbool.h>.
80614         (MIN, MAX, MATCHING_INO): New macros.
80615         (__getcwd): Define with prototype, not K&R form.
80616         Use heuristics to allocate default buffer on stack if possible.
80617         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80618         behavior, and to avoid the PATH_MAX limit when computing
80619         ../../../../...
80620         Use MATCHING_INO to compare inode number to file.
80621         Check for arithmetic overflow in size calculations.
80622         Fix bug in reallocation of dot array that caused getcwd to fail
80623         on directories nested deeper than 75.
80624         Be more careful about saving errno on error.
80625         Do not use realloc; use only free+malloc, as this is a bit
80626         more flexible and avoids a needless copy operation.
80627         Do not inspect st_dev and st_ino for symbolic links; POSIX
80628         doesn't specify the latter.
80629         Check for closedir errors.
80630         Avoid needless casts.
80631         Use "#ifdef weak_alias" around weak_alias, to be like other
80632         glibc code.
80633         The following changes to getcwd.c have effect only when used in
80634         gnulib; they have no effect inside glibc proper.
80635         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80636         as alloca isn't used.
80637         (alloca, __alloca): Likewise.
80638         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80639         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80640         unconditionally, as gnulib assumes C89 or better.
80641         Do not include <sys/param.h>.
80642         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80643         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80644         better.
80645         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80646         Include <dirent.h> in a way that is compatible with modern Autoconf.
80647         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80648         New macros, if not already defined.
80649         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80650         Use "_LIBC", not "defined _LIBC", for consistency.
80651         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80652         a mempcpy module.
80653         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80654         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80655         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80656         credit only to Jim Meyering and adjust the copyright dates.
80657         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80658         <stdlib.h>, <unistd.h>, "pathmax.h".
80659         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80660         (INITIAL_BUFFER_SIZE): Remove.
80661         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80663 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80665         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80666         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80667         Use the _ONCE methods, for efficiency.
80668         Check for fcntl.h.  In test program, include <errno.h>
80669         and <fcntl.h> if available.  Remove old K&R cruft from
80670         test program.  Check for common errors in GNU/Linux,
80671         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80672         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80674         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80675         name accordingly.
80676         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80677         accommodate new getcwd.c.
80678         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80679         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80680         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80681         that's all we need now.
80683 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80685         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80686         argp-parse.c depends on getopt internals, that means we should
80687         always use our getopt, to be on the safe side.
80688         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80689         order not to spoil the result of an eventual previous invocation
80690         of gl_GETOPT_SUBSTITUTE.
80692 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80694         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80695         redefinition warnings. To avoid them, include the defines
80696         in `#if !defined __need_getopt ... #endif'. The only place
80697         where __getopt_argv_const is used is in definitions
80698         of getopt_long and getopt_long_only below, which are as well
80699         protected by `#ifndef __need_getopt'.
80700         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80701         __need_getopt after including <stdio.h> and <unistd.h> These
80702         headers might have defined it.
80704 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80706         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80708 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80710         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80711         (futimens): New function, which uses futimes if available.
80712         (futimens, utimens): Support timespec==NULL, with same semantics
80713         as utime and utimens.
80714         * lib/utimens.h (futimens): New decl.
80716 2004-11-23  Jim Meyering  <jim@meyering.net>
80718         * lib/getopt_.h: Remove trailing blanks.
80720 2004-11-23  Jim Meyering  <jim@meyering.net>
80722         * lib/__fpending.c: Add comment.
80724 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80726         * modules/canonicalize (Depends-on): Add xreadlink.
80727         Problem reported by James Youngman.
80729 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80731         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80732         New macros.
80733         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80734         optopt): Use them instead of invoking ## directly; otherwise, the
80735         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80737 2004-11-19  Bruno Haible  <bruno@clisp.org>
80739         * lib/strtok_r.c: Move comments from here...
80740         * lib/strtok_r.h: ... to here.
80742 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80744         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80745         implementations that mishandle size_t overflow.
80747 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80749         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80750         might fail.  Problem reported by Yoann Vandoorselaere.
80751         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80752         implementations that mishandle size_t overflow.
80754 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80756         * modules/canon-host (Depends-on): Add strdup.
80758 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80760         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80762 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80764         * lib/canon-host.c: Include "strdup.h".
80765         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80766         Use strdup instead of malloc/strcpy to duplicate strings.
80768         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80769         (human_space_before_unit): New constant.
80770         * lib/human.c (human_readable): Support it.
80772         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80773         (xgetcwd): Set errno correctly when failing.
80774         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80775         the failure is actually due to a PATH_MAX problem.
80777         Further getopt changes to make it more likely that glibc will
80778         buy the changes back.
80779         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80780         (getopt): Use it, so to preserve glibc semantic
80781         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80782         when compiling for libc.
80783         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80784         (getopt_long, getopt_long_only): Use it.
80786         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80787         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80788         (getopt): Argv is now char * const *, as per standard.
80789         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80790         not char *__getopt_argv_const *.
80791         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80792         _getopt_long_only_r): Likewise.
80793         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80794         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80795         _getopt_long_r, _getopt_long_only_r): Likewise.
80796         * lib/getopt_.h (__getopt_argv_const): Remove.
80797         (getopt): Argv is now char * const *, as per standard.
80799         * lib/getdate.y (tORDINAL): New token.
80800         (day, relunit): Allow it for relative times.
80801         (relative_time_table): Use tORDINAL for ordinals.
80803 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80805         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80806         Document that "second" isn't allowed as an ordinal number.
80808 2004-11-16  Jim Meyering  <jim@meyering.net>
80810         * modules/closeout (Depends-on): Add fpending.
80812 2004-11-15  Jim Meyering  <jim@meyering.net>
80814         * lib/closeout.c: Include "__fpending.h" once again.
80815         Include <stdbool.h>.
80816         (close_stdout): Don't fail just because stdout was closed initially,
80817         since some programs don't write to stdout in the normal course of
80818         operation (other than --version and --help), and we don't want this
80819         function to make e.g. `touch file >&-' fail.
80820         But do fail if it was closed and someone has tried to write to it.
80821         E.g., `printf foo >&-' must fail.
80823 2004-11-13  Jim Meyering  <jim@meyering.net>
80825         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80827 2004-11-12  Simon Josefsson  <jas@extundo.com>
80829         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80830         small doc fix is still pending.
80832 2004-11-11  Simon Josefsson  <jas@extundo.com>
80834         * modules/strtok_r: New file.
80836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80837         strtok_r.
80839 2004-11-11  Simon Josefsson  <jas@extundo.com>
80841         * m4/strtok_r.m4: New file.
80843         * m4/getopt.m4: Replace opterr.
80845 2004-11-11  Simon Josefsson  <jas@extundo.com>
80847         * lib/strtok_r.h, strtok_r.c: New file.
80849 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80851         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80852         of replacing opterr, getopt, etc.  This should handle the
80853         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80855 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80857         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80858         we can stop lying to compilers about the constness of argv when we
80859         are compiled outside glibc.
80860         (getopt, getopt_long, getopt_long_only): Use it.
80861         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80862         _getopt_internal, getopt): Likewise.
80863         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80864         _getopt_long_only_r): Likewise.
80865         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80866         _getopt_long_r, _getopt_long_only_r): Likewise.
80868         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80869         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80870         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80871         the other external symbols.
80872         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80873         declaration, since the above renaming now works around collisions.
80875 2004-11-11  Jim Meyering  <jim@meyering.net>
80877         * lib/linebreak.c: Remove trailing blanks.
80878         * lib/alloca_.h: Likewise.
80879         * lib/acosl.c: Likewise.
80880         * lib/euidaccess.c: Likewise.
80881         * lib/allocsa.h: Likewise.
80883 2004-11-10  Simon Josefsson  <jas@extundo.com>
80885         * m4/getaddrinfo.m4: New file.
80887 2004-11-10  Simon Josefsson  <jas@extundo.com>
80889         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80891 2004-11-10  Simon Josefsson  <jas@extundo.com>
80893         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80894         getaddrinfo.
80896         * modules/getaddrinfo: New file.
80898 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80900         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80902 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80904         * lib/mktime.c (SHR): New macro, which is a portable
80905         substitute for >> that should work even on Crays.
80906         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80907         Problem reported by Mark D. Baushke in
80908         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80909         * lib/getdate.y (SHR): Likewise.
80910         (tm_diff): Use it.
80911         * lib/strftime.c (SHR): Likewise.
80912         (tm_diff): Use it.
80913         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80914         quote_these_too, so that right shifts are well defined.  All uses
80915         changed.
80917 2004-11-10  Jim Meyering  <jim@meyering.net>
80919         Ensure that no close failure goes unreported.
80920         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80921         return early when it seems there's nothing to flush.
80922         Don't include __fpending.h.
80924 2004-11-10  Jim Meyering  <jim@meyering.net>
80926         * modules/closeout (Depends-on): Remove fpending.
80928 2004-11-10  Jim Meyering  <jim@meyering.net>
80930         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80932 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80934         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80935         gl_FUNC_STRFTIME.
80936         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80937         and AC_REQUIRE when possible, to avoid duplicate checks.
80938         Check for <wchar.h>.
80940 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80942         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80944 2004-11-09  Bruno Haible  <bruno@clisp.org>
80946         * m4/sockpfaf.m4: New file.
80948 2004-11-05  Bruno Haible  <bruno@clisp.org>
80950         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80951         Reported by Mark D. Baushke <mdb@cvshome.org>.
80953 2004-11-04  Bruno Haible  <bruno@clisp.org>
80955         2004-09-11  Bruno Haible  <bruno@clisp.org>
80956                 * allocsa.valgrind: New file.
80957         2004-02-06  Bruno Haible  <bruno@clisp.org>
80958                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80959                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80960                 Reported by Christopher Seip <chris.seip@hp.com>.
80962 2004-11-04  Bruno Haible  <bruno@clisp.org>
80964         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80965         (Makefile.am): Distribute it.
80967 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80969         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80970         with errno == ERANGE if the buffer is too small.
80971         Problem reported by Mark D. Baushke.
80973 2004-11-03  Albert Chin  <china@thewrittenword.com>
80974             Paul Eggert  <eggert@cs.ucla.edu>
80976         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80977         equivalent, substitute $ac_type for equivalent type rather than
80978         blindly using uint32_t *always* which won't work if uint32_t is not
80979         available.  Define _UINT32_T to work around typedef of uint32_t if
80980         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80981         2.5.1.
80983 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80985         * m4/jm-macros.m4: Sync from coreutils.
80986         (gl_MACROS): Check for mbrlen, for pathchk.
80987         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80989 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80991         * lib/xreadlink.c (MAXSIZE): New macro.
80992         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80993         size does not exceed MAXSIZE.  Avoid cast.
80994         As suggested by Mark D. Baushke in
80995         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80996         if readlink fails with buffer size just under MAXSIZE, try again
80997         with MAXSIZE.
80999 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81001         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81003 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81004         and  Paul Eggert  <eggert@cs.ucla.edu>
81006         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81007         (get_date): Overparenthesize to avoid GCC warning.
81009 2004-11-02  Bruno Haible  <bruno@clisp.org>
81011         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81012         returns void.
81014 2004-11-02  Bruno Haible  <bruno@clisp.org>
81016         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81017         function returns void.
81019 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81021         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81022         fflush_unlocked, flockfile, funlockfile, funlockfile,
81023         fputs_unlocked, putc_unlocked.
81025 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81027         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81028         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81029         already declared.
81031 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81033         * modules/getdate (Files): Add doc/getdate.texi.
81034         (Depends-on): Add setenv, xalloc.
81036 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81038         * lib/getdate.y: Add support for TZ="foo" within a date string.
81039         Fix some bugs near time_t boundaries.  Reject dates with
81040         out-of-range components, e.g., "Sept 31".
81041         Include <stdlib.h>, "setenv.h", "xalloc.h".
81042         (ISDIGIT_LOCALE): Remove; unused.
81043         Note that the TZ and time functions used here are not reentrant.
81044         (mktime_ok, get_tz): New functions.
81045         (TZBUFSIZE): New constant.
81046         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81047         This requires that we sometimes generate our own TZ="XXX..." setting.
81049 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81051         * doc/getdate.texi: New file, from coreutils with modifications for
81052         the new TZ parsing.
81054 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81056         * lib/mktime.c (not_equal_tm): Remove redundant check.
81058 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81060         * modules/regex (lib_SOURCES): Add regex.c.
81061         Reported by James Youngman in
81062         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81064 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81066         * lib/getdate.y: Use Bison 1.875 features, and some minor
81067         code cleanups.  This change does not affect semantics.
81068         Don't include <stdlib.h>; no longer needed.
81069         Don't include unlocked-io.h; only the "#if TEST" code uses
81070         stdio, and performance isn't crucial there.
81071         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81072         Bison 1.875 features as described below.
81073         All uses of "PC." replaced by "pc->".
81074         (YYSTYPE): Add a forward declaration.
81075         (yylex, yyerror): Use full prototypes in forward decls.
81076         Use "%pure-parser" rather than obsolescent "%pure_parser".
81077         Use %parse-param and %lex-param instead of obsolescent
81078         YYPARSE_PARAM and YYLEX_PARAM.
81079         (meridian_table, month_and_day_table, time_units_table,
81080         relative_time_table, time_zone_table, military_table,
81081         lookup_zone, lookup_word, get_date):
81082         Use NULL instead of 0 where appropriate.
81083         (to_hour): Avoid abort (), to avoid a dependency on
81084         stdlib.h.
81085         (yyerror, yylex): Now accepts parser_control * arg.
81086         (main) [TEST]: Use '\0' rather than 0 for char.
81088 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81090         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81092 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81094         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81095         It's now the caller's responsibility to handle the case where
81096         !HAVE_GETPAGESIZE && !defined getpagesize.
81098         * lib/mktime.c (leapyear): Arg is long int, not int.
81100 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81102         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81104 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81106         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81107         missing.  Problem reported by James Youngman.
81109 2004-10-16  Simon Josefsson  <jas@extundo.com>
81111         * gnulib-tool: Fix comments.  Fix parse problem.
81112         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81114 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81116         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81117         implementation of getopt_long.  Problem reported by Alexander Taler in:
81118         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81120 2004-10-15  Bruno Haible  <bruno@clisp.org>
81122         * gnulib-tool: Untabify. Initialize supplied_libname.
81123         (func_usage): More homogenous output.
81124         (func_modules_transitive_closure, func_modules_to_filelist,
81125         func_emit_lib_Makefile_am): New functions.
81126         (func_import): New function, extracted from big case statement. Use
81127         func_get_license, func_modules_transitive_closure,
81128         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81129         opt_lgpl. Don't use test -a, as it's not portable.
81130         (func_create_testdir): Use func_modules_transitive_closure,
81131         func_modules_to_filelist, func_emit_lib_Makefile_am.
81133 2004-10-15  Bruno Haible  <bruno@clisp.org>
81135         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81137 2004-10-15  Bruno Haible  <bruno@clisp.org>
81139         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81140         the portions belonging to each module.
81141         Suggested by Derek Robert Price <derek@ximbiot.com>.
81143 2004-10-12  Simon Josefsson  <jas@extundo.com>
81145         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81146         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81147         to real functions.
81149 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81151         * modules/vsnprintf: New file.
81153 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81155         * m4/vsnprintf.m4: New file.
81157 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81159         * lib/vsnprintf.h: New file.
81160         * lib/vsnprintf.c: New file.
81162 2004-10-11  Bruno Haible  <bruno@clisp.org>
81164         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81165         vsnprintf.
81167 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81169         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81171 2004-10-07  Bruno Haible  <bruno@clisp.org>
81173         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81174         fits into the provided buffer.
81176 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81178         * lib/diacrit.c, diacrit.h: Add GPL notice.
81180         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81181         notice.
81182         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81183         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81184         This avoids a potential constant-folding bug.
81186 2004-10-05  Bruno Haible  <bruno@clisp.org>
81188         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81189         for the declaration of strsep.
81191 2004-10-05  Bruno Haible  <bruno@clisp.org>
81193         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81195 2004-10-04  Simon Josefsson  <jas@extundo.com>
81197         * modules/memmem: New file.
81198         * tests/test-memmem.c: New file.
81199         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81201 2004-10-04  Simon Josefsson  <jas@extundo.com>
81203         * m4/memmem.m4: New file.
81205 2004-10-04  Simon Josefsson  <jas@extundo.com>
81207         * lib/memmem.h: New file.
81208         * lib/memmem.c: New file, taken from glibc.
81210 2004-10-04  Simon Josefsson  <jas@extundo.com>
81212         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81213         '#ifdef USE_UNLOCKED_IO'.
81215 2004-10-04  Simon Josefsson  <jas@extundo.com>
81217         * config/srclist.txt: Add memmem from glibc.
81219 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81221         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81223         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81224         modules/exclude, modules/getdate, modules/getline,
81225         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81226         modules/getusershell, modules/linebuffer, modules/md5,
81227         modules/mountlist, modules/posixtm, modules/readtokens,
81228         modules/readutmp, modules/regex, modules/sha1,
81229         modules/version-etc, modules/yesno:
81230         Remove dependency on unlocked-io.
81232 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81234         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81236         * m4/unlocked-io.m4: Add copyright notice.
81237         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81239 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81241         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81242         * lib/xmalloc.c (xmemdup): Likewise.
81243         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81244         XFREE): Remove these long-obsolescent macros.
81245         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81246         * lib/xstrdup.c: Remove.
81248         * lib/regex.c (re_comp): Cast gettext return value to char *,
81249         Problem reported by Martin Neitzel via Mark D. Baushke.
81251 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81253         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81254         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81255         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81256         regex.c, sha1.c, version-etc.c, yesno.c:
81257         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81258         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81259         the includer's responsibility.
81261         Sync from coreutils.
81263         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81264         points to the start of a string, as the C Standard says the
81265         resulting behavior is undefined.
81267         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81268         simple -> simple_backups, numbered_existing ->
81269         numbered_existing_backups, numbered -> numbered_backups
81270         to avoid shadowing problems.  All uses changed.
81271         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81272         * lib/backupfile.c (check_extension, numbered_backup):
81273         Rename locals to avoid shadowing 'basename'.
81274         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81275         once.
81277         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81278         * lib/.cvsignore: Add getopt.h.
81280 2004-10-04  Bruno Haible  <bruno@clisp.org>
81282         * modules/README: New file.
81283         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81284         not a module.
81286 2004-10-02  Jim Meyering  <jim@meyering.net>
81288         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81290 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81292         * modules/strsep: New file.
81294 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81296         * m4/strsep.m4: New file.
81298 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81300         * lib/strsep.h: New file.
81301         * lib/strsep.c: New file.
81303 2004-10-01  Simon Josefsson  <jas@extundo.com>
81305         * lib/snprintf.c (snprintf): Handle size==0.
81307 2004-10-01  Simon Josefsson  <jas@extundo.com>
81308             Bruno Haible  <bruno@clisp.org>
81310         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81311         (snprintf): Declare 'args'.
81313 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81315         * lib/snprintf.c: Remove comments as to why each header is needed.
81317 2004-10-01  Bruno Haible  <bruno@clisp.org>
81319         * MODULES.html.sh: Add strsep.
81321 2004-09-30  Simon Josefsson  <jas@extundo.com>
81323         * modules/snprintf: New file.
81325 2004-09-30  Simon Josefsson  <jas@extundo.com>
81327         * m4/snprintf.m4: New file.
81329 2004-09-30  Simon Josefsson  <jas@extundo.com>
81331         * lib/snprintf.h, lib/snprintf.c: New files.
81333 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81335         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81336         (hol_entry_help): Never translate an empty string.
81337         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81338         * lib/argp.h (OPTION_NO_TRANS): New option.
81340 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81342         * modules/argp (Maintainer): Replace Simon Josefsson
81343         by Sergey Poznyakoff.
81345 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81347         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81348         changes merged back into glibc.
81350 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81352         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81354 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81356         * lib/xvasprintf.c: Include xalloc.h.
81357         (xvasprintf): Use xalloc_die, not xmalloc_die.
81359 2004-09-29  Bruno Haible  <bruno@clisp.org>
81361         * modules/alloca-opt: New file, derived from modules/alloca.
81362         * modules/allocsa: Depend on alloca-opt instead of alloca.
81363         * modules/setenv: Likewise.
81364         * modules/vasnprintf: Likewise.
81365         * MODULES.html.sh: Add alloca-opt.
81367 2004-09-28  Simon Josefsson  <jas@extundo.com>
81369         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81370         LGPL, and to replace license template from GPL to LGPL.
81372 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81374         * modules/dummy: Change license to LGPL.
81376 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81378         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81380 2004-09-24  Simon Josefsson  <jas@extundo.com>
81382         * modules/minmax (License): Change from GPL to LGPL.
81384 2004-09-23  Simon Josefsson  <jas@extundo.com>
81386         * gnulib-tool (--import): Typo.
81388 2004-09-23  Simon Josefsson  <jas@extundo.com>
81390         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81392 2004-09-22  Bruno Haible  <bruno@clisp.org>
81394         * modules/*: Add 'License' field.
81395         * gnulib-tool: Accept --extract-license option.
81396         (func_get_license): New function.
81398 2004-09-21  Bruno Haible  <bruno@clisp.org>
81400         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81401         Reported by Simon Josefsson.
81403 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81405         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81406         gl_AC_TYPE_LONG_LONG.
81408 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81410         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81412 2004-09-18  Simon Josefsson  <jas@extundo.com>
81413         and  Paul Eggert  <eggert@cs.ucla.edu>
81415         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81416         calls with autoreconf.  Define GL_LIB.
81418 2004-09-14  Karl Berry  <karl@gnu.org>
81420         * config/srclist.txt: unsync setenv.c, sigh.
81422 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81424         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81425         Problem reported by Bruno Haible in:
81426         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81428 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81430         * config/srclist.txt: Comment out argp-pvh.c.
81432 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81434         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81435         in case some system header has #define'd it.  Problem reported by
81436         Soeren D. Schulze in
81437         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81439 2004-09-09  Karl Berry  <karl@gnu.org>
81441         * regex.[ch]: delete from the root.  These were supposed to be
81442                 synced with emacs cvs, but this has not happened for about
81443                 a year, and anyway nothing else uses emacs regex.[ch].
81444                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81445                 lib/regex[.ch] is untouched.
81447 2004-09-09  Bruno Haible  <bruno@clisp.org>
81449         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81451 2004-09-09  Bruno Haible  <bruno@clisp.org>
81453         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81454         modifications.
81455         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81457 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81459         * modules/xvasprintf: New file.
81460         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81462 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81464         * lib/xvasprintf.h: New file.
81465         * lib/xvasprintf.c: New file.
81466         * lib/xasprintf.c: New file.
81468 2004-09-08  Bruno Haible  <bruno@clisp.org>
81470         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81472 2004-09-08  Bruno Haible  <bruno@clisp.org>
81474         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81475         length is > INT_MAX.
81476         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81477         more.
81479 2004-09-08  Bruno Haible  <bruno@clisp.org>
81481         * lib/stdint_.h: New file, taken from GNU clisp.
81483 2004-09-08  Bruno Haible  <bruno@clisp.org>
81484             Oskar Liljeblad  <oskar@osk.mine.nu>
81486         * modules/stdint: New file.
81487         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81489 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81491         Import from coreutils.
81492         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81493         strings on unbounded length.  alloca's performance benefits aren't
81494         that important here.
81495         (V_STRDUP): Remove.
81496         (parse_with_separator): New function, with most of the internals
81497         of the old parse_user_spec.  Allow user to omit both user and group,
81498         for compatibility with FreeBSD.
81499         Clone only the user name, not the entire spec.
81500         Do not set *uid, *gid unless entirely successful.
81501         Avoid memory leak in some failing cases.
81502         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81503         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81504         (parse_user_spec): Rewrite to use parse_with_separator.
81506 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81508         * modules/userspec: Don't depend on alloca.
81510 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81512         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81514 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81516         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81517         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81518         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81520 2004-08-16  Simon Josefsson  <jas@extundo.com>
81522         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81523         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81524         Add --dry-run for --import.
81525         Let user provided command line parameters override configure.ac
81526         settings.
81528 2004-08-12  Simon Josefsson  <jas@extundo.com>
81530         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81531         as discussed with Paul Eggert in threads rooted at
81532         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81533         and
81534         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81535         Before, the test was empty, and relied on ELIDE_CODE in source
81536         code.)
81537         (gl_PREREQ_GETOPT): New macro.
81538         (gl_GETOPT): Use them.
81540 2004-08-12  Simon Josefsson  <jas@extundo.com>
81542         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81543         * lib/getopt_.h: Renamed from getopt.h.
81545 2004-08-12  Simon Josefsson  <jas@extundo.com>
81547         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81548         Change default library name from libfoo to libgnu.
81549         Now, if you have a configure.ac that says:
81550                 gl_SOURCE_BASE(gl)
81551                 gl_M4_BASE(gl/m4)
81552                 gl_MODULES(error getopt etcetera)
81553                 gl_INIT
81554         you can import all you need by running:
81555                 ../gnulib/gnulib-tool --import
81557         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81558         (Makefile.am): Rewrite, use logic from argz.
81559         (Include): Use <getopt.h> instead of "getopt.h".
81561 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81563         * modules/argp (Files): Add m4/unlocked-io.m4.
81564         (Depends-on): Add extensions.
81566 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81568         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81569         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81570         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81571         Check for program_invocation_name, program_invocation_short_name,
81572         flockfile, funlockfile, features.h, _getopt_long_only_r.
81574 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81576         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81577         its complicated substitute.
81578         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81579         and program_invocation_name.
81580         (__argp_basename) [!_LIBC]: Remove; the only use was
81581         replaced by its body.
81582         (__argp_short_program_name): Change condition from
81583         !defined __argp_short_program_name to
81584         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81585         to match argp-namefrob.h.
81586         (__argp_failure): Don't assume strerror_r returns char *.
81587         * lib/argp-parse.c (N_): Define unconditionally.
81588         (argp_default_options): Fill out initializers with 0 to avoid
81589         gcc warnings.
81591 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81593         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81594         getopt1.c.
81596 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81598         Merge from coreutils.
81600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81602         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81603         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81605 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81607         Merge from coreutils.
81609         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81610         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81611         for Reliant Unix 5.43.
81613         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81614         (union fooround): Use uintmax_t, not long int.
81615         The rest is a merge from libc:
81616         [defined _LIBC]: Include <shlib-compat.h>.
81617         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81619         * lib/settime.c (settime): Recode to avoid warning with
81620         Sun Forte C 6U2.
81622         * lib/strverscmp.c: Convert to UTF-8.
81624 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81626         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81627         m4/uintmax_t.m4.
81629 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81631         * modules/xalloc-die: New file.
81632         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81634         * modules/md5 (Files): Add m4/uint32_t.m4.
81635         * modules/sha1: Renamed from modules/sha.
81636         (Files):
81637         Rename lib/sha.h to lib/sha1.h.
81638         Rename lib/sha.c to lib/sha1.c.
81639         Rename m4/sha.m4 to m4/sha1.m4.
81640         (lib_SOURCES): Likewise.
81641         (configure.ac): Rename gl_SHA to gl_SHA1.
81642         (Include): sha.h -> sha1.h.
81644 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81646         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81647         * m4/sha1.m4: Renamed from sha.m4.
81648         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81650 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81652         * lib/obstack.h (obstack_empty_p):
81653         Don't assume that chunk->contents is suitably aligned.
81654         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81655         Likewise. Problem reported by Benno in
81656         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81658         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81659         readable.  This could be improved further but it'd take some work.
81661 2004-08-08  Simon Josefsson  <jas@extundo.com>
81663         * modules/xgethostname (Depends-on): Remove exit and error (not
81664         used).
81666         * modules/getpass-gnu: Add getpass.h.
81667         (Depends-on): Add stdbool.
81668         * modules/getpass: Add getpass.h.
81670 2004-08-08  Simon Josefsson  <jas@extundo.com>
81672         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81673         Check getpass declaration.
81675 2004-08-08  Simon Josefsson  <jas@extundo.com>
81677         * lib/xgethostname.c: Don't include error.h (not used).
81679         * lib/getpass.h: Add.
81680         * lib/getpass.c: Include getpass.h first.
81682 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81684         * lib/xalloc-die.c: New file.
81685         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81686         All uses removed.
81687         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81688         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81689         xalloc-die.c.
81690         (_, N_, xalloc_die): Move to xalloc-die.c.
81691         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81692         so that we needn't mess with xalloc_msg_memory_exhausted.
81694         * lib/sha1.h: Renamed from sha.h.
81695         (SHA1_H): Renamed from _SHA_H.
81696         (sha1_ctx): Renamed from sha_ctx.
81697         (sha1_init_ctx): Renamed from sha_init_ctx.
81698         (sha1_process_block): Renamed from sha_process_block.
81699         (sha1_process_bytes): Renamed from sha_process_bytes.
81700         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81701         (sha1_read_ctx): Renamed from sha_read_ctx.
81702         (sha1_stream): Renamed from sha_stream.
81703         (sha1_buffer): Renamed from sha_buffer.
81704         * lib/sha1.c: Likewise; renamed from sha.c.
81705         Do not include <sys/types.h>.
81706         Include <stddef.h> rather than <stdlib.h>.
81708 2004-08-08  Bruno Haible  <bruno@clisp.org>
81710         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81711         FILESYSTEM_PREFIX_LEN.
81712         * lib/progreloc.c: Likewise.
81713         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81715 2004-08-06  Simon Josefsson  <jas@extundo.com>
81717         * modules/progname (Depends-on): Don't depend on stdbool.
81719 2004-08-06  Simon Josefsson  <jas@extundo.com>
81721         * modules/getsubopt: New file.
81722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81723         getsubopt.
81725 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81727         More merge from coreutils.
81729         * m4/utimens.m4, m4/utimecmp.m4: New files.
81730         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81731         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81732         prereq.m4, sha.m4: Import changes from coreutils.
81734 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81736         More merge from coreutils.
81737         * modules/raise, modules/readtokens0, modules/utimens:
81738         * modules/utimecmp, module/xnanosleep: New files.
81739         * modules/strftime: Add lib/strftime.h.
81740         Change include from <time.h> to "strftime.h".
81741         * modules/yesno: Add lib/yesno.h.
81742         * modules/backupfile: Remove lib/addext.c.
81743         * modules/euidaccess: Add stat-macros.h.
81744         * modules/canonicalize, modules/euidaccess,
81745         modules/filemode, modules/lchown, modules/makepath,
81746         modules/rmdir, modules/stat: Likewise.
81748 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81750         Merge from tar.
81751         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81752         SIZE_MAX is a valid preprocessor constant.
81753         (__argp_basename): Change from "#ifndef _LIBC"
81754         to "#ifndef __argp_short_program_name", so that
81755         we don't compile these functions for tar.
81757         More merges from coreutils.
81758         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81759         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81760         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81761         * lib/addext.c: Remove; no longer needed.
81762         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81763         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81764         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81765         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81766         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81767         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81768         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81769         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81770         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81771         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81772         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81773         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81774         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81775         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81776         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81777         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81778         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81779         Import changes from coreutils.
81781 2004-08-05  Simon Josefsson  <jas@extundo.com>
81783         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81785 2004-08-05  Simon Josefsson  <jas@extundo.com>
81787         * m4/getsubopt.m4: New file.
81789 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81791         Merge from coreutils.
81793         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81794         * m4/getcwd-path-max.m4: New files.
81796         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81797         FILESYSTEM_PREFIX_LEN ->
81798         FILE_SYSTEM_PREFIX_LEN.
81799         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81800         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81801         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81802         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81804         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81805         prerequisite modules now handle the DOS stuff.
81806         Don't check for unistd.h.
81808 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81810         Merge from coreutils.
81812         * lib/.gdb-history: Remove; this doesn't belong here.
81814         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81815         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81816         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81817         * lib/getcwd.c: New files.
81819         * lib/dirname.h: Include <stdbool.h>.
81820         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81821         for consistency with POSIX terminology.  All uses changed.
81822         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81823         (strip_trailing_slashes): Use bool for booleans.
81824         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81826         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81827         sometimes returns a positive errno value even when it succeeds.
81828         (print_errno_message) [!LIBC]: Fall back on strerror if
81829         __strerror_r fails.
81831         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81832         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81833         (longest_relative_suffix): New function.
81834         (path_concat): Use it.  Assume first argument is not NULL.
81835         Port to DOS.  Omit redundant separators.
81836         Report an error instead of returning NULL.
81837         Use mempcpy instead of memcpy.
81838         (xpath_concat): Remove: not declared or used.
81840         * lib/same.h: Include <stdbool.h>
81841         (same_name): Return bool, not int.
81842         * lib/same.c (same_name): Likewise.
81843         (errno): Don't declare; we assume C89 or better now.
81845         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81846         if not already defined.
81848         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81849         * lib/dup-safer.c (errno): Likewise.
81851 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81853         Merge from coreutils.
81854         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81855         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81856         * modules/path-concat: Don't depend on strdup.
81858 2004-08-03  Simon Josefsson  <jas@extundo.com>
81860         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81861         * lib/progname.h: Don't include stdbool.h.
81863 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81865         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81866         * MODULES.html.sh (func_all_modules): Remove fatal.
81868 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81870         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81872 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81874         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81875         working.
81877 2004-08-02  Simon Josefsson  <jas@extundo.com>
81879         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81880         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81881         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81883 2004-08-01  Simon Josefsson  <jas@extundo.com>
81885         * lib/xgetdomainname.c: Include stdlib.h, for free().
81887 2004-07-19  Bruno Haible  <bruno@clisp.org>
81889         * MODULES.html.sh (func_all_modules): Add dummy.
81891 2004-07-16  Simon Josefsson  <jas@extundo.com>
81893         * modules/dummy: New file.
81895 2004-07-16  Simon Josefsson  <jas@extundo.com>
81897         * lib/dummy.c: New file.
81899 2004-07-16  Bruno Haible  <bruno@clisp.org>
81901         * lib/backupfile.h: Add extern "C" for C++.
81902         * lib/closeout.h: Likewise.
81903         * lib/copy-file.h: Likewise.
81904         * lib/findprog.h: Likewise.
81905         * lib/full-write.h: Likewise.
81906         * lib/pathname.h: Likewise.
81907         * lib/progname.h: Likewise.
81908         * lib/stpcpy.h: Likewise.
81909         * lib/stpncpy.h: Likewise.
81910         * lib/strcase.h: Likewise.
81911         * lib/strstr.h: Likewise.
81912         * lib/xalloc.h: Likewise.
81914         * lib/mbswidth.h: Add extern "C" for C++.
81915         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81917 2004-07-13  Robert Millan  <robertmh@gnu.org>
81919         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81921 2004-07-09  Simon Josefsson  <jas@extundo.com>
81923         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81924         failed without this.)
81926 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81928         * modules/chown (Files): Add lib/fchown-stub.c, since
81929         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81931 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81933         * lib/fchown-stub.c: New file.
81935 2004-06-24  Jim Meyering  <jim@meyering.net>
81937         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81939 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81941         * modules/argz: Omit "#include".
81943         * MODULES.html.sh (func_all_modules): Add calloc, to match
81944         2004-06-01 addition of calloc module.
81946 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81948         * m4/argz.m4: New file, which is autoupdated from libtool.
81950 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81952         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81953         libtool.
81955 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81957         * config/srclist-update: Don't insist on "USA." before the
81958         close-comment, as libtool omits the period and puts the */ on a
81959         separate line.
81960         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81961         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81963 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81965         * modules/argz: New file.
81966         * MODULES.html.sh (func_all_modules): Add argz.
81968 2004-06-12  Jim Meyering  <jim@meyering.net>
81969         and  Paul Eggert  <eggert@cs.ucla.edu>
81971         * modules/hash (Files): Add lib/xalloc.h.
81972         * modules/pipe (Depends-on): Add wait-process.
81973         * modules/stat (Depends-on): Add xalloc.
81974         * modules/userspec (Files): Add lib/userspec.h.
81975         * modules/xstrto
81977         Upgrade from gettext-0.13.
81978         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81979         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81980         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81982 2004-06-10  Jim Meyering  <jim@meyering.net>
81984         * lib/calloc.c: New file.
81986 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81988         * lib/getdate.y (yylex): Allow space between sign and number.
81989         Problem reported by Dan Jacobson.
81991 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81993         Merge from coreutils CVS.
81995         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81996         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81997         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81998         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81999         xstrtol.m4: Fix copyright date and/or serial number.
82001         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82002         See if we need an fchown replacement.
82003         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82004         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82005         and use the replacement function if we detect either defect.
82007         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82008         gl_UTIMECMP.
82010 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82011         and  Jim Meyering  <jim@meyering.net>
82013         Merge from coreutils CVS.
82015         * lib/stat-macros.h: New file, with contents from file-type.h
82016         and coreutils' system.h.
82017         * lib/file-type.c: Include "stat-macros.h".
82018         * lib/file-type.h (file_type): Move all macro definitions to new file,
82019         stat-macros.h.
82021         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82022         Wrap old code with this conditional.
82023         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82024         function that does not dereference symlinks.
82025         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82027         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82028         dependency problems.
82029         (xreadlink): Accept new arg SIZE, for efficiency.
82030         All decls and uses changed.
82031         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82033         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82034         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82036         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82037         sysexits.h.
82039 2004-06-01  Jim Meyering  <jim@meyering.net>
82041         * m4/calloc.m4: New file.
82043 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82045         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82046         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82047         Also, fix a typo in a diagnostic.
82049 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82051         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82052         or AC_FUNC_REALLOC.
82054 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82056         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82057         macros to be defined.
82058         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82059         the allocator returns NULL because the requested size is zero.
82061 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82063         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82064         var.  Add comment explaining why libc still defines it.  This
82065         merges the following patch from glibc:
82066         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82068 2004-05-20  Andreas Schwab  <schwab@suse.de>
82070         * m4/free.m4: Replace free if it not known to work, not the other
82071         way round.
82073 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82075         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82076         present in glibc since revision 1.1 of this file.
82077         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82078         obstack_alignment_mask, obstack_alloc, obstack_base,
82079         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82080         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82081         obstack_grow0, obstack_init, obstack_int_grow,
82082         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82083         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82084         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82085         nonexistent functions.
82087 2004-05-18  Karl Berry  <karl@gnu.org>
82089         * config/srclist.txt: break link for vasnprintf.c.
82091 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82093         Port obstack to the AS/400, where pointers are 16 bytes wide and
82094         you cannot cast an integer to a valid pointer.  This patch is
82095         currently waiting to be integrated into glibc; see
82096         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82098         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82099         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82100         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82101         (struct obstack): temp member is now a union of a pointer and
82102         an integer, instead of an integer.  All integer uses changed.
82103         This does not affect the physical layout of struct obstack,
82104         except on hosts (like the AS/400) where the size or alignment of
82105         void * is greater than that of ptrdiff_t.
82106         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82107         __STDC__)]: Store temporary in pointer member of union, not
82108         integer member.
82109         * lib/obstack.c: Include <stddef.h>, for offsetof.
82110         (struct fooalign): Remove; it doesn't need a name.
82111         (union fooround): Change double to long double, and add void *.
82112         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82113         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82114         not a macro.  Hence the values are always int; so remove all
82115         casts-to-int in uses.
82117 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82119         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82120         we can get this patch merged into glibc.
82122 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82123             Paul Eggert  <eggert@cs.ucla.edu>
82125         * m4/argp: Depend on alloca.
82127 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82128             Paul Eggert  <eggert@cs.ucla.edu>
82130         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82131         freecoding.
82133 2004-05-17  Bruno Haible  <bruno@clisp.org>
82135         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82136         precision that consists of a '.' followed by an empty digit string.
82137         Patch by Tor Lillqvist <tml@iki.fi>.
82139 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82141         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82142         for backward compatibility with older code.  We need our own
82143         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82144         it under some other name, and our alloca.h will define it.
82146 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82147             Derek Price  <derek@ximbiot.com>
82149         * lib/alloca.c: Include <alloca.h>, to get our interface.
82150         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82151         include <alloca.h> first.  Use C89 prototype for alloca; this
82152         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82153         Use #elif for simplicity, since we can assume C89 now.
82154         Don't try to source the system alloca.h since it will not be found
82155         and to prevent recursively including its replacement.
82156         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82157         * lib/regex.c: Likewise.
82159 2004-05-16  Derek Price  <derek@ximbiot.com>
82160             Paul Eggert  <eggert@cs.ucla.edu>
82162         getline cleanup.  This changes the getndelim2 API: both order of
82163         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82164         no delimiter).
82166         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82167         interface does that.
82168         (getline): Always use getdelim, so that we don't have two
82169         copies of this code.
82170         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82171         if available.
82172         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82173         (GETNDELIM2_MAXIMUM): New macro.
82174         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82175         instead of the old practice of delim2==0.  All callers changed.
82176         Return -1 on overflow, instead of returning junk.
82177         Do not set *linesize unless allocation succeeds.
82178         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82179         that we include sys/types.h.
82180         * lib/getnline.h: Likewise.
82181         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82182         (getndelim2): Reorder arguments.
82183         * lib/getnline.c (getnline, getndelim):
82184         Don't discard the NMAX argument.
82185         (getnline): Invoke getndelim, to avoid code duplication.
82186         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82187         of (size_t) -1 by callers of the getnline family.
82189 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82191         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82192         Check for gettimeofday.
82193         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82194         Check for settimeofday, stime.
82196 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82198         * lib/nanosleep.c (suspended): Change its type from int to
82199         sig_atomic_t volatile.
82200         (first_call): Make it private to rpl_nanosleep, and have it
82201         be zero initially as that's a bit faster.
82202         (my_usleep): Round up fractional times instead of truncating them,
82203         as this is the usual meaning for 'sleep'.
82205         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82206         doesn't work.
82207         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82208         (ENOSYS): Define if not defined.
82209         (settime): Fall back on stime if it exists and settimeofday fails.
82210         But don't bother with fallbacks if a method fails with errno == EPERM.
82212 2004-05-11  Jim Meyering  <jim@meyering.net>
82214         Prior to this change, the save_cwd caller required read access to the
82215         current directory on most systems (ones with the fchdir function).
82217         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82218         fails, try write-only, and finally, resort to using xgetcwd.
82220 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82222         * lib/obstack.c, obstack.h: Import changes from libc.
82224 2004-04-28  Bruno Haible  <bruno@clisp.org>
82226         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82227         also implicitly appends .exe to executables.
82228         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82229         accepts Windows pathnames.
82230         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82231         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82232         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82233         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82234         Reported by Derek Robert Price <derek@ximbiot.com>.
82236 2004-04-21  Karl Berry  <karl@gnu.org>
82238         * config/srclist.txt (localcharset.c): break sync.
82240 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82242         * m4/host-os.m4: Add a copyright notice.
82244 2004-04-20  Jim Meyering  <jim@meyering.net>
82246         Change UTILS_ to gl_ in AC_DEFINE'd names.
82247         Change utils_- and jm_-prefixed variables, too.
82248         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82249         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82252         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82253         Don't emit trailing blanks.
82254         Also rename jm_-prefixed variables to have gl_ prefix.
82256         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82257         Also rename jm_-prefixed variables to have gl_ prefix.
82259         * m4/jm-macros.m4: Reflect the renamings.
82260         * m4/prereq.m4: Likewise.
82262 2004-04-20  Jim Meyering  <jim@meyering.net>
82264         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82265         memory.
82267 2004-04-20  Jim Meyering  <jim@meyering.net>
82268             Bruno Haible  <bruno@clisp.org>
82270         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82271         memory when realloc fails.
82273 2004-04-19  Jim Meyering  <jim@meyering.net>
82275         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82276         now that readutmp.c may call `free (0)'.
82278 2004-04-19  Bruno Haible  <bruno@clisp.org>
82280         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82281         * m4/inttypes_h.m4: Likewise.
82282         * m4/stdint_h.m4: Likewise.
82283         * m4/intmax_t.m4: Likewise.
82284         * m4/uintmax_t.m4: Likewise.
82286 2004-04-18  Jim Meyering  <jim@meyering.net>
82288         * m4/prereq.m4: Don't forbid jm_ prefix.
82290         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82291         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82292         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82293         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82294         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82295         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82296         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82297         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82298         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82299         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82300         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82301         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82302         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82303         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82304         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82305         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82306         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82307         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82308         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82310 2004-04-18  Jim Meyering  <jim@meyering.net>
82312         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82313         failure, don't leak memory and do call END_UTMP_ENT.
82315 2004-04-16  Jim Meyering  <jim@meyering.net>
82317         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82318         coreutils' stat program.
82319         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82321 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82323         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82324         C89.
82325         (CHAR_BIT): Remove, since we assume C89.
82326         Include <stdint.h> if available, as per current Autoconf CVS advice.
82328 2004-03-31  Jim Meyering  <jim@meyering.net>
82330         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82331         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82332         * m4/xalloc.m4: Likewise.
82334 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82336         Merge from coreutils.
82338         * m4/inttostr.m4: New file.
82339         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82340         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82341         Require gl_CLOCK_TIME.
82342         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82344 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82346         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82347         not bool, to be more consistent with Unix conventions.
82348         Suggested by Bruno Haible.
82350         Merge from coreutils.
82352         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82353         * lib/umaxtostr.c: New files.
82355         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82356         the usual <time.h> dance.
82357         (get_date): Change signature to support fractional time stamps.
82358         All callers changed.
82359         * lib/getdate.y: Include "getdate.h" first, as we can now
82360         assume C89 and don't need to worry about 'const'.
82361         Similarly, include "unlocked-io.h" near start, not in middle.
82362         Include <limits.h>.
82363         (textint.value): Use long int rather than int.
82364         (textint.digits): Use size_t rather than int.
82365         (BILLION, LOG10_BILLION): New constants.
82366         (parser_control): New member rel_ns.  Members day_ordinal,
82367         time_zone, month, day, hour, minutes, rel_year, rel_month,
82368         rel_day, rel_hour, rel_minutes, rel_seconds
82369         are now long int, not int.  Member seconds is now struct timespec,
82370         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82371         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82372         not int.
82373         (%union.intval): Now long int, not int.
82374         New member timespec.
82375         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82376         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82377         (spec): Now is a timespec or an item list.
82378         (timespec, items): New nonterminals.
82379         (time, rel, relunit, number, get_date):
82380         Add support for fractional seconds.
82381         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82382         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82383         (to_hour): First arg is now long int, not int.
82384         (to_year): Returns long int, not int.
82385         Don't treat year -70 like 70.
82386         (tm_diff): Returns long int, not int.
82387         (lookup_word): Use bool instead of int when appropriate.
82388         (yylex): Use size_t for count, not int.
82389         Detect overflow when parsing large integer constants.
82390         Add support for fractions.
82391         (get_date): Make pointers 'const' if possible.
82392         Use more-portable code to detect integer overflow.
82393         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82394         Don't use ctime; it's not reliable if the year has >4 digits.
82396         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82397         This is for compatibility with BSD.
82399         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82400         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82401         From coreutils' system.h.
82403         * lib/userspec.c: Don't include "posixver.h".
82404         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82405         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82406         compatible extension.  Simplify code by removing a boolean int
82407         that was always nonzero if a string was nonnull.
82409 2004-03-30  Jim Meyering  <jim@meyering.net>
82411         Merge from coreutils.
82413         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82414         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82415         on some systems one must include <grp.h> before it.
82416         Reported by Christian Krackowizer.
82418 2004-03-30  Jim Meyering  <jim@meyering.net>
82420         Merge from coreutils.
82422         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82424         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82425         an empty input stream.
82427         * lib/readtokens.c: Include <stdbool.h>.
82428         (readtoken): Use `size_t' rather than int/long.
82429         All callers adjusted.
82430         Use `bool' rather than `int' where appropriate.
82431         Use memset rather than an explicit loop.
82432         Use x2nrealloc rather than xrealloc.
82433         Allow the use of `\0' as a delimiter.
82434         (readtokens): Likewise.
82435         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82437 2004-03-30  Jim Meyering  <jim@meyering.net>
82439         * m4/realloc.m4: Remove file, since now it does no more than
82440         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82441         the `configure.ac' section of module/realloc.
82442         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82444 2004-03-30  Bruno Haible  <bruno@clisp.org>
82446         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82447         nonnull.
82449 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82451         Merge changes to getloadavg.c from coreutils and Emacs.
82453         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82454         Define to an expression, not to the empty string.
82455         Include cloexec.h and xalloc.h.
82456         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82457         Use set_cloexec_flag rather than rolling our own.
82458         * lib/cloexec.c, lib/cloexec.h: New files.
82460 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82462         * m4/cloexec.m4: New file.
82464 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82466         * lib/getopt.h: Sync with libc CVS.
82468 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82469             Bruno Haible  <bruno@clisp.org>
82471         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82472         mbswidth.
82474 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82475             Bruno Haible  <bruno@clisp.org>
82477         * lib/mbswidth.h: Include <wchar.h> only if
82478         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82479         <wchar.h>.
82480         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82482 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82484         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82485         Sync with libc CVS.
82486         * lib/getopt_int.h: New file, also synced from libc.
82488 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82490         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82491         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82492         Bring back getopt.c, getopt.h, getopt1.c.
82494 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82496         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82497         All uses changed.  Check for sa_sigaction member; this fixes
82498         a bug first reported by Jason Andrade in
82499         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82501 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82503         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82504         '#if' expressions.  Unlike the code it replaces, it does not
82505         depend on (defined _SC_PAGESIZE).  However, it does depend on
82506         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82507         first reported by Jason Andrade in
82508         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82510 2004-02-25  Simon Josefsson  <jas@extundo.com>
82512         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82514 2004-02-25  Simon Josefsson  <jas@extundo.com>
82516         * lib/strdup.h: New file.
82517         * lib/strdup.c: Include it.
82518         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82519         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82521 2004-02-23  Karl Berry  <karl@gnu.org>
82523         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82524         (from fencepost.gnu.org:/gd/gnuorg).
82526 2004-02-23  Karl Berry  <karl@gnu.org>
82528         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82529         * config/srclist.txt: add maintain/standards documents.
82531 2004-02-18  Bruno Haible  <bruno@clisp.org>
82533         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82534         Reported by Derek Robert Price <derek@ximbiot.com>.
82536 2004-02-16  Karl Berry  <karl@gnu.org>
82538         * config/mkinstalldirs, install-sh: update from automake.
82540 2004-02-06  Karl Berry  <karl@gnu.org>
82542         * m4/po.m4: update from gettext 0.14.1.
82544 2004-02-06  Karl Berry  <karl@gnu.org>
82546         * lib/config.charset: update from gettext 0.14.1.
82548 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82550         Add comments and code, prompted by suggestions from Bruno Haible
82551         for sh-quote.
82552         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82553         describing the enum quoting_style values.
82554         * lib/quotearg.c (quotearg_alloc): New function.
82555         (quotearg_buffer_restyled): Treat lone { and } as special.
82556         Treat = as special.  Work around bug with older shells
82557         that "see" a '\' that is really the 2nd byte of a multibyte char.
82558         Quote empty string with shell_quoting_style.
82560 2004-02-03  Bruno Haible  <bruno@clisp.org>
82562         * m4/pipe.m4: New file, from GNU gettext.
82564 2004-02-03  Bruno Haible  <bruno@clisp.org>
82566         * lib/pipe.h: New file, from GNU gettext.
82567         * lib/pipe.c: New file, from GNU gettext.
82569 2004-01-27  Bruno Haible  <bruno@clisp.org>
82571         * m4/execute.m4: New file, from GNU gettext.
82573 2004-01-27  Bruno Haible  <bruno@clisp.org>
82575         * lib/execute.h: New file, from GNU gettext.
82576         * lib/execute.c: New file, from GNU gettext.
82577         * lib/w32spawn.h: New file, from GNU gettext.
82579 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82581         Merge from diffutils.
82583         * lib/file-type.c (file_type): Add typed memory objects.
82584         * lib/file-type.h (S_TYPEISTMO): New macro.
82586         * lib/c-stack.h (c_stack_action): Remove argv argument.
82587         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82588         (die): Don't calculate message unless segv_action returns.
82589         (get_stack_location, min_address_from_argv, max_address_from_argv,
82590         volatile stack_base, volatile_stack_size): Remove.
82591         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82592         that every segmentation violation is a stack overflow.  (Ouch!)
82593         See Debian bug 136249 (still outstanding) for more info about why
82594         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82596 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82598         Exit-status fix from coreutils.
82600         Use exit_failure consistently in place of EXIT_FAILURE,
82601         so that program exit statuses are consistent on failure.
82603         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82604         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82605         * lib/argmatch.h: Comment fix to match the above.
82606         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82607         Now a macro referring to exit_failure, instead of a separate
82608         variable.  Include "exitfail.h" to get it.
82609         * lib/xstrtol.h: Include "exitfail.h".
82610         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82612         * lib/long-options.c (parse_long_options): Use prototype
82613         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82614         for clarity.
82616 2004-01-21  Jim Meyering  <jim@meyering.net>
82618         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82619         so as not to conflict with a different-sized __mktime_internal
82620         function in GNU libc.
82621         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82622         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82624 2004-01-20  Karl Berry  <karl@gnu.org>
82626         * config/config.guess: update from config.
82628         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82630 2004-01-20  Bruno Haible  <bruno@clisp.org>
82632         Safer stack allocation.
82633         * lib/setenv.c: Include allocsa.h.
82634         (alloca): Remove fallback definition.
82635         (freea): Remove macro.
82636         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82637         instead of freea.
82639 2004-01-20  Bruno Haible  <bruno@clisp.org>
82641         * m4/eealloc.m4: New file, from GNU gettext.
82643 2004-01-20  Bruno Haible  <bruno@clisp.org>
82645         * m4/allocsa.m4: New file, from GNU gettext.
82647 2004-01-20  Bruno Haible  <bruno@clisp.org>
82649         * lib/xallocsa.h: New file, from GNU gettext.
82650         * lib/xallocsa.c: New file, from GNU gettext.
82652 2004-01-20  Bruno Haible  <bruno@clisp.org>
82654         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82656 2004-01-20  Bruno Haible  <bruno@clisp.org>
82658         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82659         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82660         specially.
82662 2004-01-20  Bruno Haible  <bruno@clisp.org>
82664         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82665         patch.
82667 2004-01-20  Bruno Haible  <bruno@clisp.org>
82669         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82671 2004-01-20  Bruno Haible  <bruno@clisp.org>
82673         * lib/eealloc.h: New file.
82675 2004-01-20  Bruno Haible  <bruno@clisp.org>
82677         * lib/binary-io.h: Avoid warnings on Cygwin.
82679 2004-01-20  Bruno Haible  <bruno@clisp.org>
82681         * lib/allocsa.h: New file, from GNU gettext.
82682         * lib/allocsa.c: New file, from GNU gettext.
82684 2004-01-18  Karl Berry  <karl@gnu.org>
82686         * doc/gpl.texi, doc/lgpl.texi: new files.
82688 2004-01-18  Karl Berry  <karl@gnu.org>
82690         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82691         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82693 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82695         Merge from coreutils.
82697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82698         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82699         (gl_DEFAULT_POSIX2_VERSION): Move
82700         the documentation from 'configure' into 'config.hin',
82701         so that 'configure --help' isn't burdened by it and
82702         we don't have to worry about its formatting there.
82703         Reword the documentation so that it's more succinct
82704         and can be run together into a single paragraph.
82705         * m4/same.m4 (gl_SAME): Check for pathconf.
82707 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82709         Merge from coreutils.
82711         * lib/posixver.c: Include posixver.h.
82713         * lib/same.c: Include <stdbool.h>, <limits.h>.
82714         (_POSIX_NAME_MAX): Define if not defined.
82715         (MIN): New macro.
82716         (same_name): If file names are silently truncated, report
82717         that the file names are the same if they are the same after
82718         the silent truncation.
82720         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82721         conversion function.
82722         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82723         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82724         longer needed.
82726 2004-01-15  Jim Meyering  <jim@meyering.net>
82728         Merge from coreutils.
82730         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82731         if no library is required.
82732         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82733         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82734         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82735         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82736         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82737         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82738         value, $ac_cv_search_crypt, if it's "none required".
82739         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82740         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82741         not gl_FUNC_GETLOADAVG.
82742         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82743         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82745 2004-01-15  Jim Meyering  <jim@meyering.net>
82747         Merge from coreutils.
82749         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82750         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82751         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82753         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82754         optional configure-time default.
82756         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82758         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82760 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82762         Merge from coreutils.
82764         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82765         value, $ac_cv_search_nanosleep, if it's "none required".
82767 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82769         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82770         with like-named macro in fnmatch.c.
82771         (EXT): Use an internal constant instead.
82773         Merge fnmatch patches from glibc.
82774         * lib/fnmatch.c (mbsinit): Remove define.
82775         Add libc_hidden_ver (__fnmatch, fnmatch).
82776         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82777         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82779 2004-01-14  Karl Berry  <karl@gnu.org>
82781         * config/install-sh: update from automake.
82783 2004-01-13  Karl Berry  <karl@gnu.org>
82785         * config/install-sh: update from automake.
82787 2004-01-09  Karl Berry  <karl@gnu.org>
82789         * config/install-sh: update from automake.
82791 2004-01-05  Karl Berry  <karl@gnu.org>
82793         * config/config.{sub,guess}: update from config.
82795 2003-12-31  Karl Berry  <karl@gnu.org>
82797         * config/depcomp: update from automake.
82799 2003-12-14  Karl Berry  <karl@gnu.org>
82801         * lib/config.charset: update from gettext-runtime.
82803 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82805         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82806         Bug reported by Alfred M. Szmidt.
82808 2003-12-03  Bruno Haible  <bruno@clisp.org>
82810         * m4/gettext.m4: Upgrade from gettext-0.13.
82811         * m4/po.m4: Upgrade from gettext-0.13.
82812         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82813         * m4/intmax.m4: New file, from gettext-0.13.
82814         * m4/printf-posix.m4: New file, from gettext-0.13.
82816 2003-11-29  Karl Berry  <karl@gnu.org>
82818         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82820 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82821             Bruno Haible  <bruno@clisp.org>
82823         * lib/printf-parse.h: Don't include sys/types.h.
82824         (ARG_NONE): New macro.
82825         (char_directive): Change type of *arg_index fields to size_t.
82826         * lib/printf-parse.c: Don't include sys/types.h.
82827         (SSIZE_MAX): Remove macro.
82828         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82829         Remove unnecessary overflow check.
82830         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82831         fields.
82833 2003-11-25  Bruno Haible  <bruno@clisp.org>
82835         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82837 2003-11-25  Bruno Haible  <bruno@clisp.org>
82839         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82840         gt_TYPE_SSIZE_T.
82842 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82844         * modules/alloca: Remove dependency on xalloc.
82846 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82848         * lib/alloca.c: Remove dependency on xalloc module.
82849         (xalloc_die): Remove.
82850         (memory_full) [!defined emacs]: New macro.
82851         [!defined emacs]: Don't include xalloc.h.
82852         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82853         address arithmetic overflows.  Change datatypes a bit to avoid
82854         unnecessary casts.
82856 2003-11-22  Jim Meyering  <jim@meyering.net>
82858         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82859         s/size/size_t/.
82861 2003-11-21  Karl Berry  <karl@gnu.org>
82863         * config/config.{sub,guess}: update from config.
82865 2003-11-18  Karl Berry  <karl@gnu.org>
82867         * config/config.{sub,guess}: update from config.
82869         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82871 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82873         * README: Mention that S+T cannot overflow if S is the size of
82874         an existing object and T is sufficiently small.
82876 2003-11-17  Jim Meyering  <jim@meyering.net>
82878         On systems without utime and without a utimes function capable of
82879         dealing with a NULL struct utimbuf* argument, this utime replacement
82880         could -- in unusual circumstances -- leak a file descriptor.
82881         * lib/utime.c: Include <unistd.h> and <errno.h>.
82882         (utime_null): Be sure to close `fd' and to preserve errno.
82883         Reported by Geoff Collyer via Arnold Robbins.
82885 2003-11-17  Bruno Haible  <bruno@clisp.org>
82887         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82888         (Depends-on): Add xsize.
82890 2003-11-17  Bruno Haible  <bruno@clisp.org>
82892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82894 2003-11-17  Bruno Haible  <bruno@clisp.org>
82896         * lib/vasnprintf.c (alloca): Remove fallback definition.
82897         (freea): Remove definition.
82898         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82899         Reported by Paul Eggert.
82901 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82902             Bruno Haible  <bruno@clisp.org>
82904         Protect against address arithmetic overflow.
82905         * lib/printf-args.h: Include stddef.h.
82906         (arguments): Change type of field 'count' to size_t.
82907         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82908         'unsigned int' where appropriate.
82909         * lib/printf-parse.h: Include sys/types.h.
82910         (char_directive): Change type of *arg_index fields to ssize_t.
82911         (char_directives): Change type of fields 'count', max_*_length to
82912         size_t.
82913         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82914         (SSIZE_MAX): Define fallback value.
82915         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82916         instead of 'int' where appropriate. Check a_allocated, d_allocated
82917         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82918         * lib/vasnprintf.c: Include xsize.h.
82919         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82920         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82921         overflow. Avoid wraparound when converting a width or precision from
82922         decimal to binary.
82924 2003-11-16  Bruno Haible  <bruno@clisp.org>
82926         Update from GNU gettext.
82927         * lib/printf-parse.c: Generalize to it can be compiled for wide
82928         strings.
82929         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82930         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82931         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82932         SNPRINTF): New macros.
82933         Don't include <alloca.h> if the file is used inside libintl.
82934         (local_wcslen): New function, for Solaris 2.5.1.
82935         (VASNPRINTF): Use it instead of wcslen.
82937 2003-11-16  Bruno Haible  <bruno@clisp.org>
82939         * lib/xsize.h (xmax): New function.
82940         (xsum, xsum3, xsum4): Declare as "pure" functions.
82942 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82944         * modules/xalloc (Files): Undo latest change, since xalloc.h
82945         no longer needs SIZE_MAX or PTRDIFF_MAX.
82947 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82949         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82950         gl_PTRDIFF_MAX.
82952 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82954         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82955         "return", to pacify some unknown compiler.  Problem reported
82956         by Joerg Schilling.
82958 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82960         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82961         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82962         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82963         heuristic is just as accurate as far as we know, and it removes a
82964         dependency on size_max.m4 and ptrdiff_max.m4.
82966 2003-11-11  Bruno Haible  <bruno@clisp.org>
82968         * modules/xsize (Files): Add m4/size_max.m4.
82969         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82971 2003-11-11  Bruno Haible  <bruno@clisp.org>
82973         * m4/size_max.m4: New file.
82974         * m4/ptrdiff_max.m4: New file.
82975         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82976         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82977         (gl_XALLOC): Invoke it.
82979 2003-11-11  Bruno Haible  <bruno@clisp.org>
82981         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82982         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82983         defined.
82985 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82987         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82988         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82989         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82990         From Bruno Haible.
82991         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82992         not (size_t) -1, since it's defined here.
82994 2003-11-09  Karl Berry  <karl@gnu.org>
82996         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82998 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83000         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83001         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83002         Reject sizes of exactly SIZE_MAX bytes.
83003         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83004         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83006 2003-11-05  Bruno Haible  <bruno@clisp.org>
83008         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83009         SIZE_MAX defined in <limits.h> on Solaris.
83011 2003-11-04  Jim Meyering  <jim@meyering.net>
83013         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83014         variable names, rather than @VAR@.
83015         * modules/poll: Likewise.
83017 2003-11-04  Bruno Haible  <bruno@clisp.org>
83019         * modules/xsize: New file.
83020         * modules/linebreak: Depend on xsize.
83021         * MODULES.html.sh (func_all_modules): Add xsize.
83023 2003-11-04  Bruno Haible  <bruno@clisp.org>
83025         * m4/xsize.m4: New file.
83027 2003-11-04  Bruno Haible  <bruno@clisp.org>
83029         * lib/xsize.h: New file.
83030         * lib/linebreak.c: Include xsize.h.
83031         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83032         argument for overflow.
83033         Suggested by Paul Eggert.
83035 2003-11-03  Karl Berry  <karl@gnu.org>
83037         * config/config.{guess,sub}: update from config.
83039 2003-11-03  Jim Meyering  <jim@meyering.net>
83041         * modules/userspec (lib_SOURCES): Add userspec.h.
83042         (Include): Add "userspec.h".
83043         Improve description.
83045 2003-11-03  Jim Meyering  <jim@meyering.net>
83047         * lib/userspec.c: Include "userspec.h".
83048         * lib/userspec.h: New file.
83050 2003-11-03  Bruno Haible  <bruno@clisp.org>
83052         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83054 2003-11-03  Bruno Haible  <bruno@clisp.org>
83056         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83057         available, to avoid (extremely rare) race condition.
83058         Suggested by Paul Eggert.
83060 2003-11-02  Karl Berry  <karl@gnu.org>
83062         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83064 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83066         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83067         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83068         (read_filesystem_list): Set and use me_type_malloced.
83069         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83070         whatever the type happens to be), for brevity and consistency.
83071         Check for size calculation overflow on Alphas running OSF/1.
83073 2003-10-31  Jim Meyering  <jim@meyering.net>
83075         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83077         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83079 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83080             Bruno Haible  <bruno@clisp.org>
83082         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83083         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83085 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83087         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83088         netbsd*-gnu*.  Suggested by Robert Millan.
83090 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83092         * modules/group-member: Depend on stdbool.
83094 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83096         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83098 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83100         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83101         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83102         after the 'gnu' in these cases.  This fixes some bugs in the
83103         previous change, and is based on suggestions by Robert Millan.
83105 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83107         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83108         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83109         no longer needed.
83110         * lib/quotearg.c (quotearg_n_options): Use it.
83111         * lib/group-member.c: Include <stdbool.h>.
83112         (free_group_info): Arg is now const *; don't free arg.
83113         (get_group_info): Now returns bool and accepts struct group_info *,
83114         rather than returning a malloc'ed struct group_info *.
83115         All uses changed.  Check for overflow in internal size calculation.
83117         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83118         rather than xmalloc/xrealloc.
83119         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83120         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83121         conformance bug: the old code used a pointer after freeing the
83122         storage that it addressed.
83123         * lib/hash.c (hash_initialize): Simplify the code by using
83124         xalloc_oversized rather than doing it by hand.
83125         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83126         the buffer preserved.  Use free and xmalloc instead.
83127         * lib/quotearg.c (quotearg_n_options): Likewise.
83128         Use a simpler test for size overflow.  Don't use xalloc_oversized
83129         because unsigned int might be wider than size_t (!); this suggests
83130         that we should switch from unsigned int to size_t for slot numbers.
83132 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83134         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83135         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83136         NetBSD kernels.  Requested by Richard Stallman.
83138 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83140         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83141         to allocate the returned structure.  Do not allocate a subarray,
83142         as x2nrealloc will do that.
83143         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83144         instead of xnrealloc.
83145         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83147 2003-10-27  Bruno Haible  <bruno@clisp.org>
83149         * lib/stdbool_.h: Better support for BeOS.
83151 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83153         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83154         now uses inline.
83156 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83158         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83159         callers that want to do their own size-overflow checking.  Include
83160         <stdbool.h>, since xalloc_oversized returns bool.
83161         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83162         to use xalloc_oversized.
83164         Add two functions x2realloc, x2nrealloc, for programs that grow
83165         arrays dynamically by doubling their sizes.
83166         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83167         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83168         New functions.
83170         Port to C99 semantics for 'inline' of external functions.
83171         Bug reported by Bruno Haible.
83172         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83173         with the old contents of xnmalloc.
83174         (xnmalloc, xmalloc): Use it.
83175         (xnrealloc_inline): New static inline function,
83176         with the old contents of xnrealloc.
83177         (xnrealloc, xrealloc): Use it.
83179         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83180         that.
83182 2003-10-26  Karl Berry  <karl@gnu.org>
83184         * config/srclist.txt (COPYING.DOC): no longer available from
83185         /gd/gnuorg; don't know where the ultimate source is.
83187 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83189         Fix several address-calculation bugs in the hash modules,
83190         plus some minor code cleanup.
83192         * lib/hash.h: Include <stdbool.h>, for bool.
83193         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83194         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83195         hash_get_n_entries, hash_get_max_bucket_length,
83196         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83197         hash_rehash): Use size_t rather than unsigned.
83198         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83199         hash_get_n_buckets_used, hash_get_n_entries,
83200         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83201         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83202         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83203         Likewise.
83204         (SIZE_MAX): Define if not defined.
83205         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83206         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83207         hash_print):
83208         Use const * when possible.
83209         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83210         (check_tuning): Fix bug: if tuning parameters were very close to
83211         0 or 1, rounding errors could have caused subscript violations.
83212         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83213         (hash_initialize): Add 'fail:' label
83214         to free table and return NULL, and use it to simplify code.
83215         Use calloc rather than clearing the storage ourself.
83216         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83217         buffer size calculations.
83218         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83219         Include <stddef.h>, for size_t.
83220         * lib/hash-pjw.c (hash_pjw): Likewise.
83221         Switch to method described by Bruno Haible.
83222         Include <limits.h>, for CHAR_BIT.
83223         (SIZE_BITS): New macro.
83225 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83227         * m4/getline.m4 (AM_FUNC_GETLINE):
83228         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83229         hosts.  Problem reported by Derek Robert Price in
83230         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83231         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83232         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83234 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83236         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83237         ceiling the allocation at NMAX bytes rather than silently
83238         discarding input bytes before NMAX is reached.  This makes
83239         a difference only if NMAX exceeds SIZE_MAX / 2.
83241         * lib/obstack.c: Merge from glibc.
83242         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83243         Add libc_hidden_def (_obstack_newchunk).
83244         (_obstack_free) [! defined _LIBC]: Remove.
83245         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83246         a clone of the function body.
83247         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83248         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83250         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83251         glibc.
83252         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83253         arg to memcpy.
83255         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83256         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83257         Don't use lvalue casts, as GCC plans to remove support for them
83258         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83259         was also present in the non-GCC version, indicating that this
83260         code had always been buggy and had never been widely used.
83261         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83262         Use the fast variant of each macro, rather than copying the
83263         definiens of the fast variant; that way, we'll be more likely to
83264         catch future bugs in the fast variants.
83266 2003-10-20  Bruno Haible  <bruno@clisp.org>
83268         * modules/wait-process: New file.
83269         * MODULES.html.sh (func_all_modules): Add wait-process.
83271 2003-10-20  Bruno Haible  <bruno@clisp.org>
83273         * m4/wait-process.m4: New file.
83275 2003-10-20  Bruno Haible  <bruno@clisp.org>
83277         * lib/wait-process.h: New file, from GNU gettext.
83278         * lib/wait-process.c: New file, from GNU gettext.
83280 2003-10-19  Jim Meyering  <jim@meyering.net>
83282         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83283         HPUX 10.20.
83285 2003-10-18  Karl Berry  <karl@gnu.org>
83287         * config/config.guess: update from config.
83289 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83291         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83292         (getgroups): First arg is int, not size_t.
83293         Don't let 'free' mangle errno.
83295 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83297         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83299 2003-10-16  Karl Berry  <karl@gnu.org>
83301         * config/config.{guess,sub}: update from config.
83303 2003-10-16  Jim Meyering  <jim@meyering.net>
83305         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83306         memcpy.
83308 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83310         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83311         (SIZE_MAX): Remove.
83312         (new_exclude, add_exclude_file): Initial size no longer needs to
83313         be a power of 2.
83314         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83315         our own address arithmetic overflow checking.
83317         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83318         (fnmatch): Do not alloca more than 2000 wide characters;
83319         instead, use malloc for large buffers.
83320         Check for address arithmetic overflow, and return -1
83321         with errno set to ENOMEM in that case.
83322         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83323         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83324         instead, return -1.  Check for address arithmetic overflow.
83326 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83328         Handle invalid suffixes and overflow independently, so that
83329         callers can treat them independently as needed.  Fix some bugs in
83330         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83331         suffix for a human-readable blocksize.  The major caller-visible
83332         change is the addition of a new
83333         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83334         that both overflow and suffix chars were found.
83336         * lib/human.c (humblock): Don't check separately for invalid suffix
83337         char; that is xstrtoumax's job (now that its bug is fixed).
83338         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83339         INTMAX_MAX]: New macros.
83340         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83341         TYPE_MAXIMUM): New macros.
83342         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83343         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83344         if overflow occurs, as it's what __strtol does and it's more useful
83345         in practice.
83346         (__xstrtol): If __strtol reports some error other than ERANGE,
83347         reflect it to the caller as LONGINT_INVALID.  If it reports
83348         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83349         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83350         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83351         value.
83352         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83353         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83354         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83355         [defined UINTMAX_MAX]: New macros.
83357 2003-10-14  Bruno Haible  <bruno@clisp.org>
83359         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83361 2003-10-14  Bruno Haible  <bruno@clisp.org>
83363         * m4/sig_atomic_t: New file, from GNU gettext.
83364         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83366 2003-10-14  Bruno Haible  <bruno@clisp.org>
83368         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83369         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83370         Also use volatile where needed.
83372 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83374         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83375         Change maintainer from Bruno Haible to 'all'.
83377 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83379         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83381 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83383         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83384         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83385         and define in terms of the other primitives.
83386         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83387         (SIZE_MAX): Define if not already defined.
83388         (array_size_overflow): New function.
83389         (xalloc_die): Abort instead of exiting if 'error' returns.
83390         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83391         (xmalloc, xrealloc): Use them.
83392         (xcalloc): Check for address arithmetic overflow.
83393         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83394         a bit faster than strcpy.
83396 2003-10-10  Simon Josefsson  <jas@extundo.com>
83398         * modules/argp (Depends-on): Add restrict and strcase.
83400 2003-10-10  Simon Josefsson  <jas@extundo.com>
83402         * m4/argp.m4: Add AC_C_INLINE.
83404 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83406         Merge getpass from libc, plus a few fixes.
83408         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83409         Include <stdbool.h>.
83410         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83411         __fsetlocking to empty.
83412         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83413         do include <bits/libc-lock.h>.
83414         Do not include <fcntl.h>; not needed.
83415         [_LIBC]: Include <wchar.h>.
83416         (NOTCANCEL_MODE): New macro.
83417         (flockfile, funlockfile) [_LIBC]: New macros.
83418         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83419         [!_LIBC]: New macros.
83420         (call_fclose): New function.
83421         (getpass): Use it.  Save tty stream separately; this simplifies the
83422         code and makes it more reliable if stdin happens to equal stdout.
83423         Invoke __fsetlocking on tty.
83424         Handle thread cancellation if needed.
83425         Namespace cleanup (use __tcgetattr, __getline).
83426         Use bool for Booleans.
83427         [USE_IN_LIBIO]: Handle wide streams.
83428         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83429         stream might go where.
83431         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83432         doesn't have to include <stdio.h> before us.
83433         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83434         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83435         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83436         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83437         if not declared, so that we can use getpass.c code from libc without
83438         rewriting it.
83439         (flockfile, ftrylockfile, funlockfile): New macros.
83441 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83443         * modules/getpass: Depend on stdbool.
83445 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83447         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83449 2003-10-07  Karl Berry  <karl@gnu.org>
83451         * config/config.{guess,sub}: update from config.
83453 2003-10-06  Jim Meyering  <jim@meyering.net>
83454             Bruno Haible  <bruno@clisp.org>
83456         This lets translators provide better translations for the
83457         "Written by ..." part of --version output.
83458         * lib/version-etc.h: Include stdarg.h.
83459         (version_etc_copyright): Declare as readonly.
83460         (version_etc): Make this function variadic with a NULL-terminated list
83461         of author name strings.
83462         (version_etc_va): New declaration.
83463         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83464         (version_etc_copyright): Declare as readonly.
83465         (version_etc_va): New function. Provide a different translatable string
83466         for each possible number of authors < 10. Abbreviate when there are 10
83467         authors or more.
83468         (version_etc): Make this function variadic. Call version_etc_va.
83469         Suggestion from Gary V. Vaughan.
83471         * lib/long-options.h (parse_long_options): Change prototype: the
83472         authors string is moved to the end and becomes variadic.
83473         * lib/long-options.c: Include stdarg.h.
83474         (parse_long_options): Make this function variadic, too.
83475         Call version_etc_va, not version_etc.
83477 2003-10-06  Bruno Haible  <bruno@clisp.org>
83479         * modules/version-etc-2: Remove file.
83480         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83482 2003-10-06  Bruno Haible  <bruno@clisp.org>
83484         * modules/fatal-signal: New file.
83485         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83487 2003-10-06  Bruno Haible  <bruno@clisp.org>
83489         * m4/fatal-signal.m4: New file.
83490         * m4/signalblocking.m4: New file, from GNU gettext.
83492 2003-10-06  Bruno Haible  <bruno@clisp.org>
83494         * lib/version-etc-2.h: Remove file.
83495         * lib/version-etc-2.c: Remove file.
83497 2003-10-06  Bruno Haible  <bruno@clisp.org>
83499         * lib/fatal-signal.h: New file, from GNU gettext.
83500         * lib/fatal-signal.c: New file, from GNU gettext.
83502 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83504         * README: Rework advice for preventing empty .o files.
83505         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83506         not <sys/types.h>.
83508 2003-10-04  Karl Berry  <karl@gnu.org>
83510         * lib/argp*: update from libc.
83512 2003-10-04  Karl Berry  <karl@gnu.org>
83514         * config/config.{guess,sub}: update from config.
83516 2003-10-02  Bruno Haible  <bruno@clisp.org>
83518         * modules/lchown (Include): Add lchown.h.
83519         * modules/time_r (Include): Use "..." syntax.
83520         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83522 2003-10-01  Simon Josefsson  <jas@extundo.com>
83524         * MODULES.html.sh (func_all_modules): Move gethostname from section
83525         'based on' to section 'lacking' POSIX:2001.
83527 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83529         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83530         to output mode on the same stream.
83532 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83534         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83535         Fix arg typo in previous patch.
83537 2003-09-28  Jim Meyering  <jim@meyering.net>
83539         * lib/error.c: Correct cpp indentation.
83541 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83543         * modules/free: New file.
83545 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83547         * m4/free.m4: New file.
83549 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83551         * lib/minmax.h (MIN, MAX)
83552         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83553         Omit the special code that used __typeof__, since we worry that
83554         it could be more trouble than it's worth.  See:
83555         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83556         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83558         * lib/free.c: New file.
83560 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83562         Trivial fixes to Makefile.am parts of module listings.
83563         * modules/strstr: Append strstr.h to lib_SOURCES.
83564         * modules/strcase: Likewise, for strcase.h.
83566 2003-09-27  Karl Berry  <karl@gnu.org>
83568         * config/mkinstalldirs: update from automake.
83570 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83572         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83573         (error_tail): Do not loop, reallocating temporary buffer, since
83574         the output cannot contain more wide characters than the input
83575         contains bytes, the size must be big enough already.  This avoids
83576         one potential size overflow calculation.  Check for size overflow
83577         when calculating temporary buffer size.  Free temporary buffer
83578         when done, if it was allocated with malloc; this plugs a memory
83579         leak.  Remove casts from void * to pointers, that are no longer
83580         needed now that we're assuming C89 or better.
83582         Merge error changes from glibc.
83584         * lib/error.c, error.h: Update copyright notice header to match glibc.
83585         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83586         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83587         Disable cancellation while printing error.
83588         * lib/error.h: Prepend __ to parameter names.
83590 2003-09-26  Jim Meyering  <jim@meyering.net>
83592         * lib/error.c (error_tail): Move some declarations
83593         into inner scope where the local variables are used.
83595 2003-09-26  Bruno Haible  <bruno@clisp.org>
83597         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83598         stpncpy().
83599         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83601 2003-09-26  Bruno Haible  <bruno@clisp.org>
83603         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83604         (stpncpy): Define as alias for gnu_stpncpy.
83605         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83607 2003-09-25  Simon Josefsson  <jas@extundo.com>
83609         * lib/xgetdomainname.h: New file.
83610         * lib/xgetdomainname.c: New file.
83612 2003-09-25  Simon Josefsson  <jas@extundo.com>
83613             Bruno Haible  <bruno@clisp.org>
83615         * modules/getdomainname: New file.
83616         * modules/xgetdomainname: New file.
83617         * MODULES.html.sh (func_all_modules): Add getdomainname,
83618         xgetdomainname.
83620 2003-09-25  Simon Josefsson  <jas@extundo.com>
83621             Bruno Haible  <bruno@clisp.org>
83623         * m4/getdomainname.m4: New file.
83625 2003-09-25  Simon Josefsson  <jas@extundo.com>
83626             Bruno Haible  <bruno@clisp.org>
83628         * lib/getdomainname.h: New file.
83629         * lib/getdomainname.c: New file.
83631 2003-09-25  Karl Berry  <karl@gnu.org>
83633         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83635 2003-09-25  Karl Berry  <karl@gnu.org>
83637         * config/install-sh: update from automake.
83639 2003-09-25  Bruno Haible  <bruno@clisp.org>
83641         * modules/version-etc-2: New file, from modules/version-etc with
83642         modifications.
83643         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83645 2003-09-25  Bruno Haible  <bruno@clisp.org>
83647         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83648         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83650 2003-09-24  Simon Josefsson  <jas@extundo.com>
83652         * modules/xgethostname: Add xgethostname.h.
83654 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83656         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83657         the buffer associated with the argument.  Bug reported by
83658         Simon Josefsson.
83660 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83662         * README: Document assumptions that 'int' is at least 32 bits
83663         wide, that integer arithmetic is 2's complement without overflow,
83664         that there are no holes in integer values, that adding sizes of
83665         two nonoverlapping objects can't overflow, and that all-bits-zero
83666         yields scalar zero.  Fix spelling and capitalization typos.
83668 2003-09-19  Karl Berry  <karl@gnu.org>
83670         * lib/argp.h: update from libc.
83672 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83675         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83676         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83678 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83680         * gnulib-tool: Use "test -h", not "test -L", for portability
83681         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83682         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83683         (sed_extract_prog): Issue s commands one-by-one, rather than
83684         using \| in one s command.
83686 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83688         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83689         input error, instead of returning NULL the next time we are called
83690         (and therefore losing track of errno).
83692 2003-09-16  Bruno Haible  <bruno@clisp.org>
83694         * gnulib-tool (func_create_testdir): Warn about duplicated
83695         dependencies.
83697 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83699         * modules/argmatch, modules/fatal, modules/obstack,
83700         modules/xalloc, modules/xgethostname: Sort dependencies by
83701         importance, not alphabetically.
83703 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83705         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83706         fails, so that the caller gets the proper errno.
83708         * lib/readutmp.c (read_utmp): Likewise.
83709         Check for fstat error.  Close stream and free storage
83710         when failing.
83712 2003-09-14  Karl Berry  <karl@gnu.org>
83714         * config/srclist.txt (strdup.c): disable for c89 changes.
83716 2003-09-14  Jim Meyering  <jim@meyering.net>
83718         * lib/getloadavg.c: Correct cpp indentation.
83719         * lib/strdup.c: Likewise.
83720         * lib/vasnprintf.c: Likewise.
83722 2003-09-14  Bruno Haible  <bruno@clisp.org>
83724         * modules/fwriteerror: New file.
83725         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83727 2003-09-14  Bruno Haible  <bruno@clisp.org>
83729         * lib/fwriteerror.h: New file.
83730         * lib/fwriteerror.c: New file.
83732 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83734         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83735         modules/xgethostname, modules/xalloc: Depend on exit.
83737 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83739         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83741         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83742         and AC_MINIX, too, so that their extensions are available.
83744         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83745         This macro has been superseded by gl_BACKUPFILE.
83747         More patches to assume C89 or better.
83749         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83751         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83752         unconditionally.
83753         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83754         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83755         Include <string.h>, <stdlib.h> unconditionally.
83756         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83757         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83758         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83759         headers or for string.h.
83760         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83761         or strtoul.
83763         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83764         headers.
83765         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83766         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83767         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83768         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83769         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83770         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83771         memcpy, memset.
83772         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83773         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83774         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83775         strtol.
83776         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83777         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83778         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83779         strtoul.
83781 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83783         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83784         * lib/obstack.c [!defined _LIBC]: Likewise.
83785         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83786         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83787         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83789         More changes to assume C89 or better.
83791         * lib/error.c (error_tail): Assume vprintf.
83793         * lib/argmatch.c (getenv): Remove decl.
83794         * lib/progreloc.c (get_full_program_name): Define via prototype.
83795         * lib/setenv.c (clearenv): Likewise.
83796         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83797         needed.
83798         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83799         (malloc, memcpy): Remove decls.
83800         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83801         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83802         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83803         (memcpy): Remove macro.
83804         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83805         (__P): Remove.  All uses removed.
83806         (PTR): Remove.  All uses changed to void *.
83807         (CHAR_BIT, NULL): Remove.
83808         (spaces, zeros, memset_space, memset_zero)
83809         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83810         Remove.
83811         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83812         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83813         Define with prototype.
83814         Remove now-unnecessary prototype decl.
83815         (extra_args_spec): Assume ANSI C.  All uses changed.
83816         (extra_args_spec_iso): Remove.
83817         (my_strftime, emacs_strftimeu): Define via prototype.
83818         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83819         unconditionally.
83820         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83821         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83822         (strtoul, strtol): Remove decls.
83823         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83824         LONG_MAX): Remove.
83825         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83826         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83827         (LOCALE_PARAM_PROTO): New macro.
83828         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83829         (INTERNAL (strtol), strtol): Define with a prototype.
83830         (PARAMS): Remove.  All uses removed.
83831         * lib/tempname.c: Include <string.h> unconditionally.
83832         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83833         * lib/xgethostname.c (main): Define with a prototype.
83834         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83835         Include <stdlib.h> unconditionally.
83836         (calloc, malloc, realloc, free): Remove decls.
83837         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83838         Include <stdlib.h> unconditionally.  Sort include file names.
83839         (strtod): Remove.
83840         (xstrtod): Define with a prototype.
83841         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83842         (strtol, strtoul): Remove decls.
83844 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83846         More patches to assume C89 or better.
83847         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83848         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83849         string.h, memchr, STDC_HEADERS.
83851 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83853         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83854         Include <stdlib.h>, <string.h> unconditionally.
83855         Remove now-unnecessary cast to char *.
83856         * lib/strnlen.c: Include <string.h> unconditionally.
83857         * lib/yesno.c (yesno): Define with a prototype.
83859 2003-09-11  Bruno Haible  <bruno@clisp.org>
83861         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83863 2003-09-10  Jim Meyering  <jim@meyering.net>
83865         * lib/error.c: Correct indentation of cpp directives.
83867 2003-09-10  Bruno Haible  <bruno@clisp.org>
83869         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83870         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83871         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83872         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83873         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83874         <stdlib.h> and <string.h> checks.
83875         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83876         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83878 2003-09-10  Bruno Haible  <bruno@clisp.org>
83880         * lib/strcspn.c: Include <string.h> unconditionally.
83881         * lib/strpbrk.c: Include <string.h> unconditionally.
83882         * lib/strstr.c: Include <string.h> unconditionally.
83883         * lib/unicodeio.c: Include <string.h> unconditionally.
83884         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83885         * lib/unsetenv.c: Likewise.
83886         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83887         * lib/yesno.c: Include <stdlib.h> unconditionally.
83888         (rpmatch): Add prototype.
83890 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83892         More patches to assume C89 or better.
83893         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83894         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83895         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83896         or for string.h.
83897         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83898         stdlib.h.
83899         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83900         C headers.
83901         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83902         string.h.
83903         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83904         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83905         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83906         or for string.h.
83907         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83908         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83909         C headers.
83910         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83911         memcpy.
83912         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83913         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83914         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83915         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83916         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83917         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83918         string.h, free.
83919         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83920         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83921         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83922         C headers, or for string.h.
83923         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83924         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83925         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83926         headers, memory.h, stdlib.h, string.h, strings.h.
83927         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83928         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83929         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83930         strchr.
83931         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83932         headers, memory.h, string.h.
83933         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83934         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83935         free.
83936         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83937         headers.
83938         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83939         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83940         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83941         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83942         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83944 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83946         More K&R removal.
83948         * lib/acosl.c (main): Use a prototype.
83949         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83950         tanl.c: Likewise.
83952         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83954         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83955         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83956         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83957         with a prototype.
83958         * lib/getopt.c (const): Remove macro.
83959         Include <string.h> unconditionally.
83960         (my_index): Remove; all uses changed to strchr.
83961         (strlen): Remove decl.
83962         (exchange): Remove forward decl; no longer needed.
83963         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83964         Define with prototype.
83965         * lib/getopt1.c (const): Remove macro.
83966         (getopt_long, getopt_long_only, main): Define with prototype.
83968         * lib/getugroups.c: Include <string.h> unconditionally.
83970         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83971         (getusershell, setusershell, endusershell, readname, main):
83972         Define with prototypes.
83974         * lib/group-member.c: Include group-member.h first.
83975         Include <stdlib.h> unconditionally.
83977         * lib/hard-locale.c: Include hard-locale.h first.
83978         Include <stdlib.h>, <string.h> unconditionally.
83980         * lib/hash.c (free, malloc): Remove decls.
83981         Include <stdlib.h> unconditionally.
83983         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83984         (getenv): Do not declare.
83986         * lib/idcache.c: Include <string.h> unconditionally.
83988         * lib/long-options.c: Include long-options.h first, to test interface.
83989         Include <stdlib.h> unconditionally.
83991         * lib/makepath.c: Include makepath.h first, to test interface.
83992         Include <stdlib.h> and <string.h> unconditionally.
83994         * lib/linebuffer.c: Include <stdlib.h>.
83995         (free): Remove decl.
83997         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83998         stddef.h. rpl_malloc returns void *, not char *.
83999         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84000         prototype.
84002         * lib/md5.h: Include <limits.h> unconditionally.
84003         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84004         (__P): Remove; all uses removed.
84005         * lib/md5.c: Include "md5.h" first.
84006         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84007         md5_buffer, md5_process_bytes, md5_process_block):
84008         Define with prototypes.
84009         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84010         * lib/sha.c: Include "sha.h" first.
84011         Include <stdlib.h>, <string.h> unconditionally.
84013         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84014         * lib/memcmp.c (__ptr_t): Likewise.
84015         * lib/memrchr.c (__ptr_t): Likewise.
84016         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84017         Include <string.h> unconditionally.
84018         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84019         * lib/memchr.c: Include <stdlib.h> unconditionally.
84020         * lib/memchr.c (LONG_MAX): Remove.
84021         * lib/memrchr.c (LONG_MAX): Likewise.
84022         * lib/memchr.c (__memchr): Define via a prototype.
84023         * lib/memrchr.c (__memrchr): Likewise.
84024         * lib/memcmp.c (__P): Remove, and remove all uses.
84025         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84026         Remove forward decls; no longer needed.
84027         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84028         Use types required by C89 in prototype.
84030         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84031         * lib/savedir.c: Likewise.
84032         * lib/mkdir.c (free): Remove decl.
84033         * lib/rmdir.c (rmdir): Define with a prototype.
84034         * lib/savedir.c: Include savedir.h first, to test interface.
84036         * lib/mktime.c (STDC_HEADERS): Remove.
84037         Include <stdlib.h>, <string.h> unconditionally.
84039         * lib/modechange.c: Include <stdlib.h> unconditionally.
84040         (malloc): Remove decl.
84042         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84043         (free): Remove decl.
84045         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84046         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84047         (This type really should be intptr_t, but that's a C99ism.)
84048         (_obstack_memcpy): Remove: all uses changed to memcpy.
84049         Include <string.h> unconditionally.
84050         (struct obstack): Assume __STDC__ for types of members
84051         chunkfun, freefun, extra_arg.
84052         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84053         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84054         obstack_begin, obstack_specify_allocation,
84055         obstack_specify_allocation_with_arg, obstack_chunkfun,
84056         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84057         Remove unprototyped decls and the macros that use them.
84058         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84059         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84060         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84061         (defined __STDC__ && __STDC__)]:
84062         Remove nonprototyped code.
84063         Include <stdlib.h> unconditionally.
84064         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84065         _obstack_allocated_p, _obstack_free, obstack_free,
84066         _obstack_memory_used, print_and_abort):
84067         Define using prototypes.
84068         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84069         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84070         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84071         obstack_next_free, obstack_object_size, obstack_room) [0]:
84072         Remove unused, unprototyped code.
84074         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84076         * lib/physmem.c (physmem_total, physmem_available, main): Define
84077         with prototypes.
84079         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84080         (main): Define with a prototype.
84082         * lib/posixver.c (getenv): Remove decl.
84084         * lib/putenv.c (malloc): Returns void *, not char *.
84085         Include <string.h> unconditionally.
84086         (strchr, memcpy, NULL): Do not define.
84088         * lib/readtokens.c: Include readtokens.h first, to test interface.
84089         Include <stdlib.h>, <string.h> unconditionally.
84090         (init_tokenbuffer): Define with a prototype.
84092         * lib/regex.c (PARAMS): Remove.  All uses removed.
84093         All uses of _RE_ARGS removed, too.
84094         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84095         unconditionally.
84096         (bzero): Assume memset exists.
84097         (memcmp, memcpy, NULL): Remove.
84098         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84099         char, or assignments to local vars of type signed char.
84100         (init_syntax_once, PREFIX(extract_number_and_incr),
84101         PREFIX(print_partial_compiled_pattern),
84102         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84103         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84104         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84105         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84106         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84107         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84108         wcs_compile_range, byte_compile_range, truncate_wchar,
84109         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84110         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84111         count_mbs_length, wcs_re_match_2_internal,
84112         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84113         PREFIX(alt_match_null_string_p),
84114         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84115         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84116         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84117         now-unnecessary declaration, if any.
84118         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84119         regcomp, regexec):
84120         Remove now-unnecessary casts among pointer types.
84121         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84123         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84124         (free): Remove decl.
84126         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84128         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84129         (free): Remove decl.
84131         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84132         * lib/xgetcwd.c: Likewise.
84134         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84135         (free): Remove decl.
84137         * lib/strchrnul.c (strchrnul): Define with a prototype.
84138         Fix bug: c_in was not converted to char before searching.
84140         The following changes are not K&R related:
84142         * lib/group-member.h: Include <sys/types.h>, so that this file is
84143         self-contained.
84144         * lib/makepath.h: Likewise.
84146         * lib/getusershell.c (readname, default_index, line_size, readname):
84147         Use size_t, not int, for sizes.
84148         (readname): If the size overflows, report an error instead of
84149         looping forever.
84151 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84153         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84154         libc.
84156 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84158         * README: New section: portability guidelines.
84160 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84162         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84163         C89 spec.
84165 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84167         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84169 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84171         Assume C89 or better; remove K&R cruft.
84172         A few of these changes were first proposed by Derek Robert Price
84173         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84175         * lib/addext.c: Include <string.h> unconditionally.
84176         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84177         Don't declare getenv or malloc.
84179         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84180         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84181         (NULL): Remove.
84182         (find_stack_direction, alloca): Use prototypes.
84184         * lib/atexit.c (atexit): Define using a prototype.
84186         * lib/basename.c, dirname.c, stripslash.c:
84187         Include <string.h> unconditionally.
84189         * lib/bcopy.c: Include <stddef.h>.
84190         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84192         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84194         * lib/error.h (error, error_at_line, error_print_progname)
84195         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84196         * lib/error.c: Include error.h first, to check interface.
84197         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84198         (VA_START): Remove; all uses changeed to va_start.
84199         (exit, strerror): Remove decls.
84200         (error_print_progname): Prototype uncondionally.
84201         Don't include <errno.h>; no longer needed.
84202         (private_strerror): Remove.
84203         (error_tail): Always define.
84204         (error, error_at_line): Assume C89 or better; always use prototypes.
84205         * lib/fatal.c: Include "fatal.h" first, to test interface.
84206         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84207         (VA_START): Remove; all uses changed to va_start.
84208         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84209         this case.
84210         (exit): Remove decl.
84211         (fatal): Prototype unconditionally.  Assume va_start works.
84212         Abort at end, to pacify gcc.
84214         * lib/euidaccess.c (main): Define with a prototype.
84216         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84218         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84220         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84221         prototypes.
84222         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84223         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84224         (getenv): Remove decl.
84225         (fnmatch): Define using a prototype.
84226         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84227         (FCT): Define using a prototype.
84229         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84231         * lib/gethostname.c: Include <stddef.h>.
84232         (gethostname): Define with prototype.  Length is size_t, not int.
84234 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84236         Assume C89 or better; remove K&R cruft.
84237         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84238         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84239         string.h, getenv, malloc.
84240         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84241         headers.
84242         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84243         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84244         do not check for strerror.
84245         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84246         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84247         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84248         do not check for doprnt or vprintf.
84249         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84250         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84252 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84254         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84255         getversion.c should have been removed then, but was accidentally
84256         preserved.
84258         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84259         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84261 2003-09-08  Karl Berry  <karl@gnu.org>
84263         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84264                 config, forget about prep.
84266         * config/depcomp, missing: update from automake.
84268 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84270         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84271         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84273 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84275         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84276         copy_tm_result.  Bug reported by Simon Josefsson in
84277         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84279 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84281         * m4/time_r.m4: New file.
84282         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84283         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84284         is. Check for timegm declaration.
84285         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84286         Do not check for gmtime_r.
84287         Replace mktime if __mktime_internal does not exist and if mktime
84288         hasn't been replaced already.
84290 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84292         * lib/time_r.c, lib/time_r.h: New files.
84294         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84295         __localtime_r.
84296         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84297         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84299         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84300         __gmtime_r.
84301         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84302         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84303         Include <time_r.h>.
84305         * lib/timegm.c: Switch to glibc implementation, with the following
84306         changes:
84307         [defined HAVE_CONFIG_H]: Include <config.h>.
84308         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84309         (__mktime_internal) [!defined _LIBC]: New decl.
84310         (__gmtime_r) [!defined _LIBC]: New macro and function.
84311         (timegm): Use a prototype, since gnulib assumes C89.
84312         Do not bother declaring tmp to be const, as it's not really usefu.
84313         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84314         (timegm): Declare only if HAVE_DECL_TIMEGM.
84316 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84318         * MODULES.html.sh (func_all_modules): Add time_r.
84319         * modules/time_r: New file.
84320         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84321         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84323 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84325         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84326         Bug reported by Lute Kamstra in
84327         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84329         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84330         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84331         course with correspondingly smaller numbers for tomorrow and
84332         yesterday.  From Tadayoshi Funaba.  Originally installed into
84333         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84334         coreutils merge?).
84336 2003-08-31  Simon Josefsson  <jas@extundo.com>
84338         * modules/timegm: New file.
84339         * MODULES.html.sh (func_all_modules): Add timegm.
84341 2003-08-31  Simon Josefsson  <jas@extundo.com>
84343         * m4/timegm.m4: New file.
84345 2003-08-31  Simon Josefsson  <jas@extundo.com>
84347         * lib/timegm.h: New file.
84348         * lib/timegm.c: New file.  Based on
84349         wget-1.8.2/src/http.c:mktime_from_utc.
84351 2003-08-31  Karl Berry  <karl@gnu.org>
84353         * lib/argp.h: update from libc.
84355 2003-08-28  Bruno Haible  <bruno@clisp.org>
84357         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84358         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84359         followed by '#define fnmatch fnmatch_posix' gives an error.
84361 2003-08-28  Bruno Haible  <bruno@clisp.org>
84363         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84364         warning on QNX, which defines O_BINARY to 000000.
84366 2003-08-27  Jim Meyering  <jim@meyering.net>
84368         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84369         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84370         would fail after 32.  Reported by Danny Levinson.  Details here:
84371         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84373 2003-08-24  Bruno Haible  <bruno@clisp.org>
84375         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84376         MSVC7 <stdio.h> is included later.
84378 2003-08-22  Simon Josefsson  <jas@extundo.com>
84380         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84382 2003-08-20  Karl Berry  <karl@gnu.org>
84384         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84386 2003-08-20  Bruno Haible  <bruno@clisp.org>
84388         * modules/progname: New file.
84389         * MODULES.html.sh (func_all_modules): Add progname.
84391 2003-08-20  Bruno Haible  <bruno@clisp.org>
84393         * lib/progname.h: New file, from GNU gettext.
84394         * lib/progname.c: New file, from GNU gettext.
84395         * lib/progreloc.c: New file, from GNU gettext.
84397 2003-08-19  Jim Meyering  <jim@meyering.net>
84399         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84400         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84402 2003-08-19  Bruno Haible  <bruno@clisp.org>
84404         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84405         more.
84407 2003-08-19  Bruno Haible  <bruno@clisp.org>
84409         * lib/xstrdup.c: Assume <string.h> exists.
84411 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84413         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84414         in makefile rules.
84416 2003-08-18  Jim Meyering  <jim@meyering.net>
84418         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84419         * m4/lib-ld.m4: Likewise.
84421 2003-08-18  Jim Meyering  <jim@meyering.net>
84423         * lib/setenv.h: Indent nested cpp directive.
84424         * lib/vasnprintf.c: Remove trailing blanks.
84426 2003-08-17  Simon Josefsson  <jas@extundo.com>
84428         * modules/xstrndup: New file.
84429         * MODULES.html.sh (func_all_modules): Add xstrndup.
84431 2003-08-17  Simon Josefsson  <jas@extundo.com>
84433         * modules/argp: Fix autoconf macro name. Add more dependencies.
84435 2003-08-17  Simon Josefsson  <jas@extundo.com>
84437         * m4/xstrndup.m4: New file.
84439 2003-08-17  Simon Josefsson  <jas@extundo.com>
84441         * m4/argp.m4: New file.
84443 2003-08-17  Simon Josefsson  <jas@extundo.com>
84444             Bruno Haible  <bruno@clisp.org>
84446         * lib/xstrndup.h: New file.
84447         * lib/xstrndup.c: New file.
84449 2003-08-17  Bruno Haible  <bruno@clisp.org>
84451         * modules/strndup (Files, Include): Add lib/strndup.h.
84453 2003-08-17  Bruno Haible  <bruno@clisp.org>
84455         * modules/euidaccess (Files): Add lib/euidaccess.h.
84457 2003-08-17  Bruno Haible  <bruno@clisp.org>
84459         * lib/strndup.h: New file.
84461 2003-08-17  Bruno Haible  <bruno@clisp.org>
84463         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84464         like AC_GNU_SOURCE.
84465         * modules/extensions (configure.ac): Comment out the invocation of
84466         gl_USE_SYSTEM_EXTENSIONS.
84468 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84470         Merges from coreutils, etc.
84471         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84472         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84473         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84474         fixing a typo.
84475         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84476         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84478 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84480         Document merge from coreutils.
84481         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84482         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84483         * modules/utime: Add m4/utimes-null.m4.
84485 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84487         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84488         space, undoing this 2003-08-12 change:
84489         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84491 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84493         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84494         strtoul.c from libc, undoing this 2003-08-12 change:
84495         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84497 2003-08-16  Jim Meyering  <jim@meyering.net>
84499         Merges from coreutils.
84500         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84501         prefix.  Adjust cache variables similarly.  Create 500 rather than
84502         just 300 files, to exercise bug on Darwin6.5, too.
84503         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84504         $missing_dir.
84505         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84506         AM_SYS_POSIX_TERMIOS.
84507         Reported by mkc@mathdogs.com.
84508         Also change use of $am_cv_sys_posix_termios
84509         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84510         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84511         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84512         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84513         in /proc/mounts until it finds one with matching device number.  This
84514         is unnecessary when the FILE argument *is* a mount point.  No stat call
84515         is necessary in that case.  So, disable the statvfs-testing code on
84516         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84517         as RedHat bug# 84846.
84518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84519         to 1MB, so as not to render systems with no stack size limit (e.g.,
84520         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84521         Include <unistd.h>.  On some systems,
84522         it is required for the definition of _SC_PAGESIZE.
84524 2003-08-16  Jim Meyering  <jim@meyering.net>
84526         Merge from coreutils.
84527         * lib/xstrtoimax.c: #else #if -> #elif.
84528         * lib/xstrtoumax.c: Likewise.
84530 2003-08-16  Jim Meyering  <jim@meyering.net>
84532         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84533         * m4/utimes.m4: Removed.
84534         * m4/utimes-null.m4: Renamed from utimes.m4.
84536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84537         to 1MB, so as not to render systems with no stack size limit (e.g.,
84538         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84539         Include <unistd.h>.  On some systems,
84540         it is required for the definition of _SC_PAGESIZE.
84542 2003-08-16  Jim Meyering  <jim@meyering.net>
84543         and Paul Eggert  <eggert@cs.ucla.edu>
84545         Merges from coreutils, etc.
84547         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84548         using the latest version from cvs.  This avoids problems with #line
84549         directives using a vendor (Sun) compiler.
84550         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84551         Don't set GETGROUPS_LIB here; now it's
84552         done via getgroups.m4's wrapper function.
84553         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84554         rather than just in sh-util/configure.in, so that the
84555         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84556         same.
84557         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84558         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84559         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84560         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84561         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84562         Remove code that is now done by the newly-required macros.
84563         Append $(EXEEXT) to DF_PROG.
84564         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84565         Do not invoke or require the following here,
84566         since prereq.m4 or some gnulib .m4 now does this for us:
84567         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84568         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84569         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84570         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84571         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84572         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84573         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84574         AC_FUNC_OBSTACK.
84575         Do not replace the following functions, as this is now the job
84576         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84577         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84578         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84579         atexit getpass, strdup, getpagesize.
84580         Replace 'raise'.
84581         Do not check for the following functions, as this is now the job
84582         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84583         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84584         setregid.
84585         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84586         Check for sys/sysctl.h.
84587         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84588         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84589         of checking for ssize_t ourselves.
84591         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84592         Require every macro that gnulib/modules/* suggests for us.
84593         (jm_PREREQ_ADDEXT): New macro.
84594         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84595         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84597         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84598         (gl_PHYSMEM): Use it.
84599         Also check for `table' function.
84600         Check for new headers and functions.
84601         Add check for sys/sysmp.h.
84602         With suggestions from Kaveh Ghazi.
84603         Ignore headers that are present but cannot be compiled.  This
84604         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84605         C 5.4.
84607 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84609         Document merge from coreutils.
84610         * modules/userspec: Depend on posixver.
84611         * modules/strftime: Depend on tzset.
84613 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84615         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84616         rather than tab, after '#' in shell-script copyright notices.
84617         Suggested by Bruno Haible.
84619 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84621         * config/srclist-update: Use three spaces, rather than tab, after '#'
84622         in shell-script copyright notices.  Suggested by Bruno Haible.
84623         Remove unnecessary parenthesization in regular expression.
84625 2003-08-15  Jim Meyering  <jim@meyering.net>
84627         Merge from coreutils.
84628         * lib/xgethostname.c: Include <stdlib.h>.
84629         (xghostname): Don't exit for anything other than memory-related
84630         failure; just return NULL.
84631         * lib/userspec.c: Include "posixver.h".
84632         (parse_user_spec): Accept `.' as a separator only
84633         in pre-POSIX-200112 mode.
84634         * lib/strtoimax.c: Use #elif rather than #else #if.
84635         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84636         Remove function, now that we can rely on a working tzset function.
84637         [!_LIBC]: Ensure that the required autoconf test has been run.
84638         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84639         Use underlying_strftime for %r.
84640         * lib/sha.c: Merge in some clean-up and optimization changes from
84641         glibc.
84642         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84643         Ensure that it is a multiple of 64.
84644         Rearrange loop exit tests so as to avoid performing an
84645         additional fread after encountering an error or EOF.
84646         * lib/realloc.c: Update copyright date.
84648 2003-08-15  Jim Meyering  <jim@meyering.net>
84649         and Paul Eggert  <eggert@twinsun.com>
84651         Merge from coreutils.
84652         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84653         member but strut utmpx does not.  Needed for AIX 4.3.3.
84654         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84656 2003-08-15  Jim Meyering  <jim@meyering.net>
84657         and Paul Eggert  <eggert@cs.ucla.edu>
84659         Merges from coreutils, etc.
84660         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84661         Require gl_FUNC_TZSET_CLOBBER.
84662         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84663         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84664         members.
84666 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84668         Help the merge from coreutils.
84669         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84670         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84671         * m4/tzset.m4: Use it too.
84673 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84675         * modules/tzset: New file.
84677 2003-08-14  Jim Meyering  <jim@meyering.net>
84679         Merges from coreutils.
84680         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84681         variable names, rather than @FNMATCH_H@.
84682         * modules/alloca: Likewise for $(ALLOCA_H).
84684         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84685         the three copies of the literal target, `fnmatch.h'.
84686         * modules/alloca (alloca.h): Likewise.
84688 2003-08-14  Jim Meyering  <jim@meyering.net>
84690         Merge from coreutils.
84691         * m4/tzset.m4: New file.
84692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84693         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84694         otherwise, AIX 5.1 systems would end up using the latter.
84695         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84696         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84697         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84698         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84700 2003-08-14  Jim Meyering  <jim@meyering.net>
84702         Merge from coreutils.
84703         * lib/obstack.h: Whitespace changes.
84704         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84705         and xcalloc return values.
84706         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84707         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84708         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84709         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84710         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84711         error from mntctl.
84712         Use mntctl's return value to drive the entry-processing loop, since
84713         we can't rely on the value of the vmt_length member in the last
84714         entry.  On some systems doing so could result in exhausting
84715         virtual memory.  Based in part on a patch from Mike Jetzer.
84717 2003-08-14  Jim Meyering  <jim@meyering.net>
84718         and Paul Eggert  <eggert@twinsun.com>
84720         Merges from coreutils, plus other fixes.
84721         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84722         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84723         for credits and details.  Thanks to Kaveh Ghazi for helping
84724         to keep these files in sync.
84725         (ARRAY_SIZE): Define it.
84726         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84727         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84728         (memcasecmp): Don't assume size_t fits in unsigned int.
84729         Remove casts and duplicate code.
84730         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84731         (memcpy): Remove definition.
84732         Merge in some clean-up and optimization changes from glibc.
84733         [BLOCKSIZE]: Move definition to top of file.
84734         Ensure that it is a multiple of 64.
84735         Rearrange loop exit tests so as to avoid performing an
84736         additional fread after encountering an error or EOF.
84737         * lib/md5.h (md5_uintptr): Define.
84738         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84739         return to the initial working directory.  Preserve errno
84740         for caller.
84741         * lib/idcache.c: Include "xalloc.h".
84742         (xmalloc, xrealloc): Remove decls.
84743         (getuser): Remove casts no longer required in C89.
84744         * lib/human.c: Include stdio.h, for sprintf.
84745         * lib/group-member.c: Include "xalloc.h".
84746         (xmalloc, xrealloc): Remove decls.
84747         (get_group_info): Remove casts no longer required in C89.
84748         * lib/getusershell.c (readname): Remove casts no longer required in
84749         C89.
84750         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84751         * lib/getline.c: Whitespace fix, from coreutils.
84753 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84755         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84756         Check for isascii.
84758         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84759         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84760         Undo previous (whitespace-only) change.
84762 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84764         * lib/exclude.c: Include <ctype.h>
84765         (IN_CTYPE_DOMAIN): New macro.
84766         (is_space): New fn.
84767         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84768         and empty lines.
84770         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84771         Undo previous (whitespace-only) change.
84773 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84775         * config/srclist-update: Change update back to the old behavior,
84776         leaving whitespace alone.  Use one 'sed' command rather than a
84777         pipeline.
84778         (fixlicense): Now a variable, not a function.
84779         (remove_trailing_blanks): Remove.
84780         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84781         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84782         Undo previous (whitespace-only) change.
84784 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84786         Merge from coreutils.
84787         * modules/euidaccess: Add lib_SOURCES, include for new
84788         file euidaccess.h
84790 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84792         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84793         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84794         Normalize leading white space and remove trailing white space.
84796         Merge from coreutils
84797         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84799         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84800         0.12.1.  These files are now being upgraded automatically by
84801         ../config/srclist-update.
84803 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84805         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84806         Normalize leading white space and remove trailing white space.
84807         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84808         notice, as per ../config/srclist-update.
84810         Merge from coreutils.
84811         * lib/euidaccess.h: New file.
84812         * lib/euidaccess.c: Include it.
84813         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84814         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84815         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84817 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84819         * config/srclist-update: Add copyright notice.
84820         (remove_id_lines, remove_trailing_blanks): New constants.
84821         (fixfile): Use them to normalize spacing a bit in copied files.
84822         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84823         Normalize leading white space and remove trailing white space.
84825         * config/texinfo.tex: Sync with texinfo.
84827         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84828         strtoul.c from libc, to merge coreutils whitespace changes.
84830         * config/srclist.txt: Get the following m4 files from gettext:
84831         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84832         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84833         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84834         wint_t.m4.
84836 2003-08-12  Karl Berry  <karl@gnu.org>
84838         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84839         been made.
84841 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84843         * modules/gnu-source, m4/gnu-source.m4:
84844         Remove; we're assuming Autoconf 2.54 or later now.
84845         Suggested by Bruno Haible.
84846         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84848 2003-08-11  Bruno Haible  <bruno@clisp.org>
84850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84852 2003-08-11  Bruno Haible  <bruno@clisp.org>
84854         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84855         (vasnprintf): Use it instead of wcslen.
84857 2003-08-11  Bruno Haible  <bruno@clisp.org>
84859         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84860         value to ensure that _Bool promotes to int. Use #define for _Bool when
84861         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84863 2003-08-10  Karl Berry  <karl@gnu.org>
84865         * lib/regex.h: update from libc (whitespace fix).
84867 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84869         Merge some files from coreutils.  These changes were
84870         originally made by Jim Meyering.
84871         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84872         many older Unixes require this.
84873         * lib/alloca.c (alloca): Remove cast to argument of free;
84874         no longer needed in C89.
84875         * lib/alloca_.h, regex.h: Fix white space to match
84876         what GNU indent does.
84878 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84880         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84881         apparently Emacs's Unicode mode got confused before my 2003-08-05
84882         checkin.
84884 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84886         * m4/extensions.m4: New file.
84887         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84888         Require gl_USE_SYSTEM_EXTENSIONS.
84889         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84890         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84892 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84894         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84895         * modules/extensions, modules/gnu-source: New files.
84896         * modules/timespec, modules/unlocked-io: Depend on extensions.
84898 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84900         * modules/restrict: New file.
84901         * MODULES.html.sh (func_all_modules): Add restrict.
84902         * modules/regex: Depend on restrict.
84904 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84906         * m4/restrict.m4: New file.
84907         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84909 2003-08-07  Bruno Haible  <bruno@clisp.org>
84911         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84912         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84914 2003-08-07  Bruno Haible  <bruno@clisp.org>
84916         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84917         makes the module 'getndelim2' compatible with the module 'getline'.
84919 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84921         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84922         byte with "\201" to avoid glitches when editing that source file
84923         with multi-gnome-terminal.
84925 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84927         * lib/bumpalloc.h: Remove.
84929 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84931         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84932         * modules/bumpalloc: Remove.
84934 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84936         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84937         GNU coding style.
84939         Merge from coreutils.
84940         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84941         1. From glibc.
84942         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84943         from Karl Berry, implemented by Jim Meyering.
84944         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84945         from Dmitry V. Levin.
84946         Remove anachronistic cast of xrealloc.
84947         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84948         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84949         type. Otherwise, it wouldn't compile with at least /bin/cc on
84950         ymp-cray-unicos9.0.2.X.
84951         Combine two mostly-identical uses of alloca into one.
84952         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84954 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84956         [From Emacs.]
84958         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84959         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84960         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84961         obsolete NLIST_NAME_UNION.
84962         [__GNU__]: Undef BSD and FSCALE.
84963         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84965 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84967         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84968         an enum type, so that it's guaranteed to promote to int.  See:
84969         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84971 2003-08-03  Karl Berry  <karl@gnu.org>
84973         * config/depcomp: update from automake.
84975 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84977         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84978         (strerror): Don't assume that a printable int fits in 14 bytes.
84980 2003-07-31  Bruno Haible  <bruno@clisp.org>
84982         * modules/getpass-gnu: New file.
84983         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84985 2003-07-31  Bruno Haible  <bruno@clisp.org>
84987         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84989 2003-07-24  Karl Berry  <karl@gnu.org>
84991         * config/missing: update from automake.
84993 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84994             Bruno Haible  <bruno@clisp.org>
84996         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84997         * lib/getline.c (getline, getdelim): Likewise.
84998         Remove _GNU_SOURCE define; now it's defined in config.h through
84999         m4/getline.m4.
85001 2003-07-23  Karl Berry  <karl@gnu.org>
85003         * config/config.sub: update from prep.
85005 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85007         * modules/xalloc (Depends-on): Add exitfail.
85008         * modules/xmemcoll: Likewise.
85010 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85012         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85013         over-parenthesization in macros.
85015         Sync with coreutils.
85017         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85018         required by C99.
85020         Use `exit_failure' for xalloc and xmemcoll instead of their own
85021         private exit-failure variables.
85022         * lib/xalloc.h (xalloc_exit_failure): Remove.
85023         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85024         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85025         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85026         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85027         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85029 2003-07-20  Jim Meyering  <jim@meyering.net>
85031         * modules/closeout (Depends-on): Add exitfail.
85032         Suggestion from Bruno Haible.
85034 2003-07-19  Karl Berry  <karl@gnu.org>
85036         * config/config.sub: update from prep.
85038 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85040         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85041         Remove.
85042         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85043         to test that it can stand by itself.  Include "exitfail.h".
85044         Clients should set exit_failure instead.
85045         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85047 2003-07-18  Bruno Haible  <bruno@clisp.org>
85049         * modules/getndelim2: New file.
85050         * modules/getline: Share files with module getndelim2.
85051         * modules/getnline: Depend on getndelim2 instead of sharing files with
85052         it. Add getnline.c to lib_SOURCES.
85053         * MODULES.html.sh (func_all_modules): Add getndelim2.
85055 2003-07-18  Bruno Haible  <bruno@clisp.org>
85057         * m4/getndelim2.m4: New file.
85058         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85059         invoke gl_PREREQ_GETNDELIM2.
85060         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85061         gl_PREREQ_GETNDELIM2.
85062         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85063         gl_GETNDELIM2.
85065 2003-07-18  Bruno Haible  <bruno@clisp.org>
85067         * lib/getndelim2.h: New file.
85068         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85069         getndelim2.h.
85070         (getndelim2): Make non-static. Change return type to ssize_t.
85071         * lib/getline.h: Change argument names.
85072         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85073         * lib/getnline.c: Include getndelim2.h.
85075 2003-07-18  Andreas Schwab  <schwab@suse.de>
85077         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85079 2003-07-17  Karl Berry  <karl@gnu.org>
85081         * config/config.sub: update from prep.
85083 2003-07-17  Bruno Haible  <bruno@clisp.org>
85085         * modules/getnline: New file.
85086         * modules/getline: Add lib/getndelim2.c to source file list.
85087         * MODULES.html.sh (func_all_modules): Add getnline.
85089 2003-07-17  Bruno Haible  <bruno@clisp.org>
85091         * m4/getnline.m4: New file.
85093 2003-07-17  Bruno Haible  <bruno@clisp.org>
85095         * m4/Makefile.am.in: Remove file.
85096         * m4/Makefile.am: Remove file.
85097         * m4/Makefile.in: Remove file.
85099 2003-07-17  Bruno Haible  <bruno@clisp.org>
85101         * lib/getnline.h: New file.
85102         * lib/getnline.c: New file.
85103         * lib/getndelim2.c: New file, extracted from getline.c.
85104         (getndelim2): Renamed from getdelim2, with added nmax argument.
85105         * lib/getline.c: Include getndelim2.c.
85106         (getdelim2): Moved out to getndelim2.c.
85107         (getline, getdelim): Update.
85109 2003-07-17  Bruno Haible  <bruno@clisp.org>
85111         * lib/Makefile.am: Remove file.
85112         * lib/Makefile.in: Remove file.
85114 2003-07-17  Bruno Haible  <bruno@clisp.org>
85116         * configure.in: Remove file.
85117         * Makefile.in: Remove file.
85119 2003-07-17  Bruno Haible  <bruno@clisp.org>
85121         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85123 2003-07-16  Karl Berry  <karl@gnu.org>
85125         * config/srclist-update: was running fixlicense twice, which caused
85126                 texinfo.tex to be nullified for some reason.  Simplify,
85127                 $gplsrc is no longer needed as far as I can see?
85129 2003-07-16  Jim Meyering  <jim@meyering.net>
85131         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85133 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85135         * config/srclist.txt: Get the following files from gettext-runtime/intl
85136         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85137         ref-del.sin.  From Bruno Haible.
85138         * config/srclist-update (fixfile): Change grep pattern again, since the
85139         previous fix didn't work (there was another trailing $).  Use
85140         '[$]' to escape the $s.
85142 2003-07-15  Karl Berry  <karl@gnu.org>
85144         * lib/vasnprintf.c: update from gettext.
85146 2003-07-15  Karl Berry  <karl@gnu.org>
85148         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85149         gets expanded when surrounded by '$'.
85151 2003-07-15  Jim Meyering  <jim@meyering.net>
85153         * modules/save-cwd: Don't depend on error.  From Derek Price.
85155 2003-07-15  Jim Meyering  <jim@meyering.net>
85157         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85159 2003-07-14  Simon Josefsson  <jas@extundo.com>
85161         * modules/mempcpy: New file.
85162         * MODULES.html.sh (func_all_modules): Add mempcpy.
85164 2003-07-14  Simon Josefsson  <jas@extundo.com>
85166         * m4/mempcpy.m4: New file.
85168 2003-07-14  Simon Josefsson  <jas@extundo.com>
85170         * lib/mempcpy.h: New file.
85171         * lib/mempcpy.c: New file.
85173 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85175         * modules/getdate, modules/posixtm: Depend on mktime.
85177 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85179         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85180         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85181         unicodeio.c, unicodeio.h, unlocked-io.h:
85182         Switch from LGPL to GPL.
85184 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85186         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85187         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85188         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85189         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85190         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85191         updated automatically by ../config/srclist-update.  This changes
85192         their license from LPGL to GPL.
85194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85196         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85197         assumed to refer to the root of the most recent stable gettext version.
85198         * config/srclistvars.sh: Add defaults for eggert.
85199         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85200         Match "This program" as well as "The program".  This is needed
85201         for gettext.
85203 2003-07-14  Jim Meyering  <jim@meyering.net>
85205         Don't emit diagnostics.  Let callers do that.
85206         * lib/save-cwd.c: Don't include "error.h".
85207         (save_cwd): Don't call error.  Ensure that errno is valid
85208         when returning nonzero.
85210         * lib/save-cwd.h (restore_cwd): Update prototype.
85211         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85212         Simplify.  Don't call error upon failure.  Let callers do that.
85213         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85214         when auditing is enabled.  But don't bother updating the #if.
85216 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85218         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85219         it breaks C++ compilation.
85220         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85222 2003-07-10  Simon Josefsson  <jas@extundo.com>
85224         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85226 2003-07-10  Jim Meyering  <jim@meyering.net>
85228         * m4/clock_time.m4: Remove trailing blank.
85229         * m4/intmax_t.m4: Likewise.
85231 2003-07-10  Jim Meyering  <jim@meyering.net>
85233         * lib/vasnprintf.c: Remove trailing blanks.
85234         Make cpp indentation consistent.
85236 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85238         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85239         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85240         Switch from LGPL to GPL.
85242 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85244         * config/srclist.txt: Sort sublists.  Add
85245         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85246         that differ from gnulib for one reason or another; we'd like this list
85247         to be smaller but for now let's document what we have.
85249 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85251         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85252         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85253         and sweeter "eval x=$x".
85254         * config/srclist.txt: Get lib/argp* from glibc.
85256 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85258         * lib/mktime.c: Fix some boundary cases and remove need for floating
85259         point.
85261         Issue a compile-time diagnostic if time_t is floating point, or if
85262         two's complement arithmetic is not in effect, or if arithmetic
85263         right shift does not propagate the sign.  These assumptions were
85264         all in the original code but they weren't checked.
85266         (TIME_T_MIDPOINT, verify): New macros.
85267         (__isleap): Remove; it has integer overflow problems.
85268         (leapyear): New function, without those problems.
85269         (ydhms_tm_diff): Remove; splitting into two parts.
85270         (ydhms_diff): New function, containing the arithmetic part of
85271         the old ydhms_tm_diff function.  Issue a compile-time
85272         diagnostic if we are not using C99 integer division.
85273         Avoid casts when possible.
85274         (guess_time_tm): New function, containing the checking part of
85275         the old ydhms_tm_diff function.  Return the new value, rather than
85276         the difference between it and the old.  Accept a new argument T
85277         so that *T specifies the old value.  Check for overflow in the result.
85279         (__mktime_internal): Use a time_t offset, not a long int offset.
85280         This undoes the 2003-06-04 change, which is no longer needed now
85281         that we have better overflow checking.
85282         (localtime_offset): Likewise.
85284         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85285         and long are 64-bit but int is only 32-bit.
85286         (ydhms_diff): Use long int to store year1 and yday1.
85287         Issue a compile-time diagnostic if long int is not wide enough.
85289         (__mktime_internal): Use long int to store adjusted year and yday.
85290         Use plain C rather than preprocessor commands, if that doesn't
85291         affect efficiency.
85292         Check for overflow (and try to repair) after each probe
85293         rather than checking only at the very end.  This avoids some bugs
85294         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85295         does not equal GMT offset at maximum time).
85296         Use integer to check for overflow rather than floating point; this
85297         is more portable to non-IEEE hosts, and is a tad faster.
85298         When we detect that we are oscillating between two values,
85299         don't check whether tm_isdst has the requested value, since
85300         we already know the answer.  When tm_isdst has the wrong value,
85301         use a different heuristic to find the right one, based on the
85302         extreme values actually observed in practice in tz2003a,
85303         rather than the (overly optimistic) "previous 3 calendar quarters".
85305         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85306         "T const" to accommodate glibc style.
85307         (check_result): Use less-confusing report format.  "long" -> "long int.
85308         (main): Likewise.
85309         Don't loop if the iteration overflows time_t.
85310         Allow a negative step in the iteration.
85312 2003-07-06  Karl Berry  <karl@gnu.org>
85314         * config/depcomp: update from automake.
85315         * config/config.sub: update from prep.
85317 2003-07-03  Karl Berry  <karl@gnu.org>
85319         * config/config.guess: update from prep.
85321 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85323         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85324         xreadlink.c now includes it unconditionally.
85326 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85328         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85329         having it depend on HAVE_SYS_TYPES_H.
85331 2003-07-01  Bruno Haible  <bruno@clisp.org>
85333         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85334         <sys/types.h> should be sufficient.
85335         Reported by Paul Eggert.
85337 2003-06-26  Karl Berry  <karl@gnu.org>
85339         * config/depcomp: update from automake.
85341 2003-06-26  Bruno Haible  <bruno@clisp.org>
85343         * modules/human: Depend on module stdbool.
85345 2003-06-25  Bruno Haible  <bruno@clisp.org>
85347         * modules/readlink: New file.
85348         * modules/xreadlink: Depend on it.
85349         * MODULES.html.sh (func_all_modules): Add readlink.
85351 2003-06-25  Bruno Haible  <bruno@clisp.org>
85353         * m4/readlink.m4: New file.
85355 2003-06-25  Bruno Haible  <bruno@clisp.org>
85357         * lib/readlink.c: New file.
85359 2003-06-22  Karl Berry  <karl@gnu.org>
85361         * config/srclist.txt: update mkinstalldirs from automake.
85362         * config/mkinstalldirs: update.
85364 2003-06-22  Bruno Haible  <bruno@clisp.org>
85366         Portability to mingw32.
85367         * m4/ssize_t.m4: New file, from GNU gettext.
85368         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85369         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85371 2003-06-22  Bruno Haible  <bruno@clisp.org>
85373         * modules/safe-read: Add m4/ssize_t.m4.
85374         * modules/xreadlink: Add m4/ssize_t.m4.
85376 2003-06-20  Bruno Haible  <bruno@clisp.org>
85378         Assume C89, so PARAMS isn't needed.
85379         * lib/unicodeio.h (PARAMS): Remove.
85380         * lib/unicodeio.c: Don't use PARAMS.
85382 2003-06-18  Karl Berry  <karl@gnu.org>
85384         * config/config.{guess,sub}: update from prep.
85386 2003-06-18  Jim Meyering  <jim@meyering.net>
85388         Merge changes from coreutils.
85389         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85390         Remove explicit declarations of xmalloc and realloc.
85391         Include xalloc.h.
85392         (read_utmp): Remove anachronistic cast of xmalloc.
85394 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85396         Assume C89, so PARAMS isn't needed.
85397         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85398         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85399         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85400         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85401         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85402         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85403         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85404         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85405         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85406         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85407         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85408         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85409         no longer needed. Anyway, config.h should always be included before any
85410         other file.
85412 2003-06-11  Simon Josefsson  <jas@extundo.com>
85414         * modules/sysexits: New file.
85415         * MODULES.html.sh (func_all_modules): Add sysexits.
85417 2003-06-11  Simon Josefsson  <jas@extundo.com>
85419         * lib/sysexit_.h: New file.
85421 2003-06-11  Derek Price  <derek@ximbiot.com>
85423         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85424         necessary.
85426 2003-06-11  Bruno Haible  <bruno@clisp.org>
85428         * m4/sysexits.m4: New file.
85430 2003-06-10  Simon Josefsson  <jas@extundo.com>
85432         * lib/argp.h: New file, from glibc.
85433         * lib/argp-ba.c: New file, from glibc.
85434         * lib/argp-eexst.c: New file, from glibc.
85435         * lib/argp-fmtstream.c: New file, from glibc.
85436         * lib/argp-fmtstream.h: New file, from glibc.
85437         * lib/argp-fs-xinl.c: New file, from glibc.
85438         * lib/argp-help.c: New file, from glibc.
85439         * lib/argp-namefrob.h: New file, from glibc.
85440         * lib/argp-parse.c: New file, from glibc.
85441         * lib/argp-pv.c: New file, from glibc.
85442         * lib/argp-pvh.c: New file, from glibc.
85443         * lib/argp-xinl.c: New file, from glibc.
85445 2003-06-10  Simon Josefsson  <jas@extundo.com>
85447         * modules/strchrnul: New file.
85449 2003-06-10  Simon Josefsson  <jas@extundo.com>
85451         * modules/argp: New file.
85453 2003-06-10  Simon Josefsson  <jas@extundo.com>
85455         * m4/strchrnul.m4: New file.
85457 2003-06-10  Simon Josefsson  <jas@extundo.com>
85459         * lib/strchrnul.h: New file.
85460         * lib/strchrnul.c: New file.
85462 2003-06-10  Bruno Haible  <bruno@clisp.org>
85464         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85466 2003-06-07  Karl Berry  <karl@gnu.org>
85468         * config/config.{guess,sub}: update from prep.
85470 2003-06-07  Jim Meyering  <jim@meyering.net>
85472         * modules/strtod: Use $(...) notation, not @...@ for
85473         AC_REPLACE'd variables.
85474         * modules/localcharset: Likewise.
85476 2003-06-07  Jim Meyering  <jim@meyering.net>
85478         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85479         in place of my name in the copyright comment.
85480         Remove definition and uses of __P.
85482         From coreutils.
85483         * lib/stat.c: Don't declare xmalloc explicitly.
85484         Instead, include "xalloc.h".
85485         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85486         xrealloc, and xcalloc return values.
85487         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85488         Improve comment.
85489         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85491 2003-06-07  Bruno Haible  <bruno@clisp.org>
85493         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85494         avoid AC_CONFIG_LINKS.
85495         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85496         fnmatch.h, to avoid AC_CONFIG_LINKS.
85497         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85499 2003-06-07  Bruno Haible  <bruno@clisp.org>
85501         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85502         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85503         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85504         directory.
85505         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85506         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85507         directory.
85509 2003-06-06  Jim Meyering  <jim@meyering.net>
85511         Merge from coreutils.
85512         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85513         Consolidate declarations and initializations of *_base* locals.
85515         Merge from coreutils.
85516         This avoids a core dump on systems without GNU putenv,
85517         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85518         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85519         (unsetenv): New static function, from GNU libc.
85520         (rpl_putenv): Use it.
85522         * lib/modechange.c: Remove trailing blanks.
85524         Merge from coreutils.
85525         * lib/fsusage.c: Remove declaration of statfs.
85526         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85528         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85530 2003-06-06  Jim Meyering  <jim@meyering.net>
85532         * lib/stdbool_.h: Renamed from stdbool.h.in.
85534 2003-06-06  Jim Meyering  <jim@meyering.net>
85535             Bruno Haible  <bruno@clisp.org>
85537         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85538         Adjust Makefile.am snippet not to redirect directly to target.
85539         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85541 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85543         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85544         mismatch, look in future quarters as well as past.  This fixes a
85545         bug when processing fall-backwards gaps immediately after a long
85546         period of daylight-saving time.
85548         * lib/mktime.c: Assume freestanding C89 or better.
85549         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85550         (__P): Remove; not used.
85551         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85552         (mktime, not_equal_tm, print_tm, check_result,
85553         main): Use prototypes.  Use const * where appropriate.
85554         (main): Fix typo in testing code that uncovered by above changes.
85555         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85557 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85559         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85560         locale.h, localeconv.  This merges changes from coreutils.
85562         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85563         It can be removed after the next Autoconf is released.
85564         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85565         needed.
85567 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85569         * lib/mktime.c: Fix Debian bug 177940
85570         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85571         (localtime_offset): Now long int, not time_t, because we want it
85572         to be guaranteed to be signed.  All uses changed.
85573         (__mktime_internal): If overflow would occur when adding offset,
85574         don't add it.
85576         Merge 'human' changes from coreutils.  Rewrite to support
85577         locale-specific notations like thousands separators.
85578         * lib/human.c: Simplify authorship notice.
85579         Include human.h immediately after config.h.
85580         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85581         <limits.h>: Do not include, since human.h does.
85582         (SIZE_MAX, UINTMAX_MAX): New macros.
85583         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85584         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85585         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85586         (power_letter): Renamed from suffixes.
85587         (generate_suffix_backwards): Remove.
85588         (adjust_value): Now takes int style (because of human.h changes)
85589         and long double value (for greater precision on some platforms).
85590         (group_number): New function.
85591         (human_readable): Use it.  Use integer options, not enum.
85592         Put the options before the sizes in the arg list.
85593         Support all the new options.
85594         The old human_readable function has been removed;
85595         use inttostr.h instead.
85596         (human_readable, default_block_size, humblock):
85597         Use uintmax_t, not int, for block sizes.
85598         (human_readable_inexact, block_size_types): Remove.
85599         (block_size_opts): New constant.
85600         (human_options): Renamed from human_block_size, with new signature
85601         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85602         * lib/human.h: Add copyright and authorship notice.
85603         Include <limits.h> and <stdbool.h> unconditionally.
85604         (PARAMS): Remove.  All uses removed.
85605         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85606         (enum human_inexact_style): Remove tag; now a nameless enum.
85607         (human_floor, human_ceiling, human_round_to_even): Now have
85608         values 2, 0, 1 rather than -1, 1, 0.
85609         (human_group_digits, human_suppress_point_zero, human_autoscale,
85610         human_base_1024, human_SI, human_B): New constants.
85611         (human_readable_inexact, human_block_size): Remove.
85612         (human_readable): Size args are now uintmax_t, not int.
85613         (human_options): New decl.
85615         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85616         unnecessary now that we assume C89 or better.  This change
85617         imported from coreutils.
85619         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85620         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85621         in the 2003-05-30 sync from glibc.
85623         .h files should stand alone, but we shouldn't include <sys/types.h>
85624         if we can get away with just <stddef.h>.
85626         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85627         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85628         rather than <sys/types.h>, as we merely need size_t.
85629         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85630         to get size_t.
85631         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85632         Include <stdio.h>, to get FILE.
85633         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85634         memcasecmp.h has included <stddef.h> and all we need is size_t.
85635         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85636         our interface, instead of including <sys/types.h>
85638 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85640         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85641         now, as glibc mktime is buggy on non-glibc systems.
85643 2003-06-03  Karl Berry  <karl@gnu.org>
85645         * config/config.sub: update from prep.
85647 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85649         [from coreutils]
85650         Fix some minor time-related bugs with POSIX time arguments.
85651         Some valid time stamps were being rejected (notably -1, and
85652         time stamps before 1900 on 64-bit hosts).  And some invalid
85653         time stamps were being accepted, e.g. September 31.
85655         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85656         that we can return (time_t) -1 successfully.
85657         * lib/posixtm.c: Likewise.
85658         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85659         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85660         (t): Remove static var.
85661         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85662         of static var.  All uses changed.
85663         (year): Do not reject years before 1900; they can occur with
85664         64-bit time_t.
85665         (posix_time_parse): Do not check for out-of-range components;
85666         that is now the caller's responsibility, since our checks were
85667         only approximations.
85668         (posixtime): Use mktime to check for out-of-range components,
85669         since it knows them exactly.
85670         If mktime returns (time_t) -1, check whether an error actually occurred
85671         by invoking localtime on -1.
85672         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85673         posixtime failures better.
85674         Improve the test data (in comments only).
85676 2003-06-02  Karl Berry  <karl@gnu.org>
85678         * config/mkinstalldirs (version): new variable.
85679         (--version): new option.
85680         (usage): improve message.
85682 2003-05-30  Karl Berry  <karl@gnu.org>
85684         * lib/mktime.c: update from libc.
85686 2003-05-30  Bruno Haible  <bruno@clisp.org>
85688         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85689         * config/config.rpath: Upgrade to gettext-0.12.1.
85691 2003-05-30  Bruno Haible  <bruno@clisp.org>
85693         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85694         * m4/nls.m4: New file, from gettext-0.12.1.
85695         * m4/po.m4: New file, from gettext-0.12.1.
85696         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85698 2003-05-30  Bruno Haible  <bruno@clisp.org>
85700         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85701         * lib/localcharset.h: Likewise.
85702         * lib/localcharset.c: Likewise.
85704 2003-05-29  Karl Berry  <karl@gnu.org>
85706         * config/config.rpath: update from gettext.
85708 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85710         Assume the headers required for C89 freestanding compilers.
85711         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85712         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85713         * m4/human.m4 (gl_HUMAN): Likewise.
85714         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85715         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85716         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85717         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85718         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85719         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85721 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85723         Assume the headers required for C89 freestanding compilers.
85724         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85725         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85726         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85727         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85728         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85729         define, since <limits.h> is guaranteed to do that.
85730         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85731         * lib/exclude.c: Include <stdbool.h> unconditionally.
85732         * lib/tempname.c: Include <stddef.h> unconditionally.
85733         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85734         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85735         <stddef.h> does that.
85736         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85737         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85738         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85739         needed.
85740         * lib/xstrtol.c: Likewise.
85741         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85742         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85744         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85745         warnings on some platforms.
85747         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85748         arbitrarily.
85750 2003-05-26  Jim Meyering  <jim@meyering.net>
85752         Merge in a change from coreutils:
85753         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85754         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85755         that condition, rather than `-1' which is slightly misleading.
85756         Change the name of the cache variable to have the gl_ prefix.
85757         Prompted by a patch from Richard Dawe for DJGPP.
85759 2003-05-24  Karl Berry  <karl@gnu.org>
85761         * config/config.guess: update from prep.
85763 2003-05-22  Karl Berry  <karl@gnu.org>
85765         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85767 2003-05-20  Karl Berry  <karl@gnu.org>
85769         * config/config.guess: update from prep.
85771 2003-05-18  Karl Berry  <karl@gnu.org>
85773         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85774         might actually be set by the user.
85776         * config/depcomp, install-sh, mdate-sh: update from automake.
85778 2003-05-17  Bruno Haible  <bruno@clisp.org>
85780         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85781         invalid expansion for AC_EGREP_CPP.
85782         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85783         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85784         Suggested by Akim Demaille <akim@epita.fr> in
85785         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85787 2003-05-12  Jim Meyering  <jim@meyering.net>
85789         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85790         the space-padded-by-default conversion specifiers, %e, %k, %l.
85792 2003-05-12  Bruno Haible  <bruno@clisp.org>
85794         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85795         the string is longer than 4 KB.
85797 2003-05-11  Karl Berry  <karl@gnu.org>
85799         * config/config.{guess,sub}: update from prep.
85801 2003-05-09  Bruno Haible  <bruno@clisp.org>
85803         * modules/error: Add m4/strerror_r.m4 to file list.
85805 2003-05-03  Bruno Haible  <bruno@clisp.org>
85807         Upgrade to Unicode-4.0.
85808         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85809         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85810         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85811         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85812         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85813         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85814         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85815         Change width of U+E0100..U+E01EF from 1 to 0.
85817 2003-04-25  Jim Meyering  <jim@meyering.net>
85819         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85820         of type size_t, not int.
85822 2003-04-25  Bruno Haible  <bruno@clisp.org>
85824         * lib/copy-file.c: Include <stddef.h>, for size_t.
85826 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85828         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85829         code which expansion is under static control.  Patch imported from
85830         Akim Demaille's patch to Bison; see
85831         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85833 2003-04-14  Bruno Haible  <bruno@clisp.org>
85835         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85837 2003-04-11  Jim Meyering  <jim@meyering.net>
85839         Merge changes from Coreutils.
85841         2003-03-22  Jim Meyering  <jim@meyering.net>
85843         * lib/strftime.c (widen): Cast alloca return value to proper type.
85845         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85847         From GNU libc.
85848         * lib/strftime.c (my_strftime): Handle very large width
85849         specifications for numeric values correctly.  Improve checks for
85850         overflow.
85852         2003-01-19  Jim Meyering  <jim@meyering.net>
85854         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85855         definitions.
85856         (nl_get_alt_digit) [! defined my_strftime]: Define.
85857         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85858         _nl_get_alt_digit and _nl_get_walt_digit.
85860         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85861         libc. These changes have no effect outside of _LIBC.
85863 2003-04-10  Bruno Haible  <bruno@clisp.org>
85865         * modules/findprog: New file.
85866         * MODULES.html.sh (func_all_modules): Add it.
85868 2003-04-10  Bruno Haible  <bruno@clisp.org>
85870         * m4/findprog.m4: New file.
85871         * m4/eaccess.m4: New file.
85873 2003-04-10  Bruno Haible  <bruno@clisp.org>
85875         * lib/findprog.h: New file, from GNU gettext.
85876         * lib/findprog.c: New file, from GNU gettext.
85878 2003-04-05  Jim Meyering  <jim@meyering.net>
85880         Merge changes from Coreutils.
85882         * lib/exclude.h (PARAMS): Remove definition and uses.
85883         * lib/exclude.c: Remove uses of `PARAMS'.
85885         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85886         Add test-cases for DOS filenames. Declare program_name.
85887         (main): Set up program_name.  Patch by Rich Dawe.
85889         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85890         error from mntctl.
85891         Use mntctl's return value to drive the entry-processing loop, since
85892         we can't rely on the value of the vmt_length member in the last
85893         entry.  On some systems doing so could result in exhausting
85894         virtual memory.  Based in part on a patch from Mike Jetzer.
85896 2003-04-04  Bruno Haible  <bruno@clisp.org>
85898         * modules/linebreak: New file.
85899         * MODULES.html.sh (func_all_modules): Add it.
85901 2003-04-04  Bruno Haible  <bruno@clisp.org>
85903         * m4/linebreak.m4: New file.
85905 2003-04-04  Bruno Haible  <bruno@clisp.org>
85907         * lib/linebreak.h: New file, from GNU gettext.
85908         * lib/linebreak.c: New file, from GNU gettext with slight
85909         modifications.
85910         * lib/lbrkprop.h: New file, from GNU gettext.
85912 2003-04-03  Bruno Haible  <bruno@clisp.org>
85914         * modules/utf8-ucs4: New file.
85915         * modules/utf16-ucs4: New file.
85916         * modules/ucs4-utf8: New file.
85917         * modules/ucs4-utf16: New file.
85918         * MODULES.html.sh (func_all_modules): Add them.
85920 2003-04-03  Bruno Haible  <bruno@clisp.org>
85922         * m4/utf-ucs4.m4: New file.
85923         * m4/ucs4-utf.m4: New file.
85925 2003-04-03  Bruno Haible  <bruno@clisp.org>
85927         * lib/utf8-ucs4.h: New file, from GNU gettext.
85928         * lib/utf16-ucs4.h: New file, from GNU gettext.
85929         * lib/ucs4-utf8.h: New file, from GNU gettext.
85930         * lib/ucs4-utf16.h: New file, from GNU gettext.
85932 2003-04-02  Bruno Haible  <bruno@clisp.org>
85934         * modules/binary-io: New file.
85935         * MODULES.html.sh (func_all_modules): Add it.
85937 2003-04-02  Bruno Haible  <bruno@clisp.org>
85939         * lib/binary-io.h: New file, from GNU gettext.
85941 2003-04-01  Bruno Haible  <bruno@clisp.org>
85943         * modules/pathname: New file.
85944         * MODULES.html.sh (func_all_modules): Add it.
85946 2003-04-01  Bruno Haible  <bruno@clisp.org>
85948         * lib/pathname.h: New file, from GNU gettext.
85949         * lib/concatpath.c: New file, from GNU gettext.
85951 2003-03-30  Bruno Haible  <bruno@clisp.org>
85953         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85955 2003-03-30  Bruno Haible  <bruno@clisp.org>
85957         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85958         function chown() doesn't exist.
85960 2003-03-28  Bruno Haible  <bruno@clisp.org>
85962         * modules/copy-file: New file.
85963         * MODULES.html.sh (func_all_modules): Add it.
85965 2003-03-28  Bruno Haible  <bruno@clisp.org>
85967         * m4/copy-file.m4: New file.
85969 2003-03-28  Bruno Haible  <bruno@clisp.org>
85971         * lib/copy-file.h: New file, from GNU gettext.
85972         * lib/copy-file.c: New file, from GNU gettext.
85974 2003-03-18  Jim Meyering  <jim@meyering.net>
85976         * lib/quote.c (quote_n): Fix typo in comment.
85978 2003-03-18  Bruno Haible  <bruno@clisp.org>
85980         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85981         checking.
85982         * m4/onceonly_2_57.m4: Likewise.
85984 2003-03-17  Bruno Haible  <bruno@clisp.org>
85986         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85987         (m4_quote): Remove macro.
85988         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85990 2003-03-14  Jim Meyering  <jim@meyering.net>
85992         Merge changes from Coreutils.
85993         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85994         to be const, in order to avoid warnings.
85995         (obstack_room): Likewise.
85996         (obstack_empty_p): Likewise.
85998 2003-03-14  Bruno Haible  <bruno@clisp.org>
86000         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86001         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86003 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86005         Merge changes from Bison.
86006         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86007         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86008         when compiling Bison 1.875's `bitset bset = obstack_alloc
86009         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86010         * lib/hash.c: Include <stdbool.h> unconditionally.
86012 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86014         * m4/onceonly.m4 (m4_quote): New macro.
86015         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86016         Quote AC_FOREACH variable-expansions properly.
86018 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86020         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86022 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86024         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86025         Reported by Bruce Becker; see:
86026         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86028 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86029             Bruno Haible  <bruno@clisp.org>
86031         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86032         Reported by John Hughes, see
86033         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86035 2003-02-20  Bruno Haible  <bruno@clisp.org>
86037         * MODULES.html.sh (func_all_modules): Add poll.
86039 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86041         * modules/poll: New file.
86043 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86045         * lib/poll_.h: New file.
86046         * lib/poll.c: New file.
86048 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86050         * m4/poll.m4: New file.
86052 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86054         * modules/mathl: New file.
86056 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86058         * lib/mathl.h: New file.
86059         * lib/acosl.c: New file.
86060         * lib/asinl.c: New file.
86061         * lib/atanl.c: New file.
86062         * lib/ceill.c: New file.
86063         * lib/cosl.c: New file.
86064         * lib/expl.c: New file.
86065         * lib/floorl.c: New file.
86066         * lib/frexpl.c: New file.
86067         * lib/ldexpl.c: New file.
86068         * lib/logl.c: New file.
86069         * lib/sincosl.c: New file.
86070         * lib/sinl.c: New file.
86071         * lib/sqrtl.c: New file.
86072         * lib/tanl.c: New file.
86073         * lib/trigl.c: New file.
86074         * lib/trigl.h: New file.
86076 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86078         * m4/mathl.m4: New file.
86080 2003-02-18  Bruno Haible  <bruno@clisp.org>
86082         * MODULES.html.sh (func_all_modules): Add mathl.
86084 2003-02-17  Bruno Haible  <bruno@clisp.org>
86086         * modules/mkdtemp: New module.
86087         * MODULES.html.sh (func_all_modules): Add it.
86089 2003-02-17  Bruno Haible  <bruno@clisp.org>
86091         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86093 2003-02-17  Bruno Haible  <bruno@clisp.org>
86095         * lib/mkdtemp.h: New file, from GNU gettext.
86096         * lib/mkdtemp.c: New file, from GNU gettext.
86098 2003-02-02  Jim Meyering  <jim@meyering.net>
86100         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86101         e.g. glibc-2.2.93.
86103 2003-01-31  Bruno Haible  <bruno@clisp.org>
86105         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86106         'rpl_rename'.
86107         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86108         'rpl_strnlen'.
86109         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86110         'rpl_strtod'.
86111         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86112         'rpl_utime'.
86114 2003-01-31  Bruno Haible  <bruno@clisp.org>
86116         * lib/rename.c: #undef rename before defining rpl_rename.
86117         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86119 2003-01-30  Bruno Haible  <bruno@clisp.org>
86121         * modules/vasnprintf, modules/vasprintf: New modules.
86122         * MODULES.html.sh (func_all_modules): Add them.
86124 2003-01-30  Bruno Haible  <bruno@clisp.org>
86126         * m4/signed.m4: New file, from GNU gettext.
86127         * m4/longdouble.m4: New file, from GNU gettext.
86128         * m4/wchar_t.m4: New file, from GNU gettext.
86129         * m4/wint_t.m4: New file, from GNU gettext.
86130         * m4/vasnprintf.m4: New file.
86131         * m4/vasprintf.m4: New file.
86133 2003-01-30  Bruno Haible  <bruno@clisp.org>
86135         * lib/printf-args.h: New file, from GNU gettext.
86136         * lib/printf-args.c: New file, from GNU gettext.
86137         * lib/printf-parse.h: New file, from GNU gettext.
86138         * lib/printf-parse.c: New file, from GNU gettext.
86139         * lib/vasnprintf.h: New file, from GNU gettext.
86140         * lib/vasnprintf.c: New file, from GNU gettext.
86141         * lib/asnprintf.c: New file, from GNU gettext.
86142         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86143         * lib/vasprintf.c: New file, from GNU gettext.
86144         * lib/asprintf.c: New file, from GNU gettext.
86146 2003-01-29  Bruno Haible  <bruno@clisp.org>
86148         * modules/stpncpy: New module.
86149         * MODULES.html.sh (func_all_modules): Add it.
86151 2003-01-29  Bruno Haible  <bruno@clisp.org>
86153         * m4/stpncpy.m4: New file.
86155 2003-01-29  Bruno Haible  <bruno@clisp.org>
86157         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86158         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86160 2003-01-28  Bruno Haible  <bruno@clisp.org>
86162         * modules/c-ctype: New module.
86163         * MODULES.html.sh (func_all_modules): Add it.
86165 2003-01-28  Bruno Haible  <bruno@clisp.org>
86167         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86168         Paul Eggert.
86169         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86170         Paul Eggert.
86172 2003-01-27  Bruno Haible  <bruno@clisp.org>
86174         * modules/xsetenv: New module.
86175         * MODULES.html.sh (func_all_modules): Add it.
86177 2003-01-27  Bruno Haible  <bruno@clisp.org>
86179         * lib/xsetenv.h: New file, from GNU gettext.
86180         * lib/xsetenv.c: New file, from GNU gettext.
86182 2003-01-23  Jim Meyering  <jim@meyering.net>
86184         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86185         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86187 2003-01-23  Bruno Haible  <bruno@clisp.org>
86189         * modules/minmax: New module.
86190         * MODULES.html.sh (func_all_modules): Add it.
86192 2003-01-23  Bruno Haible  <bruno@clisp.org>
86194         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86195         Eggert.
86197 2003-01-22  Bruno Haible  <bruno@clisp.org>
86199         * modules/exit: New module.
86200         * MODULES.html.sh (func_all_modules): Add it.
86202 2003-01-22  Bruno Haible  <bruno@clisp.org>
86204         * lib/exit.h: New file, from GNU gettext.
86206 2003-01-19  Bruno Haible  <bruno@clisp.org>
86208         * gnulib-tool: Recognize option --extract-maintainer.
86209         (func_get_maintainer): New function.
86210         * modules/*: Add Maintainer entry.
86212 2003-01-16  Jim Meyering  <jim@meyering.net>
86214         * m4/regex.m4: The `regex' struct is both input and output.
86215         Initialize it before each use.  Patch by Tim Waugh.
86217 2003-01-16  Bruno Haible  <bruno@clisp.org>
86219         * MODULES.html.sh: Add a table of contents. Add the module name as
86220         leftmost column. Add hyperlinks.
86222 2003-01-15  Bruno Haible  <bruno@clisp.org>
86224         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86226 2003-01-15  Bruno Haible  <bruno@clisp.org>
86228         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86229         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86230         suffix.
86232 2003-01-15  Bruno Haible  <bruno@clisp.org>
86234         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86236 2003-01-15  Bruno Haible  <bruno@clisp.org>
86238         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86239         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86241 2003-01-14  Jim Meyering  <jim@meyering.net>
86243         * lib/same.c (same_name): Tweak a comment.
86245 2003-01-14  Bruno Haible  <bruno@clisp.org>
86247         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86248         when a string comparison is sufficient.
86250 2003-01-14  Bruno Haible  <bruno@clisp.org>
86252         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86253         'unsigned int'.
86255 2003-01-14  Bruno Haible  <bruno@clisp.org>
86257         * lib/hash-pjw.c: Add comment about low quality of this function.
86259 2003-01-13  Bruno Haible  <bruno@clisp.org>
86261         * modules/stpcpy: Distribute lib/stpcpy.h.
86262         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86264 2003-01-13  Bruno Haible  <bruno@clisp.org>
86266         * modules/*: Add a description.
86267         * modules/strpbrk: Fix Makefile.am snippet.
86268         * modules/strtoimax: Fix dependencies.
86269         * modules/strtoumax: Likewise.
86271 2003-01-13  Bruno Haible  <bruno@clisp.org>
86273         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86274         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86275         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86277 2003-01-13  Bruno Haible  <bruno@clisp.org>
86279         * gnulib-tool (func_create_testdir): Store config/* files in the main
86280         directory.
86281         * config.rpath: Move to ...
86282         * config/config.rpath: ... here.
86283         * modules/gettext: Contains config/config.rpath, not config.rpath.
86284         * modules/iconv: Likewise.
86286 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86288         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86289         to avoid collisions with libcurses and libreadline.
86291         * m4/getstr.m4: Remove.
86292         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86294 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86296         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86297         to avoid collisions with libcurses and libreadline.
86299         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86300         * lib/getstr.h, getstr.c: Remove.
86301         * lib/getline.c: Include "getline.h", to check interface.
86302         Move body of old getstr.c here: this defines MIN_CHUNK and
86303         declares getdelim2, which is renamed from getstr.
86304         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86306         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86307         All uses changed.
86308         * lib/linebuffer.h: Likewise.
86309         (readline): Remove backward-compatibility macro.
86311 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86313         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86314         to avoid collisions with libcurses and libreadline.
86315         * getstr: Remove.
86316         * MODULES.html.sh: Remove getstr.
86317         * modules/getline: Depend on unlocked-io, not getstr.
86319 2003-01-12  Jim Meyering  <jim@meyering.net>
86321         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86323 2003-01-10  Bruno Haible  <bruno@clisp.org>
86325         * modules/alloca: Change Makefile.am requirements. Simplify Include
86326         requirements. Add lib/alloca_.h to file list.
86328 2003-01-10  Bruno Haible  <bruno@clisp.org>
86330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86332 2003-01-10  Bruno Haible  <bruno@clisp.org>
86334         * lib/alloca_.h: New file.
86335         * lib/getdate.y: Unconditionally include alloca.h.
86336         * lib/makepath.c: Likewise.
86337         * lib/setenv.c: Likewise.
86338         * lib/userspec.c: Likewise.
86340 2003-01-09  Karl Berry  <karl@gnu.org>
86342         * MODULES.html.sh: include `dirname $0` in PATH, to find
86343         gnulib-tool.
86345 2003-01-09  Bruno Haible  <bruno@clisp.org>
86347         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86348         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86350 2003-01-09  Bruno Haible  <bruno@clisp.org>
86352         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86354 2003-01-09  Bruno Haible  <bruno@clisp.org>
86356         * lib/stdbool.h.in: New file.
86358 2003-01-09  Bruno Haible  <bruno@clisp.org>
86360         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86361         * MODULES.html.sh: Likewise.
86363 2003-01-08  Jim Meyering  <jim@meyering.net>
86365         * lib/full-write.c: Undefine and define-away `const' after inclusion
86366         of errno.h, not before.  Suggestion from Bruno Haible.
86368 2003-01-08  Bruno Haible  <bruno@clisp.org>
86370         * modules/full-read: Depend on full-write.
86372 2003-01-08  Bruno Haible  <bruno@clisp.org>
86374         * lib/safe-read.c: Include specification header first, to ensure its
86375         selfcontainedness.
86376         * lib/full-write.c: Likewise.
86378 2003-01-07  Jim Meyering  <jim@meyering.net>
86380         * lib/full-write.c: Rework so that it may serve to define full_read,
86381         too.
86382         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86384 2003-01-07  Bruno Haible  <bruno@clisp.org>
86386         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86387         <inttypes.h>.
86388         * lib/xstrtol.h: Likewise.
86389         * lib/xstrtoimax.c: Likewise.
86390         * lib/xstrtoumax.c: Likewise.
86391         * lib/human.h: Likewise.
86393         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86394         on systems that have <inttypes.h> but not <stdint.h>.
86396 2003-01-07  Bruno Haible  <bruno@clisp.org>
86398         * MODULES.html.sh: Add copyright notice.
86399         (missed_files): Omit CVS directory entries.
86400         (func_module): Make it work with sed-3.02.
86401         * MODULES.txt: Remove file.
86403 2003-01-06  Jim Meyering  <jim@meyering.net>
86405         * lib/version-etc.c: Update year in translatable copyright string.
86407 2003-01-03  Karl Berry  <karl@gnu.org>
86409         * config/config.{guess,sub}: update from prep.
86411 2003-01-02  Karl Berry  <karl@gnu.org>
86413         * doc/COPYING.DOC: belatedly updated to 1.2.
86415 2003-01-01  Karl Berry  <karl@gnu.org>
86417         * gnulib-tool (func_verify_module): report module name $module in
86418         error message, not $1.
86419         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86420         be created, only if it doesn't exist.
86421         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86423 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86425         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86427 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86429         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86430         memcmp if strcoll doesn't work.
86432 2002-12-31  Bruno Haible  <bruno@clisp.org>
86434         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86435         nonempty.
86437 2002-12-31  Bruno Haible  <bruno@clisp.org>
86439         * lib/memcoll.c (STRCOLL): New macro.
86440         (memcoll): Use it.
86442 2002-12-31  Bruno Haible  <bruno@clisp.org>
86444         * lib/localcharset.h: New file.
86445         * lib/localcharset.c: Include it.
86446         * lib/unicodeio.c: Likewise.
86448 2002-12-31  Bruno Haible  <bruno@clisp.org>
86450         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86451         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86453 2002-12-31  Bruno Haible  <bruno@clisp.org>
86455         * lib/getline.h: Include <stddef.h>, for size_t.
86457         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86458         * lib/unicodeio.c: Don't include <stddef.h>.
86460 2002-12-31  Bruno Haible  <bruno@clisp.org>
86462         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86463         HAVE_TM_ZONE.
86465 2002-12-24  Karl Berry  <karl@gnu.org>
86467         * config/config.guess: update from prep.
86469 2002-12-24  Bruno Haible  <bruno@clisp.org>
86471         General infrasructure.
86472         * m4/README: Rewritten.
86473         * m4/onceonly.m4: New file.
86474         * m4/onceonly_2_57.m4: New file.
86476         Module atexit.
86477         * m4/atexit.m4: New file.
86479         Module strtod.
86480         * m4/strtod.m4: New file.
86482         Module strtol.
86483         * m4/strtol.m4: New file.
86485         Module strtoul.
86486         * m4/strtoul.m4: New file.
86488         Module memchr.
86489         * m4/memchr.m4: New file.
86491         Module memcmp.
86492         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86493         (jm_FUNC_MEMCMP): Invoke it.
86495         Module memcpy.
86496         * m4/memcpy.m4: New file.
86498         Module memmove.
86499         * m4/memmove.m4: New file.
86501         Module memset.
86502         * m4/memset.m4: New file.
86504         Module strcspn.
86505         * m4/strcspn.m4: New file.
86507         Module strpbrk.
86508         * m4/strpbrk.m4: New file.
86510         Module strstr.
86511         * m4/strstr.m4: New file.
86513         Module strerror.
86514         * m4/strerror.m4: New file.
86516         Module mktime.
86517         * m4/mktime.m4: Renamed from jm-mktime.m4.
86518         (gl_PREREQ_MKTIME): New macro.
86519         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86521         Module malloc.
86522         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86523         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86524         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86526         Module realloc.
86527         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86528         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86529         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86531         Module strftime.
86532         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86533         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86534         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86535         gl_TM_GMTOFF.
86536         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86538         Module xalloc.
86539         * m4/xalloc.m4: New file.
86541         Module alloca.
86542         * m4/alloca.m4: New file.
86544         Module putenv.
86545         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86546         (jm_FUNC_PUTENV): Invoke it.
86548         Module setenv.
86549         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86550         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86551         when invoked twice.
86552         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86553         gt_FUNC_SETENV.
86555         Module memrchr.
86556         * m4/memrchr.m4: New file.
86558         Module stpcpy.
86559         * m4/stpcpy.m4: New file.
86561         Module strcase.
86562         * m4/strcase.m4: New file.
86564         Module strdup.
86565         * m4/strdup.m4: New file.
86567         Module strnlen.
86568         * m4/strnlen.m4: New file.
86570         Module strndup.
86571         * m4/strndup.m4: New file.
86573         Module xstrtod.
86574         * m4/xstrtod.m4: New file.
86576         Module xstrtol.
86577         * m4/xstrtol.m4: New file.
86579         Module getdate.
86580         * m4/getdate.m4: New file.
86582         Module unlocked-io.
86583         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86584         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86585         * m4/jm-glibc-io.m4n: Remove file.
86587         Module long-options.
86588         * m4/long-options.m4: New file.
86590         Module md5.
86591         * m4/md5.m4: New file.
86593         Module sha.
86594         * m4/sha.m4: New file.
86596         Module getstr.
86597         * m4/getstr.m4: New file.
86599         Module getline.
86600         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86601         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86602         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86603         simply getline. Infoke gl_PREREQ_GETLINE.
86605         Module obstack.
86606         * m4/obstack.m4: New file.
86608         Module hash.
86609         * m4/hash.m4: New file.
86611         Module readtokens.
86612         * m4/readtokens.m4: New file.
86614         Module strverscmp.
86615         * m4/strverscmp.m4: New file.
86617         Module stdbool.
86618         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86619         OSF/1.
86621         Module strtoll.
86622         * m4/strtoll.m4: New file.
86624         Module strtoull.
86625         * m4/strtoull.m4: New file.
86627         Module strtoimax.
86628         * m4/strtoimax.m4: New file.
86630         Module strtoumax.
86631         * m4/strtoumax.m4: New file.
86633         Module xstrtoimax.
86634         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86635         jm_AC_PREREQ_XSTRTOIMAX.
86636         Moved the strtol prerequisites to strtol.m4.
86637         Moved the strtoll prerequisites to strtoll.m4.
86638         Moved the strtoimax prerequisites to strtoimax.m4.
86640         Module xstrtoumax.
86641         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86642         jm_AC_PREREQ_XSTRTOUMAX.
86643         Moved the strtoul prerequisites to strtoul.m4.
86644         Moved the strtoull prerequisites to strtoull.m4.
86645         Moved the strtoumax prerequisites to strtoumax.m4.
86647         Module chown.
86648         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86649         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86651         Module dup2.
86652         * m4/dup2.m4: New file.
86654         Module ftruncate.
86655         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86656         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86658         Module getgroups.
86659         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86660         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86662         Module gettimeofday.
86663         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86664         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86665         gl_PREREQ_GETTIMEOFDAY.
86667         Module mkdir.
86668         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86669         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86671         Module mkstemp.
86672         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86673         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86674         jm_AC_TYPE_UINTMAX_T.
86675         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86677         Module stat.
86678         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86679         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86681         Module lstat.
86682         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86683         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86685         Module timespec.
86686         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86687         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86688         * m4/st_mtim.m4: Indentation.
86690         Module nanosleep.
86691         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86692         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86693         gl_PREREQ_NANOSLEEP.
86695         Module regex.
86696         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86697         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86698         (gl_REGEX): New macro.
86700         Module rename.
86701         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86702         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86704         Module rmdir.
86705         * m4/rmdir.m4: New file.
86707         Module utime.
86708         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86709         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86710         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86712         Module dirname.
86713         * m4/dirname.m4: New file.
86715         Module getopt.
86716         * m4/getopt.m4: New file.
86718         Module unistd-safer.
86719         * m4/unistd-safer.m4: New file.
86721         Module fnmatch.
86722         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86723         declaration.
86724         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86725         (gl_FUNC_FNMATCH_POSIX): New macro.
86726         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86727         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86728         simply fnmatch.
86730         Module exclude.
86731         * m4/exclude.m4: New file.
86733         Module human.
86734         * m4/human.m4: New file.
86736         Module acl.
86737         * m4/acl.m4: Nop.
86739         Module backupfile.
86740         * m4/backupfile.m4: New file.
86741         * m4/d-ino.m4: Indentation.
86743         Module fsusage.
86744         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86745         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86746         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86748         Module dirfd.
86749         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86750         requirements.
86752         Module euidaccess.
86753         * m4/euidaccess.m4: New file.
86755         Module file-type.
86756         * m4/file-type.m4: New file.
86758         Module fileblocks.
86759         * m4/fileblocks.m4: New file.
86761         Module filemode.
86762         * m4/filemode.m4: New file.
86764         Module isdir.
86765         * m4/isdir.m4: New file.
86767         Module lchown.
86768         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86769         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86771         Module makepath.
86772         * m4/makepath.m4: New file.
86774         Module modechange.
86775         * m4/modechange.m4: New file.
86777         Module mountlist.
86778         * m4/mountlist.m4: New file.
86779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86780         Indentation.
86782         Module path-concat.
86783         * m4/path-concat.m4: New file.
86785         Module pathmax.
86786         * m4/pathmax.m4: New file.
86788         Module same.
86789         * m4/same.m4: New file.
86791         Module save-cwd.
86792         * m4/save-cwd.m4: New file.
86794         Module savedir.
86795         * m4/savedir.m4: New file.
86797         Module xgetcwd.
86798         * m4/xgetcwd.m4: New file.
86799         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86801         Module xreadlink.
86802         * m4/xreadlink.m4: New file.
86804         Module safe-read.
86805         * m4/safe-read.m4: New file.
86807         Module safe-write.
86808         * m4/safe-write.m4: New file.
86810         Module closeout.
86811         * m4/closeout.m4: New file.
86813         Module stdio-safer.
86814         * m4/stdio-safer.m4: New file.
86816         Module getpass.
86817         * m4/getpass.m4: New file.
86819         Module getugroups.
86820         * m4/getugroups.m4: New file.
86822         Module group-member.
86823         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86824         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86826         Module idcache.
86827         * m4/idcache.m4: New file.
86829         Module userspec.
86830         * m4/userspec.m4: New file.
86832         Module gettime.
86833         * m4/clock_time.m4: New file.
86834         * m4/gettime.m4: New file.
86836         Module settime.
86837         * m4/settime.m4: New file.
86839         Module posixtm.
86840         * m4/posixtm.m4: New file.
86842         Module gethostname.
86843         * m4/gethostname.m4: New file.
86845         Module canon-host.
86846         * m4/canon-host.m4: New file.
86848         Module gettext.
86849         * m4/codeset.m4: New file, from gettext-0.11.5.
86850         * m4/gettext.m4: New file, from gettext-0.11.5.
86851         * m4/glibc21.m4: New file, from gettext-0.11.5.
86852         * m4/iconv.m4: New file, from gettext-0.11.5.
86853         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86854         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86855         * m4/inttypes.m4: New file, from gettext-0.11.5.
86856         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86857         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86858         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86859         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86860         * m4/lib-link.m4: New file, from gettext-0.11.5.
86861         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86862         * m4/progtest.m4: New file, from gettext-0.11.5.
86863         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86864         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86865         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86867         Module localcharset.
86868         * m4/localcharset.m4: New file.
86870         Module hard-locale.
86871         * m4/hard-locale.m4: New file.
86873         Module mbswidth.
86874         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86875         onceonly macros.
86876         * m4/mbrtowc.m4: Add comment.
86878         Module memcasecmp.
86879         * m4/memcasecmp.m4: New file.
86881         Module memcoll.
86882         * m4/memcoll.m4: New file.
86884         Module unicodeio.
86885         * m4/unicodeio.m4: New file.
86887         Module rpmatch.
86888         * m4/rpmatch.m4: New file.
86890         Module yesno.
86891         * m4/yesno.m4: New file.
86893         Module exitfail.
86894         * m4/exitfail.m4: New file.
86896         Module c-stack.
86897         * m4/c-stack.m4 (gl_C_STACK): New macro.
86898         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86900         Module error.
86901         * m4/error.m4 (gl_ERROR): New macro.
86902         (jm_PREREQ_ERROR): Use onceonly macros.
86904         Module fatal.
86905         * m4/fatal.m4: New file.
86907         Module getloadavg.
86908         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86909         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86911         Module getpagesize.
86912         * m4/getpagesize.m4: New file.
86914         Module getusershell.
86915         * m4/getusershell.m4: New file.
86917         Module physmem.
86918         * m4/physmem.m4: New file.
86920         Module posixver.
86921         * m4/posixver.m4: New file.
86923         Module quotearg.
86924         * m4/quotearg.m4: New file.
86926         Module quote.
86927         * m4/quote.m4: New file.
86929         Module readutmp.
86930         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86932         Module sig2str.
86933         * m4/sig2str.m4: New file.
86935         Other.
86936         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86937         ulonglong.m4.
86938         * m4/intmax_t.m4: New file.
86939         * m4/d-type.m4: Indentation.
86940         * m4/jm-macros.m4: Update.
86941         * m4/prereq.m4 (jm_PREREQ): Update.
86942         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86943         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86944         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86945         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86946         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86947         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86948         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86949         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86950         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86951         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86952         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86953         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86954         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86955         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86956         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86957         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86958         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86959         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86960         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86962 2002-12-24  Bruno Haible  <bruno@clisp.org>
86964         * MODULES.txt: Update according to m4/ changes.
86966         Module gettext.
86967         * config.rpath: New file, from gettext-0.11.5.
86969         * modules/*: New module descriptions.
86970         * gnulib-tool: New file.
86971         * MODULES.html.sh: New file.
86973 2002-12-21  Karl Berry  <karl@gnu.org>
86975         * doc/fdl.texi: update to version 1.2.
86977 2002-12-19  Karl Berry  <karl@gnu.org>
86979         * config/config.guess: update from prep.
86981 2002-12-18  Bruno Haible  <bruno@clisp.org>
86983         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86984         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86986 2002-12-17  Bruno Haible  <bruno@clisp.org>
86988         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86989         stdlib.h, string.h.
86991 2002-12-17  Bruno Haible  <bruno@clisp.org>
86993         * lib/canon-host.c (strdup): Remove unused declaration.
86995         * lib/fsusage.c: Include full_read.h.
86996         (get_fs_usage): Use full_read instead of safe_read.
86998         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87000 2002-12-12  Karl Berry  <karl@gnu.org>
87002         * config/config.guess: update from prep.
87004 2002-12-11  Bruno Haible  <bruno@clisp.org>
87006         * m4/setenv.m4: New file, from gettext-0.11.5.
87008 2002-12-11  Bruno Haible  <bruno@clisp.org>
87010         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87011         not unsetenv().
87012         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87013         modifications:
87015         2002-12-11  Bruno Haible  <bruno@clisp.org>
87017                 * setenv.c (alloca): Fall back to malloc.
87018                 (freea): New macro.
87019                 (setenv): Use freea() to free memory allocated with alloca().
87021         2002-11-13  Bruno Haible  <bruno@clisp.org>
87023                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87024                 function declarations.
87025                 * unsetenv.c (unsetenv): Likewise.
87027         2002-03-04  Bruno Haible  <bruno@clisp.org>
87029                 Portability to AIX 4.3.3.
87030                 * unsetenv.c: New file, extracted from setenv.c.
87031                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87033         2001-12-20  Bruno Haible  <bruno@clisp.org>
87035                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87036                 use malloc instead. For SunOS 4.
87038         2001-12-11  Bruno Haible  <bruno@clisp.org>
87040                 * setenv.c: Declare alloca.
87041                 (compar_fn_t): New typedef.
87042                 (KNOWN_VALUE, STORE_VALUE): Use it.
87044         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87045         setenv.h.
87047 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87049         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87050         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87051         Choose values that are less likely to collide with system fnmatch
87052         options.
87053         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87054         defined (e.g., a pure POSIX system).
87055         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87056         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87058 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87060         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87061         a pain in practice to deal with generated m4 files.  This change
87062         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87064         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87065         and jm-glibc-io.m4, as they are no longer a special case.
87066         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87067         kludge and the auto-generation stuff.  Check only whether the
87068         functions are declared, not whether they exist, since older hosts
87069         that don't declare the functions can't use the optimization anyway.
87071 2002-12-06  Jim Meyering  <jim@meyering.net>
87073         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87075         Merge in changes from libc's misc/error.c, in preparation
87076         for the merge of gnulib's changes back into libc.
87078         * lib/error.c (_): Define only if not already defined.
87079         Move definition to follow all #include directives.
87080         Include unlocked-io.h only if !_LIBC.
87081         [_LIBC]: Include <libio/libioP.h>.
87082         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87083         (fflush): Tweak definition to use INTUSE.
87084         (putc): Define.
87086 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87088         * lib/alloca.c [defined emacs]: Include "lisp.h".
87089         (xalloc_die) [defined emacs]: New macro.
87090         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87091         [! defined emacs]: Include <xalloc.h>.
87092         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87093         (pointer): Typedef to POINTER_TYPE *.
87094         (malloc): Remove decl; we now always use xmalloc.
87095         (alloca): Use old-style definition, since Emacs needs this.
87096         Check for arithmetic overflow when computing combined size.
87098 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87100         Do not generate unlocked-io.h automatically, since it's easier to
87101         maintain it by hand.
87103         * lib/unlocked-io.h: New file, from GNU diffutils,
87104         but with proper copyright notice and attribution.
87105         * lib/gen-uio: Remove.
87106         * lib/Makefile.am: Add copyright notice.
87107         (libfetish_a_SOURCES): Add unlocked-io.h.
87108         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87109         (DISTCLEANFILES, io_functions): Remove macros.
87110         (EXTRA_DIST): Remove gen_uio.
87111         (unlocked-io.h): Remove rule.
87113 2002-12-04  Jim Meyering  <jim@meyering.net>
87115         Reflect the fact that stat.c and lstat.c are no longer generated.
87116         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87117         (DISTCLEANFILES): Likewise.
87118         (EXTRA_DIST): Likewise.
87119         (all_local): Don't depend on stat.c or lstat.c.
87120         (stat.c, lstat.c): Remove rules.
87121         (EXTRA_DIST): Remove xstat.in.
87123         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87124         * lib/stat.c: New file.  Contents mostly from xstat.in.
87125         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87126         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87128         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87129         too.
87130         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87132 2002-12-03  Jim Meyering  <jim@meyering.net>
87134         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87135         but not semantics, to minimize the differences between these two files.
87136         (safe_read): Change comment to mention SAFE_READ_ERROR.
87138         * lib/safe-read.c (IS_EINTR): Define.
87139         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87141 2002-12-02  Jim Meyering  <jim@meyering.net>
87143         * lib/safe-read.c (EINTR): Define.
87144         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87145         (INT_MAX): Provide fallback.
87146         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87148         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87150 2002-12-02  Bruno Haible  <bruno@clisp.org>
87152         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87153         Define, taken from safe-read.c.
87154         (INT_MAX): Provide fallback.
87155         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87156         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87158         * lib/safe-read.c (EINTR): Remove definition.
87159         (safe_read): Don't use EINTR if it is absent.
87161 2002-12-01  Jim Meyering  <jim@meyering.net>
87163         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87164         zero.
87165         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87167 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87169         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87170         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87171         with `if (! (value < limit)) abort ();', for readability.
87173 2002-11-26  Karl Berry  <karl@gnu.org>
87175         * lib/strdup.c: copy from libc again, with jim's ok.
87176         * lib/.cppi-disable: re-add strdup.c
87178 2002-11-25  Karl Berry  <karl@gnu.org>
87180         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87181         instead of "strtol.c".
87183 2002-11-25  Karl Berry  <karl@gnu.org>
87185         * config/install-sh: update from automake for variable quoting, $0 in
87186         error msgs, etc.
87188         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87189         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87190         entry.
87192 2002-11-25  Jim Meyering  <jim@meyering.net>
87194         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87196 2002-11-24  Karl Berry  <karl@gnu.org>
87198         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87199         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87201 2002-11-24  Jim Meyering  <jim@meyering.net>
87203         Update from coreutils:
87205         * lib/mktime.c: Merge in changes from libc.
87207         Avoid a link-time failure on some Linux systems.
87208         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87209         (otherwise).
87210         (__mon_yday): Declare with the STATIC attribute.
87211         (__mktime_internal): Likewise.
87212         Based on a report from Greg Schafer.
87214 2002-11-23  Jim Meyering  <jim@meyering.net>
87216         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87217         Use `unsigned', not `int', as type of index.
87219         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87221         * lib/fsusage.c: Remove unneeded parentheses around operands of
87222         `defined'.
87224 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87226         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87227         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87228         so that we can be included first.
87229         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87230         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87231         No need to include stddef.h or sys/types.h any more.
87232         Surround local include files with "", not "<>".
87233         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87234         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87235         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87236         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87237         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87238         (ISPRINT): Remove; no longer needed now that we assume C89.
87240         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87241         Preserve errno.
87243         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87244         quotearg_char): Use SIZE_MAX rather than
87245         (size_t) -1 when we are talking about "infinity".
87247         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87249 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87251         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87252         hint that one should use `if (! x) abort ();' rather than `assert
87253         (x);', and anyway it's one less thing to worry about configuring.
87254         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87255         hash_rehash, hash_insert): Use abort rather than assert.
87257 2002-11-22  Bruno Haible  <bruno@clisp.org>
87259         * lib/safe-read.h: Assume C89. Add comments.
87260         (safe_read): Change return type to size_t.
87261         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87262         byte counts > SSIZE_MAX correctly.
87263         * lib/safe-write.h: New file.
87264         * lib/safe-write.c: New file.
87265         * lib/full-read.h: New file.
87266         * lib/full-read.c: New file.
87267         * lib/full-write.h: Assume C89. Add comments.
87268         * lib/full-write.c: Include safe-write.h.
87269         (full_write): Rewritten to use safe_write.
87270         Suggested by Jim Meyering and Paul Eggert.
87272 2002-11-21  Jim Meyering  <jim@meyering.net>
87274         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87276         Merge in changes from the coreutils.
87278         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87279         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87280         <stdint.h>.
87281         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87282         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87283         int.  Work more efficiently if X is the same width as uintmax_t.
87284         Do not compare X to -1, to avoid bogus compiler warning.
87285         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87286         Don't assume that f_frsize and f_bsize are the same type.
87288         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87289         warning on FreeBSD.
87291         * lib/makepath.c (make_path): Restore umask *before* creating the final
87292         component.
87293         (make_path): Minor reformatting.
87295         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87296         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87297         HAVE_MALLOC/HAVE_REALLOC.
87299         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87300         dummy ones.  At least on GNU/Linux systems, `auto' means something
87301         else.
87302         From Michael Stone.
87304 2002-11-21  Bruno Haible  <bruno@clisp.org>
87306         Remove case insensitive option matching.
87307         * lib/argmatch.h (argcasematch): Remove declaration.
87308         (ARGCASEMATCH): Remove macro.
87309         (__xargmatch_internal): Remove case_sensitive argument.
87310         (XARGMATCH): Update.
87311         (XARGCASEMATCH): Remove macro.
87312         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87313         case_sensitive argument.
87314         (argcasematch): Remove function.
87315         (__xargmatch_internal): Remove case_sensitive argument.
87316         (main): Use XARGMATCH instead of XARGCASEMATCH.
87318         * lib/xmalloc.c: Change compile-time error message. Add comment about
87319         required autoconf version.
87321 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87323         Merge argmatch cleanups from Bison.  Assume C89.
87325         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87326         Include stdlib.h, for EXIT_FAILURE.
87327         Always include <string.h>, since we assume C89.
87328         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87329         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87330         Include <stddef.h> instead, since it's all we need for size_t.
87331         (PARAMS): Remove.  All uses removed.
87332         (ARRAY_CARDINALITY): Do not bother to #undef.
87333         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87334         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87335         Remove unnecessary parentheses.
87336         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87337         Insert necessary parentheses.
87338         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87339         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87341 2002-11-19  Bruno Haible  <bruno@clisp.org>
87343         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87344         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87346         * lib/mbswidth.h (PARAMS): Remove macro.
87347         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87348         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87350         * lib/gcd.h (PARAMS): Remove macro.
87351         (gcd): Use ANSI C function declarations.
87352         * lib/gcd.c (gcd): Likewise.
87354 2002-11-15  Bruno Haible  <bruno@clisp.org>
87356         * lib/strcspn.c: Include <stddef.h>.
87357         (strcspn): Use ANSI C function declaration. Change return type to
87358         size_t. Use NULL.
87359         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87360         (strpbrk): Use NULL.
87361         * lib/strpbrk.h (PARAMS): Remove macro.
87362         (strpbrk): Use ANSI C function declaration.
87363         * lib/strstr.c: Don't include <sys/types.h>.
87364         * lib/strstr.h (PARAMS): Remove macro.
87365         (strstr): Use ANSI C function declarations.
87367 2002-11-14  Karl Berry  <karl@gnu.org>
87369         * config/mkinstalldirs: `do' on separate line, instead of
87370         `for var; do'.
87372 2002-11-06  Bruno Haible  <bruno@clisp.org>
87374         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87375         * lib/gcd.c (gcd): Likewise.
87377 2002-11-05  Bruno Haible  <bruno@clisp.org>
87379         * lib/gcd.h: New file, from gettext-0.11.5.
87380         * lib/gcd.c: New file, from gettext-0.11.5.
87382 2002-11-05  Bruno Haible  <bruno@clisp.org>
87384         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87385         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87386         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87387         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87389         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87390         <libintl.h>.
87391         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87392         <libintl.h>.
87394         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87395         * lib/human.c: Include gettext.h instead of <libintl.h>.
87396         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87397         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87398         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87399         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87400         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87401         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87402         (textdomain): Remove definition.
87403         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87405         * lib/long-options.c: Remove include of <libintl.h> and definition of
87406         _.
87407         * lib/same.c: Remove include of <libintl.h> and definition of _.
87409 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87411         * lib/config.charset: A few additions for Solaris.
87413 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87415         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87416         * lib/localcharset.c (locale_charset): Declare as extern "C".
87418 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87420         * lib/config.charset: msdos in uk_UA uses CP1125.
87422 2002-11-04  Bruno Haible  <bruno@clisp.org>
87424         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87425         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87426         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87427         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87428         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87430 2002-11-04  Bruno Haible  <bruno@clisp.org>
87432         * lib/localcharset.c (locale_charset): Don't return an empty string.
87434 2002-11-04  Bruno Haible  <bruno@clisp.org>
87436         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87437         aliases.
87439 2002-11-04  Bruno Haible  <bruno@clisp.org>
87441         * lib/config.charset: Update for newest glibc. Add canonical names
87442         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87444 2002-11-04  Bruno Haible  <bruno@clisp.org>
87446         * lib/config.charset: Add support for NetBSD.
87448 2002-11-04  Bruno Haible  <bruno@clisp.org>
87450         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87452 2002-11-01  Bruno Haible  <bruno@clisp.org>
87454         * configure.in: Add AC_CONFIG_AUX_DIR call.
87455         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87456         test/Makefile.
87457         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87459 2002-09-28  Karl Berry  <karl@gnu.org>
87461         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87462         installed automake until the next release, since changes have been
87463         made.
87465 2002-09-25  Karl Berry  <karl@gnu.org>
87467         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87468         * lib/getopt*: copy from libc/posix.
87469         * lib/gettext.h: copy from gettext.
87470         * lib/.cppi-disable: add strdup.c, gettext.h.
87472 2002-09-25  Karl Berry  <karl@gnu.org>
87474         * config/srclist.txt: enable gettext.h check.
87475         * config/config.{guess,sub}: update from prep.
87476         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87477                 from automake 1.6.3.
87478         See srclist*.
87480 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87482         * regex.c (PATFETCH): Remove the translating fetch.
87483         (PATFETCH_RAW): Rename to PATFETCH.
87484         (set_image_of_range): New fun.
87485         (SET_RANGE_TABLE_WORK_AREA): Use it.
87486         (regex_compile): Don't translate the pattern chars so eagerly.
87487         Only do it when inserting an `exactn' bytecode or when handling
87488         a char-range.
87489         (mutually_exclusive_p): Avoid empty statement.
87491 2002-07-06  Jim Meyering  <meyering@lucent.com>
87493         * m4/README: Don't mention Makefile.am.in.
87494         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87496 2002-07-01  Jim Meyering  <meyering@lucent.com>
87498         * lib/c-stack.c: Include sys/time.h.
87499         From Volker Borchert.
87501 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87503         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87505 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87507         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87508         New macro.  Use it uniformly instead of
87509         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87510         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87511         reported by Vin Shelton.
87513 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87515         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87516         Do not assume SA_SIGINFO behavior.
87517         Bug reported by Jim Meyering on NetBSD 1.5.2.
87519 2002-06-22  Jim Meyering  <meyering@lucent.com>
87521         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87522         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87524         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87525         now that configure.ac uses AC_GNU_SOURCE.
87526         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87527         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87529         Update to latest tools.  Suggestions from Paul Eggert.
87530         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87531         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87532         * m4/fnmatch.m4: Likewise.
87533         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87534         to AC_HEADER_STDBOOL
87536 2002-06-22  Jim Meyering  <meyering@lucent.com>
87538         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87539         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87541 2002-06-22  Jim Meyering  <meyering@lucent.com>
87543         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87545         * lib/exitfail.c, exitfail.h: Likewise.
87546         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87548         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87549         of fnmatch.h.
87550         (EXTRA_DIST): Add fnmatch_loop.c.
87551         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87553         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87554         * lib/fnmatch.c: Update from diffutils-2.8.2.
87555         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87556         * lib/fnmatch.h: Remove file.
87558 2002-06-21  Jim Meyering  <meyering@lucent.com>
87560         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87561         * m4/mbrtowc.m4: Likewise.
87563         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87564         * m4/mbswidth.m4: Reflect name change:
87565         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87568         * m4/lib-link.m4: Update from gettext-0.11.2.
87569         * m4/gettext.m4: Likewise.
87571         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87572         From Alfred M. Szmidt.
87574 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87576         * lib/file-type.h: Report an error if neither S_ISREG nor
87577         S_IFREG is defined, instead of using a test specific to glibc
87578         2.2.  This should be safe, since POSIX requires S_ISREG and
87579         Unix Version 7 had S_IFREG.  We don't need to check for
87580         <sys/types.h> since we don't use any symbols that it defines.
87582 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87584         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87585         $@-t, so that each temporary file name is unique and valid in the first
87586         8 characters, for operation under DOS.
87588 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87592 2002-06-15  Jim Meyering  <meyering@lucent.com>
87594         Work even with DJGPP 2.03, which lacks support for symlinks.
87595         From Richard Dawe.
87596         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87597         is defined.
87598         * lib/lchown.c (S_ISLNK): Likewise.
87600 2002-06-15  Jim Meyering  <meyering@lucent.com>
87602         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87603         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87604         have been included before this file.
87606 2002-06-14  Jim Meyering  <meyering@lucent.com>
87608         * lib/file-type.h: Use the version from diffutils-2.8.2.
87609         * lib/file-type.c: Likewise.
87611 2002-06-07  Jim Meyering  <meyering@lucent.com>
87613         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87614         They're needed at least for NetBSD 1.5.2.
87615         ($statxfs_includes): Include those same headers.
87616         ($statxfs_includes): Include sys/vfs.h if available.
87617         ($statxfs_includes): Likewise for sys/statvfs.h.
87618         Check for the following members in both structs statfs and statvfs:
87619         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87621 2002-06-01  Jim Meyering  <meyering@lucent.com>
87623         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87624         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87626 2002-05-28  Jim Meyering  <meyering@lucent.com>
87628         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87629         Reported by Volker Borchert.
87631 2002-05-27  Jim Meyering  <meyering@lucent.com>
87633         Fix a problem seen only on nonconforming systems whereby ls.c's
87634         use of localtime, and then of gettimeofday would cause trouble:
87635         the localtime call used to initialize rpl_gettimeofday's save
87636         mechanism would clobber ls's current local time information so
87637         that in any long listing the first file would always be listed
87638         with date 1970-01-01.  Analysis by Volker Borchert.
87640         * lib/gettimeofday.c (localtime): Undefine.
87641         (rpl_localtime): New function.
87643 2002-05-27  Jim Meyering  <meyering@lucent.com>
87645         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87646         localtime.
87648         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87649         use the replacement function; it wouldn't resolve at link time.
87650         Reported by Volker Borchert.
87652 2002-05-22  Jim Meyering  <meyering@lucent.com>
87654         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87655         file-type.h.
87656         * lib/file-type.h: New file.
87657         * lib/file-type.c (file_type): New file/function.  Extracted from
87658         diffutils.
87660 2002-04-30  Jim Meyering  <meyering@lucent.com>
87662         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87664 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87666         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87668 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87670         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87671         Do not check for alloca.h (no longer used) or stdbool.h (was never
87672         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87674 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87676         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87678 2002-04-29  Jim Meyering  <meyering@lucent.com>
87680         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87681         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87682         Use AC_FUNC_STRNLEN here instead.
87684         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87685         With autoconf-2.53a, it's part of AC_PROG_CC.
87687 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87689         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87690         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87692 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87694         * lib/sig2str.h, lib/sig2str.c: New files.
87695         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87697 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87699         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87700         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87701         of 127, since 64 is the largest conceivable number for ancient
87702         nonstandard hosts.
87703         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87705 2002-04-28  Jim Meyering  <meyering@lucent.com>
87707         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87709 2002-04-24  Jim Meyering  <meyering@lucent.com>
87711         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87712         (jm_PREREQ): Use it.
87714         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87715         mach/mach.h fcntl.h.
87716         Check for this function: setlocale.
87718 2002-04-24  Jim Meyering  <meyering@lucent.com>
87720         * lib/gettext.h: New file, from Gettext.
87721         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87722         (libfetish_a_SOURCES): Add gettext.h.
87724 2002-04-16  Jim Meyering  <meyering@lucent.com>
87726         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87727         ut_pid, ut_id, ut_exit.
87729 2002-04-16  Jim Meyering  <meyering@lucent.com>
87731         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87732         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87733         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87735 2002-04-12  Jim Meyering  <meyering@lucent.com>
87737         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87738         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87739         existence of the getmntinfo function.  Needed for Darwin 5.3.
87741         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87742         This is necessary at least on Darwin 5.3.
87744         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87745         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87746         strnlen.o in the library, and that makes some versions of ranlib
87747         object.
87749 2002-04-12  Jim Meyering  <meyering@lucent.com>
87751         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87753 2002-04-09  Jim Meyering  <meyering@lucent.com>
87755         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87756         to be more precise.  Rather than saying we're checking whether the
87757         function `works', say what we're testing.
87758         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87759         Reported by Bruno Haible.
87761 2002-03-10  Jim Meyering  <meyering@lucent.com>
87763         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87764         Suggestion from Santiago Vila.
87766 2002-03-08  Jim Meyering  <meyering@lucent.com>
87768         * lib/rename.c: Mention that this wrapper is needed also on
87769         mips-dec-ultrix4.4 systems.
87771 2002-03-02  Jim Meyering  <meyering@lucent.com>
87773         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87774         not HAVE_CLOCK_SETTIME.
87776 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87778         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87779         Check for clock_settime.
87781 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87783         * lib/nanosleep.h: Rename to....
87784         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87786         * lib/gettime.c: New file.
87787         * lib/settime.c: New file.
87788         * lib/stime.c: Remove.
87790         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87791         timespec.h.  Remove nanosleep.h.
87793 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87795         * m4/acl.m4: New file.
87796         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87797         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87799 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87801         * lib/acl.c, lib/acl.h: New files.
87802         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87804 2002-02-24  Jim Meyering  <meyering@lucent.com>
87806         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87807         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87808         cause trouble.  Reported by Nelson Beebe.
87810 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87812         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87813         compilers that don't know that xalloc_die never returns.
87815 2002-02-20  Jim Meyering  <meyering@lucent.com>
87817         * lib/getdate.c: Regenerate using bison-1.33.
87819 2002-02-17  Jim Meyering  <meyering@lucent.com>
87821         * config/config.guess (main): Don't use `head -1'; it's no longer
87822         portable. Use `sed 1q' instead.
87824 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87826         * m4/codeset.m4: Upgrade to gettext-0.11.
87827         * m4/gettext.m4: Upgrade to gettext-0.11.
87828         * m4/glibc21.m4: Upgrade to gettext-0.11.
87829         * m4/iconv.m4: Upgrade to gettext-0.11.
87830         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87831         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87832         * m4/lib-ld.m4: New file, from gettext-0.11.
87833         * m4/lib-link.m4: New file, from gettext-0.11.
87834         * m4/lib-prefix.m4: New file, from gettext-0.11.
87835         * m4/progtest.m4: Upgrade to gettext-0.11.
87837 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87839         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87840         (jm_PREREQ): Use it.
87842 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87844         * lib/posixver.c, lib/posixver.h: New files.
87845         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87847 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87848             Bruno Haible  <bruno@clisp.org>
87850         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87851         (fwrite_success_callback): New declaration.
87852         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87853         print_unicode_char. Call failure callback instead of error.
87854         (fwrite_success_callback): New function.
87855         (exit_failure_callback): New function.
87856         (fallback_failure_callback): New function.
87857         (print_unicode_char): Call unicode_to_mb.
87859 2002-01-26  Jim Meyering  <meyering@lucent.com>
87861         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87862         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87864 2002-01-26  Jim Meyering  <meyering@lucent.com>
87866         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87868 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87870         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87872 2002-01-22  Jim Meyering  <meyering@lucent.com>
87874         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87875         Otherwise, some versions of automake would omit the rule that makes
87876         Makefile from Makefile.in.
87878 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87880         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87881         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87882         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87883         (memcoll): Set errno to zero if there is no error.
87885         * lib/quotearg.c (quotearg_buffer_restyled):
87886         Fix bug with quoting buffers containing NUL when backslashing escapes.
87887         This bug was exposed by the other changes in this patch.
87888         (quotearg_n_options): New arg ARGSIZE.
87889         All callers changed.
87890         (quoting_options_from_style): New function.
87891         (quotearg_n_style): Use it.
87892         (quotearg_n_style_mem): New function.
87894         * lib/quotearg.h (quotearg_n_style_mem): New function.
87896 2002-01-19  Jim Meyering  <meyering@lucent.com>
87898         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87899         Remove useless quotes: DF_PROG="df".
87900         * m4/strnlen.m4: New file.
87902 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87904         * lib/backupfile.c (ISDIGIT): Comment fix.
87905         * lib/getdate.y (ISDIGIT): Likewise.
87906         * lib/posixtm.c (ISDIGIT, year): Likewise.
87907         * lib/strverscmp.c (ISDIGIT): Likewise.
87908         * lib/userspec.c (ISDIGIT): Likewise.
87910 2002-01-16  Jim Meyering  <meyering@lucent.com>
87912         * lib/getdate.y: Add three semicolons, each just before a closing
87913         brace. Bison (as of version 1.31) no longer papers over that mistake.
87915 2002-01-05  Jim Meyering  <meyering@lucent.com>
87917         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87919 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87921         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87922         not silently exit merely because the output buffer happens to
87923         have nothing pending.
87925 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87927         See the big note in ../ChangeLog.
87928         * lib/human.c (suffixes): Prefer K to k for 1024.
87929         (generate_suffix_backwards): New function.
87930         (human_readable_inexact): Use it.
87931         * lib/xstrtol.c (__xstrtol): If there is no number but there
87932         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87933         Accept 'K' as well as 'k'.
87935 2001-12-15  Jim Meyering  <meyering@lucent.com>
87937         * lib/regex.h (__restrict_arr): Update from libc.
87939         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87940         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87941         (STREQ): Define.
87943 2001-12-14  Jim Meyering  <meyering@lucent.com>
87945         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87946         Suggestion from Bruno Haible.
87948 2001-12-10  Jim Meyering  <meyering@lucent.com>
87950         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87951         xrealloc, Instead, include "xalloc.h".
87952         (initbuffer): Don't cast xmalloc return value to char*.
87953         (readline): Reword comment.
87954         Don't cast xrealloc return value to char*
87955         Return NULL, not 0.
87957 2001-12-09  Jim Meyering  <meyering@lucent.com>
87959         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87960         about `signed and unsigned type in conditional expression'.
87961         * lib/posixtm.c (posix_time_parse): Likewise.
87963         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87965         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87966         to avoid a pedantic warning.
87968         * lib/getstr.c: Don't include assert.h.
87969         (getstr): Remove warning-evoking assertions.
87970         Return -1 if offset parameter is out of bounds.
87971         Change the type of a local from int to size_t.
87973         * lib/strftime.c (my_strftime_localtime_r): Include this function
87974         definition in the `#if ! HAVE_TM_GMTOFF' block.
87976         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87977         Include xalloc.h instead.
87979 2001-12-02  Jim Meyering  <meyering@lucent.com>
87981         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87982         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87983         included.
87985         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87986         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87988 2001-11-30  Akim Demaille  <akim@epita.fr>
87990         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87991         before being defined.
87993 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87995         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87996         First arg is int, not unsigned.
87997         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87998         (SIZE_MAX, UINT_MAX): New macros.
87999         (quotearg_n_options): Abort if N is negative.
88000         Avoid overflow check on hosts where size_t is 64 bits and int
88001         is 32 bits, as overflow is impossible there.
88002         Fix off-by-one typo that caused unnecessary reallocation.
88004 2001-11-27  Jim Meyering  <meyering@lucent.com>
88006         * lib/tempname.c: Merge with version from libc.
88007         * lib/regex.c: Likewise.
88009         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88010         systems for which STDC_HEADERS is 0, it was not included, resulting in
88011         a warning about an integer-to-pointer conversion problem with getenv.
88012         Reported by Volker Borchert.
88014 2001-11-26  Jim Meyering  <meyering@lucent.com>
88016         * lib/gtod.h: Remove file.
88017         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88018         * lib/gettimeofday.c: Don't include gtod.h.
88019         (GTOD_init): Remove function.
88020         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88021         Suggestion from Volker Borchert.
88023 2001-11-23  Jim Meyering  <meyering@lucent.com>
88025         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88026         it.
88027         * lib/hash.c (struct hash_table): Define it here instead.
88029 2001-11-22  Jim Meyering  <meyering@lucent.com>
88031         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88033 2001-11-20  Jim Meyering  <meyering@lucent.com>
88035         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88036         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88038 2001-11-19  Jim Meyering  <meyering@lucent.com>
88040         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88041         directory.  Use "conftestXXXXXX" as the template.
88042         Suggestion from Paul Eggert.
88044         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88045         immediately, so the test doesn't mistakenly hit the max-open-files
88046         limit.
88048 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88050         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88051         (TEMPORARIES): New macro.
88052         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88053         removes an artificial limitation (e.g. HP-UX 10.20, where
88054         TMP_MAX is 17576).
88056 2001-11-18  Jim Meyering  <meyering@lucent.com>
88058         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88060 2001-11-18  Jim Meyering  <meyering@lucent.com>
88062         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88063         on SunOS 4.
88065         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88066         files will be created before anything else.
88068 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88070         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88071         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88073 2001-11-17  Jim Meyering  <meyering@lucent.com>
88075         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88076         Prompted by a report from Bob Proulx.
88078         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88079         Instead, require UTILS_FUNC_MKSTEMP.
88081 2001-11-17  Jim Meyering  <meyering@lucent.com>
88083         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88084         Now, that's done as part of AC_FUNC_STRTOD.
88086 2001-11-17  Jim Meyering  <meyering@lucent.com>
88088         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88089         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88090         rather than group writable.  Patch by Juan F. Codagnone.
88092         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88093         xrealloc, Instead, include "xalloc.h".
88095         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88096         Remove explicit declarations of xmalloc, xrealloc,
88097         and xstrdup.  Instead, include "xalloc.h".
88099         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88100         unlocked-io.h.
88101         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88102         Likewise.
88103         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88105         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88106         Reported by Padraig Brady.
88108         * lib/mkstemp.c: #undef mkstemp.
88109         Include config.h.
88110         (rpl_mkstemp): Rename from mkstemp.
88111         Protoize.
88113 2001-11-16  Jim Meyering  <meyering@lucent.com>
88115         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88116         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88117         determine the amount of total physical memory, use pstat_getstatic.
88118         HPUX-11 doesn't define _SC_PHYS_PAGES.
88119         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88120         If sysconf couldn't be used to determine the amount of available
88121         physical memory, use both pstat_getstatic and pstat_getdynamic.
88122         Based on a patch from Bob Proulx.
88124 2001-11-10  Jim Meyering  <meyering@lucent.com>
88126         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88127         (jm_PREREQ): Use it.
88129 2001-11-09  Jim Meyering  <meyering@lucent.com>
88131         * m4/jm-macros.m4: Require autoconf-2.52f.
88132         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88133         Use these AC_-prefixed names, not the AM_-prefixed ones.
88135         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88137 2001-11-05  Jim Meyering  <meyering@lucent.com>
88139         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88141 2001-11-04  Jim Meyering  <meyering@lucent.com>
88143         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88144         $DEFS.
88146 2001-11-03  Jim Meyering  <meyering@lucent.com>
88148         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88149         of AC_DEFUN.
88151         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88152         know the name of the variable in the macro definition.
88154 2001-11-03  Jim Meyering  <meyering@lucent.com>
88156         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88157         in argmatch_to_argument call.
88159         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88160         argument.
88162         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88163         e.g., a fault due to an attempt to free a NULL pointer.
88165 2001-11-01  Jim Meyering  <meyering@lucent.com>
88167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88168         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88170 2001-11-01  Jim Meyering  <meyering@lucent.com>
88172         * lib/dirfd.c, lib/dirfd.h: New files.
88173         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88175         * lib/hash.c (hash_print) [TESTING]: Clean up.
88177 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88179         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88180         to avoid a warning if -Wall.
88182 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88184         * README: New file
88185         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88186         (per RMS's instructions, this is now the canonical source)
88187         * lgpl/, gpl/: New directories.
88189 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88191         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88193 2001-10-21  Jim Meyering  <meyering@lucent.com>
88195         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88196         this code would end up calling gettext even in packages built
88197         with --disable-nls.
88198         * lib/getopt.c (_): Likewise.
88199         * lib/regex.c (_): Likewise.
88201 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88203         * m4/error.m4 (jm_PREREQ_ERROR):
88204         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88205         AC_FUNC_STRERROR_R does that.
88206         Check for strerror declaration.
88208         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88209         are supposed to have them these days.
88210         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88211         Merge changes from latest Autoconf CVS.
88212         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88213         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88214         POSIX decided to standardize on the int flavor of strerror_r.
88216 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88218         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88219         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88220         Use strerror_r that is only a macro, even if it is not a function.
88221         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88222         (private_strerror): Use prototypes, not old-style function definition.
88223         (print_errno_message): New function.
88224         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88225         char*-flavored one.
88226         (error_tail, error, error_at_line): Use it.
88228 2001-10-11  Jim Meyering  <meyering@lucent.com>
88230         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88231         and quote_n (1, ... to avoid clobbering a buffer.
88233 2001-10-05  Jim Meyering  <meyering@lucent.com>
88235         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88236         hash-pjw.h.
88237         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88238         * lib/hash-pjw.h: New file.
88240 2001-09-30  Jim Meyering  <meyering@lucent.com>
88242         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88243         `struct fsstat' has the `f_fstypename' member.
88244         Use that to define FS_TYPE, which is now used to make
88245         the getfsstat link test tighter.
88247 2001-09-30  Jim Meyering  <meyering@lucent.com>
88249         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88250         Include <sys/ucred.h>, for Apple Darwin.
88251         Include sys/mount.h and sys/fs_types.h only if available.
88252         (FS_TYPE): Define.
88253         (read_filesystem_list): Use FS_TYPE.
88255 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88257         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88258         a boolean context.
88260 2001-09-29  Jim Meyering  <meyering@lucent.com>
88262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88263         [one-argument getmntent function]): Include stdio.h before mntent.h.
88264         SunOS 4.1.x needs it for the declaration of `FILE'.
88265         Patch by Volker Borchert.
88267         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88268         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88269         sys/fs_types.h, and make the link-test for getfsstat guard #include
88270         directives with appropriate #if HAVE_*_H tests so that we can
88271         detect getfsstat on Apple Darwin1.3.7 systems.
88272         Reported by Nelson Beebe.
88273         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88275 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88277         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88278         #defines strtoimax.  Also treat the other strto* functions
88279         like strtoimax.
88281         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88282         Check for strtoul and strtoumax,
88283         as those declarations are made even in the signed case.
88284         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88285         Likewise, for strtol and strtoimax.
88287 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88289         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88290         #defines strtoimax.  Also treat the other strto* functions
88291         like strtoimax.
88293         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88294         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88295         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88297 2001-09-26  Jim Meyering  <meyering@lucent.com>
88299         Most macros in unlocked-io.h had the wrong number of arguments.
88300         * lib/gen-uio: New script.
88301         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88302         * lib/unlocked-io.hin: Remove file.
88303         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88304         rather than trying to embed it here.
88305         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88306         Reported by Padraig Brady.
88308 2001-09-25  Volker Borchert  <bt@teknon.de>
88310         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88311         `result'.
88313 2001-09-24  Jim Meyering  <meyering@lucent.com>
88315         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88317 2001-09-23  Jim Meyering  <meyering@lucent.com>
88319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88320         instead of the mere test for existence of mntent.h.  The latter
88321         would get a false-positive on AIX 3.4 systems.
88322         In the outer getmntent if-block, don't die if neither of the getmntent
88323         tests succeeds.  Instead, just fall through and continue with the
88324         remaining tests.
88326 2001-09-23  Jim Meyering  <meyering@lucent.com>
88328         * lib/mountlist.c: Remove useless parentheses in #if directives.
88329         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88330         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88332 2001-09-22  Jim Meyering  <meyering@lucent.com>
88334         * m4/gettext.m4: New file.  From gettext.
88335         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88336         * m4/progtest.m4: Likewise
88337         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88338         * m4/glibc21.m4: Likewise.
88340         * m4/libintl.m4: Remove.  No longer used.
88342 2001-09-22  Jim Meyering  <meyering@lucent.com>
88344         * lib/localcharset.c: Update from latest gettext.
88345         * lib/config.charset: Likewise.
88347 2001-09-20  Jim Meyering  <meyering@lucent.com>
88349         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88350         strtoimax.
88351         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88352         strtoumax.
88354 2001-09-20  Jim Meyering  <meyering@lucent.com>
88356         * lib/xstrtol.c (strtoimax): Guard declaration with
88357         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88358         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88359         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88360         (strtoumax): Likewise, for completeness (it wasn't necessary).
88362 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88364         * lib/strtoimax.c (HAVE_LONG_LONG):
88365         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88366         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88367         to work around bug in IBM C compiler.
88369 2001-09-17  Jim Meyering  <meyering@lucent.com>
88371         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88372         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88373         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88374         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88375         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88376         whenever the right hand side need not be expanded by the shell.
88378 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88380         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88381         library.  It's not correct, as some older glibcs are buggy.
88382         fnmatch wasn't fixed until glibc 2.2.
88384         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88385         special shell magic here.
88387 2001-09-16  Jim Meyering  <meyering@lucent.com>
88389         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88390         * m4/jm-macros.m4: Require it.
88392 2001-09-16  Jim Meyering  <meyering@lucent.com>
88394         * lib/mkdir.c: New file.
88396 2001-09-15  Jim Meyering  <meyering@lucent.com>
88398         * m4/jm-macros.m4: Check for help2man.
88400 2001-09-11  Jim Meyering  <meyering@lucent.com>
88402         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88403         The body, by Paul Eggert, was moved here from configure.in.
88404         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88406 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88408         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88409         (jm_PREREQ): Use it.
88411 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88413         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88414         Use ssize_t, not int, to store result of readlink.
88415         Check for ssize_t overflow as well as size_t overflow,
88416         as POSIX says the result of readlink is implementation-defined
88417         when ssize_t overflows.
88418         Remove unnecessary cast to char*.
88419         Use free+malloc instead of realloc, as the storage doesn't need
88420         to be preserved and it's clearer and can be more efficient that way.
88421         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88422         * lib/xreadlink.h (xreadlink): Update prototype.
88424 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88426         * lib/xgetcwd.c: Revert some of the previous change; intead,
88427         fix the HAVE_GETCWD_NULL code to behave more like the
88428         !HAVE_GETCWD_NULL code used to.
88430         Include "xalloc.h".
88431         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88432         invoke xalloc_die.
88434 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88436         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88437         sys/param.h, as pathmax.h includes them.
88439 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88441         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88442         (jm_PREREQ_XGETCWD): New macro.
88444         * m4/getcwd.m4: New file.
88446 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88448         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88449         like the HAVE_GETCWD_NULL code.
88450         Include pathmax.h if not HAVE_GETCWD.
88451         Do not include xalloc.h.
88452         (INITIAL_BUFFER_SIZE): New symbol.
88453         Do not use xmalloc / xrealloc, since the caller is responsible for
88454         handling errors.  Preserve errno around `free' during failure.
88455         Do not overrun buffer when using getwd.
88457 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88459         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88460         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88461         getcwd (NULL, 0).
88463 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88465         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88466         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88467         spotted by Jim Meyering.
88469 2001-09-03  Jim Meyering  <meyering@lucent.com>
88471         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88472         failure.
88474 2001-09-02  Jim Meyering  <meyering@lucent.com>
88476         * lib/error.c: Update from GNU libc.
88478 2001-09-01  Jim Meyering  <meyering@lucent.com>
88480         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88481         Used by df.
88483 2001-09-01  Jim Meyering  <meyering@lucent.com>
88485         * lib/xreadlink.c: New file.
88486         * lib/xreadlink.h: New file.
88487         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88488         xreadlink.h.
88490         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88491         doesn't conflict with sparc Solaris 7's definition in
88492         /usr/include/sys/int_types.h.
88494         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88495         files.
88496         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88497         and strncasecmp as r-values.  Unixware didn't have declarations.
88499 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88501         * lib/xstrtol.h: Add copyright notice.
88502         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88503         LONGINT_INVALID_SUFFIX_CHAR.
88505 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88507         * lib/xstrtol.c (strtoimax): New decl.
88509 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88511         * lib/xgetcwd.c: Don't include pathmax.h.
88512         Include stdlib.h and unistd.h if available.
88513         Include xalloc.h.
88514         (xmalloc, xstrdup, free): Remove decls.
88515         (xgetcwd): Don't assume sizes fit in unsigned.
88516         Check for overflow when computing sizes.
88517         Simplify reallocation code.
88519 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88521         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88522         a directory's st_size can have an arbitrary value, so the old
88523         usage could waste an arbitrary amount of memory.  All uses
88524         changed.
88525         * lib/savedir.h: Update prototype.
88527 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88529         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88531         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88532         old strtoimax.c.
88534         Also, make the following further changes to make this file's
88535         configuration more similar to that of strtol.c:
88536         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88537         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88538         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88539         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88540         changed to signed values.
88542         And make the following changes as well:
88543         Fix copyright notice, as 1999 was missing.
88544         (verify): New macro.
88545         (strtoimax): Check sizes at compile-time, not run-time.
88546         Prefer strtol to strtoll if both work.
88547         (main): Remove; it was not that useful and was a pain to maintain.
88549         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88551 2001-08-31  Jim Meyering  <meyering@lucent.com>
88553         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88554         Use an initial, malloc'd, buffer of length 128 rather than
88555         a statically allocated one of length 1024.
88557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88559         Simplify code, partly by assuming autoconf 2.52 semantics.
88561         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88563         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88564         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88565         All uses removed.
88566         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88567         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88568         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88569         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88570         jm_AC_HEADER_INTTYPES_H.
88571         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88573         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88575         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88576         Quote first arg of AC_DEFUN.
88577         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88578         since they are needed to parse the include file even if we need
88579         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88580         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88581         but with opposite signedness.
88583 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88585         Merge 'exclude' changes from tar 1.13.22.
88586         This fixes one or two unlikely storage allocation overflow bugs,
88587         but doesn't change user-visible behavior otherwise.
88589 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88591         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88592         (jm_PREREQ_EXCLUDE): New macro.
88594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88596         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88597         tm to be declared.
88599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88601         * lib/hash.c: Remove '2001' from copyright notice.
88603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88605         * lib/full-write.h: New file.
88606         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88607         * lib/full-write.c: Correct credits, as cccp.c no longer
88608         exists and anyway it was so heavily changed from the old cccp
88609         code as to be unrecognizable.  Include full-write.h.
88610         (full_write): Return size_t, with short writes meaning failure.
88611         All callers changed.  This fixes a bug with large buffers
88612         on 64-bit hosts.
88613         * lib/utime.c: Include full-write.h.
88615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88617         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88618         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88619         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88620         Include if available.
88621         (<xalloc.h>): Include
88622         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88623         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88624         collide with FNM macros.
88625         (struct patopts): New struct.
88626         (struct exclude): Use it, as exclude patterns now come with options.
88627         (new_exclude): Support above changes.
88628         (new_exclude, add_exclude_file):
88629         Initial size must now be a power of two to simplify overflow checking.
88630         (free_exclude, fnmatch_no_wildcards): New function.
88631         (excluded_filename): No longer requires options arg, as the options
88632         are determined by add_exclude.  Now returns bool, not int.
88633         (excluded_filename, add_exclude):
88634         Add support for the fancy new exclusion options.
88635         (add_exclude, add_exclude_file): Now takes int options arg.
88636         Check for arithmetic overflow when computing sizes.
88637         (add_exclude_file): xrealloc might modify errno, so don't
88638         realloc until after errno might be used.
88640         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88641         New macros.
88642         (free_exclude): New decl.
88643         (add_exclude, add_exclude_file): Now takes int options arg.
88644         (excluded_filename): No longer requires options arg, as the options
88645         are determined by add_exclude.  Now returns bool, not int.
88647 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88649         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88651 2001-08-27  Jim Meyering  <meyering@lucent.com>
88653         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88655         * lib/version-etc.c (N_): Remove definition.
88656         Revert most of last change.
88657         Instead, simply don't mark the `Copyright...' string for translation.
88658         Based on advice from Paul Eggert.
88660         * lib/strtoxmax.c: Tweak comment.
88662 2001-08-26  Jim Meyering  <meyering@lucent.com>
88664         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88666         * m4/xstrtoimax.m4: New file.
88667         * m4/xstrtoumax.m4: Add comments explaining why we
88668         AC_REPLACE_FUNCS(strtol).
88670 2001-08-26  Jim Meyering  <meyering@lucent.com>
88672         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88673         of copyright with `%s' so translators don't get an untranslated
88674         message in 2002.
88675         (COPYRIGHT_YEAR): Define.
88676         (version_etc): Use fprintf rather than fputs.
88677         Suggestion from Ulrich Drepper.
88679         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88681         * lib/strtoll.c: New file, from GNU libc.
88682         * lib/xstrtoimax.c: New file.
88684         * lib/xstrtol.h: Add xstrtoimax.
88685         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88686         * lib/strtoimax.c: New file.  Likewise, but first define
88687         STRTOUXMAX_SIGNED.
88689         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88690         ...
88691         * lib/strtoxmax.c: ... then renamed to this.
88693 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88695         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88696         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88697         (jm_AC_TYPE_INTMAX_T): New macro.
88698         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88700         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88702         * m4/longlong.m4: Renamed from ulonglong.m4.
88703         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88704         * m4/uintmax_t.m4: Removed.
88706 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88708         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88709         Port to Solaris 8, where 'sed' requires a space after the 'r'
88710         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88711         Redirect output to $tmp just once.
88713 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88715         * lib/addext.c (<errno.h>): Include.
88716         (errno): Declare if not defined.
88717         (addext): Work correctly when pathconf returns -1 and leaves
88718         errno alone because there is no limit.  Also, work even if
88719         pathconf returns a value greater than SIZE_MAX.
88721 2001-08-12  Jim Meyering  <meyering@lucent.com>
88723         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88724         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88725         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88726         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88727         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88728         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88729         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88730         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88731         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88732         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88733         utime.m4, utimes.m4, xstrtoumax.m4:
88734         Quote the first argument in each use of AC_DEFUN.
88736 2001-08-12  Jim Meyering  <meyering@lucent.com>
88738         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88739         Simply `return getcwd (NULL, 0);'.
88740         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88741         Use 1300 as initial value for length, not PATH_MAX.
88743         * lib/pathmax.h: Clean up cpp syntax.
88745 2001-08-12  Jim Meyering  <meyering@lucent.com>
88747         * lib/gettimeofday.c: New file.
88748         * lib/gtod.h: New file.
88749         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88751 2001-08-05  Jim Meyering  <meyering@lucent.com>
88753         * m4/jm-macros.m4: Require autoconf-2.52.
88755 2001-08-04  Jim Meyering  <meyering@lucent.com>
88757         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88758         stmt, to get in sync with glibc.
88760 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88762         The following changes are from gettext 0.10.39 as maintained by
88763         Bruno Haible.
88765         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88766         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88767         with inverted sense.  All uses changed.
88769         * lib/mbswidth.c: Don't include <limits.h>.
88770         Include <stdlib.h> and <string.h> unconditionally.
88771         (iswcntrl, mbsinit, ISCNTRL): New macros.
88772         (mbsnwidth): Use K&R style function declarations.
88773         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88774         can optimize it when MB_CUR_MAX == 1.
88775         The width of control characters is zero, not 1.
88777 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88779         The following changes are from gettext 0.10.39 as maintained by
88780         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88782         * m4/codeset.m4: Upgrade to serial AM1.
88783         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88784         all uses changed.  Quote first arg of AC_DEFUN.
88785         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88787         * m4/iconv.m4: Upgrade to serial AM2.
88788         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88789         Add --with-libconv-prefix.
88790         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88791         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88792         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88793         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88794         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88796         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88797         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88798         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88799         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88800         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88801         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88802         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88803         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88804         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88806         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88807         string.h any more.
88809         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88810         not the default value.
88812         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88813         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88814         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88815         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88816         Also check for iswcntrl, used for wcwidth fallback.
88817         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88818         to Autoconf 2.13.
88820 2001-08-03  Jim Meyering  <meyering@lucent.com>
88822         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88823         as it was in the original.  Reported by Paul Eggert.
88825 2001-07-16  Jim Meyering  <meyering@lucent.com>
88827         * m4/gettimeofday.m4: New file.
88828         Prompted by a report from Bernhard Baehr.
88830 2001-07-15  Jim Meyering  <meyering@lucent.com>
88832         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88833         stuff. Now it's in ../Makefile.cfg.
88835 2001-07-15  Jim Meyering  <meyering@lucent.com>
88837         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88838         (BUILT_SOURCES): Add unlocked-io.h.
88839         (io_functions): Define.
88840         (unlocked-io.h): New rule.
88841         (DISTCLEANFILES): Add unlocked-io.h.
88842         (all-local): Depend on unlocked-io.h, to ensure it is created.
88844         * lib/unlocked-io.hin: New file
88846         * lib/regex.c: Update from glibc.
88848 2001-07-05  Jim Meyering  <meyering@lucent.com>
88850         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88851         recommendation.
88852         (libfetish_a_SOURCES): Put all .h files here instead.
88853         Remove a thus-exposed (better checks in automake) duplicate and
88854         two unnecessary .h files.
88856 2001-07-04  Jim Meyering  <meyering@lucent.com>
88858         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88859         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88860         distcheck failure.
88862 2001-07-02  Jim Meyering  <meyering@lucent.com>
88864         The following changes were prompted by suggestions from Bruno Haible.
88866         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88867         is now generated.
88868         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88869         definition of EXTRA_DIST.
88870         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88871         ensure that the generated file is created/updated whenever the list
88872         of $(unlocked_functions) is changed.
88873         (jm-glibc-io.m4): New rule.
88874         (unlocked-io.h): New rule -- currently unused.
88876 2001-06-24  Jim Meyering  <meyering@lucent.com>
88878         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88879         unmatched right bracket, rather than kludging it with an extra,
88880         falsely-matching quote in a comment.  Patch by Akim Demaille.
88882 2001-06-11  Jim Meyering  <meyering@lucent.com>
88884         * lib/regex.c: Update from GNU libc.
88886 2001-05-27  Jim Meyering  <meyering@lucent.com>
88888         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88889         Check for ut_type in struct utmp.
88891 2001-05-27  Jim Meyering  <meyering@lucent.com>
88893         * lib/readutmp.h (UT_TYPE): Define.
88895 2001-05-24  Jim Meyering  <meyering@lucent.com>
88897         * lib/argmatch.c: Include "quote.h".
88898         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88899         quote function.  Reported by Göran Uddeborg.
88901 2001-05-22  Jim Meyering  <meyering@lucent.com>
88903         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88904         now that we use the package-supplied version unconditionally.
88905         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88907 2001-05-21  Jim Meyering  <meyering@lucent.com>
88909         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88910         shell syntax errors.
88912 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88914         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88916 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88918         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88919         Don't bother to check library strftime, since
88920         we'll be using our own my_strftime function anyway.
88921         Define my_strftime instead of strftime.
88923 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88925         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88926         which is not yet declared.
88928 2001-05-15  Jim Meyering  <meyering@lucent.com>
88930         * m4/regex.m4: Use proper quoting so brackets appear in the test
88931         program.
88932         Reported by, and with help from, Bruno Haible.
88934 2001-05-13  Jim Meyering  <meyering@lucent.com>
88936         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88937         undefined.
88939 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88941         dirname code cleanup.  base_name now behaves more compatibly
88942         with POSIX basename when given file names that have trailing
88943         slashes, and similarly for dir_name.  Add new primitives
88944         base_len and dir_len.  Put the directory-name-related decls
88945         into dirname.h.
88947         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88948         * lib/backupfile.c (base_name): Likewise.
88949         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88950         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88951         * lib/makepath.c (strip_trailing_slashes): Likewise.
88952         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88953         ISSLASH): Likewise.
88954         * lib/rename.c (strip_trailing_slashes): Likewise.
88955         * lib/same.c (base_name): Likewise.
88956         * lib/stripslash.c (ISSLASH): Likewise.
88958         * lib/addext.c: Include <dirname.h> after size_t is defined.
88959         * lib/backupfile.c: Likewise.
88961         * lib/addext.c (addext): Use base_len to trim redundant
88962         trailing slashes instead of doing it ourselves.
88963         But do not trim the last slash if it is not redundant.
88965         * lib/backupfile.c (find_backup_file_name,
88966         max_backup_version): Use base_len instead of rolling it ourselves.
88967         Handle the case of "" and (on DOS) "C:" correctly.
88969         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88970         needed. Include <string.h>, <dirname.h>.
88971         (base_name): Allow file names ending in slashes, other than names
88972         that are all slashes.  In this case, return the basename followed
88973         by the slashes.  This is more general, and can be used in places
88974         where the original base_name purposely had an assertion failure.
88975         (base_len): New function.
88977         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88978         Do not include <assert.h>; no longer needed.
88979         Include xalloc.h.
88980         (memrchr): Remove decl.
88981         (dir_name_r): Remove.
88982         (dir_len): Renamed from dirlen.  All callers changed.
88983         Rewrite in terms of base_name, for simplicity and consistency.
88984         (dir_name): Never return NULL.  All callers changed.
88985         Do not include <stdlib.h> in test program; no longer needed.
88986         return 0; is fine for test program.
88988         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88989         New macros.
88990         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88992         * lib/path-concat.c (path_concat): Use base_len to compute
88993         base length, not strlen; this means we cannot rely on memcpy
88994         to null-terminate.
88996         * lib/same.c (STREQ): Remove.
88997         (same_name): Handle the case where the basename ends in trailing '/'.
88999         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89000         a slash was stripped.  Do not strip the last slash after a
89001         file system prefix.
89003 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89005         * lib/Makefile.am (libfetish_a_SOURCES):
89006         Add strftime.c, since we now compile it on all hosts.
89008         * lib/strftime.c (my_strftime):
89009         Define to nstrftime if emacs, but only if my_strftime is not defined.
89010         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89011         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89012         Add one more extra argument: a nanoseconds value.
89013         All uses changed.
89014         (ns): New macro.
89015         (my_strftime function): Add %N format.
89016         (emacs_strftimeu): Renamed from emacs_strftime,
89017         with extra ut argument.
89019 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89021         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89023 2001-04-21  Jim Meyering  <meyering@lucent.com>
89025         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89026         doesn't interfere.
89028 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89030         * m4/ftruncate.m4: Check for chsize.
89031         Link with ftruncate.o unconditionally if ftruncate is missing.
89032         This was required when cross-compiling to i586-mingw32msvc.
89034 2001-04-08  Jim Meyering  <meyering@lucent.com>
89036         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89037         recomputed; that's necessary when the offset spans a DST transition.
89038         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89040 2001-04-02  Jim Meyering  <meyering@lucent.com>
89042         * lib/regex.h, regex.c: Update from GNU libc.
89044 2001-03-24  Jim Meyering  <meyering@lucent.com>
89046         * m4/jm-macros.m4: Require autoconf-2.49d.
89048 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89050         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89052 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89054         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89056 2001-03-17  Jim Meyering  <meyering@lucent.com>
89058         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89059         now that the version in autoconf is equivalent.
89060         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89062         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89063         Suggestion from Akim Demaille.
89065         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89066         (jm_PREREQ_TEMPNAME): New function.
89068 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89070         * lib/tempname.c (uint64_t): Define to uintmax_t if
89071         not defined, and if UINT64_MAX is not defined.
89072         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89073         Reported by John David Anglin.
89075 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89077         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89078         resolve alias if codeset is empty.
89079         * lib/config.charset (BeOS): Use wildcard syntax.
89081 2001-03-13  Jim Meyering  <meyering@lucent.com>
89083         * lib/path-concat.c (path_concat)
89084         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89085         concatenating e.g., `C:' and `foo'.
89086         From Bruno Haible.
89088 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89090         * lib/localcharset.c (locale_charset): Don't use
89091         setlocale(LC_CTYPE,NULL). Don't return NULL.
89092         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89094 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89096         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89097         support for DOS/DJGPP.
89099 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89101         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89102         lacks mkstemp.  Compile our own tempname.c if we compile our own
89103         mkstemp.c, as mkstemp relies on tempname.
89105 2001-03-01  Jim Meyering  <meyering@lucent.com>
89107         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89108         AH_VERBATIM really does output its argument verbatim.
89110 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89112         * lib/Makefile.am (libfetish_a_SOURCES):
89113         Add dup-safer.c, fopen-safer.c.
89114         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89116         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89117         * lib/unistd-safer.h: New files.
89119 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89121         The mkstemp replacement is taken from glibc 2.2.2, with some
89122         portability fixes for use outside glibc, as follows:
89124         * lib/tempname.c (struct_stat64): New macro.
89125         (direxists, __gen_tempname): Use it.
89126         This avoids a portability problem with Solaris 8.
89128         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89129         (<stddef.h>, <stdint.h>, <string.h>):
89130         Include only if STDC_HEADERS || _LIBC.
89131         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89132         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89133         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89134         (__set_errno): Define this macro if <errno.h> doesn't.
89135         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89136         Define these macros if <stdio.h> doesn't.
89137         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89138         Define these macros if <sys/stat.h>
89139         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89140         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89141         __xstat64): Define if not _LIBC.
89142         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89143         (__gen_tempname): Invoke gettimeofday only if
89144         HAVE_GETTIMEOFDAY || _LIBC;
89145         otherwise, fall back on plain "time".
89146         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89148         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89150         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89152 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89154         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89156 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89158         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89159         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89160         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89161         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89163 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89165         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89166         Remove workaround macros for hosts that have mbrtowc but not
89167         mbstate_t, as we now insist on proper declarations for both
89168         before using mbrtowc.
89170 2001-02-17  Jim Meyering  <meyering@lucent.com>
89172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89173         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89174         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89175         UnixWare 7.1.1.
89177         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89178         rather than AC_CACHE_VAL.
89180 2001-02-17  Jim Meyering  <meyering@lucent.com>
89182         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89183         around included file name.
89185         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89187         * lib/strftime.c: Update from GNU libc (the only changes were to
89188         comments).
89190 2001-02-17  Jim Meyering  <meyering@lucent.com>
89192         * lib/regex.c: Update from libc.
89194 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89196         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89197         clash.
89199 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89201         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89202         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89203         Reported by Mark Hounschell via Paul Eggert.
89205 2001-02-07  Jim Meyering  <meyering@lucent.com>
89207         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89209 2001-02-05  Jim Meyering  <meyering@lucent.com>
89211         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89212         it includes the patch required for `large file' support with at least
89213         HP-UX's 10.20 /bin/cc.
89215 2001-02-03  Jim Meyering  <meyering@lucent.com>
89217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89218         AS_IF, now that it works once again (mysteriously).
89219         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89221 2001-01-30  Jim Meyering  <meyering@lucent.com>
89223         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89224         * m4/chown.m4: Rename conftestchown to conftest.chown.
89225         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89226         s/conftestdir2/conftest.d2/.
89227         * m4/utimes.m4: s/conftestdata/conftest.data/
89228         Inspired by Pavel Roskin's change in autoconf.
89230 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89232         * lib/config.charset: Update for FreeBSD 4.2.
89234 2001-01-27  Jim Meyering  <meyering@lucent.com>
89236         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89237         a use of AS_IF.
89238         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89240 2001-01-26  Jim Meyering  <meyering@lucent.com>
89242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89243         quotearg.c includes it.
89245 2001-01-26  Jim Meyering  <meyering@lucent.com>
89247         * lib/quotearg.c: Include stddef.h.
89248         * lib/quote.c: Include stddef.h.
89249         Reported by Axel Kittenberger.
89251         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89252         line in double quotes so that it evokes a better diagnostic.
89253         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89254         Reported by Axel Kittenberger.
89256 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89258         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89259         as if it was a `charset'.
89261 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89263         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89264         has const.
89266 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89268         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89269         to avoid a warning.  Add back 'const' to inptr.
89271 2001-01-20  Jim Meyering  <meyering@lucent.com>
89273         Be sure that headers are checked before used in code compiled
89274         for the type checks.
89275         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89276         In place of that, invoke jm_CHECK_ALL_TYPES.
89277         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89278         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89279         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89280         The check for ssize_t was mistakenly run before the test for unistd.h.
89282         The configure-time check for stdbool.h was missing.
89283         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89284         (jm_PREREQ_HASH): New function.
89286 2001-01-17  Jim Meyering  <meyering@lucent.com>
89288         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89289         for autoconf-2.49c.
89290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89292 2001-01-16  Jim Meyering  <meyering@lucent.com>
89294         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89295         From Bruno Haible.
89297 2001-01-14  Jim Meyering  <meyering@lucent.com>
89299         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89300         foo and bar.  Create conftestdir/ in the script, not in the C code.
89301         Remove directories in the script, not in the C code.
89302         Remove conftestdir{,2} before trying to create the directory.
89303         Make the entire configure script fail if the mkdir fails.
89305 2001-01-14  Jim Meyering  <meyering@lucent.com>
89307         * lib/rename.c: New file.  From Volker Borchert.
89308         Include stdlib.h, string.h or strings.h, and xalloc.h.
89309         Use strip_trailing_slashes rather than open-coding it.
89311 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89313         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89315 2001-01-03  Jim Meyering  <meyering@lucent.com>
89317         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89318         of local `inptr' to avoid warning with some system declarations of
89319         iconv.
89321 2001-01-02  Volker Borchert  <bt@teknon.de>
89323         * m4/rename.m4: New file.
89324         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89326 2001-01-01  Jim Meyering  <meyering@lucent.com>
89328         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89329         even on systems with utmpx.h.  It's necessary for the declaration of
89330         utmp's ut_user member.  Reported by Andreas Jaeger.
89332         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89333         available. They are required for the declarations of getgrgid and
89334         getpwuid resp.
89335         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89336         Reported by Andreas Jaeger.
89338 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89340         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89341         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89342         so `make install' also works in VPATH builds.
89344 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89346         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89347         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89348         can be used in subdirectories.
89350 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89352         * lib/modechange.c: Do not assume that mode_t uses the
89353         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89354         the other-execute bit of FOO even if S_IXOTH != 1.
89356         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89357         WOTH, XOTH, ALLM): New macros.
89358         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89359          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89360         Use them.
89361         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89362         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89363         (mode_compile):
89364         No need to use uintmax_t; unsigned long is long enough.
89365         Don't bother to get suffix since we don't use it.
89367 2000-12-26  Jim Meyering  <meyering@lucent.com>
89369         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89370         better with autoheader.
89372 2000-12-24  Jim Meyering  <meyering@lucent.com>
89374         * lib/hash.c (is_prime): Return explicit boolean values.
89375         (hash_get_first): Return NULL to appease Irix5.6's 89.
89376         Reported by Nelson Beebe.
89378 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89380         * lib/localcharset.c (locale_charset): Add support for Win32.
89382 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89384         * lib/physmem.h, lib/physmem.c: New files.
89386         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89387         (noinst_HEADERS): Add physmem.h.
89389         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89390         't' for compatibility with Solaris 8 sort.
89392 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89394         * lib/config.charset: Add support for BeOS.
89396 2000-12-17  Jim Meyering  <meyering@lucent.com>
89398         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89399         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89401 2000-12-16  Jim Meyering  <meyering@lucent.com>
89403         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89404         N and M) would have treated it like `chown N:N FILE'.
89406         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89408 2000-12-16  Jim Meyering  <meyering@lucent.com>
89410         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89411         SHELLS_FILE to a file name that's useful on djgpp systems.
89412         Include stdlib.h.
89413         (ADDITIONAL_DEFAULT_SHELLS): Define.
89414         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89415         Based mostly on a patch from Prashant TR.
89417 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89419         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89420         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89421         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89423 2000-12-08  Andreas Schwab  <schwab@suse.de>
89425         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89426         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89428 2000-12-07  Jim Meyering  <meyering@lucent.com>
89430         * lib/stripslash.c (ISSLASH): Define.
89431         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89432         `/'.
89433         From Prashant TR.
89435         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89436         (dir_name_r): Declare this function as static.
89437         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89438         manifest itself on a name containing a mix of slashes and
89439         backslashes.
89440         Make this function work with names starting with a DOS-style
89441         drive letter and colon prefix.
89442         (dir_name): Append `.' if necessary.
89443         Based mostly on patches from Prashant TR and Eli Zaretskii.
89445         * lib/dirname.h (dir_name_r): Remove prototype.
89447 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89449         * m4/off_t-format.m4: Remove this file.
89450         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89452 2000-12-06  Jim Meyering  <meyering@lucent.com>
89454         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89455         replacement strtoull, we may well need the replacement strtoul, too.
89456         Check for declarations of strtoul and strtoull.
89457         Check for strtol.  Mainly as a cue to cause automake to include
89458         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89459         Check for limits.h -- strtol.c needs it.
89461 2000-12-05  Jim Meyering  <meyering@lucent.com>
89463         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89465 2000-12-04  Jim Meyering  <meyering@lucent.com>
89467         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89468         Also include memory.h, stdlib.h, unistd.h if appropriate.
89469         Reported by Andreas Jaeger (conflicting declaration of malloc).
89471 2000-12-02  Jim Meyering  <meyering@lucent.com>
89473         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89474         * m4/jm-macros.m4 (jm_MACROS): require it.
89476 2000-12-02  Jim Meyering  <meyering@lucent.com>
89478         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89480 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89482         * lib/memrchr.c: Include <config.h> before any system include file.
89484 2000-11-30  Jim Meyering  <meyering@lucent.com>
89486         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89488 2000-11-30  Jim Meyering  <meyering@lucent.com>
89490         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89492 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89494         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89496 2000-11-26  Jim Meyering  <meyering@lucent.com>
89498         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89500 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89502         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89503         size of (size_t) -1; it's not portable.
89505 2000-11-17  Jim Meyering  <meyering@lucent.com>
89507         * lib/strstr.c: Update from GNU libc.
89509 2000-11-17  Akim Demaille  <akim@epita.fr>
89511         * lib/obstack.h: Formatting changes.
89512         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89513         prevent type checking.
89514         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89515         cast the value to (void *): assigning a `foo *' to a `void *'
89516         variable is valid.
89517         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89519 2000-11-16  Jim Meyering  <meyering@lucent.com>
89521         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89523 2000-11-11  Jim Meyering  <meyering@lucent.com>
89525         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89527 2000-11-10  Jim Meyering  <meyering@lucent.com>
89529         * lib/obstack.h: Update from GNU libc.
89530         * lib/obstack.c: Likewise.
89532 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89534         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89536 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89538         * lib/getusershell.c (setusershell): Use rewind rather than
89539         fseek/fseeko, to avoid configuration hassles with fseeko.
89540         Don't bother opening SHELLS_FILE if shellstream is NULL;
89541         it's not necessary.
89543 2000-11-05  Jim Meyering  <meyering@lucent.com>
89545         * lib/makepath.h (make_dir): Declare.
89546         * lib/makepath.c (make_dir): Remove `static' attribute.
89547         Tweak a comment.
89549 2000-11-04  Jim Meyering  <meyering@lucent.com>
89551         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89553 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89555         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89556         last one in a bucket, advance to the next bucket.
89558 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89560         * lib/fnmatch.c: Do not comment out all the code if we are using
89561         the GNU C library, because in some cases we are replacing buggy
89562         code in the GNU C library itself.
89564 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89566         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89567         (regex_compile): Catch bogus \(\1\).
89569 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89571         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89572         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89573         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89575 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89577         * lib/error.h, getline.h, modechange.h:
89578         Remove "2000" from Copyright line, as the file hasn't been
89579         changed this year other than in the copyright notice.
89581         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89582         was changed this year.
89584 2000-10-29  Jim Meyering  <meyering@lucent.com>
89586         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89587         renaming.
89588         * m4/ls-mntd-fs.m4: Likewise
89590 2000-10-29  Jim Meyering  <meyering@lucent.com>
89592         * lib/xstat.in: Fix grammar in comment.
89594 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89596         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89597         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89598         doesn't define __restrict_arr.
89600 2000-10-28  Jim Meyering  <meyering@lucent.com>
89602         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89603         (jm_PREREQ_MEMCHR): New function.
89605 2000-10-28  Jim Meyering  <meyering@lucent.com>
89607         * lib/memchr.c: Update from libc.
89608         Adjust for portability:
89609         [HAVE_STDLIB_H]: Include stdlib.h.
89610         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89611         Undef __memchr, too.
89612         [!weak_alias]: Define __memchr to memchr.
89614         * lib/regex.c: Update from libc.
89615         * lib/regex.h: Likewise.
89616         * lib/getopt1.c: Likewise.
89617         * lib/memcmp.c: Likewise.
89619         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89620         Avoid using fseek, when possible -- it's broken by design.
89621         Patch by Ulrich Drepper.
89623 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89625         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89626         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89627         Giving in to popular pressure to shut up the compiler with casts.
89629 2000-10-26  Jim Meyering  <meyering@lucent.com>
89631         * lib/strftime.c: Update from libc.
89633 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89635         * regex.c: More `unsigned char' -> `re_char' changes.
89636         Also change several `int' into `re_wchar_t'.
89637         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89638         (PUSH_FAILURE_POINTER): Don't cast any more.
89639         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89640         We want GCC to complain, since this piece of code makes
89641         re_match non-reentrant, which *should* be fixed.
89642         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89643         (EXTEND_BUFFER): Use RETALLOC.
89644         (SET_LIST_BIT): Don't cast.
89645         (re_wchar_t): New type.
89646         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89647         that those two functions will always properly return.
89648         (IMMEDIATE_QUIT_CHECK): Cast to void.
89649         (analyse_first): Use recursion rather than an explicit stack.
89650         (re_compile_fastmap): Can't fail anymore.
89651         (re_search_2): Don't check re_compile_fastmap for failure.
89652         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89653         Now also sets the new value (passed in a new argument).
89654         (re_match_2_internal): Use it.
89655         Also, use a new var `reg' of type size_t when looping through regs
89656         rather than reuse the inappropriate `mcnt'.
89658 2000-10-25  Jim Meyering  <meyering@lucent.com>
89660         * lib/obstack.c: Update from libc.
89662 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89664         * regex.c (regex_compile): Change the way of handling a range from
89665         a char less than 256 to a char not less than 256.
89667 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89669         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89670         NT-Emacs only.
89671         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89672         so that re_search functions only quit when callers expect them to.
89674 2000-10-23  Jim Meyering  <meyering@lucent.com>
89676         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89677         wrong.  That set_locale call must not have any side effects.
89678         From Paul Eggert.
89680 2000-10-22  Jim Meyering  <meyering@lucent.com>
89682         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89683         [CYCLIC]: Remove now-unused definition.
89685         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89686         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89687         Suggestion from Ulrich Drepper.
89689 2000-10-21  Jim Meyering  <meyering@lucent.com>
89691         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89692         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89693         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89695 2000-10-21  Jim Meyering  <meyering@lucent.com>
89697         * lib/dirname.c (memrchr): Declare if necessary.
89698         (dir_name): Remove the restriction that there be no
89699         trailing slashes.  Now, this code skips past them, effectively
89700         ignoring them.
89701         [TEST_DIRNAME] (main): New unit tests.
89703         * lib/memrchr.c: New file from GNU libc.
89704         Undef __memrchr, too.
89705         [!weak_alias]: Define __memrchr to memrchr.
89706         Guard weak_alias use with `#ifdef weak_alias'.
89708 2000-10-21  Jim Meyering  <meyering@lucent.com>
89710         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89711         (dir_name): Use dir_name_r.
89712         * lib/dirname.h (dir_name_r): Declare it.
89714 2000-10-17  Jim Meyering  <meyering@lucent.com>
89716         * lib/quote.h (PARAMS): Define and use.
89717         Reported by Akim Demaille.
89719         * lib/getopt.c: Update from libc.
89721 2000-10-16  Jim Meyering  <meyering@lucent.com>
89723         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89724         setlocale.
89725         From Jan Fedak.
89727 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89729         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89731 2000-09-25  Jim Meyering  <meyering@lucent.com>
89733         * lib/md5.h (rol): Define (from GnuPG).
89735         * lib/sha.c: Give credit (GnuPG) where due.
89736         (M): Use rol rather than open-coding it.
89737         Add a FIXME comment.
89739 2000-09-21  Jim Meyering  <meyering@lucent.com>
89741         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89742         Reported by Michael Stone.
89744 2000-09-20  Jim Meyering  <meyering@lucent.com>
89746         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89747         (noinst_HEADERS): Add sha.h.
89748         Based on code from Scott G. Miller and from GnuPG.
89750 2000-09-18  Jim Meyering  <meyering@lucent.com>
89752         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89753         LIBS. Otherwise, everyone ends up linking with -lelf for some
89754         configurations.
89755         Reported by Mike Stone.
89757 2000-09-15  Jim Meyering  <meyering@lucent.com>
89759         * lib/regex.c: Update from libc.
89761 2000-09-10  Jim Meyering  <meyering@lucent.com>
89763         * lib/getopt.c (_getopt_internal): Update from glibc.
89765 2000-09-09  Jim Meyering  <meyering@lucent.com>
89767         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89768         think it should be used as a general replacement for isascii.
89769         * lib/fnmatch.c: Likewise.
89770         * lib/mbswidth.c: Likewise
89771         * lib/regex.c: Likewise.
89773         Don't use atoi.
89774         * lib/userspec.c: Include sys/param.h and limits.h.
89775         Include xstrtol.h.
89776         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89777         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89778         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89779         UID, GID.  Check range.
89781 2000-09-06  Jim Meyering  <meyering@lucent.com>
89783         * lib/getopt.c (_getopt_internal): Update from glibc.
89785 2000-08-30  Jim Meyering  <meyering@lucent.com>
89787         * lib/strftime.c: Merge in changes from GNU libc.
89789 2000-08-26  Jim Meyering  <meyering@lucent.com>
89791         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89792         * m4/fpending.m4: New file.
89794 2000-08-26  Jim Meyering  <meyering@lucent.com>
89796         * lib/closeout.c: Include "__fpending.h".
89797         (close_stdout_status): Return right away if there's nothing to flush.
89799         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89800         * lib/__fpending.c: New file.
89801         * lib/__fpending.h: New file.
89803 2000-08-20  Jim Meyering  <meyering@lucent.com>
89805         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89806         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89807         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89809 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89811         Improve fileutils installation on systems where running
89812         programs (like install) can't be unlinked.
89813         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89814         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89816 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89818         Standardize on "memory exhausted" instead of "Memory exhausted"
89819         or "virtual memory exhausted".
89820         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89821         "virtual memory exhausted".
89822         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89823         our own message.
89824         * lib/userspec.c (parse_user_spec): Likewise.
89825         * lib/bumpalloc.h: comment fix
89826         * lib/same.c, userspec.c: Include xalloc.h.
89828         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89829         not char *const and pointing to a constant array.
89830         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89831         (xrealloc): Comment fix.
89833         * lib/userspec.c (parse_user_spec):
89834         Don't translate a message until just before returning,
89835         to avoid unnecessary translation.
89837 2000-08-07  Jim Meyering  <meyering@lucent.com>
89839         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89840         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89841         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89842         getgroups.c, gethostname.c, getopt.h, group-member.c,
89843         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89844         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89845         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89846         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89847         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89848         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89849         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89850         yesno.c: Back out Copyright date changes for each file with no change
89851         this year.  This eases coordination with other programs using the same
89852         source code modules.  From Paul Eggert.
89854 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89856         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89857         not char, for compatibility with glibc 2.1.3 strftime.c.
89859 2000-08-03  Greg McGary  <greg@mcgary.org>
89861         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89862         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89863         (EXTEND_BUFFER): Use them.
89865 2000-08-01  Jim Meyering  <meyering@lucent.com>
89867         * lib/dirname.c (ISSLASH): Define.
89868         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89869         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89870         both `\' and `/' may be use as path separators.
89871         Based on a patch from Prashant TR.
89873 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89875         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89876         slot vector a constant, since it might get modified.
89878 2000-07-31  Jim Meyering  <meyering@lucent.com>
89880         * lib/xmalloc.c: Use `virtual memory exhausted', not
89881         `Memory exhausted'.
89882         * lib/obstack.c (print_and_abort): Likewise.
89884 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89886         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89887         buffer, so that the caller can always quote one small
89888         component of a "memory exhausted" message in slot 0.
89889         From a suggestion by Jim Meyering.
89891 2000-07-30  Jim Meyering  <meyering@lucent.com>
89893         * lib/makepath.c (make_path): Quote the other instance, too.
89895         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89896         (STATIC_BUF_SIZE): Define.
89897         (quotearg_n_options): Use only statically allocated storage when
89898         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89899         than STATIC_BUF_SIZE.
89901 2000-07-29  Jim Meyering  <meyering@lucent.com>
89903         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89904         * lib/dirname.c (dir_name): Likewise.
89906         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89907         `/'.
89909         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89910         (dir_name): Assert that there are no trailing slashes.
89912 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89914         * lib/mbswidth.h (mbswidth): Add a flags argument.
89915         (mbswidth): New declaration.
89916         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89917         * lib/mbswidth.c (mbswidth): Add a flags argument.
89918         (mbsnwidth): New function.
89920 2000-07-24  Jim Meyering  <meyering@lucent.com>
89922         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89924 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89926         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89928 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89930         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89931         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89932         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89933         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89934         invoke multibyte primitives.
89936 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89938         * lib/quotearg.c:
89939         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89940         so that mbstate_t is always defined.
89942         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89943         be 1 in at least one GCC installation, and this configuration
89944         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89945         performance on hosts that have mbrtowc but have only unibyte
89946         locales, but I assume these hosts are rare.
89948 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89950         * lib/mbswidth.c (_XOPEN_SOURCE):
89951         Don't define; this causes problems on Solaris 7.
89952         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89954 2000-07-23  Jim Meyering  <meyering@lucent.com>
89956         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89957         too: getgrgid, getpwuid, getuid.
89959 2000-07-23  Jim Meyering  <meyering@lucent.com>
89961         * lib/basename.c (base_name): Add an assertion.
89963 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89965         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89966         shadow its mbsinit function.
89968 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89970         * lib/mbswidth.h: New file.
89971         * lib/mbswidth.c: New file.
89972         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89973         (noinst_HEADERS): Add mbswidth.h.
89975 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89977         * lib/config.charset: Add support for FreeBSD. Improve support for
89978         HP-UX and IRIX 6.
89980 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89982         * m4/mbswidth.m4: New file.
89983         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89985 2000-07-15  Jim Meyering  <meyering@lucent.com>
89987         * lib/makepath.c: Include quote.h.
89988         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89989         corresponding argument in a `quote (...)' call.
89990         Give better diagnostics.
89992         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89993         (noinst_HEADERS): Add quote.h.
89995         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89996         from tar's src/misc.c.
89997         * lib/quote.h: New file.  Prototypes for same.
89999 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90001         From a suggestion by Bruno Haible.
90002         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90003         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90004         to decide whether to define the BeOS workaround macro;
90005         this adjusts to the change to AC_MBSTATE_T.
90007 2000-07-14  Jim Meyering  <meyering@lucent.com>
90009         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90010         jm_AC_TYPE_UINTMAX_T.
90012 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90014         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90016         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90017         quotearg_buffer_restyled): Add support for
90018         clocale_quoting_style.  Undo previous change to
90019         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90020         and "{RIGHT QUOTATION MARK}" msgids.
90022 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90024         From a suggestion by Bruno Haible.
90025         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90026         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90027         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90028         and mbstate_t, to a single-part test that simply defines mbstate_t.
90029         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90030         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90032 2000-07-10  Jim Meyering  <meyering@lucent.com>
90034         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90036         * m4/gnu-source.m4: Output to confdefs.h directly.
90037         Suggestion from Akim Demaille.
90039 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90041         The old behavior of quoting `like this' doesn't look good with
90042         newer, ISO-style fonts.  See:
90043         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90045         Instead, quote "like this" by default.  Let the translator
90046         tailor the locale-specific quoting behavior by providing
90047         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90049         * lib/quotearg.c (N_): New macro.
90050         (gettext_default): New function.
90051         (quotearg_buffer_restyled): Use
90052         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90053         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90055 2000-07-09  Jim Meyering  <meyering@lucent.com>
90057         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90058         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90060         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90061         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90063 2000-07-09  Jim Meyering  <meyering@lucent.com>
90065         * lib/Most files: Update copyright dates to include 2000.
90067 2000-07-08  Jim Meyering  <meyering@lucent.com>
90069         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90070         if not defined.
90071         (xgethostname): Remove now-unnecessary #ifdef.
90072         Move declaration of `err' into loop where it's used.
90074 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90075         and Bruno Haible  <haible@clisp.cons.org>
90077         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90078         only if the test for an object-type mbstate_t fails.  This
90079         prevents us from mistakenly reporting that mbstate_t is a
90080         system object type after we "#define mbstate_t int" to work
90081         around its lack.
90083 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90084         and Bruno Haible  <haible@clisp.cons.org>
90086         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90088 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90090         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90091         to strerror_r.
90092         Include <ctype.h> for use of isalpha.
90094 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90096         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90097         by allocating a larger buffer. Test the gethostname return value for
90098         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90099         returns an error and ENAMETOOLONG isn't defined.
90101 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90103         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90104         dimension.
90106 2000-07-04  Jim Meyering  <meyering@lucent.com>
90108         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90109         of the deprecated AC_CHECKING.
90111 2000-07-04  Jim Meyering  <meyering@lucent.com>
90113         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90114         Reported by Bruno Haible.
90116 2000-07-04  Jim Meyering  <meyering@lucent.com>
90118         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90119         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90120         lacks mbrtowc.
90122 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90124         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90125         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90127 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90128         and Bruno Haible  <haible@clisp.cons.org>
90130         * lib/quotearg.c (mbrtowc):
90131         Assign to *pwc, and return 1 only if result is nonzero.
90132         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90134 2000-07-03  Jim Meyering  <meyering@lucent.com>
90136         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90138 2000-07-03  Jim Meyering  <meyering@lucent.com>
90140         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90141         This is necessary to get a definition of e.g., UTMP_FILE on
90142         HP-UX 10.20.
90143         From Bob Proulx.
90145 2000-07-02  Jim Meyering  <meyering@lucent.com>
90147         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90149         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90150         AC_LIBOBJ(function_name).
90151         * m4/chown.m4: Likewise.
90152         * m4/fnmatch.m4: Likewise.
90153         * m4/ftruncate.m4: Likewise.
90154         * m4/getgroups.m4: Likewise.
90155         * m4/getline.m4: Likewise.
90156         * m4/group-member.m4: Likewise.
90157         * m4/jm-macros.m4: Likewise.
90158         * m4/lstat.m4: Likewise.
90159         * m4/malloc.m4: Likewise.
90160         * m4/memcmp.m4: Likewise.
90161         * m4/nanosleep.m4: Likewise.
90162         * m4/putenv.m4: Likewise.
90163         * m4/realloc.m4: Likewise.
90164         * m4/regex.m4: Likewise.
90165         * m4/stat.m4: Likewise.
90166         * m4/strftime.m4: Likewise.
90168 2000-07-02  Jim Meyering  <meyering@lucent.com>
90170         * lib/quotearg.c (mbstate_t): Don't define here.
90172 2000-07-02  Jim Meyering  <meyering@lucent.com>
90174         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90176 2000-07-01  Jim Meyering  <meyering@lucent.com>
90178         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90180 2000-07-01  Jim Meyering  <meyering@lucent.com>
90182         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90183         problem.
90185 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90188         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90190 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90192         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90193         per change in ../m4/ls-mntd-fs.m4.
90194         (read_filesystem_list): Ignore symbolic links.
90196 2000-06-29  Jim Meyering  <meyering@lucent.com>
90198         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90199         for declaration of strcmp.
90201         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90203         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90204         Avoid warning by casting result to `char *' to remove `const'.
90206 2000-06-28  Jim Meyering  <meyering@lucent.com>
90208         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90209         included by quotearg.c, for which we perform this test.  From
90210         Bruno Haible.
90212 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90214         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90215         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90216         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90218 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90220         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90222 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90224         savedir now sets errno on failure and invokes xmalloc to get memory.
90225         Fix a couple of other minor bugs while we're at it.
90227         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90228         (NAMLEN): Remove macro.
90229         (malloc, realloc): Remove decls.
90230         (stpcpy): Likewise.
90231         ("xalloc.h"): Include.
90232         (NAME_SIZE_DEFAULT): New macro.
90233         (savedir): Use xmalloc / xrealloc to allocate memory.
90234         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90235         Skip "" directory entries.
90236         Use strlen to calculate directory entry length, since the old method
90237         is rarely used these days and isn't worth supporting.
90238         Don't use a pointer after freeing it.
90239         Check for integer overflow when calculating allocation size.
90240         Use memcpy to copy entries, instead of stpcpy.
90241         Set errno properly when returning NULL.
90242         Check for readdir error.
90244 2000-06-26  Jim Meyering  <meyering@lucent.com>
90246         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90248 2000-06-25  Jim Meyering  <meyering@lucent.com>
90250         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90251         Linux header bug when _XOPEN_SOURCE is defined to 500.
90253 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90255         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90256         deficiency.
90258 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90260         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90261         Include xalloc.h.
90262         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90264 2000-06-24  Jim Meyering  <meyering@lucent.com>
90266         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90267         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90268         for which strerror does return char*, but which lacks a conveniently
90269         accessible declaration of the function.  If the compile-test says
90270         strerror_r doesn't work, then resort to a `run'-test that works on
90271         BeOS and segfaults on DEC Unix.
90273 2000-06-24  Jim Meyering  <meyering@lucent.com>
90275         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90277 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90279         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90280         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90282 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90284         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90285         (mbrtowc, mbstate_t): Define substitutes if
90286         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90287         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90288         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90290 2000-06-23  Jim Meyering  <meyering@lucent.com>
90292         * m4/afs.m4: Add missing AC_MSG_RESULT.
90293         Reported by Bruno Haible.
90295         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90296         Suggestion from Bruno Haible.
90298 2000-06-23  Jim Meyering  <meyering@lucent.com>
90300         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90302 2000-06-21  Jim Meyering  <meyering@lucent.com>
90304         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90306 2000-06-21  Jim Meyering  <meyering@lucent.com>
90308         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90309         (noinst_HEADERS): Add getstr.h.
90311         * lib/getline.c (getstr): Move into a separate file.
90312         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90313         the following changes: new parameter, delim2; both delim[12]
90314         parameters have type `int', not `char'.  The latter would lose
90315         with 8-bit delimiters.
90316         * lib/getstr.h: New file.
90318 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90320         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90321         than 1024, return a memory chunk of least possible size, instead
90322         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90323         Use free/xmalloc instead of xrealloc to avoid copying for very long
90324         paths.
90326 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90328         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90329         the empty string.
90331 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90333         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90334         address, not strdup.  Include <stdlib.h> and don't declare free().
90336 2000-06-19  Jim Meyering  <meyering@lucent.com>
90338         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90340 2000-06-18  Jim Meyering  <meyering@lucent.com>
90342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90344         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90345         `checking whether...' message to be consistent with that of the
90346         lstat test.
90348 2000-06-18  Jim Meyering  <meyering@lucent.com>
90350         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90351         Besides, these days every porting target provides a mkdir function.
90353         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90354         needed. (this snippet comes from src/system.h).
90356 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90358         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90360 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90362         * lib/human.c (adjust_value): New function.
90363         (human_readable_inexact): Apply rounding style even when
90364         printing approximate values.
90366 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90368         * lib/human.c (human_readable_inexact): Allow an input block
90369         size that is not a multiple of the output block size, and vice versa.
90370         Reported by Piergiorgio Sartor.
90372 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90374         * lib/getdate.y (get_date): Apply relative times after time
90375         zone indicator, not before.  Reported by Todd A. Jacobs.
90377 2000-06-13  Jim Meyering  <meyering@lucent.com>
90379         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90381         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90383 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90385         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90387 2000-06-12  Jim Meyering  <meyering@lucent.com>
90389         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90390         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90391         optional argument.
90392         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90393         the optional argument, `lib'.
90395 2000-06-08  Jim Meyering  <meyering@lucent.com>
90397         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90399 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90401         Rewrite largefile configuration so that we don't need to run
90402         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90403         AC_CANONICAL_HOST in configure.in -- jmm]
90405         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90406         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90407         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90408         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90409         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90410         All uses changed.
90411         Instead of inspecting the output of getconf, try to compile the
90412         test program without and with the macro definition.
90413         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90414         for getconf.  Instead, check for the needed flags by compiling
90415         test programs.
90417 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90419         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90421 2000-06-04  Jim Meyering  <meyering@lucent.com>
90423         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90424         SunOS 4.1.4 for which gid_t is an unsigned type.
90426 2000-06-03  Jim Meyering  <meyering@lucent.com>
90428         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90429         now that autoconf requires that.
90431         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90432         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90433         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90435 2000-06-03  Jim Meyering  <meyering@lucent.com>
90437         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90439 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90441         * m4/glibc21.m4: New file.
90442         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90444 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90446         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90447         newer, don't install charset.alias.
90448         * lib/config.charset: Change the Linux/glibc rules so they become empty
90449         on glibc-2.1 or newer.
90451 2000-06-02  Jim Meyering  <meyering@lucent.com>
90453         * lib/mountlist.c: Back out last change.  Instead, do this...
90454         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90455         me_dummy member using the same `ignore'-testing code.
90456         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90457         fs_type strings.
90458         From Mark D. Roth.
90460 2000-05-29  Jim Meyering  <meyering@lucent.com>
90462         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90463         mounts with the `ignore' attribute.  Based on a patch from
90464         Mark D. Roth.
90466 2000-05-28  Jim Meyering  <meyering@lucent.com>
90468         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90469         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90470         * m4/stat.m4: Likewise.
90471         * m4/lstat.m4: Likewise.
90472         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90474         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90475         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90477 2000-05-26  Jim Meyering  <meyering@lucent.com>
90479         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90481 2000-05-24  Jim Meyering  <meyering@lucent.com>
90483         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90484         autoconf requires that.
90485         * m4/lib-check.m4: Likewise.
90486         * m4/jm-macros.m4: Likewise.
90487         * m4/strftime.m4: Likewise.
90489         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90490         AC_CHECK_DECLS, now that autoconf requires that.
90492 2000-05-22  Jim Meyering  <meyering@lucent.com>
90494         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90495         * m4/lstat.m4: Likewise.
90497 2000-05-22  Jim Meyering  <meyering@lucent.com>
90499         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90501 2000-05-20  Jim Meyering  <meyering@lucent.com>
90503         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90504         (jm_PREREQ): Use it.
90506 2000-05-18  Jim Meyering  <meyering@lucent.com>
90508         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90509         back, too, since it may have been modified by allocate_entry.
90510         (hash_delete): Rewrite to use neither the assignment operator
90511         nor the comma operator in an if-expression.
90513 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90515         * lib/closeout.c:
90516         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90517         Remove; no longer needed.
90518         "quotearg.h": Add include.
90519         (file_name): Do not bother to explicitly initialize to NULL; it's less
90520         efficient on some hosts.
90521         (close_stdout_status): Remove test as to whether stdout was already
90522         closed; it breaks for the case "echo x | sort >&-".
90523         Quote file name colons.
90524         Do not assume that _("write error") lacks format strings.
90526 2000-05-15  Jim Meyering  <meyering@lucent.com>
90528         * lib/version-etc.c (version_etc_copyright): Update the copyright
90529         string used in all --version output.
90531 2000-05-14  Jim Meyering  <meyering@lucent.com>
90533         * lib/closeout.c (close_stdout_set_file_name): New function.
90534         (close_stdout_status): Use new file-scoped global.
90535         Return right away if fstat says the stdout file descriptor is invalid.
90536         * lib/closeout.h (close_stdout_set_file_name): Declare.
90538 2000-05-10  Jim Meyering  <meyering@lucent.com>
90540         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90541         (close_stdout_set_status): New function.
90542         * lib/closeout.h (close_stdout_set_status): Declare.
90544 2000-05-09  Jim Meyering  <meyering@lucent.com>
90546         * m4/gettext.m4: Rename this...
90547         * m4/libintl.m4: ...to this.
90549 2000-05-08  Jim Meyering  <meyering@lucent.com>
90551         * lib/long-options.c: Don't include closeout.h.
90552         (parse_long_options): Don't call close_stdout for --version.
90554 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90556         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90557         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90558         2.1.3 bug.  This avoids a clash when files like regex.c define
90559         _GNU_SOURCE.
90561 2000-05-06  Jim Meyering  <meyering@lucent.com>
90563         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90564         (AC_REPLACE_FUNCS): Add strnlen.
90566         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90567         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90569         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90570         AC_SEARCH_LIBS call for nanosleep.
90571         (LIB_NANOSLEEP): Set and AC_SUBST.
90573 2000-05-06  Jim Meyering  <meyering@lucent.com>
90575         * lib/strnlen.c: Undefine __strnlen and strnlen.
90576         [!weak_alias]: Define __strnlen to strnlen.
90578         * lib/atexit.c: New file, from libiberty.
90580 2000-05-06  Jim Meyering  <meyering@lucent.com>
90582         * lib/closeout.c (close_stdout_status): Also check for errors on the
90583         stderr stream.
90585 2000-05-05  Jim Meyering  <meyering@lucent.com>
90587         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90588         AC_SEARCH_LIBS call for clock_gettime.
90589         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90591         * m4/search-libs.m4: Update from autoconf.
90593         su doesn't work on Solaris 2.6.
90594         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90595         <shadow.h>.  Reported by Dragos Harabor.
90597 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90599         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90600         memcpy instead of xmalloc, xrealloc, path_concat.
90601         (locale_charset): Treat empty environment variables as absent.
90602         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90604 2000-05-04  Jim Meyering  <meyering@lucent.com>
90606         * lib/getopt.c: Update from glibc.
90607         * lib/obstack.c: Likewise.
90608         * lib/obstack.h: Likewise.
90609         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90610         file
90612         * lib/regex.h: Likewise.
90613         * lib/strndup.c: Likewise.
90614         * lib/strnlen.c: New file, from glibc.
90616 2000-05-03  Jim Meyering  <meyering@lucent.com>
90618         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90620 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90622         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90623         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90624         compile-time test, rather than inspecting host and OS, to
90625         decide whether to define _LARGEFILE_SOURCE.
90627 2000-05-01  Jim Meyering  <meyering@lucent.com>
90629         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90631         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90632         Based on a patch from Bruno Haible.
90634 2000-05-01  Jim Meyering  <meyering@lucent.com>
90636         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90638 2000-04-29  Jim Meyering  <meyering@lucent.com>
90640         * lib/path-concat.c: Declare strdup only if it's not defined.
90641         * lib/canon-host.c: Likewise.
90643 2000-04-28  Jim Meyering  <meyering@lucent.com>
90645         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90646         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90647         is included first, then limits.h is included by locale.h by libintl.h.
90648         From John David Anglin.
90650 2000-04-25  Jim Meyering  <meyering@lucent.com>
90652         * lib/makepath.c (S_IRWXUGO): Define.
90653         (make_path): Always perform explicit chmod if MODE specifies any
90654         of the `special' permission bits.  Prompted by a bug report against
90655         install from Mate Wierdl and Joost van Baal.
90657 2000-04-18  Jim Meyering  <meyering@lucent.com>
90659         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90660         (jm_PREREQ): Use it.
90662 2000-04-18  Jim Meyering  <meyering@lucent.com>
90664         * lib/README: New file.
90666         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90667         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90669 2000-04-17  Jim Meyering  <meyering@lucent.com>
90671         Get it right :-)
90672         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90673         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90674         Suggestion from Akim Demaille.
90676 2000-04-17  Jim Meyering  <meyering@lucent.com>
90678         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90679         the definition of it to rpl_strftime also defined-away the system's
90680         declaration.
90682 2000-04-15  Jim Meyering  <meyering@lucent.com>
90684         Use `C' to denote so-called `contiguous' files, the same way
90685         that tar does.
90686         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90687         (ftypelet): Use S_ISCTG.
90688         From Michael Deutschmann.
90690 2000-04-14  Jim Meyering  <meyering@lucent.com>
90692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90693         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90694         clobbered.
90696 2000-04-14  Jim Meyering  <meyering@lucent.com>
90698         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90700 2000-04-13  Jim Meyering  <meyering@lucent.com>
90702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90703         AH_VERBATIM to insert required #ifndef into config.h.in.
90704         Suggestion from Akim Demaille.
90706 2000-04-12  Jim Meyering  <meyering@lucent.com>
90708         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90709         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90710         Christian Krackowizer.
90712         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90713         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90714         (AC_SYS_LARGEFILE): Require.
90715         (AM_C_PROTOTYPES): Require.
90717 2000-04-08  Jim Meyering  <meyering@lucent.com>
90719         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90720         names don't conflict.  Reported by Eli Zaretskii.
90722 2000-04-07  Jim Meyering  <meyering@lucent.com>
90724         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90725         sys/types.h, to work around system header problems on AIX 3.2.5.
90726         From Bruno Haible.
90728 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90730         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90731         bug.  Deal with the different error behavior of Irix iconv.
90733 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90735         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90736         IRIX if the installer said otherwise.
90738 2000-04-05  Jim Meyering  <meyering@lucent.com>
90740         Portability tweaks required for ultrix4.3.
90741         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90742         (jm_CHECK_DECLS): Add getutent to the list of functions.
90743         (_jm_DECL_HEADERS): Add utmpx.h.
90744         From John David Anglin.
90746         * m4/strftime.m4: Back out the 2000-04-02 change.
90747         Instead of that change, simply undefine putenv in the test program.
90749 2000-04-05  Jim Meyering  <meyering@lucent.com>
90751         Portability tweaks required for ultrix4.3.
90752         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90753         getutent.
90754         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90755         * lib/canon-host.c: Declare strdup.
90756         * lib/path-concat.c: Likewise.
90757         From John David Anglin.
90759 2000-04-04  Jim Meyering  <meyering@lucent.com>
90761         Be more DOS 8.3-friendly.
90762         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90763         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90764         * lib/Makefile.am: Reflect renaming.
90765         Reported by Eli Zaretskii.
90767         Use a temporary file name that won't clash with `charset.alias'
90768         in the DOS 8.3 name space.
90769         * lib/Makefile.am (charset_tmp): Define.
90770         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90771         (uninstall-local): Likewise.
90772         Reported by Eli Zaretskii.
90774 2000-04-03  Jim Meyering  <meyering@lucent.com>
90776         * m4/gettext.m4: Fix typo in comment.
90778         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90779         textutils/configure.in).  Suggestion from Paul Eggert.
90780         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90782 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90784         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90785         variable in the shell rather than using putenv, which isn't
90786         portable.  This avoids the configure-time inter-test dependency
90787         on the potentially-renamed putenv function.
90789 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90792         before checking struct stat.st_blksize, so that
90793         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90795 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90797         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90798         since strftime.c uses HAVE_STRFTIME to decide whether to use
90799         the underlying strftime.
90801 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90803         * lib/time/strftime.c (my_strftime): Make sure we call the system
90804         strftime, not ourselves, when invoking the underlying strftime.
90806 2000-03-24  Jim Meyering  <meyering@lucent.com>
90808         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90809         (charset_alias): Define.
90810         (install-exec-local): Factor out common code.
90811         (uninstall-local): Split lines longer than 80.
90812         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90813         (SUFFIXES): Define.
90814         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90815         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90817 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90819         * lib/config.charset: Output a line containing "Packages using this
90820         file".
90821         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90822         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90823         ref-del.sed): New rules.
90825 2000-03-17  Jim Meyering  <meyering@lucent.com>
90827         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90828         Otherwise, include <strings.h>
90830 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90832         * lib/unicodeio.c (utf8_wctomb): New function.
90833         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90834         format instead of in UCS-4 with platform dependent endianness.
90836 2000-03-10  Jim Meyering  <meyering@lucent.com>
90838         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90839         From Marco Franzen.
90841 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90843         * lib/savedir.c (savedir): Work even if directory size is
90844         negative; this can happen with some screwy NFS configurations.
90846 2000-03-06  Jim Meyering  <meyering@lucent.com>
90848         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90849         if it's NULL (because we ran out of memory).  From Bruno Haible.
90851 2000-03-05  Jim Meyering  <meyering@lucent.com>
90853         * lib/localcharset.c ("path-concat.h"): Include.
90854         (get_charset_aliases): Use path_concat instead of ANSI string
90855         concatenation.
90857         * lib/unicodeio.h (PARAMS): Define.
90858         Use it to guard prototype.
90860 2000-03-04  Jim Meyering  <meyering@lucent.com>
90862         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90863         for lib/localcharset.c.
90865 2000-03-04  Jim Meyering  <meyering@lucent.com>
90867         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90868         installing into it.
90869         (uninstall-local): Uncomment this rule so `make distcheck' works
90870         once again.
90872         * lib/unicodeio.c (<errno.h>): Include it.
90873         (errno): Declare if not defined.
90875         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90877         * lib/config.charset: New version, incorporating remarks from a linux
90878         i18n mailing list.  From Bruno Haible.
90880 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90882         * m4/codeset.m4: New file.
90883         * m4/iconv.m4: New file.
90884         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90886 2000-03-03  Jim Meyering  <meyering@lucent.com>
90888         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90890 2000-03-02  Jim Meyering  <meyering@lucent.com>
90892         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90893         the messages come out on separate lines.
90895         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90896         rather than jm_CHECK_DECLARATIONS.
90897         * m4/decl.m4: Remove now-unused file.
90899         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90900         geteuid.
90902 2000-03-02  Jim Meyering  <meyering@lucent.com>
90904         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90906 2000-03-01  Jim Meyering  <meyering@lucent.com>
90908         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90909         * lib/unicodeio.c: Likewise.
90911 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90913         * lib/config.charset: New file.
90914         * lib/localcharset.c: New file.
90915         * lib/unicodeio.h, lib/unicodeio.c: New files.
90916         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90917         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90918         (noinst_HEADERS): Add unicodeio.h.
90919         (all-local, install-exec-local, charset.alias): New targets.
90921 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90923         * lib/quotearg.c (ALERT_CHAR): New macro.
90924         (quotearg_buffer_restyled): Use it.
90926 2000-02-27  Jim Meyering  <meyering@lucent.com>
90928         * m4/check-decl.m4: Add getenv to the list.
90930 2000-02-27  Jim Meyering  <meyering@lucent.com>
90932         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90933         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90935         * lib/backupfile.c: Guard inclusion of stdlib.h with
90936         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90937         Declare malloc if needed.
90939         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90940         `#ifndef HAVE_DECL..'
90941         now that autoconf always defines the HAVE_DECL_ symbols.
90942         * lib/human.c: Likewise.
90943         * lib/same.c: Likewise.
90944         * lib/strtoumax.c: Likewise.
90946         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90947         declaration check was not run.
90948         * lib/hash.c: Likewise.
90949         * lib/human.c: Likewise.
90950         * lib/same.c: Likewise.
90951         * lib/strtoumax.c: Likewise.
90953         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90954         `.', then first look up the entire `.'-containing string as a login
90955         name.
90957 2000-02-23  Jim Meyering  <meyering@lucent.com>
90959         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90960         in place of my hack.
90962 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90964         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90965         (textint): New typedef.
90966         (parser_control): Member year changed from int to textint.
90967         All uses changed.
90968         (YYSTYPE): Removed; replaced by %union with int and textint members.
90969         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90970         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90971         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90972         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90973         (date, number, to_year): Use width of number in digits, not its value,
90974         to determine whether it's a 2-digit year, or a 2-digit time.
90975         (yylex): Store number of digits of numeric tokens.
90976         Reported by John Kendall.
90978         (parser_control): Changed from struct parser_control to typedef (for
90979         consistency).  All uses changed.
90981         (tID): Removed; not used.
90982         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90984 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90986         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90987         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90989 2000-02-12  Jim Meyering  <meyering@lucent.com>
90991         * lib/userspec.c (ISDIGIT): Define it.
90992         (isdigit): Remove definition.
90993         (is_number): Use ISDIGIT, not isdigit.
90994         <libintl.h>: Include.
90995         (_ and N_): Define.
90996         (parse_user_spec): Mark translatable strings.
90998 2000-02-10  Jim Meyering  <meyering@lucent.com>
91000         With these changes, nanosleep.[ch] are finally enough like the other
91001         lib/* replacement files to compile on a few more losing systems.
91003         * lib/nanosleep.h: Don't include config.h.
91004         Remove prototype from declaration of nanosleep.
91005         (PARAMS): Remove now-unneeded definition.
91006         * lib/nanosleep.c: #undef nanosleep.
91007         (rpl_nanosleep): Rename from nanosleep.
91009 2000-02-10  Jim Meyering  <meyering@lucent.com>
91011         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91012         gnu_nanosleep to rpl_nanosleep.
91014 2000-02-09  Jim Meyering  <meyering@lucent.com>
91016         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91017         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91019 2000-02-08  Akim Demaille  <akim@epita.fr>
91021         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91022         `[' and `]' and remove uses of `changequote'.
91023         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91024         (AC_SYS_LARGEFILE): Likewise.
91025         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91026         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91027         of changequote.
91028         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91029         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91030         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91031         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91033 2000-02-05  Jim Meyering  <meyering@lucent.com>
91035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91036         Remove explicit use of AC_HEADER_TIME.  It is required by
91037         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91038         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91039         in autoconf whereby the expansion of the latter ended up preceding
91040         the expansion of its prerequisite, AC_HEADER_TIME.
91041         Reported by Volker Borchert.
91043 2000-02-03  Jim Meyering  <meyering@lucent.com>
91045         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91047 2000-02-03  Jim Meyering  <meyering@lucent.com>
91049         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91050         rather than with `#if HAVE_UTMPNAME'.
91052 2000-02-02  Jim Meyering  <meyering@lucent.com>
91054         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91055         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91056         Reported by Eli Zaretskii.
91058 2000-02-01  Jim Meyering  <meyering@lucent.com>
91060         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91062 2000-01-31  Jim Meyering  <meyering@lucent.com>
91064         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91065         functions.  Add the time.h and sys/time.h headers along with the
91066         AC_REQUIRE'ment of AC_HEADER_TIME.
91068 2000-01-31  Jim Meyering  <meyering@lucent.com>
91070         * lib/nanosleep.h (nanosleep): Guard declaration with
91071         `#if ! HAVE_DECL_NANOSLEEP'.
91072         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91073         the declaration in that vendor's sys/timers.h.
91074         Reported by Christian Krackowizer.
91076         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91077         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91078         (ISPRINT): Likewise.
91079         Reported by Tom Tromey.
91081 2000-01-30  Jim Meyering  <meyering@lucent.com>
91083         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91085         * m4/prereq.m4 (utmp_includes): Define.
91086         Check for ut_user and ut_name members in both struct utmpx
91087         and struct utmp.
91089 2000-01-30  Jim Meyering  <meyering@lucent.com>
91091         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91092         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91093         header files where only utmpx.ut_user is declared.
91095         * lib/readutmp.h (UT_USER): Define.
91097 2000-01-29  Jim Meyering  <meyering@lucent.com>
91099         * m4/lib-check.m4: New file containing library-related checks from
91100         fileutils and sh-utils (textutils had none).
91102 2000-01-28  Jim Meyering  <meyering@lucent.com>
91104         * m4/perl.m4: Change format of warning message to look more like that
91105         from the missing script.  Suggestion from François Pinard.
91107 2000-01-25  Jim Meyering  <meyering@lucent.com>
91109         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91110         well as time.h in the compile check.
91111         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91112         Fix typo in cross-compiling case: s/yes/no/.
91114 2000-01-23  Jim Meyering  <meyering@lucent.com>
91116         * m4/jm-macros.m4: Move df-related tests here from
91117         fileutils/configure.in
91119         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91120         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91122         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91123         s/space/ac_fsusage_space/.
91124         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91126         * m4/ftruncate.m4: New file (derived from part of
91127         fileutils/configure.in).
91128         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91129         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91131         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91132         AC_SUBST these here, rather than just in sh-util/configure.in, so
91133         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91134         all the same.
91135         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91136         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91137         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91138         (AC_SUBST(POW_LIBM)): Likewise.
91139         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91141 2000-01-23  Jim Meyering  <meyering@lucent.com>
91143         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91144         obstack.c.
91146 2000-01-22  Jim Meyering  <meyering@lucent.com>
91148         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91150         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91152         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91153         configure.in
91154         (AC_CHECK_HEADERS): Likewise for sh-utils.
91155         (AC_CHECK_HEADERS): Likewise for textutils.
91156         Merge the three lists of headers.
91158         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91159         from fileutils' configure.in.
91161         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91162         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91163         check-decl.m4.
91165         * m4/check-decl.m4: Use #if rather than #ifdef.
91166         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91167         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91168         (_jm_DECL_HEADERS): Define new function.
91169         (jm_CHECK_DECLARATIONS): Require it.
91171 2000-01-22  Jim Meyering  <meyering@lucent.com>
91173         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91174         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91175         Required for some AIX systems.  Reported by Christian Krackowizer.
91176         [TESTING] (main): New function.
91178         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91179         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91180         letters.
91182         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91183         iswprint.
91185         * lib/strverscmp.c (ISDIGIT): Define.
91186         (strverscmp): Use ISDIGIT, not isdigit.
91188 2000-01-19  Jim Meyering  <meyering@lucent.com>
91190         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91191         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91192         defines `struct timespec' in <sys/time.h>
91194         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91195         Thanks to Akim for explaining.
91197 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91199         * lib/nanosleep.c (nanosleep):
91200         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91201         POSIX.1 doesn't require SA_INTERRUPT and some systems
91202         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91203         it's been part of POSIX.1 since day 1 (in 1988).
91205 2000-01-17  Jim Meyering  <meyering@lucent.com>
91207         * lib/interlock: Remove unused file.  Reported by François Pinard.
91209 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91211         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91212         alert, backslash, formfeed, and vertical tab unnecessarily in
91213         shell quoting style.
91215 2000-01-16  Jim Meyering  <meyering@lucent.com>
91217         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91218         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91219         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91220         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91222 2000-01-16  Jim Meyering  <meyering@lucent.com>
91224         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91225         because the latter didn't work.
91227 2000-01-15  Jim Meyering  <meyering@lucent.com>
91229         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91230         (AC_REPLACE_FUNCS): Add memcpy and memset.
91231         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91232         Add strpbrk.
91233         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91235 2000-01-12  Jim Meyering  <meyering@lucent.com>
91237         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91238         (jm_PREREQ): Use it.
91239         (jm_PREREQ_READUTMP): New macro.
91240         (jm_PREREQ): Use it.
91242 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91244         Quote multibyte characters correctly.
91245         * m4/c-bs-a.m4: New file.
91246         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91247         (jm_PREREQ): Use it.
91249 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91251         * m4/uintmax_t.m4: Port to autoconf 2.13.
91253 2000-01-08  Jim Meyering  <meyering@ascend.com>
91255         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91256         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91258 2000-01-04  Jim Meyering  <meyering@ascend.com>
91260         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91261         jm_STRUCT_DIRENT_D_TYPE.
91262         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91263         jm_STRUCT_DIRENT_D_INO.
91264         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91265         jm_STRUCT_UTIMBUF.
91266         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91267         renamings.
91268         * m4/utime.m4: Likewise.
91270         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91271         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91273 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91275         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91276         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91278 2000-01-02  Jim Meyering  <meyering@ascend.com>
91280         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91281         remember if this is necessary.
91283 1999-12-26  Jim Meyering  <meyering@ascend.com>
91285         * m4/jm-macros.m4: Use it here.
91286         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91288 1999-12-23  Jim Meyering  <meyering@ascend.com>
91290         * m4/jm-macros.m4: Check for clock_gettime (moved from
91291         fileutils/configure.in)
91292         Check for gettimeofday.
91294 1999-12-20  Jim Meyering  <meyering@ascend.com>
91296         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91297         autoconf-2.14a-1999-12-20.
91299 1999-12-19  Jim Meyering  <meyering@ascend.com>
91301         * m4/lstat-slash.m4: New file.
91302         * m4/jm-macros.m4: Use the new macro:
91303         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91305 1999-12-07  Jim Meyering  <meyering@ascend.com>
91307         * m4/perl.m4: Require that File::Compare be available, too.
91308         Too many systems seem to lack it.
91310         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91311         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91313 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91315         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91316         problem with the QNX 4.25 shell, which doesn't propagate exit
91317         status of failed commands inside shell assignments.
91319 1999-11-17  Jim Meyering  <meyering@ascend.com>
91321         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91323 1999-11-07  Jim Meyering  <meyering@ascend.com>
91325         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91327 1999-11-06  Jim Meyering  <meyering@ascend.com>
91329         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91330         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91332 1999-11-05  Jim Meyering  <meyering@ascend.com>
91334         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91335         configure.in of textutils, fileutils, and sh-utils into this one
91336         (shared between those packages) file.
91337         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91338         AC_STRUCT_ST_BLKSIZE.
91340 1999-11-03  Jim Meyering  <meyering@ascend.com>
91342         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91343         of AC_CHECK_TYPE checks includes unistd.h.
91344         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91345         Suggestion from Akim Demaille.
91347 1999-10-30  Jim Meyering  <meyering@ascend.com>
91349         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91350         m4-quoted string.
91351         * m4/ls-mntd-fs.m4: Likewise.
91352         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91353         * m4/jm-winsz1.m4: Likewise.
91355         * m4/const.m4: Remove file, since the fix made it into the experimental
91356         version of autoconf.
91357         * m4/mktime.m4: Likewise.
91359         * m4/check-type.m4: Remove file, now that the latest version of
91360         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91362         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91363         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91364         AC_CHECK_TYPE.
91366 1999-10-04  Jim Meyering  <meyering@ascend.com>
91368         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91370 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91372         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91373         2.95.1 bug with HP-UX 10.20.
91375 1999-09-17  Jim Meyering  <meyering@ascend.com>
91377         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91378         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91379         due to missing strdup (against sh-utils-2.0).
91381 1999-08-29  Jim Meyering  <meyering@ascend.com>
91383         * m4/jm-macros.m4: Require jm_BISON.
91384         * m4/bison.m4: New file.
91386 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91388         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91389         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91391 1999-08-05  Jim Meyering  <meyering@ascend.com>
91393         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91394         to avoid conflicts with `conftest' on 8+3 filesystems.
91395         Suggestion from Eli Zaretskii.
91397 1999-08-04  Jim Meyering  <meyering@ascend.com>
91399         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91400         fileutils and sh-utils (textutils's getline test was inadequate).
91401         (AM_FUNC_GETLINE): Run this test.
91402         (AC_CHECK_FUNCS): Check for getdelim.
91403         Reported by Bob Proulx.
91405 1999-08-02  Jim Meyering  <meyering@ascend.com>
91407         * m4/jm-macros.m4: Add a comment.
91409 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91411         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91412         <inttypes.h> defines strtoumax as a macro (and not as a
91413         function).
91415 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91417         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91418         that we can shift, multiply and divide unsigned long long
91419         values; Ultrix cc can't do it.
91421 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91423         * m4/mktime.m4: New file, which is a preview of what should appear
91424         in the next public autoconf release.
91426 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91428         * m4/lfs.m4: Remove this file.
91429         * m4/largefile.m4: New file.  It contains the old contents of
91430         lfs.m4, except that all names with prefix AC_LFS have been
91431         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91432         compatible with future autoconf versions.  Also, some minor m4
91433         quoting problems have been fixed.
91435 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91437         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91438         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91439         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91440         and simplify the shell code.
91442 1999-08-01  Jim Meyering  <meyering@ascend.com>
91444         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91445         m4.
91447 1999-07-20  Jim Meyering  <meyering@ascend.com>
91449         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91451 1999-07-15  Jim Meyering  <meyering@ascend.com>
91453         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91455 1999-05-22  Jim Meyering  <meyering@ascend.com>
91457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91459 1999-05-20  Jim Meyering  <meyering@ascend.com>
91461         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91462         Add a colon after each `then' in case $4 is empty.
91464 1999-05-16  Jim Meyering  <meyering@ascend.com>
91466         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91468 1999-05-10  Jim Meyering  <meyering@ascend.com>
91470         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91472         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91473         AC_FUNC_MKTIME.
91475 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91477         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91479 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91481         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91482         not CPPFLAGS, so that linking works correctly in IRIX.
91484 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91486         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91488 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91490         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91491         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91493         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91494         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91496         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91498 1999-04-20  Jim Meyering  <meyering@ascend.com>
91500         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91501         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91502         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91504 1999-04-18  Jim Meyering  <meyering@ascend.com>
91506         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91507         * m4/jm-macros.m4: Use it.
91509 1999-04-06  Jim Meyering  <meyering@ascend.com>
91511         * m4/strftime.m4: Remove test for %f.
91513 1999-03-29  Jim Meyering  <meyering@ascend.com>
91515         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91516         superset of the AC_TYPE_* checks in the textutils, fileutils,
91517         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91518         AC_TYPE_PID_T.
91520 1999-03-28  Jim Meyering  <meyering@ascend.com>
91522         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91523         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91524         replaced e.g., in the *.sh files of the sh-utils.
91526 1999-03-20  Jim Meyering  <meyering@ascend.com>
91528         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91529         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91530         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91532 1999-03-19  Jim Meyering  <meyering@ascend.com>
91534         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91536 1999-03-12  Jim Meyering  <meyering@ascend.com>
91538         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91540 1999-03-07  Jim Meyering  <meyering@ascend.com>
91542         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91543         declared.
91545 1999-02-17  Jim Meyering  <meyering@ascend.com>
91547         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91548         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91550 1999-02-07  Jim Meyering  <meyering@ascend.com>
91552         * m4/group-member.m4: New file -- extracted from sh-utils'
91553         configure.in.
91555         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91556         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91558 1999-02-06  Jim Meyering  <meyering@ascend.com>
91560         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91561         * m4/fnmatch.m4: Likewise.
91562         * m4/getgroups.m4: Likewise.
91563         * m4/lstat.m4: Likewise.
91564         * m4/malloc.m4: Likewise.
91565         * m4/putenv.m4: Likewise.
91566         * m4/realloc.m4: Likewise.
91567         * m4/regex.m4: Likewise.
91568         * m4/stat.m4: Likewise.
91569         * m4/strftime.m4: Likewise.
91570         Suggestion from Alain Magloire.
91572         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91573         * m4/fnmatch.m4: Likewise.
91574         * m4/getgroups.m4: Likewise.
91575         * m4/getline.m4: Likewise.
91576         * m4/lstat.m4: Likewise.
91577         * m4/malloc.m4: Likewise.
91578         * m4/memcmp.m4: Likewise.
91579         * m4/putenv.m4: Likewise.
91580         * m4/realloc.m4: Likewise.
91581         * m4/regex.m4: Likewise.
91582         * m4/stat.m4: Likewise.
91583         * m4/strftime.m4: Likewise.
91584         Suggestion from Alain Magloire.
91586         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91587         an argument.
91589         * m4/regex.m4: Add a run-time Test for proper operation of
91590         re_compile_pattern.
91592 1999-01-31  Jim Meyering  <meyering@ascend.com>
91594         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91596 1999-01-30  Jim Meyering  <meyering@ascend.com>
91598         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91600         * m4/jm-mktime.m4: Make this a wrapper around the official
91601         AM_FUNC_MKTIME rather than my private copy, now that the official one
91602         is up to date.
91603         * m4/mktime.m4: Remove file.
91605         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91606         * m4/uptime.m4: Likewise.
91607         * m4/uintmax_t.m4: Likewise.
91609 1999-01-28  Jim Meyering  <meyering@ascend.com>
91611         * m4/jm-macros.m4: Use jm_AFS.
91612         * m4/afs.m4: New file (from fileutils' configure.in).
91614         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91615         * m4/chown.m4: Likewise.
91616         * m4/d-ino.m4: Likewise.
91617         * m4/d-type.m4: Likewise.
91618         * m4/fnmatch.m4: Likewise.
91619         * m4/getgroups.m4: Likewise.
91620         * m4/gettext.m4: Likewise.
91621         * m4/jm-mktime.m4: Likewise.
91622         * m4/jm-winsz2.m4: Likewise.
91623         * m4/lcmessage.m4: Likewise.
91624         * m4/ls-mntd-fs.m4: Likewise.
91625         * m4/malloc.m4: Likewise.
91626         * m4/memcmp.m4: Likewise.
91627         * m4/putenv.m4: Likewise.
91628         * m4/realloc.m4: Likewise.
91629         * m4/st_mtim.m4: Likewise.
91630         * m4/strftime.m4: Likewise.
91632 1999-01-16  Jim Meyering  <meyering@ascend.com>
91634         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91635         (ARGMATCH_DIE_DECL): Define.
91637 1999-01-12  Jim Meyering  <meyering@ascend.com>
91639         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91640         Reported by Lars Hecking.
91642 1999-01-10  Jim Meyering  <meyering@ascend.com>
91644         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91645         gross kludge.
91646         * m4/inttypes_h.m4: Likewise.
91647         * m4/lstat.m4: Likewise.
91648         * m4/malloc.m4: Likewise.
91649         * m4/readdir.m4: Likewise.
91650         * m4/realloc.m4: Likewise.
91651         * m4/st_dm_mode.m4: Likewise.
91652         * m4/stat.m4: Likewise.
91653         * m4/utimbuf.m4: Likewise.
91654         * m4/utimes.m4: Likewise.
91656         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91657         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91658         comments in config.h.in are meaningful.
91660         * m4/jm-macros.m4: Require autoconf-2.13 here.
91662         * m4/regex.m4: By default, don't use the included regex.c on systems
91663         with glibc 2.  Suggestion from Uli Drepper.
91665 1999-01-02  Jim Meyering  <meyering@ascend.com>
91667         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91669 1998-12-18  Jim Meyering  <meyering@ascend.com>
91671         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91672         Based on a suggestion from Lars Hecking.
91674 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91676         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91678 1998-11-16  Jim Meyering  <meyering@ascend.com>
91680         * m4/lfs.m4: Double-quote the `uname...` expression.
91682 1998-11-14  Jim Meyering  <meyering@ascend.com>
91684         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91685         * m4/stat.m4: Likewise.
91687 1998-11-03  Jim Meyering  <meyering@ascend.com>
91689         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91690         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91692 1998-10-18  Jim Meyering  <meyering@ascend.com>
91694         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91696 1998-10-17  Jim Meyering  <meyering@ascend.com>
91698         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91699         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91700         calls for those previously hard-coded headers.  Instead, take a new
91701         parameter.
91702         (jm_CHECK_DECLARATIONS): Reflect interface change.
91703         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91704         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91706         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91708 1998-10-14  Jim Meyering  <meyering@ascend.com>
91710         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91711         instead of "TZ=America/Vancouver".  From Paul Eggert.
91713 1998-10-11  Jim Meyering  <meyering@ascend.com>
91715         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91716         This adds a test for a recently added compatibility fix for mktime.c.
91717         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91719 1998-09-27  Jim Meyering  <meyering@ascend.com>
91721         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91723         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91724         ../configure.in, including a change from Gordon Matzigkeit to allow
91725         cross-compiling for the Hurd.
91727         * m4/glibc.m4: New file/macro to test for the GNU C Library
91728         versions 1 and 2.  From Gordon Matzigkeit.
91729         Indent.
91731 1998-09-21  Jim Meyering  <meyering@ascend.com>
91733         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91735 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91737         Port nanosecond-resolution times to UnixWare 2.1.2 and
91738         pedantic Solaris 2.6.
91740         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91741         AC_STRUCT_ST_MTIM.
91742         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91743         Generate name of ns member, instead of just 1 or undef.
91744         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91746 1998-08-15  Jim Meyering  <meyering@ascend.com>
91748         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91749         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91750         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91751         instead of jm_TYPE_SSIZE_T.
91753 1998-08-12  Jim Meyering  <meyering@ascend.com>
91755         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91757 1998-08-02  Jim Meyering  <meyering@ascend.com>
91759         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91760         in acconfig.h manually.
91762 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91764         * m4/st_mtim.m4: New file.
91766 1998-07-28  Jim Meyering  <meyering@ascend.com>
91768         * m4/utimes.m4: Undef stat.
91770 1998-07-25  Jim Meyering  <meyering@ascend.com>
91772         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91773         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91775 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91777         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91778         uid and gid actually remain unchanged.
91780 1998-07-07  Jim Meyering  <meyering@ascend.com>
91782         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91784 1998-07-04  Jim Meyering  <meyering@ascend.com>
91786         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91787         to prove that this macro can be used in packages without regex.c.
91789 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91791         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91792         is to be used.
91794 1998-07-03  Jim Meyering  <meyering@ascend.com>
91796         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91798         * m4/gettext.m4: New file -- from gettext-0.10.35.
91799         * m4/lcmessage.m4: Likewise.
91800         * m4/progtest.m4: Likewise.
91802         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91803         * m4/jm-macros.m4: Require the new macro.
91805 1998-06-29  Jim Meyering  <meyering@ascend.com>
91807         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91808         for the definition of NGROUPS (used in a system header included
91809         by sys/mount.h).
91811 1998-06-28  Jim Meyering  <meyering@ascend.com>
91813         * m4/ls-mntd-fs.m4: New file.
91814         * m4/fstypename.m4: New file.
91816         * m4/jm-macros.m4: Require the new macro.
91817         * m4/jm-glibc-io.m4: New file.
91819 1998-05-19  Jim Meyering  <meyering@ascend.com>
91821         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91822         * m4/lchown.m4: New file.
91824         * m4/Makefile.am.in: New file.
91825         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91827 1998-05-14  Jim Meyering  <meyering@ascend.com>
91829         * m4/Makefile.am (EXTRA_DIST): Add them.
91830         * m4/jm-macros.m4: New file.
91831         * m4/utimbuf.m4: New file.
91833 1998-05-12  Jim Meyering  <meyering@ascend.com>
91835         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91837 1998-05-11  Jim Meyering  <meyering@ascend.com>
91839         * m4/isc-posix.m4: New file.
91841 1998-05-10  Jim Meyering  <meyering@ascend.com>
91843         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91845 1998-05-09  Jim Meyering  <meyering@ascend.com>
91847         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91848         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91849         with automake.
91851         * m4/ssize_t.m4: New file.
91852         * m4/mktime.m4: Remove file -- the new automake has this now.
91854 1998-04-26  Jim Meyering  <meyering@ascend.com>
91856         * m4/assert.m4: New file.
91857         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91859 1998-04-05  Jim Meyering  <meyering@ascend.com>
91861         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91862         (jm_PREREQ): Use it here.
91864 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91866         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91867         in acconfig.h.
91869 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91871         * m4/prereq.m4: New file.
91872         * m4/error.m4: New file.
91873         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91875 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91877         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91878         cache-check for the same variable -- that defeated the purpose of
91879         the test; the test program was never run.  This was a problem only
91880         on systems with losing getline functions -- HP-UX 10.20 is one.
91881         Reported by Bjorn Helgaas.
91883 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91885         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91887 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91889         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91891         * m4/const.m4: New file.  Use an initializer in this declaration
91892         typedef int charset[2]; const charset x;
91893         Reported by Bob Glickstein.
91895 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91897         * m4/chown.m4: Fix reversed types on -1 args to chown.
91898         From Kaveh Ghazi.
91900 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91902         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91903         Add lseek and memchr.
91905         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91906         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91907         have a 20-character limit on names.
91909 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91911         * m4/inttypes_h.m4: New file.
91912         * m4/uintmax_t.m4: New file.
91913         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91916         -----
91918         Local Variables:
91919         coding: utf-8
91920         End:
91922         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91924         Copying and distribution of this file, with or without
91925         modification, are permitted provided the copyright notice
91926         and this notice are preserved.